@oh-my-pi/omp-stats 18.5.0 → 18.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/client/index.css +1 -1
- package/dist/client/index.js +73 -73
- package/dist/types/client/data/formatters.d.ts +2 -0
- package/dist/types/types.d.ts +1 -1
- package/package.json +4 -4
- package/src/aggregator.ts +3 -0
- package/src/client/data/formatters.ts +7 -0
- package/src/client/routes/ModelsRoute.tsx +3 -2
- package/src/client/routes/OverviewRoute.tsx +2 -1
- package/src/client/routes/ProjectsRoute.tsx +2 -1
- package/src/client/routes/ProvidersRoute.tsx +3 -2
- package/src/client/routes/RequestsRoute.tsx +2 -2
- package/src/client/routes/ToolsRoute.tsx +4 -3
- package/src/client/styles.css +1 -0
- package/src/client/ui/RequestDrawer.tsx +1 -1
- package/src/index.ts +2 -1
- package/src/types.ts +1 -1
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $M=Object.create;var{getPrototypeOf:XM,defineProperty:C1,getOwnPropertyNames:jM}=Object;var k1=Object.prototype.hasOwnProperty;function YM(r){return this[r]}var QM,ZM,Y=(r,i,u)=>{var c=r!=null&&typeof r==="object";if(c){var f=i?QM??=new WeakMap:ZM??=new WeakMap,v=f.get(r);if(v)return v}u=r!=null?$M(XM(r)):{};let p=i||!r||!r.__esModule||!k1.call(r,"default")?C1(u,"default",{value:r,enumerable:!0}):u;if(r&&typeof r==="object"||typeof r==="function"){for(let b of jM(r))if(!k1.call(p,b))C1(p,b,{get:YM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Fs=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var w1=Fs(function(ui){(function(){function r(){if(N=!1,Z){var te=ui.unstable_now();ge=te;var ve=!0;try{e:{F=!1,K&&(K=!1,B(W),W=-1),z=!0;var ke=_;try{t:{v(te);for(D=u(C);D!==null&&!(D.expirationTime>te&&b());){var je=D.callback;if(typeof je==="function"){D.callback=null,_=D.priorityLevel;var ae=je(D.expirationTime<=te);if(te=ui.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===u(C)&&c(C),v(te)}else c(C);D=u(C)}if(D!==null)ve=!0;else{var P=u(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Ne():Z=!1}}}function i(te,ve){var ke=te.length;te.push(ve);e:for(;0<ke;){var je=ke-1>>>1,ae=te[je];if(0<f(ae,ve))te[je]=ve,te[ke]=ae,ke=je;else break e}}function u(te){return te.length===0?null:te[0]}function c(te){if(te.length===0)return null;var ve=te[0],ke=te.pop();if(ke!==ve){te[0]=ke;e:for(var je=0,ae=te.length,P=ae>>>1;je<P;){var ue=2*(je+1)-1,se=te[ue],ne=ue+1,pe=te[ne];if(0>f(se,ke))ne<ae&&0>f(pe,se)?(te[je]=pe,te[ne]=ke,je=ne):(te[je]=se,te[ue]=ke,je=ue);else if(ne<ae&&0>f(pe,ke))te[je]=pe,te[ne]=ke,je=ne;else break e}}return ve}function f(te,ve){var ke=te.sortIndex-ve.sortIndex;return ke!==0?ke:te.id-ve.id}function v(te){for(var ve=u(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,i(C,ve);else break;ve=u(R)}}function p(te){if(K=!1,v(te),!F)if(u(C)!==null)F=!0,Z||(Z=!0,Ne());else{var ve=u(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ui.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ui.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ui.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ui.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ui.unstable_now=function(){return h.now()-x}}var C=[],R=[],L=1,D=null,_=3,z=!1,F=!1,K=!1,N=!1,oe=typeof setTimeout==="function"?setTimeout:null,B=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,Z=!1,W=-1,X=5,ge=-1;if(typeof ee==="function")var Ne=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=r,Ne=function(){Be.postMessage(null)}}else Ne=function(){oe(r,0)};ui.unstable_IdlePriority=5,ui.unstable_ImmediatePriority=1,ui.unstable_LowPriority=4,ui.unstable_NormalPriority=3,ui.unstable_Profiling=null,ui.unstable_UserBlockingPriority=2,ui.unstable_cancelCallback=function(te){te.callback=null},ui.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1000/te):5},ui.unstable_getCurrentPriorityLevel=function(){return _},ui.unstable_next=function(te){switch(_){case 1:case 2:case 3:var ve=3;break;default:ve=_}var ke=_;_=ve;try{return te()}finally{_=ke}},ui.unstable_requestPaint=function(){N=!0},ui.unstable_runWithPriority=function(te,ve){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ke=_;_=te;try{return ve()}finally{_=ke}},ui.unstable_scheduleCallback=function(te,ve,ke){var je=ui.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?je+ke:je):ke=je,te){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5000}return ae=ke+ae,te={id:L++,callback:ve,priorityLevel:te,startTime:ke,expirationTime:ae,sortIndex:-1},ke>je?(te.sortIndex=ke,i(R,te),u(C)===null&&te===u(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,i(C,te),F||z||(F=!0,Z||(Z=!0,Ne()))),te},ui.unstable_shouldYield=b,ui.unstable_wrapCallback=function(te){var ve=_;return function(){var ke=_;_=ve;try{return te.apply(this,arguments)}finally{_=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ut=Fs(function(WM,sm){(function(){function r(y,O){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function i(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function u(y,O){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var ie=y+"."+O;re[ie]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,y),re[ie]=!0)}function c(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function f(){}function v(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function p(){}function b(y){return""+y}function S(y){try{b(y);var O=!1}catch(we){O=!0}if(O){O=console;var ie=O.error,me=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return ie.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),b(y)}}function k(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===Et?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case ae:return"Fragment";case ue:return"Profiler";case P:return"StrictMode";case Lt:return"Suspense";case Ye:return"SuspenseList";case Mt:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case je:return"Portal";case ne:return y.displayName||"Context";case se:return(y._context.displayName||"Context")+".Consumer";case pe:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case V:return O=y.displayName||null,O!==null?O:k(y.type)||"Memo";case Pe:O=y._payload,y=y._init;try{return k(y(O))}catch(ie){}}return null}function h(y){if(y===ae)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=Ee.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(rl.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function L(y,O){function ie(){Vc||(Vc=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}ie.isReactWarning=!0,Object.defineProperty(y,"key",{get:ie,configurable:!0})}function D(){var y=k(this.type);return Kr[y]||(Kr[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,O,ie,me,we,$e){var Xe=ie.ref;return y={$$typeof:ke,type:y,key:O,props:ie,_owner:me},(Xe!==void 0?Xe:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:D}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function z(y,O){return O=_(y.type,O,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(O._store.validated=y._store.validated),O}function F(y){K(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?K(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function K(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function N(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ie){return O[ie]})}function oe(y,O){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),N(""+y.key)):O.toString(36)}function B(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(p,p):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,O,ie,me,we){var $e=typeof y;if($e==="undefined"||$e==="boolean")y=null;var Xe=!1;if(y===null)Xe=!0;else switch($e){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(y.$$typeof){case ke:case je:Xe=!0;break;case Pe:return Xe=y._init,ee(Xe(y._payload),O,ie,me,we)}}if(Xe){Xe=y,we=we(Xe);var yt=me===""?"."+oe(Xe,0):me;return gt(we)?(ie="",yt!=null&&(ie=yt.replace(ru,"$&/")+"/"),ee(we,O,ie,"",function(Za){return Za})):we!=null&&(K(we)&&(we.key!=null&&(Xe&&Xe.key===we.key||S(we.key)),ie=z(we,ie+(we.key==null||Xe&&Xe.key===we.key?"":(""+we.key).replace(ru,"$&/")+"/")+yt),me!==""&&Xe!=null&&K(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ie._store.validated=2),we=ie),O.push(we)),1}if(Xe=0,yt=me===""?".":me+":",gt(y))for(var Oe=0;Oe<y.length;Oe++)me=y[Oe],$e=yt+oe(me,Oe),Xe+=ee(me,O,ie,$e,we);else if(Oe=i(y),typeof Oe==="function")for(Oe===y.entries&&(nu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nu=!0),y=Oe.call(y),Oe=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Oe++),Xe+=ee(me,O,ie,$e,we);else if($e==="object"){if(typeof y.then==="function")return ee(B(y),O,ie,me,we);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Xe}function Z(y,O,ie){if(y==null)return y;var me=[],we=0;return ee(y,me,"","",function($e){return O.call(ie,$e,we++)}),me}function W(y){if(y._status===-1){var O=y._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=y._result;var ie=O();if(ie.then(function(we){if(y._status===0||y._status===-1){y._status=1,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=we)}},function(we){if(y._status===0||y._status===-1){y._status=2,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=we)}}),O=y._ioInfo,O!=null){O.value=ie;var me=ie.displayName;typeof me==="string"&&(O.name=me)}y._status===-1&&(y._status=0,y._result=ie)}if(y._status===1)return O=y._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var XM=Object.create;var{getPrototypeOf:jM,defineProperty:k1,getOwnPropertyNames:YM}=Object;var w1=Object.prototype.hasOwnProperty;function QM(r){return this[r]}var ZM,WM,Y=(r,u,i)=>{var c=r!=null&&typeof r==="object";if(c){var f=u?ZM??=new WeakMap:WM??=new WeakMap,v=f.get(r);if(v)return v}i=r!=null?XM(jM(r)):{};let p=u||!r||!r.__esModule||!w1.call(r,"default")?k1(i,"default",{value:r,enumerable:!0}):i;if(r&&typeof r==="object"||typeof r==="function"){for(let b of YM(r))if(!w1.call(p,b))k1(p,b,{get:QM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Gs=(r,u)=>()=>(u||r((u={exports:{}}).exports,u),u.exports);var T1=Gs(function(ii){(function(){function r(){if(N=!1,Z){var te=ii.unstable_now();ge=te;var ve=!0;try{e:{F=!1,K&&(K=!1,B(W),W=-1),z=!0;var ke=_;try{t:{v(te);for(D=i(C);D!==null&&!(D.expirationTime>te&&b());){var je=D.callback;if(typeof je==="function"){D.callback=null,_=D.priorityLevel;var ae=je(D.expirationTime<=te);if(te=ii.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===i(C)&&c(C),v(te)}else c(C);D=i(C)}if(D!==null)ve=!0;else{var P=i(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Be():Z=!1}}}function u(te,ve){var ke=te.length;te.push(ve);e:for(;0<ke;){var je=ke-1>>>1,ae=te[je];if(0<f(ae,ve))te[je]=ve,te[ke]=ae,ke=je;else break e}}function i(te){return te.length===0?null:te[0]}function c(te){if(te.length===0)return null;var ve=te[0],ke=te.pop();if(ke!==ve){te[0]=ke;e:for(var je=0,ae=te.length,P=ae>>>1;je<P;){var ue=2*(je+1)-1,se=te[ue],ne=ue+1,pe=te[ne];if(0>f(se,ke))ne<ae&&0>f(pe,se)?(te[je]=pe,te[ne]=ke,je=ne):(te[je]=se,te[ue]=ke,je=ue);else if(ne<ae&&0>f(pe,ke))te[je]=pe,te[ne]=ke,je=ne;else break e}}return ve}function f(te,ve){var ke=te.sortIndex-ve.sortIndex;return ke!==0?ke:te.id-ve.id}function v(te){for(var ve=i(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,u(C,ve);else break;ve=i(R)}}function p(te){if(K=!1,v(te),!F)if(i(C)!==null)F=!0,Z||(Z=!0,Be());else{var ve=i(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ii.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ii.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ii.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ii.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ii.unstable_now=function(){return h.now()-x}}var C=[],R=[],L=1,D=null,_=3,z=!1,F=!1,K=!1,N=!1,oe=typeof setTimeout==="function"?setTimeout:null,B=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,Z=!1,W=-1,X=5,ge=-1;if(typeof ee==="function")var Be=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,qe=Ce.port2;Ce.port1.onmessage=r,Be=function(){qe.postMessage(null)}}else Be=function(){oe(r,0)};ii.unstable_IdlePriority=5,ii.unstable_ImmediatePriority=1,ii.unstable_LowPriority=4,ii.unstable_NormalPriority=3,ii.unstable_Profiling=null,ii.unstable_UserBlockingPriority=2,ii.unstable_cancelCallback=function(te){te.callback=null},ii.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1000/te):5},ii.unstable_getCurrentPriorityLevel=function(){return _},ii.unstable_next=function(te){switch(_){case 1:case 2:case 3:var ve=3;break;default:ve=_}var ke=_;_=ve;try{return te()}finally{_=ke}},ii.unstable_requestPaint=function(){N=!0},ii.unstable_runWithPriority=function(te,ve){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ke=_;_=te;try{return ve()}finally{_=ke}},ii.unstable_scheduleCallback=function(te,ve,ke){var je=ii.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?je+ke:je):ke=je,te){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5000}return ae=ke+ae,te={id:L++,callback:ve,priorityLevel:te,startTime:ke,expirationTime:ae,sortIndex:-1},ke>je?(te.sortIndex=ke,u(R,te),i(C)===null&&te===i(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,u(C,te),F||z||(F=!0,Z||(Z=!0,Be()))),te},ii.unstable_shouldYield=b,ii.unstable_wrapCallback=function(te){var ve=_;return function(){var ke=_;_=ve;try{return te.apply(this,arguments)}finally{_=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ut=Gs(function(KM,um){(function(){function r(y,O){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function u(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function i(y,O){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var ie=y+"."+O;re[ie]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,y),re[ie]=!0)}function c(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function f(){}function v(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function p(){}function b(y){return""+y}function S(y){try{b(y);var O=!1}catch(we){O=!0}if(O){O=console;var ie=O.error,me=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return ie.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),b(y)}}function k(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===Et?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case ae:return"Fragment";case ue:return"Profiler";case P:return"StrictMode";case Lt:return"Suspense";case Ye:return"SuspenseList";case Mt:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case je:return"Portal";case ne:return y.displayName||"Context";case se:return(y._context.displayName||"Context")+".Consumer";case pe:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case V:return O=y.displayName||null,O!==null?O:k(y.type)||"Memo";case Ue:O=y._payload,y=y._init;try{return k(y(O))}catch(ie){}}return null}function h(y){if(y===ae)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Ue)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=De.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(sl.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function L(y,O){function ie(){$c||($c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}ie.isReactWarning=!0,Object.defineProperty(y,"key",{get:ie,configurable:!0})}function D(){var y=k(this.type);return Jr[y]||(Jr[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,O,ie,me,we,$e){var Xe=ie.ref;return y={$$typeof:ke,type:y,key:O,props:ie,_owner:me},(Xe!==void 0?Xe:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:D}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function z(y,O){return O=_(y.type,O,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(O._store.validated=y._store.validated),O}function F(y){K(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Ue&&(y._payload.status==="fulfilled"?K(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function K(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function N(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ie){return O[ie]})}function oe(y,O){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),N(""+y.key)):O.toString(36)}function B(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(p,p):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,O,ie,me,we){var $e=typeof y;if($e==="undefined"||$e==="boolean")y=null;var Xe=!1;if(y===null)Xe=!0;else switch($e){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(y.$$typeof){case ke:case je:Xe=!0;break;case Ue:return Xe=y._init,ee(Xe(y._payload),O,ie,me,we)}}if(Xe){Xe=y,we=we(Xe);var yt=me===""?"."+oe(Xe,0):me;return gt(we)?(ie="",yt!=null&&(ie=yt.replace(su,"$&/")+"/"),ee(we,O,ie,"",function(Za){return Za})):we!=null&&(K(we)&&(we.key!=null&&(Xe&&Xe.key===we.key||S(we.key)),ie=z(we,ie+(we.key==null||Xe&&Xe.key===we.key?"":(""+we.key).replace(su,"$&/")+"/")+yt),me!==""&&Xe!=null&&K(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ie._store.validated=2),we=ie),O.push(we)),1}if(Xe=0,yt=me===""?".":me+":",gt(y))for(var Ee=0;Ee<y.length;Ee++)me=y[Ee],$e=yt+oe(me,Ee),Xe+=ee(me,O,ie,$e,we);else if(Ee=u(y),typeof Ee==="function")for(Ee===y.entries&&(ru||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ru=!0),y=Ee.call(y),Ee=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Ee++),Xe+=ee(me,O,ie,$e,we);else if($e==="object"){if(typeof y.then==="function")return ee(B(y),O,ie,me,we);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Xe}function Z(y,O,ie){if(y==null)return y;var me=[],we=0;return ee(y,me,"","",function($e){return O.call(ie,$e,we++)}),me}function W(y){if(y._status===-1){var O=y._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=y._result;var ie=O();if(ie.then(function(we){if(y._status===0||y._status===-1){y._status=1,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=we)}},function(we){if(y._status===0||y._status===-1){y._status=2,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=we)}}),O=y._ioInfo,O!=null){O.value=ie;var me=ie.displayName;typeof me==="string"&&(O.name=me)}y._status===-1&&(y._status=0,y._result=ie)}if(y._status===1)return O=y._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -6,71 +6,71 @@ Your code should look like:
|
|
|
6
6
|
Did you accidentally put curly braces around the import?`,O),"default"in O||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,O),O.default;throw y._result}function X(){var y=
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,O),O.default;throw y._result}function X(){var y=De.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}function ge(){Ee.asyncTransitions--}function Ne(y){if(es===null)try{var O=("require"+Math.random()).slice(0,7);es=(sm&&sm[O]).call(sm,"timers").setImmediate}catch(ie){es=function(me){$c===!1&&($c=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=me,we.port2.postMessage(void 0)}}return es(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function Be(y,O){O!==ts-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ts=O}function te(y,O,ie){var me=Ee.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Ne(function(){return te(y,O,ie)});return}catch(we){Ee.thrownErrors.push(we)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(me=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!os){os=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{Ee.didUsePromise=!1;var me=ie(!1);if(me!==null){if(Ee.didUsePromise){y[O]=ie,y.splice(0,O);return}ie=me}else break}while(1)}y.length=0}catch(we){y.splice(0,O+1),Ee.thrownErrors.push(we)}finally{os=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Lt=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){u(y,"forceUpdate")},enqueueReplaceState:function(y){u(y,"replaceState")},enqueueSetState:function(y){u(y,"setState")}},Ia=Object.assign,Kt={};Object.freeze(Kt),c.prototype.isReactComponent={},c.prototype.setState=function(y,O){if(typeof y!=="object"&&typeof y!=="function"&&y!=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,y,O,"setState")},c.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var Yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Kn in Yt)Yt.hasOwnProperty(Kn)&&r(Kn,Yt[Kn]);f.prototype=c.prototype,Yt=v.prototype=new f,Yt.constructor=v,Ia(Yt,c.prototype),Yt.isPureReactComponent=!0;var gt=Array.isArray,Et=Symbol.for("react.client.reference"),Ee={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},rl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var Vc,Rl,Kr={},Jr=Yt.react_stack_bottom_frame.bind(Yt,C)(),Om=_t(h(C)),nu=!1,ru=/\/+/g,Wn=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},$c=!1,es=null,ts=0,as=!1,os=!1,Ri=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Ne;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Kn={map:Z,forEach:function(y,O,ie){Z(y,function(){O.apply(this,arguments)},ie)},count:function(y){var O=0;return Z(y,function(){O++}),O},toArray:function(y){return Z(y,function(O){return O})||[]},only:function(y){if(!K(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};WM.Activity=Mt,WM.Children=Kn,WM.Component=c,WM.Fragment=ae,WM.Profiler=ue,WM.PureComponent=v,WM.StrictMode=P,WM.Suspense=Lt,WM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,WM.__COMPILER_RUNTIME=Yt,WM.act=function(y){var O=Ee.actQueue,ie=ts;ts++;var me=Ee.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Oe){Ee.thrownErrors.push(Oe)}if(0<Ee.thrownErrors.length)throw Be(O,ie),y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Ri(function(){we||as||(as=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Oe,Za){we=!0,Xe.then(function(xo){if(Be(O,ie),ie===0){try{ve(me),Ne(function(){return te(xo,Oe,Za)})}catch(Mi){Ee.thrownErrors.push(Mi)}if(0<Ee.thrownErrors.length){var Jn=Ce(Ee.thrownErrors);Ee.thrownErrors.length=0,Za(Jn)}}else Oe(xo)},function(xo){Be(O,ie),0<Ee.thrownErrors.length?(xo=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,Za(xo)):Za(xo)})}}}var yt=$e;if(Be(O,ie),ie===0&&(ve(me),me.length!==0&&Ri(function(){we||as||(as=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ee.actQueue=null),0<Ee.thrownErrors.length)throw y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;return{then:function(Oe,Za){we=!0,ie===0?(Ee.actQueue=me,Ne(function(){return te(yt,Oe,Za)})):Oe(yt)}}},WM.cache=function(y){return function(){return y.apply(null,arguments)}},WM.cacheSignal=function(){return null},WM.captureOwnerStack=function(){var y=Ee.getCurrentStack;return y===null?null:y()},WM.cloneElement=function(y,O,ie){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var me=Ia({},y.props),{key:we,_owner:$e}=y;if(O!=null){var Xe;e:{if(rl.call(O,"ref")&&(Xe=Object.getOwnPropertyDescriptor(O,"ref").get)&&Xe.isReactWarning){Xe=!1;break e}Xe=O.ref!==void 0}Xe&&($e=x()),R(O)&&(S(O.key),we=""+O.key);for(yt in O)!rl.call(O,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&O.ref===void 0||(me[yt]=O[yt])}var yt=arguments.length-2;if(yt===1)me.children=ie;else if(1<yt){Xe=Array(yt);for(var Oe=0;Oe<yt;Oe++)Xe[Oe]=arguments[Oe+2];me.children=Xe}me=_(y.type,we,me,$e,y._debugStack,y._debugTask);for(we=2;we<arguments.length;we++)F(arguments[we]);return me},WM.createContext=function(y){return y={$$typeof:ne,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:se,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},WM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Oe in Rl||!("__self"in O)||"key"in O||(Rl=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(O)&&(S(O.key),we=""+O.key),O)rl.call(O,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(me[Oe]=O[Oe]);var $e=arguments.length-2;if($e===1)me.children=ie;else if(1<$e){for(var Xe=Array($e),yt=0;yt<$e;yt++)Xe[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Xe),me.children=Xe}if(y&&y.defaultProps)for(Oe in $e=y.defaultProps,$e)me[Oe]===void 0&&(me[Oe]=$e[Oe]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Oe=1e4>Ee.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Oe?Error("react-stack-top-frame"):Jr,Oe?_t(h(y)):Om)},WM.createRef=function(){var y={current:null};return Object.seal(y),y},WM.forwardRef=function(y){y!=null&&y.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof y!=="function"?console.error("forwardRef requires a render function but was given %s.",y===null?"null":typeof y):y.length!==0&&y.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),y!=null&&y.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:pe,render:y},ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},WM.isValidElement=K,WM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Pe,_payload:y,_init:W},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return y._ioInfo=ie,O._debugInfo=[{awaited:ie}],O},WM.memo=function(y,O){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),O={$$typeof:V,type:y,compare:O===void 0?null:O};var ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},WM.startTransition=function(y){var O=Ee.T,ie={};ie._updatedFibers=new Set,Ee.T=ie;try{var me=y(),we=Ee.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(Ee.asyncTransitions++,me.then(ge,ge),me.then(p,Wn))}catch($e){Wn($e)}finally{O===null&&ie._updatedFibers&&(y=ie._updatedFibers.size,ie._updatedFibers.clear(),10<y&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&ie.types!==null&&(O.types!==null&&O.types!==ie.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=ie.types),Ee.T=O}},WM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},WM.use=function(y){return X().use(y)},WM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},WM.useCallback=function(y,O){return X().useCallback(y,O)},WM.useContext=function(y){var O=X();return y.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(y)},WM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},WM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},WM.useEffect=function(y,O){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(y,O)},WM.useEffectEvent=function(y){return X().useEffectEvent(y)},WM.useId=function(){return X().useId()},WM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},WM.useInsertionEffect=function(y,O){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(y,O)},WM.useLayoutEffect=function(y,O){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(y,O)},WM.useMemo=function(y,O){return X().useMemo(y,O)},WM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},WM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},WM.useRef=function(y){return X().useRef(y)},WM.useState=function(y){return X().useState(y)},WM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},WM.useTransition=function(){return X().useTransition()},WM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=Fs(function(KM){var pb=Y(ut());(function(){function r(){}function i(h){return""+h}function u(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(R);var L=!1}catch(D){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),i(R)),{$$typeof:S,key:R==null?null:""+R,children:h,containerInfo:x,implementation:C}}function c(h,x){if(h==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function v(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function p(){var h=k.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}function ge(){De.asyncTransitions--}function Be(y){if(ts===null)try{var O=("require"+Math.random()).slice(0,7);ts=(um&&um[O]).call(um,"timers").setImmediate}catch(ie){ts=function(me){Xc===!1&&(Xc=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=me,we.port2.postMessage(void 0)}}return ts(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function qe(y,O){O!==as-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),as=O}function te(y,O,ie){var me=De.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Be(function(){return te(y,O,ie)});return}catch(we){De.thrownErrors.push(we)}else De.actQueue=null;0<De.thrownErrors.length?(me=Ce(De.thrownErrors),De.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!ls){ls=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{De.didUsePromise=!1;var me=ie(!1);if(me!==null){if(De.didUsePromise){y[O]=ie,y.splice(0,O);return}ie=me}else break}while(1)}y.length=0}catch(we){y.splice(0,O+1),De.thrownErrors.push(we)}finally{ls=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Lt=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){i(y,"forceUpdate")},enqueueReplaceState:function(y){i(y,"replaceState")},enqueueSetState:function(y){i(y,"setState")}},Ia=Object.assign,Kt={};Object.freeze(Kt),c.prototype.isReactComponent={},c.prototype.setState=function(y,O){if(typeof y!=="object"&&typeof y!=="function"&&y!=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,y,O,"setState")},c.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var Yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Jn in Yt)Yt.hasOwnProperty(Jn)&&r(Jn,Yt[Jn]);f.prototype=c.prototype,Yt=v.prototype=new f,Yt.constructor=v,Ia(Yt,c.prototype),Yt.isPureReactComponent=!0;var gt=Array.isArray,Et=Symbol.for("react.client.reference"),De={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},sl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var $c,Ml,Jr={},es=Yt.react_stack_bottom_frame.bind(Yt,C)(),qm=_t(h(C)),ru=!1,su=/\/+/g,Kn=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},Xc=!1,ts=null,as=0,os=!1,ls=!1,Mi=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Be;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Jn={map:Z,forEach:function(y,O,ie){Z(y,function(){O.apply(this,arguments)},ie)},count:function(y){var O=0;return Z(y,function(){O++}),O},toArray:function(y){return Z(y,function(O){return O})||[]},only:function(y){if(!K(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};KM.Activity=Mt,KM.Children=Jn,KM.Component=c,KM.Fragment=ae,KM.Profiler=ue,KM.PureComponent=v,KM.StrictMode=P,KM.Suspense=Lt,KM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=De,KM.__COMPILER_RUNTIME=Yt,KM.act=function(y){var O=De.actQueue,ie=as;as++;var me=De.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Ee){De.thrownErrors.push(Ee)}if(0<De.thrownErrors.length)throw qe(O,ie),y=Ce(De.thrownErrors),De.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Mi(function(){we||os||(os=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ee,Za){we=!0,Xe.then(function(Lo){if(qe(O,ie),ie===0){try{ve(me),Be(function(){return te(Lo,Ee,Za)})}catch(Ai){De.thrownErrors.push(Ai)}if(0<De.thrownErrors.length){var er=Ce(De.thrownErrors);De.thrownErrors.length=0,Za(er)}}else Ee(Lo)},function(Lo){qe(O,ie),0<De.thrownErrors.length?(Lo=Ce(De.thrownErrors),De.thrownErrors.length=0,Za(Lo)):Za(Lo)})}}}var yt=$e;if(qe(O,ie),ie===0&&(ve(me),me.length!==0&&Mi(function(){we||os||(os=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),De.actQueue=null),0<De.thrownErrors.length)throw y=Ce(De.thrownErrors),De.thrownErrors.length=0,y;return{then:function(Ee,Za){we=!0,ie===0?(De.actQueue=me,Be(function(){return te(yt,Ee,Za)})):Ee(yt)}}},KM.cache=function(y){return function(){return y.apply(null,arguments)}},KM.cacheSignal=function(){return null},KM.captureOwnerStack=function(){var y=De.getCurrentStack;return y===null?null:y()},KM.cloneElement=function(y,O,ie){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var me=Ia({},y.props),{key:we,_owner:$e}=y;if(O!=null){var Xe;e:{if(sl.call(O,"ref")&&(Xe=Object.getOwnPropertyDescriptor(O,"ref").get)&&Xe.isReactWarning){Xe=!1;break e}Xe=O.ref!==void 0}Xe&&($e=x()),R(O)&&(S(O.key),we=""+O.key);for(yt in O)!sl.call(O,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&O.ref===void 0||(me[yt]=O[yt])}var yt=arguments.length-2;if(yt===1)me.children=ie;else if(1<yt){Xe=Array(yt);for(var Ee=0;Ee<yt;Ee++)Xe[Ee]=arguments[Ee+2];me.children=Xe}me=_(y.type,we,me,$e,y._debugStack,y._debugTask);for(we=2;we<arguments.length;we++)F(arguments[we]);return me},KM.createContext=function(y){return y={$$typeof:ne,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:se,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},KM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Ee in Ml||!("__self"in O)||"key"in O||(Ml=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(O)&&(S(O.key),we=""+O.key),O)sl.call(O,Ee)&&Ee!=="key"&&Ee!=="__self"&&Ee!=="__source"&&(me[Ee]=O[Ee]);var $e=arguments.length-2;if($e===1)me.children=ie;else if(1<$e){for(var Xe=Array($e),yt=0;yt<$e;yt++)Xe[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Xe),me.children=Xe}if(y&&y.defaultProps)for(Ee in $e=y.defaultProps,$e)me[Ee]===void 0&&(me[Ee]=$e[Ee]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Ee=1e4>De.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Ee?Error("react-stack-top-frame"):es,Ee?_t(h(y)):qm)},KM.createRef=function(){var y={current:null};return Object.seal(y),y},KM.forwardRef=function(y){y!=null&&y.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof y!=="function"?console.error("forwardRef requires a render function but was given %s.",y===null?"null":typeof y):y.length!==0&&y.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),y!=null&&y.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:pe,render:y},ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},KM.isValidElement=K,KM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Ue,_payload:y,_init:W},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return y._ioInfo=ie,O._debugInfo=[{awaited:ie}],O},KM.memo=function(y,O){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),O={$$typeof:V,type:y,compare:O===void 0?null:O};var ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},KM.startTransition=function(y){var O=De.T,ie={};ie._updatedFibers=new Set,De.T=ie;try{var me=y(),we=De.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(De.asyncTransitions++,me.then(ge,ge),me.then(p,Kn))}catch($e){Kn($e)}finally{O===null&&ie._updatedFibers&&(y=ie._updatedFibers.size,ie._updatedFibers.clear(),10<y&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&ie.types!==null&&(O.types!==null&&O.types!==ie.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=ie.types),De.T=O}},KM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},KM.use=function(y){return X().use(y)},KM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},KM.useCallback=function(y,O){return X().useCallback(y,O)},KM.useContext=function(y){var O=X();return y.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(y)},KM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},KM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},KM.useEffect=function(y,O){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(y,O)},KM.useEffectEvent=function(y){return X().useEffectEvent(y)},KM.useId=function(){return X().useId()},KM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},KM.useInsertionEffect=function(y,O){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(y,O)},KM.useLayoutEffect=function(y,O){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(y,O)},KM.useMemo=function(y,O){return X().useMemo(y,O)},KM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},KM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},KM.useRef=function(y){return X().useRef(y)},KM.useState=function(y){return X().useState(y)},KM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},KM.useTransition=function(){return X().useTransition()},KM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=Gs(function(JM){var mb=Y(ut());(function(){function r(){}function u(h){return""+h}function i(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{u(R);var L=!1}catch(D){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),u(R)),{$$typeof:S,key:R==null?null:""+R,children:h,containerInfo:x,implementation:C}}function c(h,x){if(h==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function v(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function p(){var h=k.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},S=Symbol.for("react.portal"),k=pb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),KM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,KM.createPortal=function(h,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return u(h,x,null,C)},KM.flushSync=function(h){var x=k.T,C=b.p;try{if(k.T=null,b.p=2,h)return h()}finally{k.T=x,b.p=C,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},KM.preconnect=function(h,x){typeof h==="string"&&h?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,b.d.C(h,x))},KM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x))}typeof h==="string"&&b.d.D(h)},KM.preinit=function(h,x){if(typeof h==="string"&&h?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&x&&typeof x.as==="string"){var C=x.as,R=c(C,x.crossOrigin),L=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;C==="style"?b.d.S(h,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:D}):C==="script"&&b.d.X(h,{crossOrigin:R,integrity:L,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},KM.preinitModule=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&x.as!=="script"&&(C+=" The `as` option encountered was "+v(x.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=x&&typeof x.as==="string"?x.as:"script",C){case"script":break;default:C=v(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,h)}if(typeof h==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")C=c(x.as,x.crossOrigin),b.d.M(h,{crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&b.d.M(h)},KM.preload=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x==null||typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":typeof x.as==="string"&&x.as||(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof h==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){C=x.as;var R=c(C,x.crossOrigin);b.d.L(h,C,{crossOrigin:R,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},KM.preloadModule=function(h,x){var C="";typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof h==="string"&&(x?(C=c(x.as,x.crossOrigin),b.d.m(h,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0})):b.d.m(h))},KM.requestFormReset=function(h){b.d.r(h)},KM.unstable_batchedUpdates=function(h,x){return h(x)},KM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},KM.useFormStatus=function(){return p().useHostTransitionStatus()},KM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rc=Fs(function(JM,um){um.exports=Y(T1())});var I1=Fs(function(eA){var bt=Y(w1()),ii=Y(ut()),mb=Y(rc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=i(e[l],t,a+1,o),n}function u(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=Ra(e)?e.slice():rt({},e);return o+1===t.length?(n[a[o]]=n[l],Ra(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function f(e,t,a){var o=t[a],l=Ra(e)?e.slice():rt({},e);if(a+1===t.length)return Ra(l)?l.splice(o,1):delete l[o],l;return l[o]=f(e[o],t,a+1),l}function v(){return!1}function p(){return null}function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function k(){}function h(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new qT(e,t,a,o)}function R(e,t){e.context===vr&&(Og(e.current,2,t,e,null,null),vu())}function L(e,t){if(Xo!==null){var a=t.staleFamilies;t=t.updatedFamilies,td(),M0(e.current,t,a),vu()}}function D(e){Xo=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(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 F(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 K(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(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function oe(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return N(l),e;if(n===o)return N(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var s=!1,d=l.child;d;){if(d===a){s=!0,a=l,o=n;break}if(d===o){s=!0,o=l,a=n;break}d=d.sibling}if(!s){for(d=n.child;d;){if(d===a){s=!0,a=n,o=l;break}if(d===o){s=!0,o=n,a=l;break}d=d.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Nx&&e[Nx]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===tR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Tu:return"Fragment";case zg:return"Profiler";case tp:return"StrictMode";case Hg:return"Suspense";case Fg:return"SuspenseList";case Gg:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case wu:return"Portal";case Xl:return e.displayName||"Context";case _g:return(e._context.displayName||"Context")+".Consumer";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ap:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return Z(e(t))}catch(a){}}return null}function W(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===tp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return X(e.return)}return null}function ge(e){return{current:e}}function Ne(e,t){0>Tn?console.error("Unexpected pop."):(t!==$g[Tn]&&console.error("Unexpected Fiber popped."),e.current=Vg[Tn],Vg[Tn]=null,$g[Tn]=null,Tn--)}function Ce(e,t,a){Tn++,Vg[Tn]=e.current,$g[Tn]=a,e.current=t}function Be(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){Ce(pr,t,e),Ce(fd,e,e),Ce(fr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?rx(t):_n:_n;break;default:if(a=t.tagName,t=t.namespaceURI)t=rx(t),t=sx(t,a);else switch(a){case"svg":t=ri;break;case"math":t=em;break;default:t=_n}}a=a.toLowerCase(),a=e0(null,a),a={context:t,ancestorInfo:a},Ne(fr,e),Ce(fr,a,e)}function ve(e){Ne(fr,e),Ne(fd,e),Ne(pr,e)}function ke(){return Be(fr.current)}function je(e){e.memoizedState!==null&&Ce(op,e,e);var t=Be(fr.current),a=e.type,o=sx(t.context,a);a=e0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(fd,e,e),Ce(fr,o,e))}function ae(e){fd.current===e&&(Ne(fr,e),Ne(fd,e)),op.current===e&&(Ne(op,e),oc._currentValue=Hs)}function P(){}function ue(){if(pd===0){Ux=console.log,Px=console.info,zx=console.warn,_x=console.error,Hx=console.group,Fx=console.groupCollapsed,Gx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pd++}function se(){if(pd--,pd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Ux}),info:rt({},e,{value:Px}),warn:rt({},e,{value:zx}),error:rt({},e,{value:_x}),group:rt({},e,{value:Hx}),groupCollapsed:rt({},e,{value:Fx}),groupEnd:rt({},e,{value:Gx})})}0>pd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},S=Symbol.for("react.portal"),k=mb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),JM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,JM.createPortal=function(h,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return i(h,x,null,C)},JM.flushSync=function(h){var x=k.T,C=b.p;try{if(k.T=null,b.p=2,h)return h()}finally{k.T=x,b.p=C,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},JM.preconnect=function(h,x){typeof h==="string"&&h?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,b.d.C(h,x))},JM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x))}typeof h==="string"&&b.d.D(h)},JM.preinit=function(h,x){if(typeof h==="string"&&h?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&x&&typeof x.as==="string"){var C=x.as,R=c(C,x.crossOrigin),L=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;C==="style"?b.d.S(h,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:D}):C==="script"&&b.d.X(h,{crossOrigin:R,integrity:L,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},JM.preinitModule=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&x.as!=="script"&&(C+=" The `as` option encountered was "+v(x.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=x&&typeof x.as==="string"?x.as:"script",C){case"script":break;default:C=v(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,h)}if(typeof h==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")C=c(x.as,x.crossOrigin),b.d.M(h,{crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&b.d.M(h)},JM.preload=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x==null||typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":typeof x.as==="string"&&x.as||(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof h==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){C=x.as;var R=c(C,x.crossOrigin);b.d.L(h,C,{crossOrigin:R,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},JM.preloadModule=function(h,x){var C="";typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof h==="string"&&(x?(C=c(x.as,x.crossOrigin),b.d.m(h,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0})):b.d.m(h))},JM.requestFormReset=function(h){b.d.r(h)},JM.unstable_batchedUpdates=function(h,x){return h(x)},JM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},JM.useFormStatus=function(){return p().useHostTransitionStatus()},JM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var sc=Gs(function(eA,im){im.exports=Y(I1())});var R1=Gs(function(tA){var bt=Y(T1()),di=Y(ut()),hb=Y(sc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function u(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=u(e[l],t,a+1,o),n}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=Ra(e)?e.slice():rt({},e);return o+1===t.length?(n[a[o]]=n[l],Ra(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function f(e,t,a){var o=t[a],l=Ra(e)?e.slice():rt({},e);if(a+1===t.length)return Ra(l)?l.splice(o,1):delete l[o],l;return l[o]=f(e[o],t,a+1),l}function v(){return!1}function p(){return null}function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function k(){}function h(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new BT(e,t,a,o)}function R(e,t){e.context===Sr&&(qg(e.current,2,t,e,null,null),Su())}function L(e,t){if(jo!==null){var a=t.staleFamilies;t=t.updatedFamilies,ad(),A0(e.current,t,a),Su()}}function D(e){jo=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(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 F(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 K(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(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function oe(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return N(l),e;if(n===o)return N(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var s=!1,d=l.child;d;){if(d===a){s=!0,a=l,o=n;break}if(d===o){s=!0,o=l,a=n;break}d=d.sibling}if(!s){for(d=n.child;d;){if(d===a){s=!0,a=n,o=l;break}if(d===o){s=!0,o=n,a=l;break}d=d.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Ux&&e[Ux]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===aR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Iu:return"Fragment";case _g:return"Profiler";case ap:return"StrictMode";case Fg:return"Suspense";case Gg:return"SuspenseList";case Vg:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Tu:return"Portal";case jl:return e.displayName||"Context";case Hg:return(e._context.displayName||"Context")+".Consumer";case fd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case op:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Do:t=e._payload,e=e._init;try{return Z(e(t))}catch(a){}}return null}function W(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===ap?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return X(e.return)}return null}function ge(e){return{current:e}}function Be(e,t){0>In?console.error("Unexpected pop."):(t!==Xg[In]&&console.error("Unexpected Fiber popped."),e.current=$g[In],$g[In]=null,Xg[In]=null,In--)}function Ce(e,t,a){In++,$g[In]=e.current,Xg[In]=a,e.current=t}function qe(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){Ce(mr,t,e),Ce(pd,e,e),Ce(pr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?sx(t):Hn:Hn;break;default:if(a=t.tagName,t=t.namespaceURI)t=sx(t),t=ux(t,a);else switch(a){case"svg":t=si;break;case"math":t=tm;break;default:t=Hn}}a=a.toLowerCase(),a=t0(null,a),a={context:t,ancestorInfo:a},Be(pr,e),Ce(pr,a,e)}function ve(e){Be(pr,e),Be(pd,e),Be(mr,e)}function ke(){return qe(pr.current)}function je(e){e.memoizedState!==null&&Ce(lp,e,e);var t=qe(pr.current),a=e.type,o=ux(t.context,a);a=t0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(pd,e,e),Ce(pr,o,e))}function ae(e){pd.current===e&&(Be(pr,e),Be(pd,e)),lp.current===e&&(Be(lp,e),lc._currentValue=Fs)}function P(){}function ue(){if(md===0){Px=console.log,zx=console.info,_x=console.warn,Hx=console.error,Fx=console.group,Gx=console.groupCollapsed,Vx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}md++}function se(){if(md--,md===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Px}),info:rt({},e,{value:zx}),warn:rt({},e,{value:_x}),error:rt({},e,{value:Hx}),group:rt({},e,{value:Fx}),groupCollapsed:rt({},e,{value:Gx}),groupEnd:rt({},e,{value:Vx})})}0>md&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
19
19
|
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
20
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function pe(e){if(
|
|
20
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function pe(e){if(jg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);jg=t&&t[1]||"",$x=-1<a.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
22
|
+
`+jg+e+$x}function Lt(e,t){if(!e||Yg)return"";var a=Qg.get(e);if(a!==void 0)return a;Yg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,ue();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(de){var U=de}Reflect.construct(e,[],T)}else{try{T.call()}catch(de){U=de}e.call(T.prototype)}}else{try{throw Error()}catch(de){U=de}(T=e())&&typeof T.catch==="function"&&T.catch(function(){})}}catch(de){if(de&&U&&typeof de.stack==="string")return[de.stack,U.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 s=l.DetermineComponentFrameRoot(),d=s[0],m=s[1];if(d&&m){var g=d.split(`
|
|
23
23
|
`),A=m.split(`
|
|
24
24
|
`);for(s=n=0;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(n===g.length||s===A.length)for(n=g.length-1,s=A.length-1;1<=n&&0<=s&&g[n]!==A[s];)s--;for(;1<=n&&0<=s;n--,s--)if(g[n]!==A[s]){if(n!==1||s!==1)do if(n--,s--,0>s||g[n]!==A[s]){var E=`
|
|
25
|
-
`+g[n].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e==="function"&&
|
|
25
|
+
`+g[n].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e==="function"&&Qg.set(e,E),E}while(1<=n&&0<=s);break}}}finally{Yg=!1,G.H=o,se(),Error.prepareStackTrace=a}return g=(g=e?e.displayName||e.name:"")?pe(g):"",typeof e==="function"&&Qg.set(e,g),g}function Ye(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe("Lazy");case 13:return e.child!==t&&t!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Lt(e.type,!1);case 11:return Lt(e.type.render,!1);case 1:return Lt(e.type,!0);case 31:return pe("Activity");default:return""}}function V(e){try{var t="",a=null;do{t+=Ye(e,a);var o=e._debugInfo;if(o)for(var l=o.length-1;0<=l;l--){var n=o[l];if(typeof n.name==="string"){var s=t;e:{var{name:d,env:m,debugLocation:g}=n;if(g!=null){var A=ne(g),E=A.lastIndexOf(`
|
|
26
26
|
`),T=E===-1?A:A.slice(E+1);if(T.indexOf(d)!==-1){var U=`
|
|
27
27
|
`+T;break e}}U=pe(d+(m?" ["+m+"]":""))}t=s+U}}a=e,e=e.return}while(e);return t}catch(de){return`
|
|
28
28
|
Error generating stack: `+de.message+`
|
|
29
|
-
`+de.stack}}function
|
|
29
|
+
`+de.stack}}function Ue(e){return(e=e?e.displayName||e.name:"")?pe(e):""}function Mt(){if(Eo===null)return null;var e=Eo._debugOwner;return e!=null?W(e):null}function pa(){if(Eo===null)return"";var e=Eo;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=pe(e.type);break;case 13:t+=pe("Suspense");break;case 19:t+=pe("SuspenseList");break;case 31:t+=pe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Ue(e.type));break;case 11:e._debugOwner||t!==""||(t+=Ue(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var l=ne(o);l!==""&&(t+=`
|
|
30
30
|
`+l)}}else if(e.debugStack!=null){var n=e.debugStack;(e=e.owner)&&n&&(t+=`
|
|
31
31
|
`+ne(n))}else break;var s=t}catch(d){s=`
|
|
32
32
|
Error generating stack: `+d.message+`
|
|
33
|
-
`+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Do;ma(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,s)):t(a,o,l,n,s)}finally{ma(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ma(e){G.getCurrentStack=e===null?null:pa,jl=!1,Do=e}function Ia(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kt(e){try{return Yt(e),!1}catch(t){return!0}}function Yt(e){return""+e}function gt(e,t){if(Kt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Et(e,t){if(Kt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Ee(e){if(Kt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)}function rl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ru=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function _t(e){if(typeof uR==="function"&&iR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Ru,e)}catch(t){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vc(e){return e>>>=0,e===0?32:31-(dR(e)/cR|0)|0}function Rl(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Kr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~n,o!==0?l=Rl(o):(s&=d,s!==0?l=Rl(s):a||(a=d&~e,a!==0&&(l=Rl(a))))):(d=o&~n,d!==0?l=Rl(d):s!==0?l=Rl(s):a||(a=o&~e,a!==0&&(l=Rl(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function Jr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Om(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nu(){var e=rp;return rp<<=1,(rp&62914560)===0&&(rp=4194304),e}function ru(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $c(e,t,a,o,l,n){var s=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{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var A=31-ao(a),E=1<<A;d[A]=0,m[A]=-1;var T=g[A];if(T!==null)for(g[A]=null,A=0;A<T.length;A++){var U=T[A];U!==null&&(U.lane&=-536870913)}a&=~E}o!==0&&es(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function es(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ao(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ts(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ao(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function as(e,t){var a=t&-t;return a=(a&42)!==0?1:os(a),(a&(e.suspendedLanes|t))!==0?0:a}function os(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 Ri(e,t,a){if(Ql)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ao(a),l=1<<o;e[o].add(t),a&=~l}}function Kn(e,t){if(Ql)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-ao(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var s=n.alternate;s!==null&&o.has(s)||o.add(n)}),l.clear()),t&=~e}}function y(e){return e&=-e,Eo!==0&&Eo<e?cl!==0&&cl<e?(e&134217727)!==0?Zl:sp:cl:Eo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Zl:Mx(e.type)}function ie(e,t){var a=kt.p;try{return kt.p=e,t()}finally{kt.p=a}}function me(e){delete e[Xa],delete e[oo],delete e[Jg],delete e[fR],delete e[pR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hx(e);e!==null;){if(a=e[Xa])return a;e=hx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[hr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function yt(e){var t=e[$x];return t||(t=e[$x]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[md]=!0}function Za(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){vs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),vs[e]=t;var a=e.toLowerCase();ey[a]=e,e==="onDoubleClick"&&(ey.ondblclick=e);for(e=0;e<t.length;e++)Xx.add(t[e])}function Jn(e,t){mR[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mi(e){if(dl.call(Yx,e))return!0;if(dl.call(jx,e))return!1;if(hR.test(e))return Yx[e]=!0;return jx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function zb(e,t,a){if(Mi(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return gt(a,t),e===""+a?a:e}}function Xc(e,t,a){if(Mi(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}gt(a,t),e.setAttribute(t,""+a)}}function jc(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}gt(a,t),e.setAttribute(t,""+a)}}function yn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}gt(o,a),e.setAttributeNS(t,a,""+o)}}function Ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function _b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:l,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){Ee(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Ee(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){if(!e._valueTracker){var t=_b(e)?"checked":"value";e._valueTracker=cT(e,t,""+e[t])}}function Hb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=_b(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Yc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fo(e){return e.replace(gR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fb(e,t){t.checked===void 0||t.defaultChecked===void 0||Zx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Zx=!0),t.value===void 0||t.defaultValue===void 0||Qx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Qx=!0)}function Bm(e,t,a,o,l,n,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(gt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Ho(t)}else e.value!==""+Ho(t)&&(e.value=""+Ho(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Nm(e,s,Ho(t)):a!=null?Nm(e,s,Ho(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(gt(d,"name"),e.name=""+Ho(d)):e.removeAttribute("name")}function Gb(e,t,a,o,l,n,s,d){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(gt(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){qm(e);return}a=a!=null?""+Ho(a):"",t=t!=null?""+Ho(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(gt(s,"name"),e.name=s),qm(e)}function Nm(e,t,a){t==="number"&&Yc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ii.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Kx||(Kx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Jx||(Jx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Wx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wx=!0)}function $b(){var e=Mt();return e?`
|
|
33
|
+
`+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Eo;ma(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,s)):t(a,o,l,n,s)}finally{ma(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ma(e){G.getCurrentStack=e===null?null:pa,Yl=!1,Eo=e}function Ia(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kt(e){try{return Yt(e),!1}catch(t){return!0}}function Yt(e){return""+e}function gt(e,t){if(Kt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Et(e,t){if(Kt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function De(e){if(Kt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)}function sl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Mu=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function _t(e){if(typeof iR==="function"&&dR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Mu,e)}catch(t){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",t))}}function $c(e){return e>>>=0,e===0?32:31-(cR(e)/fR|0)|0}function Ml(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Jr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~n,o!==0?l=Ml(o):(s&=d,s!==0?l=Ml(s):a||(a=d&~e,a!==0&&(l=Ml(a))))):(d=o&~n,d!==0?l=Ml(d):s!==0?l=Ml(s):a||(a=o&~e,a!==0&&(l=Ml(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function es(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qm(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function ru(){var e=sp;return sp<<=1,(sp&62914560)===0&&(sp=4194304),e}function su(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xc(e,t,a,o,l,n){var s=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{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var A=31-oo(a),E=1<<A;d[A]=0,m[A]=-1;var T=g[A];if(T!==null)for(g[A]=null,A=0;A<T.length;A++){var U=T[A];U!==null&&(U.lane&=-536870913)}a&=~E}o!==0&&ts(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function ts(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-oo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function as(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-oo(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function os(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(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 Mi(e,t,a){if(Zl)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-oo(a),l=1<<o;e[o].add(t),a&=~l}}function Jn(e,t){if(Zl)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-oo(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var s=n.alternate;s!==null&&o.has(s)||o.add(n)}),l.clear()),t&=~e}}function y(e){return e&=-e,Oo!==0&&Oo<e?fl!==0&&fl<e?(e&134217727)!==0?Wl:up:fl:Oo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Wl:Ax(e.type)}function ie(e,t){var a=kt.p;try{return kt.p=e,t()}finally{kt.p=a}}function me(e){delete e[Xa],delete e[lo],delete e[ey],delete e[pR],delete e[mR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=gx(e);e!==null;){if(a=e[Xa])return a;e=gx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[gr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function yt(e){var t=e[Xx];return t||(t=e[Xx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[hd]=!0}function Za(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){Ss[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ss[e]=t;var a=e.toLowerCase();ty[a]=e,e==="onDoubleClick"&&(ty.ondblclick=e);for(e=0;e<t.length;e++)jx.add(t[e])}function er(e,t){hR[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ai(e){if(cl.call(Qx,e))return!0;if(cl.call(Yx,e))return!1;if(gR.test(e))return Qx[e]=!0;return Yx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function _b(e,t,a){if(Ai(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return gt(a,t),e===""+a?a:e}}function jc(e,t,a){if(Ai(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}gt(a,t),e.setAttribute(t,""+a)}}function Yc(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}gt(a,t),e.setAttribute(t,""+a)}}function bn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}gt(o,a),e.setAttributeNS(t,a,""+o)}}function Fo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return De(e),e;default:return""}}function Hb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:l,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){De(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){De(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bm(e){if(!e._valueTracker){var t=Hb(e)?"checked":"value";e._valueTracker=fT(e,t,""+e[t])}}function Fb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Hb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Qc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Go(e){return e.replace(yR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gb(e,t){t.checked===void 0||t.defaultChecked===void 0||Wx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Wx=!0),t.value===void 0||t.defaultValue===void 0||Zx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Zx=!0)}function Nm(e,t,a,o,l,n,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(gt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Fo(t)}else e.value!==""+Fo(t)&&(e.value=""+Fo(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Um(e,s,Fo(t)):a!=null?Um(e,s,Fo(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(gt(d,"name"),e.name=""+Fo(d)):e.removeAttribute("name")}function Vb(e,t,a,o,l,n,s,d){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(gt(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){Bm(e);return}a=a!=null?""+Fo(a):"",t=t!=null?""+Fo(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(gt(s,"name"),e.name=s),Bm(e)}function Um(e,t,a){t==="number"&&Qc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function $b(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?di.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Jx||(Jx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||eL||(eL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Kx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kx=!0)}function Xb(){var e=Mt();return e?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+e+"`.":""}function
|
|
36
|
-
`;if(typeof t==="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),
|
|
37
|
-
`+
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
35
|
+
Check the render method of \``+e+"`.":""}function uu(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{a=""+Fo(a),t=null;for(l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function jb(e,t){for(e=0;e<aL.length;e++){var a=aL[e];if(t[a]!=null){var o=Ra(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Xb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Xb())}}t.value===void 0||t.defaultValue===void 0||tL||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),tL=!0)}function Yb(e,t){t.value===void 0||t.defaultValue===void 0||oL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component"),oL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Qb(e,t,a){if(t!=null&&(t=""+Fo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Fo(a):""}function Zb(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ra(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Fo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Bm(e)}function Wb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Wb(e.children[0],t):e}function Co(e){return" "+" ".repeat(e)}function iu(e){return"+ "+" ".repeat(e)}function ns(e){return"- "+" ".repeat(e)}function Kb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Di(e,t){return lL.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Zc(e,t,a){var o=120-2*a;if(t===null)return iu(a)+Di(e,o)+`
|
|
36
|
+
`;if(typeof t==="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),iu(a)+Di(e,o)+`
|
|
37
|
+
`+ns(a)+Di(t,o)+`
|
|
38
|
+
`}return Co(a)+Di(e,o)+`
|
|
39
|
+
`}function Pm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Ei(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ra(e))return"[...]";if(e.$$typeof===Xl)return(t=Z(e.type))?"<"+t+">":"<...>";var a=Pm(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=Ei(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function du(e,t){return typeof e!=="string"||lL.test(e)?"{"+Ei(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function zm(e,t,a){var o=120-a.length-e.length,l=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var s=du(t[n],120-a.length-n.length-1);o-=n.length+s.length+2,l.push(n+"="+s)}return l.length===0?a+"<"+e+`>
|
|
40
40
|
`:0<o?a+"<"+e+" "+l.join(" ")+`>
|
|
41
41
|
`:a+"<"+e+`
|
|
42
42
|
`+a+" "+l.join(`
|
|
43
43
|
`+a+" ")+`
|
|
44
44
|
`+a+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,o+=
|
|
47
|
-
`):o+=
|
|
48
|
-
`}for(var m in l)l.hasOwnProperty(m)&&(e=
|
|
49
|
-
`);return o}function
|
|
50
|
-
`+
|
|
51
|
-
`:(l+=
|
|
52
|
-
`,l+=
|
|
53
|
-
`)}else l+=
|
|
54
|
-
`}n.forEach(function(E){if(E!=="children"){var T=120-2*(o+1)-E.length-1;l+=
|
|
55
|
-
`}}),l=l===""?
|
|
56
|
-
`:
|
|
57
|
-
`+l+
|
|
58
|
-
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;l+=
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=
|
|
62
|
-
`,t++}else e.serverProps===null?(o=
|
|
63
|
-
`),l=e.serverTail,e.serverProps===null&&t--;for(e=0;e<l.length;e++)n=l[e],g=typeof n==="string"?g+(
|
|
64
|
-
`):g+
|
|
65
|
-
|
|
66
|
-
`+
|
|
45
|
+
`}function pT(e,t,a){var o="",l=rt({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete l[n];var s=120-2*a-n.length-2,d=Ei(e[n],s);t.hasOwnProperty(n)?(s=Ei(t[n],s),o+=iu(a)+n+": "+d+`
|
|
46
|
+
`,o+=ns(a)+n+": "+s+`
|
|
47
|
+
`):o+=iu(a)+n+": "+d+`
|
|
48
|
+
`}for(var m in l)l.hasOwnProperty(m)&&(e=Ei(l[m],120-2*a-m.length-2),o+=ns(a)+m+": "+e+`
|
|
49
|
+
`);return o}function mT(e,t,a,o){var l="",n=new Map;for(g in a)a.hasOwnProperty(g)&&n.set(g.toLowerCase(),g);if(n.size===1&&n.has("children"))l+=zm(e,t,Co(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=120-2*(o+1)-s.length-1,m=n.get(s.toLowerCase());if(m!==void 0){n.delete(s.toLowerCase());var g=t[s];m=a[m];var A=du(g,d);d=du(m,d),typeof g==="object"&&g!==null&&typeof m==="object"&&m!==null&&Pm(g)==="Object"&&Pm(m)==="Object"&&(2<Object.keys(g).length||2<Object.keys(m).length||-1<A.indexOf("...")||-1<d.indexOf("..."))?l+=Co(o+1)+s+`={{
|
|
50
|
+
`+pT(g,m,o+2)+Co(o+1)+`}}
|
|
51
|
+
`:(l+=iu(o+1)+s+"="+A+`
|
|
52
|
+
`,l+=ns(o+1)+s+"="+d+`
|
|
53
|
+
`)}else l+=Co(o+1)+s+"="+du(t[s],d)+`
|
|
54
|
+
`}n.forEach(function(E){if(E!=="children"){var T=120-2*(o+1)-E.length-1;l+=ns(o+1)+E+"="+du(a[E],T)+`
|
|
55
|
+
`}}),l=l===""?Co(o)+"<"+e+`>
|
|
56
|
+
`:Co(o)+"<"+e+`
|
|
57
|
+
`+l+Co(o)+`>
|
|
58
|
+
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;l+=Zc(n,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=e==null?l+Zc(""+t,null,o+1):l+Zc(""+t,void 0,o+1);return l}function Jb(e,t){var a=Kb(e);if(a===null){a="";for(e=e.child;e;)a+=Jb(e,t),e=e.sibling;return a}return Co(t)+"<"+a+`>
|
|
59
|
+
`}function _m(e,t){var a=Wb(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Co(t)+`...
|
|
60
|
+
`+_m(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var l=0;l<o.length;l++){var n=o[l].name;typeof n==="string"&&(a+=Co(t)+"<"+n+`>
|
|
61
|
+
`,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Zc(l,e.serverProps,t),t++;else if(n=Kb(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-n.length-2,d="";for(g in l)if(l.hasOwnProperty(g)&&g!=="children"){var m=du(l[g],15);if(s-=g.length+m.length+2,0>s){d+=" ...";break}d+=" "+g+"="+m}o=Co(o)+"<"+n+d+`>
|
|
62
|
+
`,t++}else e.serverProps===null?(o=zm(n,l,iu(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=mT(n,l,e.serverProps,t),t++);var g="";l=e.fiber.child;for(n=0;l&&n<e.children.length;)s=e.children[n],s.fiber===l?(g+=_m(s,t),n++):g+=Jb(l,t),l=l.sibling;l&&0<e.children.length&&(g+=Co(t)+`...
|
|
63
|
+
`),l=e.serverTail,e.serverProps===null&&t--;for(e=0;e<l.length;e++)n=l[e],g=typeof n==="string"?g+(ns(t)+Di(n,120-2*t)+`
|
|
64
|
+
`):g+zm(n.type,n.props,ns(t));return a+o+g}function Hm(e){try{return`
|
|
65
|
+
|
|
66
|
+
`+_m(e,0)}catch(t){return""}}function e0(e,t,a){for(var o=t,l=null,n=0;o;)o===e&&(n=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return l!==null?Hm(l).replaceAll(/^[+-]/gm,">"):""}function t0(e,t){var a=rt({},e||rL),o={tag:t};if(nL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),vR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),bR.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function a0(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return SR.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function hT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function o0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Fm(e,t){t=t||rL;var a=t.current;if(t=(a=a0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:hT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,ip[t])return!1;ip[t]=!0;var l=(t=Eo)?o0(t.return,o):null,n=t!==null&&l!==null?e0(l,t,null):"",s="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
67
|
This will cause a hydration error.%s`,s,o,a,n)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
68
|
This will cause a hydration error.%s`,s,o,n),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||re(l,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,o,s)})),!1}function
|
|
69
|
+
See this log for the ancestor stack trace.`,o,s)})),!1}function Wc(e,t,a){if(a||a0("#text",t,!1))return!0;if(a="#text|"+t,ip[a])return!1;ip[a]=!0;var o=(a=Eo)?o0(a,t):null;return a=a!==null&&o!==null?e0(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
70
|
This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
-
This will cause a hydration error.%s`,t,a),!1}function Ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function hT(e){return e.replace(LR,function(t,a){return a.toUpperCase()})}function o0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,hT(t.replace(xR,"ms-")))):SR.test(t)?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!uL.test(a)||ay.hasOwnProperty(a)&&ay[a]||(ay[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(uL,""))),typeof a==="number"&&(isNaN(a)?iL||(iL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||dL||(dL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||cL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function l0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=ty[l]||[l],s=0;s<n.length;s++)o[n[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(l=ty[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ty[m]||[m],n=0;n<l.length;n++)d[l[n]]=m;m={};for(var g in o)if(l=o[g],(n=d[g])&&l!==n&&(s=l+","+n,!m[s])){m[s]=!0,s=console;var A=t[l];s.error.call(s,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",l,n)}}for(var E in a)!a.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var T in t)g=t[T],t.hasOwnProperty(T)&&a[T]!==g&&o0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&o0(e,o,t[o])}function Oi(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}}function n0(e){return CR.get(e)||e}function gT(e,t){if(dl.call(Du,t)&&Du[t])return!0;if(wR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=fL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Du[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0}if(kR.test(t)){if(e=t.toLowerCase(),e=fL.hasOwnProperty(e)?e:null,e==null)return Du[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0)}return!0}function yT(e,t){var a=[],o;for(o in t)gT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function bT(e,t,a,o){if(dl.call(lo,t)&&lo[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),lo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),lo[t]=!0;if(mL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(mL.test(t))return TR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(IR.test(t)||RR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),lo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),lo[t]=!0;if(dp.hasOwnProperty(l)){if(l=dp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),lo[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),lo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),lo[t]=!0}case"function":case"symbol":return lo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),lo[t]=!0}}return!0}function vT(e,t,a){var o=[],l;for(l in t)bT(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function qi(e){return MR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}function Fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function r0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[oo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bm(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;gt(t,"name"),a=a.querySelectorAll('input[name="'+Fo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[oo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Bm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Hb(o)}break e;case"textarea":Yb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&su(e,!!a.multiple,t,!1)}}}function s0(e,t,a){if(oy)return e(t,a);oy=!0;try{var o=e(t);return o}finally{if(oy=!1,Eu!==null||Ou!==null){if(vu(),Eu&&(t=Eu,e=Ou,Ou=Eu=null,r0(t),e))for(t=0;t<e.length;t++)r0(e[t])}}}function Bi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[oo]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function u0(){if(cp)return cp;var e,t=ny,a=t.length,o,l="value"in gr?gr.value:gr.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===l[n-o];o++);return cp=l.slice(e,1<o?1-o:void 0)}function Wc(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 Kc(){return!0}function i0(){return!1}function fo(e){function t(a,o,l,n,s){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(n):n[d]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Kc:i0,this.isPropagationStopped=i0,this}return rt(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=Kc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),t}function ST(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FR[e])?!!t[e]:!1}function Gm(){return ST}function d0(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==bL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function xT(e,t){switch(e){case"compositionend":return c0(t);case"keypress":if(t.which!==SL)return null;return LL=!0,xL;case"textInput":return e=t.data,e===xL&&LL?null:e;default:return null}}function LT(e,t){if(qu)return e==="compositionend"||!iy&&d0(e,t)?(e=u0(),cp=ny=gr=null,qu=!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 vL&&t.locale!=="ko"?null:t.data;default:return null}}function f0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aM[e.type]:t==="textarea"?!0:!1}function CT(e){if(!Wl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function p0(e,t,a,o){Eu?Ou?Ou.push(o):Ou=[o]:Eu=o,t=$f(t,"onChange"),0<t.length&&(a=new fp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function kT(e){QS(e,0)}function Jc(e){var t=Xe(e);if(Hb(t))return e}function m0(e,t){if(e==="change")return t}function h0(){Sd&&(Sd.detachEvent("onpropertychange",g0),xd=Sd=null)}function g0(e){if(e.propertyName==="value"&&Jc(xd)){var t=[];p0(t,xd,e,Fm(e)),s0(kT,t)}}function wT(e,t,a){e==="focusin"?(h0(),Sd=t,xd=a,Sd.attachEvent("onpropertychange",g0)):e==="focusout"&&h0()}function TT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(xd)}function IT(e,t){if(e==="click")return Jc(t)}function RT(e,t){if(e==="input"||e==="change")return Jc(t)}function MT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ni(e,t){if(no(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!dl.call(t,l)||!no(e[l],t[l]))return!1}return!0}function y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function b0(e,t){var a=y0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=y0(a)}}function v0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Yc(e.document)}return t}function Vm(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")}function x0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cy||Bu==null||Bu!==Yc(o)||(o=Bu,("selectionStart"in o)&&Vm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ld&&Ni(Ld,o)||(Ld=o,o=$f(dy,"onSelect"),0<o.length&&(t=new fp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Bu)))}function ns(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function rs(e){if(fy[e])return fy[e];if(!Nu[e])return e;var t=Nu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in kL)return fy[e]=t[a];return e}function sl(e,t){ML.set(e,t),Za(t,[e])}function AT(e){for(var t=mp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ra(o)&&o.length===2&&typeof o[0]==="string"){if(t!==mp&&t!==yy)return hy;t=yy}else return hy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==mp&&t!==gy)return hy;t=gy}}return t}function $m(e,t,a,o){for(var l in e)dl.call(e,l)&&l[0]!=="_"&&Ml(l,e[l],t,a,o)}function Ml(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===$l){var n=Z(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+n+" … />";break}a.push([l+" ".repeat(o)+e,"<"+n]),s!==null&&Ml("key",s,a,o+1,l),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ra(t.children)||0<t.children.length)&&(e=!0):dl.call(t,g)&&g[0]!=="_"&&Ml(g,t[g],a,o+1,l);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(g=AT(t),g===gy||g===mp){t=JSON.stringify(t);break}else if(g===yy){a.push([l+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Ml(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Ml(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Ml(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}n==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(n=g.constructor.name),a.push([l+" ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&$m(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===iM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+" ".repeat(o)+e,t])}function L0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([hp+" ".repeat(o)+s,"…"]),l=!1);for(var n in t)if(n in e){var s=e[n],d=t[n];if(s!==d){if(o===0&&n==="children")l=" ".repeat(o)+n,a.push([hp+l,"…"],[gp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===$l){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l=" ".repeat(o)+n,s="<"+s+" … />",a.push([hp+l,s],[gp+l,s]),l=!1;continue}}else{var m=Object.prototype.toString.call(s),g=Object.prototype.toString.call(d);if(m===g&&(g==="[object Object]"||g==="[object Array]")){m=[EL+" ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,L0(s,d,a,o+1)?g===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),g=Function.prototype.toString.call(d),m===g)){s=d.name===""?"() => {}":d.name+"() {}",a.push([EL+" ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Ml(n,s,a,o,hp),Ml(n,d,a,o,gp)}l=!1}}else a.push([gp+" ".repeat(o)+n,"…"]),l=!1;return l}function Co(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Al(e,t,a,o){Gt&&(br.start=t,br.end=a,In.color="warning",In.tooltipText=o,In.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,br)):performance.measure(o,br))}function ef(e,t,a){Al(e,t,a,"Reconnect")}function tf(e,t,a,o,l){var n=X(e);if(n!==null&&Gt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;d=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(m=[dM],g=L0(s.memoizedProps,g,m,0),1<m.length&&(g&&!yr&&(s.lanes&l)===0&&100<e.actualDuration?(yr=!0,m[0]=cM,In.color="warning",In.tooltipText=OL):(In.color=o,In.tooltipText=n),In.properties=m,br.start=t,br.end=a,d!=null?d.run(performance.measure.bind(performance,""+n,br)):performance.measure(""+n,br))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,o)):console.timeStamp(n,t,a,Vo,void 0,o)}}function Xm(e,t,a,o){if(Gt){var l=X(e);if(l!==null){for(var n=null,s=[],d=0;d<o.length;d++){var m=o[d];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&Ml("key",e.key,s,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},n?n.run(performance.measure.bind(performance,""+l,e)):performance.measure(""+l,e)}}}function Dl(e,t,a,o,l){if(l!==null){if(Gt){var n=X(e);if(n!==null){o=[];for(var s=0;s<l.length;s++){var d=l[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&Ml("key",e.key,o,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+n,t)):performance.measure(""+n,t)}}}else n=X(e),n!==null&&Gt&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,l)):console.timeStamp(n,t,a,Vo,void 0,l))}function DT(e,t,a,o){if(Gt&&!(t<=e)){var l=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,it,st,l)):console.timeStamp(a,e,t,it,st,l)}}function C0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function k0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function ET(e,t,a,o,l,n){if(Gt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function jm(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function OT(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function w0(e,t,a,o,l){if(Gt&&!(t<=e)){for(var n=[],s=0;s<a.length;s++){var d=a[s].value;n.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ui(e,t,a){!Gt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,it,st,"secondary-dark")):console.timeStamp("Animating",e,t,it,st,"secondary-dark"))}function af(){for(var e=Uu,t=by=Uu=0;t<e;){var a=$o[t];$o[t++]=null;var o=$o[t];$o[t++]=null;var l=$o[t];$o[t++]=null;var n=$o[t];if($o[t++]=null,o!==null&&l!==null){var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}n!==0&&T0(a,l,n)}}function of(e,t,a,o){$o[Uu++]=e,$o[Uu++]=t,$o[Uu++]=a,$o[Uu++]=o,by|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ym(e,t,a,o){return of(e,t,a,o),lf(e)}function Wa(e,t){return of(e,null,null,t),lf(e)}function T0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&Cd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-ao(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function lf(e){if(Zd>TM)throw Bs=Zd=0,Wd=Wy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Bs>IM&&(Bs=0,Wd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&FS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&FS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ss(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e:t.current}function Qm(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ss(e.render),e.render!==t)?(t={$$typeof:cd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function I0(e,t){if(Xo===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:l===Ao&&(o=!0);break;case 11:l===cd?o=!0:l===Ao&&(o=!0);break;case 14:case 15:l===ap?o=!0:l===Ao&&(o=!0);break;default:return!1}return o&&(e=Xo(a),e!==void 0&&e===Xo(t))?!0:!1}function R0(e){Xo!==null&&typeof WeakSet==="function"&&(Pu===null&&(Pu=new WeakSet),Pu.add(e))}function M0(e,t,a){do{var o=e,l=o.alternate,n=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Xo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=Xo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),Pu!==null&&(Pu.has(e)||l!==null&&Pu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||M0(n,t,a),s===null)break;e=s}while(1)}function qT(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,qL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var a=e.alternate;switch(a===null?(a=C(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=ss(e.type);break;case 1:a.type=ss(e.type);break;case 11:a.type=Qm(e.type)}return a}function A0(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Wm(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Zm(e)&&(s=1),d=ss(d);else if(typeof e==="string")s=ke(),s=GI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Gg:return t=C(31,a,t,l),t.elementType=Gg,t.lanes=n,t;case Tu:return us(a.children,l,n,t);case tp:s=8,l|=Ja,l|=fl;break;case zg:return e=a,o=l,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=C(12,e,t,o|tt),t.elementType=zg,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Hg:return t=C(13,a,t,l),t.elementType=Hg,t.lanes=n,t;case Fg:return t=C(19,a,t,l),t.elementType=Fg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Xl:s=10;break e;case _g:s=9;break e;case cd:s=11,d=Qm(d);break e;case ap:s=14;break e;case Ao:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ra(e)?a="array":e!==void 0&&e.$$typeof===$l?(a="<"+(Z(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?W(o):null)&&(d+=`
|
|
71
|
+
This will cause a hydration error.%s`,t,a),!1}function Oi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function gT(e){return e.replace(CR,function(t,a){return a.toUpperCase()})}function l0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,gT(t.replace(LR,"ms-")))):xR.test(t)?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!iL.test(a)||oy.hasOwnProperty(a)&&oy[a]||(oy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(iL,""))),typeof a==="number"&&(isNaN(a)?dL||(dL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||cL||(cL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||fL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function n0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=ay[l]||[l],s=0;s<n.length;s++)o[n[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(l=ay[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ay[m]||[m],n=0;n<l.length;n++)d[l[n]]=m;m={};for(var g in o)if(l=o[g],(n=d[g])&&l!==n&&(s=l+","+n,!m[s])){m[s]=!0,s=console;var A=t[l];s.error.call(s,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",l,n)}}for(var E in a)!a.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var T in t)g=t[T],t.hasOwnProperty(T)&&a[T]!==g&&l0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&l0(e,o,t[o])}function qi(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}}function r0(e){return kR.get(e)||e}function yT(e,t){if(cl.call(Eu,t)&&Eu[t])return!0;if(TR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=pL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Eu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0}if(wR.test(t)){if(e=t.toLowerCase(),e=pL.hasOwnProperty(e)?e:null,e==null)return Eu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0)}return!0}function bT(e,t){var a=[],o;for(o in t)yT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function vT(e,t,a,o){if(cl.call(no,t)&&no[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),no[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),no[t]=!0;if(hL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),no[t]=!0}else if(hL.test(t))return IR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),no[t]=!0;if(RR.test(t)||MR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),no[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),no[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),no[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),no[t]=!0;if(cp.hasOwnProperty(l)){if(l=cp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),no[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),no[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),no[t]=!0}case"function":case"symbol":return no[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),no[t]=!0}}return!0}function ST(e,t,a){var o=[],l;for(l in t)vT(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Bi(e){return AR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vn(){}function Gm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function s0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nm(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;gt(t,"name"),a=a.querySelectorAll('input[name="'+Go(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[lo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Nm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Fb(o)}break e;case"textarea":Qb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&uu(e,!!a.multiple,t,!1)}}}function u0(e,t,a){if(ly)return e(t,a);ly=!0;try{var o=e(t);return o}finally{if(ly=!1,Ou!==null||qu!==null){if(Su(),Ou&&(t=Ou,e=qu,qu=Ou=null,s0(t),e))for(t=0;t<e.length;t++)s0(e[t])}}}function Ni(e,t){var a=e.stateNode;if(a===null)return null;var o=a[lo]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function i0(){if(fp)return fp;var e,t=ry,a=t.length,o,l="value"in yr?yr.value:yr.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===l[n-o];o++);return fp=l.slice(e,1<o?1-o:void 0)}function Kc(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 Jc(){return!0}function d0(){return!1}function po(e){function t(a,o,l,n,s){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(n):n[d]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Jc:d0,this.isPropagationStopped=d0,this}return rt(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=Jc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Jc)},persist:function(){},isPersistent:Jc}),t}function xT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GR[e])?!!t[e]:!1}function Vm(){return xT}function c0(e,t){switch(e){case"keyup":return tM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==vL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function LT(e,t){switch(e){case"compositionend":return f0(t);case"keypress":if(t.which!==xL)return null;return CL=!0,LL;case"textInput":return e=t.data,e===LL&&CL?null:e;default:return null}}function CT(e,t){if(Bu)return e==="compositionend"||!dy&&c0(e,t)?(e=i0(),fp=ry=yr=null,Bu=!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 SL&&t.locale!=="ko"?null:t.data;default:return null}}function p0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oM[e.type]:t==="textarea"?!0:!1}function kT(e){if(!Kl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function m0(e,t,a,o){Ou?qu?qu.push(o):qu=[o]:Ou=o,t=Xf(t,"onChange"),0<t.length&&(a=new pp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function wT(e){ZS(e,0)}function ef(e){var t=Xe(e);if(Fb(t))return e}function h0(e,t){if(e==="change")return t}function g0(){xd&&(xd.detachEvent("onpropertychange",y0),Ld=xd=null)}function y0(e){if(e.propertyName==="value"&&ef(Ld)){var t=[];m0(t,Ld,e,Gm(e)),u0(wT,t)}}function TT(e,t,a){e==="focusin"?(g0(),xd=t,Ld=a,xd.attachEvent("onpropertychange",y0)):e==="focusout"&&g0()}function IT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ef(Ld)}function RT(e,t){if(e==="click")return ef(t)}function MT(e,t){if(e==="input"||e==="change")return ef(t)}function AT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ui(e,t){if(ro(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!cl.call(t,l)||!ro(e[l],t[l]))return!1}return!0}function b0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v0(e,t){var a=b0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=b0(a)}}function S0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Qc(e.document)}return t}function $m(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")}function L0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fy||Nu==null||Nu!==Qc(o)||(o=Nu,("selectionStart"in o)&&$m(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Cd&&Ui(Cd,o)||(Cd=o,o=Xf(cy,"onSelect"),0<o.length&&(t=new pp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Nu)))}function rs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ss(e){if(py[e])return py[e];if(!Uu[e])return e;var t=Uu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in wL)return py[e]=t[a];return e}function ul(e,t){AL.set(e,t),Za(t,[e])}function DT(e){for(var t=hp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ra(o)&&o.length===2&&typeof o[0]==="string"){if(t!==hp&&t!==by)return gy;t=by}else return gy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==hp&&t!==yy)return gy;t=yy}}return t}function Xm(e,t,a,o){for(var l in e)cl.call(e,l)&&l[0]!=="_"&&Al(l,e[l],t,a,o)}function Al(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Xl){var n=Z(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+n+" … />";break}a.push([l+" ".repeat(o)+e,"<"+n]),s!==null&&Al("key",s,a,o+1,l),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ra(t.children)||0<t.children.length)&&(e=!0):cl.call(t,g)&&g[0]!=="_"&&Al(g,t[g],a,o+1,l);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(g=DT(t),g===yy||g===hp){t=JSON.stringify(t);break}else if(g===by){a.push([l+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Al(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Al(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Al(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}n==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(n=g.constructor.name),a.push([l+" ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&Xm(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===dM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+" ".repeat(o)+e,t])}function C0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([gp+" ".repeat(o)+s,"…"]),l=!1);for(var n in t)if(n in e){var s=e[n],d=t[n];if(s!==d){if(o===0&&n==="children")l=" ".repeat(o)+n,a.push([gp+l,"…"],[yp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===Xl){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l=" ".repeat(o)+n,s="<"+s+" … />",a.push([gp+l,s],[yp+l,s]),l=!1;continue}}else{var m=Object.prototype.toString.call(s),g=Object.prototype.toString.call(d);if(m===g&&(g==="[object Object]"||g==="[object Array]")){m=[OL+" ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,C0(s,d,a,o+1)?g===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),g=Function.prototype.toString.call(d),m===g)){s=d.name===""?"() => {}":d.name+"() {}",a.push([OL+" ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Al(n,s,a,o,gp),Al(n,d,a,o,yp)}l=!1}}else a.push([yp+" ".repeat(o)+n,"…"]),l=!1;return l}function ko(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Dl(e,t,a,o){Gt&&(vr.start=t,vr.end=a,Rn.color="warning",Rn.tooltipText=o,Rn.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,vr)):performance.measure(o,vr))}function tf(e,t,a){Dl(e,t,a,"Reconnect")}function af(e,t,a,o,l){var n=X(e);if(n!==null&&Gt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;d=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(m=[cM],g=C0(s.memoizedProps,g,m,0),1<m.length&&(g&&!br&&(s.lanes&l)===0&&100<e.actualDuration?(br=!0,m[0]=fM,Rn.color="warning",Rn.tooltipText=qL):(Rn.color=o,Rn.tooltipText=n),Rn.properties=m,vr.start=t,vr.end=a,d!=null?d.run(performance.measure.bind(performance,""+n,vr)):performance.measure(""+n,vr))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,$o,void 0,o)):console.timeStamp(n,t,a,$o,void 0,o)}}function jm(e,t,a,o){if(Gt){var l=X(e);if(l!==null){for(var n=null,s=[],d=0;d<o.length;d++){var m=o[d];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&Al("key",e.key,s,0,""),e.memoizedProps!==null&&Xm(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},n?n.run(performance.measure.bind(performance,""+l,e)):performance.measure(""+l,e)}}}function El(e,t,a,o,l){if(l!==null){if(Gt){var n=X(e);if(n!==null){o=[];for(var s=0;s<l.length;s++){var d=l[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&Al("key",e.key,o,0,""),e.memoizedProps!==null&&Xm(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+n,t)):performance.measure(""+n,t)}}}else n=X(e),n!==null&&Gt&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,$o,void 0,l)):console.timeStamp(n,t,a,$o,void 0,l))}function ET(e,t,a,o){if(Gt&&!(t<=e)){var l=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,it,st,l)):console.timeStamp(a,e,t,it,st,l)}}function k0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function w0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function OT(e,t,a,o,l,n){if(Gt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Ym(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function qT(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function T0(e,t,a,o,l){if(Gt&&!(t<=e)){for(var n=[],s=0;s<a.length;s++){var d=a[s].value;n.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Pi(e,t,a){!Gt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,it,st,"secondary-dark")):console.timeStamp("Animating",e,t,it,st,"secondary-dark"))}function of(){for(var e=Pu,t=vy=Pu=0;t<e;){var a=Xo[t];Xo[t++]=null;var o=Xo[t];Xo[t++]=null;var l=Xo[t];Xo[t++]=null;var n=Xo[t];if(Xo[t++]=null,o!==null&&l!==null){var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}n!==0&&I0(a,l,n)}}function lf(e,t,a,o){Xo[Pu++]=e,Xo[Pu++]=t,Xo[Pu++]=a,Xo[Pu++]=o,vy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Qm(e,t,a,o){return lf(e,t,a,o),nf(e)}function Wa(e,t){return lf(e,null,null,t),nf(e)}function I0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&kd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-oo(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function nf(e){if(Wd>IM)throw Ns=Wd=0,Kd=Ky=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ns>RM&&(Ns=0,Kd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&GS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&GS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function us(e){if(jo===null)return e;var t=jo(e);return t===void 0?e:t.current}function Zm(e){if(jo===null)return e;var t=jo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=us(e.render),e.render!==t)?(t={$$typeof:fd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function R0(e,t){if(jo===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:l===Do&&(o=!0);break;case 11:l===fd?o=!0:l===Do&&(o=!0);break;case 14:case 15:l===op?o=!0:l===Do&&(o=!0);break;default:return!1}return o&&(e=jo(a),e!==void 0&&e===jo(t))?!0:!1}function M0(e){jo!==null&&typeof WeakSet==="function"&&(zu===null&&(zu=new WeakSet),zu.add(e))}function A0(e,t,a){do{var o=e,l=o.alternate,n=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(jo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=jo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),zu!==null&&(zu.has(e)||l!==null&&zu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||A0(n,t,a),s===null)break;e=s}while(1)}function BT(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,BL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Wm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var a=e.alternate;switch(a===null?(a=C(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=us(e.type);break;case 1:a.type=us(e.type);break;case 11:a.type=Zm(e.type)}return a}function D0(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Km(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Wm(e)&&(s=1),d=us(d);else if(typeof e==="string")s=ke(),s=VI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Vg:return t=C(31,a,t,l),t.elementType=Vg,t.lanes=n,t;case Iu:return is(a.children,l,n,t);case ap:s=8,l|=Ja,l|=pl;break;case _g:return e=a,o=l,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=C(12,e,t,o|tt),t.elementType=_g,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Fg:return t=C(13,a,t,l),t.elementType=Fg,t.lanes=n,t;case Gg:return t=C(19,a,t,l),t.elementType=Gg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case jl:s=10;break e;case Hg:s=9;break e;case fd:s=11,d=Zm(d);break e;case op:s=14;break e;case Do:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ra(e)?a="array":e!==void 0&&e.$$typeof===Xl?(a="<"+(Z(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?W(o):null)&&(d+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=C(s,a,t,l),t.elementType=e,t.type=d,t.lanes=n,t._debugOwner=o,t}function
|
|
73
|
+
Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=C(s,a,t,l),t.elementType=e,t.type=d,t.lanes=n,t._debugOwner=o,t}function rf(e,t,a){return t=Km(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function is(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function Jm(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function E0(e){var t=C(18,null,null,Pe);return t.stateNode=e,t}function eh(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wo(e,t){if(typeof e==="object"&&e!==null){var a=Sy.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:V(t)},Sy.set(e,t),t}return{value:e,source:t,stack:V(t)}}function xn(e,t){tr(),_u[Hu++]=wd,_u[Hu++]=bp,bp=e,wd=t}function O0(e,t,a){tr(),Yo[Qo++]=An,Yo[Qo++]=Dn,Yo[Qo++]=Ls,Ls=e;var o=An;e=Dn;var l=32-oo(o)-1;o&=~(1<<l),a+=1;var n=32-oo(t)+l;if(30<n){var s=l-l%5;n=(o&(1<<s)-1).toString(32),o>>=s,l-=s,An=1<<32-oo(t)+l|a<<l|o,Dn=n+e}else An=1<<n|a<<l|o,Dn=e}function th(e){tr(),e.return!==null&&(xn(e,1),O0(e,1,0))}function ah(e){for(;e===bp;)bp=_u[--Hu],_u[Hu]=null,wd=_u[--Hu],_u[Hu]=null;for(;e===Ls;)Ls=Yo[--Qo],Yo[Qo]=null,Dn=Yo[--Qo],Yo[Qo]=null,An=Yo[--Qo],Yo[Qo]=null}function q0(){return tr(),Ls!==null?{id:An,overflow:Dn}:null}function B0(e,t){tr(),Yo[Qo++]=An,Yo[Qo++]=Dn,Yo[Qo++]=Ls,An=t.id,Dn=t.overflow,Ls=e}function tr(){dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ds(e,t){if(e.return===null){if(qo===null)qo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(qo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");qo.distanceFromLeaf>t&&(qo.distanceFromLeaf=t)}return qo}var a=ds(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function N0(){dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function sf(e,t){Jl||(e=ds(e,0),e.serverProps=null,t!==null&&(t=mx(t),e.serverTail.push(t)))}function ar(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=qo;throw o!==null&&(qo=null,a=Hm(o)),zi(wo(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
74
|
|
|
75
75
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
76
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -80,7 +80,7 @@ Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: ex
|
|
|
80
80
|
|
|
81
81
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
82
|
|
|
83
|
-
https://react.dev/link/hydration-mismatch`+a),e)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+a),e)),xy}function U0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Xa]=e,t[lo]=o,Lg(a,o),a){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(a=0;a<Jd.length;a++)ft(Jd[a],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":er("input",o),ft("invalid",t),Gb(t,o),Vb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":$b(t,o);break;case"select":er("select",o),ft("invalid",t),jb(t,o);break;case"textarea":er("textarea",o),ft("invalid",t),Yb(t,o),Zb(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||ex(t.textContent,a)?(o.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),o.onScroll!=null&&ft("scroll",t),o.onScrollEnd!=null&&ft("scrollend",t),o.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||ar(e,!0)}function P0(e){for(ja=e.return;ja;)switch(ja.tag){case 5:case 31:case 13:Zo=!1;return;case 27:case 3:Zo=!0;return;default:ja=ja.return}}function cu(e){if(e!==ja)return!1;if(!dt)return P0(e),dt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Ig(e.type,e.memoizedProps);a=!a}if(a&&Vt){for(a=Vt;a;){var o=ds(e,0),l=mx(a);o.serverTail.push(l),a=l.type==="Suspense"?Dg(a):Ao(a.nextSibling)}ar(e)}if(P0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Dg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Dg(e)}else t===27?(t=Vt,fr(e.type)?(e=db,db=null,Vt=e):Vt=t):Vt=ja?Ao(e.stateNode.nextSibling):null;return!0}function cs(){Vt=ja=null,Jl=dt=!1}function oh(){var e=xr;return e!==null&&(co===null?co=e:co.push.apply(co,e),xr=null),e}function zi(e){xr===null?xr=[e]:xr.push(e)}function lh(){var e=qo;if(e!==null){qo=null;for(var t=Hm(e);0<e.children.length;)e=e.children[0];re(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
84
|
|
|
85
85
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
86
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -90,45 +90,45 @@ https://react.dev/link/hydration-mismatch`+a),e)),Sy}function N0(e){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function uf(){Fu=vp=null,Gu=!1}function or(e,t,a){Ce(Ly,t._currentValue,e),t._currentValue=a,Ce(Cy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==UL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=UL}function Ln(e,t){e._currentValue=Ly.current;var a=Cy.current;Be(Cy,t),e._currentRenderer=a,Be(Ly,t)}function nh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function rh(e,t,a,o){var l=e.child;l!==null&&(l.return=e);for(;l!==null;){var n=l.dependencies;if(n!==null){var s=l.child;n=n.firstContext;e:for(;n!==null;){var d=n;n=l;for(var m=0;m<t.length;m++)if(d.context===t[m]){n.lanes|=a,d=n.alternate,d!==null&&(d.lanes|=a),nh(n.return,a,e),o||(s=null);break e}n=d.next}}else if(l.tag===18){if(s=l.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),nh(s,a,e),s=null}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}}function fu(e,t,a,o){e=null;for(var l=t,n=!1;l!==null;){if(!n){if((l.flags&524288)!==0)n=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var s=l.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var d=l.type;ro(l.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(l===lp.current){if(s=l.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(lc):e=[lc])}l=l.return}e!==null&&rh(t,e,a,o),t.flags|=262144}function df(e){for(e=e.firstContext;e!==null;){if(!ro(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fs(e){vp=e,Fu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return Gu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),z0(vp,e)}function cf(e,t){return vp===null&&fs(e),z0(e,t)}function z0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fu===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Fu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Fu=Fu.next=t;return a}function sh(){return{controller:new hM,data:new Map,refCount:0}}function ps(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function _i(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&gM(yM,function(){e.controller.abort()})}function Ol(e,t,a){if((e&127)!==0)0>en&&(en=Sa(),Id=Sp(t),ky=t,a!=null&&(wy=X(a)),(ht&(Aa|Uo))!==Pa&&(la=!0,kr=Td),e=sd(),t=rd(),e!==Vu||t!==Rd?Vu=-1.1:t!==null&&(kr=Td),ks=e,Rd=t);else if((e&4194048)!==0&&0>Wo&&(Wo=Sa(),Md=Sp(t),PL=t,a!=null&&(zL=X(a)),0>qn)){if(e=sd(),t=rd(),e!==Tr||t!==ws)Tr=-1.1;wr=e,ws=t}}function NT(e){if(0>en){en=Sa(),Id=e._debugTask!=null?e._debugTask:null,(ht&(Aa|Uo))!==Pa&&(kr=Td);var t=sd(),a=rd();t!==Vu||a!==Rd?Vu=-1.1:a!==null&&(kr=Td),ks=t,Rd=a}if(0>Wo&&(Wo=Sa(),Md=e._debugTask!=null?e._debugTask:null,0>qn)){if(e=sd(),t=rd(),e!==Tr||t!==ws)Tr=-1.1;wr=e,ws=t}}function Cn(){var e=Cs;return Cs=0,e}function ff(e){var t=Cs;return Cs=e,t}function Hi(e){var t=Cs;return Cs+=e,t}function pf(){Ne=Oe=-1.1}function To(){var e=Oe;return Oe=-1.1,e}function Io(e){0<=e&&(Oe=e)}function ql(){var e=Jt;return Jt=-0,e}function Bl(e){0<=e&&(Jt=e)}function Nl(){var e=Zt;return Zt=null,e}function Ul(){var e=la;return la=!1,e}function uh(e){so=Sa(),0>e.actualStartTime&&(e.actualStartTime=so)}function ih(e){if(0<=so){var t=Sa()-so;e.actualDuration+=t,e.selfBaseDuration=t,so=-1}}function _0(e){if(0<=so){var t=Sa()-so;e.actualDuration+=t,so=-1}}function Pl(){if(0<=so){var e=Sa(),t=e-so;so=-1,Cs+=t,Jt+=t,Ne=e}}function H0(e){Zt===null&&(Zt=[]),Zt.push(e),On===null&&(On=[]),On.push(e)}function zl(){so=Sa(),0>Oe&&(Oe=so)}function Fi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function UT(e,t){if(Dd===null){var a=Dd=[];Iy=0,Ts=bg(),$u={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Iy++,t.then(F0,F0),t}function F0(){if(--Iy===0&&(-1<Wo||(qn=-1.1),Dd!==null)){$u!==null&&($u.status="fulfilled");var e=Dd;Dd=null,Ts=0,$u=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function PT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){o.status="rejected",o.reason=l;for(l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function dh(){var e=Is.current;return e!==null?e:Pt.pooledCache}function mf(e,t){t===null?Ce(Is,Is.current,e):Ce(Is,t.pool,e)}function G0(){var e=dh();return e===null?null:{parent:va._currentValue,pool:e}}function V0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function $0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function X0(e,t,a){G.actQueue!==null&&(G.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(vn,vn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var l={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Y0(e),e;default:if(typeof t.status==="string")t.then(vn,vn);else{if(e=Pt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Y0(e),e}throw Ms=t,Pd=!0,Xu}}function lr(e){try{return xM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Ms=t,Pd=!0,Xu;throw t}}function j0(){if(Ms===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ms;return Ms=null,Pd=!1,e}function Y0(e){if(e===Xu||e===Rp)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ga(e){var t=at;return e!=null&&(at=t===null?e:t.concat(e)),t}function ch(){var e=at;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function hf(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var n=o[l];if(n!=="children"&&n!=="key"){t===null&&(t=rf(e,a.mode,0),t._debugInfo=at,t.return=a),re(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},n);break}}}function gf(e){var t=zd;return zd+=1,ju===null&&(ju=V0()),X0(ju,e,t)}function Gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Q0(e,t){if(t.$$typeof===eR)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function yf(e,t){var a=ch();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function Z0(e,t){var a=X(e)||"Component";nC[a]||(nC[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
97
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
-
<%s>{%s}</%s>`,t,t,a,t,a))}function
|
|
98
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function bf(e,t){var a=ch();a!==null?a.run(Z0.bind(null,e,t)):Z0(e,t)}function W0(e,t){var a=X(e)||"Component";rC[a]||(rC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,a,t,a))}function bf(e,t){var a=dh();a!==null?a.run(Z0.bind(null,e,t)):Z0(e,t)}function W0(e){function t(w,I){if(e){var M=w.deletions;M===null?(w.deletions=[I],w.flags|=16):M.push(I)}}function a(w,I){if(!e)return null;for(;I!==null;)t(w,I),I=I.sibling;return null}function o(w){for(var I=new Map;w!==null;)w.key!==null?I.set(w.key,w):I.set(w.index,w),w=w.sibling;return I}function l(w,I){return w=vn(w,I),w.index=0,w.sibling=null,w}function n(w,I,M){if(w.index=M,!e)return w.flags|=1048576,I;if(M=w.alternate,M!==null)return M=M.index,M<I?(w.flags|=67108866,I):M;return w.flags|=67108866,I}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,I,M,Q){if(I===null||I.tag!==6)return I=Km(M,w.mode,Q),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function m(w,I,M,Q){var he=M.type;if(he===Tu)return I=A(w,I,M.props.children,Q,M.key),mf(M,I,w),I;if(I!==null&&(I.elementType===he||I0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Ao&&or(he)===I.type))return I=l(I,M.props),Fi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=nf(M,w.mode,Q),Fi(I,M),I.return=w,I._debugInfo=at,I}function g(w,I,M,Q){if(I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation)return I=Jm(M,w.mode,Q),I.return=w,I._debugInfo=at,I;return I=l(I,M.children||[]),I.return=w,I._debugInfo=at,I}function A(w,I,M,Q,he){if(I===null||I.tag!==7)return I=us(M,w.mode,Q,he),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function E(w,I,M){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=Km(""+I,w.mode,M),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case $l:return M=nf(I,w.mode,M),Fi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case wu:return I=Jm(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Ao:var Q=Ga(I._debugInfo);return I=or(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=us(I,w.mode,M,null),M.return=w,M._debugOwner=w,M._debugTask=w._debugTask,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;if(typeof I.then==="function")return Q=Ga(I._debugInfo),w=E(w,hf(I),M),at=Q,w;if(I.$$typeof===Xl)return E(w,df(w,I),M);gf(w,I)}return typeof I==="function"&&yf(w,I),typeof I==="symbol"&&bf(w,I),null}function T(w,I,M,Q){var he=I!==null?I.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he!==null?null:d(w,I,""+M,Q);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case wu:return M.key===he?g(w,I,M,Q):null;case Ao:return he=Ga(M._debugInfo),M=or(M),w=T(w,I,M,Q),at=he,w}if(Ra(M)||ee(M)){if(he!==null)return null;return he=Ga(M._debugInfo),w=A(w,I,M,Q,null),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=T(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return T(w,I,df(w,M),Q);gf(w,M)}return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),null}function U(w,I,M,Q,he){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return w=w.get(M)||null,d(I,w,""+Q,he);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case $l:return M=w.get(Q.key===null?M:Q.key)||null,w=Ga(Q._debugInfo),I=m(I,M,Q,he),at=w,I;case wu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Ao:var Ge=Ga(Q._debugInfo);return Q=or(Q),I=U(w,I,M,Q,he),at=Ge,I}if(Ra(Q)||ee(Q))return M=w.get(M)||null,w=Ga(Q._debugInfo),I=A(I,M,Q,he,null),at=w,I;if(typeof Q.then==="function")return Ge=Ga(Q._debugInfo),I=U(w,I,M,hf(Q),he),at=Ge,I;if(Q.$$typeof===Xl)return U(w,I,M,df(I,Q),he);gf(I,Q)}return typeof Q==="function"&&yf(I,Q),typeof Q==="symbol"&&bf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case $l:case wu:h(w,I,M);var he=M.key;if(typeof he!=="string")break;if(Q===null){Q=new Set,Q.add(he);break}if(!Q.has(he)){Q.add(he);break}re(I,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case Ao:M=or(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,De=null,Te=I,We=I=0,$t=null;Te!==null&&We<M.length;We++){Te.index>We?($t=Te,Te=null):$t=Te.sibling;var ga=T(w,Te,M[We],Q);if(ga===null){Te===null&&(Te=$t);break}he=de(w,ga,M[We],he),e&&Te&&ga.alternate===null&&t(w,Te),I=n(ga,I,We),De===null?Ge=ga:De.sibling=ga,De=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&Sn(w,We),Ge;if(Te===null){for(;We<M.length;We++)Te=E(w,M[We],Q),Te!==null&&(he=de(w,Te,M[We],he),I=n(Te,I,We),De===null?Ge=Te:De.sibling=Te,De=Te);return dt&&Sn(w,We),Ge}for(Te=o(Te);We<M.length;We++)$t=U(Te,w,We,M[We],Q),$t!==null&&(he=de(w,$t,M[We],he),e&&$t.alternate!==null&&Te.delete($t.key===null?We:$t.key),I=n($t,I,We),De===null?Ge=$t:De.sibling=$t,De=$t);return e&&Te.forEach(function(Fn){return t(w,Fn)}),dt&&Sn(w,We),Ge}function Ft(w,I,M,Q){if(M==null)throw Error("An iterable object provided no iterator.");for(var he=null,Ge=null,De=I,Te=I=0,We=null,$t=null,ga=M.next();De!==null&&!ga.done;Te++,ga=M.next()){De.index>Te?(We=De,De=null):We=De.sibling;var Fn=T(w,De,ga.value,Q);if(Fn===null){De===null&&(De=We);break}$t=de(w,Fn,ga.value,$t),e&&De&&Fn.alternate===null&&t(w,De),I=n(Fn,I,Te),Ge===null?he=Fn:Ge.sibling=Fn,Ge=Fn,De=We}if(ga.done)return a(w,De),dt&&Sn(w,Te),he;if(De===null){for(;!ga.done;Te++,ga=M.next())De=E(w,ga.value,Q),De!==null&&($t=de(w,De,ga.value,$t),I=n(De,I,Te),Ge===null?he=De:Ge.sibling=De,Ge=De);return dt&&Sn(w,Te),he}for(De=o(De);!ga.done;Te++,ga=M.next())We=U(De,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&De.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&De.forEach(function(VM){return t(w,VM)}),dt&&Sn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Tu&&M.key===null&&(mf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Tu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,mf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||I0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Ao&&or(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Fi(Q,M),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,w=Q;break e}a(w,I);break}else t(w,I);I=I.sibling}M.type===Tu?(Q=us(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,mf(M,Q,w),w=Q):(Q=nf(M,w.mode,Q),Fi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case wu:e:{he=M;for(M=he.key;I!==null;){if(I.key===M)if(I.tag===4&&I.stateNode.containerInfo===he.containerInfo&&I.stateNode.implementation===he.implementation){a(w,I.sibling),Q=l(I,he.children||[]),Q.return=w,w=Q;break e}else{a(w,I);break}else t(w,I);I=I.sibling}Q=Jm(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Ao:return he=Ga(M._debugInfo),M=or(M),w=pt(w,I,M,Q),at=he,w}if(Ra(M))return he=Ga(M._debugInfo),w=ye(w,I,M,Q),at=he,w;if(ee(M)){if(he=Ga(M._debugInfo),Ge=ee(M),typeof Ge!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var De=Ge.call(M);if(De===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(De)!=="[object Generator]")aC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),aC=!0}else M.entries!==Ge||Ay||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ay=!0);return w=Ft(w,I,De,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return pt(w,I,df(w,M),Q);gf(w,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he=""+M,I!==null&&I.tag===6?(a(w,I.sibling),Q=l(I,he),Q.return=w,w=Q):(a(w,I),Q=Km(he,w.mode,Q),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,w=Q),s(w);return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{Pd=0;var Ge=pt(w,I,M,Q);return Xu=null,Ge}catch($t){if($t===$u||$t===Ip)throw $t;var De=C(29,$t,null,w.mode);De.lanes=Q,De.return=w;var Te=De._debugInfo=at;if(De._debugOwner=w._debugOwner,De._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){De._debugOwner=Te[We],De._debugTask=Te[We].debugTask;break}}return De}finally{at=he}}}function K0(e,t){var a=Ra(e);return e=!a&&typeof ee(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(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 lr(e){return{lane:e,tag:sC,payload:null,callback:null,next:null}}function nr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Ey===o&&!dC){var l=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
100
|
+
<%s>%s</%s>`,a,t,a))}function vf(e,t){var a=ch();a!==null?a.run(W0.bind(null,e,t)):W0(e,t)}function K0(e){function t(w,I){if(e){var M=w.deletions;M===null?(w.deletions=[I],w.flags|=16):M.push(I)}}function a(w,I){if(!e)return null;for(;I!==null;)t(w,I),I=I.sibling;return null}function o(w){for(var I=new Map;w!==null;)w.key!==null?I.set(w.key,w):I.set(w.index,w),w=w.sibling;return I}function l(w,I){return w=Sn(w,I),w.index=0,w.sibling=null,w}function n(w,I,M){if(w.index=M,!e)return w.flags|=1048576,I;if(M=w.alternate,M!==null)return M=M.index,M<I?(w.flags|=67108866,I):M;return w.flags|=67108866,I}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,I,M,Q){if(I===null||I.tag!==6)return I=Jm(M,w.mode,Q),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function m(w,I,M,Q){var he=M.type;if(he===Iu)return I=A(w,I,M.props.children,Q,M.key),hf(M,I,w),I;if(I!==null&&(I.elementType===he||R0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Do&&lr(he)===I.type))return I=l(I,M.props),Gi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=rf(M,w.mode,Q),Gi(I,M),I.return=w,I._debugInfo=at,I}function g(w,I,M,Q){if(I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation)return I=eh(M,w.mode,Q),I.return=w,I._debugInfo=at,I;return I=l(I,M.children||[]),I.return=w,I._debugInfo=at,I}function A(w,I,M,Q,he){if(I===null||I.tag!==7)return I=is(M,w.mode,Q,he),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function E(w,I,M){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=Jm(""+I,w.mode,M),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case Xl:return M=rf(I,w.mode,M),Gi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case Tu:return I=eh(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Do:var Q=Ga(I._debugInfo);return I=lr(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=is(I,w.mode,M,null),M.return=w,M._debugOwner=w,M._debugTask=w._debugTask,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;if(typeof I.then==="function")return Q=Ga(I._debugInfo),w=E(w,gf(I),M),at=Q,w;if(I.$$typeof===jl)return E(w,cf(w,I),M);yf(w,I)}return typeof I==="function"&&bf(w,I),typeof I==="symbol"&&vf(w,I),null}function T(w,I,M,Q){var he=I!==null?I.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he!==null?null:d(w,I,""+M,Q);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case Xl:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case Tu:return M.key===he?g(w,I,M,Q):null;case Do:return he=Ga(M._debugInfo),M=lr(M),w=T(w,I,M,Q),at=he,w}if(Ra(M)||ee(M)){if(he!==null)return null;return he=Ga(M._debugInfo),w=A(w,I,M,Q,null),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=T(w,I,gf(M),Q),at=he,w;if(M.$$typeof===jl)return T(w,I,cf(w,M),Q);yf(w,M)}return typeof M==="function"&&bf(w,M),typeof M==="symbol"&&vf(w,M),null}function U(w,I,M,Q,he){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return w=w.get(M)||null,d(I,w,""+Q,he);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case Xl:return M=w.get(Q.key===null?M:Q.key)||null,w=Ga(Q._debugInfo),I=m(I,M,Q,he),at=w,I;case Tu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Do:var Ge=Ga(Q._debugInfo);return Q=lr(Q),I=U(w,I,M,Q,he),at=Ge,I}if(Ra(Q)||ee(Q))return M=w.get(M)||null,w=Ga(Q._debugInfo),I=A(I,M,Q,he,null),at=w,I;if(typeof Q.then==="function")return Ge=Ga(Q._debugInfo),I=U(w,I,M,gf(Q),he),at=Ge,I;if(Q.$$typeof===jl)return U(w,I,M,cf(I,Q),he);yf(I,Q)}return typeof Q==="function"&&bf(I,Q),typeof Q==="symbol"&&vf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case Xl:case Tu:h(w,I,M);var he=M.key;if(typeof he!=="string")break;if(Q===null){Q=new Set,Q.add(he);break}if(!Q.has(he)){Q.add(he);break}re(I,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case Do:M=lr(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,Ae=null,Te=I,We=I=0,$t=null;Te!==null&&We<M.length;We++){Te.index>We?($t=Te,Te=null):$t=Te.sibling;var ga=T(w,Te,M[We],Q);if(ga===null){Te===null&&(Te=$t);break}he=de(w,ga,M[We],he),e&&Te&&ga.alternate===null&&t(w,Te),I=n(ga,I,We),Ae===null?Ge=ga:Ae.sibling=ga,Ae=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&xn(w,We),Ge;if(Te===null){for(;We<M.length;We++)Te=E(w,M[We],Q),Te!==null&&(he=de(w,Te,M[We],he),I=n(Te,I,We),Ae===null?Ge=Te:Ae.sibling=Te,Ae=Te);return dt&&xn(w,We),Ge}for(Te=o(Te);We<M.length;We++)$t=U(Te,w,We,M[We],Q),$t!==null&&(he=de(w,$t,M[We],he),e&&$t.alternate!==null&&Te.delete($t.key===null?We:$t.key),I=n($t,I,We),Ae===null?Ge=$t:Ae.sibling=$t,Ae=$t);return e&&Te.forEach(function(Gn){return t(w,Gn)}),dt&&xn(w,We),Ge}function Ft(w,I,M,Q){if(M==null)throw Error("An iterable object provided no iterator.");for(var he=null,Ge=null,Ae=I,Te=I=0,We=null,$t=null,ga=M.next();Ae!==null&&!ga.done;Te++,ga=M.next()){Ae.index>Te?(We=Ae,Ae=null):We=Ae.sibling;var Gn=T(w,Ae,ga.value,Q);if(Gn===null){Ae===null&&(Ae=We);break}$t=de(w,Gn,ga.value,$t),e&&Ae&&Gn.alternate===null&&t(w,Ae),I=n(Gn,I,Te),Ge===null?he=Gn:Ge.sibling=Gn,Ge=Gn,Ae=We}if(ga.done)return a(w,Ae),dt&&xn(w,Te),he;if(Ae===null){for(;!ga.done;Te++,ga=M.next())Ae=E(w,ga.value,Q),Ae!==null&&($t=de(w,Ae,ga.value,$t),I=n(Ae,I,Te),Ge===null?he=Ae:Ge.sibling=Ae,Ge=Ae);return dt&&xn(w,Te),he}for(Ae=o(Ae);!ga.done;Te++,ga=M.next())We=U(Ae,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&Ae.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&Ae.forEach(function($M){return t(w,$M)}),dt&&xn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Iu&&M.key===null&&(hf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case Xl:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Iu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,hf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||R0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Do&&lr(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Gi(Q,M),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,w=Q;break e}a(w,I);break}else t(w,I);I=I.sibling}M.type===Iu?(Q=is(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,hf(M,Q,w),w=Q):(Q=rf(M,w.mode,Q),Gi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case Tu:e:{he=M;for(M=he.key;I!==null;){if(I.key===M)if(I.tag===4&&I.stateNode.containerInfo===he.containerInfo&&I.stateNode.implementation===he.implementation){a(w,I.sibling),Q=l(I,he.children||[]),Q.return=w,w=Q;break e}else{a(w,I);break}else t(w,I);I=I.sibling}Q=eh(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Do:return he=Ga(M._debugInfo),M=lr(M),w=pt(w,I,M,Q),at=he,w}if(Ra(M))return he=Ga(M._debugInfo),w=ye(w,I,M,Q),at=he,w;if(ee(M)){if(he=Ga(M._debugInfo),Ge=ee(M),typeof Ge!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ae=Ge.call(M);if(Ae===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")oC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),oC=!0}else M.entries!==Ge||Dy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dy=!0);return w=Ft(w,I,Ae,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,gf(M),Q),at=he,w;if(M.$$typeof===jl)return pt(w,I,cf(w,M),Q);yf(w,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he=""+M,I!==null&&I.tag===6?(a(w,I.sibling),Q=l(I,he),Q.return=w,w=Q):(a(w,I),Q=Jm(he,w.mode,Q),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,w=Q),s(w);return typeof M==="function"&&bf(w,M),typeof M==="symbol"&&vf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{zd=0;var Ge=pt(w,I,M,Q);return ju=null,Ge}catch($t){if($t===Xu||$t===Rp)throw $t;var Ae=C(29,$t,null,w.mode);Ae.lanes=Q,Ae.return=w;var Te=Ae._debugInfo=at;if(Ae._debugOwner=w._debugOwner,Ae._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){Ae._debugOwner=Te[We],Ae._debugTask=Te[We].debugTask;break}}return Ae}finally{at=he}}}function J0(e,t){var a=Ra(e);return e=!a&&typeof ee(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function fh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ph(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 nr(e){return{lane:e,tag:uC,payload:null,callback:null,next:null}}function rr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Oy===o&&!cC){var l=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
101
|
|
|
102
|
-
Please update the following component: %s`,l),
|
|
102
|
+
Please update the following component: %s`,l),cC=!0}if((ht&Aa)!==Pa)return l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=nf(e),I0(e,null,a),t;return lf(e,o,t,a),nf(e)}function Vi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,as(e,a)}}function Sf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?l=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?l=n=t:n=n.next=t}else l=n=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function $i(){if(qy){var e=$u;if(e!==null)throw e}}function Xi(e,t,a,o){qy=!1;var l=e.updateQueue;Ir=!1,Oy=l.shared;var{firstBaseUpdate:n,lastBaseUpdate:s}=l,d=l.shared.pending;if(d!==null){l.shared.pending=null;var m=d,g=m.next;m.next=null,s===null?n=g:s.next=g,s=m;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==s&&(d===null?A.firstBaseUpdate=g:d.next=g,A.lastBaseUpdate=m))}if(n!==null){var E=l.baseState;s=0,A=g=m=null,d=n;do{var T=d.lane&-536870913,U=T!==d.lane;if(U?(ot&T)===T:(o&T)===T){T!==0&&T===Ts&&(qy=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{T=e;var de=d,ye=t,Ft=a;switch(de.tag){case iC:if(de=de.payload,typeof de==="function"){Gu=!0;var pt=de.call(Ft,E,ye);if(T.mode&Ja){_t(!0);try{de.call(Ft,E,ye)}finally{_t(!1)}}Gu=!1,E=pt;break e}E=de;break e;case Ey:T.flags=T.flags&-65537|128;case uC:if(pt=de.payload,typeof pt==="function"){if(Gu=!0,de=pt.call(Ft,E,ye),T.mode&Ja){_t(!0);try{pt.call(Ft,E,ye)}finally{_t(!1)}}Gu=!1}else de=pt;if(de===null||de===void 0)break e;E=rt({},E,de);break e;case dC:Ir=!0}}T=d.callback,T!==null&&(e.flags|=64,U&&(e.flags|=8192),U=l.callbacks,U===null?l.callbacks=[T]:U.push(T))}else U={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(g=A=U,m=E):A=A.next=U,s|=T;if(d=d.next,d===null)if(d=l.shared.pending,d===null)break;else U=d,d=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}while(1);A===null&&(m=E),l.baseState=m,l.firstBaseUpdate=g,l.lastBaseUpdate=A,n===null&&(l.shared.lanes=0),Ar|=s,e.lanes=s,e.memoizedState=E}Oy=null}function ev(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)ev(a[e],t)}function tv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ev(a[e],t)}function av(e,t){var a=on;Ce(Ap,a,e),Ce(Yu,t,e),on=a|t.baseLanes}function mh(e){Ce(Ap,on,e),Ce(Yu,Yu.current,e)}function hh(e){on=Ap.current,Be(Yu,e),Be(Ap,e)}function sr(e){var t=e.alternate;Ce(ha,ha.current&Qu,e),Ce(Bo,e,e),Ko===null&&(t===null||Yu.current!==null?Ko=e:t.memoizedState!==null&&(Ko=e))}function gh(e){Ce(ha,ha.current,e),Ce(Bo,e,e),Ko===null&&(Ko=e)}function ov(e){e.tag===22?(Ce(ha,ha.current,e),Ce(Bo,e,e),Ko===null&&(Ko=e)):ur(e)}function ur(e){Ce(ha,ha.current,e),Ce(Bo,Bo.current,e)}function Ro(e){Be(Bo,e),Ko===e&&(Ko=null),Be(ha,e)}function xf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mg(a)||Ag(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}function nt(){var e=H;el===null?el=[e]:el.push(e)}function le(){var e=H;if(el!==null&&(Pn++,el[Pn]!==e)){var t=X(Fe);if(!fC.has(t)&&(fC.add(t),el!==null)){for(var a="",o=0;o<=Pn;o++){var l=el[o],n=o===Pn?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=n+`
|
|
103
103
|
`,a+=l}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,t,a)}}}function
|
|
108
|
+
`,t,a)}}}function pu(e){e===void 0||e===null||Ra(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function Lf(){var e=X(Fe);mC.has(e)||(mC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function da(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function yh(e,t){if(Fd)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
113
|
|
|
114
114
|
Previous: %s
|
|
115
|
-
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!no(e[a],t[a]))return!1;return!0}function yh(e,t,a,o,l,n){if(Bn=n,Fe=t,Jo=e!==null?e._debugHookTypes:null,Un=-1,Hd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),qy.has(n)||(qy.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Ny:Jo!==null?mC:By,As=n=(t.mode&Ja)!==ze;var s=Iy(a,o,l);if(As=!1,Zu&&(s=bh(t,a,o,l)),n){_t(!0);try{s=bh(t,a,o,l)}finally{_t(!1)}}return ov(e,t),s}function ov(e,t){t._debugHookTypes=Jo,t.dependencies===null?Nn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Nn}):t.dependencies._debugThenableState=Nn,G.H=Fd;var a=Ut!==null&&Ut.next!==null;if(Bn=0,Jo=H=xa=Ut=Fe=null,Un=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dp=!1,_d=0,Nn=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||La||(e=e.dependencies,e!==null&&uf(e)&&(La=!0)),Ud?(Ud=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",fC.has(t)||qy.has(t)||(fC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function bh(e,t,a,o){Fe=e;var l=0;do{if(Zu&&(Nn=null),_d=0,Zu=!1,l>=LM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Hd=!1,xa=Ut=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Un=-1,G.H=hC,n=Iy(t,a,o)}while(Zu);return n}function zT(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function vh(){var e=Ep!==0;return Ep=0,e}function Sh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&fl)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function xh(e){if(Dp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dp=!1}Bn=0,Jo=xa=Ut=Fe=null,Un=-1,H=null,Zu=!1,_d=Ep=0,Nn=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Fe.memoizedState=xa=e:xa=xa.next=e,xa}function At(){if(Ut===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ut.next;var t=xa===null?Fe.memoizedState:xa.next;if(t!==null)xa=t,Ut=e;else{if(e===null){if(Fe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Ut=e,e={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},xa===null?Fe.memoizedState=xa=e:xa=xa.next=e}return xa}function Lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=_d;return _d+=1,Nn===null&&(Nn=G0()),e=$0(Nn,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Ny:By),e}function ur(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Xl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ps(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Hd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=eR;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function ul(e,t){return typeof t==="function"?t(e):t}function Lh(e,t,a){var o=to();if(a!==void 0){var l=a(t);if(As){_t(!0);try{a(t)}finally{_t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=VT.bind(null,Fe,e),[o.memoizedState,e]}function pu(e){var t=At();return Ch(t,Ut,e)}function Ch(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var s=l.next;l.next=n.next,n.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var d=s=null,m=null,g=t,A=!1;do{var E=g.lane&-536870913;if(E!==g.lane?(ot&E)===E:(Bn&E)===E){var T=g.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),E===ws&&(A=!0);else if((Bn&T)===T){g=g.next,T===ws&&(A=!0);continue}else E={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=E,s=n):m=m.next=E,Fe.lanes|=T,Mr|=T;E=g.action,As&&a(n,E),n=g.hasEagerState?g.eagerState:a(n,E)}else T={lane:E,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=T,s=n):m=m.next=T,Fe.lanes|=E,Mr|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!no(n,e.memoizedState)&&(La=!0,A&&(a=Vu,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=m,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ji(e){var t=At(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:l}=a,n=t.memoizedState;if(l!==null){a.pending=null;var s=l=l.next;do n=e(n,s.action),s=s.next;while(s!==l);no(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function kh(e,t,a){var o=Fe,l=to();if(dt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Qu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qu=!0)}else{if(n=t(),Qu||(a=t(),no(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||lv(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,Tf(rv.bind(null,o,a,e),[e]),o.flags|=2048,hu(Ko|uo,{destroy:void 0},nv.bind(null,o,a,n,t),null),n}function Cf(e,t,a){var o=Fe,l=At(),n=dt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Qu){var s=t();no(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)}if(s=!no((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=rv.bind(null,o,l,e);if(po(2048,uo,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Ko){if(o.flags|=2048,hu(Ko|uo,{destroy:void 0},nv.bind(null,o,l,a,t),null),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Bn&127)!==0||lv(o,t,a)}return a}function lv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Lf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nv(e,t,a,o){t.value=a,t.getSnapshot=o,sv(t)&&uv(e)}function rv(e,t,a){return a(function(){sv(t)&&(El(2,"updateSyncExternalStore()",e),uv(e))})}function sv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!no(e,a)}catch(o){return!0}}function uv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function wh(e){var t=to();if(typeof e==="function"){var a=e;if(e=a(),As){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t}function Th(e){e=wh(e);var t=e.queue,a=Iv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Ih(e){var t=to();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function iv(e,t){var a=At();return dv(a,Ut,e,t)}function dv(e,t,a,o){return e.baseState=a,Ch(e,Ut,typeof o==="function"?o:ul)}function cv(e,t){var a=At();if(Ut!==null)return dv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function _T(e,t,a,o,l){if(Ef(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};G.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,fv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function fv(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var n=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var d=a(l,o),m=G.S;m!==null&&m(s,d),pv(e,t,d)}catch(g){Rh(e,t,g)}finally{n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),G.T=n,n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{s=a(l,o),pv(e,t,s)}catch(g){Rh(e,t,g)}}function pv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Df,Df),a.then(function(o){mv(e,t,o)},function(o){return Rh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):mv(e,t,a)}function mv(e,t,a){t.status="fulfilled",t.value=a,hv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fv(e,a)))}function Rh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,hv(t),t=t.next;while(t!==o)}e.action=null}function hv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gv(e,t){return t}function mu(e,t){if(dt){var a=Pt.formState;if(a!==null){e:{var o=Fe;if(dt){if(Vt){t:{var l=Vt;for(var n=Qo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Mo(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===nb||n===e1?l:null}if(l){Vt=Mo(l.nextSibling),o=l.data===nb;break e}}tr(o)}o=!1}o&&(t=a[0])}}return a=to(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gv,lastRenderedState:t},a.queue=o,a=Iv.bind(null,Fe,o),o.dispatch=a,o=wh(!1),n=Hh.bind(null,Fe,!1,o.queue),o=to(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=_T.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function kf(e){var t=At();return yv(t,Ut,e)}function yv(e,t,a){if(t=Ch(e,t,gv)[0],e=pu(ul)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===$u)throw Ip;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,hu(Ko|uo,{destroy:void 0},HT.bind(null,l,a),null)),[o,n,e]}function HT(e,t){e.action=t}function wf(e){var t=At(),a=Ut;if(a!==null)return yv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Lf(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Mh(e){var t=to();return e={current:e},t.memoizedState=e}function ms(e,t,a,o){var l=to();Fe.flags|=e,l.memoizedState=hu(Ko|t,{destroy:void 0},a,o===void 0?null:o)}function po(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&gh(o,Ut.memoizedState.deps)?l.memoizedState=hu(t,n,a,o):(Fe.flags|=e,l.memoizedState=hu(Ko|t,n,a,o))}function Tf(e,t){(Fe.mode&fl)!==ze?ms(276826112,uo,e,t):ms(8390656,uo,e,t)}function FT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Lf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=to(),a={impl:e};return t.memoizedState=a,function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function If(e){var t=At().memoizedState;return FT({ref:t,nextImpl:e}),function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Dh(e,t){var a=4194308;return(Fe.mode&fl)!==ze&&(a|=134217728),ms(a,Bo,e,t)}function bv(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Fe.mode&fl)!==ze&&(o|=134217728),ms(o,Bo,bv.bind(null,t,e),a)}function Rf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,po(4,Bo,bv.bind(null,t,e),a)}function Oh(e,t){return to().memoizedState=[e,t===void 0?null:t],e}function Mf(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function qh(e,t){var a=to();t=t===void 0?null:t;var o=e();if(As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];if(o=e(),As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Bh(e,t){var a=to();return Nh(a,e,t)}function vv(e,t){var a=At();return xv(a,Ut.memoizedState,e,t)}function Sv(e,t){var a=At();return Ut===null?Nh(a,e,t):xv(a,Ut.memoizedState,e,t)}function Nh(e,t,a){if(a===void 0||(Bn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=LS(),Fe.lanes|=e,Mr|=e,a}function xv(e,t,a,o){if(no(a,t))return a;if(ju.current!==null)return e=Nh(e,a,o),no(e,t)||(La=!0),e;if((Bn&42)===0||(Bn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=LS(),Fe.lanes|=e,Mr|=e,t}function Df(){G.asyncTransitions--}function Lv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<cl?n:cl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Hh(e,!1,t,a);try{var m=l(),g=G.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Df,Df);var A=UT(m,o);Yi(e,t,A,Ro(e))}else Yi(e,t,o,Ro(e))}catch(E){Yi(e,t,{then:function(){},status:"rejected",reason:E},Ro(e))}finally{kt.p=n,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),G.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Uh(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=Cv(e).queue;BT(e),Lv(e,l,t,Hs,a===null?k:function(){return kv(e),a(o)})}function Cv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hs,baseState:Hs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Hs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kv(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Cv(e);t.next===null&&(t=e.alternate.memoizedState),Yi(e,t.next.queue,{},Ro(e))}function Ph(){var e=wh(!1);return e=Lv.bind(null,Fe,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function wv(){var e=pu(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function Tv(){var e=ji(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function hs(){return Qt(oc)}function zh(){var e=to(),t=Pt.identifierPrefix;if(dt){var a=An,o=Mn;a=(o&~(1<<32-ao(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ep++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=xM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function _h(){return to().memoizedState=GT.bind(null,Fe)}function GT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ro(a),l=lr(o),n=nr(a,l,o);n!==null&&(El(o,"refresh()",e),oa(n,a,o),Gi(n,a,o)),e=rh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function VT(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ef(e)?Rv(t,l):(l=Ym(e,t,l,o),l!==null&&(El(o,"dispatch()",e),oa(l,e,o),Mv(l,t,o)))}function Iv(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e),Yi(e,t,a,o)&&El(o,"setState()",e)}function Yi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ef(e))Rv(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var s=G.H;G.H=ml;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,no(m,d))return of(e,t,l,0),Pt===null&&af(),!1}catch(g){}finally{G.H=s}}if(a=Ym(e,t,l,o),a!==null)return oa(a,e,o),Mv(a,t,o),!0}return!1}function Hh(e,t,a,o){if(G.T===null&&ws===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ef(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ym(e,a,o,2),t!==null&&(El(2,"setOptimistic()",e),oa(t,e,2))}function Ef(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Rv(e,t){Zu=Dp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Mv(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function Fh(e){if(e!==null&&typeof e!=="function"){var t=String(e);TC.has(t)||(TC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Gh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&Ja){_t(!0);try{n=a(o,l)}finally{_t(!1)}}n===void 0&&(t=Z(t)||"Component",LC.has(t)||(LC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n===null||n===void 0?l:rt({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Av(e,t,a,o,l,n,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,n,s),e.mode&Ja){_t(!0);try{a=d.shouldComponentUpdate(o,n,s)}finally{_t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ni(a,o)||!Ni(l,n):!0}function Dv(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=X(e)||"Component",yC.has(e)||(yC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Uy.enqueueReplaceState(t,t.state,null))}function gs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=rt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ev(e){my(e),console.warn(`%s
|
|
115
|
+
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!ro(e[a],t[a]))return!1;return!0}function bh(e,t,a,o,l,n){if(Nn=n,Fe=t,el=e!==null?e._debugHookTypes:null,Pn=-1,Fd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),By.has(n)||(By.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Uy:el!==null?hC:Ny,Ds=n=(t.mode&Ja)!==Pe;var s=Ry(a,o,l);if(Ds=!1,Wu&&(s=vh(t,a,o,l)),n){_t(!0);try{s=vh(t,a,o,l)}finally{_t(!1)}}return lv(e,t),s}function lv(e,t){t._debugHookTypes=el,t.dependencies===null?Un!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Un}):t.dependencies._debugThenableState=Un,G.H=Gd;var a=Ut!==null&&Ut.next!==null;if(Nn=0,el=H=xa=Ut=Fe=null,Pn=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Ep=!1,Hd=0,Un=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||La||(e=e.dependencies,e!==null&&df(e)&&(La=!0)),Pd?(Pd=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",pC.has(t)||By.has(t)||(pC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function vh(e,t,a,o){Fe=e;var l=0;do{if(Wu&&(Un=null),Hd=0,Wu=!1,l>=CM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Fd=!1,xa=Ut=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Pn=-1,G.H=gC,n=Ry(t,a,o)}while(Wu);return n}function _T(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?ji(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function Sh(){var e=Op!==0;return Op=0,e}function xh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&pl)!==Pe?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Lh(e){if(Ep){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ep=!1}Nn=0,el=xa=Ut=Fe=null,Pn=-1,H=null,Wu=!1,Hd=Op=0,Un=null}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Fe.memoizedState=xa=e:xa=xa.next=e,xa}function At(){if(Ut===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ut.next;var t=xa===null?Fe.memoizedState:xa.next;if(t!==null)xa=t,Ut=e;else{if(e===null){if(Fe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Ut=e,e={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},xa===null?Fe.memoizedState=xa=e:xa=xa.next=e}return xa}function Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ji(e){var t=Hd;return Hd+=1,Un===null&&(Un=V0()),e=X0(Un,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Uy:Ny),e}function ir(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return ji(e);if(e.$$typeof===jl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ms(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Cf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Fd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=tR;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function il(e,t){return typeof t==="function"?t(e):t}function Ch(e,t,a){var o=ao();if(a!==void 0){var l=a(t);if(Ds){_t(!0);try{a(t)}finally{_t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=$T.bind(null,Fe,e),[o.memoizedState,e]}function mu(e){var t=At();return kh(t,Ut,e)}function kh(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var s=l.next;l.next=n.next,n.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var d=s=null,m=null,g=t,A=!1;do{var E=g.lane&-536870913;if(E!==g.lane?(ot&E)===E:(Nn&E)===E){var T=g.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),E===Ts&&(A=!0);else if((Nn&T)===T){g=g.next,T===Ts&&(A=!0);continue}else E={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=E,s=n):m=m.next=E,Fe.lanes|=T,Ar|=T;E=g.action,Ds&&a(n,E),n=g.hasEagerState?g.eagerState:a(n,E)}else T={lane:E,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=T,s=n):m=m.next=T,Fe.lanes|=E,Ar|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!ro(n,e.memoizedState)&&(La=!0,A&&(a=$u,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=m,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Yi(e){var t=At(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:l}=a,n=t.memoizedState;if(l!==null){a.pending=null;var s=l=l.next;do n=e(n,s.action),s=s.next;while(s!==l);ro(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function wh(e,t,a){var o=Fe,l=ao();if(dt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Zu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Zu=!0)}else{if(n=t(),Zu||(a=t(),ro(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||nv(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,If(sv.bind(null,o,a,e),[e]),o.flags|=2048,gu(Jo|io,{destroy:void 0},rv.bind(null,o,a,n,t),null),n}function kf(e,t,a){var o=Fe,l=At(),n=dt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Zu){var s=t();ro(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)}if(s=!ro((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=sv.bind(null,o,l,e);if(mo(2048,io,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Jo){if(o.flags|=2048,gu(Jo|io,{destroy:void 0},rv.bind(null,o,l,a,t),null),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Nn&127)!==0||nv(o,t,a)}return a}function nv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Cf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rv(e,t,a,o){t.value=a,t.getSnapshot=o,uv(t)&&iv(e)}function sv(e,t,a){return a(function(){uv(t)&&(Ol(2,"updateSyncExternalStore()",e),iv(e))})}function uv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ro(e,a)}catch(o){return!0}}function iv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function Th(e){var t=ao();if(typeof e==="function"){var a=e;if(e=a(),Ds){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:e},t}function Ih(e){e=Th(e);var t=e.queue,a=Rv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Rh(e){var t=ao();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function dv(e,t){var a=At();return cv(a,Ut,e,t)}function cv(e,t,a,o){return e.baseState=a,kh(e,Ut,typeof o==="function"?o:il)}function fv(e,t){var a=At();if(Ut!==null)return cv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function HT(e,t,a,o,l){if(Of(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};G.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,pv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function pv(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var n=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var d=a(l,o),m=G.S;m!==null&&m(s,d),mv(e,t,d)}catch(g){Mh(e,t,g)}finally{n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),G.T=n,n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{s=a(l,o),mv(e,t,s)}catch(g){Mh(e,t,g)}}function mv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Ef,Ef),a.then(function(o){hv(e,t,o)},function(o){return Mh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):hv(e,t,a)}function hv(e,t,a){t.status="fulfilled",t.value=a,gv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,pv(e,a)))}function Mh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,gv(t),t=t.next;while(t!==o)}e.action=null}function gv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yv(e,t){return t}function hu(e,t){if(dt){var a=Pt.formState;if(a!==null){e:{var o=Fe;if(dt){if(Vt){t:{var l=Vt;for(var n=Zo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Ao(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===rb||n===t1?l:null}if(l){Vt=Ao(l.nextSibling),o=l.data===rb;break e}}ar(o)}o=!1}o&&(t=a[0])}}return a=ao(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yv,lastRenderedState:t},a.queue=o,a=Rv.bind(null,Fe,o),o.dispatch=a,o=Th(!1),n=Fh.bind(null,Fe,!1,o.queue),o=ao(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=HT.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function wf(e){var t=At();return bv(t,Ut,e)}function bv(e,t,a){if(t=kh(e,t,yv)[0],e=mu(il)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=ji(t)}catch(s){if(s===Xu)throw Rp;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,gu(Jo|io,{destroy:void 0},FT.bind(null,l,a),null)),[o,n,e]}function FT(e,t){e.action=t}function Tf(e){var t=At(),a=Ut;if(a!==null)return bv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function gu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Cf(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Ah(e){var t=ao();return e={current:e},t.memoizedState=e}function hs(e,t,a,o){var l=ao();Fe.flags|=e,l.memoizedState=gu(Jo|t,{destroy:void 0},a,o===void 0?null:o)}function mo(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&yh(o,Ut.memoizedState.deps)?l.memoizedState=gu(t,n,a,o):(Fe.flags|=e,l.memoizedState=gu(Jo|t,n,a,o))}function If(e,t){(Fe.mode&pl)!==Pe?hs(276826112,io,e,t):hs(8390656,io,e,t)}function GT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Cf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Dh(e){var t=ao(),a={impl:e};return t.memoizedState=a,function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Rf(e){var t=At().memoizedState;return GT({ref:t,nextImpl:e}),function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Eh(e,t){var a=4194308;return(Fe.mode&pl)!==Pe&&(a|=134217728),hs(a,No,e,t)}function vv(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Oh(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Fe.mode&pl)!==Pe&&(o|=134217728),hs(o,No,vv.bind(null,t,e),a)}function Mf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,mo(4,No,vv.bind(null,t,e),a)}function qh(e,t){return ao().memoizedState=[e,t===void 0?null:t],e}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&yh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Bh(e,t){var a=ao();t=t===void 0?null:t;var o=e();if(Ds){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Df(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&yh(t,o[1]))return o[0];if(o=e(),Ds){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Nh(e,t){var a=ao();return Uh(a,e,t)}function Sv(e,t){var a=At();return Lv(a,Ut.memoizedState,e,t)}function xv(e,t){var a=At();return Ut===null?Uh(a,e,t):Lv(a,Ut.memoizedState,e,t)}function Uh(e,t,a){if(a===void 0||(Nn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=CS(),Fe.lanes|=e,Ar|=e,a}function Lv(e,t,a,o){if(ro(a,t))return a;if(Yu.current!==null)return e=Uh(e,a,o),ro(e,t)||(La=!0),e;if((Nn&42)===0||(Nn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=CS(),Fe.lanes|=e,Ar|=e,t}function Ef(){G.asyncTransitions--}function Cv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<fl?n:fl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Fh(e,!1,t,a);try{var m=l(),g=G.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Ef,Ef);var A=PT(m,o);Qi(e,t,A,Mo(e))}else Qi(e,t,o,Mo(e))}catch(E){Qi(e,t,{then:function(){},status:"rejected",reason:E},Mo(e))}finally{kt.p=n,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),G.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ph(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=kv(e).queue;NT(e),Cv(e,l,t,Fs,a===null?k:function(){return wv(e),a(o)})}function kv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fs,baseState:Fs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:Fs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wv(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=kv(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Mo(e))}function zh(){var e=Th(!1);return e=Cv.bind(null,Fe,e.queue,!0,!1),ao().memoizedState=e,[!1,e]}function Tv(){var e=mu(il)[0],t=At().memoizedState;return[typeof e==="boolean"?e:ji(e),t]}function Iv(){var e=Yi(il)[0],t=At().memoizedState;return[typeof e==="boolean"?e:ji(e),t]}function gs(){return Qt(lc)}function _h(){var e=ao(),t=Pt.identifierPrefix;if(dt){var a=Dn,o=An;a=(o&~(1<<32-oo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Op++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=LM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Hh(){return ao().memoizedState=VT.bind(null,Fe)}function VT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Mo(a),l=nr(o),n=rr(a,l,o);n!==null&&(Ol(o,"refresh()",e),oa(n,a,o),Vi(n,a,o)),e=sh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function $T(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Mo(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Of(e)?Mv(t,l):(l=Qm(e,t,l,o),l!==null&&(Ol(o,"dispatch()",e),oa(l,e,o),Av(l,t,o)))}function Rv(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Mo(e),Qi(e,t,a,o)&&Ol(o,"setState()",e)}function Qi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(e))Mv(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var s=G.H;G.H=hl;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,ro(m,d))return lf(e,t,l,0),Pt===null&&of(),!1}catch(g){}finally{G.H=s}}if(a=Qm(e,t,l,o),a!==null)return oa(a,e,o),Av(a,t,o),!0}return!1}function Fh(e,t,a,o){if(G.T===null&&Ts===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:bg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Of(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Qm(e,a,o,2),t!==null&&(Ol(2,"setOptimistic()",e),oa(t,e,2))}function Of(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Mv(e,t){Wu=Ep=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Av(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,as(e,a)}}function Gh(e){if(e!==null&&typeof e!=="function"){var t=String(e);IC.has(t)||(IC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Vh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&Ja){_t(!0);try{n=a(o,l)}finally{_t(!1)}}n===void 0&&(t=Z(t)||"Component",CC.has(t)||(CC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n===null||n===void 0?l:rt({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Dv(e,t,a,o,l,n,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,n,s),e.mode&Ja){_t(!0);try{a=d.shouldComponentUpdate(o,n,s)}finally{_t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ui(a,o)||!Ui(l,n):!0}function Ev(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=X(e)||"Component",bC.has(e)||(bC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Py.enqueueReplaceState(t,t.state,null))}function ys(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=rt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ov(e){hy(e),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function
|
|
118
|
+
`,Ku?"An error occurred in the <"+Ku+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function qv(e){var t=Ku?"The above error occurred in the <"+Ku+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((zy||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,
|
|
124
|
+
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,i1+" "+e[0],d1,lm+o+lm,c1):e.splice(0,0,i1,d1,lm+o+lm,c1),e.unshift(console),o=GM.apply(console.error,e),o()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,e,t,a)}function
|
|
129
|
+
`,e,t,a)}function Bv(e){hy(e)}function qf(e,t){try{Ku=t.source?X(t.source):null,zy=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function Nv(e,t,a){try{Ku=a.source?X(a.source):null,zy=X(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function $h(e,t,a){return a=nr(a),a.tag=Ey,a.payload={element:null},a.callback=function(){re(t.source,qf,e,t)},a}function Xh(e){return e=nr(e),e.tag=Ey,e}function jh(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l==="function"){var n=o.value;e.payload=function(){return l(n)},e.callback=function(){M0(a),re(o.source,Nv,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){M0(a),re(o.source,Nv,t,a,o),typeof l!=="function"&&(Er===null?Er=new Set([this]):Er.add(this)),bM(this,o),typeof l==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",X(a)||"Unknown")})}function XT(e,t,a,o,l){if(a.flags|=32768,Zl&&od(e,l),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&fu(t,a,l,!0),dt&&(Jl=!0),a=Bo.current,a!==null){switch(a.tag){case 31:case 13:return Ko===null?Gf():a.alternate===null&&ea===_n&&(ea=Np),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Mp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),mg(e,o,l)),!1;case 22:return a.flags|=65536,o===Mp?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),mg(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return mg(e,o,l),Gf(),!1}if(dt)return Jl=!0,t=Bo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==xy&&zi(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==xy&&zi(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=wo(o,a),l=$h(e.stateNode,o,l),Sf(e,l),ea!==Rr&&(ea=Es)),!1;var n=wo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Qd===null?Qd=[n]:Qd.push(n),ea!==Rr&&(ea=Es),t===null)return!0;o=wo(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=$h(a.stateNode,o,e),Sf(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Er===null||!Er.has(n))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Xh(l),jh(l,e,a,o),Sf(a,l),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?sC(t,null,a,o):As(t,e.child,a,o)}function Uv(e,t,a,o,l){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var d in o)d!=="ref"&&(s[d]=o[d])}else s=o;if(fs(t),o=bh(e,t,a,s,n,l),d=Sh(),e!==null&&!La)return xh(e,t,l),kn(e,t,l);return dt&&d&&th(t),t.flags|=1,Va(e,t,o,l),t.child}function Pv(e,t,a,o,l){if(e===null){var n=a.type;if(typeof n==="function"&&!Wm(n)&&n.defaultProps===void 0&&a.compare===null)return a=us(n),t.tag=15,t.type=a,Qh(t,n),zv(e,t,a,o,l);return e=Km(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!tg(e,l)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ui,a(s,o)&&e.ref===t.ref)return kn(e,t,l)}return t.flags|=1,e=Sn(n,o),e.ref=t.ref,e.return=t,t.child=e}function zv(e,t,a,o,l){if(e!==null){var n=e.memoizedProps;if(Ui(n,o)&&e.ref===t.ref&&t.type===e.type)if(La=!1,t.pendingProps=o=n,tg(e,l))(e.flags&131072)!==0&&(La=!0);else return t.lanes=e.lanes,kn(e,t,l)}return Yh(e,t,a,o,l)}function _v(e,t,a,o){var l=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:kd,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~n}else o=0,t.child=null;return Hv(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mf(t,n!==null?n.cachePool:null),n!==null?av(t,n):mh(t),ov(t);else return o=t.lanes=536870912,Hv(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(mf(t,n.cachePool),av(t,n),ur(t),t.memoizedState=null):(e!==null&&mf(t,null),mh(t),ur(t));return Va(e,t,l,a),t.child}function Zi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:kd,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hv(e,t,a,o,l){var n=dh();return n=n===null?null:{parent:va._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&mf(t,null),mh(t),ov(t),e!==null&&fu(e,t,o,!0),t.childLanes=l,null}function Bf(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=
|
|
131
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Uf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fv(e,t,a){return As(t,e.child,null,a),e=Bf(t,t.pendingProps),e.flags|=2,Ro(t),t.memoizedState=null,e}function jT(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(dt){if(o.mode==="hidden")return e=Bf(t,o),t.lanes=536870912,Zi(null,e);if(gh(t),(e=Vt)?(a=px(e,Zo),a=a!==null&&a.data===Ps?a:null,a!==null&&(o={dehydrated:a,treeContext:q0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=E0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw sf(t,e),ar(t);return t.lanes=536870912,null}return Bf(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(gh(t),l)if(t.flags&256)t.flags&=-257,t=Fv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(N0(),(a&536870912)!==0&&Ff(t),La||fu(e,t,a,!1),l=(a&e.childLanes)!==0,La||l){if(o=Pt,o!==null&&(s=os(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,Wa(e,s),oa(o,e,s),_y;Gf(),t=Fv(e,t,a)}else e=n.treeContext,Vt=Ao(s.nextSibling),ja=t,dt=!0,xr=null,Jl=!1,qo=null,Zo=!1,e!==null&&B0(t,e),t=Bf(t,o),t.flags|=4096;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Ff(t),e=Sn(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function Nf(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("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function Yh(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render==="function"){var n=Z(a)||"Unknown";RC[n]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",n,n),RC[n]=!0)}if(t.mode&Ja&&ml.recordLegacyContextWarning(t,null),e===null&&(Qh(t,t.type),a.contextTypes&&(n=Z(a)||"Unknown",AC[n]||(AC[n]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",n)))),fs(t),a=bh(e,t,a,o,void 0,l),o=Sh(),e!==null&&!La)return xh(e,t,l),kn(e,t,l);return dt&&o&&th(t),t.flags|=1,Va(e,t,a,l),t.child}function Gv(e,t,a,o,l,n){if(fs(t),Pn=-1,Fd=e!==null&&e.type!==t.type,t.updateQueue=null,a=vh(t,o,a,l),lv(e,t),o=Sh(),e!==null&&!La)return xh(e,t,n),kn(e,t,n);return dt&&o&&th(t),t.flags|=1,Va(e,t,a,n),t.child}function Vv(e,t,a,o,l){switch(p(t)){case!1:var n=t.stateNode,s=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,s,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var d=l&-l;if(t.lanes|=d,s=Pt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=Xh(d),jh(d,s,t,wo(n,t)),Sf(t,d)}if(fs(t),t.stateNode===null){if(s=Sr,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==jl)&&!TC.has(a)&&(TC.add(a),d=n===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof n!=="object"?" However, it is set to a "+typeof n+".":n.$$typeof===Hg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z(a)||"Component",d)),typeof n==="object"&&n!==null&&(s=Qt(n)),n=new a(o,s),t.mode&Ja){_t(!0);try{n=new a(o,s)}finally{_t(!1)}}if(s=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Py,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=yC,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=Z(a)||"Component",vC.has(s)||(vC.add(s),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",s,n.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"){var m=d=s=null;if(typeof n.componentWillMount==="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof n.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps==="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate==="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),s!==null||d!==null||m!==null){n=Z(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";xC.has(n)||(xC.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
136
136
|
https://react.dev/link/unsafe-component-lifecycles`,n,g,s!==null?`
|
|
137
137
|
`+s:"",d!==null?`
|
|
138
138
|
`+d:"",m!==null?`
|
|
139
|
-
`+m:""))}}n=t.stateNode,s=Z(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!
|
|
140
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",AC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),AC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",RC[t]||(console.error("%s: Function components do not support contextType.",t),RC[t]=!0))}function Qh(e){return{baseLanes:e,cachePool:F0()}}function Zh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bo),e}function $v(e,t,a){var o,l=t.pendingProps;v(t)&&(t.flags|=128);var n=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ha.current&zd)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?rr(t):sr(t),(e=Vt)?(a=fx(e,Qo),a=a!==null&&a.data!==Us?a:null,a!==null&&(o={dehydrated:a,treeContext:O0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return Mg(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){sr(t);var m=t.mode;return d=Nf({mode:"hidden",children:d},m),l=us(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(null,l)}return rr(t),Wh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(rr(t),t.flags&=-257,t=Kh(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),d=l.fallback,m=t.mode,l=Nf({mode:"visible",children:l.children},m),d=us(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ms(t,e.child,null,a),l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,t=Qi(null,l));else if(rr(t),B0(),(a&536870912)!==0&&Hf(t),Mg(A)){if(o=A.nextSibling&&A.nextSibling.dataset,o){d=o.dgst;var E=o.msg;m=o.stck;var T=o.cstck}n=E,o=d,l=m,A=T,d=n,m=A,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=o,o=m===void 0?null:m,l={value:d,source:null,stack:o},typeof o==="string"&&vy.set(d,l),Pi(l),t=Kh(e,t,a)}else if(La||cu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=as(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),zy;Rg(A)||Ff(),t=Kh(e,t,a)}else Rg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Mo(A.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&q0(t,e),t=Wh(t,l.children),t.flags|=4096);return t}}if(n)return sr(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=vn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=vn(A,d):(d=us(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Qi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Qh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=F0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Hf(t),rr(t),a=e.child,e=a.sibling,a=vn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Wh(e,t){return t=Nf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Kh(e,t,a){return Ms(t,e.child,null,a),e=Wh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xv(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),lh(e.return,t,a)}function Jh(e,t,a,o,l,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=l,s.treeForkCount=n)}function jv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&zd)!==0)?(d=d&Yu|zd,t.flags|=128):d&=Yu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!DC[d])if(DC[d]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l==="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(d=n==null?"null":n,!qp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")qp[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(qp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(qp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ra(s)){for(d=0;d<s.length;d++)if(!K0(s[d],d))break e}else if(d=ee(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),g=0;!m.done;m=d.next()){if(!K0(m.value,g))break e;g++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(Va(e,t,s,a),dt?(er(),s=kd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xv(e,a,t);else if(e.tag===19)Xv(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(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&Sf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Jh(t,!1,l,a,n,s);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&Sf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Jh(t,!0,a,null,n,s);break;case"together":Jh(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ro=-1,Mr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(cu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=vn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function eg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&uf(e)?!0:!1}function jT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),ar(t,va,e.memoizedState.cache),ds();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:ar(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,hh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return rr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return $v(e,t,a);return rr(t),e=Cn(e,t,a),e!==null?e.sibling:null}rr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(cu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return jv(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(ha,ha.current,t),o)break;else return null;case 22:return t.lanes=0,zv(e,t,a,t.pendingProps);case 24:ar(t,va,e.memoizedState.cache)}return Cn(e,t,a)}function tg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Wm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)La=!0;else{if(!eg(e,a)&&(t.flags&128)===0)return La=!1,jT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)er(),o=(t.flags&1048576)!==0;o&&(o=t.index,er(),E0(t,kd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=or(t.elementType),t.type=e,typeof e==="function")Zm(e)?(o=gs(e,o),t.tag=1,t.type=e=ss(e),t=Gv(null,t,e,o,a)):(t.tag=0,Yh(t,e),t.type=e=ss(e),t=jh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===cd){t.tag=11,t.type=e=Qm(e),t=Nv(null,t,e,o,a);break e}else if(l===ap){t.tag=14,t=Uv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Ao&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return jh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=gs(o,t.pendingProps),Gv(e,t,o,l,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,fh(e,t),$i(t,o,null,a);var s=t.memoizedState;if(o=s.cache,ar(t,va,o),o!==n.cache&&nh(t,[va],a,!0),Vi(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Vv(e,t,o,a);break e}else if(o!==l){l=ko(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Pi(l),t=Vv(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Vt=Mo(e.firstChild),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!0,a=rC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ds(),o===l){t=Cn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Bf(e,t),e===null?(a=bx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=Be(pr.current),o=Xf(o).createElement(a),o[Xa]=t,o[oo]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=bx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=Be(pr.current),l=ke(),o=t.stateNode=gx(t.type,t.pendingProps,o,l,!1),Kl||(l=lx(o,t.type,t.pendingProps,l),l!==null&&(is(t,0).serverProps=l)),ja=t,Qo=!0,l=Vt,cr(t.type)?(ib=l,Vt=Mo(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Bf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Hm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=BI(l,t.type,t.pendingProps,Qo),s!==null?(t.stateNode=s,Kl||(n=lx(s,t.type,t.pendingProps,n),n!==null&&(is(t,0).serverProps=n)),ja=t,Vt=Mo(s.firstChild),Qo=!1,n=!0):n=!1,s=!n),s&&(o&&rf(t,l),tr(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Tg(l,n)?o=null:s!==null&&Tg(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=yh(e,t,zT,null,null,a),oc._currentValue=l),Bf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&dt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Zc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=NI(e,t.pendingProps,Qo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&rf(t,e),tr(t))),null;case 13:return $v(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ms(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Nv(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,n=l.value,"value"in l||EC||(EC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ar(t,o,n),Va(e,t,l.children,a),t.child;case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),cs(t),l=Qt(l),o=Iy(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Uv(e,t,t.type,t.pendingProps,a);case 15:return Pv(e,t,t.type,t.pendingProps,a);case 19:return jv(e,t,a);case 31:return XT(e,t,a);case 22:return zv(e,t,a,t.pendingProps);case 24:return cs(t),o=Qt(va),e===null?(l=ih(),l===null&&(l=Pt,n=rh(),l.pooledCache=n,fs(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},ch(t),ar(t,va,l)):((e.lanes&a)!==0&&(fh(e,t),$i(t,null,null,a),Vi()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ar(t,va,o)):(o=n.cache,ar(t,va,o),o!==l.cache&&nh(t,[va],a,!0))),Va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kn(e){e.flags|=4}function ag(e,t,a,o,l){if(t=(e.mode&pM)!==ze)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(TS())e.flags|=8192;else throw Rs=Rp,My}else e.flags&=-16777217}function Yv(e,t){if(t.type!=="stylesheet"||(t.state.loading&el)!==_s)e.flags&=-16777217;else if(e.flags|=16777216,!Cx(t))if(TS())e.flags|=8192;else throw Rs=Rp,My}function Uf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nu():536870912,e.lanes|=t,qs|=t)}function Zi(e,t){if(!dt)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&tt)!==ze){for(var{selfBaseDuration:l,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&tt)!==ze){l=e.actualDuration,n=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,l+=s.actualDuration,n+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function YT(e,t,a){var o=t.pendingProps;switch(th(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return Ht(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),xn(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)du(t)?(oh(),kn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ah());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(kn(t),n!==null?(Ht(t),Yv(t,n)):(Ht(t),ag(t,l,null,o,a))):n?n!==e.memoizedState?(kn(t),Ht(t),Yv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&kn(t),Ht(t),ag(t,l,e,o,a)),null;case 27:if(ae(t),a=Be(pr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}e=ke(),du(t)?N0(t,e):(e=gx(l,o,a,e,!0),t.stateNode=e,kn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}var s=ke();if(du(t))N0(t,s);else{switch(n=Be(pr.current),Hm(l,s.ancestorInfo),s=s.context,n=Xf(n),s){case ri:n=n.createElementNS(Au,l);break;case em:n=n.createElementNS(ip,l);break;default:switch(l){case"svg":n=n.createElementNS(Au,l);break;case"math":n=n.createElementNS(ip,l);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||dl.call(a1,l)||(a1[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[Xa]=t,n[oo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch($a(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&kn(t)}}return Ht(t),ag(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Be(pr.current),a=ke(),du(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Kl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=mx(e,a,o),l!==null&&(is(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=mx(e,a,o),l!==null&&(is(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||JS(e.nodeValue,a)?!0:!1,e||tr(t,!0)}else l=a.ancestorInfo.current,l!=null&&Zc(o,l.tag,a.ancestorInfo.implicitRootScope),e=Xf(e).createTextNode(o),e[Xa]=t,t.stateNode=e}return Ht(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=du(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Xa]=t,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Io(t),t;return Io(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=du(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Xa]=t,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==ze&&Hi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Uf(t,t.updateQueue),Ht(t),(t.mode&tt)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&vg(t.stateNode.containerInfo),Ht(t),null;case 10:return xn(t.type,t),Ht(t),null;case 19:if(Ne(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Zi(o,!1);else{if(ea!==zn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Sf(e),n!==null){t.flags|=128,Zi(o,!1),e=n.updateQueue,t.updateQueue=e,Uf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)A0(a,e),a=a.sibling;return Ce(ha,ha.current&Yu|zd,t),dt&&Sn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Hp&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304)}else{if(!l)if(e=Sf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Uf(t,e),Zi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Hp&&a!==536870912&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ha.current,a=l?a&Yu|zd:a&Yu,Ce(ha,a,t),dt&&Sn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Io(t),mh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),a=t.updateQueue,a!==null&&Uf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ne(Ts,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xn(va,t),Ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function QT(e,t){switch(th(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 3:return xn(va,t),ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 19:return Ne(ha,t),null;case 4:return ve(t),null;case 10:return xn(t.type,t),null;case 22:case 23:return Io(t),mh(t),e!==null&&Ne(Ts,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 24:return xn(va,t),null;case 25:return null;default:return null}}function Qv(e,t){switch(th(t),t.tag){case 3:xn(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:Ne(ha,t);break;case 10:xn(t.type,t);break;case 22:case 23:Io(t),mh(t),e!==null&&Ne(Ts,t);break;case 24:xn(va,t)}}function zl(e){return(e.mode&tt)!==ze}function Zv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function og(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wi(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&so)!==Ap&&(oi=!0),o=re(t,bM,a),(e&so)!==Ap&&(oi=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&Bo)!==0?"useLayoutEffect":(a.tag&so)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
|
|
139
|
+
`+m:""))}}n=t.stateNode,s=Z(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!wC.has(a)&&(wC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),a.contextTypes&&!kC.has(a)&&(kC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",s)),typeof n.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),a.prototype&&a.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Z(a)||"A pure component"),typeof n.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof n.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),typeof n.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof n.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),d=n.props!==o,n.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),n.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),typeof n.getSnapshotBeforeUpdate!=="function"||typeof n.componentDidUpdate==="function"||SC.has(a)||(SC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(a))),typeof n.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof n.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(d=n.state)&&(typeof d!=="object"||Ra(d))&&console.error("%s.state: must be set to an object or null",s),typeof n.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},fh(t),s=a.contextType,n.context=typeof s==="object"&&s!==null?Qt(s):Sr,n.state===o&&(s=Z(a)||"Component",LC.has(s)||(LC.add(s),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))),t.mode&Ja&&ml.recordLegacyContextWarning(t,n),ml.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Vh(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(s=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),Py.enqueueReplaceState(n,n.state,null)),Xi(t,o,n,l),$i(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&pl)!==Pe&&(t.flags|=134217728),n=!0}else if(e===null){n=t.stateNode;var A=t.memoizedProps;d=ys(a,A),n.props=d;var E=n.context;m=a.contextType,s=Sr,typeof m==="object"&&m!==null&&(s=Qt(m)),g=a.getDerivedStateFromProps,m=typeof g==="function"||typeof n.getSnapshotBeforeUpdate==="function",A=t.pendingProps!==A,m||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(A||E!==s)&&Ev(t,n,o,s),Ir=!1;var T=t.memoizedState;n.state=T,Xi(t,o,n,l),$i(),E=t.memoizedState,A||T!==E||Ir?(typeof g==="function"&&(Vh(t,a,g,o),E=t.memoizedState),(d=Ir||Dv(t,a,d,o,T,E,s))?(m||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&pl)!==Pe&&(t.flags|=134217728)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&pl)!==Pe&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=E),n.props=o,n.state=E,n.context=s,n=d):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&pl)!==Pe&&(t.flags|=134217728),n=!1)}else{n=t.stateNode,ph(e,t),s=t.memoizedProps,m=ys(a,s),n.props=m,g=t.pendingProps,T=n.context,E=a.contextType,d=Sr,typeof E==="object"&&E!==null&&(d=Qt(E)),A=a.getDerivedStateFromProps,(E=typeof A==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s!==g||T!==d)&&Ev(t,n,o,d),Ir=!1,T=t.memoizedState,n.state=T,Xi(t,o,n,l),$i();var U=t.memoizedState;s!==g||T!==U||Ir||e!==null&&e.dependencies!==null&&df(e.dependencies)?(typeof A==="function"&&(Vh(t,a,A,o),U=t.memoizedState),(m=Ir||Dv(t,a,m,o,T,U,d)||e!==null&&e.dependencies!==null&&df(e.dependencies))?(E||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,U,d),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,U,d)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=U),n.props=o,n.state=U,n.context=d,n=m):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}if(d=n,Nf(e,t),s=(t.flags&128)!==0,d||s){if(d=t.stateNode,ma(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,so=-1;else if(a=jL(d),t.mode&Ja){_t(!0);try{jL(d)}finally{_t(!1)}}t.flags|=1,e!==null&&s?(t.child=As(t,e.child,null,l),t.child=As(t,null,a,l)):Va(e,t,a,l),t.memoizedState=d.state,e=t.child}else e=kn(e,t,l);return l=t.stateNode,n&&l.props!==o&&(Ju||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Ju=!0),e}function $v(e,t,a,o){return cs(),t.flags|=256,Va(e,t,a,o),t.child}function Qh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",DC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),DC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",MC[t]||(console.error("%s: Function components do not support contextType.",t),MC[t]=!0))}function Zh(e){return{baseLanes:e,cachePool:G0()}}function Wh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=vo),e}function Xv(e,t,a){var o,l=t.pendingProps;v(t)&&(t.flags|=128);var n=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ha.current&_d)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?sr(t):ur(t),(e=Vt)?(a=px(e,Zo),a=a!==null&&a.data!==Ps?a:null,a!==null&&(o={dehydrated:a,treeContext:q0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=E0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw sf(t,e),ar(t);return Ag(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){ur(t);var m=t.mode;return d=Uf({mode:"hidden",children:d},m),l=is(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Zh(a),l.childLanes=Wh(e,o,a),t.memoizedState=Hy,Zi(null,l)}return sr(t),Kh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(sr(t),t.flags&=-257,t=Jh(e,t,a)):t.memoizedState!==null?(ur(t),t.child=e.child,t.flags|=128,t=null):(ur(t),d=l.fallback,m=t.mode,l=Uf({mode:"visible",children:l.children},m),d=is(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,As(t,e.child,null,a),l=t.child,l.memoizedState=Zh(a),l.childLanes=Wh(e,o,a),t.memoizedState=Hy,t=Zi(null,l));else if(sr(t),N0(),(a&536870912)!==0&&Ff(t),Ag(A)){if(o=A.nextSibling&&A.nextSibling.dataset,o){d=o.dgst;var E=o.msg;m=o.stck;var T=o.cstck}n=E,o=d,l=m,A=T,d=n,m=A,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=o,o=m===void 0?null:m,l={value:d,source:null,stack:o},typeof o==="string"&&Sy.set(d,l),zi(l),t=Jh(e,t,a)}else if(La||fu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=os(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),_y;Mg(A)||Gf(),t=Jh(e,t,a)}else Mg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Ao(A.nextSibling),ja=t,dt=!0,xr=null,Jl=!1,qo=null,Zo=!1,e!==null&&B0(t,e),t=Kh(t,l.children),t.flags|=4096);return t}}if(n)return ur(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=Sn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=Sn(A,d):(d=is(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Zi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Zh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=G0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Wh(e,o,a),t.memoizedState=Hy,Zi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Ff(t),sr(t),a=e.child,e=a.sibling,a=Sn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Kh(e,t){return t=Uf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Jh(e,t,a){return As(t,e.child,null,a),e=Kh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jv(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),nh(e.return,t,a)}function eg(e,t,a,o,l,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=l,s.treeForkCount=n)}function Yv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&_d)!==0)?(d=d&Qu|_d,t.flags|=128):d&=Qu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!EC[d])if(EC[d]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l==="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(d=n==null?"null":n,!Bp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")Bp[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(Bp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(Bp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ra(s)){for(d=0;d<s.length;d++)if(!J0(s[d],d))break e}else if(d=ee(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),g=0;!m.done;m=d.next()){if(!J0(m.value,g))break e;g++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(Va(e,t,s,a),dt?(tr(),s=wd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jv(e,a,t);else if(e.tag===19)jv(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(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&xf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),eg(t,!1,l,a,n,s);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&xf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}eg(t,!0,a,null,n,s);break;case"together":eg(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function kn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),so=-1,Ar|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=Sn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Sn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function tg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&df(e)?!0:!1}function YT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),or(t,va,e.memoizedState.cache),cs();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:or(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,gh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return sr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return Xv(e,t,a);return sr(t),e=kn(e,t,a),e!==null?e.sibling:null}sr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(fu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return Yv(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(ha,ha.current,t),o)break;else return null;case 22:return t.lanes=0,_v(e,t,a,t.pendingProps);case 24:or(t,va,e.memoizedState.cache)}return kn(e,t,a)}function ag(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Km(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)La=!0;else{if(!tg(e,a)&&(t.flags&128)===0)return La=!1,YT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)tr(),o=(t.flags&1048576)!==0;o&&(o=t.index,tr(),O0(t,wd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=lr(t.elementType),t.type=e,typeof e==="function")Wm(e)?(o=ys(e,o),t.tag=1,t.type=e=us(e),t=Vv(null,t,e,o,a)):(t.tag=0,Qh(t,e),t.type=e=us(e),t=Yh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===fd){t.tag=11,t.type=e=Zm(e),t=Uv(null,t,e,o,a);break e}else if(l===op){t.tag=14,t=Pv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Do&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Yh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=ys(o,t.pendingProps),Vv(e,t,o,l,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,ph(e,t),Xi(t,o,null,a);var s=t.memoizedState;if(o=s.cache,or(t,va,o),o!==n.cache&&rh(t,[va],a,!0),$i(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=$v(e,t,o,a);break e}else if(o!==l){l=wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),zi(l),t=$v(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Vt=Ao(e.firstChild),ja=t,dt=!0,xr=null,Jl=!1,qo=null,Zo=!0,a=sC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(cs(),o===l){t=kn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Nf(e,t),e===null?(a=vx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=qe(mr.current),o=jf(o).createElement(a),o[Xa]=t,o[lo]=e,$a(o,a,e),Ee(o),t.stateNode=o):t.memoizedState=vx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=qe(mr.current),l=ke(),o=t.stateNode=yx(t.type,t.pendingProps,o,l,!1),Jl||(l=nx(o,t.type,t.pendingProps,l),l!==null&&(ds(t,0).serverProps=l)),ja=t,Zo=!0,l=Vt,fr(t.type)?(db=l,Vt=Ao(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Nf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Fm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=NI(l,t.type,t.pendingProps,Zo),s!==null?(t.stateNode=s,Jl||(n=nx(s,t.type,t.pendingProps,n),n!==null&&(ds(t,0).serverProps=n)),ja=t,Vt=Ao(s.firstChild),Zo=!1,n=!0):n=!1,s=!n),s&&(o&&sf(t,l),ar(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Ig(l,n)?o=null:s!==null&&Ig(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=bh(e,t,_T,null,null,a),lc._currentValue=l),Nf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&dt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Wc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=UI(e,t.pendingProps,Zo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&sf(t,e),ar(t))),null;case 13:return Xv(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=As(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Uv(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,n=l.value,"value"in l||OC||(OC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),or(t,o,n),Va(e,t,l.children,a),t.child;case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),fs(t),l=Qt(l),o=Ry(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Pv(e,t,t.type,t.pendingProps,a);case 15:return zv(e,t,t.type,t.pendingProps,a);case 19:return Yv(e,t,a);case 31:return jT(e,t,a);case 22:return _v(e,t,a,t.pendingProps);case 24:return fs(t),o=Qt(va),e===null?(l=dh(),l===null&&(l=Pt,n=sh(),l.pooledCache=n,ps(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},fh(t),or(t,va,l)):((e.lanes&a)!==0&&(ph(e,t),Xi(t,null,null,a),$i()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),or(t,va,o)):(o=n.cache,or(t,va,o),o!==l.cache&&rh(t,[va],a,!0))),Va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wn(e){e.flags|=4}function og(e,t,a,o,l){if(t=(e.mode&mM)!==Pe)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(IS())e.flags|=8192;else throw Ms=Mp,Ay}else e.flags&=-16777217}function Qv(e,t){if(t.type!=="stylesheet"||(t.state.loading&tl)!==Hs)e.flags&=-16777217;else if(e.flags|=16777216,!kx(t))if(IS())e.flags|=8192;else throw Ms=Mp,Ay}function Pf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ru():536870912,e.lanes|=t,Bs|=t)}function Wi(e,t){if(!dt)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&tt)!==Pe){for(var{selfBaseDuration:l,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&tt)!==Pe){l=e.actualDuration,n=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,l+=s.actualDuration,n+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function QT(e,t,a){var o=t.pendingProps;switch(ah(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return Ht(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ln(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)cu(t)?(lh(),wn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,oh());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(wn(t),n!==null?(Ht(t),Qv(t,n)):(Ht(t),og(t,l,null,o,a))):n?n!==e.memoizedState?(wn(t),Ht(t),Qv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&wn(t),Ht(t),og(t,l,e,o,a)),null;case 27:if(ae(t),a=qe(mr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}e=ke(),cu(t)?U0(t,e):(e=yx(l,o,a,e,!0),t.stateNode=e,wn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}var s=ke();if(cu(t))U0(t,s);else{switch(n=qe(mr.current),Fm(l,s.ancestorInfo),s=s.context,n=jf(n),s){case si:n=n.createElementNS(Du,l);break;case tm:n=n.createElementNS(dp,l);break;default:switch(l){case"svg":n=n.createElementNS(Du,l);break;case"math":n=n.createElementNS(dp,l);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||cl.call(o1,l)||(o1[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[Xa]=t,n[lo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch($a(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&wn(t)}}return Ht(t),og(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&wn(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=qe(mr.current),a=ke(),cu(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Jl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=hx(e,a,o),l!==null&&(ds(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=hx(e,a,o),l!==null&&(ds(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||ex(e.nodeValue,a)?!0:!1,e||ar(t,!0)}else l=a.ancestorInfo.current,l!=null&&Wc(o,l.tag,a.ancestorInfo.implicitRootScope),e=jf(e).createTextNode(o),e[Xa]=t,t.stateNode=e}return Ht(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=cu(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Xa]=t,Ht(t),(t.mode&tt)!==Pe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else lh(),cs(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==Pe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ro(t),t;return Ro(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=cu(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Xa]=t,Ht(t),(t.mode&tt)!==Pe&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else lh(),cs(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==Pe&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Ro(t),t;return Ro(t),null}}if(Ro(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==Pe&&Fi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pf(t,t.updateQueue),Ht(t),(t.mode&tt)!==Pe&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&Sg(t.stateNode.containerInfo),Ht(t),null;case 10:return Ln(t.type,t),Ht(t),null;case 19:if(Be(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Wi(o,!1);else{if(ea!==_n||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=xf(e),n!==null){t.flags|=128,Wi(o,!1),e=n.updateQueue,t.updateQueue=e,Pf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)D0(a,e),a=a.sibling;return Ce(ha,ha.current&Qu|_d,t),dt&&xn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Fp&&(t.flags|=128,l=!0,Wi(o,!1),t.lanes=4194304)}else{if(!l)if(e=xf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Pf(t,e),Wi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Fp&&a!==536870912&&(t.flags|=128,l=!0,Wi(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ha.current,a=l?a&Qu|_d:a&Qu,Ce(ha,a,t),dt&&xn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Ro(t),hh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),a=t.updateQueue,a!==null&&Pf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Be(Is,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ln(va,t),Ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ZT(e,t){switch(ah(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 3:return Ln(va,t),ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(Ro(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 13:if(Ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 19:return Be(ha,t),null;case 4:return ve(t),null;case 10:return Ln(t.type,t),null;case 22:case 23:return Ro(t),hh(t),e!==null&&Be(Is,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 24:return Ln(va,t),null;case 25:return null;default:return null}}function Zv(e,t){switch(ah(t),t.tag){case 3:Ln(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Ro(t);break;case 13:Ro(t);break;case 19:Be(ha,t);break;case 10:Ln(t.type,t);break;case 22:case 23:Ro(t),hh(t),e!==null&&Be(Is,t);break;case 24:Ln(va,t)}}function _l(e){return(e.mode&tt)!==Pe}function Wv(e,t){_l(e)?(zl(),Ki(t,e),Pl()):Ki(t,e)}function lg(e,t,a){_l(e)?(zl(),yu(a,e,t),Pl()):yu(a,e,t)}function Ki(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&uo)!==Dp&&(li=!0),o=re(t,vM,a),(e&uo)!==Dp&&(li=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&No)!==0?"useLayoutEffect":(a.tag&uo)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
|
|
141
141
|
|
|
142
142
|
It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
@@ -150,11 +150,11 @@ It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, w
|
|
|
150
150
|
fetchData();
|
|
151
151
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
152
|
|
|
153
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,re(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},n,s)}a=a.next}while(a!==l)}}catch(d){Ct(t,t.return,d)}}function gu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&so)!==Ap&&(oi=!0),l=t,re(l,vM,l,a,d),(e&so)!==Ap&&(oi=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Wv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function lg(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Kv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ku||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{re(e,ev,t,a)}catch(o){Ct(e,e.return,o)}}}function ZT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function WT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ku||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var l=gs(e.type,a),n=re(e,ZT,t,l,o);a=OC,n!==void 0||a.has(e.type)||(a.add(e.type),re(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(s){Ct(e,e.return,s)}}function Jv(e,t,a){a.props=gs(e.type,e.memoizedProps),a.state=e.memoizedState,zl(e)?(Pl(),re(e,KL,e,t,a),Ul()):re(e,KL,e,t,a)}function KT(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(zl(e))try{Pl(),e.refCleanup=t(a)}finally{Ul()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=a}}function Ki(e,t){try{re(e,KT,e)}catch(a){Ct(e,t,a)}}function _l(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(zl(e))try{Pl(),re(e,o)}finally{Ul(e)}else re(e,o)}catch(l){Ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(zl(e))try{Pl(),re(e,a,null)}finally{Ul(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function eS(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(n,t,o,a)}function JT(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function tS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,CI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function ng(e,t,a){try{re(e,wI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function aS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(ix(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(ix(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=bn));else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(sg(e,t,a),e=e.sibling;e!==null;)sg(e,t,a),e=e.sibling}function Pf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pf(e,t,a),e=e.sibling;e!==null;)Pf(e,t,a),e=e.sibling}function eI(e){for(var t,a=e.return;a!==null;){if(aS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=rg(e),Pf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(ux(a),t.flags&=-33),t=rg(e),Pf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=rg(e),sg(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function oS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,HI,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function lS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function tI(e,t){if(e=e.containerInfo,rb=lm,e=S0(e),Vm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var l=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(de){a=null;break e}var s=0,d=-1,m=-1,g=0,A=0,E=e,T=null;t:for(;;){for(var U;;){if(E!==a||l!==0&&E.nodeType!==3||(d=s+l),E!==n||o!==0&&E.nodeType!==3||(m=s+o),E.nodeType===3&&(s+=E.nodeValue.length),(U=E.firstChild)===null)break;T=E,E=U}for(;;){if(E===e)break t;if(T===a&&++g===l&&(d=s),T===n&&++A===o&&(m=s),(U=E.nextSibling)!==null)break;E=T,T=E.parentNode}E=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;sb={focusedElem:e,selectionRange:a},lm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&WT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Ig(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ig(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ua=e;break}Ua=t.return}}function nS(e,t,a){var o=wo(),l=Ol(),n=Bl(),s=Nl(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(e,a),d&4&&Zv(a,Bo|Ko);break;case 1:if(Hl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,Ry,a,e),Ul()):re(a,Ry,a,e);else{var m=gs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,QL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Ul()):re(a,QL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Kv(a),d&512&&Ki(a,a.return);break;case 3:if(t=Ln(),Hl(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{re(a,ev,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=cf(t);break;case 27:t===null&&d&4&&oS(a);case 26:case 5:if(Hl(e,a),t===null){if(d&4)tS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,kI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ki(a,a.return);break;case 12:if(d&4){d=Ln(),Hl(e,a),e=a.stateNode,e.effectDuration+=_i(d);try{re(a,eS,a,t,xr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Hl(e,a);break;case 31:Hl(e,a),d&4&&uS(e,a);break;case 13:Hl(e,a),d&4&&iS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=dI.bind(null,a),UI(e,d))));break;case 22:if(d=a.memoizedState!==null||Pn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=Pn;var g=Ca;Pn=d,(Ca=t)&&!g?(Fl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(a,qe,Ue)):Hl(e,a),Pn=m,Ca=g}break;case 30:break;default:Hl(e,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ue-qe&&(lS(a.return.alternate,a.return)||Al(a,qe,Ue,"Mount"))),To(o),ql(l),Zt=n,la=s}function rS(e){var t=e.alternate;t!==null&&(e.alternate=null,rS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wn(e,t,a){for(a=a.child;a!==null;)sS(e,t,a),a=a.sibling}function sS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Ru,a)}catch(g){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",g))}var o=wo(),l=Ol(),n=Bl(),s=Nl();switch(a.tag){case 26:Ca||_l(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||_l(a,t);var d=ka,m=go;cr(a.type)&&(ka=a.stateNode,go=!1),wn(e,t,a),re(a,sd,a.stateNode),ka=d,go=m;break;case 5:Ca||_l(a,t);case 6:if(d=ka,m=go,ka=null,wn(e,t,a),ka=d,go=m,ka!==null)if(go)try{re(a,RI,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,II,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(go?(e=ka,dx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ku(e)):dx(ka,a.stateNode));break;case 4:d=ka,m=go,ka=a.stateNode.containerInfo,go=!0,wn(e,t,a),ka=d,go=m;break;case 0:case 11:case 14:case 15:gu(so,a,t),Ca||og(a,t,Bo),wn(e,t,a);break;case 1:Ca||(_l(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&Jv(a,t,d)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,wn(e,t,a),Ca=d;break;default:wn(e,t,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(o),ql(l),Zt=n,la=s}function uS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,zI,e)}catch(a){Ct(t,t.return,a)}}}function iS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,_I,e)}catch(a){Ct(t,t.return,a)}}function aI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function zf(e,t){var a=aI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Ql)if(Ju!==null&&ei!==null)ad(ei,Ju);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=cI.bind(null,e,o);o.then(l,l)}})}function mo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,n=t,s=a[o],d=wo(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(cr(m.type)){ka=m.stateNode,go=!1;break e}break;case 5:ka=m.stateNode,go=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,go=!0;break e}m=m.return}if(ka===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sS(l,n,s),ka=null,go=!1,(s.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(s,qe,Ue,"Unmount"),To(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dS(t,e),t=t.sibling}function dS(e,t){var a=wo(),o=Ol(),l=Bl(),n=Nl(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:mo(t,e),ho(e),d&4&&(gu(so|Ko,e,e.return),Wi(so|Ko,e),og(e,e.return,Bo|Ko));break;case 1:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&64&&Pn&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=hl,mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(g=m.getElementsByTagName("title")[0],!g||g[md]||g[Xa]||g.namespaceURI===Au||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Oe(g),d=g;break e;case"link":var A=xx("link","href",m).get(d+(s.href||""));if(A){for(var E=0;E<A.length;E++)if(g=A[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;case"meta":if(A=xx("meta","content",m).get(d+(s.content||""))){for(E=0;E<A.length;E++)if(g=A[E],gt(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}g[Xa]=e,Oe(g),d=g}e.stateNode=d}else Lx(m,e.type,e.stateNode);else e.stateNode=Sx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?Lx(m,e.type,e.stateNode):Sx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&ng(e,e.memoizedProps,s.memoizedProps)}break;case 27:mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),s!==null&&d&4&&ng(e,e.memoizedProps,s.memoizedProps);break;case 5:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,ux,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,ng(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Hy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(mo(t,e),ho(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{re(e,TI,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Ln(),tm=null,g=hl,hl=jf(t.containerInfo),mo(t,e),hl=g,ho(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,PI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Hy&&(Hy=!1,cS(e)),t.effectDuration+=cf(m);break;case 4:d=hl,hl=jf(e.stateNode.containerInfo),mo(t,e),ho(e),hl=d;break;case 12:d=Ln(),mo(t,e),ho(e),e.stateNode.effectDuration+=_i(d);break;case 31:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 13:mo(t,e),ho(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(_p=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=Pn,de=Ca;if(Pn=U||m,Ca=de||T,mo(t,e),Ca=de,Pn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(e,qe,Ue),ho(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Cd:t._visibility|Cd,!m||s===null||T||Pn||Ca||(ys(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{g=T.stateNode,m?re(T,AI,g):re(T,OI,T.stateNode,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===6){if(s===null){T=t;try{A=T.stateNode,m?re(T,DI,A):re(T,qI,A,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===18){if(s===null){T=t;try{E=T.stateNode,m?re(T,MI,E):re(T,EI,T.stateNode)}catch(ye){Ct(T,T.return,ye)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,zf(e,s))));break;case 19:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 30:break;case 21:break;default:mo(t,e),ho(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ue-qe&&(lS(e.return.alternate,e.return)||Al(e,qe,Ue,"Mount"))),To(a),ql(o),Zt=l,la=n}function ho(e){var t=e.flags;if(t&2){try{re(e,eI,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nS(e,t.alternate,t),t=t.sibling}function fS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 14:case 15:og(e,e.return,Bo),ys(e);break;case 1:_l(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&Jv(e,e.return,n),ys(e);break;case 27:re(e,sd,e.stateNode);case 26:case 5:_l(e,e.return),ys(e);break;case 22:e.memoizedState===null&&ys(e);break;case 30:ys(e);break;default:ys(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),Zt=o,la=l}function ys(e){for(e=e.child;e!==null;)fS(e),e=e.sibling}function pS(e,t,a,o){var l=wo(),n=Ol(),s=Bl(),d=Nl(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a,o),Zv(a,Bo);break;case 1:if(Fl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,Ry,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,PT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Kv(a),Ki(a,a.return);break;case 27:oS(a);case 26:case 5:Fl(e,a,o),o&&t===null&&m&4&&tS(a),Ki(a,a.return);break;case 12:if(o&&m&4){m=Ln(),Fl(e,a,o),o=a.stateNode,o.effectDuration+=_i(m);try{re(a,eS,a,t,xr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Fl(e,a,o);break;case 31:Fl(e,a,o),o&&m&4&&uS(e,a);break;case 13:Fl(e,a,o),o&&m&4&&iS(e,a);break;case 22:a.memoizedState===null&&Fl(e,a,o),Ki(a,a.return);break;case 30:break;default:Fl(e,a,o)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(l),ql(n),Zt=s,la=d}function Fl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)pS(e,t.alternate,t,a),t=t.sibling}function ug(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&&fs(e),a!=null&&zi(a))}function ig(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fs(t),e!=null&&zi(e))}function il(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;mS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function mS(e,t,a,o,l){var n=wo(),s=Ol(),d=Bl(),m=Nl(),g=yr,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a),il(e,t,a,o,l),A&2048&&Wv(t,uo|Ko);break;case 1:(t.mode&tt)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?Xm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a)),il(e,t,a,o,l);break;case 3:var E=Ln(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,il(e,t,a,o,l),Ma=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fs(o),a!=null&&zi(a))),e.passiveEffectDuration+=cf(E);break;case 12:if(A&2048){A=Ln(),il(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=_i(A);try{re(t,JT,t,t.alternate,xr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else il(e,t,a,o,l);break;case 31:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,il(e,t,a,o,l),Ma=A;break;case 13:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E===null||E.dehydrated===null||T!==null&&T.dehydrated!==null?Ma=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0),il(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Rn?il(e,t,a,o,l):Ji(e,t,a,o,l):T._visibility&Rn?il(e,t,a,o,l):(T._visibility|=Rn,yu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===ze||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&ef(t,e,l),0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(t,qe,Ue))),A&2048&&ug(E,t);break;case 24:il(e,t,a,o,l),A&2048&&ig(t.alternate,t);break;default:il(e,t,a,o,l)}if((t.mode&tt)!==ze){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Al(t,a,l,"Mount");0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),e&&0.05<Ue-qe&&Al(t,qe,Ue,"Mount"))}To(n),ql(s),Zt=d,la=m,yr=g}function yu(e,t,a,o,l,n){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;hS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function hS(e,t,a,o,l,n){var s=wo(),d=Ol(),m=Bl(),g=Nl(),A=yr;l&&(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:yu(e,t,a,o,l,n),Wv(t,uo);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Rn?yu(e,t,a,o,l,n):Ji(e,t,a,o,n):(T._visibility|=Rn,yu(e,t,a,o,l,n)),l&&E&2048&&ug(t.alternate,t);break;case 24:yu(e,t,a,o,l,n),l&&E&2048&&ig(t.alternate,t);break;default:yu(e,t,a,o,l,n)}(t.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),To(s),ql(d),Zt=m,la=g,yr=A}function Ji(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var s=e,d=a,m=o,g=t!==null?t.actualStartTime:l,A=yr;(n.mode&tt)!==ze&&0<n.actualStartTime&&(n.flags&1)!==0&&tf(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:Ji(s,n,d,m,g),E&2048&&ug(n.alternate,n);break;case 24:Ji(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;default:Ji(s,n,d,m,g)}yr=A,n=t}}function bu(e,t,a){if(e.subtreeFlags&Gd)for(e=e.child;e!==null;)gS(e,t,a),e=e.sibling}function gS(e,t,a){switch(e.tag){case 26:bu(e,t,a),e.flags&Gd&&e.memoizedState!==null&&VI(a,hl,e.memoizedState,e.memoizedProps);break;case 5:bu(e,t,a);break;case 3:case 4:var o=hl;hl=jf(e.stateNode.containerInfo),bu(e,t,a),hl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Gd,Gd=16777216,bu(e,t,a),Gd=o):bu(e,t,a));break;default:bu(e,t,a)}}function yS(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 ed(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,SS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}yS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bS(e),e=e.sibling}function bS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:ed(e),e.flags&2048&&lg(e,e.return,uo|Ko);break;case 3:var n=Ln();ed(e),e.stateNode.passiveEffectDuration+=cf(n);break;case 12:n=Ln(),ed(e),e.stateNode.passiveEffectDuration+=_i(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Rn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Rn,_f(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")):ed(e);break;default:ed(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function _f(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,SS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}yS(e)}for(e=e.child;e!==null;)vS(e),e=e.sibling}function vS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:lg(e,e.return,uo),_f(e);break;case 22:var n=e.stateNode;n._visibility&Rn&&(n._visibility&=~Rn,_f(e));break;default:_f(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function SS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=wo(),s=Ol(),d=Bl(),m=Nl();switch(o.tag){case 0:case 11:case 15:lg(o,l,uo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&fs(l));break;case 24:zi(o.memoizedState.cache)}if((o.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(o,qe,Ue,Jt,Zt),To(n),ql(s),la=m,Zt=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,n=o.sibling,s=o.return,rS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function oI(){kM.forEach(function(e){return e()})}function xS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ro(e){if((ht&Aa)!==Pa&&ot!==0)return ot&-ot;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),yg()):O()}function LS(){if(bo===0)if((ot&536870912)===0||dt){var e=np;np<<=1,(np&3932160)===0&&(np=262144),bo=e}else bo=536870912;return e=qo.current,e!==null&&(e.flags|=32),bo}function oa(e,t,a){if(oi&&console.error("useInsertionEffect must not schedule updates."),Ky&&(Vp=!0),e===Pt&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)Su(e,0),ir(e,ot,bo,!1);if(Wn(e,a),(ht&Aa)!==Pa&&e===Pt){if(jl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",QC.has(e)||(QC.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:YC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),YC=!0)}}else Ql&&Ri(e,t,a),pI(t),e===Pt&&((ht&Aa)===Pa&&(Ar|=a),ea===Ir&&ir(e,ot,bo,!1)),Gl(e)}function CS(e,t,a){if((ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(ot!==0&<!==null){var o=lt,l=Ba();switch(HL){case Xd:case Es:var n=Md;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,Vo,void 0,"primary-light")):console.timeStamp("Suspended",n,l,Vo,void 0,"primary-light"));break;case Os:n=Md,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,Vo,void 0,"primary-light")):console.timeStamp("Action",n,l,Vo,void 0,"primary-light"));break;default:Gt&&(o=l-Md,3>o||console.timeStamp("Blocked",Md,l,Vo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jr(e,t))?nI(e,t):cg(e,t,!0);var s=a;do{if(n===zn){ti&&!a&&ir(e,t,0,!1),t=Dt,Md=Sa(),HL=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!lI(l)){Co(t),l=Na,n=o,!Gt||n<=l||(ca?ca.run(console.timeStamp.bind(console,"Teared Render",l,n,it,st,"error")):console.timeStamp("Teared Render",l,n,it,st,"error")),bs(t,o),n=cg(e,t,!1),s=!1;continue}if(n===Ds){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){Co(t),jm(Na,o,t,ca),bs(t,o),t=d;e:{o=e,n=s,s=Yd;var m=o.current.memoizedState.isDehydrated;if(m&&(Su(o,d).flags|=256),d=cg(o,d,!1),d!==Ds){if(Vy&&!m){o.errorRecoveryDisabledLanes|=n,Ar|=n,n=Ir;break e}o=io,io=s,o!==null&&(io===null?io=o:io.push.apply(io,o))}n=d}if(s=!1,n!==Ds)continue;else o=Ba()}}if(n===$d){Co(t),jm(Na,o,t,ca),bs(t,o),Su(e,0),ir(e,t,0,!0);break}e:{switch(a=e,n){case zn:case $d:throw Error("Root did not complete. This is a bug in React.");case Ir:if((t&4194048)!==t)break;case Np:Co(t),C0(Na,o,t,ca),bs(t,o),l=t,(l&127)!==0?xp=o:(l&4194048)!==0&&(Lp=o),ir(a,t,bo,!Rr);break e;case Ds:io=null;break;case Bp:case BC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)fg(a,l,t,io,Qd,zp,bo,Ar,qs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=_p+PC-Ba(),10<s)){if(ir(a,t,bo,!Rr),Kr(a,0,!0)!==0)break e;gl=t,a.timeoutHandle=o1(kS.bind(null,a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,"Throttled",Na,o),s);break e}kS(a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,null,Na,o)}}}break}while(1);Gl(e)}function kS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=zs;var de=t.subtreeFlags,ye=null;if(de&8192||(de&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},gS(t,n,ye),de=(n&62914560)===n?_p-Ba():(n&4194048)===n?UC-Ba():0,de=$I(ye,de),de!==null){gl=n,e.cancelPendingCommit=de(fg.bind(null,e,t,n,a,o,l,s,d,m,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,T,U)),ir(e,n,s,!g);return}}fg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function lI(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 o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!no(n(),l))return!1}catch(s){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 ir(e,t,a,o){t&=~$y,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-ao(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&es(e,a,t)}function vu(){return(ht&(Aa|No))===Pa?(od(0,!1),!1):!0}function dg(){if(lt!==null){if(Dt===yo)var e=lt.return;else e=lt,sf(),xh(e),Xu=null,Pd=0,e=lt;for(;e!==null;)Qv(e.alternate,e),e=e.return;lt=null}}function bs(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(en=t),(e&62914560)!==0&&(zL=t),(e&2080374784)!==0&&(_L=t)}function Su(e,t){Gt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",st,"primary-light"));var a=Na;if(Na=Sa(),ot!==0&&0<a){if(Co(ot),ea===Bp||ea===Ir)C0(a,Na,t,ca);else{var o=Na,l=ca;if(Gt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,a,o,it,st,n)):console.timeStamp(s,a,o,it,st,n)}}bs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Td,l=0<=Jl&&Jl<Lr?Lr:Jl,o=0<=Cs&&Cs<Lr?Lr:Cs,n=0<=o?o:0<=l?l:Na,0<=xp?(Co(2),k0(xp,n,t,a)):(Cp&127)!==0&&(Co(2),Ui(Lr,n,qn)),a=l;var d=o,m=Id,g=0<Gu,A=Cr===wd,E=Cr===Sp;if(l=Na,o=Td,n=Cy,s=ky,Gt){if(it="Blocking",0<a?a>l&&(a=l):a=l,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var T=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+m,d,a,it,st,T)):console.timeStamp(g?"Consecutive":"Event: "+m,d,a,it,st,T)}l>a&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=E?"Promise Resolved":A?"Cascading Update":5<l-a?"Update Blocked":"Update",E=[],s!=null&&E.push(["Component name",s]),n!=null&&E.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:E,track:it,trackGroup:st,color:d}}},o?o.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Jl=-1.1,Cr=0,ky=Cy=null,xp=-1.1,Gu=Cs,Cs=-1.1,Lr=Sa()}if((t&4194048)!==0&&(ca=Rd,l=0<=On&&On<en?en:On,a=0<=Zo&&Zo<en?en:Zo,o=0<=kr&&kr<en?en:kr,n=0<=o?o:0<=a?a:Na,0<=Lp?(Co(256),k0(Lp,n,t,ca)):(Cp&4194048)!==0&&(Co(256),Ui(en,n,qn)),E=o,d=ks,m=0<wr,g=wy===Sp,n=Na,o=Rd,s=UL,A=PL,Gt&&(it="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<E?E>l&&(E=l):E=l,l>E&&d!==null&&(T=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,E,l,it,st,T)):console.timeStamp(m?"Consecutive":"Event: "+d,E,l,it,st,T)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,it,st,"primary-dark")):console.timeStamp("Action",l,a,it,st,"primary-dark")),n>a&&(l=g?"Promise Resolved":5<n-a?"Update Blocked":"Update",E=[],A!=null&&E.push(["Component name",A]),s!=null&&E.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:E,track:it,trackGroup:st,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Zo=On=-1.1,wy=0,Lp=-1.1,wr=kr,kr=-1.1,en=Sa()),(t&62914560)!==0&&(Cp&62914560)!==0&&(Co(4194304),Ui(zL,Na,qn)),(t&2080374784)!==0&&(Cp&2080374784)!==0&&(Co(268435456),Ui(_L,Na,qn)),a=e.timeoutHandle,a!==zs&&(e.timeoutHandle=zs,UM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),gl=0,dg(),Pt=e,lt=a=vn(e.current,null),ot=t,Dt=yo,Uo=null,Rr=!1,ti=Jr(e,t),Vy=!1,ea=zn,qs=bo=$y=Ar=Mr=0,io=Yd=null,zp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-ao(o),n=1<<l,t|=e[l],o&=~n;return an=t,af(),e=DL(),1000<e-AL&&(G.recentlyCreatedOwnerStacks=0,AL=e),pl.discardPendingWarnings(),a}function wS(e,t){Fe=null,G.H=Fd,G.getCurrentStack=null,jl=!1,Do=null,t===$u||t===Ip?(t=X0(),Dt=Xd):t===My?(t=X0(),Dt=NC):Dt=t===zy?Gy:t!==null&&typeof t==="object"&&typeof t.then==="function"?jd:Up,Uo=t;var a=lt;a===null?(ea=$d,Of(e,ko(t,e.current))):a.mode&tt&&uh(a)}function TS(){var e=qo.current;return e===null?!0:(ot&4194048)===ot?Wo===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Wo:!1}function IS(){var e=G.H;return G.H=Fd,e===null?Fd:e}function RS(){var e=G.A;return G.A=CM,e}function Hf(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Ff(){ea=Ir,Rr||(ot&4194048)!==ot&&qo.current!==null||(ti=!0),(Mr&134217727)===0&&(Ar&134217727)===0||Pt===null||ir(Pt,ot,bo,!1)}function cg(e,t,a){var o=ht;ht|=Aa;var l=IS(),n=RS();if(Pt!==e||ot!==t){if(Ql){var s=e.memoizedUpdaters;0<s.size&&(ad(e,ot),s.clear()),Kn(e,t)}Qd=null,Su(e,t)}t=!1,s=ea;e:do try{if(Dt!==yo&<!==null){var d=lt,m=Uo;switch(Dt){case Gy:dg(),s=Np;break e;case Xd:case Es:case Os:case jd:qo.current===null&&(t=!0);var g=Dt;if(Dt=yo,Uo=null,xu(e,d,m,g),a&&ti){s=zn;break e}break;default:g=Dt,Dt=yo,Uo=null,xu(e,d,m,g)}}MS(),s=ea;break}catch(A){wS(e,A)}while(1);return t&&e.shellSuspendCounter++,sf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,af()),s}function MS(){for(;lt!==null;)AS(lt)}function nI(e,t){var a=ht;ht|=Aa;var o=IS(),l=RS();if(Pt!==e||ot!==t){if(Ql){var n=e.memoizedUpdaters;0<n.size&&(ad(e,ot),n.clear()),Kn(e,t)}Qd=null,Hp=Ba()+zC,Su(e,t)}else ti=Jr(e,t);e:do try{if(Dt!==yo&<!==null)t:switch(t=lt,n=Uo,Dt){case Up:Dt=yo,Uo=null,xu(e,t,n,Up);break;case Es:case Os:if(V0(n)){Dt=yo,Uo=null,DS(t);break}t=function(){Dt!==Es&&Dt!==Os||Pt!==e||(Dt=Pp),Gl(e)},n.then(t,t);break e;case Xd:Dt=Pp;break e;case NC:Dt=Fy;break e;case Pp:V0(n)?(Dt=yo,Uo=null,DS(t)):(Dt=yo,Uo=null,xu(e,t,n,Pp));break;case Fy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?Cx(s):d.stateNode.complete){Dt=yo,Uo=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Gf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=yo,Uo=null,xu(e,t,n,Fy);break;case jd:Dt=yo,Uo=null,xu(e,t,n,jd);break;case Gy:dg(),ea=Np;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?MS():rI();break}catch(A){wS(e,A)}while(1);if(sf(),G.H=o,G.A=l,ht=a,lt!==null)return zn;return Pt=null,ot=0,af(),ea}function rI(){for(;lt!==null&&!lR();)AS(lt)}function AS(e){var t=e.alternate;(e.mode&tt)!==ze?(sh(e),t=re(e,tg,t,e,an),uh(e)):t=re(e,tg,t,e,an),e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function DS(e){var t=re(e,sI,e);e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function sI(e){var t=e.alternate,a=(e.mode&tt)!==ze;switch(a&&sh(e),e.tag){case 15:case 0:t=Fv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Fv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:xh(e);default:Qv(t,e),e=lt=A0(e,an),t=tg(t,e,an)}return a&&uh(e),t}function xu(e,t,a,o){sf(),xh(t),Xu=null,Pd=0;var l=t.return;try{if($T(e,l,t,a,ot)){ea=$d,Of(e,ko(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=$d,Of(e,ko(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Up)e=!0;else if(ti||(ot&536870912)!==0)e=!1;else if(Rr=e=!0,o===Es||o===Os||o===Xd||o===jd)o=qo.current,o!==null&&o.tag===13&&(o.flags|=16384);ES(t,e)}else Gf(t)}function Gf(e){var t=e;do{if((t.flags&32768)!==0){ES(t,Rr);return}var a=t.alternate;if(e=t.return,sh(t),a=re(t,YT,a,t,an),(t.mode&tt)!==ze&&z0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===zn&&(ea=BC)}function ES(e,t){do{var a=QT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==ze){z0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);ea=Np,lt=null}function fg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do td();while(wa!==Er);if(pl.flushLegacyContextWarning(),pl.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(Co(a),g===Ds?jm(T,U,a,ca):o!==null?ET(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):DT(T,U,a,ca),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(n=t.lanes|t.childLanes,n|=by,$c(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),ai=t,Or=e,gl=a,Yy=n,Zy=l,$C=o,Qy=U,XC=E,yl=Fp,jC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fI(Iu,function(){return tc=window.event,yl===Fp&&(yl=jy),US(),null})):(e.callbackNode=null,e.callbackPriority=0),En=null,xr=Sa(),E!==null&&OT(U,xr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Eo,s=ht,ht|=No;try{tI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=HC,OS(),qS(),BS()}}function OS(){if(wa===HC){wa=Er;var e=Or,t=ai,a=gl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),dS(t,e),ei=Ju=null,a=sb;var s=S0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&v0(d.ownerDocument.documentElement,d)){if(m!==null&&Vm(d)){var{start:g,end:A}=m;if(A===void 0&&(A=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(A,d.value.length);else{var E=d.ownerDocument||document,T=E&&E.defaultView||window;if(T.getSelection){var U=T.getSelection(),de=d.textContent.length,ye=Math.min(m.start,de),Ft=m.end===void 0?ye:Math.min(m.end,de);!U.extend&&ye>Ft&&(s=Ft,Ft=ye,ye=s);var pt=b0(d,ye),w=b0(d,Ft);if(pt&&w&&(U.rangeCount!==1||U.anchorNode!==pt.node||U.anchorOffset!==pt.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var I=E.createRange();I.setStart(pt.node,pt.offset),U.removeAllRanges(),ye>Ft?(U.addRange(I),U.extend(w.node,w.offset)):(I.setEnd(w.node,w.offset),U.addRange(I))}}}}E=[];for(U=d;U=U.parentNode;)U.nodeType===1&&E.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<E.length;d++){var M=E[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}lm=!!rb,sb=rb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=FC}}function qS(){if(wa===FC){wa=Er;var e=jC;if(e!==null){xr=Sa();var t=Dn,a=xr;!Gt||a<=t||(qn?qn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=Or,t=ai,a=gl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),nS(e,t.alternate,t),ei=Ju=null}finally{ht=n,kt.p=l,G.T=o}}e=Qy,t=XC,Dn=Sa(),e=t===null?e:xr,t=Dn,a=yl===Xy,o=ca,En!==null?w0(e,t,En,!1,o):!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),wa=GC}}function BS(){if(wa===VC||wa===GC){if(wa===VC){var e=Dn;Dn=Sa();var t=Dn,a=yl===Xy;!Gt||t<=e||(qn?qn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light")),yl!==Xy&&(yl=_C)}wa=Er,nR(),e=Or;var o=ai;t=gl,a=$C;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Gp:(wa=Er,ai=Or=null,NS(e,e.pendingLanes),Bs=0,Wd=null);var n=e.pendingLanes;if(n===0&&(Dr=null),l||HS(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Eo:var d=Zg;break;case cl:d=Wg;break;case Zl:d=Iu;break;case sp:d=Kg;break;default:d=Iu}Ka.onCommitFiberRoot(Ru,o,d,s)}catch(E){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",E))}if(Ql&&e.memoizedUpdaters.clear(),oI(),a!==null){s=G.T,d=kt.p,kt.p=Eo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=uI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(gl&3)!==0&&td(),Gl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(wp=!0,e===Wy?Zd++:(Zd=0,Wy=e)):Zd=0,l||bs(t,Dn),od(0,!1)}}function uI(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function NS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function td(){return OS(),qS(),BS(),US()}function US(){if(wa!==Gp)return!1;var e=Or,t=Yy;Yy=0;var a=y(gl),o=Zl===0||Zl>a?Zl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Zy;Zy=null,o=Or;var s=gl;if(wa=Er,ai=Or=null,gl=0,(ht&(Aa|No))!==Pa)throw Error("Cannot flush passive effects while already rendering.");Co(s),Ky=!0,Vp=!1;var d=0;if(En=null,d=Ba(),yl===_C)Ui(Dn,d,qn);else{var m=Dn,g=d,A=yl===jy;!Gt||g<=m||(ca?ca.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light"))}m=ht,ht|=No;var E=o.current;ff(),bS(E);var T=o.current;E=Qy,ff(),mS(o,T,s,n,E),HS(o),ht=m;var U=Ba();if(T=d,E=ca,En!==null?w0(T,U,En,!0,E):!Gt||U<=T||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",T,U,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",T,U,it,st,"secondary-dark")),bs(s,U),od(0,!1),Vp?o===Wd?Bs++:(Bs=0,Wd=o):Bs=0,Vp=Ky=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Ru,o)}catch(ye){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=o.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{kt.p=l,G.T=a,NS(e,t)}}function PS(e,t,a){t=ko(a,t),_0(t),t=Vh(e.stateNode,t,2),e=nr(e,t,2),e!==null&&(Wn(e,2),Gl(e))}function Ct(e,t,a){if(oi=!1,e.tag===3)PS(e,e,a);else{for(;t!==null;){if(t.tag===3){PS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Dr===null||!Dr.has(o))){e=ko(a,e),_0(e),a=$h(2),o=nr(t,a,2),o!==null&&(Xh(a,o,t,e),Wn(o,2),Gl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,re(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},n,s)}a=a.next}while(a!==l)}}catch(d){Ct(t,t.return,d)}}function yu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&uo)!==Dp&&(li=!0),l=t,re(l,SM,l,a,d),(e&uo)!==Dp&&(li=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Kv(e,t){_l(e)?(zl(),Ki(t,e),Pl()):Ki(t,e)}function ng(e,t,a){_l(e)?(zl(),yu(a,e,t),Pl()):yu(a,e,t)}function Jv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ju||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{re(e,tv,t,a)}catch(o){Ct(e,e.return,o)}}}function WT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function KT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ju||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var l=ys(e.type,a),n=re(e,WT,t,l,o);a=qC,n!==void 0||a.has(e.type)||(a.add(e.type),re(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(s){Ct(e,e.return,s)}}function eS(e,t,a){a.props=ys(e.type,e.memoizedProps),a.state=e.memoizedState,_l(e)?(zl(),re(e,JL,e,t,a),Pl()):re(e,JL,e,t,a)}function JT(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(_l(e))try{zl(),e.refCleanup=t(a)}finally{Pl()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=a}}function Ji(e,t){try{re(e,JT,e)}catch(a){Ct(e,t,a)}}function Hl(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(_l(e))try{zl(),re(e,o)}finally{Pl(e)}else re(e,o)}catch(l){Ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(_l(e))try{zl(),re(e,a,null)}finally{Pl(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function tS(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",wp&&(t="nested-update"),typeof l==="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(n,t,o,a)}function eI(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",wp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function aS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,kI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function rg(e,t,a){try{re(e,TI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function oS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function sg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ug(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(dx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(dx(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=vn));else if(o!==4&&(o===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ug(e,t,a),e=e.sibling;e!==null;)ug(e,t,a),e=e.sibling}function zf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zf(e,t,a),e=e.sibling;e!==null;)zf(e,t,a),e=e.sibling}function tI(e){for(var t,a=e.return;a!==null;){if(oS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=sg(e),zf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(ix(a),t.flags&=-33),t=sg(e),zf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=sg(e),ug(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function lS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,FI,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function nS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function aI(e,t){if(e=e.containerInfo,sb=nm,e=x0(e),$m(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var l=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(de){a=null;break e}var s=0,d=-1,m=-1,g=0,A=0,E=e,T=null;t:for(;;){for(var U;;){if(E!==a||l!==0&&E.nodeType!==3||(d=s+l),E!==n||o!==0&&E.nodeType!==3||(m=s+o),E.nodeType===3&&(s+=E.nodeValue.length),(U=E.firstChild)===null)break;T=E,E=U}for(;;){if(E===e)break t;if(T===a&&++g===l&&(d=s),T===n&&++A===o&&(m=s),(U=E.nextSibling)!==null)break;E=T,T=E.parentNode}E=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;ub={focusedElem:e,selectionRange:a},nm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&KT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Rg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ua=e;break}Ua=t.return}}function rS(e,t,a){var o=To(),l=ql(),n=Nl(),s=Ul(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a),d&4&&Wv(a,No|Jo);break;case 1:if(Fl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ju||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),_l(a)?(zl(),re(a,My,a,e),Pl()):re(a,My,a,e);else{var m=ys(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ju||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),_l(a)?(zl(),re(a,ZL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Pl()):re(a,ZL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Jv(a),d&512&&Ji(a,a.return);break;case 3:if(t=Cn(),Fl(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{re(a,tv,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=ff(t);break;case 27:t===null&&d&4&&lS(a);case 26:case 5:if(Fl(e,a),t===null){if(d&4)aS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,wI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ji(a,a.return);break;case 12:if(d&4){d=Cn(),Fl(e,a),e=a.stateNode,e.effectDuration+=Hi(d);try{re(a,tS,a,t,Lr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Fl(e,a);break;case 31:Fl(e,a),d&4&&iS(e,a);break;case 13:Fl(e,a),d&4&&dS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=cI.bind(null,a),PI(e,d))));break;case 22:if(d=a.memoizedState!==null||zn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=zn;var g=Ca;zn=d,(Ca=t)&&!g?(Gl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(a,Oe,Ne)):Fl(e,a),zn=m,Ca=g}break;case 30:break;default:Fl(e,a)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ne-Oe&&(nS(a.return.alternate,a.return)||Dl(a,Oe,Ne,"Mount"))),Io(o),Bl(l),Zt=n,la=s}function sS(e){var t=e.alternate;t!==null&&(e.alternate=null,sS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tn(e,t,a){for(a=a.child;a!==null;)uS(e,t,a),a=a.sibling}function uS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Mu,a)}catch(g){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",g))}var o=To(),l=ql(),n=Nl(),s=Ul();switch(a.tag){case 26:Ca||Hl(a,t),Tn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||Hl(a,t);var d=ka,m=yo;fr(a.type)&&(ka=a.stateNode,yo=!1),Tn(e,t,a),re(a,ud,a.stateNode),ka=d,yo=m;break;case 5:Ca||Hl(a,t);case 6:if(d=ka,m=yo,ka=null,Tn(e,t,a),ka=d,yo=m,ka!==null)if(yo)try{re(a,MI,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,RI,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(yo?(e=ka,cx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wu(e)):cx(ka,a.stateNode));break;case 4:d=ka,m=yo,ka=a.stateNode.containerInfo,yo=!0,Tn(e,t,a),ka=d,yo=m;break;case 0:case 11:case 14:case 15:yu(uo,a,t),Ca||lg(a,t,No),Tn(e,t,a);break;case 1:Ca||(Hl(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&eS(a,t,d)),Tn(e,t,a);break;case 21:Tn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,Tn(e,t,a),Ca=d;break;default:Tn(e,t,a)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),Io(o),Bl(l),Zt=n,la=s}function iS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,_I,e)}catch(a){Ct(t,t.return,a)}}}function dS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,HI,e)}catch(a){Ct(t,t.return,a)}}function oI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new BC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new BC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function _f(e,t){var a=oI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Zl)if(ei!==null&&ti!==null)od(ti,ei);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=fI.bind(null,e,o);o.then(l,l)}})}function ho(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,n=t,s=a[o],d=To(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(fr(m.type)){ka=m.stateNode,yo=!1;break e}break;case 5:ka=m.stateNode,yo=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,yo=!0;break e}m=m.return}if(ka===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");uS(l,n,s),ka=null,yo=!1,(s.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(s,Oe,Ne,"Unmount"),Io(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cS(t,e),t=t.sibling}function cS(e,t){var a=To(),o=ql(),l=Nl(),n=Ul(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:ho(t,e),go(e),d&4&&(yu(uo|Jo,e,e.return),Ki(uo|Jo,e),lg(e,e.return,No|Jo));break;case 1:if(ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),d&64&&zn&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=gl,ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(g=m.getElementsByTagName("title")[0],!g||g[hd]||g[Xa]||g.namespaceURI===Du||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Ee(g),d=g;break e;case"link":var A=Lx("link","href",m).get(d+(s.href||""));if(A){for(var E=0;E<A.length;E++)if(g=A[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;case"meta":if(A=Lx("meta","content",m).get(d+(s.content||""))){for(E=0;E<A.length;E++)if(g=A[E],gt(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}g[Xa]=e,Ee(g),d=g}e.stateNode=d}else Cx(m,e.type,e.stateNode);else e.stateNode=xx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?Cx(m,e.type,e.stateNode):xx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&rg(e,e.memoizedProps,s.memoizedProps)}break;case 27:ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),s!==null&&d&4&&rg(e,e.memoizedProps,s.memoizedProps);break;case 5:if(ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,ix,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,rg(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Fy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ho(t,e),go(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{re(e,II,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Cn(),am=null,g=gl,gl=Yf(t.containerInfo),ho(t,e),gl=g,go(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,zI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Fy&&(Fy=!1,fS(e)),t.effectDuration+=ff(m);break;case 4:d=gl,gl=Yf(e.stateNode.containerInfo),ho(t,e),go(e),gl=d;break;case 12:d=Cn(),ho(t,e),go(e),e.stateNode.effectDuration+=Hi(d);break;case 31:ho(t,e),go(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 13:ho(t,e),go(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(Hp=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=zn,de=Ca;if(zn=U||m,Ca=de||T,ho(t,e),Ca=de,zn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(e,Oe,Ne),go(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~kd:t._visibility|kd,!m||s===null||T||zn||Ca||(bs(e),(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(e,Oe,Ne,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{g=T.stateNode,m?re(T,DI,g):re(T,qI,T.stateNode,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===6){if(s===null){T=t;try{A=T.stateNode,m?re(T,EI,A):re(T,BI,A,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===18){if(s===null){T=t;try{E=T.stateNode,m?re(T,AI,E):re(T,OI,T.stateNode)}catch(ye){Ct(T,T.return,ye)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,_f(e,s))));break;case 19:ho(t,e),go(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 30:break;case 21:break;default:ho(t,e),go(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ne-Oe&&(nS(e.return.alternate,e.return)||Dl(e,Oe,Ne,"Mount"))),Io(a),Bl(o),Zt=l,la=n}function go(e){var t=e.flags;if(t&2){try{re(e,tI,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rS(e,t.alternate,t),t=t.sibling}function pS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 14:case 15:lg(e,e.return,No),bs(e);break;case 1:Hl(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&eS(e,e.return,n),bs(e);break;case 27:re(e,ud,e.stateNode);case 26:case 5:Hl(e,e.return),bs(e);break;case 22:e.memoizedState===null&&bs(e);break;case 30:bs(e);break;default:bs(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),Zt=o,la=l}function bs(e){for(e=e.child;e!==null;)pS(e),e=e.sibling}function mS(e,t,a,o){var l=To(),n=ql(),s=Nl(),d=Ul(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Gl(e,a,o),Wv(a,No);break;case 1:if(Gl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,My,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,zT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Jv(a),Ji(a,a.return);break;case 27:lS(a);case 26:case 5:Gl(e,a,o),o&&t===null&&m&4&&aS(a),Ji(a,a.return);break;case 12:if(o&&m&4){m=Cn(),Gl(e,a,o),o=a.stateNode,o.effectDuration+=Hi(m);try{re(a,tS,a,t,Lr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Gl(e,a,o);break;case 31:Gl(e,a,o),o&&m&4&&iS(e,a);break;case 13:Gl(e,a,o),o&&m&4&&dS(e,a);break;case 22:a.memoizedState===null&&Gl(e,a,o),Ji(a,a.return);break;case 30:break;default:Gl(e,a,o)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),Io(l),Bl(n),Zt=s,la=d}function Gl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)mS(e,t.alternate,t,a),t=t.sibling}function ig(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&&ps(e),a!=null&&_i(a))}function dg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ps(t),e!=null&&_i(e))}function dl(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;hS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function hS(e,t,a,o,l){var n=To(),s=ql(),d=Nl(),m=Ul(),g=br,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==Pe&&0<t.actualStartTime&&(t.flags&1)!==0&&af(t,t.actualStartTime,l,Ma,a),dl(e,t,a,o,l),A&2048&&Kv(t,io|Jo);break;case 1:(t.mode&tt)!==Pe&&0<t.actualStartTime&&((t.flags&128)!==0?jm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&af(t,t.actualStartTime,l,Ma,a)),dl(e,t,a,o,l);break;case 3:var E=Cn(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,dl(e,t,a,o,l),Ma=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(ps(o),a!=null&&_i(a))),e.passiveEffectDuration+=ff(E);break;case 12:if(A&2048){A=Cn(),dl(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=Hi(A);try{re(t,eI,t,t.alternate,Lr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else dl(e,t,a,o,l);break;case 31:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&jm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,dl(e,t,a,o,l),Ma=A;break;case 13:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E===null||E.dehydrated===null||T!==null&&T.dehydrated!==null?Ma=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&jm(t,t.actualStartTime,l,E)):Ma=!0),dl(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Mn?dl(e,t,a,o,l):ed(e,t,a,o,l):T._visibility&Mn?dl(e,t,a,o,l):(T._visibility|=Mn,bu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===Pe||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&tf(t,e,l),0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(t,Oe,Ne))),A&2048&&ig(E,t);break;case 24:dl(e,t,a,o,l),A&2048&&dg(t.alternate,t);break;default:dl(e,t,a,o,l)}if((t.mode&tt)!==Pe){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Dl(t,a,l,"Mount");0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(t,Oe,Ne,Jt,Zt),e&&0.05<Ne-Oe&&Dl(t,Oe,Ne,"Mount"))}Io(n),Bl(s),Zt=d,la=m,br=g}function bu(e,t,a,o,l,n){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;gS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function gS(e,t,a,o,l,n){var s=To(),d=ql(),m=Nl(),g=Ul(),A=br;l&&(t.mode&tt)!==Pe&&0<t.actualStartTime&&(t.flags&1)!==0&&af(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:bu(e,t,a,o,l,n),Kv(t,io);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Mn?bu(e,t,a,o,l,n):ed(e,t,a,o,n):(T._visibility|=Mn,bu(e,t,a,o,l,n)),l&&E&2048&&ig(t.alternate,t);break;case 24:bu(e,t,a,o,l,n),l&&E&2048&&dg(t.alternate,t);break;default:bu(e,t,a,o,l,n)}(t.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(t,Oe,Ne,Jt,Zt),Io(s),Bl(d),Zt=m,la=g,br=A}function ed(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var s=e,d=a,m=o,g=t!==null?t.actualStartTime:l,A=br;(n.mode&tt)!==Pe&&0<n.actualStartTime&&(n.flags&1)!==0&&af(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:ed(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;case 24:ed(s,n,d,m,g),E&2048&&dg(n.alternate,n);break;default:ed(s,n,d,m,g)}br=A,n=t}}function vu(e,t,a){if(e.subtreeFlags&Vd)for(e=e.child;e!==null;)yS(e,t,a),e=e.sibling}function yS(e,t,a){switch(e.tag){case 26:vu(e,t,a),e.flags&Vd&&e.memoizedState!==null&&$I(a,gl,e.memoizedState,e.memoizedProps);break;case 5:vu(e,t,a);break;case 3:case 4:var o=gl;gl=Yf(e.stateNode.containerInfo),vu(e,t,a),gl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Vd,Vd=16777216,vu(e,t,a),Vd=o):vu(e,t,a));break;default:vu(e,t,a)}}function bS(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 td(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=To();Ua=o,xS(o,e),(o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(o,Oe,Ne,"Unmount"),Io(l)}bS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vS(e),e=e.sibling}function vS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 15:td(e),e.flags&2048&&ng(e,e.return,io|Jo);break;case 3:var n=Cn();td(e),e.stateNode.passiveEffectDuration+=ff(n);break;case 12:n=Cn(),td(e),e.stateNode.passiveEffectDuration+=Hi(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Mn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Mn,Hf(e),(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(e,Oe,Ne,"Disconnect")):td(e);break;default:td(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),la=l,Zt=o}function Hf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=To();Ua=o,xS(o,e),(o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(o,Oe,Ne,"Unmount"),Io(l)}bS(e)}for(e=e.child;e!==null;)SS(e),e=e.sibling}function SS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 15:ng(e,e.return,io),Hf(e);break;case 22:var n=e.stateNode;n._visibility&Mn&&(n._visibility&=~Mn,Hf(e));break;default:Hf(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),la=l,Zt=o}function xS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=To(),s=ql(),d=Nl(),m=Ul();switch(o.tag){case 0:case 11:case 15:ng(o,l,io);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&ps(l));break;case 24:_i(o.memoizedState.cache)}if((o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(o,Oe,Ne,Jt,Zt),Io(n),Bl(s),la=m,Zt=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,n=o.sibling,s=o.return,sS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function lI(){wM.forEach(function(e){return e()})}function LS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Mo(e){if((ht&Aa)!==Pa&&ot!==0)return ot&-ot;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),bg()):O()}function CS(){if(vo===0)if((ot&536870912)===0||dt){var e=rp;rp<<=1,(rp&3932160)===0&&(rp=262144),vo=e}else vo=536870912;return e=Bo.current,e!==null&&(e.flags|=32),vo}function oa(e,t,a){if(li&&console.error("useInsertionEffect must not schedule updates."),Jy&&($p=!0),e===Pt&&(Dt===Os||Dt===qs)||e.cancelPendingCommit!==null)xu(e,0),dr(e,ot,vo,!1);if(Kn(e,a),(ht&Aa)!==Pa&&e===Pt){if(Yl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",ZC.has(e)||(ZC.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:QC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),QC=!0)}}else Zl&&Mi(e,t,a),mI(t),e===Pt&&((ht&Aa)===Pa&&(Dr|=a),ea===Rr&&dr(e,ot,vo,!1)),Vl(e)}function kS(e,t,a){if((ht&(Aa|Uo))!==Pa)throw Error("Should not already be working.");if(ot!==0&<!==null){var o=lt,l=Ba();switch(FL){case jd:case Os:var n=Ad;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,$o,void 0,"primary-light")):console.timeStamp("Suspended",n,l,$o,void 0,"primary-light"));break;case qs:n=Ad,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,$o,void 0,"primary-light")):console.timeStamp("Action",n,l,$o,void 0,"primary-light"));break;default:Gt&&(o=l-Ad,3>o||console.timeStamp("Blocked",Ad,l,$o,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||es(e,t))?rI(e,t):fg(e,t,!0);var s=a;do{if(n===_n){ai&&!a&&dr(e,t,0,!1),t=Dt,Ad=Sa(),FL=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!nI(l)){ko(t),l=Na,n=o,!Gt||n<=l||(ca?ca.run(console.timeStamp.bind(console,"Teared Render",l,n,it,st,"error")):console.timeStamp("Teared Render",l,n,it,st,"error")),vs(t,o),n=fg(e,t,!1),s=!1;continue}if(n===Es){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){ko(t),Ym(Na,o,t,ca),vs(t,o),t=d;e:{o=e,n=s,s=Qd;var m=o.current.memoizedState.isDehydrated;if(m&&(xu(o,d).flags|=256),d=fg(o,d,!1),d!==Es){if($y&&!m){o.errorRecoveryDisabledLanes|=n,Dr|=n,n=Rr;break e}o=co,co=s,o!==null&&(co===null?co=o:co.push.apply(co,o))}n=d}if(s=!1,n!==Es)continue;else o=Ba()}}if(n===Xd){ko(t),Ym(Na,o,t,ca),vs(t,o),xu(e,0),dr(e,t,0,!0);break}e:{switch(a=e,n){case _n:case Xd:throw Error("Root did not complete. This is a bug in React.");case Rr:if((t&4194048)!==t)break;case Up:ko(t),k0(Na,o,t,ca),vs(t,o),l=t,(l&127)!==0?Lp=o:(l&4194048)!==0&&(Cp=o),dr(a,t,vo,!Mr);break e;case Es:co=null;break;case Np:case NC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)pg(a,l,t,co,Zd,_p,vo,Dr,Bs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=Hp+zC-Ba(),10<s)){if(dr(a,t,vo,!Mr),Jr(a,0,!0)!==0)break e;yl=t,a.timeoutHandle=l1(wS.bind(null,a,l,co,Zd,_p,t,vo,Dr,Bs,Mr,n,"Throttled",Na,o),s);break e}wS(a,l,co,Zd,_p,t,vo,Dr,Bs,Mr,n,null,Na,o)}}}break}while(1);Vl(e)}function wS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=_s;var de=t.subtreeFlags,ye=null;if(de&8192||(de&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},yS(t,n,ye),de=(n&62914560)===n?Hp-Ba():(n&4194048)===n?PC-Ba():0,de=XI(ye,de),de!==null){yl=n,e.cancelPendingCommit=de(pg.bind(null,e,t,n,a,o,l,s,d,m,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,T,U)),dr(e,n,s,!g);return}}pg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function nI(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 o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!ro(n(),l))return!1}catch(s){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 dr(e,t,a,o){t&=~Xy,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-oo(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&ts(e,a,t)}function Su(){return(ht&(Aa|Uo))===Pa?(ld(0,!1),!1):!0}function cg(){if(lt!==null){if(Dt===bo)var e=lt.return;else e=lt,uf(),Lh(e),ju=null,zd=0,e=lt;for(;e!==null;)Zv(e.alternate,e),e=e.return;lt=null}}function vs(e,t){(e&127)!==0&&(Cr=t),(e&4194048)!==0&&(tn=t),(e&62914560)!==0&&(_L=t),(e&2080374784)!==0&&(HL=t)}function xu(e,t){Gt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",st,"primary-light"));var a=Na;if(Na=Sa(),ot!==0&&0<a){if(ko(ot),ea===Np||ea===Rr)k0(a,Na,t,ca);else{var o=Na,l=ca;if(Gt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,a,o,it,st,n)):console.timeStamp(s,a,o,it,st,n)}}vs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Id,l=0<=en&&en<Cr?Cr:en,o=0<=ks&&ks<Cr?Cr:ks,n=0<=o?o:0<=l?l:Na,0<=Lp?(ko(2),w0(Lp,n,t,a)):(kp&127)!==0&&(ko(2),Pi(Cr,n,Bn)),a=l;var d=o,m=Rd,g=0<Vu,A=kr===Td,E=kr===xp;if(l=Na,o=Id,n=ky,s=wy,Gt){if(it="Blocking",0<a?a>l&&(a=l):a=l,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var T=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+m,d,a,it,st,T)):console.timeStamp(g?"Consecutive":"Event: "+m,d,a,it,st,T)}l>a&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=E?"Promise Resolved":A?"Cascading Update":5<l-a?"Update Blocked":"Update",E=[],s!=null&&E.push(["Component name",s]),n!=null&&E.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:E,track:it,trackGroup:st,color:d}}},o?o.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}en=-1.1,kr=0,wy=ky=null,Lp=-1.1,Vu=ks,ks=-1.1,Cr=Sa()}if((t&4194048)!==0&&(ca=Md,l=0<=qn&&qn<tn?tn:qn,a=0<=Wo&&Wo<tn?tn:Wo,o=0<=wr&&wr<tn?tn:wr,n=0<=o?o:0<=a?a:Na,0<=Cp?(ko(256),w0(Cp,n,t,ca)):(kp&4194048)!==0&&(ko(256),Pi(tn,n,Bn)),E=o,d=ws,m=0<Tr,g=Ty===xp,n=Na,o=Md,s=PL,A=zL,Gt&&(it="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<E?E>l&&(E=l):E=l,l>E&&d!==null&&(T=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,E,l,it,st,T)):console.timeStamp(m?"Consecutive":"Event: "+d,E,l,it,st,T)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,it,st,"primary-dark")):console.timeStamp("Action",l,a,it,st,"primary-dark")),n>a&&(l=g?"Promise Resolved":5<n-a?"Update Blocked":"Update",E=[],A!=null&&E.push(["Component name",A]),s!=null&&E.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:E,track:it,trackGroup:st,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Wo=qn=-1.1,Ty=0,Cp=-1.1,Tr=wr,wr=-1.1,tn=Sa()),(t&62914560)!==0&&(kp&62914560)!==0&&(ko(4194304),Pi(_L,Na,Bn)),(t&2080374784)!==0&&(kp&2080374784)!==0&&(ko(268435456),Pi(HL,Na,Bn)),a=e.timeoutHandle,a!==_s&&(e.timeoutHandle=_s,PM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),yl=0,cg(),Pt=e,lt=a=Sn(e.current,null),ot=t,Dt=bo,Po=null,Mr=!1,ai=es(e,t),$y=!1,ea=_n,Bs=vo=Xy=Dr=Ar=0,co=Qd=null,_p=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-oo(o),n=1<<l,t|=e[l],o&=~n;return on=t,of(),e=EL(),1000<e-DL&&(G.recentlyCreatedOwnerStacks=0,DL=e),ml.discardPendingWarnings(),a}function TS(e,t){Fe=null,G.H=Gd,G.getCurrentStack=null,Yl=!1,Eo=null,t===Xu||t===Rp?(t=j0(),Dt=jd):t===Ay?(t=j0(),Dt=UC):Dt=t===_y?Vy:t!==null&&typeof t==="object"&&typeof t.then==="function"?Yd:Pp,Po=t;var a=lt;a===null?(ea=Xd,qf(e,wo(t,e.current))):a.mode&tt&&ih(a)}function IS(){var e=Bo.current;return e===null?!0:(ot&4194048)===ot?Ko===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Ko:!1}function RS(){var e=G.H;return G.H=Gd,e===null?Gd:e}function MS(){var e=G.A;return G.A=kM,e}function Ff(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Gf(){ea=Rr,Mr||(ot&4194048)!==ot&&Bo.current!==null||(ai=!0),(Ar&134217727)===0&&(Dr&134217727)===0||Pt===null||dr(Pt,ot,vo,!1)}function fg(e,t,a){var o=ht;ht|=Aa;var l=RS(),n=MS();if(Pt!==e||ot!==t){if(Zl){var s=e.memoizedUpdaters;0<s.size&&(od(e,ot),s.clear()),Jn(e,t)}Zd=null,xu(e,t)}t=!1,s=ea;e:do try{if(Dt!==bo&<!==null){var d=lt,m=Po;switch(Dt){case Vy:cg(),s=Up;break e;case jd:case Os:case qs:case Yd:Bo.current===null&&(t=!0);var g=Dt;if(Dt=bo,Po=null,Lu(e,d,m,g),a&&ai){s=_n;break e}break;default:g=Dt,Dt=bo,Po=null,Lu(e,d,m,g)}}AS(),s=ea;break}catch(A){TS(e,A)}while(1);return t&&e.shellSuspendCounter++,uf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,of()),s}function AS(){for(;lt!==null;)DS(lt)}function rI(e,t){var a=ht;ht|=Aa;var o=RS(),l=MS();if(Pt!==e||ot!==t){if(Zl){var n=e.memoizedUpdaters;0<n.size&&(od(e,ot),n.clear()),Jn(e,t)}Zd=null,Fp=Ba()+_C,xu(e,t)}else ai=es(e,t);e:do try{if(Dt!==bo&<!==null)t:switch(t=lt,n=Po,Dt){case Pp:Dt=bo,Po=null,Lu(e,t,n,Pp);break;case Os:case qs:if($0(n)){Dt=bo,Po=null,ES(t);break}t=function(){Dt!==Os&&Dt!==qs||Pt!==e||(Dt=zp),Vl(e)},n.then(t,t);break e;case jd:Dt=zp;break e;case UC:Dt=Gy;break e;case zp:$0(n)?(Dt=bo,Po=null,ES(t)):(Dt=bo,Po=null,Lu(e,t,n,zp));break;case Gy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?kx(s):d.stateNode.complete){Dt=bo,Po=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Vf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=bo,Po=null,Lu(e,t,n,Gy);break;case Yd:Dt=bo,Po=null,Lu(e,t,n,Yd);break;case Vy:cg(),ea=Up;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?AS():sI();break}catch(A){TS(e,A)}while(1);if(uf(),G.H=o,G.A=l,ht=a,lt!==null)return _n;return Pt=null,ot=0,of(),ea}function sI(){for(;lt!==null&&!nR();)DS(lt)}function DS(e){var t=e.alternate;(e.mode&tt)!==Pe?(uh(e),t=re(e,ag,t,e,on),ih(e)):t=re(e,ag,t,e,on),e.memoizedProps=e.pendingProps,t===null?Vf(e):lt=t}function ES(e){var t=re(e,uI,e);e.memoizedProps=e.pendingProps,t===null?Vf(e):lt=t}function uI(e){var t=e.alternate,a=(e.mode&tt)!==Pe;switch(a&&uh(e),e.tag){case 15:case 0:t=Gv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Gv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:Lh(e);default:Zv(t,e),e=lt=D0(e,on),t=ag(t,e,on)}return a&&ih(e),t}function Lu(e,t,a,o){uf(),Lh(t),ju=null,zd=0;var l=t.return;try{if(XT(e,l,t,a,ot)){ea=Xd,qf(e,wo(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=Xd,qf(e,wo(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Pp)e=!0;else if(ai||(ot&536870912)!==0)e=!1;else if(Mr=e=!0,o===Os||o===qs||o===jd||o===Yd)o=Bo.current,o!==null&&o.tag===13&&(o.flags|=16384);OS(t,e)}else Vf(t)}function Vf(e){var t=e;do{if((t.flags&32768)!==0){OS(t,Mr);return}var a=t.alternate;if(e=t.return,uh(t),a=re(t,QT,a,t,on),(t.mode&tt)!==Pe&&_0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===_n&&(ea=NC)}function OS(e,t){do{var a=ZT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==Pe){_0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);ea=Up,lt=null}function pg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do ad();while(wa!==Or);if(ml.flushLegacyContextWarning(),ml.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|Uo))!==Pa)throw Error("Should not already be working.");if(ko(a),g===Es?Ym(T,U,a,ca):o!==null?OT(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):ET(T,U,a,ca),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(n=t.lanes|t.childLanes,n|=vy,Xc(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),oi=t,qr=e,yl=a,Qy=n,Wy=l,XC=o,Zy=U,jC=E,bl=Gp,YC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pI(Ru,function(){return ac=window.event,bl===Gp&&(bl=Yy),PS(),null})):(e.callbackNode=null,e.callbackPriority=0),On=null,Lr=Sa(),E!==null&&qT(U,Lr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Oo,s=ht,ht|=Uo;try{aI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=FC,qS(),BS(),NS()}}function qS(){if(wa===FC){wa=Or;var e=qr,t=oi,a=yl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Oo;var n=ht;ht|=Uo;try{ei=a,ti=e,pf(),cS(t,e),ti=ei=null,a=ub;var s=x0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&S0(d.ownerDocument.documentElement,d)){if(m!==null&&$m(d)){var{start:g,end:A}=m;if(A===void 0&&(A=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(A,d.value.length);else{var E=d.ownerDocument||document,T=E&&E.defaultView||window;if(T.getSelection){var U=T.getSelection(),de=d.textContent.length,ye=Math.min(m.start,de),Ft=m.end===void 0?ye:Math.min(m.end,de);!U.extend&&ye>Ft&&(s=Ft,Ft=ye,ye=s);var pt=v0(d,ye),w=v0(d,Ft);if(pt&&w&&(U.rangeCount!==1||U.anchorNode!==pt.node||U.anchorOffset!==pt.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var I=E.createRange();I.setStart(pt.node,pt.offset),U.removeAllRanges(),ye>Ft?(U.addRange(I),U.extend(w.node,w.offset)):(I.setEnd(w.node,w.offset),U.addRange(I))}}}}E=[];for(U=d;U=U.parentNode;)U.nodeType===1&&E.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<E.length;d++){var M=E[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}nm=!!sb,ub=sb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=GC}}function BS(){if(wa===GC){wa=Or;var e=YC;if(e!==null){Lr=Sa();var t=En,a=Lr;!Gt||a<=t||(Bn?Bn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=qr,t=oi,a=yl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Oo;var n=ht;ht|=Uo;try{ei=a,ti=e,pf(),rS(e,t.alternate,t),ti=ei=null}finally{ht=n,kt.p=l,G.T=o}}e=Zy,t=jC,En=Sa(),e=t===null?e:Lr,t=En,a=bl===jy,o=ca,On!==null?T0(e,t,On,!1,o):!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),wa=VC}}function NS(){if(wa===$C||wa===VC){if(wa===$C){var e=En;En=Sa();var t=En,a=bl===jy;!Gt||t<=e||(Bn?Bn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light")),bl!==jy&&(bl=HC)}wa=Or,rR(),e=qr;var o=oi;t=yl,a=XC;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Vp:(wa=Or,oi=qr=null,US(e,e.pendingLanes),Ns=0,Kd=null);var n=e.pendingLanes;if(n===0&&(Er=null),l||FS(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Oo:var d=Wg;break;case fl:d=Kg;break;case Wl:d=Ru;break;case up:d=Jg;break;default:d=Ru}Ka.onCommitFiberRoot(Mu,o,d,s)}catch(E){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",E))}if(Zl&&e.memoizedUpdaters.clear(),lI(),a!==null){s=G.T,d=kt.p,kt.p=Oo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=iI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(yl&3)!==0&&ad(),Vl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(Tp=!0,e===Ky?Wd++:(Wd=0,Ky=e)):Wd=0,l||vs(t,En),ld(0,!1)}}function iI(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function US(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_i(t)))}function ad(){return qS(),BS(),NS(),PS()}function PS(){if(wa!==Vp)return!1;var e=qr,t=Qy;Qy=0;var a=y(yl),o=Wl===0||Wl>a?Wl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Wy;Wy=null,o=qr;var s=yl;if(wa=Or,oi=qr=null,yl=0,(ht&(Aa|Uo))!==Pa)throw Error("Cannot flush passive effects while already rendering.");ko(s),Jy=!0,$p=!1;var d=0;if(On=null,d=Ba(),bl===HC)Pi(En,d,Bn);else{var m=En,g=d,A=bl===Yy;!Gt||g<=m||(ca?ca.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light"))}m=ht,ht|=Uo;var E=o.current;pf(),vS(E);var T=o.current;E=Zy,pf(),hS(o,T,s,n,E),FS(o),ht=m;var U=Ba();if(T=d,E=ca,On!==null?T0(T,U,On,!0,E):!Gt||U<=T||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",T,U,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",T,U,it,st,"secondary-dark")),vs(s,U),ld(0,!1),$p?o===Kd?Ns++:(Ns=0,Kd=o):Ns=0,$p=Jy=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Mu,o)}catch(ye){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=o.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{kt.p=l,G.T=a,US(e,t)}}function zS(e,t,a){t=wo(a,t),H0(t),t=$h(e.stateNode,t,2),e=rr(e,t,2),e!==null&&(Kn(e,2),Vl(e))}function Ct(e,t,a){if(li=!1,e.tag===3)zS(e,e,a);else{for(;t!==null;){if(t.tag===3){zS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Er===null||!Er.has(o))){e=wo(a,e),H0(e),a=Xh(2),o=rr(t,a,2),o!==null&&(jh(a,o,t,e),Kn(o,2),Vl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
154
|
|
|
155
155
|
Error message:
|
|
156
156
|
|
|
157
|
-
%s`,a)}}function
|
|
157
|
+
%s`,a)}}function mg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new TM;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||($y=!0,l.add(a),o=dI.bind(null,e,t,a),Zl&&od(e,a),t.then(o,o))}function dI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>en&&(Cr=en=Sa(),Id=Sp("Promise Resolved"),kr=xp):(a&4194048)!==0&&0>Wo&&(tn=Wo=Sa(),Md=Sp("Promise Resolved"),Ty=xp),LS()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
158
|
|
|
159
159
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
160
|
|
|
@@ -163,7 +163,7 @@ act(() => {
|
|
|
163
163
|
});
|
|
164
164
|
/* assert on the output */
|
|
165
165
|
|
|
166
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Pt===e&&(ot&a)===a&&(ea===
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Pt===e&&(ot&a)===a&&(ea===Rr||ea===Np&&(ot&62914560)===ot&&Ba()-Hp<zC?(ht&Aa)===Pa&&xu(e,0):Xy|=a,Bs===ot&&(Bs=0)),Vl(e)}function _S(e,t){t===0&&(t=ru()),e=Wa(e,t),e!==null&&(Kn(e,t),Vl(e))}function cI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_S(e,a)}function fI(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:l}=e;l!==null&&(a=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),_S(e,a)}function hg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,l=t,n=l.type===ap;n=a||n,l.tag!==22?l.flags&67108864?n&&re(l,HS,o,l):hg(o,l,n):l.memoizedState===null&&(n&&l.flags&8192?re(l,HS,o,l):l.subtreeFlags&67108864&&re(l,hg,o,l,n)),t=t.sibling}}function HS(e,t){_t(!0);try{pS(t),SS(t),mS(e,t.alternate,t,!1),gS(e,t,0,null,!1,0)}finally{_t(!1)}}function FS(e){var t=!0;e.current.mode&(Ja|pl)||(t=!1),hg(e,e.current,t)}function GS(e){if((ht&Aa)===Pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",Xp!==null){if(Xp.has(t))return;Xp.add(t)}else Xp=new Set([t]);re(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function od(e,t){Zl&&e.memoizedUpdaters.forEach(function(a){Mi(e,a,t)})}function pI(e,t){var a=G.actQueue;return a!==null?(a.push(t),MM):Zg(e,t)}function mI(e){LS()&&G.actQueue===null&&re(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
167
|
|
|
168
168
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
169
|
|
|
@@ -172,16 +172,16 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function Gl(e){e!==li&&e.next===null&&(li===null?Xp=li=e:li=li.next=e),jp=!0,G.actQueue!==null?eb||(eb=!0,XS()):Jy||(Jy=!0,XS())}function od(e,t){if(!tb&&jp){tb=!0;do{var a=!1;for(var o=Xp;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var s=o.suspendedLanes,d=o.pingedLanes;n=(1<<31-ao(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,$S(o,n))}else n=ot,n=Kr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==zs),(n&3)===0||Jr(o,n)||(a=!0,$S(o,n));o=o.next}}while(a);tb=!1}}function mI(){tc=window.event,hg()}function hg(){jp=eb=Jy=!1;var e=0;qr!==0&&xI()&&(e=qr);for(var t=Ba(),a=null,o=Xp;o!==null;){var l=o.next,n=GS(o,t);if(n===0)o.next=null,a===null?Xp=l:a.next=l,l===null&&(li=a);else if(a=o,e!==0||(n&3)!==0)jp=!0;o=l}wa!==Er&&wa!==Gp||od(e,!1),qr!==0&&(qr=0)}function GS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-ao(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=Om(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Kr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o=e.callbackNode,a===0||e===t&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)return o!==null&&gg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jr(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ab)gg(o);else return t;switch(y(a)){case Eo:case cl:a=Wg;break;case Zl:a=Iu;break;case sp:a=Kg;break;default:a=Iu}return o=VS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ab):a=Qg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&gg(o),e.callbackPriority=2,e.callbackNode=null,2}function VS(e,t){if(wp=kp=!1,tc=window.event,wa!==Er&&wa!==Gp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yl===Fp&&(yl=jy),td()&&e.callbackNode!==a)return null;var o=ot;if(o=Kr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o===0)return null;return CS(e,o,t),GS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?VS.bind(null,e):null}function $S(e,t){if(td())return null;kp=wp,wp=!1,CS(e,t,!0)}function gg(e){e!==ab&&e!==null&&oR(e)}function XS(){G.actQueue!==null&&G.actQueue.push(function(){return hg(),null}),PM(function(){(ht&(Aa|No))!==Pa?Qg(Zg,mI):hg()})}function yg(){if(qr===0){var e=ws;e===0&&(e=lp,lp<<=1,(lp&261888)===0&&(lp=256)),qr=e}return qr}function jS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),qi(""+e)}function YS(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 hI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=jS((l[oo]||null).action),s=o.submitter;s&&(t=(t=s[oo]||null)?jS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new fp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var m=s?YS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Uh(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?YS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Uh(a,g,n,m))},currentTarget:l}]})}}function Vf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){my(o)}e.currentTarget=null}function QS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}}}}function ft(e,t){ob.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Jg];a===void 0&&(a=t[Jg]=new Set);var o=e+"__bubble";a.has(o)||(ZS(t,e,2,!1),a.add(o))}function bg(e,t,a){ob.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),ZS(a,e,o,t)}function vg(e){if(!e[Yp]){e[Yp]=!0,Xx.forEach(function(a){a!=="selectionchange"&&(ob.has(a)||bg(a,!1,e),bg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yp]||(t[Yp]=!0,bg("selectionchange",!1,t))}}function ZS(e,t,a,o){switch(Mx(t)){case Eo:var l=QI;break;case cl:l=ZI;break;default:l=Bg}a=l.bind(null,t,a,e),l=void 0,!ly||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Sg(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=n=s;continue e}d=d.parentNode}}o=o.return}s0(function(){var g=n,A=Fm(a),E=[];e:{var T=ML.get(e);if(T!==void 0){var U=fp,de=e;switch(e){case"keypress":if(Wc(a)===0)break e;case"keydown":case"keyup":U=VR;break;case"focusin":de="focus",U=uy;break;case"focusout":de="blur",U=uy;break;case"beforeblur":case"afterblur":U=uy;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":U=hL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=ER;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=jR;break;case wL:case TL:case IL:U=BR;break;case RL:U=QR;break;case"scroll":case"scrollend":U=AR;break;case"wheel":U=WR;break;case"copy":case"cut":case"paste":U=UR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=yL;break;case"toggle":case"beforetoggle":U=JR}var ye=(t&4)!==0,Ft=!ye&&(e==="scroll"||e==="scrollend"),pt=ye?T!==null?T+"Capture":null:T;ye=[];for(var w=g,I;w!==null;){var M=w;if(I=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||I===null||pt===null||(M=Bi(w,pt),M!=null&&ye.push(ld(w,M,I))),Ft)break;w=w.return}0<ye.length&&(T=new U(T,de,null,a,A),E.push({event:T,listeners:ye}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",T&&a!==hd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[hr]))break e;if(U||T){if(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,U){if(de=a.relatedTarget||a.toElement,U=g,de=de?we(de):null,de!==null&&(Ft=z(de),ye=de.tag,de!==Ft||ye!==5&&ye!==27&&ye!==6))de=null}else U=null,de=g;if(U!==de){if(ye=hL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=yL,M="onPointerLeave",pt="onPointerEnter",w="pointer";if(Ft=U==null?T:Xe(U),I=de==null?T:Xe(de),T=new ye(M,w+"leave",U,a,A),T.target=Ft,T.relatedTarget=I,M=null,we(A)===g&&(ye=new ye(pt,w+"enter",de,a,A),ye.target=I,ye.relatedTarget=Ft,M=ye),Ft=M,U&&de)t:{ye=gI,pt=U,w=de,I=0;for(M=pt;M;M=ye(M))I++;M=0;for(var Q=w;Q;Q=ye(Q))M++;for(;0<I-M;)pt=ye(pt),I--;for(;0<M-I;)w=ye(w),M--;for(;I--;){if(pt===w||w!==null&&pt===w.alternate){ye=pt;break t}pt=ye(pt),w=ye(w)}ye=null}else ye=null;U!==null&&WS(E,T,U,ye,!1),de!==null&&Ft!==null&&WS(E,Ft,de,ye,!0)}}}e:{if(T=g?Xe(g):window,U=T.nodeName&&T.nodeName.toLowerCase(),U==="select"||U==="input"&&T.type==="file")var he=m0;else if(f0(T))if(CL)he=RT;else{he=TT;var Ge=wT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&Oi(g.elementType)&&(he=m0):he=IT;if(he&&(he=he(e,g))){p0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Nm(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(f0(Ge)||Ge.contentEditable==="true")Bu=Ge,dy=g,Ld=null;break;case"focusout":Ld=dy=Bu=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,x0(E,a,A);break;case"selectionchange":if(oM)break;case"keydown":case"keyup":x0(E,a,A)}var De;if(iy)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 qu?d0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===bL&&(Te="onCompositionStart");if(Te&&(vL&&a.locale!=="ko"&&(qu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&qu&&(De=u0()):(gr=A,ny=("value"in gr)?gr.value:gr.textContent,qu=!0)),Ge=$f(g,Te),0<Ge.length&&(Te=new gL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),De?Te.data=De:(De=c0(a),De!==null&&(Te.data=De)))),De=tM?xT(e,a):LT(e,a))Te=$f(g,"onBeforeInput"),0<Te.length&&(Ge=new zR("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=De);hI(E,e,g,a,A)}QS(E,t)})}function ld(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $f(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Bi(e,a),l!=null&&o.unshift(ld(e,l,n)),l=Bi(e,t),l!=null&&o.push(ld(e,l,n))),e.tag===3)return o;e=e.return}return[]}function gI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function WS(e,t,a,o,l){for(var n=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||g===null||(m=g,l?(g=Bi(a,n),g!=null&&s.unshift(ld(a,g,m))):l||(g=Bi(a,n),g!=null&&s.push(ld(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function xg(e,t){yT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||pL||(pL=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:vs,possibleRegistrationNames:ey};Oi(e)||typeof t.is==="string"||vT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qa(e,t,a,o){t!==a&&(a=dr(a),dr(t)!==a&&(o[e]=t))}function yI(e,t,a){t.forEach(function(o){a[ex(o)]=o==="style"?Cg(e):e.getAttribute(o)})}function Vl(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function KS(e,t){return e=e.namespaceURI===ip||e.namespaceURI===Au?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dr(e){return Kt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)),(typeof e==="string"?e:""+e).replace(MM,`
|
|
176
|
-
`).replace(AM,"")}function JS(e,t){return t=dr(t),dr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Zc(o,t,!1),t==="body"||t==="textarea"&&o===""||Ei(e,o);else if(typeof o==="number"||typeof o==="bigint")Zc(""+o,t,!1),t!=="body"&&Ei(e,""+o);break;case"className":jc(e,"class",o);break;case"tabIndex":jc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":jc(e,a,o);break;case"style":l0(e,o,n);break;case"data":if(t!=="object"){jc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(l.encType==null&&l.method==null||Wp||(Wp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Zp||(Zp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Qp?t!=="button"||l.type==null||l.type==="submit"||Qp?typeof o==="function"&&(l.name==null||KC||(KC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||Wp||(Wp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Zp||(Zp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="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 n==="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",l.name,l,null),Nt(e,t,"formEncType",l.formEncType,l,null),Nt(e,t,"formMethod",l.formMethod,l,null),Nt(e,t,"formTarget",l.formTarget,l,null)):(Nt(e,t,"encType",l.encType,l,null),Nt(e,t,"method",l.method,l,null),Nt(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}gt(o,a),a=qi(""+o),e.setAttributeNS(Ns,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||Kp[a]||(Kp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(gt(o,a),e.setAttribute(a,o));break;case"popover":ft("beforetoggle",e),ft("toggle",e),Xc(e,"popover",o);break;case"xlinkActuate":yn(e,Ns,"xlink:actuate",o);break;case"xlinkArcrole":yn(e,Ns,"xlink:arcrole",o);break;case"xlinkRole":yn(e,Ns,"xlink:role",o);break;case"xlinkShow":yn(e,Ns,"xlink:show",o);break;case"xlinkTitle":yn(e,Ns,"xlink:title",o);break;case"xlinkType":yn(e,Ns,"xlink:type",o);break;case"xmlBase":yn(e,lb,"xml:base",o);break;case"xmlLang":yn(e,lb,"xml:lang",o);break;case"xmlSpace":yn(e,lb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":JC||o==null||typeof o!=="object"||(JC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=n0(a),Xc(e,a,o)):vs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Vl(a,o)}}function Lg(e,t,a,o,l,n){switch(a){case"style":l0(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Ei(e,o):(typeof o==="number"||typeof o==="bigint")&&Ei(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Vl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),n=e[oo]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,l),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Xc(e,a,o)}}}function $a(e,t,a){switch(xg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,n,s,a,null)}}l&&Nt(e,t,"srcSet",a.srcSet,a,null),o&&Nt(e,t,"src",a.src,a,null);return;case"input":Jn("input",a),ft("invalid",e);var d=n=s=l=null,m=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var A=a[o];if(A!=null)switch(o){case"name":l=A;break;case"type":s=A;break;case"checked":m=A;break;case"defaultChecked":g=A;break;case"value":n=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,o,A,a,null)}}Fb(e,a),Gb(e,n,d,m,g,s,l,!1);return;case"select":Jn("select",a),ft("invalid",e),o=s=n=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":n=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Nt(e,t,l,d,a,null)}Xb(e,a),t=n,a=s,e.multiple=!!o,t!=null?su(e,!!o,t,!1):a!=null&&su(e,!!o,a,!0);return;case"textarea":Jn("textarea",a),ft("invalid",e),n=l=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":l=d;break;case"children":n=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,s,d,a,null)}jb(e,a),Qb(e,o,l,n);return;case"option":Vb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Nt(e,t,m,o,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<Kd.length;o++)ft(Kd[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("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(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,g,o,a,null)}return;default:if(Oi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Lg(e,t,A,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Nt(e,t,d,o,a,null))}function bI(e,t,a,o){switch(xg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,s=null,d=null,m=null,g=null,A=null;for(U in a){var E=a[U];if(a.hasOwnProperty(U)&&E!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=E;default:o.hasOwnProperty(U)||Nt(e,t,U,null,o,E)}}for(var T in o){var U=o[T];if(E=a[T],o.hasOwnProperty(T)&&(U!=null||E!=null))switch(T){case"type":n=U;break;case"name":l=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==E&&Nt(e,t,T,U,o,E)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||WC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),WC=!0),!t||o||ZC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ZC=!0),Bm(e,s,d,m,g,A,n,l);return;case"select":U=s=d=T=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(n)||Nt(e,t,n,null,o,m)}for(l in o)if(n=o[l],m=a[l],o.hasOwnProperty(l)&&(n!=null||m!=null))switch(l){case"value":T=n;break;case"defaultValue":d=n;break;case"multiple":s=n;default:n!==m&&Nt(e,t,l,n,o,m)}o=d,t=s,a=U,T!=null?su(e,!!t,T,!1):!!a!==!!t&&(o!=null?su(e,!!t,o,!0):su(e,!!t,t?[]:"",!1));return;case"textarea":U=T=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Nt(e,t,d,null,o,l)}for(s in o)if(l=o[s],n=a[s],o.hasOwnProperty(s)&&(l!=null||n!=null))switch(s){case"value":T=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Nt(e,t,s,l,o,n)}Yb(e,T,U);return;case"option":for(var de in a)if(T=a[de],a.hasOwnProperty(de)&&T!=null&&!o.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Nt(e,t,de,null,o,T)}for(m in o)if(T=o[m],U=a[m],o.hasOwnProperty(m)&&T!==U&&(T!=null||U!=null))switch(m){case"selected":e.selected=T&&typeof T!=="function"&&typeof T!=="symbol";break;default:Nt(e,t,m,T,o,U)}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 ye in a)T=a[ye],a.hasOwnProperty(ye)&&T!=null&&!o.hasOwnProperty(ye)&&Nt(e,t,ye,null,o,T);for(g in o)if(T=o[g],U=a[g],o.hasOwnProperty(g)&&T!==U&&(T!=null||U!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,g,T,o,U)}return;default:if(Oi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Lg(e,t,Ft,void 0,o,T);for(A in o)T=o[A],U=a[A],!o.hasOwnProperty(A)||T===U||T===void 0&&U===void 0||Lg(e,t,A,T,o,U);return}}for(var pt in a)T=a[pt],a.hasOwnProperty(pt)&&T!=null&&!o.hasOwnProperty(pt)&&Nt(e,t,pt,null,o,T);for(E in o)T=o[E],U=a[E],!o.hasOwnProperty(E)||T===U||T==null&&U==null||Nt(e,t,E,T,o,U)}function ex(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Cg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function tx(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var s=t[n];s!=null&&typeof s!=="boolean"&&s!==""&&(n.indexOf("--")===0?(Et(s,n),o+=l+n+":"+(""+s).trim()):typeof s!=="number"||s===0||cL.has(n)?(Et(s,n),o+=l+n.replace(rL,"-$1").toLowerCase().replace(sL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(rL,"-$1").toLowerCase().replace(sL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dr(o),dr(t)!==o&&(a.style=Cg(e)))}}function Go(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),e===""+o)return}qa(t,e,o,n)}function ax(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}qa(t,e,o,n)}function kg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(gt(o,a),e===""+o)return}qa(t,e,o,n)}function ox(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(gt(o,t),e===""+o))return}qa(t,e,o,n)}function wg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),a=qi(""+o),e===a)return}qa(t,e,o,n)}function lx(e,t,a,o){for(var l={},n=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(s[d].name)}if(Oi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(vs.hasOwnProperty(m))typeof g!=="function"&&Vl(m,g);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=KS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),tx(e,g,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),s=zb(e,"class",g),qa("className",s,g,l);continue;default:o.context===_n&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=zb(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(vs.hasOwnProperty(g))typeof m!=="function"&&Vl(g,m);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof m!=="string"&&typeof m!=="number"||qa("children",e.textContent,m,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=KS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Go(e,g,"class",m,n,l);continue;case"tabIndex":Go(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),tx(e,m,l);continue;case"multiple":n.delete(g),qa(g,e.multiple,m,l);continue;case"muted":n.delete(g),qa(g,e.muted,m,l);continue;case"autoFocus":n.delete("autofocus"),qa(g,e.autofocus,m,l);continue;case"data":if(t!=="object"){n.delete(g),s=e.getAttribute("data"),qa(g,s,m,l);continue}case"src":case"href":if(!(m!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}wg(e,g,g,m,n,l);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof m==="function"){n.delete(g.toLowerCase()),g==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(s===DM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}wg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":wg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":kg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":kg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kg(e,g,g,m,n,l);continue;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":ax(e,g,g.toLowerCase(),m,n,l);continue;case"capture":case"download":e:{d=e;var A=s=g,E=l;if(n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(gt(m,s),d===""+m)break e}qa(s,d,m,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=g,E=l,n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(gt(m,s),d===""+m))break e}qa(s,d,m,E)}continue;case"rowSpan":ox(e,g,"rowspan",m,n,l);continue;case"start":ox(e,g,g,m,n,l);continue;case"xHeight":Go(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Go(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Go(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Go(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Go(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Go(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Go(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Go(e,g,"xml:base",m,n,l);continue;case"xmlLang":Go(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Go(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Kp[g]||(Kp[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),ax(e,g,g,m,n,l);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){d=n0(g),s=!1,o.context===_n&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=dp.hasOwnProperty(A)?dp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Mi(E))if(A.hasAttribute(E))A=A.getAttribute(E),gt(d,E),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=E.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||qa(g,d,m,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&yI(e,n,l),Object.keys(l).length===0?null:l}function vI(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:n,initiatorType:s,duration:d}=l;if(n&&d&&nx(s)){s=0,d=l.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],g=m.startTime;if(g>d)break;var A=m.transferSize,E=m.initiatorType;A&&nx(E)&&(m=m.responseEnd,s+=A*(m<d?1:(d-g)/(m-g)))}if(--o,t+=8*(n+s)/(l.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Xf(e){return e.nodeType===9?e:e.ownerDocument}function rx(e){switch(e){case Au:return ri;case ip:return em;default:return _n}}function sx(e,t){if(e===_n)switch(t){case"svg":return ri;case"math":return em;default:return _n}return e===ri&&t==="foreignObject"?_n:e}function Tg(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}function xI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ub)return!1;return ub=e,!0}return ub=null,!1}function nd(){var e=window.event;return e&&e!==tc?e.type:null}function rd(){var e=window.event;return e&&e!==tc?e.timeStamp:-1.1}function LI(e){setTimeout(function(){throw e})}function CI(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function kI(){}function wI(e,t,a,o){bI(e,t,a,o),e[oo]=o}function ux(e){Ei(e,"")}function TI(e,t,a){e.nodeValue=a}function ix(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[oo]||null;if(t!==null){var a=$e(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function cr(e){return e==="head"}function II(e,t){e.removeChild(t)}function RI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function dx(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===ec||a===Jp){if(o===0){e.removeChild(l),ku(t);return}o--}else if(a===Jd||a===Br||a===Ps||a===ni||a===Us)o++;else if(a===OM)sd(e.ownerDocument.documentElement);else if(a===BM){a=e.ownerDocument.head,sd(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[md]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===qM&&sd(e.ownerDocument.body);a=l}while(a);ku(t)}function cx(e,t){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a===ec)if(e===0)break;else e--;else a!==Jd&&a!==Br&&a!==Ps&&a!==ni||e++;a=o}while(a)}function MI(e){cx(e,!0)}function AI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function DI(e){e.nodeValue=""}function EI(e){cx(e,!1)}function OI(e,t){t=t[NM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function qI(e,t){e.nodeValue=t}function Ig(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ig(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function BI(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){gt(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[md])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Mo(e.nextSibling),e===null)break}return null}function NI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function fx(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function Rg(e){return e.data===Br||e.data===Ps}function Mg(e){return e.data===ni||e.data===Br&&e.ownerDocument.readyState!==t1}function UI(e,t){var a=e.ownerDocument;if(e.data===Ps)e._reactRetry=t;else if(e.data!==Br||a.readyState!==t1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Mo(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===Jd||t===ni||t===Br||t===Ps||t===Us||t===nb||t===e1)break;if(t===ec||t===Jp)return null}}return e}function px(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[ex(n.name)]=n.name.toLowerCase()==="style"?Cg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Us?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function mx(e,t,a){return a===null||a[EM]!==!0?(e.nodeValue===t?e=null:(t=dr(t),e=dr(e.nodeValue)===t?null:e.nodeValue),e):null}function Ag(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===Jp){if(t===0)return Mo(e.nextSibling);t--}else a!==Jd&&a!==ni&&a!==Br&&a!==Ps&&a!==Us||t++}e=e.nextSibling}return null}function hx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Jd||a===ni||a===Br||a===Ps||a===Us){if(t===0)return e;t--}else a!==ec&&a!==Jp||t++}e=e.previousSibling}return null}function PI(e){ku(e)}function zI(e){ku(e)}function _I(e){ku(e)}function gx(e,t,a,o,l){switch(l&&Hm(e,o.ancestorInfo),t=Xf(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function HI(e,t,a,o){if(!a[hr]&&$e(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);$a(a,e,t),a[Xa]=o,a[oo]=t}function sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function jf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function yx(e,t,a){var o=si;if(o&&typeof t==="string"&&t){var l=Fo(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),s1.has(l)||(s1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function bx(e,t,a,o){var l=(l=pr.current)?jf(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Lu(a.href),t=yt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Lu(a.href);var n=yt(l).hoistableStyles,s=n.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:_s,preload:null}},n.set(e,s),(n=l.querySelector(ud(e)))&&!n._p&&(s.instance=n,s.state.loading=ac|el),!tl.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};tl.set(e,d),n||FI(l,e,d,s.state)}if(t&&o===null)throw a=`
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function Vl(e){e!==ni&&e.next===null&&(ni===null?jp=ni=e:ni=ni.next=e),Yp=!0,G.actQueue!==null?tb||(tb=!0,jS()):eb||(eb=!0,jS())}function ld(e,t){if(!ab&&Yp){ab=!0;do{var a=!1;for(var o=jp;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var s=o.suspendedLanes,d=o.pingedLanes;n=(1<<31-oo(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,XS(o,n))}else n=ot,n=Jr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==_s),(n&3)===0||es(o,n)||(a=!0,XS(o,n));o=o.next}}while(a);ab=!1}}function hI(){ac=window.event,gg()}function gg(){Yp=tb=eb=!1;var e=0;Br!==0&&LI()&&(e=Br);for(var t=Ba(),a=null,o=jp;o!==null;){var l=o.next,n=VS(o,t);if(n===0)o.next=null,a===null?jp=l:a.next=l,l===null&&(ni=a);else if(a=o,e!==0||(n&3)!==0)Yp=!0;o=l}wa!==Or&&wa!==Vp||ld(e,!1),Br!==0&&(Br=0)}function VS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-oo(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=qm(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Jr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o=e.callbackNode,a===0||e===t&&(Dt===Os||Dt===qs)||e.cancelPendingCommit!==null)return o!==null&&yg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||es(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ob)yg(o);else return t;switch(y(a)){case Oo:case fl:a=Kg;break;case Wl:a=Ru;break;case up:a=Jg;break;default:a=Ru}return o=$S.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ob):a=Zg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&yg(o),e.callbackPriority=2,e.callbackNode=null,2}function $S(e,t){if(Tp=wp=!1,ac=window.event,wa!==Or&&wa!==Vp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(bl===Gp&&(bl=Yy),ad()&&e.callbackNode!==a)return null;var o=ot;if(o=Jr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o===0)return null;return kS(e,o,t),VS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?$S.bind(null,e):null}function XS(e,t){if(ad())return null;wp=Tp,Tp=!1,kS(e,t,!0)}function yg(e){e!==ob&&e!==null&&lR(e)}function jS(){G.actQueue!==null&&G.actQueue.push(function(){return gg(),null}),zM(function(){(ht&(Aa|Uo))!==Pa?Zg(Wg,hI):gg()})}function bg(){if(Br===0){var e=Ts;e===0&&(e=np,np<<=1,(np&261888)===0&&(np=256)),Br=e}return Br}function YS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),Bi(""+e)}function QS(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 gI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=YS((l[lo]||null).action),s=o.submitter;s&&(t=(t=s[lo]||null)?YS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new pp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Br!==0){var m=s?QS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Ph(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?QS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Ph(a,g,n,m))},currentTarget:l}]})}}function $f(e,t,a){e.currentTarget=a;try{t(e)}catch(o){hy(o)}e.currentTarget=null}function ZS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,$f,n,d,g):$f(n,d,g),l=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,$f,n,d,g):$f(n,d,g),l=m}}}}function ft(e,t){lb.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[ey];a===void 0&&(a=t[ey]=new Set);var o=e+"__bubble";a.has(o)||(WS(t,e,2,!1),a.add(o))}function vg(e,t,a){lb.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),WS(a,e,o,t)}function Sg(e){if(!e[Qp]){e[Qp]=!0,jx.forEach(function(a){a!=="selectionchange"&&(lb.has(a)||vg(a,!1,e),vg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qp]||(t[Qp]=!0,vg("selectionchange",!1,t))}}function WS(e,t,a,o){switch(Ax(t)){case Oo:var l=ZI;break;case fl:l=WI;break;default:l=Ng}a=l.bind(null,t,a,e),l=void 0,!ny||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function xg(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=n=s;continue e}d=d.parentNode}}o=o.return}u0(function(){var g=n,A=Gm(a),E=[];e:{var T=AL.get(e);if(T!==void 0){var U=pp,de=e;switch(e){case"keypress":if(Kc(a)===0)break e;case"keydown":case"keyup":U=$R;break;case"focusin":de="focus",U=iy;break;case"focusout":de="blur",U=iy;break;case"beforeblur":case"afterblur":U=iy;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":U=gL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=OR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=YR;break;case TL:case IL:case RL:U=NR;break;case ML:U=ZR;break;case"scroll":case"scrollend":U=DR;break;case"wheel":U=KR;break;case"copy":case"cut":case"paste":U=PR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=bL;break;case"toggle":case"beforetoggle":U=eM}var ye=(t&4)!==0,Ft=!ye&&(e==="scroll"||e==="scrollend"),pt=ye?T!==null?T+"Capture":null:T;ye=[];for(var w=g,I;w!==null;){var M=w;if(I=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||I===null||pt===null||(M=Ni(w,pt),M!=null&&ye.push(nd(w,M,I))),Ft)break;w=w.return}0<ye.length&&(T=new U(T,de,null,a,A),E.push({event:T,listeners:ye}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",T&&a!==gd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[gr]))break e;if(U||T){if(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,U){if(de=a.relatedTarget||a.toElement,U=g,de=de?we(de):null,de!==null&&(Ft=z(de),ye=de.tag,de!==Ft||ye!==5&&ye!==27&&ye!==6))de=null}else U=null,de=g;if(U!==de){if(ye=gL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=bL,M="onPointerLeave",pt="onPointerEnter",w="pointer";if(Ft=U==null?T:Xe(U),I=de==null?T:Xe(de),T=new ye(M,w+"leave",U,a,A),T.target=Ft,T.relatedTarget=I,M=null,we(A)===g&&(ye=new ye(pt,w+"enter",de,a,A),ye.target=I,ye.relatedTarget=Ft,M=ye),Ft=M,U&&de)t:{ye=yI,pt=U,w=de,I=0;for(M=pt;M;M=ye(M))I++;M=0;for(var Q=w;Q;Q=ye(Q))M++;for(;0<I-M;)pt=ye(pt),I--;for(;0<M-I;)w=ye(w),M--;for(;I--;){if(pt===w||w!==null&&pt===w.alternate){ye=pt;break t}pt=ye(pt),w=ye(w)}ye=null}else ye=null;U!==null&&KS(E,T,U,ye,!1),de!==null&&Ft!==null&&KS(E,Ft,de,ye,!0)}}}e:{if(T=g?Xe(g):window,U=T.nodeName&&T.nodeName.toLowerCase(),U==="select"||U==="input"&&T.type==="file")var he=h0;else if(p0(T))if(kL)he=MT;else{he=IT;var Ge=TT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&qi(g.elementType)&&(he=h0):he=RT;if(he&&(he=he(e,g))){m0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Um(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(p0(Ge)||Ge.contentEditable==="true")Nu=Ge,cy=g,Cd=null;break;case"focusout":Cd=cy=Nu=null;break;case"mousedown":fy=!0;break;case"contextmenu":case"mouseup":case"dragend":fy=!1,L0(E,a,A);break;case"selectionchange":if(lM)break;case"keydown":case"keyup":L0(E,a,A)}var Ae;if(dy)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 Bu?c0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===vL&&(Te="onCompositionStart");if(Te&&(SL&&a.locale!=="ko"&&(Bu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Bu&&(Ae=i0()):(yr=A,ry=("value"in yr)?yr.value:yr.textContent,Bu=!0)),Ge=Xf(g,Te),0<Ge.length&&(Te=new yL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),Ae?Te.data=Ae:(Ae=f0(a),Ae!==null&&(Te.data=Ae)))),Ae=aM?LT(e,a):CT(e,a))Te=Xf(g,"onBeforeInput"),0<Te.length&&(Ge=new _R("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=Ae);gI(E,e,g,a,A)}ZS(E,t)})}function nd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xf(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Ni(e,a),l!=null&&o.unshift(nd(e,l,n)),l=Ni(e,t),l!=null&&o.push(nd(e,l,n))),e.tag===3)return o;e=e.return}return[]}function yI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function KS(e,t,a,o,l){for(var n=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||g===null||(m=g,l?(g=Ni(a,n),g!=null&&s.unshift(nd(a,g,m))):l||(g=Ni(a,n),g!=null&&s.push(nd(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function Lg(e,t){bT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||mL||(mL=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Ss,possibleRegistrationNames:ty};qi(e)||typeof t.is==="string"||ST(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qa(e,t,a,o){t!==a&&(a=cr(a),cr(t)!==a&&(o[e]=t))}function bI(e,t,a){t.forEach(function(o){a[tx(o)]=o==="style"?kg(e):e.getAttribute(o)})}function $l(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function JS(e,t){return e=e.namespaceURI===dp||e.namespaceURI===Du?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function cr(e){return Kt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)),(typeof e==="string"?e:""+e).replace(AM,`
|
|
176
|
+
`).replace(DM,"")}function ex(e,t){return t=cr(t),cr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Wc(o,t,!1),t==="body"||t==="textarea"&&o===""||Oi(e,o);else if(typeof o==="number"||typeof o==="bigint")Wc(""+o,t,!1),t!=="body"&&Oi(e,""+o);break;case"className":Yc(e,"class",o);break;case"tabIndex":Yc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Yc(e,a,o);break;case"style":n0(e,o,n);break;case"data":if(t!=="object"){Yc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=Bi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(l.encType==null&&l.method==null||Kp||(Kp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Wp||(Wp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Zp?t!=="button"||l.type==null||l.type==="submit"||Zp?typeof o==="function"&&(l.name==null||JC||(JC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||Kp||(Kp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Wp||(Wp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Zp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Zp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="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 n==="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",l.name,l,null),Nt(e,t,"formEncType",l.formEncType,l,null),Nt(e,t,"formMethod",l.formMethod,l,null),Nt(e,t,"formTarget",l.formTarget,l,null)):(Nt(e,t,"encType",l.encType,l,null),Nt(e,t,"method",l.method,l,null),Nt(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=Bi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&$l(a,o),e.onclick=vn);break;case"onScroll":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}gt(o,a),a=Bi(""+o),e.setAttributeNS(Us,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||Jp[a]||(Jp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(gt(o,a),e.setAttribute(a,o));break;case"popover":ft("beforetoggle",e),ft("toggle",e),jc(e,"popover",o);break;case"xlinkActuate":bn(e,Us,"xlink:actuate",o);break;case"xlinkArcrole":bn(e,Us,"xlink:arcrole",o);break;case"xlinkRole":bn(e,Us,"xlink:role",o);break;case"xlinkShow":bn(e,Us,"xlink:show",o);break;case"xlinkTitle":bn(e,Us,"xlink:title",o);break;case"xlinkType":bn(e,Us,"xlink:type",o);break;case"xmlBase":bn(e,nb,"xml:base",o);break;case"xmlLang":bn(e,nb,"xml:lang",o);break;case"xmlSpace":bn(e,nb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),jc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":e1||o==null||typeof o!=="object"||(e1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=r0(a),jc(e,a,o)):Ss.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&$l(a,o)}}function Cg(e,t,a,o,l,n){switch(a){case"style":n0(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Oi(e,o):(typeof o==="number"||typeof o==="bigint")&&Oi(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&$l(a,o),e.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ss.hasOwnProperty(a))o!=null&&typeof o!=="function"&&$l(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),n=e[lo]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,l),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):jc(e,a,o)}}}function $a(e,t,a){switch(Lg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,n,s,a,null)}}l&&Nt(e,t,"srcSet",a.srcSet,a,null),o&&Nt(e,t,"src",a.src,a,null);return;case"input":er("input",a),ft("invalid",e);var d=n=s=l=null,m=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var A=a[o];if(A!=null)switch(o){case"name":l=A;break;case"type":s=A;break;case"checked":m=A;break;case"defaultChecked":g=A;break;case"value":n=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,o,A,a,null)}}Gb(e,a),Vb(e,n,d,m,g,s,l,!1);return;case"select":er("select",a),ft("invalid",e),o=s=n=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":n=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Nt(e,t,l,d,a,null)}jb(e,a),t=n,a=s,e.multiple=!!o,t!=null?uu(e,!!o,t,!1):a!=null&&uu(e,!!o,a,!0);return;case"textarea":er("textarea",a),ft("invalid",e),n=l=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":l=d;break;case"children":n=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,s,d,a,null)}Yb(e,a),Zb(e,o,l,n);return;case"option":$b(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Nt(e,t,m,o,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<Jd.length;o++)ft(Jd[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("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(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,g,o,a,null)}return;default:if(qi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Cg(e,t,A,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Nt(e,t,d,o,a,null))}function vI(e,t,a,o){switch(Lg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,s=null,d=null,m=null,g=null,A=null;for(U in a){var E=a[U];if(a.hasOwnProperty(U)&&E!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=E;default:o.hasOwnProperty(U)||Nt(e,t,U,null,o,E)}}for(var T in o){var U=o[T];if(E=a[T],o.hasOwnProperty(T)&&(U!=null||E!=null))switch(T){case"type":n=U;break;case"name":l=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==E&&Nt(e,t,T,U,o,E)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||KC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),KC=!0),!t||o||WC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),WC=!0),Nm(e,s,d,m,g,A,n,l);return;case"select":U=s=d=T=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(n)||Nt(e,t,n,null,o,m)}for(l in o)if(n=o[l],m=a[l],o.hasOwnProperty(l)&&(n!=null||m!=null))switch(l){case"value":T=n;break;case"defaultValue":d=n;break;case"multiple":s=n;default:n!==m&&Nt(e,t,l,n,o,m)}o=d,t=s,a=U,T!=null?uu(e,!!t,T,!1):!!a!==!!t&&(o!=null?uu(e,!!t,o,!0):uu(e,!!t,t?[]:"",!1));return;case"textarea":U=T=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Nt(e,t,d,null,o,l)}for(s in o)if(l=o[s],n=a[s],o.hasOwnProperty(s)&&(l!=null||n!=null))switch(s){case"value":T=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Nt(e,t,s,l,o,n)}Qb(e,T,U);return;case"option":for(var de in a)if(T=a[de],a.hasOwnProperty(de)&&T!=null&&!o.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Nt(e,t,de,null,o,T)}for(m in o)if(T=o[m],U=a[m],o.hasOwnProperty(m)&&T!==U&&(T!=null||U!=null))switch(m){case"selected":e.selected=T&&typeof T!=="function"&&typeof T!=="symbol";break;default:Nt(e,t,m,T,o,U)}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 ye in a)T=a[ye],a.hasOwnProperty(ye)&&T!=null&&!o.hasOwnProperty(ye)&&Nt(e,t,ye,null,o,T);for(g in o)if(T=o[g],U=a[g],o.hasOwnProperty(g)&&T!==U&&(T!=null||U!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,g,T,o,U)}return;default:if(qi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Cg(e,t,Ft,void 0,o,T);for(A in o)T=o[A],U=a[A],!o.hasOwnProperty(A)||T===U||T===void 0&&U===void 0||Cg(e,t,A,T,o,U);return}}for(var pt in a)T=a[pt],a.hasOwnProperty(pt)&&T!=null&&!o.hasOwnProperty(pt)&&Nt(e,t,pt,null,o,T);for(E in o)T=o[E],U=a[E],!o.hasOwnProperty(E)||T===U||T==null&&U==null||Nt(e,t,E,T,o,U)}function tx(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function kg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function ax(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var s=t[n];s!=null&&typeof s!=="boolean"&&s!==""&&(n.indexOf("--")===0?(Et(s,n),o+=l+n+":"+(""+s).trim()):typeof s!=="number"||s===0||fL.has(n)?(Et(s,n),o+=l+n.replace(sL,"-$1").toLowerCase().replace(uL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(sL,"-$1").toLowerCase().replace(uL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=cr(o),cr(t)!==o&&(a.style=kg(e)))}}function Vo(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),e===""+o)return}qa(t,e,o,n)}function ox(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}qa(t,e,o,n)}function wg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(gt(o,a),e===""+o)return}qa(t,e,o,n)}function lx(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(gt(o,t),e===""+o))return}qa(t,e,o,n)}function Tg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),a=Bi(""+o),e===a)return}qa(t,e,o,n)}function nx(e,t,a,o){for(var l={},n=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(s[d].name)}if(qi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(Ss.hasOwnProperty(m))typeof g!=="function"&&$l(m,g);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=JS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),ax(e,g,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),s=_b(e,"class",g),qa("className",s,g,l);continue;default:o.context===Hn&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=_b(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(Ss.hasOwnProperty(g))typeof m!=="function"&&$l(g,m);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof m!=="string"&&typeof m!=="number"||qa("children",e.textContent,m,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=JS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Vo(e,g,"class",m,n,l);continue;case"tabIndex":Vo(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),ax(e,m,l);continue;case"multiple":n.delete(g),qa(g,e.multiple,m,l);continue;case"muted":n.delete(g),qa(g,e.muted,m,l);continue;case"autoFocus":n.delete("autofocus"),qa(g,e.autofocus,m,l);continue;case"data":if(t!=="object"){n.delete(g),s=e.getAttribute("data"),qa(g,s,m,l);continue}case"src":case"href":if(!(m!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}Tg(e,g,g,m,n,l);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof m==="function"){n.delete(g.toLowerCase()),g==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(s===EM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}Tg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":Tg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":wg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":wg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":wg(e,g,g,m,n,l);continue;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":ox(e,g,g.toLowerCase(),m,n,l);continue;case"capture":case"download":e:{d=e;var A=s=g,E=l;if(n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(gt(m,s),d===""+m)break e}qa(s,d,m,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=g,E=l,n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(gt(m,s),d===""+m))break e}qa(s,d,m,E)}continue;case"rowSpan":lx(e,g,"rowspan",m,n,l);continue;case"start":lx(e,g,g,m,n,l);continue;case"xHeight":Vo(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Vo(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Vo(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Vo(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Vo(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Vo(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Vo(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Vo(e,g,"xml:base",m,n,l);continue;case"xmlLang":Vo(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Vo(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Jp[g]||(Jp[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),ox(e,g,g,m,n,l);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){d=r0(g),s=!1,o.context===Hn&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=cp.hasOwnProperty(A)?cp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Ai(E))if(A.hasAttribute(E))A=A.getAttribute(E),gt(d,E),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=E.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||qa(g,d,m,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&bI(e,n,l),Object.keys(l).length===0?null:l}function SI(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function rx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:n,initiatorType:s,duration:d}=l;if(n&&d&&rx(s)){s=0,d=l.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],g=m.startTime;if(g>d)break;var A=m.transferSize,E=m.initiatorType;A&&rx(E)&&(m=m.responseEnd,s+=A*(m<d?1:(d-g)/(m-g)))}if(--o,t+=8*(n+s)/(l.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function jf(e){return e.nodeType===9?e:e.ownerDocument}function sx(e){switch(e){case Du:return si;case dp:return tm;default:return Hn}}function ux(e,t){if(e===Hn)switch(t){case"svg":return si;case"math":return tm;default:return Hn}return e===si&&t==="foreignObject"?Hn:e}function Ig(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}function LI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ib)return!1;return ib=e,!0}return ib=null,!1}function rd(){var e=window.event;return e&&e!==ac?e.type:null}function sd(){var e=window.event;return e&&e!==ac?e.timeStamp:-1.1}function CI(e){setTimeout(function(){throw e})}function kI(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function wI(){}function TI(e,t,a,o){vI(e,t,a,o),e[lo]=o}function ix(e){Oi(e,"")}function II(e,t,a){e.nodeValue=a}function dx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[lo]||null;if(t!==null){var a=$e(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function fr(e){return e==="head"}function RI(e,t){e.removeChild(t)}function MI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function cx(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===tc||a===em){if(o===0){e.removeChild(l),wu(t);return}o--}else if(a===ec||a===Nr||a===zs||a===ri||a===Ps)o++;else if(a===qM)ud(e.ownerDocument.documentElement);else if(a===NM){a=e.ownerDocument.head,ud(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[hd]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===BM&&ud(e.ownerDocument.body);a=l}while(a);wu(t)}function fx(e,t){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a===tc)if(e===0)break;else e--;else a!==ec&&a!==Nr&&a!==zs&&a!==ri||e++;a=o}while(a)}function AI(e){fx(e,!0)}function DI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function EI(e){e.nodeValue=""}function OI(e){fx(e,!1)}function qI(e,t){t=t[UM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function BI(e,t){e.nodeValue=t}function Rg(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Rg(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function NI(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){gt(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[hd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Ao(e.nextSibling),e===null)break}return null}function UI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Ao(e.nextSibling),e===null)return null}return e}function px(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Ao(e.nextSibling),e===null)return null}return e}function Mg(e){return e.data===Nr||e.data===zs}function Ag(e){return e.data===ri||e.data===Nr&&e.ownerDocument.readyState!==a1}function PI(e,t){var a=e.ownerDocument;if(e.data===zs)e._reactRetry=t;else if(e.data!==Nr||a.readyState!==a1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Ao(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===ec||t===ri||t===Nr||t===zs||t===Ps||t===rb||t===t1)break;if(t===tc||t===em)return null}}return e}function mx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[tx(n.name)]=n.name.toLowerCase()==="style"?kg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Ps?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function hx(e,t,a){return a===null||a[OM]!==!0?(e.nodeValue===t?e=null:(t=cr(t),e=cr(e.nodeValue)===t?null:e.nodeValue),e):null}function Dg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===tc||a===em){if(t===0)return Ao(e.nextSibling);t--}else a!==ec&&a!==ri&&a!==Nr&&a!==zs&&a!==Ps||t++}e=e.nextSibling}return null}function gx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===ri||a===Nr||a===zs||a===Ps){if(t===0)return e;t--}else a!==tc&&a!==em||t++}e=e.previousSibling}return null}function zI(e){wu(e)}function _I(e){wu(e)}function HI(e){wu(e)}function yx(e,t,a,o,l){switch(l&&Fm(e,o.ancestorInfo),t=jf(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function FI(e,t,a,o){if(!a[gr]&&$e(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);$a(a,e,t),a[Xa]=o,a[lo]=t}function ud(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function Yf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function bx(e,t,a){var o=ui;if(o&&typeof t==="string"&&t){var l=Go(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),u1.has(l)||(u1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Ee(t),o.head.appendChild(t)))}}function vx(e,t,a,o){var l=(l=mr.current)?Yf(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Cu(a.href),t=yt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Cu(a.href);var n=yt(l).hoistableStyles,s=n.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:Hs,preload:null}},n.set(e,s),(n=l.querySelector(id(e)))&&!n._p&&(s.instance=n,s.state.loading=oc|tl),!al.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};al.set(e,d),n||GI(l,e,d,s.state)}if(t&&o===null)throw a=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+Qf(t)+`
|
|
179
|
+
+ `+Qf(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return s}if(t&&o!==null)throw a=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+Yf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Cu(a),t=yt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Yf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):dl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):dl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):dl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Lu(e){return'href="'+Fo(e)+'"'}function ud(e){return'link[rel="stylesheet"]['+e+"]"}function vx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function FI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ac:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ac}),t.addEventListener("error",function(){return o.loading|=n1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function Cu(e){return'[src="'+Fo(e)+'"]'}function id(e){return"script[async]"+e}function Sx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Fo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var l=rt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",l),Qf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Lu(a.href);var n=e.querySelector(ud(l));if(n)return t.state.loading|=el,t.instance=n,Oe(n),n;o=vx(a),(l=tl.get(l))&&Dg(o,l),n=(e.ownerDocument||e).createElement("link"),Oe(n);var s=n;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),t.state.loading|=el,Qf(n,a.precedence,e),t.instance=n;case"script":if(n=Cu(a.src),l=e.querySelector(id(n)))return t.instance=l,Oe(l),l;if(o=a,l=tl.get(n))o=rt({},a),Eg(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Oe(l),$a(l,"link",o),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&el)===_s&&(o=t.instance,t.state.loading|=el,Qf(o,a.precedence,e));return t.instance}function Qf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)n=d;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Dg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function xx(e,t,a){if(tm===null){var o=new Map,l=tm=new Map;l.set(a,o)}else l=tm,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var n=a[l];if(!(n[md]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Au){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function Lx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function GI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ri||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=vI(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Cx(e){return e.type==="stylesheet"&&(e.state.loading&r1)===_s?!1:!0}function VI(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&el)===_s){if(a.instance===null){var l=Lu(o.href),n=t.querySelector(ud(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Zf.bind(e),t.then(e,e)),a.state.loading|=el,a.instance=n,Oe(n);return}n=t.ownerDocument||t,o=vx(o),(l=tl.get(l))&&Dg(o,l),n=n.createElement("link"),Oe(n);var s=n;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&r1)===_s&&(e.count++,a=Zf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function $I(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},zM+t);0<e.imgBytes&&db===0&&(db=125*SI()*HM);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>db?50:_M)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,am=new Map,t.forEach(XI,e),am=null,Zf.call(e))}function XI(e,t){if(!(t.state.loading&el)){var a=am.get(e);if(a)var o=a.get(cb);else{a=new Map,am.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var s=l[n];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(cb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(cb,l),a.set(s,l),this.count++,o=Zf.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=el}}function jI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ru(0),this.hiddenUpdates=ru(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function kx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new jI(e,t,a,s,m,g,A,E,d),t=fM,n===!0&&(t|=Ja|fl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=rh(),fs(t),e.pooledCache=t,fs(t),n.memoizedState={element:o,isDehydrated:a,cache:t},ch(n),e}function wx(e){if(!e)return vr;return e=vr,e}function Og(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Ru,o,a)}catch(s){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",s))}l=wx(l),o.context===null?o.context=l:o.pendingContext=l,jl&&Do!==null&&!c1&&(c1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
181
|
+
- `+Qf(t)+`
|
|
182
|
+
+ `+Qf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=ku(a),t=yt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Qf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):cl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):cl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):cl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Cu(e){return'href="'+Go(e)+'"'}function id(e){return'link[rel="stylesheet"]['+e+"]"}function Sx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function GI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=oc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=oc}),t.addEventListener("error",function(){return o.loading|=r1}),$a(t,"link",a),Ee(t),e.head.appendChild(t))}function ku(e){return'[src="'+Go(e)+'"]'}function dd(e){return"script[async]"+e}function xx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Go(a.href)+'"]');if(o)return t.instance=o,Ee(o),o;var l=rt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ee(o),$a(o,"style",l),Zf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Cu(a.href);var n=e.querySelector(id(l));if(n)return t.state.loading|=tl,t.instance=n,Ee(n),n;o=Sx(a),(l=al.get(l))&&Eg(o,l),n=(e.ownerDocument||e).createElement("link"),Ee(n);var s=n;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),t.state.loading|=tl,Zf(n,a.precedence,e),t.instance=n;case"script":if(n=ku(a.src),l=e.querySelector(dd(n)))return t.instance=l,Ee(l),l;if(o=a,l=al.get(n))o=rt({},a),Og(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Ee(l),$a(l,"link",o),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&tl)===Hs&&(o=t.instance,t.state.loading|=tl,Zf(o,a.precedence,e));return t.instance}function Zf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)n=d;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Og(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Lx(e,t,a){if(am===null){var o=new Map,l=am=new Map;l.set(a,o)}else l=am,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var n=a[l];if(!(n[hd]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Du){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function Cx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function VI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===si||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=SI(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function kx(e){return e.type==="stylesheet"&&(e.state.loading&s1)===Hs?!1:!0}function $I(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&tl)===Hs){if(a.instance===null){var l=Cu(o.href),n=t.querySelector(id(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Wf.bind(e),t.then(e,e)),a.state.loading|=tl,a.instance=n,Ee(n);return}n=t.ownerDocument||t,o=Sx(o),(l=al.get(l))&&Eg(o,l),n=n.createElement("link"),Ee(n);var s=n;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&s1)===Hs&&(e.count++,a=Wf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function XI(e,t){return e.stylesheets&&e.count===0&&Kf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Kf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},_M+t);0<e.imgBytes&&cb===0&&(cb=125*xI()*FM);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>cb?50:HM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Wf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Kf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,om=new Map,t.forEach(jI,e),om=null,Wf.call(e))}function jI(e,t){if(!(t.state.loading&tl)){var a=om.get(e);if(a)var o=a.get(fb);else{a=new Map,om.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var s=l[n];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(fb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(fb,l),a.set(s,l),this.count++,o=Wf.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=tl}}function YI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_s,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function wx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new YI(e,t,a,s,m,g,A,E,d),t=pM,n===!0&&(t|=Ja|pl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=sh(),ps(t),e.pooledCache=t,ps(t),n.memoizedState={element:o,isDehydrated:a,cache:t},fh(n),e}function Tx(e){if(!e)return Sr;return e=Sr,e}function qg(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Mu,o,a)}catch(s){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",s))}l=Tx(l),o.context===null?o.context=l:o.pendingContext=l,Yl&&Eo!==null&&!f1&&(f1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
183
183
|
|
|
184
|
-
Check the render method of %s.`,X(Do)||"Unknown")),o=lr(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=nr(e,o,t),a!==null&&(El(t,"root.render()",null),oa(a,e,t),Gi(a,e,t))}function Tx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qg(e,t){Tx(e,t),(e=e.alternate)&&Tx(e,t)}function Ix(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),qg(e,67108864)}}function Rx(e){if(e.tag===13||e.tag===31){var t=Ro(e);t=os(t);var a=Wa(e,t);a!==null&&oa(a,e,t),qg(e,t)}}function YI(){return Do}function QI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Eo,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function ZI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=cl,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function Bg(e,t,a,o){if(lm){var l=Ng(o);if(l===null)Sg(e,t,o,nm,a),Ax(e,o);else if(WI(l,e,t,a,o))o.stopPropagation();else if(Ax(e,o),t&4&&-1<GM.indexOf(e)){for(;l!==null;){var n=$e(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=Rl(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-ao(s);d.entanglements[1]|=m,s&=~m}Gl(n),(ht&(Aa|No))===Pa&&(Hp=Ba()+zC,od(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),vu(),qg(n,2)}if(n=Ng(o),n===null&&Sg(e,t,o,nm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else Sg(e,t,o,null,a)}}function Ng(e){return e=Fm(e),Ug(e)}function Ug(e){if(nm=null,e=we(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=F(t),e!==null)return e;e=null}else if(a===31){if(e=K(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 nm=e,null}function Mx(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 Eo;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 cl;case"message":switch(rR()){case Zg:return Eo;case Wg:return cl;case Iu:case sR:return Zl;case Kg:return sp;default:return Zl}default:return Zl}}function Ax(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":lc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(t.pointerId)}}function dd(e,t,a,o,l,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=$e(t),t!==null&&Ix(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function WI(e,t,a,o,l){switch(t){case"focusin":return Nr=dd(Nr,e,t,a,o,l),!0;case"dragenter":return Ur=dd(Ur,e,t,a,o,l),!0;case"mouseover":return Pr=dd(Pr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return lc.set(n,dd(lc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,nc.set(n,dd(nc.get(n)||null,e,t,a,o,l)),!0}return!1}function Dx(e){var t=we(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=F(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Rx(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Rx(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 Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ng(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;hd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hd=l,a.target.dispatchEvent(o),hd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),hd=null}else return t=$e(a),t!==null&&Ix(t),e.blockedOn=a,!1;t.shift()}return!0}function Ex(e,t,a){Kf(e)&&a.delete(t)}function KI(){fb=!1,Nr!==null&&Kf(Nr)&&(Nr=null),Ur!==null&&Kf(Ur)&&(Ur=null),Pr!==null&&Kf(Pr)&&(Pr=null),lc.forEach(Ex),nc.forEach(Ex)}function Jf(e,t){e.blockedOn===t&&(e.blockedOn=null,fb||(fb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,KI)))}function Ox(e){rm!==e&&(rm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){rm===e&&(rm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Ug(o||a)===null)continue;else break;var n=$e(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Uh(n,a,o,l))}}))}function ku(e){function t(m){return Jf(m,e)}Nr!==null&&Jf(Nr,e),Ur!==null&&Jf(Ur,e),Pr!==null&&Jf(Pr,e),lc.forEach(t),nc.forEach(t);for(var a=0;a<zr.length;a++){var o=zr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<zr.length&&(a=zr[0],a.blockedOn===null);)Dx(a),a.blockedOn===null&&zr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],s=l[oo]||null;if(typeof n==="function")s||Ox(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[oo]||null)d=s.formAction;else if(Ug(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),Ox(a)}}}function qx(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Pg(e){this._internalRoot=e}function ep(e){this._internalRoot=e}function Bx(e){e[hr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rt=Object.assign,JI=Symbol.for("react.element"),$l=Symbol.for("react.transitional.element"),wu=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),_g=Symbol.for("react.consumer"),Xl=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Fg=Symbol.for("react.suspense_list"),ap=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),Gg=Symbol.for("react.activity"),eR=Symbol.for("react.memo_cache_sentinel"),Nx=Symbol.iterator,tR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=mb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aR=Object.freeze({pending:!1,data:null,method:null,action:null}),Vg=[],$g=[],Tn=-1,fr=ge(null),fd=ge(null),pr=ge(null),op=ge(null),pd=0,Ux,Px,zx,_x,Hx,Fx,Gx;P.__reactDisabledLog=!0;var Xg,Vx,jg=!1,Yg=new(typeof WeakMap==="function"?WeakMap:Map),Do=null,jl=!1,dl=Object.prototype.hasOwnProperty,Qg=bt.unstable_scheduleCallback,oR=bt.unstable_cancelCallback,lR=bt.unstable_shouldYield,nR=bt.unstable_requestPaint,Ba=bt.unstable_now,rR=bt.unstable_getCurrentPriorityLevel,Zg=bt.unstable_ImmediatePriority,Wg=bt.unstable_UserBlockingPriority,Iu=bt.unstable_NormalPriority,sR=bt.unstable_LowPriority,Kg=bt.unstable_IdlePriority,uR=bt.log,iR=bt.unstable_setDisableYieldValue,Ru=null,Ka=null,Yl=!1,Ql=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ao=Math.clz32?Math.clz32:Vc,{log:dR,LN2:cR}=Math,lp=256,np=262144,rp=4194304,Eo=2,cl=8,Zl=32,sp=268435456,mr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+mr,oo="__reactProps$"+mr,hr="__reactContainer$"+mr,Jg="__reactEvents$"+mr,fR="__reactListeners$"+mr,pR="__reactHandles$"+mr,$x="__reactResources$"+mr,md="__reactMarker$"+mr,Xx=new Set,vs={},ey={},mR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},hR=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]*$"),jx={},Yx={},gR=/[\n"\\]/g,Qx=!1,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=!1,tL=["value","defaultValue"],aL=!1,oL=/["'&<>\n\t]|^\s|\s$/,yR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),lL="applet caption html table td th marquee object template foreignObject desc title".split(" "),bR=lL.concat(["button"]),vR="dd dt li option optgroup p rp rt".split(" "),nL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},up={},ty={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},rL=/([A-Z])/g,sL=/^ms-/,SR=/^(?:webkit|moz|o)[A-Z]/,xR=/^-ms-/,LR=/-(.)/g,uL=/;\s*$/,Mu={},ay={},iL=!1,dL=!1,cL=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(" ")),ip="http://www.w3.org/1998/Math/MathML",Au="http://www.w3.org/2000/svg",CR=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"]]),dp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Du={},kR=RegExp("^(aria)-[: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]*$"),wR=RegExp("^(aria)[A-Z][: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]*$"),pL=!1,lo={},mL=/^on./,TR=/^on[^A-Z]/,IR=RegExp("^(aria)-[: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]*$"),RR=RegExp("^(aria)[A-Z][: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]*$"),MR=/^[\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,hd=null,Eu=null,Ou=null,oy=!1,Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ly=!1;if(Wl)try{var gd={};Object.defineProperty(gd,"passive",{get:function(){ly=!0}}),window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){ly=!1}var gr=null,ny=null,cp=null,Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fp=fo(Ss),yd=rt({},Ss,{view:0,detail:0}),AR=fo(yd),ry,sy,bd,pp=rt({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gm,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){if("movementX"in e)return e.movementX;return e!==bd&&(bd&&e.type==="mousemove"?(ry=e.screenX-bd.screenX,sy=e.screenY-bd.screenY):sy=ry=0,bd=e),ry},movementY:function(e){return"movementY"in e?e.movementY:sy}}),hL=fo(pp),DR=rt({},pp,{dataTransfer:0}),ER=fo(DR),OR=rt({},yd,{relatedTarget:0}),uy=fo(OR),qR=rt({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),BR=fo(qR),NR=rt({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UR=fo(NR),PR=rt({},Ss,{data:0}),gL=fo(PR),zR=gL,_R={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HR={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"},FR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},GR=rt({},yd,{key:function(e){if(e.key){var t=_R[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gm,charCode:function(e){return e.type==="keypress"?Wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VR=fo(GR),$R=rt({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yL=fo($R),XR=rt({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gm}),jR=fo(XR),YR=rt({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),QR=fo(YR),ZR=rt({},pp,{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}),WR=fo(ZR),KR=rt({},Ss,{newState:0,oldState:0}),JR=fo(KR),eM=[9,13,27,32],bL=229,iy=Wl&&"CompositionEvent"in window,vd=null;Wl&&"documentMode"in document&&(vd=document.documentMode);var tM=Wl&&"TextEvent"in window&&!vd,vL=Wl&&(!iy||vd&&8<vd&&11>=vd),SL=32,xL=String.fromCharCode(SL),LL=!1,qu=!1,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},Sd=null,xd=null,CL=!1;Wl&&(CL=CT("input")&&(!document.documentMode||9<document.documentMode));var no=typeof Object.is==="function"?Object.is:MT,oM=Wl&&"documentMode"in document&&11>=document.documentMode,Bu=null,dy=null,Ld=null,cy=!1,Nu={animationend:ns("Animation","AnimationEnd"),animationiteration:ns("Animation","AnimationIteration"),animationstart:ns("Animation","AnimationStart"),transitionrun:ns("Transition","TransitionRun"),transitionstart:ns("Transition","TransitionStart"),transitioncancel:ns("Transition","TransitionCancel"),transitionend:ns("Transition","TransitionEnd")},fy={},kL={};Wl&&(kL=document.createElement("div").style,("AnimationEvent"in window)||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),("TransitionEvent"in window)||delete Nu.transitionend.transition);var wL=rs("animationend"),TL=rs("animationiteration"),IL=rs("animationstart"),lM=rs("transitionrun"),nM=rs("transitionstart"),rM=rs("transitioncancel"),RL=rs("transitionend"),ML=new Map,py="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(" ");py.push("scrollEnd");var AL=0;if(typeof performance==="object"&&typeof performance.now==="function")var sM=performance,DL=function(){return sM.now()};else{var uM=Date;DL=function(){return uM.now()}}var my=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)},iM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",mp=0,hy=1,gy=2,yy=3,hp="– ",gp="+ ",EL=" ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Vo="Components ⚛",st="Scheduler ⚛",it="Blocking",yr=!1,In={color:"primary",properties:null,tooltipText:"",track:Vo},br={start:-0,end:-0,detail:{devtools:In}},dM=["Changed Props",""],OL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cM=["Changed Props",OL],Cd=1,Rn=2,$o=[],Uu=0,by=0,vr={};Object.freeze(vr);var Xo=null,Pu=null,ze=0,fM=1,tt=2,Ja=8,fl=16,pM=32,qL=!1;try{var BL=Object.preventExtensions({})}catch(e){qL=!0}var vy=new WeakMap,zu=[],_u=0,yp=null,kd=0,jo=[],Yo=0,xs=null,Mn=1,An="",ja=null,Vt=null,dt=!1,Kl=!1,Oo=null,Sr=null,Qo=!1,Sy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xy=ge(null),Ly=ge(null),NL={},bp=null,Hu=null,Fu=!1,mM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},hM=bt.unstable_scheduleCallback,gM=bt.unstable_NormalPriority,va={$$typeof:Xl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,vp=console.createTask?console.createTask:function(){return null},wd=1,Sp=2,Na=-0,xr=-0,Dn=-0,En=null,ro=-1.1,Ls=-0,Jt=-0,qe=-1.1,Ue=-1.1,Zt=null,la=!1,Lr=-0,Jl=-1.1,Td=null,Cr=0,Cy=null,ky=null,Cs=-1.1,Id=null,Gu=-1.1,xp=-1.1,en=-0,On=-1.1,Zo=-1.1,wy=0,Rd=null,UL=null,PL=null,kr=-1.1,ks=null,wr=-1.1,Lp=-1.1,zL=-0,_L=-0,Cp=0,qn=null,HL=0,Md=-1.1,kp=!1,wp=!1,Ad=null,Ty=0,ws=0,Vu=null,FL=G.S;G.S=function(e,t){if(UC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>On&&0>Zo){On=Sa();var a=rd(),o=nd();if(a!==wr||o!==ks)wr=-1.1;kr=a,ks=o}NT(e,t)}FL!==null&&FL(e,t)};var Ts=ge(null),pl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Is=new Set;pl.recordUnsafeLifecycleWarnings=function(e,t){Is.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Ed.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Od.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&qd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Nd.push(e))},pl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dd.length&&(Dd.forEach(function(d){e.add(X(d)||"Component"),Is.add(d.type)}),Dd=[]);var t=new Set;0<Ed.length&&(Ed.forEach(function(d){t.add(X(d)||"Component"),Is.add(d.type)}),Ed=[]);var a=new Set;0<Od.length&&(Od.forEach(function(d){a.add(X(d)||"Component"),Is.add(d.type)}),Od=[]);var o=new Set;0<qd.length&&(qd.forEach(function(d){o.add(X(d)||"Component"),Is.add(d.type)}),qd=[]);var l=new Set;0<Bd.length&&(Bd.forEach(function(d){l.add(X(d)||"Component"),Is.add(d.type)}),Bd=[]);var n=new Set;if(0<Nd.length&&(Nd.forEach(function(d){n.add(X(d)||"Component"),Is.add(d.type)}),Nd=[]),0<t.size){var s=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
184
|
+
Check the render method of %s.`,X(Eo)||"Unknown")),o=nr(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=rr(e,o,t),a!==null&&(Ol(t,"root.render()",null),oa(a,e,t),Vi(a,e,t))}function Ix(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bg(e,t){Ix(e,t),(e=e.alternate)&&Ix(e,t)}function Rx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),Bg(e,67108864)}}function Mx(e){if(e.tag===13||e.tag===31){var t=Mo(e);t=ls(t);var a=Wa(e,t);a!==null&&oa(a,e,t),Bg(e,t)}}function QI(){return Eo}function ZI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Oo,Ng(e,t,a,o)}finally{kt.p=n,G.T=l}}function WI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=fl,Ng(e,t,a,o)}finally{kt.p=n,G.T=l}}function Ng(e,t,a,o){if(nm){var l=Ug(o);if(l===null)xg(e,t,o,rm,a),Dx(e,o);else if(KI(l,e,t,a,o))o.stopPropagation();else if(Dx(e,o),t&4&&-1<VM.indexOf(e)){for(;l!==null;){var n=$e(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=Ml(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-oo(s);d.entanglements[1]|=m,s&=~m}Vl(n),(ht&(Aa|Uo))===Pa&&(Fp=Ba()+_C,ld(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),Su(),Bg(n,2)}if(n=Ug(o),n===null&&xg(e,t,o,rm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else xg(e,t,o,null,a)}}function Ug(e){return e=Gm(e),Pg(e)}function Pg(e){if(rm=null,e=we(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=F(t),e!==null)return e;e=null}else if(a===31){if(e=K(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 rm=e,null}function Ax(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 Oo;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 fl;case"message":switch(sR()){case Wg:return Oo;case Kg:return fl;case Ru:case uR:return Wl;case Jg:return up;default:return Wl}default:return Wl}}function Dx(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":nc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rc.delete(t.pointerId)}}function cd(e,t,a,o,l,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=$e(t),t!==null&&Rx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function KI(e,t,a,o,l){switch(t){case"focusin":return Ur=cd(Ur,e,t,a,o,l),!0;case"dragenter":return Pr=cd(Pr,e,t,a,o,l),!0;case"mouseover":return zr=cd(zr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return nc.set(n,cd(nc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,rc.set(n,cd(rc.get(n)||null,e,t,a,o,l)),!0}return!1}function Ex(e){var t=we(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=F(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Mx(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Mx(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 Jf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ug(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;gd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gd=l,a.target.dispatchEvent(o),gd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),gd=null}else return t=$e(a),t!==null&&Rx(t),e.blockedOn=a,!1;t.shift()}return!0}function Ox(e,t,a){Jf(e)&&a.delete(t)}function JI(){pb=!1,Ur!==null&&Jf(Ur)&&(Ur=null),Pr!==null&&Jf(Pr)&&(Pr=null),zr!==null&&Jf(zr)&&(zr=null),nc.forEach(Ox),rc.forEach(Ox)}function ep(e,t){e.blockedOn===t&&(e.blockedOn=null,pb||(pb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,JI)))}function qx(e){sm!==e&&(sm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){sm===e&&(sm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Pg(o||a)===null)continue;else break;var n=$e(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Ph(n,a,o,l))}}))}function wu(e){function t(m){return ep(m,e)}Ur!==null&&ep(Ur,e),Pr!==null&&ep(Pr,e),zr!==null&&ep(zr,e),nc.forEach(t),rc.forEach(t);for(var a=0;a<_r.length;a++){var o=_r[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_r.length&&(a=_r[0],a.blockedOn===null);)Ex(a),a.blockedOn===null&&_r.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],s=l[lo]||null;if(typeof n==="function")s||qx(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[lo]||null)d=s.formAction;else if(Pg(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),qx(a)}}}function Bx(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function zg(e){this._internalRoot=e}function tp(e){this._internalRoot=e}function Nx(e){e[gr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rt=Object.assign,eR=Symbol.for("react.element"),Xl=Symbol.for("react.transitional.element"),Tu=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),ap=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Hg=Symbol.for("react.consumer"),jl=Symbol.for("react.context"),fd=Symbol.for("react.forward_ref"),Fg=Symbol.for("react.suspense"),Gg=Symbol.for("react.suspense_list"),op=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),Vg=Symbol.for("react.activity"),tR=Symbol.for("react.memo_cache_sentinel"),Ux=Symbol.iterator,aR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=di.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=hb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oR=Object.freeze({pending:!1,data:null,method:null,action:null}),$g=[],Xg=[],In=-1,pr=ge(null),pd=ge(null),mr=ge(null),lp=ge(null),md=0,Px,zx,_x,Hx,Fx,Gx,Vx;P.__reactDisabledLog=!0;var jg,$x,Yg=!1,Qg=new(typeof WeakMap==="function"?WeakMap:Map),Eo=null,Yl=!1,cl=Object.prototype.hasOwnProperty,Zg=bt.unstable_scheduleCallback,lR=bt.unstable_cancelCallback,nR=bt.unstable_shouldYield,rR=bt.unstable_requestPaint,Ba=bt.unstable_now,sR=bt.unstable_getCurrentPriorityLevel,Wg=bt.unstable_ImmediatePriority,Kg=bt.unstable_UserBlockingPriority,Ru=bt.unstable_NormalPriority,uR=bt.unstable_LowPriority,Jg=bt.unstable_IdlePriority,iR=bt.log,dR=bt.unstable_setDisableYieldValue,Mu=null,Ka=null,Ql=!1,Zl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",oo=Math.clz32?Math.clz32:$c,{log:cR,LN2:fR}=Math,np=256,rp=262144,sp=4194304,Oo=2,fl=8,Wl=32,up=268435456,hr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+hr,lo="__reactProps$"+hr,gr="__reactContainer$"+hr,ey="__reactEvents$"+hr,pR="__reactListeners$"+hr,mR="__reactHandles$"+hr,Xx="__reactResources$"+hr,hd="__reactMarker$"+hr,jx=new Set,Ss={},ty={},hR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gR=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]*$"),Yx={},Qx={},yR=/[\n"\\]/g,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=!1,tL=!1,aL=["value","defaultValue"],oL=!1,lL=/["'&<>\n\t]|^\s|\s$/,bR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),nL="applet caption html table td th marquee object template foreignObject desc title".split(" "),vR=nL.concat(["button"]),SR="dd dt li option optgroup p rp rt".split(" "),rL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ip={},ay={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},sL=/([A-Z])/g,uL=/^ms-/,xR=/^(?:webkit|moz|o)[A-Z]/,LR=/^-ms-/,CR=/-(.)/g,iL=/;\s*$/,Au={},oy={},dL=!1,cL=!1,fL=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(" ")),dp="http://www.w3.org/1998/Math/MathML",Du="http://www.w3.org/2000/svg",kR=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"]]),cp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},pL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Eu={},wR=RegExp("^(aria)-[: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]*$"),TR=RegExp("^(aria)[A-Z][: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]*$"),mL=!1,no={},hL=/^on./,IR=/^on[^A-Z]/,RR=RegExp("^(aria)-[: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]*$"),MR=RegExp("^(aria)[A-Z][: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]*$"),AR=/^[\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,gd=null,Ou=null,qu=null,ly=!1,Kl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ny=!1;if(Kl)try{var yd={};Object.defineProperty(yd,"passive",{get:function(){ny=!0}}),window.addEventListener("test",yd,yd),window.removeEventListener("test",yd,yd)}catch(e){ny=!1}var yr=null,ry=null,fp=null,xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pp=po(xs),bd=rt({},xs,{view:0,detail:0}),DR=po(bd),sy,uy,vd,mp=rt({},bd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vm,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){if("movementX"in e)return e.movementX;return e!==vd&&(vd&&e.type==="mousemove"?(sy=e.screenX-vd.screenX,uy=e.screenY-vd.screenY):uy=sy=0,vd=e),sy},movementY:function(e){return"movementY"in e?e.movementY:uy}}),gL=po(mp),ER=rt({},mp,{dataTransfer:0}),OR=po(ER),qR=rt({},bd,{relatedTarget:0}),iy=po(qR),BR=rt({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),NR=po(BR),UR=rt({},xs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PR=po(UR),zR=rt({},xs,{data:0}),yL=po(zR),_R=yL,HR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FR={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"},GR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},VR=rt({},bd,{key:function(e){if(e.key){var t=HR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vm,charCode:function(e){return e.type==="keypress"?Kc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$R=po(VR),XR=rt({},mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bL=po(XR),jR=rt({},bd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vm}),YR=po(jR),QR=rt({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZR=po(QR),WR=rt({},mp,{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}),KR=po(WR),JR=rt({},xs,{newState:0,oldState:0}),eM=po(JR),tM=[9,13,27,32],vL=229,dy=Kl&&"CompositionEvent"in window,Sd=null;Kl&&"documentMode"in document&&(Sd=document.documentMode);var aM=Kl&&"TextEvent"in window&&!Sd,SL=Kl&&(!dy||Sd&&8<Sd&&11>=Sd),xL=32,LL=String.fromCharCode(xL),CL=!1,Bu=!1,oM={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},xd=null,Ld=null,kL=!1;Kl&&(kL=kT("input")&&(!document.documentMode||9<document.documentMode));var ro=typeof Object.is==="function"?Object.is:AT,lM=Kl&&"documentMode"in document&&11>=document.documentMode,Nu=null,cy=null,Cd=null,fy=!1,Uu={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionrun:rs("Transition","TransitionRun"),transitionstart:rs("Transition","TransitionStart"),transitioncancel:rs("Transition","TransitionCancel"),transitionend:rs("Transition","TransitionEnd")},py={},wL={};Kl&&(wL=document.createElement("div").style,("AnimationEvent"in window)||(delete Uu.animationend.animation,delete Uu.animationiteration.animation,delete Uu.animationstart.animation),("TransitionEvent"in window)||delete Uu.transitionend.transition);var TL=ss("animationend"),IL=ss("animationiteration"),RL=ss("animationstart"),nM=ss("transitionrun"),rM=ss("transitionstart"),sM=ss("transitioncancel"),ML=ss("transitionend"),AL=new Map,my="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(" ");my.push("scrollEnd");var DL=0;if(typeof performance==="object"&&typeof performance.now==="function")var uM=performance,EL=function(){return uM.now()};else{var iM=Date;EL=function(){return iM.now()}}var hy=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)},dM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",hp=0,gy=1,yy=2,by=3,gp="– ",yp="+ ",OL=" ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",$o="Components ⚛",st="Scheduler ⚛",it="Blocking",br=!1,Rn={color:"primary",properties:null,tooltipText:"",track:$o},vr={start:-0,end:-0,detail:{devtools:Rn}},cM=["Changed Props",""],qL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fM=["Changed Props",qL],kd=1,Mn=2,Xo=[],Pu=0,vy=0,Sr={};Object.freeze(Sr);var jo=null,zu=null,Pe=0,pM=1,tt=2,Ja=8,pl=16,mM=32,BL=!1;try{var NL=Object.preventExtensions({})}catch(e){BL=!0}var Sy=new WeakMap,_u=[],Hu=0,bp=null,wd=0,Yo=[],Qo=0,Ls=null,An=1,Dn="",ja=null,Vt=null,dt=!1,Jl=!1,qo=null,xr=null,Zo=!1,xy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ly=ge(null),Cy=ge(null),UL={},vp=null,Fu=null,Gu=!1,hM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},gM=bt.unstable_scheduleCallback,yM=bt.unstable_NormalPriority,va={$$typeof:jl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,Sp=console.createTask?console.createTask:function(){return null},Td=1,xp=2,Na=-0,Lr=-0,En=-0,On=null,so=-1.1,Cs=-0,Jt=-0,Oe=-1.1,Ne=-1.1,Zt=null,la=!1,Cr=-0,en=-1.1,Id=null,kr=0,ky=null,wy=null,ks=-1.1,Rd=null,Vu=-1.1,Lp=-1.1,tn=-0,qn=-1.1,Wo=-1.1,Ty=0,Md=null,PL=null,zL=null,wr=-1.1,ws=null,Tr=-1.1,Cp=-1.1,_L=-0,HL=-0,kp=0,Bn=null,FL=0,Ad=-1.1,wp=!1,Tp=!1,Dd=null,Iy=0,Ts=0,$u=null,GL=G.S;G.S=function(e,t){if(PC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>qn&&0>Wo){qn=Sa();var a=sd(),o=rd();if(a!==Tr||o!==ws)Tr=-1.1;wr=a,ws=o}UT(e,t)}GL!==null&&GL(e,t)};var Is=ge(null),ml={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ed=[],Od=[],qd=[],Bd=[],Nd=[],Ud=[],Rs=new Set;ml.recordUnsafeLifecycleWarnings=function(e,t){Rs.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Ed.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Od.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Bd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Nd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Ud.push(e))},ml.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ed.length&&(Ed.forEach(function(d){e.add(X(d)||"Component"),Rs.add(d.type)}),Ed=[]);var t=new Set;0<Od.length&&(Od.forEach(function(d){t.add(X(d)||"Component"),Rs.add(d.type)}),Od=[]);var a=new Set;0<qd.length&&(qd.forEach(function(d){a.add(X(d)||"Component"),Rs.add(d.type)}),qd=[]);var o=new Set;0<Bd.length&&(Bd.forEach(function(d){o.add(X(d)||"Component"),Rs.add(d.type)}),Bd=[]);var l=new Set;0<Nd.length&&(Nd.forEach(function(d){l.add(X(d)||"Component"),Rs.add(d.type)}),Nd=[]);var n=new Set;if(0<Ud.length&&(Ud.forEach(function(d){n.add(X(d)||"Component"),Rs.add(d.type)}),Ud=[]),0<t.size){var s=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
185
|
|
|
186
186
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
187
|
|
|
@@ -210,27 +210,27 @@ Please update the following components: %s`,s)),0<l.size&&(s=x(l),console.warn(`
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,s))};var
|
|
213
|
+
Please update the following components: %s`,s))};var Ip=new Map,VL=new Set;ml.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Ja&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!VL.has(e.type)&&(o=Ip.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Ip.set(a,o)),o.push(e))},ml.flushLegacyContextWarning=function(){Ip.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(X(l)||"Component"),VL.add(l.type)});var o=x(a);re(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
214
|
|
|
215
215
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},ml.discardPendingWarnings=function(){Ed=[],Od=[],qd=[],Bd=[],Nd=[],Ud=[],Ip=new Map};var $L={react_stack_bottom_frame:function(e,t,a){var o=Yl;Yl=!0;try{return e(t,a)}finally{Yl=o}}},Ry=$L.react_stack_bottom_frame.bind($L),XL={react_stack_bottom_frame:function(e){var t=Yl;Yl=!0;try{return e.render()}finally{Yl=t}}},jL=XL.react_stack_bottom_frame.bind(XL),YL={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ct(e,e.return,a)}}},My=YL.react_stack_bottom_frame.bind(YL),QL={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(n){Ct(e,e.return,n)}}},ZL=QL.react_stack_bottom_frame.bind(QL),WL={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},bM=WL.react_stack_bottom_frame.bind(WL),KL={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ct(e,t,o)}}},JL=KL.react_stack_bottom_frame.bind(KL),eC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},vM=eC.react_stack_bottom_frame.bind(eC),tC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ct(e,t,o)}}},SM=tC.react_stack_bottom_frame.bind(tC),aC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},xM=aC.react_stack_bottom_frame.bind(aC),Xu=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Ay=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Rp=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Mp={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Ms=null,Pd=!1,ju=null,zd=0,at=null,Dy,oC=Dy=!1,lC={},nC={},rC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=X(e),l=o||"null";if(!lC[l]){lC[l]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag==="number"&&(l=X(e))&&(n=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+l+"`."),n||o&&(n=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),re(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,s)})}}};var Ms=W0(!0),rC=W0(!1),sC=0,uC=1,iC=2,Dy=3,Tr=!1,dC=!1,Ey=null,Oy=!1,ju=ge(null),Mp=ge(0),qo=ge(null),Wo=null,Yu=1,zd=2,ha=ge(0),Ap=0,Ko=1,so=2,Bo=4,uo=8,Qu,cC=new Set,fC=new Set,qy=new Set,pC=new Set,Bn=0,Fe=null,Ut=null,xa=null,Dp=!1,Zu=!1,As=!1,Ep=0,_d=0,Nn=null,xM=0,LM=25,H=null,Jo=null,Un=-1,Hd=!1,Fd={readContext:Qt,use:ur,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useLayoutEffect:da,useInsertionEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useSyncExternalStore:da,useId:da,useHostTransitionStatus:da,useFormState:da,useActionState:da,useOptimistic:da,useMemoCache:da,useCacheRefresh:da};Fd.useEffectEvent=da;var By=null,mC=null,Ny=null,hC=null,tn=null,ml=null,Op=null;By={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",nt(),fu(t),Oh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),fu(t),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),fu(a),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),fu(t),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),fu(t),Dh(e,t)},useMemo:function(e,t){H="useMemo",nt(),fu(t);var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Mh(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Bh(e,t)},useTransition:function(){return H="useTransition",nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),kh(e,t,a)},useId:function(){return H="useId",nt(),zh()},useFormState:function(e,t){return H="useFormState",nt(),xf(),mu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Ah(e)}},mC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Oh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Dh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Mh(e)},useState:function(e){H="useState",le();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Bh(e,t)},useTransition:function(){return H="useTransition",le(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kh(e,t,a)},useId:function(){return H="useId",le(),zh()},useActionState:function(e,t){return H="useActionState",le(),mu(e,t)},useFormState:function(e,t){return H="useFormState",le(),xf(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),_h()},useEffectEvent:function(e){return H="useEffectEvent",le(),Ah(e)}},Ny={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),vv(e,t)},useTransition:function(){return H="useTransition",le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),kf(e)},useActionState:function(e){return H="useActionState",le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),iv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},hC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=Op;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=Op;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=Op;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Sv(e,t)},useTransition:function(){return H="useTransition",le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),cv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},tn={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),Oh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Dh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Mh(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Bh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),kh(e,t,a)},useId:function(){return H="useId",b(),nt(),zh()},useFormState:function(e,t){return H="useFormState",b(),nt(),mu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Ih(e)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Ah(e)}},ml={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),vv(e,t)},useTransition:function(){return H="useTransition",b(),le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),kf(e)},useActionState:function(e){return H="useActionState",b(),le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),iv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}},Op={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),Sv(e,t)},useTransition:function(){return H="useTransition",b(),le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),wf(e)},useActionState:function(e){return H="useActionState",b(),le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),cv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}};var gC={},yC=new Set,bC=new Set,vC=new Set,SC=new Set,xC=new Set,LC=new Set,CC=new Set,kC=new Set,wC=new Set,TC=new Set;Object.freeze(gC);var Uy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.setState()",e),oa(t,e,o),Gi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.tag=uC,l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.replaceState()",e),oa(t,e,o),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ro(e),o=lr(a);o.tag=iC,t!==void 0&&t!==null&&(Fh(t),o.callback=t),t=nr(e,o,a),t!==null&&(El(a,"this.forceUpdate()",e),oa(t,e,a),Gi(t,e,a))}},Wu=null,Py=null,zy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),La=!1,IC={},RC={},MC={},AC={},Ku=!1,DC={},qp={},_y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},EC=!1,OC=null;OC=new Set;var Pn=!1,Ca=!1,Hy=!1,qC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,Ju=null,ei=null,ka=null,go=!1,hl=null,Ma=!1,Gd=8192,CM={getCacheForType:function(e){var t=Qt(va),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(va).controller.signal},getOwner:function(){return Do}};if(typeof Symbol==="function"&&Symbol.for){var Vd=Symbol.for;Vd("selector.component"),Vd("selector.has_pseudo_class"),Vd("selector.role"),Vd("selector.test_id"),Vd("selector.text")}var kM=[],wM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,No=4,zn=0,$d=1,Ds=2,Bp=3,Ir=4,Np=6,BC=5,ht=Pa,Pt=null,lt=null,ot=0,yo=0,Up=1,Es=2,Xd=3,NC=4,Fy=5,jd=6,Pp=7,Gy=8,Os=9,Dt=yo,Uo=null,Rr=!1,ti=!1,Vy=!1,an=0,ea=zn,Mr=0,Ar=0,$y=0,bo=0,qs=0,Yd=null,io=null,zp=!1,_p=0,UC=0,PC=300,Hp=1/0,zC=500,Qd=null,ca=null,Dr=null,Fp=0,Xy=1,jy=2,_C=3,Er=0,HC=1,FC=2,GC=3,VC=4,Gp=5,wa=0,Or=null,ai=null,gl=0,Yy=0,Qy=-0,Zy=null,$C=null,XC=null,yl=Fp,jC=null,TM=50,Zd=0,Wy=null,Ky=!1,Vp=!1,IM=50,Bs=0,Wd=null,oi=!1,$p=null,YC=!1,QC=new Set,RM={},Xp=null,li=null,Jy=!1,eb=!1,jp=!1,tb=!1,qr=0,ab={};(function(){for(var e=0;e<py.length;e++){var t=py[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),sl(a,"on"+t)}sl(wL,"onAnimationEnd"),sl(TL,"onAnimationIteration"),sl(IL,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(lM,"onTransitionRun"),sl(nM,"onTransitionStart"),sl(rM,"onTransitionCancel"),sl(RL,"onTransitionEnd")})(),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kd="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(" "),ob=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kd)),Yp="_reactListening"+Math.random().toString(36).slice(2),ZC=!1,WC=!1,Qp=!1,KC=!1,Zp=!1,Wp=!1,JC=!1,Kp={},MM=/\r\n?/g,AM=/\u0000|\uFFFD/g,Ns="http://www.w3.org/1999/xlink",lb="http://www.w3.org/XML/1998/namespace",DM="javascript:throw new Error('React form unexpectedly submitted.')",EM="suppressHydrationWarning",Us="&",Jp="/&",Jd="$",ec="/$",Br="$?",Ps="$~",ni="$!",OM="html",qM="body",BM="head",nb="F!",e1="F",t1="loading",NM="style",_n=0,ri=1,em=2,rb=null,sb=null,a1={dialog:!0,webview:!0},ub=null,tc=void 0,o1=typeof setTimeout==="function"?setTimeout:void 0,UM=typeof clearTimeout==="function"?clearTimeout:void 0,zs=-1,l1=typeof Promise==="function"?Promise:void 0,PM=typeof queueMicrotask==="function"?queueMicrotask:typeof l1<"u"?function(e){return l1.resolve(null).then(e).catch(LI)}:o1,ib=null,_s=0,ac=1,n1=2,r1=3,el=4,tl=new Map,s1=new Set,Hn=kt.d;kt.d={f:function(){var e=Hn.f(),t=vu();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?kv(t):Hn.r(e)},D:function(e){Hn.D(e),yx("dns-prefetch",e,null)},C:function(e,t){Hn.C(e,t),yx("preconnect",e,t)},L:function(e,t,a){Hn.L(e,t,a);var o=si;if(o&&e&&t){var l='link[rel="preload"][as="'+Fo(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Fo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Fo(a.imageSizes)+'"]')):l+='[href="'+Fo(e)+'"]':l+='[href="'+Fo(e)+'"]';var n=l;switch(t){case"style":n=Lu(e);break;case"script":n=Cu(e)}tl.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),tl.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(ud(n))||t==="script"&&o.querySelector(id(n))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Hn.m(e,t);var a=si;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Fo(o)+'"][href="'+Fo(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Cu(e)}if(!tl.has(n)&&(e=rt({rel:"modulepreload",href:e},t),tl.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(id(n)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Hn.X(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){Hn.S(e,t,a);var o=si;if(o&&e){var l=yt(o).hoistableStyles,n=Lu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:_s,preload:null};if(s=o.querySelector(ud(n)))d.loading=ac|el;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=tl.get(n))&&Dg(e,a);var m=s=o.createElement("link");Oe(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=ac}),m.addEventListener("error",function(){d.loading|=n1}),d.loading|=el,Qf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Hn.M(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var si=typeof document>"u"?null:document,tm=null,zM=60000,_M=800,HM=500,db=0,cb=null,am=null,Hs=aR,oc={$$typeof:Xl,Provider:null,Consumer:null,_currentValue:Hs,_currentValue2:Hs,_threadCount:0},u1="%c%s%c",i1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",d1="",om=" ",FM=Function.prototype.bind,c1=!1,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null,x1=null;f1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},p1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},m1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},h1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},g1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},b1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},v1=function(e){var t=nu(),a=Wa(e,t);a!==null&&oa(a,e,t)},S1=function(e){p=e},x1=function(e){v=e};var lm=!0,nm=null,fb=!1,Nr=null,Ur=null,Pr=null,lc=new Map,nc=new Map,zr=[],GM="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(" "),rm=null;if(ep.prototype.render=Pg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):_(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Ro(o);Og(o,l,a,t,null,null)},ep.prototype.unmount=Pg.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ht&(Aa|No))!==Pa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Og(e.current,2,null,e,null,null),vu(),t[hr]=null}},ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<zr.length&&t!==0&&t<zr[a].priority;a++);zr.splice(a,0,e),a===0&&Dx(e)}},function(){var e=ii.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
223
|
+
Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),re(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,s)})}}};var As=K0(!0),sC=K0(!1),uC=0,iC=1,dC=2,Ey=3,Ir=!1,cC=!1,Oy=null,qy=!1,Yu=ge(null),Ap=ge(0),Bo=ge(null),Ko=null,Qu=1,_d=2,ha=ge(0),Dp=0,Jo=1,uo=2,No=4,io=8,Zu,fC=new Set,pC=new Set,By=new Set,mC=new Set,Nn=0,Fe=null,Ut=null,xa=null,Ep=!1,Wu=!1,Ds=!1,Op=0,Hd=0,Un=null,LM=0,CM=25,H=null,el=null,Pn=-1,Fd=!1,Gd={readContext:Qt,use:ir,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useLayoutEffect:da,useInsertionEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useSyncExternalStore:da,useId:da,useHostTransitionStatus:da,useFormState:da,useActionState:da,useOptimistic:da,useMemoCache:da,useCacheRefresh:da};Gd.useEffectEvent=da;var Ny=null,hC=null,Uy=null,gC=null,an=null,hl=null,qp=null;Ny={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",nt(),pu(t),qh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),pu(t),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),pu(a),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),pu(t),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),pu(t),Eh(e,t)},useMemo:function(e,t){H="useMemo",nt(),pu(t);var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Ah(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Nh(e,t)},useTransition:function(){return H="useTransition",nt(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),wh(e,t,a)},useId:function(){return H="useId",nt(),_h()},useFormState:function(e,t){return H="useFormState",nt(),Lf(),hu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Rh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",nt(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Dh(e)}},hC={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),qh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Eh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Ah(e)},useState:function(e){H="useState",le();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Nh(e,t)},useTransition:function(){return H="useTransition",le(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),wh(e,t,a)},useId:function(){return H="useId",le(),_h()},useActionState:function(e,t){return H="useActionState",le(),hu(e,t)},useFormState:function(e,t){return H="useFormState",le(),Lf(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Rh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",le(),Dh(e)}},Uy={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),Af(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=hl;try{return mu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=hl;try{return mu(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Sv(e,t)},useTransition:function(){return H="useTransition",le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),Lf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),dv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),Rf(e)}},gC={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),Af(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=qp;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=qp;try{return Yi(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=qp;try{return Yi(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),xv(e,t)},useTransition:function(){return H="useTransition",le(),Iv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),Lf(),Tf(e)},useActionState:function(e){return H="useActionState",le(),Tf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),fv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),Rf(e)}},an={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),qh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Eh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Ah(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Nh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),wh(e,t,a)},useId:function(){return H="useId",b(),nt(),_h()},useFormState:function(e,t){return H="useFormState",b(),nt(),hu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Rh(e)},useMemoCache:function(e){return b(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Dh(e)}},hl={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Af(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=hl;try{return mu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=hl;try{return mu(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),Sv(e,t)},useTransition:function(){return H="useTransition",b(),le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),kf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),wf(e)},useActionState:function(e){return H="useActionState",b(),le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),dv(e,t)},useMemoCache:function(e){return b(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),Rf(e)}},qp={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Af(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=hl;try{return Yi(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=hl;try{return Yi(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),xv(e,t)},useTransition:function(){return H="useTransition",b(),le(),Iv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),kf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),Tf(e)},useActionState:function(e){return H="useActionState",b(),le(),Tf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),fv(e,t)},useMemoCache:function(e){return b(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),Rf(e)}};var yC={},bC=new Set,vC=new Set,SC=new Set,xC=new Set,LC=new Set,CC=new Set,kC=new Set,wC=new Set,TC=new Set,IC=new Set;Object.freeze(yC);var Py={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Mo(e),l=nr(o);l.payload=t,a!==void 0&&a!==null&&(Gh(a),l.callback=a),t=rr(e,l,o),t!==null&&(Ol(o,"this.setState()",e),oa(t,e,o),Vi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Mo(e),l=nr(o);l.tag=iC,l.payload=t,a!==void 0&&a!==null&&(Gh(a),l.callback=a),t=rr(e,l,o),t!==null&&(Ol(o,"this.replaceState()",e),oa(t,e,o),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mo(e),o=nr(a);o.tag=dC,t!==void 0&&t!==null&&(Gh(t),o.callback=t),t=rr(e,o,a),t!==null&&(Ol(a,"this.forceUpdate()",e),oa(t,e,a),Vi(t,e,a))}},Ku=null,zy=null,_y=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),La=!1,RC={},MC={},AC={},DC={},Ju=!1,EC={},Bp={},Hy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},OC=!1,qC=null;qC=new Set;var zn=!1,Ca=!1,Fy=!1,BC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,ei=null,ti=null,ka=null,yo=!1,gl=null,Ma=!1,Vd=8192,kM={getCacheForType:function(e){var t=Qt(va),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(va).controller.signal},getOwner:function(){return Eo}};if(typeof Symbol==="function"&&Symbol.for){var $d=Symbol.for;$d("selector.component"),$d("selector.has_pseudo_class"),$d("selector.role"),$d("selector.test_id"),$d("selector.text")}var wM=[],TM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,Uo=4,_n=0,Xd=1,Es=2,Np=3,Rr=4,Up=6,NC=5,ht=Pa,Pt=null,lt=null,ot=0,bo=0,Pp=1,Os=2,jd=3,UC=4,Gy=5,Yd=6,zp=7,Vy=8,qs=9,Dt=bo,Po=null,Mr=!1,ai=!1,$y=!1,on=0,ea=_n,Ar=0,Dr=0,Xy=0,vo=0,Bs=0,Qd=null,co=null,_p=!1,Hp=0,PC=0,zC=300,Fp=1/0,_C=500,Zd=null,ca=null,Er=null,Gp=0,jy=1,Yy=2,HC=3,Or=0,FC=1,GC=2,VC=3,$C=4,Vp=5,wa=0,qr=null,oi=null,yl=0,Qy=0,Zy=-0,Wy=null,XC=null,jC=null,bl=Gp,YC=null,IM=50,Wd=0,Ky=null,Jy=!1,$p=!1,RM=50,Ns=0,Kd=null,li=!1,Xp=null,QC=!1,ZC=new Set,MM={},jp=null,ni=null,eb=!1,tb=!1,Yp=!1,ab=!1,Br=0,ob={};(function(){for(var e=0;e<my.length;e++){var t=my[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ul(a,"on"+t)}ul(TL,"onAnimationEnd"),ul(IL,"onAnimationIteration"),ul(RL,"onAnimationStart"),ul("dblclick","onDoubleClick"),ul("focusin","onFocus"),ul("focusout","onBlur"),ul(nM,"onTransitionRun"),ul(rM,"onTransitionStart"),ul(sM,"onTransitionCancel"),ul(ML,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jd="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(" "),lb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jd)),Qp="_reactListening"+Math.random().toString(36).slice(2),WC=!1,KC=!1,Zp=!1,JC=!1,Wp=!1,Kp=!1,e1=!1,Jp={},AM=/\r\n?/g,DM=/\u0000|\uFFFD/g,Us="http://www.w3.org/1999/xlink",nb="http://www.w3.org/XML/1998/namespace",EM="javascript:throw new Error('React form unexpectedly submitted.')",OM="suppressHydrationWarning",Ps="&",em="/&",ec="$",tc="/$",Nr="$?",zs="$~",ri="$!",qM="html",BM="body",NM="head",rb="F!",t1="F",a1="loading",UM="style",Hn=0,si=1,tm=2,sb=null,ub=null,o1={dialog:!0,webview:!0},ib=null,ac=void 0,l1=typeof setTimeout==="function"?setTimeout:void 0,PM=typeof clearTimeout==="function"?clearTimeout:void 0,_s=-1,n1=typeof Promise==="function"?Promise:void 0,zM=typeof queueMicrotask==="function"?queueMicrotask:typeof n1<"u"?function(e){return n1.resolve(null).then(e).catch(CI)}:l1,db=null,Hs=0,oc=1,r1=2,s1=3,tl=4,al=new Map,u1=new Set,Fn=kt.d;kt.d={f:function(){var e=Fn.f(),t=Su();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?wv(t):Fn.r(e)},D:function(e){Fn.D(e),bx("dns-prefetch",e,null)},C:function(e,t){Fn.C(e,t),bx("preconnect",e,t)},L:function(e,t,a){Fn.L(e,t,a);var o=ui;if(o&&e&&t){var l='link[rel="preload"][as="'+Go(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Go(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Go(a.imageSizes)+'"]')):l+='[href="'+Go(e)+'"]':l+='[href="'+Go(e)+'"]';var n=l;switch(t){case"style":n=Cu(e);break;case"script":n=ku(e)}al.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),al.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(id(n))||t==="script"&&o.querySelector(dd(n))||(t=o.createElement("link"),$a(t,"link",e),Ee(t),o.head.appendChild(t)))}},m:function(e,t){Fn.m(e,t);var a=ui;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Go(o)+'"][href="'+Go(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=ku(e)}if(!al.has(n)&&(e=rt({rel:"modulepreload",href:e},t),al.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(dd(n)))return}o=a.createElement("link"),$a(o,"link",e),Ee(o),a.head.appendChild(o)}}},X:function(e,t){Fn.X(e,t);var a=ui;if(a&&e){var o=yt(a).hoistableScripts,l=ku(e),n=o.get(l);n||(n=a.querySelector(dd(l)),n||(e=rt({src:e,async:!0},t),(t=al.get(l))&&Og(e,t),n=a.createElement("script"),Ee(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){Fn.S(e,t,a);var o=ui;if(o&&e){var l=yt(o).hoistableStyles,n=Cu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:Hs,preload:null};if(s=o.querySelector(id(n)))d.loading=oc|tl;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=al.get(n))&&Eg(e,a);var m=s=o.createElement("link");Ee(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=oc}),m.addEventListener("error",function(){d.loading|=r1}),d.loading|=tl,Zf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Fn.M(e,t);var a=ui;if(a&&e){var o=yt(a).hoistableScripts,l=ku(e),n=o.get(l);n||(n=a.querySelector(dd(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=al.get(l))&&Og(e,t),n=a.createElement("script"),Ee(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var ui=typeof document>"u"?null:document,am=null,_M=60000,HM=800,FM=500,cb=0,fb=null,om=null,Fs=oR,lc={$$typeof:jl,Provider:null,Consumer:null,_currentValue:Fs,_currentValue2:Fs,_threadCount:0},i1="%c%s%c",d1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",c1="",lm=" ",GM=Function.prototype.bind,f1=!1,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null,x1=null,L1=null;p1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},m1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},h1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},g1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},b1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},v1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},S1=function(e){var t=ru(),a=Wa(e,t);a!==null&&oa(a,e,t)},x1=function(e){p=e},L1=function(e){v=e};var nm=!0,rm=null,pb=!1,Ur=null,Pr=null,zr=null,nc=new Map,rc=new Map,_r=[],VM="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(" "),sm=null;if(tp.prototype.render=zg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):_(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Mo(o);qg(o,l,a,t,null,null)},tp.prototype.unmount=zg.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ht&(Aa|Uo))!==Pa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),qg(e.current,2,null,e,null,null),Su(),t[gr]=null}},tp.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_r.length&&t!==0&&t<_r[a].priority;a++);_r.splice(a,0,e),a===0&&Ex(e)}},function(){var e=di.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
224
|
- react: `+(e+`
|
|
225
225
|
- react-dom: 19.2.7
|
|
226
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),kt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=oe(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),kt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=oe(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=p1,e.overrideHookStateDeletePath=m1,e.overrideHookStateRenamePath=h1,e.overrideProps=g1,e.overridePropsDeletePath=y1,e.overridePropsRenamePath=b1,e.scheduleUpdate=v1,e.scheduleRetry=S1,e.setErrorHandler=x1,e.setSuspenseHandler=L1,e.scheduleRefresh=L,e.scheduleRoot=R,e.setRefreshHandler=D,e.getCurrentFiber=QI,sl(e)}()&&Kl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var C1=window.location.protocol;/^(https?|file):$/.test(C1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(C1==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}tA.createRoot=function(e,t){if(!_(e))throw Error("Target container is not a DOM element.");Nx(e);var a=!1,o="",l=Ov,n=qv,s=Bv;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===Xl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
228
|
|
|
229
229
|
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=
|
|
230
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=wx(e,1,!1,null,null,a,o,null,l,n,s,Bx),e[gr]=t.current,Sg(e),new zg(t)},tA.hydrateRoot=function(e,t,a){if(!_(e))throw Error("Target container is not a DOM element.");Nx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",n=Ov,s=qv,d=Bv,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=wx(e,1,!0,t,a!=null?a:null,o,l,m,n,s,d,Bx),t.context=Tx(null),a=t.current,o=Mo(a),o=ls(o),l=nr(o),l.callback=null,rr(a,l,o),Ol(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Kn(t,a),Vl(t),e[gr]=t.current,Sg(e),new tp(t)},tA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var M1=Gs(function(aA,dm){dm.exports=Y(R1())});var ce=Gs(function(dA){var Ys=Y(ut());(function(){function r(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===X?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case D:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case oe:return"Suspense";case B:return"SuspenseList";case W:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case L:return"Portal";case K:return P.displayName||"Context";case F:return(P._context.displayName||"Context")+".Consumer";case N:var ue=P.render;return P=P.displayName,P||(P=ue.displayName||ue.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ee:return ue=P.displayName||null,ue!==null?ue:r(P.type)||"Memo";case Z:ue=P._payload,P=P._init;try{return r(P(ue))}catch(se){}}return null}function u(P){return""+P}function i(P){try{u(P);var ue=!1}catch(pe){ue=!0}if(ue){ue=console;var se=ue.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),u(P)}}function c(P){if(P===D)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===Z)return"<...>";try{var ue=r(P);return ue?"<"+ue+">":"<...>"}catch(se){return"<...>"}}function f(){var P=ge.A;return P===null?null:P.getOwner()}function v(){return Error("react-stack-top-frame")}function p(P){if(Be.call(P,"key")){var ue=Object.getOwnPropertyDescriptor(P,"key").get;if(ue&&ue.isReactWarning)return!1}return P.key!==void 0}function b(P,ue){function se(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function S(){var P=r(this.type);return ve[P]||(ve[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function k(P,ue,se,ne,pe,Lt){var Ye=se.ref;return P={$$typeof:R,type:P,key:ue,props:se,_owner:ne},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Lt}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function h(P,ue,se,ne,pe,Lt){var Ye=ue.children;if(Ye!==void 0)if(ne)if(Ce(Ye)){for(ne=0;ne<Ye.length;ne++)x(Ye[ne]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Ye);if(Be.call(ue,"key")){Ye=r(P);var V=Object.keys(ue).filter(function(Mt){return Mt!=="key"});ne=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ae[Ye+ne]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
231
|
let props = %s;
|
|
232
232
|
<%s {...props} />
|
|
233
233
|
React keys must be passed directly to JSX without using spread:
|
|
234
234
|
let props = %s;
|
|
235
|
-
<%s key={someKey} {...props} />`,ne,Ye,V,Ye),ae[Ye+ne]=!0)}if(Ye=null,se!==void 0&&(u(se),Ye=""+se),p(ue)&&(u(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Pe in ue)Pe!=="key"&&(se[Pe]=ue[Pe])}else se=ue;return Ye&&b(se,typeof P==="function"?P.displayName||P.name||"Unknown":P),k(P,Ye,se,f(),pe,Lt)}function x(P){C(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===Z&&(P._payload.status==="fulfilled"?C(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function C(P){return typeof P==="object"&&P!==null&&P.$$typeof===R}var R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ge=js.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,Ce=Array.isArray,Be=console.createTask?console.createTask:function(){return null};js={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=js.react_stack_bottom_frame.bind(js,v)(),je=Be(c(v)),ae={};iA.Fragment=D,iA.jsxDEV=function(P,ue,se,ne){var pe=1e4>ge.recentlyCreatedOwnerStacks++;return h(P,ue,se,ne,pe?Error("react-stack-top-frame"):ke,pe?Be(c(P)):je)}})()});var uT=Y(R1(),1);var Ii=Y(ut(),1);var dm=Y(ut(),1);var M1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function A1(r,i,u=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:M1(r),size:24,node:i,...u.length>0?{aliases:u}:{}}}var D1=(r)=>{let i="",u=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){u=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=u?c.toUpperCase():c;u=!1}return i};var E1=(r)=>{let i=D1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var uc=Y(ut(),1);var sc=(...r)=>r.filter((i,u,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();var _r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function hb(r){return r!==null&&r!==void 0}function O1(r,i={}){let u=i.attributeNames??{},c=(C)=>u[C]??C,f=r.size??r.width??_r.width,v=r.size??r.height??_r.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=i.className?.split(" ").filter(Boolean)??[],k=i.includeDefaultClasses===!1?sc(...S):sc("lucide",...b,...S),h=i.absoluteStrokeWidth?Number(i.strokeWidth??_r["stroke-width"])*Number(r.size??r.width??_r.width)/Number(i.size??i.width??_r.width):i.strokeWidth??_r["stroke-width"];return["svg",{...Object.entries(_r).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&hb(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&hb(i.width)&&{[c("width")]:i.width},..."height"in i&&hb(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((C)=>{let[R,L,D]=C,_=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function q1(r,i={}){return O1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var B1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var di=Y(ut(),1),aA=di.createContext({});var N1=()=>di.useContext(aA);var U1=uc.forwardRef(({color:r,size:i,width:u,height:c,strokeWidth:f,absoluteStrokeWidth:v,nonScalingStroke:p,className:b="",children:S,iconNode:k=[],icon:h={node:k,aliases:[],size:24},...x},C)=>{let{size:R=24,strokeWidth:L=2,absoluteStrokeWidth:D=!1,nonScalingStroke:_=!1,color:z="currentColor",className:F=""}=N1()??{},K=Boolean(S)||B1(x),[N,oe,B=[]]=q1(h,{color:r??z,width:u??i??R,height:c??i??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:sc(F,b),hasA11yProp:K,attributes:x});return uc.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>uc.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,i=[],u=[]){let c=typeof r==="string"?A1(r,i,u):r,f=dm.forwardRef(({className:v,...p},b)=>dm.createElement(U1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=E1(c.name);return f}var P1={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};P1.node;var Hr=xe(P1);var z1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};z1.node;var Fr=xe(z1);var _1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};_1.node;var Gr=xe(_1);var H1={name:"sparkles",size:24,node:[["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"}]],aliases:["stars"]};H1.node;var on=xe(H1);var F1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};F1.node;var bl=xe(F1);var G1={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};G1.node;var Vr=xe(G1);var V1={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};V1.node;var ic=xe(V1);var $1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};$1.node;var dc=xe($1);var X1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};X1.node;var cc=xe(X1);var j1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};j1.node;var fc=xe(j1);var Y1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Y1.node;var pc=xe(Y1);var Q1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Q1.node;var mc=xe(Q1);var Z1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Z1.node;var Vs=xe(Z1);var W1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};W1.node;var $s=xe(W1);var K1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};K1.node;var hc=xe(K1);var J1={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};J1.node;var vl=xe(J1);var ek={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};ek.node;var gc=xe(ek);var tk={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};tk.node;var Xs=xe(tk);var ak={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};ak.node;var yc=xe(ak);var ok={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ok.node;var bc=xe(ok);var lk={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};lk.node;var vc=xe(lk);var nk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};nk.node;var Sc=xe(nk);var rk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};rk.node;var xc=xe(rk);var sk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};sk.node;var Lc=xe(sk);var uk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};uk.node;var Cc=xe(uk);var ik={name:"moon",size:24,node:[["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"}]]};ik.node;var kc=xe(ik);var dk={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};dk.node;var $r=xe(dk);var ck={name:"rotate-cw",size:24,node:[["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"}]]};ck.node;var wc=xe(ck);var fk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};fk.node;var Tc=xe(fk);var pk={name:"sun",size:24,node:[["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"}]]};pk.node;var Ic=xe(pk);var mk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};mk.node;var Rc=xe(mk);var hk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};hk.node;var al=xe(hk);var vi=Y(ut(),1);var gk=["January","February","March","April","May","June","July","August","September","October","November","December"],yk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],oA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Xr(r,i=2){return String(r).padStart(i,"0")}function lA(r,i){let u=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(i){case"yyyy":return Xr(r.getFullYear(),4);case"yy":return Xr(r.getFullYear()%100);case"MMMM":return gk[u];case"MMM":return gk[u].slice(0,3);case"MM":return Xr(u+1);case"M":return String(u+1);case"dd":return Xr(r.getDate());case"d":return String(r.getDate());case"EEEE":return yk[c];case"EEE":return yk[c].slice(0,3);case"HH":return Xr(f);case"H":return String(f);case"hh":return Xr(v);case"h":return String(v);case"mm":return Xr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Xr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function vk(r){let i=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function ln(r,i){let u=vk(r),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=i.slice(f),p=oA.find((S)=>v.startsWith(S));if(p){c+=lA(u,p),f+=p.length;continue}let b=i[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function jr(r,i){return`${r} ${r===1?i:`${i}s`}`}function nA(r,i){let u=(i.getFullYear()-r.getFullYear())*12+i.getMonth()-r.getMonth();if(u===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+u,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>i.getTime())u--;return u}function bk(r,i){let u=(i.getTime()-r.getTime())/1000,c=(i.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((u-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return jr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${jr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return jr(Math.round(f/1440),"day");if(f<86400)return`about ${jr(Math.round(f/43200),"month")}`;let v=nA(r,i);if(v<12)return jr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${jr(p,"year")}`;if(b<9)return`over ${jr(p,"year")}`;return`almost ${jr(p+1,"year")}`}function Sk(r,i={}){let u=vk(r),c=new Date(Date.now()),f=u.getTime()>c.getTime(),v=f?bk(c,u):bk(u,c);if(!i.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var xk=60000,cm=60*xk,nn=24*cm,gb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:cm,bucketMs:5*xk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:nn,bucketMs:cm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*nn,bucketMs:nn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*nn,bucketMs:nn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*nn,bucketMs:nn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:nn}},rA=1500,ci=["1h","24h","7d","30d","90d","all"];function na(r){return gb[r]}function fm(r,i){if(i<nn)return ln(new Date(r),i<cm?"HH:mm":"MMM d HH:mm");return ln(new Date(r),"MMM d")}function pm(r,i){if(i<nn)return ln(new Date(r),"HH:mm");return ln(new Date(r),"MMM d")}function Po(r,i,u=gb[r].bucketMs,c=Date.now()){let f=Math.floor(c/u)*u,v=gb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/u)*u;else{p=f;for(let S of i)if(S<p)p=S;p=Math.floor(p/u)*u}p=Math.max(p,f-(rA-1)*u);let b=[];for(let S=p;S<=f;S+=u)b.push(S);return b}var zo=Y(ut(),1);class Lk extends Error{status;endpoint;constructor(r,i,u){super(u);this.name="ApiError",this.status=r,this.endpoint=i}}async function sA(r,i){try{let u=await r.json();if(typeof u==="object"&&u!==null&&"error"in u&&typeof u.error==="string")return u.error}catch{}return`HTTP error ${r.status} on ${i}`}async function Da(r,i){let u=await fetch(r,i);if(!u.ok)throw new Lk(u.status,r,await sA(u,r));return u.json()}var Ck={"X-Omp-Stats-Action":"1"};async function kk(r="24h",i){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function wk(r="24h",i){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function Tk(r="24h",i){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function mm(r=50,i){return Da(`/api/stats/recent?limit=${r}`,{signal:i})}async function Ik(r="24h",i=50,u){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:u})}async function Rk(r,i){return Da(`/api/request/${r}`,{signal:i})}async function Mk(){return Da("/api/sync",{method:"POST"})}async function Ak(r="24h",i){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function Dk(r,i){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function Ek(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Ck})}async function Ok(){return Da("/api/frustration/cancel",{method:"POST",headers:Ck})}async function qk(r="24h",i){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function Bk(r="24h",i,u){let c=new URLSearchParams({range:r});if(i)c.set("project",i);return Da(`/api/stats/gain?${c}`,{signal:u})}async function Nk(r="24h",i){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function Uk(r="24h",i){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function yb(r,i,u){let c=new URLSearchParams({range:r});if(i!==null)c.set("provider",i);return Da(`/api/stats/provider-windows?${c}`,{signal:u})}async function Pk(r=100,i,u){let c=new URLSearchParams({limit:String(r)});if(i)c.set("q",i);return Da(`/api/sessions?${c}`,{signal:u})}async function zk(r,i){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i})}async function _k(r,i,u){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:u})}var Vk=Y(ce(),1),Hk={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Fk=zo.createContext({version:0,sync:Hk,indexingHours:0,connected:!1,requestSync:()=>{}});function Gk({children:r}){let[i,u]=zo.useState({server:null,version:0}),[c,f]=zo.useState(!1);zo.useEffect(()=>{let b=new EventSource("/api/events");return b.onopen=()=>f(!0),b.onerror=()=>f(!1),b.onmessage=(S)=>{let k=JSON.parse(S.data);u((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=zo.useCallback(()=>{Mk().catch(()=>{})},[]),p=zo.useMemo(()=>({version:Math.max(0,i.version-1),sync:i.server?.sync??Hk,indexingHours:i.server?.indexingHours??0,connected:c,requestSync:v}),[i,c,v]);return Vk.jsxDEV(Fk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function fi(){return zo.useContext(Fk)}var hm=Y(ce(),1);function wt({tone:r="neutral",mono:i,children:u}){return hm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:u},void 0,!1,void 0,this)}function rn({tone:r="neutral",pulse:i}){return hm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Sl({color:r}){return hm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function sn(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var vo=Y(ce(),1);function Ve({title:r,description:i,actions:u,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||i!==void 0||u!==void 0;return vo.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&vo.jsxDEV("header",{className:"card-header",children:[vo.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&vo.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"card-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&vo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:i,actions:u}){return vo.jsxDEV("header",{className:"page-header rise",children:[vo.jsxDEV("div",{children:[vo.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"page-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mc=Y(ut(),1),$k=Y(rc(),1),Ya=Y(ce(),1);function gm({open:r,onClose:i,title:u,subtitle:c,actions:f,width:v,children:p}){let b=Mc.useRef(i);b.current=i;let S=Mc.useRef(null);if(Mc.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(x)=>{if(x.key==="Escape")x.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),k?.focus()}},[r]),!r)return null;return $k.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:v!==void 0?{"--drawer-w":`${v}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:u},void 0,!1,void 0,this),c!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Ya.jsxDEV(al,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function _o({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var Ys=Y(ut(),1),xl=Y(ce(),1);function pi({data:r,title:i="JSON",initialCollapsed:u=!1}){let[c,f]=Ys.useState(u),[v,p]=Ys.useState(!1),b=Ys.useRef(0),S=JSON.stringify(r,null,2);return Ys.useEffect(()=>()=>window.clearTimeout(b.current),[]),xl.jsxDEV("div",{className:"stack",style:{gap:6},children:[xl.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?xl.jsxDEV(vl,{size:13},void 0,!1,void 0,this):xl.jsxDEV($s,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),p(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>p(!1),1500)}catch{}},children:[v?xl.jsxDEV(Vs,{size:13},void 0,!1,void 0,this):xl.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&xl.jsxDEV("pre",{className:"code-block",children:xl.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qs=Y(ut(),1),Xk=Y(rc(),1);var Ll=Y(ce(),1);function jk({open:r,title:i,onClose:u,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Qs.useRef(null),b=Qs.useRef(null),S=Qs.useRef(u);S.current=u,Qs.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,R=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R),C?.focus()}},[r]);let k=c!==void 0,h=c?.disabled??!1;if(Qs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return Xk.createPortal(Ll.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)u()},role:"presentation",children:Ll.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Ll.jsxDEV("div",{className:"modal-header",children:[Ll.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:u,"aria-label":"Close",children:Ll.jsxDEV(al,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ll.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Ll.jsxDEV("div",{className:"modal-footer",children:[Ll.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:u,children:f},void 0,!1,void 0,this),c&&Ll.jsxDEV("button",{ref:p,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var ym=Y(ce(),1);function un({value:r,onChange:i,placeholder:u="Filter…",width:c}){return ym.jsxDEV("label",{className:"search",children:[ym.jsxDEV(Tc,{size:14},void 0,!1,void 0,this),ym.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:u,onChange:(f)=>i(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mi=Y(ut(),1),bm=Y(ce(),1);function za({options:r,value:i,onChange:u,size:c="md","aria-label":f}){let v=mi.useRef(null),[p,b]=mi.useState(null);return mi.useLayoutEffect(()=>{let S=v.current,k=S?.querySelector('[data-active="true"]');if(!S||!k){b(null);return}let h=()=>b({left:k.offsetLeft,width:k.offsetWidth});h();let x=new ResizeObserver(h);return x.observe(S),()=>x.disconnect()},[i,r]),bm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&bm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>bm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===i,className:"segmented-option","data-active":S.value===i,title:S.title,onClick:()=>u(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var yi=Y(ut(),1);var hi=Y(ut(),1);function vm(){let r=hi.useRef(null),[i,u]=hi.useState(0);return hi.useLayoutEffect(()=>{let c=r.current;if(!c)return;u(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);u((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,i]}var Ac=Y(ce(),1);function gi({values:r,color:i="var(--chart-primary)",height:u=28,width:c,area:f=!0}){let[v,p]=vm(),b=c??p,S=Math.max(0,...r),k=r.length,h="";if(b>0&&k>0){let x=k>1?b/(k-1):0;for(let C=0;C<k;C++){let R=k>1?C*x:b/2,L=S>0?u-2-r[C]/S*(u-4):u-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Ac.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:u},children:b>0&&k>0&&Ac.jsxDEV("svg",{width:b,height:u,"aria-hidden":"true",children:[f&&Ac.jsxDEV("path",{className:"area",d:`${h}L${b},${u}L0,${u}Z`,fill:i},void 0,!1,void 0,this),Ac.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ol=Y(ce(),1);function fe({label:r,value:i,hint:u,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=cA(typeof i==="string"||typeof i==="number"?i:null);return ol.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ol.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ol.jsxDEV("div",{className:"stat-value","data-flash":S,children:i},void 0,!1,void 0,this),(u!==void 0||c)&&ol.jsxDEV("div",{className:"stat-foot",children:[c&&ol.jsxDEV(dA,{...c},void 0,!1,void 0,this),u!==void 0&&ol.jsxDEV("span",{className:"truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ol.jsxDEV("div",{className:"stat-spark",children:ol.jsxDEV(gi,{values:f,color:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aa({min:r,children:i}){return ol.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:i},void 0,!1,void 0,this)}function dA({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return ol.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let u=Math.abs(r)<0.0005?0:r,c=u===0?void 0:u>0===(i==="up")?"good":"bad",f=u>0?"+":u<0?"−":"±",v=Math.abs(u)*100;return ol.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function cA(r){let i=yi.useRef(r),[u,c]=yi.useState(!1);return yi.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),u}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:i}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(Sc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bi({error:r,onRetry:i}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV(Vr,{size:15},void 0,!1,void 0,this),fa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[fa.jsxDEV(wc,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ea({width:r="100%",height:i=14,style:u}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...u}},void 0,!1,void 0,this)}function Tt({height:r=220}){return fa.jsxDEV(Ea,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:r=6}){return fa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,u)=>fa.jsxDEV(Ea,{height:16,width:`${92-u*13%30}%`},u,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:i,isEmpty:u,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:i},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),u?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Ws=Y(ut(),1);var bb="en-US";function q(r){return r.toLocaleString(bb)}function Me(r){return r.toLocaleString(bb,{notation:"compact"})}function sa(r,i){if(r===0)return"$0";let u=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(bb,{minimumFractionDigits:u,maximumFractionDigits:u})}`}function Ot(r,i,u){return r===0&&i>0?"N/A":sa(r,u)}function vb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Yr(r,i){return Ot(r.usage.cost.total,vb(r)?1:0,i)}function Re(r,i=1){return`${(r*100).toFixed(i)}%`}function vt(r,i){if(r===null)return"-";let u=r/1000,c=i!==void 0?i:u<1?2:1;return`${u.toFixed(c)}s`}function Zs(r){if(r<60000)return vt(r);let i=Math.floor(r/60000);if(i<60)return`${i}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function dn(r){if(r===null)return"-";return r.toFixed(1)}function ua(r){return Sk(new Date(r),{addSuffix:!0})}function ll(r){return ln(new Date(r),"MMM d, HH:mm:ss")}function cn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function Sb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var St=Y(ce(),1);function zt({columns:r,rows:i,rowKey:u,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Ws.useState(v??null),[C,R]=Ws.useState(p??Number.POSITIVE_INFINITY),L=Ws.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return i;let F=z.sort,K=h.dir==="asc"?1:-1;return[...i].sort((N,oe)=>{let B=F(N),ee=F(oe);if(typeof B==="number"&&typeof ee==="number")return(B-ee)*K;return String(B).localeCompare(String(ee))*K})},[i,r,h]);if(i.length===0)return St.jsxDEV(St.Fragment,{children:S??St.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=L.length>C?L.slice(0,C):L,_=(z)=>{if(!z.sort)return;x((F)=>F?.key===z.key?{key:z.key,dir:F.dir==="asc"?"desc":"asc"}:{key:z.key,dir:z.align==="right"?"desc":"asc"})};return St.jsxDEV(St.Fragment,{children:[St.jsxDEV("div",{className:"table-wrap",children:St.jsxDEV("table",{className:"table","data-dense":b??!1,children:[St.jsxDEV("thead",{children:St.jsxDEV("tr",{children:r.map((z)=>{let F=h?.key===z.key?h.dir:void 0;return St.jsxDEV("th",{"data-align":z.align??"left","data-sortable":z.sort!==void 0,"data-sorted":F,style:z.width!==void 0?{width:z.width}:void 0,title:z.title,onClick:()=>_(z),"aria-sort":F==="asc"?"ascending":F==="desc"?"descending":void 0,children:[z.header,F&&St.jsxDEV("span",{className:"sort-arrow",children:F==="asc"?St.jsxDEV(mc,{size:11},void 0,!1,void 0,this):St.jsxDEV(dc,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),St.jsxDEV("tbody",{children:D.map((z)=>{let F=u(z),K=k?.(z)??null;return St.jsxDEV(Ws.Fragment,{children:[St.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===F,onClick:c?()=>c(z):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),c(z)}:void 0,tabIndex:c?0:void 0,children:r.map((N)=>St.jsxDEV("td",{"data-align":N.align??"left","data-wrap":N.wrap??!1,children:N.render(z)},N.key,!1,void 0,this))},void 0,!1,void 0,this),K!==null&&St.jsxDEV("tr",{children:St.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},F,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p!==void 0&&L.length>p&&St.jsxDEV("div",{className:"table-more",children:[St.jsxDEV("span",{className:"micro",children:[q(D.length)," of ",q(L.length)]},void 0,!0,void 0,this),L.length>C&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R((z)=>z+p*4),children:"Show more"},void 0,!1,void 0,this),C>p&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R(p),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ia({value:r,max:i,display:u,color:c}){let f=i>0?Math.min(100,r/i*100):0;return St.jsxDEV("div",{className:"meter-cell",children:[St.jsxDEV("span",{className:"num",children:u},void 0,!1,void 0,this),St.jsxDEV("div",{className:"meter",children:St.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:i,lead:u}){return St.jsxDEV("div",{className:"row",style:{gap:10},children:[u,St.jsxDEV("div",{className:"stack",style:{gap:0},children:[St.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&St.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Sm=Y(ut(),1);var Xt=Y(ce(),1);function Yk(){let{sync:r,indexingHours:i,connected:u,requestSync:c}=fi(),f=pA(r.phase==="idle"?15000:null),v,p;if(!u)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"warn"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Xt.jsxDEV("span",{className:"live-chip-count",children:[q(r.current),"/",q(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Ingesting session files";else if(r.phase==="error")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"bad"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p=`${r.error??"Sync failed"} — click to retry`;else if(i>fA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Xt.jsxDEV("span",{className:"live-chip-count",children:[q(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Building hourly rollups; older ranges fill in as it goes";else v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Xt.jsxDEV("span",{className:"live-chip-count",children:mA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Click to sync session files now";return Xt.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:p,children:v},void 0,!1,void 0,this)}var fA=24;function pA(r){let[i,u]=Sm.useState(Date.now);return Sm.useEffect(()=>{if(r===null)return;u(Date.now());let c=setInterval(()=>u(Date.now()),r);return()=>clearInterval(c)},[r]),i}function mA(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return"just now";let u=Math.round(i/60);if(u<60)return`${u}m ago`;let c=Math.round(u/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var xm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:xc,hotkey:"o"},{id:"models",label:"Models",icon:yc,hotkey:"m"},{id:"providers",label:"Providers",icon:Gr,hotkey:"p"},{id:"costs",label:"Costs",icon:gc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:ic,hotkey:"r"},{id:"errors",label:"Errors",icon:Hr,hotkey:"e"},{id:"traces",label:"Traces",icon:bl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Rc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Fr,hotkey:"f"},{id:"projects",label:"Projects",icon:bc,hotkey:"j"},{id:"gain",label:"Gain",icon:on,hotkey:"g"}]}],hA=xm.flatMap((r)=>r.items),Qk=hA.map((r)=>r.id);var Lm=Y(ut(),1),Zk="omp-stats-theme",Wk="(prefers-color-scheme: dark)";function gA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Zk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Kk(){if(typeof window>"u")return"dark";return window.matchMedia(Wk).matches?"dark":"light"}var Ks=gA(),Dc=Ks==="system"?Kk():Ks,xb=new Set;function Jk(){for(let r of xb)r()}function Lb(){if(Dc=Ks==="system"?Kk():Ks,typeof document<"u")document.documentElement.dataset.theme=Dc,document.documentElement.style.colorScheme=Dc}if(typeof window<"u")Lb(),window.matchMedia(Wk).addEventListener("change",()=>{if(Ks==="system")Lb(),Jk()});function yA(r){if(Ks=r,typeof localStorage<"u")localStorage.setItem(Zk,r);Lb(),Jk()}function Cb(r){return xb.add(r),()=>xb.delete(r)}function ew(){return Lm.useSyncExternalStore(Cb,()=>Dc,()=>"dark")}function tw(){let r=Lm.useSyncExternalStore(Cb,()=>Ks,()=>"system"),i=Lm.useSyncExternalStore(Cb,()=>Dc,()=>"dark");return{preference:r,resolved:i,setPreference:yA}}var kb=Y(ce(),1),bA={system:"light",light:"dark",dark:"system"},vA={system:Cc,light:Ic,dark:kc},aw={system:"System theme",light:"Light theme",dark:"Dark theme"};function ow(){let{preference:r,setPreference:i}=tw(),u=vA[r];return kb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(bA[r]),"aria-label":`${aw[r]} (click to switch)`,title:`${aw[r]} — click to switch`,children:kb.jsxDEV(u,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),SA=ci.map((r,i)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${i+1})`}));function lw({section:r,onSectionChange:i,range:u,onRangeChange:c,children:f}){let[v,p]=vi.useState(!1),b=xA(),{sync:S}=fi();LA(i,c);let k=(x)=>{i(x),p(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),Ke.jsxDEV("header",{className:"topbar","data-scrolled":b,children:[Ke.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>p(!0),"aria-label":"Open navigation",children:Ke.jsxDEV(Lc,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-brand",children:[Ke.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[Ke.jsxDEV("defs",{children:Ke.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ke.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-actions",children:[Ke.jsxDEV("span",{className:"topbar-hide-narrow",children:Ke.jsxDEV(Yk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:SA,value:u,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(ow,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&Ke.jsxDEV("div",{className:"topbar-progress",children:Ke.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&Ke.jsxDEV("div",{className:"drawer-scrim",onClick:()=>p(!1),role:"presentation"},void 0,!1,void 0,this),Ke.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":"Pages",children:[xm.map((x)=>Ke.jsxDEV("div",{className:"nav-group",children:[Ke.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((C)=>Ke.jsxDEV("button",{type:"button",className:"nav-row","data-active":C.id===r,"aria-current":C.id===r?"page":void 0,onClick:()=>k(C.id),children:[Ke.jsxDEV(C.icon,{size:15},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"nav-row-label",children:C.label},void 0,!1,void 0,this),Ke.jsxDEV("kbd",{children:["G ",C.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))]},x.heading,!0,void 0,this)),Ke.jsxDEV("div",{className:"sidebar-foot micro",children:[Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",Ke.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("main",{className:"shell-panel",children:Ke.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xA(){let[r,i]=vi.useState(!1);return vi.useEffect(()=>{let u=()=>i(window.scrollY>4);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),r}function LA(r,i){vi.useEffect(()=>{let u=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let v=f.target;if(v instanceof HTMLElement&&(v.isContentEditable||v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let p=f.key.toLowerCase();if(u&&Date.now()-u<1200){u=0;let S=xm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){u=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<ci.length)f.preventDefault(),i(ci[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,i])}var Gn=Y(ut(),1);function Ec(r){let[i,u]=r.replace(/^#\/?/,"").split("?"),c=Qk.includes(i)?i:"overview",f=new URLSearchParams(u??""),v=f.get("range"),p=ci.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function Cm({section:r,range:i,session:u}){let c=u?`&s=${encodeURIComponent(u)}`:"";return`#/${r}?range=${i}${c}`}function nw(){let[r,i]=Gn.useState(()=>Ec(window.location.hash));Gn.useEffect(()=>{let p=()=>i(Ec(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=Cm(Ec(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let u=Gn.useCallback((p)=>{i(p);let b=Cm(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Gn.useCallback((p)=>u({...r,section:p,session:p==="traces"?r.session:null}),[r,u]),f=Gn.useCallback((p)=>u({...r,range:p}),[r,u]),v=Gn.useCallback((p)=>u({...r,session:p}),[r,u]);return{...r,setSection:c,setRange:f,setSession:v}}var Tm=Y(ut(),1);var fn=Y(ce(),1);function Oc({items:r,max:i,onSelect:u}){let c=i??Math.max(0,...r.map((f)=>f.value));return fn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=fn.jsxDEV(fn.Fragment,{children:[fn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-value",children:f.display??q(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?fn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>u(f.key),children:p},f.key,!1,void 0,this):fn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Vn=Y(ut(),1);var ct=Y(ce(),1),Js=10,CA=24,kA=68,wA=4;function Cl({slots:r,tickLabel:i,tooltipTitle:u,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Me,formatRight:S,formatTooltip:k,yMax:h,yMaxRight:x,hidden:C,showTotal:R,references:L,onSelect:D,emptyLabel:_="No data in this range",tooltipExtra:z}){let[F,K]=vm(),[N,oe]=Vn.useState(null),B=Vn.useId().replace(/:/g,""),ee=Vn.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=Vn.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Pe=ee.filter((Et)=>Et.axis==="right"),Mt=(Et)=>v&&(Et.kind??f)!=="line",pa=new Map,re=Array.from({length:r},()=>0),ma=0;for(let Et of V)if(Mt(Et)){let Ee=re.slice();pa.set(Et.key,Ee);for(let rl=0;rl<r;rl++)re[rl]+=Et.values[rl]??0}else for(let Ee=0;Ee<r;Ee++)ma=Math.max(ma,Et.values[Ee]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Pe)for(let Ee=0;Ee<r;Ee++)Ia=Math.max(Ia,Et.values[Ee]??0);for(let Et of L??[])if(Et.axis==="right")Ia=Math.max(Ia,Et.value);else ma=Math.max(ma,Et.value);let Kt=rw(h??ma),Yt=Pe.length>0?rw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((Ee)=>!Ee));return{left:V,right:Pe,bases:pa,stackable:Mt,leftScale:Kt,rightScale:Yt,empty:gt}},[ee,r,v,f,h,x,L]),W=Z.leftScale.ticks.map((V)=>b(V)),X=Z.rightScale?.ticks.map((V)=>(S??b)(V))??[],ge=Math.max(28,sw(W)+12),Ne=Z.rightScale?Math.max(28,sw(X)+12):8,Ce=Math.max(0,K-ge-Ne),Be=p-Js-CA,te=r>0?Ce/r:0,ve=(V)=>Js+Be-V/Z.leftScale.max*Be,ke=(V)=>Js+Be-V/(Z.rightScale?.max??1)*Be,je=(V)=>ge+(V+0.5)*te,ae=ee.filter((V)=>(V.kind??f)==="bars"),P=ae.filter((V)=>!Z.stackable(V)||V.axis==="right"),ue=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),se=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Ce/kA)))),ne=(V)=>{let Pe=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Pe.left)/(Pe.width/r));oe(Mt>=0&&Mt<r?Mt:null)},pe=N===null?[]:ee.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[N]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||ee.length===1)).sort((V,Pe)=>ee.length>1?Pe.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Pe)=>V+Pe.v,0),Ye=R??(v&&Z.left.length>1);return ct.jsxDEV("div",{className:"chart",ref:F,"data-hovering":N!==null,style:{height:p},children:[K>0&&ct.jsxDEV("svg",{width:K,height:p,role:"img",children:[ct.jsxDEV("defs",{children:ee.filter((V)=>V.pattern==="hatch").map((V)=>ct.jsxDEV("pattern",{id:`${B}-${wb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ct.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ct.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-grid",children:Z.leftScale.ticks.map((V)=>ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:ve(V),y2:ve(V)},V,!1,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-axis",children:[Z.leftScale.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Pe]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Pe]},V,!1,void 0,this)),Array.from({length:r},(V,Pe)=>Pe%se===0?ct.jsxDEV("text",{x:je(Pe),y:p-6,textAnchor:"middle",children:i(Pe)},Pe,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:Js,width:te,height:Be},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=uw(r,je,(Kt)=>Pe(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Pe(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${wb(V.key)})`:V.color;return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{d:`${re}${ma}Z`,fill:Ia,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),ct.jsxDEV("path",{className:"chart-line",d:re,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),ae.map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=P.indexOf(V),re=pa>=0?ue/P.length:ue,ma=V.pattern==="hatch"?`url(#${B}-${wb(V.key)})`:V.color;return ct.jsxDEV("g",{children:V.values.map((Ia,Kt)=>{if(!Ia)return null;let Yt=pa>=0?0:Mt?.[Kt]??0,gt=Pe(Yt),Et=Pe(Yt+Ia),Ee=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:Ee,y:Math.min(gt,Et),width:Math.max(1,re-(pa>=0&&P.length>1?1:0)),height:Math.max(Ia>0?1:0,Math.abs(gt-Et)),fill:ma},Kt,!1,void 0,this)})},V.key,!1,void 0,this)}),ee.filter((V)=>(V.kind??f)==="line").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Pe(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:uw(r,je,Mt),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((pa,re)=>{let ma=Mt(re);if(ma===null||re>0&&Mt(re-1)!==null||re<r-1&&Mt(re+1)!==null)return null;return ct.jsxDEV("circle",{cx:je(re),cy:ma,r:2.5,fill:V.color},re,!1,void 0,this)})]},V.key,!0,void 0,this)}),L?.map((V)=>{let Pe=V.axis==="right"?ke(V.value):ve(V.value);return ct.jsxDEV("g",{className:"chart-axis",children:[ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:Pe,y2:Pe,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Pe-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),ct.jsxDEV("line",{className:"chart-baseline",x1:ge,x2:ge+Ce,y1:ve(0),y2:ve(0)},void 0,!1,void 0,this),ct.jsxDEV("rect",{x:ge,y:Js,width:Ce,height:Be,fill:"transparent",onPointerMove:ne,onPointerLeave:()=>oe(null),onClick:D&&N!==null?()=>D(N):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.empty&&ct.jsxDEV("div",{className:"chart-empty",children:_},void 0,!1,void 0,this),N!==null&&!Z.empty&&ct.jsxDEV("div",{className:"chart-tooltip",style:je(N)>K/2?{right:K-je(N)+Math.min(te/2,24)+8,top:Js}:{left:je(N)+Math.min(te/2,24)+8,top:Js},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(u??i)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Pe})=>ct.jsxDEV("div",{className:"chart-tooltip-row",children:[ct.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(S??b)(Pe):(k??b)(Pe)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),Ye&&pe.length>1&&ct.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ct.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:(k??b)(Lt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ct.jsxDEV(Vn.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rw(r){if(!(r>0))return{max:1,ticks:[0]};let i=r/wA,u=10**Math.floor(Math.log10(i)),c=[1,2,2.5,5,10].map((p)=>p*u).find((p)=>p>=i)??10*u,f=Math.ceil(r/c)*c,v=[];for(let p=0;p<=f+c/2;p+=c)v.push(Number(p.toPrecision(12)));return{max:f,ticks:v}}function sw(r){return r.reduce((i,u)=>Math.max(i,u.length*6.3),0)}function uw(r,i,u){let c="",f=!1;for(let v=0;v<r;v++){let p=u(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${i(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function wb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var km=Y(ut(),1),pn=Y(ce(),1);function Qa({items:r,hidden:i,onToggle:u}){return pn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&pn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?pn.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>u(c.key),title:c.label,children:f},c.key,!1,void 0,this):pn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function nl(){let[r,i]=km.useState(()=>new Set),u=km.useCallback((c)=>{i((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,u]}var Tb=Y(ce(),1);function Qr({segments:r,height:i=8}){let u=r.reduce((c,f)=>c+Math.max(0,f.value),0);return Tb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:u>0&&r.filter((c)=>c.value>0).map((c)=>Tb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/u,background:c.color},title:`${c.label}: ${(c.value/u*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var iw=Y(ce(),1);function $n({buckets:r,bucketMs:i,onSelectBucket:u,...c}){return iw.jsxDEV(Cl,{...c,slots:r.length,tickLabel:(f)=>pm(r[f],i),tooltipTitle:(f)=>fm(r[f],i),onSelect:u?(f)=>u(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],eo="#6c6c74";function ya(r,i){return`${r}::${i}`}function wm(r){return qc(r.map((i)=>({key:ya(i.model,i.provider),weight:i.totalRequests})))}function qc(r){let i=[...r].sort((u,c)=>c.weight-u.weight||u.key.localeCompare(c.key));return new Map(i.map((u,c)=>[u.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var TA=128,IA=1500,eu=new Map,Ib=new Map;function RA(r,i){if(eu.delete(r),eu.set(r,i),eu.size>TA){let u=eu.keys().next().value;if(u!==void 0)eu.delete(u)}}function MA(r,i,u){let c=Ib.get(r);if(c)return c;let f=i().then((v)=>(RA(r,{data:v,updatedAt:Date.now(),version:u}),v)).finally(()=>{Ib.delete(r)});return Ib.set(r,f),f}function qt(r,i,u){let c=JSON.stringify(r),f=u?.enabled??!0,v=u?.pollMs,{version:p}=fi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(i);C.current=i;let R=Oa.useRef(c);R.current=c;let L=Oa.useRef(p);L.current=p;let D=Oa.useRef(null),_=Oa.useRef(0),z=Oa.useCallback((B)=>{_.current=Date.now(),x(!0),MA(B,()=>C.current(),L.current).then(()=>{if(R.current!==B)return;Oa.startTransition(()=>{k(null),b()})}).catch((ee)=>{if(R.current!==B)return;k({key:B,error:ee instanceof Error?ee:Error(String(ee))})}).finally(()=>{if(R.current===B)x(!1)})},[]);Oa.useEffect(()=>{if(!f)return;let B=eu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+IA-Date.now():0;if(ee<=0){z(c);return}let Z=setTimeout(()=>z(c),ee);return()=>clearTimeout(Z)},[c,f,p,z]),Oa.useEffect(()=>{if(!f||!v)return;let B=setInterval(()=>{if(!document.hidden)z(R.current)},v);return()=>clearInterval(B)},[f,v,z]);let F=Oa.useCallback(()=>z(R.current),[z]),K=eu.get(c);if(K)D.current={key:c,data:K.data,updatedAt:K.updatedAt};let N=D.current,oe=S?.key===c?S.error:null;return{data:N?.data??null,error:oe,loading:!N&&!oe,stale:!!N&&N.key!==c,refreshing:h,updatedAt:N?.updatedAt??null,refetch:F}}function ba(r,i,u){let c=dw(i),f=Array.from({length:i.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=u(v)}return f}function mn(r,i){let u=dw(i.buckets),c=new Map;for(let k of r){let h=u.get(k.timestamp);if(h===void 0)continue;let x=i.key(k),C=c.get(x);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(x,C);C[h]+=i.value(k)}let f=[...c.entries()].map(([k,h])=>({key:k,values:h,total:h.reduce((x,C)=>x+C,0)})).filter((k)=>k.total!==0).sort((k,h)=>h.total-k.total||k.key.localeCompare(h.key)),v=i.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:i.label?i.label(k.key):k.key,color:i.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:i.buckets.length},()=>0);for(let h of b)for(let x=0;x<k.length;x++)k[x]+=h.values[x];S.push({key:"__other__",label:`Other (${b.length})`,color:eo,values:k})}return S}function dw(r){let i=new Map;for(let u=0;u<r.length;u++)i.set(r[u],u);return i}var AA=["main","subagent","advisor"];function Zr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function pw(r){let i=new Map;for(let p of r)i.set(p.agentType,p);let u=AA.map((p)=>i.get(p)).filter((p)=>p!==void 0),c=u.reduce((p,b)=>p+Zr(b),0),f=u.reduce((p,b)=>p+b.totalCost,0),v=u.map((p)=>{let b=Zr(p);return{agentType:p.agentType,tokens:b,requests:p.totalRequests,cost:p.totalCost,share:c>0?b/c:0}});return{totalTokens:c,totalCost:f,segments:v}}function mw(r){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},u=new Map;for(let f of r){let v=ya(f.model,f.provider),p=u.get(v);if(!p)p={key:v,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},u.set(v,p);cw(p,f),cw(i,f),p.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...u.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function cw(r,i){r.costInput+=i.costInput,r.costOutput+=i.costOutput,r.costCacheRead+=i.costCacheRead,r.costCacheWrite+=i.costCacheWrite,r.requests+=i.requests,r.unpricedRequests+=i.unpricedRequests}function hw(r){let i=new Map;for(let u of r){let c=ya(u.model,u.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:u.timestamp,avgTtftSeconds:u.avgTtft!==null?u.avgTtft/1000:null,avgTokensPerSecond:u.avgTokensPerSecond,requests:u.requests})}for(let u of i.values())u.sort((c,f)=>c.timestamp-f.timestamp);return i}var DA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function gw(r){let i=0,u=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(i+=C.totalRequests,u+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,v+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,p+=C.totalInputTokens,b+=C.totalCacheReadTokens,C.totalRequests>S)S=C.totalRequests;if(C.totalCost>k)k=C.totalCost}let h=0;return{rows:r.map((C)=>{let R=DA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:i,failedRequests:u,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function yw(r){let i=0,u=0,c=0;for(let f of r)i+=f.calls,u+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:u>0?f.totalTokensShare/u:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Xn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Rb(r,i){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(i*r.length)-1))]}function bw(r){let i=0,u=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=Xn(h);if(x==="failed")i++;else if(x==="aborted")u++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,vb(h))v++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)k.push(h.ttft);if(p===null||h.timestamp<p)p=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,x)=>h-x),k.sort((h,x)=>h-x),{requests:r.length,failed:i,aborted:u,tokens:c,cost:f,unpriced:v,medianDuration:Rb(S,0.5),p95Duration:Rb(S,0.95),medianTtft:Rb(k,0.5),oldest:p,newest:b}}var fw=180,EA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,OA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,qA=/\b[0-9a-f]{12,}\b/gi,BA=/(?<![\w.-])\d+(?:\.\d+)?/g,NA=/^[1-5]\d\d$/;function Mb(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(EA,"<id>").replace(OA,"<id>").replace(qA,"<hex>").replace(BA,(u)=>NA.test(u)?u:"N");return i.length>fw?`${i.slice(0,fw-1)}…`:i}function vw(r){let i=new Map;for(let u of r){let c=Mb(u.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:u.timestamp,lastSeen:u.timestamp,latest:u,models:[],byModel:new Map},i.set(c,f);if(f.count++,u.timestamp<f.firstSeen)f.firstSeen=u.timestamp;if(u.timestamp>f.lastSeen)f.lastSeen=u.timestamp,f.latest=u;let v=ya(u.model,u.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:u.model,provider:u.provider,count:1})}return[...i.values()].map(({byModel:u,...c})=>({...c,models:[...u.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((u,c)=>c.count-u.count||c.lastSeen-u.lastSeen)}var Ae=Y(ce(),1),UA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],PA=6,zA=86400000,Bc=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],_A=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),HA=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function Sw({active:r,range:i}){let u=qt(["costs",i],()=>Tk(i),{enabled:r}),c=na(i),[f,v]=Tm.useState("model"),[p,b]=nl(),S=Tm.useMemo(()=>u.data?FA(u.data,i):null,[u.data,i]),k=(x)=>x.costSeries.length===0,h=Ae.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Ae.jsxDEV("div",{className:"page",children:[Ae.jsxDEV(ta,{title:"Costs",description:`What ${c.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(GA,{view:S,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ae.jsxDEV(za,{size:"sm",options:UA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>{if(!S)return null;let x=f==="model"?S.modelSeries:S.componentSeries;return Ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ae.jsxDEV(Cl,{slots:S.buckets.length,tickLabel:(C)=>_A.format(S.buckets[C]),tooltipTitle:(C)=>HA.format(S.buckets[C]),series:x,hidden:p,height:280,format:(C)=>sa(C,Number.isInteger(C)?0:2),formatTooltip:(C)=>sa(C),emptyLabel:"No priced usage in this range",tooltipExtra:(C)=>S.unpricedPerDay[C]>0?Ae.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ae.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"chart-tooltip-value",children:q(S.unpricedPerDay[C])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ae.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:sa(XA(C.values))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(VA,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:u.stale,flush:!0,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:$A(S),initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FA(r,i){let u=r.costSeries,c=mw(u),f=wm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=Po(i,u.map((k)=>k.timestamp),zA),b=mn(u,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:PA,colors:f}).map((k)=>({...k,values:k.values.map((h)=>h||null)})),S=new Set;for(let k of b){if(k.key==="__other__")continue;if(S.has(k.color))k.color=Ha.find((h)=>!S.has(h))??k.color;S.add(k.color)}return{summary:c,swatches:new Map(b.filter((k)=>k.key!=="__other__").map((k)=>[k.key,k.color])),buckets:p,dailyTotals:ba(u,p,(k)=>k.cost),unpricedPerDay:ba(u,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Bc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(u,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function GA({view:r,stale:i}){let{summary:u}=r,c=u.requests-u.unpricedRequests,f=u.topModel;return Ae.jsxDEV("div",{"data-stale":i,children:Ae.jsxDEV(aa,{min:180,children:[Ae.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(u.totalCost,u.unpricedRequests),hint:`${q(u.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(u.avgDailyCost,u.unpricedRequests),hint:`over ${q(u.activeDays)} active day${u.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${sa(f.cost)} · ${Re(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?xw(u.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(u.unpricedRequests),hint:u.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function VA({summary:r}){return Ae.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ae.jsxDEV(Qr,{height:10,segments:Bc.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"costs-components",children:[Bc.map((i)=>Ae.jsxDEV("div",{className:"costs-component-row",children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV(Sl,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"num",children:sa(r[i.key])},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Re(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),Ae.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ae.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Ae.jsxDEV("p",{className:"micro dim",children:[q(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function $A(r){let i=Bc.map((u)=>({key:u.key,header:u.label,align:"right",sort:(c)=>c[u.key],render:(c)=>Ae.jsxDEV("span",{className:"num",children:sa(c[u.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(u)=>u.model,render:(u)=>Ae.jsxDEV(_a,{lead:Ae.jsxDEV(Sl,{color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this),primary:Ae.jsxDEV("span",{className:"mono",children:u.model},void 0,!1,void 0,this),secondary:u.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.requests,render:(u)=>Ae.jsxDEV("span",{className:"num",children:q(u.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(u)=>u.cost,render:(u)=>Ae.jsxDEV(ia,{value:u.cost,max:r.maxModelCost,display:Ot(u.cost,u.unpricedRequests),color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(u)=>u.share,render:(u)=>Ae.jsxDEV("span",{className:"num muted",children:u.cost>0?Re(u.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(u)=>u.cost>0?Ae.jsxDEV(Qr,{segments:Bc.map((c)=>({key:c.key,label:c.label,value:u[c.key],color:c.color}))},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(u)=>u.requests>u.unpricedRequests?u.cost/(u.requests-u.unpricedRequests):-1,render:(u)=>Ae.jsxDEV("span",{className:"num",children:u.requests>u.unpricedRequests?xw(u.cost/(u.requests-u.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(u)=>u.unpricedRequests,render:(u)=>u.unpricedRequests>0?Ae.jsxDEV("span",{className:"num tone-warn",children:q(u.unpricedRequests)},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function xw(r){return r>0&&r<0.0001?"<$0.0001":sa(r)}function XA(r){let i=0;for(let u of r)i+=u??0;return i}var jn=Y(ut(),1);var Se=Y(ce(),1),Ab=[50,200,1000];function Lw({active:r,range:i,onRequestClick:u}){let[c,f]=jn.useState(0),v=Ab[c],p=qt(["errors",i,v],()=>Ik(i,v),{enabled:r}),[b,S]=jn.useState(null),[k,h]=jn.useState(null),[x,C]=jn.useState(""),R=na(i),L=jn.useMemo(()=>{let W=(p.data??[]).map((Be)=>({row:Be,signature:Mb(Be.errorMessage)})),X=vw(p.data??[]),ge=new Map;for(let{row:Be}of W){let te=ya(Be.model,Be.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:Be.model,provider:Be.provider,count:1})}let Ne=[...ge.entries()].map(([Be,te])=>({key:Be,...te})).sort((Be,te)=>te.count-Be.count||Be.model.localeCompare(te.model)),Ce=W.reduce((Be,{row:te})=>!Be||te.timestamp>Be.timestamp?te:Be,null);return{rows:W,groups:X,models:Ne,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=jn.useMemo(()=>{let W=x.trim().toLowerCase();return L.rows.filter((X)=>(D===null||X.signature===D)&&(_===null||ya(X.row.model,X.row.provider)===_)&&(W===""||X.row.model.toLowerCase().includes(W)||X.row.provider.toLowerCase().includes(W)||X.row.folder.toLowerCase().includes(W)||(X.row.errorMessage??"").toLowerCase().includes(W))).map((X)=>X.row)},[L.rows,D,_,x]),F=p.data?.length??0,K=!p.stale&&F<v,N=c+1<Ab.length?Ab[c+1]:null,oe=p.data!==null&&!K?Se.jsxDEV(Se.Fragment,{children:[Se.jsxDEV("span",{children:["Showing the latest ",q(F)," failures in ",R.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),N!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(N)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,B=L.groups[0]?.count??0,ee=jn.useMemo(()=>jA(B),[B]),Z=L.models.find((W)=>W.key===_);return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ta,{title:"Errors",description:`Failed model requests in ${R.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Se.jsxDEV("div",{"data-stale":p.stale,children:Se.jsxDEV(aa,{min:170,children:[Se.jsxDEV(fe,{label:"Failures",value:q(F),hint:K?`in ${R.windowLabel}`:`latest ${q(F)} loaded`},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:q(L.groups.length),hint:L.groups[0]?`top: ${q(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Affected models",value:q(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Last failure",value:L.newest?ua(L.newest.timestamp):"–",hint:L.newest?ll(L.newest.timestamp):`none in ${R.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"grid grid-main-side",children:[Se.jsxDEV(Ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:L.groups,rowKey:(W)=>W.signature,columns:ee,onRowClick:(W)=>S(D===W.signature?null:W.signature),selectedKey:D,expanded:(W)=>W.signature===D?Se.jsxDEV(YA,{group:W,onRequestClick:u},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(Ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:180},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Se.jsxDEV(Oc,{items:L.models.slice(0,12).map((W)=>({key:W.key,label:Se.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Se.jsxDEV("span",{className:"mono truncate",children:W.model},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"dim truncate",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:W.count,color:W.key===_?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(W)=>h(_===W?null:W)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Ve,{index:3,title:"Failures",description:p.data===null?"Loading failures…":`${q(z.length)} of ${q(F)} failures, newest first`,actions:Se.jsxDEV(Se.Fragment,{children:[D!==null&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:D,children:[Se.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[Se.jsxDEV("span",{className:"mono truncate",children:Z.model},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(un,{value:x,onChange:C,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:oe,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:z,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&u(W.id),columns:QA,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Se.jsxDEV(mt,{title:"No failures match",hint:"Clear the search or the selected filters."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(i)=>i.signature,render:(i)=>Se.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(i)=>i.models.length,render:(i)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>Se.jsxDEV("span",{className:"muted",title:ll(i.lastSeen),children:ua(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>Se.jsxDEV(ia,{value:i.count,max:r,display:q(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function YA({group:r,onRequestClick:i}){let u=r.latest.id;return Se.jsxDEV("div",{className:"errors-detail",children:[Se.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"errors-detail-meta",children:[Se.jsxDEV("span",{className:"muted",children:[q(r.count)," failures · first ",ll(r.firstSeen)," · last"," ",ll(r.lastSeen)]},void 0,!0,void 0,this),u!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(u),children:["Open latest ",Se.jsxDEV(pc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Se.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Se.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Se.jsxDEV("span",{className:"num",children:Me(c.count)},void 0,!1,void 0,this)]},ya(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var QA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>Se.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Se.jsxDEV("span",{className:"mono muted",title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Se.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Se.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),ZA=1000,Im=50,Eb=0.5,Nc="*";function kw({active:r,range:i}){let[u,c]=It.useState(!1),f=qt(["frustration",i],()=>Ak(i),{enabled:r,pollMs:u?ZA:void 0}),v=na(i),p=f.data?.job.state;It.useEffect(()=>{if(p!==void 0)c(p==="running")},[p]);let{refetch:b}=f,S=It.useCallback(()=>{c(!0),b()},[b]);return j.jsxDEV("div",{className:"page",children:[j.jsxDEV(ta,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${v.windowLabel}.`},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:(k)=>j.jsxDEV("div",{"data-stale":f.stale,children:j.jsxDEV(WA,{overall:k.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:120},void 0,!1,void 0,this),children:(k)=>j.jsxDEV(KA,{active:r,range:i,judgeAvailable:k.judgeAvailable,job:k.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Ve,{index:2,title:"Frustration by model version",children:[j.jsxDEV(Tt,{height:340},void 0,!1,void 0,this),j.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(k)=>j.jsxDEV(u2,{models:k.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kl(r,i){return i>0?Re(r/i):"–"}function Db(r){return r instanceof Error?r.message:String(r)}function ww(r){let i=Math.max(0,Math.floor(r/1000)),u=Math.floor(i/60),c=i%60;return u>0?`${u}m ${String(c).padStart(2,"0")}s`:`${c}s`}function WA({overall:r}){let i=r.messages-r.judged;return j.jsxDEV(aa,{min:170,children:[j.jsxDEV(fe,{label:"User messages",title:"User messages with prose in range",value:q(r.messages)},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:kl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(i)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:kl(r.annoyed,r.messages),hint:`${q(r.annoyed)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"At assistant",title:"Messages annoyed at the assistant",value:kl(r.atAssistant,r.messages),hint:`${q(r.atAssistant)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:kl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Cw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function KA({active:r,range:i,judgeAvailable:u,job:c,onRunStarted:f,onRunChanged:v}){let[p,b]=It.useState(!1),[S,k]=It.useState({status:"loading"}),[h,x]=It.useState(!1),[C,R]=It.useState(null),[L,D]=It.useState(!1),[_,z]=It.useState(null),F=It.useRef(null),K=c.state==="running",N=It.useCallback(()=>{F.current?.abort(),F.current=null,b(!1)},[]);It.useEffect(()=>{if(!r)N()},[r,N]),It.useEffect(()=>()=>F.current?.abort(),[]);let oe=()=>{F.current?.abort();let X=new AbortController;F.current=X;let ge=i;k({status:"loading"}),R(null),z(null),b(!0),Dk(ge,X.signal).then((Ne)=>{if(!X.signal.aborted)k({status:"ready",estimate:Ne,range:ge})},(Ne)=>{if(!X.signal.aborted)k({status:"error",message:Db(Ne)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Ek(S.range),N(),f()}catch(X){R(Db(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await Ok(),v()}catch(X){z(Db(X))}finally{D(!1)}},Z=S.status==="ready"?S.estimate:null,W=S.status==="loading"?{label:"Proceed",onClick:B,disabled:!0}:Z?.available?{label:h?"Starting…":"Proceed",onClick:B,disabled:h||Z.messages===0}:void 0;return j.jsxDEV(Ve,{index:1,title:j.jsxDEV(j.Fragment,{children:["Judge classification ",j.jsxDEV(JA,{job:c,judgeAvailable:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:j.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:oe,disabled:!u||K,title:!u?Cw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(on,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[j.jsxDEV("div",{className:"stack frustration-judge",children:[K?j.jsxDEV(t2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(a2,{job:c},void 0,!1,void 0,this),!u&&j.jsxDEV("p",{className:"micro dim",children:Cw},void 0,!1,void 0,this),_&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(jk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(e2,{estimate:S},void 0,!1,void 0,this),C&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function JA({job:r,judgeAvailable:i}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return j.jsxDEV(wt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return j.jsxDEV(wt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return j.jsxDEV(wt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return j.jsxDEV(wt,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function e2({estimate:r}){if(r.status==="loading")return j.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return j.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return j.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return j.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"frustration-quote",children:[j.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",sa(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(_o,{items:[{key:"messages",label:"Unjudged unique messages",value:q(i.messages)},{key:"chars",label:"Prose characters",value:q(i.chars)},{key:"tokens",label:"Estimated input tokens",value:q(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),j.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function t2({job:r,cancelling:i,onCancel:u}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return j.jsxDEV("div",{className:"stack frustration-progress",children:[j.jsxDEV("div",{className:"row frustration-progress-head",children:[j.jsxDEV("span",{className:"num",children:[q(r.done),"/",q(r.total)," judged"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"num dim",children:Re(f)},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:u,disabled:i,children:i?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:j.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[j.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[q(r.failed)," failed"]},void 0,!0,void 0,this),j.jsxDEV("span",{children:["cost so far ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&j.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&j.jsxDEV("span",{children:["elapsed ",ww(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&j.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&j.jsxDEV("span",{className:"num",children:[q(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function a2({job:r}){let i=`${q(r.done)}/${q(r.total)} messages`,u=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${ww(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return j.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return j.jsxDEV("p",{className:"muted",children:["Last run judged ",i,u,c,f," for ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return j.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,u,"; spent ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return j.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,u,": ",j.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Pc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Si(r){return r.messages>0&&r.judged/r.messages<Eb}function o2(r){let i=2166136261;for(let u=0;u<r.length;u++)i^=r.charCodeAt(u),i=Math.imul(i,16777619);return i>>>0}function l2(r){let i=[...new Set(r.map(Pc))].sort(),u=new Set,c=new Map;for(let f of i){let v=o2(f)%Ha.length;for(let p=0;p<Ha.length&&u.has(v);p++)v=(v+1)%Ha.length;u.add(v),c.set(f,Ha[v])}return c}function n2(r,i){if(i==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var r2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function s2(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Uc(r,i){return i>0?r/i*100:0}function u2({models:r,stale:i}){let[u,c]=It.useState(null),[f,v]=nl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>l2(r),[r]),x=It.useMemo(()=>{let B=new Map;for(let ee of r)B.set(ee.modelClass,(B.get(ee.modelClass)??0)+ee.messages);return B},[r]),C=It.useMemo(()=>{let B=null,ee=-1;for(let[Z,W]of x)if(W>ee)B=Z,ee=W;return B??Nc},[x]),R=u!==null&&(u===Nc||x.has(u))?u:C,L=It.useMemo(()=>[{value:Nc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Nc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=Pc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Nc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(Pc(B))),[D,f]),F=z.filter((B)=>B.messages<Im).length,K=z.filter(Si).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Im)&&!(S&&Si(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:i,children:j.jsxDEV(mt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let oe=N.some(Si);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV(Ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:j.jsxDEV("div",{className:"stack frustration-chart-body",children:[j.jsxDEV("div",{className:"frustration-classes",children:j.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:R,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row frustration-filters",children:[j.jsxDEV(Qa,{items:_.map((B)=>({key:B.key,label:B.label,color:h.get(B.key)??Ha[0],value:q(B.messages)})),hidden:f,onToggle:v},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("label",{className:"check",title:`Models with fewer than ${Im} messages have noisy rates`,children:[j.jsxDEV("input",{type:"checkbox",checked:p,onChange:(B)=>b(B.target.checked)},void 0,!1,void 0,this),"Include < ",Im," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Eb*100}% judged messages (rates from regex signals)`,children:[j.jsxDEV("input",{type:"checkbox",checked:S,onChange:(B)=>k(B.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",K>0?` (${K})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(i2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(d2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(c2,{rows:N,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function i2({hasRegexRows:r}){return j.jsxDEV("div",{className:"legend frustration-key",children:[j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Eb*100}% of these messages are judged; their rates come from regex signals`,children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function d2({rows:r,familyColors:i}){let u=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=Pc(v),S=Si(v),k=`${b}|${S?"regex":"judged"}`,h=c.get(k);if(h)h.slots.push(p);else c.set(k,{family:b,regex:S,slots:[p]})});let f=[];for(let v of r2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Uc(s2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:n2(i.get(b.family)??Ha[0],v.key),values:S,pattern:b.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((v)=>Uc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return j.jsxDEV("div",{className:"frustration-chart-empty",children:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return j.jsxDEV(Cl,{slots:r.length,tickLabel:(c)=>r[c].label,series:u,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return j.jsxDEV("div",{className:"frustration-tooltip-extra",children:[j.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[j.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"chart-tooltip-value",children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"micro dim",children:[q(f.messages)," messages · judged ",q(f.judged)," (",kl(f.judged,f.messages),")",Si(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function c2({rows:r,familyColors:i,stale:u}){let c=It.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>j.jsxDEV("span",{className:"row",title:f.key,children:[j.jsxDEV("span",{className:"swatch",style:{background:i.get(Pc(f))??Ha[0]}},void 0,!1,void 0,this),j.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>j.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>j.jsxDEV("span",{className:"num",children:q(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>Si(f)?j.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[j.jsxDEV(wt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num dim",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Uc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Uc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:kl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Uc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:kl(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:u,children:j.jsxDEV(zt,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zc=Y(ut(),1);var xt=Y(ce(),1),f2=86400000,p2={snapcompact:"Snapcompact"},m2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Tw({active:r,range:i}){let[u,c]=zc.useState(null),f=qt(["gain",i,u],()=>Bk(i,u),{enabled:r}),v=na(i),p=f.data,b=zc.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=Po(i,R.map((F)=>F.timestamp),f2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,i]),S=zc.useMemo(()=>{if(!p)return[];let R=p.overall.savedTokens;return Object.keys(p.bySource).map((L)=>({...p.bySource[L],source:L,share:R>0?p.bySource[L].savedTokens/R:0}))},[p]),k=p?.projects??[],h=u!==null&&!k.includes(u)?[u,...k]:k,x=u?` for ${u}`:"",C=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return xt.jsxDEV("div",{className:"page",children:[xt.jsxDEV(ta,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${v.windowLabel}.`,actions:h.length>0&&xt.jsxDEV("select",{className:"input","aria-label":"Project",value:u??"",onChange:(R)=>c(R.target.value||null),style:{maxWidth:320},children:[xt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((R)=>xt.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_e,{query:f,skeleton:xt.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),isEmpty:(R)=>R.overall.hits===0&&R.timeSeries.length===0,empty:xt.jsxDEV(Ve,{children:xt.jsxDEV(mt,{title:`No savings recorded${x} in ${v.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:R})=>xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("div",{"data-stale":f.stale,children:xt.jsxDEV(aa,{min:180,children:[xt.jsxDEV(fe,{label:"Saved tokens",value:Me(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:Sb(R.savedBytes)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:R.reductionPercent!==null?Re(R.reductionPercent):"–",hint:R.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Hits",value:q(R.hits)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved per hit",value:R.hits>0?Me(R.savedTokens/R.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:xt.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:xt.jsxDEV(Cl,{slots:b.buckets.length,tickLabel:(L)=>m2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Me},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:xt.jsxDEV(zt,{rows:S,rowKey:(L)=>L.source,columns:h2},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var h2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:p2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>xt.jsxDEV("span",{title:q(r.savedTokens),children:xt.jsxDEV(ia,{value:r.share,max:1,display:Me(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>xt.jsxDEV("span",{className:"num muted",children:Re(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>xt.jsxDEV("span",{className:"num",children:Sb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>xt.jsxDEV("span",{className:"num",children:q(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>xt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Re(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var _c=Y(ut(),1);var Le=Y(ce(),1),g2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],y2=6;function Rw({active:r,range:i}){let u=qt(["models",i],()=>wk(i),{enabled:r}),c=na(i),[f,v]=_c.useState("share"),[p,b]=nl(),[S,k]=_c.useState(null),h=_c.useMemo(()=>u.data?b2(u.data,i):null,[u.data,i]),x=L2(c.bucketMs),C=(L)=>L.byModel.length===0,R=Le.jsxDEV(mt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ta,{title:"Models",description:`Which models did the work in ${c.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{"data-stale":u.stale,children:Le.jsxDEV(aa,{min:200,children:[Le.jsxDEV(fe,{label:"Models used",value:q(h.models.length),hint:`across ${q(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${Re(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Le.jsxDEV(za,{size:"sm",options:g2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:u.stale,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV($n,{buckets:h.buckets,bucketMs:c.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:p,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(L)=>Re(L,0):Me,formatTooltip:f==="share"?(L)=>Re(L):q,showTotal:f==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Qa,{items:h.countSeries.map((L)=>({key:L.key,label:L.label,color:L.color,value:Re(Iw(L.values)/Math.max(1,Iw(h.requestTotals)))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:u.stale,flush:!0,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV(zt,{rows:h.models,rowKey:(L)=>ya(L.model,L.provider),columns:S2(h,S,x),initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(L)=>{let D=ya(L.model,L.provider);k((_)=>_===D?null:D)},selectedKey:S,expanded:(L)=>{let D=ya(L.model,L.provider);return D===S?Le.jsxDEV(x2,{model:L,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:c.bucketMs,bucketWord:x},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function b2(r,i){let u=r.byModel,c=wm(u),f=v2(u),v=Po(i,r.modelSeries.map((_)=>_.timestamp)),p=ba(r.modelSeries,v,(_)=>_.requests),b={buckets:v,key:(_)=>ya(_.model,_.provider),label:(_)=>f.get(_)??_,value:(_)=>_.requests,colors:c},S=mn(r.modelSeries,{...b,limit:y2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(mn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of u){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:u,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(u.map((_)=>_.provider)).size,totalRequests:C,failedRequests:R,totalCost:L,unpricedRequests:D,maxRequests:x?.totalRequests??0,buckets:v,requestTotals:p,countSeries:S,shareSeries:k,trends:h,performance:hw(r.modelPerformanceSeries)}}function v2(r){let i=new Map;for(let u of r)i.set(u.model,(i.get(u.model)??0)+1);return new Map(r.map((u)=>[ya(u.model,u.provider),(i.get(u.model)??0)>1?`${u.model} · ${u.provider}`:u.model]))}function S2(r,i,u){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===i,children:Le.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(c)=>c.model,render:(c)=>Le.jsxDEV(_a,{lead:Le.jsxDEV(Sl,{color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(c)=>c.totalRequests,render:(c)=>Le.jsxDEV(ia,{value:c.totalRequests,max:r.maxRequests,display:q(c.totalRequests),color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(c)=>c.totalCost,render:(c)=>Le.jsxDEV("span",{className:"num",children:Ot(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(c)=>Zr(c),render:(c)=>{let f=Zr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Me(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(c)=>c.cacheRate,render:(c)=>Le.jsxDEV("span",{className:"num",children:Re(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:`${q(c.failedRequests)} failed`,children:Le.jsxDEV(wt,{tone:sn(c.errorRate),mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:dn(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:vt(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${u}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(gi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??eo,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function x2({model:r,color:i,points:u,bucketMs:c,bucketWord:f}){let[v,p]=nl(),b=[{key:"tps",label:"Tokens/s",color:i,kind:u.length>1?"line":"bars",values:u.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:eo,kind:u.length>1?"line":"bars",axis:"right",dashed:!0,values:u.map((S)=>S.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${sn(r.errorRate)}`,children:[Re(r.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",q(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:Re(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Re(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:q(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"dur",label:"Avg duration",value:vt(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:vt(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"in",label:"Uncached input",value:Me(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Me(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Me(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Me(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:["First seen ",ua(r.firstTimestamp)," · last seen"," ",ua(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),Le.jsxDEV(Qa,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV($n,{buckets:u.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Me,formatTooltip:(S)=>`${dn(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:q(u[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function L2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Iw(r){let i=0;for(let u of r)i+=u??0;return i}var Rm=Y(ut(),1);var Ie=Y(ce(),1),C2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Mw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Aw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Dw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function Ew({active:r,range:i,onRequestClick:u}){let c=qt(["overview",i],()=>kk(i),{enabled:r}),f=qt(["recent-requests"],()=>mm(12),{enabled:r}),[v,p]=Rm.useState("requests"),b=na(i),S=Rm.useMemo(()=>{let h=c.data?.timeSeries??[],x=Po(i,h.map((C)=>C.timestamp));return{buckets:x,requests:ba(h,x,(C)=>C.requests-C.errors),errors:ba(h,x,(C)=>C.errors),tokens:ba(h,x,(C)=>C.tokens),cost:ba(h,x,(C)=>C.cost),all:ba(h,x,(C)=>C.requests)}},[c.data,i]),k=v==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:v==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ta,{title:"Overview",description:`Everything omp did across your sessions in ${b.windowLabel}.`},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(aa,{min:190,children:[Ie.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(Zr(h)),hint:`${Me(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:Re(h.cacheRate),hint:`${Re(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:Re(h.errorRate),hint:`${q(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(aa,{min:140,children:[Ie.jsxDEV(fe,{size:"sm",label:"Uncached input",value:Me(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Me(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Me(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Me(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Premium requests",value:q(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Tokens/s",value:dn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg latency",value:vt(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg TTFT",value:vt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ve,{index:1,title:"Activity",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}`,actions:Ie.jsxDEV(za,{size:"sm",options:C2,value:v,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV($n,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Me},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:x})=>{let C={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},R=Zr(h),L=pw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Qr,{segments:Dw.map((D)=>({key:D.key,label:D.label,value:C[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Qa,{items:Dw.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?Re(C[D.key]/R,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Ie.jsxDEV(Qr,{segments:L.segments.map((D)=>({key:D.agentType,label:Mw[D.agentType],value:D.tokens,color:Aw[D.agentType]}))},void 0,!1,void 0,this),L.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:Aw[D.agentType]}},void 0,!1,void 0,this),Mw[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:[q(D.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Me(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Re(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(Ve,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",Ie.jsxDEV(fc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(_e,{query:f,skeleton:Ie.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(zt,{rows:h,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&u(x.id),columns:k2,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var k2=[{key:"model",header:"Model",render:(r)=>Ie.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Ie.jsxDEV("span",{className:"muted",children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Ie.jsxDEV(wt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Ie.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var wl=Y(ut(),1);var He=Y(ce(),1),w2=100,Ow=8;function qw({active:r,range:i}){let u=qt(["projects",i],()=>qk(i),{enabled:r}),[c,f]=wl.useState(""),[v,p]=wl.useState(!0),b=wl.useDeferredValue(c.trim().toLowerCase()),S=na(i),k=wl.useMemo(()=>gw(u.data??[]),[u.data]),h=wl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=wl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=wl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,Ow),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,Ow)}),[h]),R=He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=wl.useMemo(()=>T2(k.maxRequests,k.maxCost),[k]);return He.jsxDEV("div",{className:"page",children:[He.jsxDEV(ta,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":u.stale,children:He.jsxDEV(aa,{min:180,children:[He.jsxDEV(fe,{label:"Folders",value:q(k.rows.length),hint:k.temporaryCount>0?`${q(k.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Requests",value:q(k.totalRequests),hint:`${q(k.failedRequests)} failed`},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(k.totalCost,k.unpricedRequests),hint:k.unpricedRequests>0?`${q(k.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(k.conversationTokens)},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:Re(k.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV("div",{className:"grid grid-2",children:[He.jsxDEV(Ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${Re(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV(Ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${Re(D.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),He.jsxDEV(Ve,{index:3,title:"Folders",description:u.data?x.length===k.rows.length?`${q(k.rows.length)} folders`:`${q(x.length)} of ${q(k.rows.length)} folders`:void 0,actions:He.jsxDEV(He.Fragment,{children:[k.temporaryCount>0&&He.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[He.jsxDEV("input",{type:"checkbox",checked:v,onChange:(D)=>p(D.target.checked)},void 0,!1,void 0,this),"Hide temporary (",q(k.temporaryCount),")"]},void 0,!0,void 0,this),He.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>He.jsxDEV(zt,{rows:x,rowKey:(D)=>D.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:w2,dense:!0,empty:He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"No folders match",hint:k.rows.length===0?"Try a longer range.":v&&k.temporaryCount>0?"Temporary folders are hidden.":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function T2(r,i){return[{key:"folder",header:"Folder",sort:(u)=>u.folder,render:(u)=>He.jsxDEV("span",{className:"row projects-folder",title:u.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:cn(u.folder)},void 0,!1,void 0,this),u.temporary&&He.jsxDEV(wt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.totalRequests,render:(u)=>He.jsxDEV("span",{title:`${Re(u.requestShare)} of all requests`,children:He.jsxDEV(ia,{value:u.totalRequests,max:r,display:q(u.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(u)=>u.totalCost,render:(u)=>He.jsxDEV("span",{title:`${Re(u.costShare)} of all cost`,children:He.jsxDEV(ia,{value:u.totalCost,max:i,display:Ot(u.totalCost,u.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(u)=>u.conversationTokens,render:(u)=>He.jsxDEV("span",{className:"num",title:q(u.conversationTokens),children:Me(u.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(u)=>u.cacheRate,render:(u)=>He.jsxDEV("span",{className:"num",children:Re(u.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(u)=>u.cacheSavings,render:(u)=>He.jsxDEV("span",{className:`num ${u.cacheSavings<0?"tone-bad":"muted"}`,children:Re(u.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(u)=>u.errorRate,render:(u)=>He.jsxDEV("span",{title:`${q(u.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:u.failedRequests>0?sn(u.errorRate):"neutral",mono:!0,children:Re(u.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(u)=>u.avgDuration??-1,render:(u)=>He.jsxDEV("span",{className:"num",children:vt(u.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(u)=>u.lastTimestamp,render:(u)=>He.jsxDEV("span",{className:"dim",children:ua(u.lastTimestamp)},void 0,!1,void 0,this)}]}var co=Y(ut(),1);var J=Y(ce(),1),I2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],Bw=6,Nw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],Uw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function Pw({active:r,range:i}){let u=qt(["providers",i],()=>Uk(i),{enabled:r}),[c,f]=co.useState("tokens"),[v,p]=nl(),b=na(i),S=qt(["provider-windows",i],()=>yb(i,null),{enabled:r}),[k,h]=co.useState(null),x=R2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",i,C],()=>yb(i,C),{enabled:r&&C!==null}),L=co.useMemo(()=>{let F=u.data?.providers??[],K=u.data?.series??[],N=qc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=Po(i,K.map((Z)=>Z.timestamp)),B={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Z of F)B.requests+=Z.totalRequests,B.failed+=Z.failedRequests,B.tokens+=Z.totalTokens,B.cost+=Z.totalCost,B.unpriced+=Z.unpricedRequests;let ee=(Z)=>mn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:Bw,colors:N}).map((W)=>({...W,values:W.values.map((X)=>X||null)}));return{colors:N,buckets:oe,totals:B,burn:{tokens:ee((Z)=>Z.totalTokens),cost:ee((Z)=>Z.cost),requests:ee((Z)=>Z.requests)},spark:{tokens:ba(K,oe,(Z)=>Z.totalTokens),cost:ba(K,oe,(Z)=>Z.cost),requests:ba(K,oe,(Z)=>Z.requests)},topProvider:F.reduce((Z,W)=>Z===null||W.totalTokens>Z.totalTokens?W:Z,null)}},[u.data,i]),D=L.burn[c],_=c==="cost"?(F)=>sa(F):Me,z=L.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(ta,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${b.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":u.stale,children:J.jsxDEV(aa,{min:190,children:[J.jsxDEV(fe,{label:"Providers",value:q(F.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Requests",value:q(z.requests),hint:`${q(z.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(z.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(z.cost,z.unpriced),hint:z.unpriced>0?`${q(z.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Error rate",value:Re(z.requests>0?z.failed/z.requests:0),hint:`${q(z.requests-z.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Ve,{index:1,title:"Provider totals",description:z.unpriced>0?`Cost is an API-equivalent estimate and excludes ${q(z.unpriced)} unpriced subscription request${z.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(M2,{providers:F,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("div",{className:"grid grid-main-side",children:[J.jsxDEV(Ve,{index:2,title:"Burn by provider",description:c==="cost"&&z.unpriced>0?`API-equivalent estimate per ${b.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${Bw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:I2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV($n,{buckets:L.buckets,bucketMs:b.bucketMs,series:D,hidden:v,height:260,format:_,formatTooltip:c==="cost"?(F)=>sa(F):q,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:D.map((F)=>({key:F.key,label:F.label,color:F.color,value:_(F.values.reduce((K,N)=>K+(N??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(D2,{hourly:F,providers:K,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:J.jsxDEV(_e,{query:S,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(F)=>J.jsxDEV(E2,{insights:F.windowInsights,selected:x,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(U2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R2(r,i){if(i&&r.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let u=i&&r.find((c)=>c.provider===i.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return u?{provider:u.provider,windowKey:u.windowKey}:null}function M2({providers:r,colors:i}){let[u,c]=co.useState(null),f=co.useMemo(()=>{let v=0,p=0,b=0;for(let S of r)v=Math.max(v,S.totalRequests),p=Math.max(p,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(Sl,{color:i.get(S.provider)??eo},void 0,!1,void 0,this),J.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>J.jsxDEV(ia,{value:S.totalRequests,max:v,display:q(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let k=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return J.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[J.jsxDEV("span",{className:"num dim",children:q(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(wt,{tone:S.failedRequests>0?sn(k):"neutral",mono:!0,children:Re(k)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>J.jsxDEV("span",{className:"num",children:q(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV(ia,{value:S.totalTokens,max:p,display:Me(S.totalTokens),color:i.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV("span",{className:"num muted",children:Re(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>J.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${q(S.unpricedRequests)} unpriced`:void 0,children:Ot(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>J.jsxDEV("span",{className:"num",children:dn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>J.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:q(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:u,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===u?J.jsxDEV(A2,{provider:v},void 0,!1,void 0,this):null,empty:J.jsxDEV(mt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function A2({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Qr,{segments:Nw.map((u)=>({key:u.key,label:u.label,value:i[u.key],color:u.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Nw.map((u)=>({key:u.key,label:u.label,color:u.color,value:`${Me(i[u.key])} · ${r.totalTokens>0?Re(i[u.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Hc="";function D2({hourly:r,providers:i,stale:u}){let[c,f]=co.useState(Hc),v=c===Hc||i.some((S)=>S.provider===c)?c:Hc,p=co.useMemo(()=>{let S=Array.from({length:24},()=>0),k=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(v!==Hc&&L.provider!==v)continue;S[L.hour]+=L.totalTokens,k[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let x=0;for(let L=1;L<24;L++)if(S[L]>S[x])x=L;let C=S[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,D)=>C&&D===x?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,D)=>C&&D===x?L:null)}],output:k,requests:h,peak:x,hasData:C}},[r,v]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(Ve,{index:3,title:"Peak burn hours",description:p.hasData?`Tokens by local hour of day; peak at ${b(p.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:v,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Hc,children:"All providers"},void 0,!1,void 0,this),i.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:u,children:J.jsxDEV(Cl,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:p.series,height:260,showTotal:!1,formatTooltip:q,emptyLabel:"No activity in this range",tooltipExtra:(S)=>J.jsxDEV(J.Fragment,{children:[J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function E2({insights:r,selected:i,onSelect:u}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:O2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>u({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Uw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var O2=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>J.jsxDEV(_a,{primary:r.windowLabel,secondary:J.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>J.jsxDEV("span",{className:"num",children:q(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>J.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?J.jsxDEV("span",{className:"num",children:Me(r.estTokensPerWindow)},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(ia,{value:r.peakConcurrentFraction,max:r.accounts,display:Re(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.idealAccounts)," · have ",q(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:q(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Mm=60000,Yn=60*Mm,Am=24*Yn,q2=[5*Mm,15*Mm,30*Mm,Yn,2*Yn,3*Yn,6*Yn,12*Yn,Am],B2=240,N2=6*Yn;function U2({insights:r,accounts:i,selected:u,onSelect:c}){let[f,v]=nl(),p=co.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=co.useMemo(()=>(r??[]).filter((L)=>L.provider===u?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,u?.provider]),S=co.useMemo(()=>(i.data?.usageSeries??[]).filter((L)=>L.provider===u?.provider),[i.data,u?.provider]),k=S.length===0&&(i.loading||i.stale),h=co.useMemo(()=>{let L=new Map;for(let _ of S){let z=L.get(_.accountLabel)??[];if(!z.includes(_.accountKey))z.push(_.accountKey);L.set(_.accountLabel,z)}let D=new Map;for(let[_,z]of L)z.sort(),z.forEach((F,K)=>D.set(F,z.length>1?`${_} #${K+1}`:_));return D},[S]),x=co.useMemo(()=>P2(S.filter((L)=>L.windowKey===u?.windowKey),h),[S,h,u?.windowKey]),C=co.useMemo(()=>{let L=new Map(x.series.map((D)=>[D.key,D.color]));return S.map((D)=>{let _=null,z=null;for(let N of D.points){if(N.usedFraction===null)continue;if(z=Math.max(z??0,N.usedFraction),!_||N.timestamp>=_.timestamp)_={fraction:N.usedFraction,exhausted:N.exhausted,timestamp:N.timestamp}}let F=D.windowKey===u?.windowKey?L.get(D.accountKey)??null:null,K=h.get(D.accountKey)??D.accountLabel;return{series:D,name:K,color:F,latest:_,peak:z,samples:D.points.length}}).sort((D,_)=>Number(_.color!==null)-Number(D.color!==null)||D.series.windowLabel.localeCompare(_.series.windowLabel)||(_.latest?.fraction??-1)-(D.latest?.fraction??-1))},[S,h,x.series,u?.windowKey]),R=b.find((L)=>L.key===u?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${ln(new Date(x.first),"MMM d HH:mm")} – ${ln(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:u&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:u.provider,onChange:(L)=>{let D=L.target.value,_=r?.find((z)=>z.provider===D);if(_)c({provider:D,windowKey:_.windowKey})},"aria-label":"Provider",children:p.map((L)=>J.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:u.windowKey,onChange:(L)=>c({provider:u.provider,windowKey:L.target.value}),"aria-label":"Window",children:b.map((L)=>J.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):u===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Uw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>k?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):J.jsxDEV("div",{className:"stack",style:{gap:16},children:[J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Cl,{slots:x.buckets.length,tickLabel:(L)=>pm(x.buckets[L],x.last-x.first>Am?Am:x.bucketMs),tooltipTitle:(L)=>fm(x.buckets[L],Yn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>Re(L,0),formatTooltip:(L)=>Re(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let D=x.exhausted[L];return D.length>0?J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),x.series.length>1&&J.jsxDEV(Qa,{items:x.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV(zt,{rows:C,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:_2,limit:16,onRowClick:(L)=>c({provider:L.series.provider,windowKey:L.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function P2(r,i){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<u)u=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=u))return{buckets:[],bucketMs:Yn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-u,v=q2.find((R)=>f/R<B2)??Am,p=Po("all",[u],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>i.get(R.accountKey)??R.accountLabel,C=[...r].sort((R,L)=>h(R).localeCompare(h(L))).map((R,L)=>{let D=p.map(()=>null),_=p.map(()=>0);for(let K of R.points){let N=b(K.timestamp);if(N<0||N>=p.length)continue;if(K.exhausted&&!S[N].includes(h(R)))S[N].push(h(R));if(K.usedFraction===null||K.timestamp<_[N])continue;D[N]=K.usedFraction,_[N]=K.timestamp,k=Math.max(k,K.usedFraction)}let z=null,F=0;for(let K=0;K<p.length;K++)if(D[K]!==null)z=D[K],F=_[K];else if(z!==null&&p[K]-F<=N2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:u,last:c,max:k,series:C,exhausted:S}}function z2(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(wt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(wt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var _2=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&J.jsxDEV(Sl,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>J.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?J.jsxDEV(ia,{value:r.latest.fraction,max:1,display:Re(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>z2(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>J.jsxDEV("span",{className:"num",children:r.peak===null?"–":Re(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>J.jsxDEV("span",{className:"muted",children:r.latest?ua(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var tu=Y(ut(),1);var Je=Y(ce(),1),Dm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function zw({id:r,onClose:i}){let u=qt(["request",r],()=>Rk(r??0),{enabled:r!==null}),c=u.stale?null:u.data,f=c?Dm[Xn(c)]:null;return Je.jsxDEV(gm,{open:r!==null,onClose:i,width:620,title:c?Je.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):"Request",subtitle:c?Je.jsxDEV(Je.Fragment,{children:[c.provider," ·"," ",Je.jsxDEV("span",{title:ll(c.timestamp),children:ua(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?Je.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?Je.jsxDEV("div",{className:"row",style:{gap:6},children:[Je.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Cm({...Ec(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[Je.jsxDEV(vc,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),Je.jsxDEV(wt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?Je.jsxDEV(H2,{details:c,aborted:Xn(c)==="aborted"},void 0,!1,void 0,this):u.error?Je.jsxDEV(bi,{error:u.error,onRetry:u.refetch},void 0,!1,void 0,this):Je.jsxDEV("div",{className:"stack",style:{gap:12},children:[Je.jsxDEV(Ea,{height:56},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function H2({details:r,aborted:i}){let{usage:u}=r,c=r.duration!==null&&r.duration>0&&u.output>0?u.output*1000/r.duration:null,{messages:f,output:v,...p}=r;return Je.jsxDEV(Je.Fragment,{children:[r.errorMessage&&Je.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),Je.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"at",label:"Started",value:ll(r.timestamp)},{key:"duration",label:"Duration",value:vt(r.duration)},{key:"ttft",label:"Time to first token",value:vt(r.ttft)},{key:"tps",label:"Output tokens/s",value:dn(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"input",label:"Uncached input",value:q(u.input)},{key:"cacheRead",label:"Cache read",value:q(u.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(u.cacheWrite)},{key:"output",label:"Output",value:q(u.output)},{key:"total",label:"Total",value:q(u.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((u.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"total",label:"Total",value:Yr(r,4)},{key:"input",label:"Input",value:sa(u.cost.input,4)},{key:"cacheRead",label:"Cache read",value:sa(u.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:sa(u.cost.cacheWrite,4)},{key:"output",label:"Output",value:sa(u.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:Je.jsxDEV("span",{title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"request-drawer-file",children:[Je.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(pi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),Ob=[500,2000,1e4];function _w({active:r,range:i,onRequestClick:u}){let[c,f]=tu.useState(0),v=Ob[c],p=qt(["requests-log",v],()=>mm(v),{enabled:r}),[b,S]=tu.useState(""),[k,h]=tu.useState("all"),x=na(i),C=tu.useMemo(()=>{let N=p.data??[],oe=x.spanMs===null?null:Date.now()-x.spanMs,B=oe===null?N:N.filter((W)=>W.timestamp>=oe),ee=!p.stale&&(N.length<v||oe!==null&&B.length<N.length),Z={all:B.length,ok:0,aborted:0,failed:0};for(let W of B)Z[Xn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:bw(B)}},[p.data,p.stale,v,x.spanMs]),R=tu.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||Xn(oe)===k)&&(N===""||oe.model.toLowerCase().includes(N)||oe.provider.toLowerCase().includes(N)||oe.folder.toLowerCase().includes(N)))},[C.inRange,b,k]),{summary:L,counts:D,complete:_}=C,z=c+1<Ob.length?Ob[c+1]:null,F=z!==null?Qe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(z)}`},void 0,!1,void 0,this):void 0,K=["all","ok","aborted","failed"].map((N)=>({value:N,label:Qe.jsxDEV(Qe.Fragment,{children:[N==="all"?"All":Dm[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Me(D[N])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(ta,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":p.stale,children:Qe.jsxDEV(aa,{min:160,children:[Qe.jsxDEV(fe,{label:"Requests",value:q(L.requests),hint:L.oldest===null?`none in ${x.windowLabel}`:`since ${ua(L.oldest)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Failed",value:q(L.failed),hint:`${L.requests>0?Re(L.failed/L.requests):"–"} · ${q(L.aborted)} aborted`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Tokens",title:"Total tokens across these requests",value:Me(L.tokens)},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median duration",value:vt(L.medianDuration),hint:`p95 ${vt(L.p95Duration)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median TTFT",title:"Time to first token",value:vt(L.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(Ve,{index:1,title:"Request log",description:p.data===null?"Loading the latest requests…":_?`${q(R.length)} of ${q(L.requests)} requests in ${x.windowLabel}`:`${q(R.length)} of the latest ${q(L.requests)} requests`,actions:Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV(un,{value:b,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),Qe.jsxDEV(za,{size:"sm","aria-label":"Status",options:K,value:k,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:p.data!==null&&!_?Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV("span",{children:["Showing the latest ",q(C.loaded)," requests, back to"," ",L.oldest===null?"–":ll(L.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),F]},void 0,!0,void 0,this):void 0,children:Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(zt,{rows:R,rowKey:(N)=>N.id??`${N.sessionFile}:${N.entryId}`,onRowClick:(N)=>N.id!==void 0&&u(N.id),columns:F2,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:Qe.jsxDEV(mt,{title:L.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var F2=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Qe.jsxDEV(_a,{primary:Qe.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",sort:(r)=>r.timestamp,render:(r)=>Qe.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Qe.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:cn(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>Qe.jsxDEV("span",{className:"num",title:`Cache write: ${q(r.usage.cacheWrite)}`,children:Me(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>Qe.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>Qe.jsxDEV("span",{className:"num muted",children:vt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Xn(r),render:(r)=>{let i=Dm[Xn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(rn,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:Qe.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var ou=Y(ut(),1);var be=Y(ce(),1),G2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],Hw=6,au="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",qb=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Fw({active:r,range:i}){let u=qt(["tools",i],()=>Nk(i),{enabled:r}),[c,f]=ou.useState("calls"),[v,p]=nl(),[b,S]=ou.useState(null),k=na(i),h=ou.useMemo(()=>V2(u.data,i),[u.data,i]),x=b!==null&&h.toolNames.includes(b)?b:null,C=c==="calls"?h.callSeries:h.errorSeries,R=(L)=>L.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ta,{title:"Tools",description:`Which tools omp called in ${k.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":u.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(aa,{min:190,children:[be.jsxDEV(fe,{label:"Tool calls",value:q(L.calls),hint:`${q(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Distinct tools",value:q(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Error rate",title:"Tool results that came back flagged as errors",value:Re(L.calls>0?L.errors/L.calls:0),hint:`${q(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed tokens",title:au,value:Me(Math.round(L.tokens)),hint:`${Me(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${au}; API-equivalent estimate`,value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(aa,{min:150,children:[be.jsxDEV(fe,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Me(L.resultChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Me(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Me(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg arguments per call",value:`${Me(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:1,title:c==="calls"?"Calls over time":"Errors over time",description:`Per ${k.bucketMs<3600000?"5 minutes":k.bucketMs<86400000?"hour":"day"}, top ${Hw} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:G2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV($n,{buckets:h.buckets,bucketMs:k.bucketMs,series:C,hidden:v,height:260,formatTooltip:q,emptyLabel:c==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),be.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color,value:Me(L.values.reduce((D,_)=>D+(_??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:2,title:"By tool",description:`${au}. Select a tool to break it down by model.`,flush:!0,stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:()=>be.jsxDEV(zt,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(L)=>S((D)=>D===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:u.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[be.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>be.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:be.jsxDEV(al,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:(L)=>be.jsxDEV(X2,{rows:L.byToolModel,tool:x,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function V2(r,i){let u=r?.byTool??[],c=r?.series??[],f=yw(u).sort((R,L)=>L.calls-R.calls),v=qc(u.map((R)=>({key:R.tool,weight:R.calls}))),p=Po(i,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:u.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of u)b.calls+=R.calls,b.errors+=R.errors,b.tokens+=R.totalTokensShare,b.output+=R.outputTokensShare,b.cost+=R.costShare,b.unpriced+=R.unpricedRequestsShare,b.resultChars+=R.resultChars,b.argsChars+=R.argsChars;let[S,k]=[(R)=>R.calls,(R)=>R.errors].map((R)=>mn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:Hw,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(mn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=$2(x,v,h);return{rows:f,colors:v,buckets:p,totals:b,callSeries:S,errorSeries:k,totalCalls:ba(c,p,(R)=>R.calls),totalErrors:ba(c,p,(R)=>R.errors),toolNames:f.map((R)=>R.tool).sort((R,L)=>R.localeCompare(L)),toolColumns:C}}function $2(r,i,u){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:i.get(c.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(c)=>{let f=u.get(c.tool);return f&&f.length>1?be.jsxDEV(gi,{values:f,width:80,height:20,color:i.get(c.tool)??eo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(c)=>c.calls,render:(c)=>be.jsxDEV(ia,{value:c.calls,max:r,display:be.jsxDEV("span",{title:`${Re(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(c)=>c.errorRate,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(c.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:c.errors>0?sn(c.errorRate):"neutral",mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(c)=>c.argsChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(c)=>c.resultChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(c)=>c.avgResultChars,render:(c)=>be.jsxDEV("span",{className:"num muted",children:Me(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.tokenFraction)} of attributed tokens`,children:[Me(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(c)=>c.lastUsed,render:(c)=>be.jsxDEV("span",{className:"muted",children:ua(c.lastUsed)},void 0,!1,void 0,this)}]}function X2({rows:r,tool:i,colors:u}){let c=ou.useMemo(()=>(i===null?r:r.filter((v)=>v.tool===i)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,i]),f=ou.useMemo(()=>{let v=c.reduce((p,b)=>Math.max(p,b.calls),0);return[{key:"tool",header:"Tool",sort:(p)=>p.tool,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:u.get(p.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:p.tool,children:p.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(p)=>p.model,render:(p)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:p.model||"(unknown)"},void 0,!1,void 0,this),secondary:p.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(p)=>p.calls,render:(p)=>be.jsxDEV(ia,{value:p.calls,max:v,display:q(p.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(p)=>p.errorRate,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(p.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:p.errors>0?sn(p.errorRate):"neutral",mono:!0,children:Re(p.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(p)=>p.resultChars,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(p)=>p.costShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Ot(p.costShare,p.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(p)=>p.lastUsed,render:(p)=>be.jsxDEV("span",{className:"muted",children:ua(p.lastUsed)},void 0,!1,void 0,this)}]},[c,u]);return be.jsxDEV(zt,{rows:c,rowKey:(v)=>`${v.tool}::${v.model}::${v.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(mt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ti=Y(ut(),1);var Bt=Y(ut(),1);var hn=Y(ce(),1);function Gw({toolStats:r,index:i}){if(r.length===0)return null;let u=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>hn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:q(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?hn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):hn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>hn.jsxDEV(ia,{value:f.totalMs,max:u,display:vt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:vt(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:"Max",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:vt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return hn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:i,children:hn.jsxDEV(zt,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tl=Y(ut(),1);var xi=Y(ut(),1);var lu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function j2(){let r=getComputedStyle(document.documentElement),i=(u,c)=>r.getPropertyValue(u).trim()||c;return{category:{turn:i(lu.turn,"#a0a0a8"),model:i(lu.model,"#5ad8e6"),tool:i(lu.tool,"#f5a524"),subagent:i(lu.subagent,"#ed4abf"),background:i(lu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function Li(){let r=ew(),[i,u]=xi.useState(0);return xi.useEffect(()=>{let c=new MutationObserver(()=>u((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),xi.useMemo(j2,[r,i])}var Xw=Y(ce(),1),Wr=44,Bb=["turn","model","tool","subagent"],Vw=6,Ci=10;function $w({tracks:r,scale:i,viewport:u,onViewportChange:c}){let f=Li(),v=Tl.useRef(null),[p,b]=Tl.useState(800),S=Tl.useRef(null);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=new ResizeObserver((K)=>{b(Math.max(100,Math.floor(K[0].contentRect.width)))});return F.observe(z),()=>F.disconnect()},[]);let[k,h]=i.domain,x=Math.max(h-k,0.000000001),C=Tl.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Tl.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=z.getContext("2d");if(!F)return;let K=devicePixelRatio;F.setTransform(K,0,0,K,0,0),F.clearRect(0,0,p,Wr);let N=Wr/Bb.length;for(let ee=0;ee<Bb.length;ee++){let Z=Bb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Ne=Math.max(0,Math.floor(C(i.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(i.toU(ge.end))));for(let Be=Ne;Be<=Ce;Be++)W[Be]=Math.min(1,W[Be]+0.34)}F.fillStyle=f.category[Z];for(let X=0;X<p;X++){if(W[X]<=0)continue;F.globalAlpha=0.25+W[X]*0.75,F.fillRect(X,ee*N+1,1,N-2)}F.globalAlpha=1}let oe=C(u.u0),B=C(u.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Wr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Wr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Wr),F.fillRect(B-2,0,2,Wr)},[r,i,u,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(u.u0),oe=C(u.u1),B;if(Math.abs(K-N)<=Vw)B="left";else if(Math.abs(K-oe)<=Vw)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Fc({u0:ee,u1:ee+Ci},k,h))}S.current={mode:B,startX:K,startViewport:u},z.currentTarget.setPointerCapture(z.pointerId)},D=(z)=>{let F=S.current;if(!F)return;let K=z.currentTarget.getBoundingClientRect(),N=z.clientX-K.left,oe=R(N)-R(F.startX),{u0:B,u1:ee}=F.startViewport;if(F.mode==="move")c(Fc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Fc({u0:Math.min(B+oe,ee-Ci),u1:ee},k,h));else if(F.mode==="right")c(Fc({u0:B,u1:Math.max(ee+oe,B+Ci)},k,h));else{let Z=R(F.startX),W=R(N);c(Fc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+Ci)},k,h))}},_=()=>{S.current=null};return Xw.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Wr*devicePixelRatio),className:"traces-minimap",style:{height:Wr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((u.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Fc(r,i,u){let c=Math.max(Ci,r.u1-r.u0);c=Math.min(c,u-i||Ci);let f=r.u0;if(f<i)f=i;if(f+c>u)f=u-c;return{u0:f,u1:f+c}}var gn=Y(ut(),1);var et=Y(ce(),1);function Y2(r){let i=[];if(typeof r==="string"){if(r.trim())i.push({kind:"text",text:r});return i}if(!Array.isArray(r))return i;for(let u of r){if(!u||typeof u!=="object"||!("type"in u))continue;if((u.type==="text"||u.type==="thinking")&&"text"in u&&typeof u.text==="string")i.push({kind:String(u.type),text:u.text})}return i}function jw({span:r,track:i,onClose:u,onOpenChildTrack:c}){let[f,v]=gn.useState(null),[p,b]=gn.useState(!1),[S,k]=gn.useState(null),[h,x]=gn.useState(!1),C=gn.useRef(0);if(gn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!i||!r.entryId)return;b(!0);let F=new AbortController;return _k(i.file,r.entryId,F.signal).then((K)=>{if(!F.signal.aborted)v(K.entry)}).catch((K)=>{if(F.signal.aborted)return;k(K instanceof Error?K:Error(String(K)))}).finally(()=>{if(!F.signal.aborted)b(!1)}),()=>F.abort()},[r,i]),gn.useEffect(()=>()=>window.clearTimeout(C.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),x(!0),window.clearTimeout(C.current),C.current=window.setTimeout(()=>x(!1),1500)}catch{}},D=(f&&typeof f==="object"?f:{}).message,_=D?.usage,z=[{key:"duration",label:"Duration",value:et.jsxDEV("span",{className:"num",children:[vt(r.end-r.start),r.unterminated&&et.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:et.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:et.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(z.push({key:"tokens",label:"Tokens",value:et.jsxDEV("span",{className:"num",children:q(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:et.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:et.jsxDEV("span",{className:"num",children:vt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:et.jsxDEV("span",{className:"mono",children:D?.model??r.model??"-"},void 0,!1,void 0,this)}),_)z.push({key:"split",label:"Input / output / cached",value:et.jsxDEV("span",{className:"num",children:[q(_.input??0)," / ",q(_.output??0)," /"," ",q(_.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)z.push({key:"provider",label:"Provider",value:et.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)z.push({key:"stop",label:"Stop reason",value:et.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return et.jsxDEV(gm,{open:!0,onClose:u,title:r.label,subtitle:et.jsxDEV("span",{className:"row",style:{gap:6},children:et.jsxDEV(wt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?et.jsxDEV(Vs,{size:15},void 0,!1,void 0,this):et.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:et.jsxDEV("div",{className:"stack traces-drawer",children:[et.jsxDEV(_o,{items:z},void 0,!1,void 0,this),D?.errorMessage&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&et.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:["Open child track ",et.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&et.jsxDEV("div",{className:"stack",children:[et.jsxDEV(Ea,{height:80},void 0,!1,void 0,this),et.jsxDEV(Ea,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&et.jsxDEV(bi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&Y2(D?.content).map((F,K)=>et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:F.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:F.text},void 0,!1,void 0,this)]},`${F.kind}-${K}`,!0,void 0,this)),!p&&f!==null&&et.jsxDEV(pi,{data:f,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Il=Y(ce(),1);function Yw({summary:r}){let i=(u)=>r.wallMs>0?`${Re(u/r.wallMs)} of wall`:void 0;return Il.jsxDEV(aa,{min:112,children:[Il.jsxDEV(fe,{size:"sm",label:"Wall time",value:Zs(r.wallMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Model time",value:Zs(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tool time",value:Zs(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Idle",value:Zs(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tokens",value:Me(r.totalTokens)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Cost",value:Ot(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wt=Y(ut(),1),tT=Y(rc(),1);function Em(r,i){let u=r.length,c=[i[0],i[u-1]],f=(v,p)=>{let b=0,S=u-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,u-2)};return{toU(v){if(v<=r[0])return i[0];if(v>=r[u-1])return i[u-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return i[p];return i[p]+(v-r[p])/b*(i[p+1]-i[p])},toT(v){if(v<=i[0])return r[0];if(v>=i[u-1])return r[u-1];let p=f(i,v),b=i[p+1]-i[p];if(b<=0)return r[p];return r[p]+(v-i[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Q2(r){let i=[];for(let u of r)for(let c of u.spans)i.push([c.start,c.end]);return i.sort((u,c)=>u[0]-c[0]),i}function Z2(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:u}=Number;for(let c of r)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>u)u=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(u,i+1)]}function Qw(r,i,u){let c=[...new Set(r.filter((b)=>b>=i&&b<=u))].sort((b,S)=>b-S);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==u)c.push(u);if(c.length<2)return Em([i,u],[i,u]);let v=(u-i)/(c.length-1),p=c.map((b,S)=>i+S*v);return Em(c,p)}function W2(r,i,u){let c=Q2(r),f=[];for(let[h,x]of c){let C=h-2000,R=x+2000,L=f[f.length-1];if(L&&C<=L[1]){if(R>L[1])L[1]=R}else f.push([C,R])}if(f.length===0)f.push([i,u]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),u);let v=[],p=[],b=[],S=f[0][0];for(let h=0;h<f.length;h++){let[x,C]=f[h];if(h===0)v.push(x),p.push(S);else{let R=f[h-1][1],L=x-R;if(L>30000)S+=8000,b.push({t0:R,t1:x,uMid:S-4000});else S+=L;v.push(x),p.push(S)}S+=Math.max(0,C-x),v.push(C),p.push(S)}return{...Em(v,p),gaps:b}}function Zw(r,i,u){let[c,f]=Z2(r);if(i==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Qw(p,c,f)}if(i==="calls"){let v=[];for(let p of r)for(let b of p.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")v.push(b.start,b.end);return Qw(v,c,f)}if(u)return W2(r,c,f);return Em([c,f],[c,f])}var K2=90;function J2(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let u of[1,2,5,10])if(i*u>=r)return i*u;return i*10}function eD(r){let i=new Date(r),u=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${u}:${c}:${f}`}function ki(r){let i=r<0?"-":"+",u=Math.abs(r),c=Math.floor(u/3600000),f=Math.floor(u%3600000/60000),v=Math.floor(u%60000/1000),p=Math.floor(u%1000),b=u%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${i}${c}:${S}`:`${i}${S}`}function Ww(r,i,u,c){let f=u-i;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=J2(f*K2/c),S=p+Math.ceil((i-p)/b)*b,k=0;for(let h=S;h<=u&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?eD(x):ki(h-p),major:C})}return v}var Rt=Y(ce(),1),Qn=28,Ub=22,So=18,Kw=3,tD=14,Jw=200,Nb=10,aD=2,oD=4,lD=56,eT=3,nD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function rD(r,i){let u=new Map(r.map((S)=>[S.id,S])),c=new Set;for(let S of r)if(S.parentId)c.add(S.parentId);let f=(S)=>{let k=S.parentId;while(k){if(i.has(k))return!0;k=u.get(k)?.parentId??null}return!1},v=[],p=[],b=Qn+6;for(let S of r){if(f(S))continue;let k=S.id==="main"?0:S.id.split("/").length,h={track:S,depth:k,hasChildren:c.has(S.id),headerY:b,lanes:[],y0:b,y1:b};b+=Ub;for(let{kind:x,label:C}of nD){let R=S.spans.filter((_)=>_.kind===x),L=x==="turn"||x==="model"||x==="tool";if(R.length===0&&!(S.id==="main"&&L))continue;let D={track:S,kind:x,label:C,y:b,spans:R};h.lanes.push(D),p.push(D),b+=So+Kw}h.y1=b-Kw,v.push(h),b+=tD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Qn+48)}}function aT({tracks:r,scale:i,viewport:u,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Li(),x=Wt.useRef(null),C=Wt.useRef(null),[R,L]=Wt.useState(800),[D,_]=Wt.useState(null),z=Wt.useRef([]),F=Wt.useRef(null),K=Wt.useRef(null),N=Wt.useRef(u);N.current=u;let oe=Wt.useMemo(()=>rD(r,b),[r,b]);Wt.useEffect(()=>{let ae=x.current;if(!ae)return;let P=new ResizeObserver((ue)=>{let se=Math.max(100,Math.floor(ue[0].contentRect.width-Jw));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=i.domain,ne=Math.max(Nb,P-ae);ne=Math.min(ne,se-ue||Nb);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[i]),ee=Wt.useCallback((ae)=>{N.current=ae,c(ae)},[c]),Z=Wt.useCallback((ae,P)=>{let ue=R,{u0:se,u1:ne}=N.current,pe=ne-se,Lt=P===null?0.5:Math.min(1,Math.max(0,P/ue)),Ye=se+pe*Lt,V=pe*ae;ee(B(Ye-V*Lt,Ye+V*(1-Lt)))},[R,ee,B]),W=Wt.useCallback((ae)=>{let{u0:P,u1:ue}=N.current;ee(B(P+ae,ue+ae))},[ee,B]),X=Wt.useCallback((ae)=>{let P=i.toU(ae.start),ue=i.toU(ae.end),se=Math.max((ue-P)*0.1,Nb/2);ee(B(P-se,ue+se))},[i,ee,B]);Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=(ue)=>{ue.preventDefault();let se=ae.getBoundingClientRect(),ne=ue.clientX-se.left;K.current=ne,_(null);let pe=ae.clientWidth||1,Lt=()=>N.current.u1-N.current.u0;if(ue.shiftKey){let Ye=Math.abs(ue.deltaY)>=Math.abs(ue.deltaX)?ue.deltaY:ue.deltaX;W(Ye/pe*Lt());return}if(ue.deltaX!==0)W(ue.deltaX/pe*Lt());if(ue.deltaY!==0)Z(1.0015**ue.deltaY,ne)};return ae.addEventListener("wheel",P,{passive:!1}),()=>ae.removeEventListener("wheel",P)},[Z,W]);let ge=Wt.useCallback((ae,P)=>{let ue=C.current;if(!ue)return null;let se=ue.getBoundingClientRect(),ne=ae-se.left,pe=P-se.top,Lt=z.current;for(let Ye=Lt.length-1;Ye>=0;Ye--){let V=Lt[Ye];if(ne>=V.x&&ne<=V.x+V.w&&pe>=V.y&&pe<=V.y+V.h)return V}return null},[]),Ne=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),F.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Ce=(ae)=>{let P=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-P.left;let ue=F.current;if(ue&&ue.pointerId===ae.pointerId){let ne=ae.clientX-ue.lastX;if(Math.abs(ne)>0){if(Math.abs(ne)>2)ue.moved=!0;ue.lastX=ae.clientX;let pe=N.current.u1-N.current.u0;W(-ne/(R||1)*pe)}_(null);return}let se=ge(ae.clientX,ae.clientY);_(se?{hit:se,clientX:ae.clientX,clientY:ae.clientY}:null)},Be=(ae)=>{let P=F.current;if(F.current=null,P?.moved)return;let ue=ge(ae.clientX,ae.clientY);if(ue?.kind==="span")v(ue.span.id);else v(null)},te=(ae)=>{let P=ge(ae.clientX,ae.clientY);if(P?.kind==="span")X(P.span)},ve=Wt.useCallback((ae)=>{if(!f)return;for(let P of oe.lanes){let ue=P.spans.findIndex((pe)=>pe.id===f);if(ue===-1)continue;let se=P.spans[ue+ae];if(!se)return;v(se.id);let ne=i.toU(se.start);if(ne<u.u0||ne>u.u1){let pe=u.u1-u.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,i,u,c,B]),ke=(ae)=>{let P=u.u1-u.u0;switch(ae.key){case"w":case"W":Z(0.7692307692307692,K.current);break;case"s":case"S":Z(1.3,K.current);break;case"a":case"A":W(-P*0.2);break;case"d":case"D":W(P*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":{if(!f)break;let ue=r.flatMap((se)=>se.spans).find((se)=>se.id===f);if(ue)X(ue);break}case"Escape":v(null);break;case",":ve(-1);break;case".":ve(1);break;default:return}ae.preventDefault()};Wt.useEffect(()=>{C.current?.focus({preventScroll:!0})},[]),Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=requestAnimationFrame(()=>{sD(ae,oe,i,u,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,i,u,h,R,f,D,p]);let je=D?uD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:Jw,flexShrink:0,position:"relative",height:oe.totalHeight},children:oe.blocks.map((ae)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:Ub,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":b.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:b.has(ae.track.id)?Rt.jsxDEV(vl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ae.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.lanes.map((P)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:P.y,left:20+ae.depth*14,lineHeight:`${So}px`},children:P.label},`${P.track.id}:${P.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:Math.floor(R*devicePixelRatio),height:Math.floor(oe.totalHeight*devicePixelRatio),style:{width:R,height:oe.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Ne,onPointerMove:Ce,onPointerUp:Be,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&tT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Gc(r,i,u,c,f){if(r.beginPath(),c>=eT*2+1)r.roundRect(i,u,c,f,eT);else r.rect(i,u,c,f)}function sD(r,i,u,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=i.totalHeight,R=devicePixelRatio;p.setTransform(R,0,0,R,0,0),p.clearRect(0,0,b,C);let{u0:L,u1:D}=c,_=Math.max(D-L,0.000000001),z=(N)=>(N-L)/_*b,F=h.trim().toLowerCase(),K=[];for(let N of i.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(u.toU(oe[B].start)),Z=B+1<oe.length?z(u.toU(oe[B+1].start)):b;if(Z<0||ee>b)continue;if(B%2===1)p.fillStyle=f.turnBand,p.fillRect(Math.max(0,ee),N.y0,Math.min(b,Z)-Math.max(0,ee),N.y1-N.y0);if(ee>=0&&ee<=b)p.strokeStyle=f.grid,p.beginPath(),p.moveTo(Math.round(ee)+0.5,N.y0),p.lineTo(Math.round(ee)+0.5,N.y1),p.stroke()}}for(let N of u.gaps){let oe=z(N.uMid);if(oe<-24||oe>b+24)continue;p.save(),p.strokeStyle=f.grid,p.setLineDash([2,4]),p.beginPath(),p.moveTo(oe,Qn),p.lineTo(oe,C),p.stroke(),p.restore(),p.fillStyle=f.tick,p.font=`9px ${f.fontMono}`,p.textAlign="center",p.fillText(`⋯ ${vt(N.t1-N.t0)}`,oe,Qn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Ww(u,L,D,b)){let oe=Math.round(z(N.u))+0.5;if(p.strokeStyle=f.grid,p.beginPath(),N.major)p.moveTo(oe,4),p.lineTo(oe,C);else p.moveTo(oe,Qn-8),p.lineTo(oe,Qn);if(p.stroke(),p.fillStyle=f.tick,N.major)p.fillText(N.label,oe+4,11);else p.globalAlpha=0.75,p.fillText(N.label,oe+3,Qn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Qn+0.5),p.lineTo(b,Qn+0.5),p.stroke();for(let N of i.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=u.toU(B.start);if(ee>D)break;let Z=u.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(aD,z(Z)-W),ge=N.y,Ne=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Ne?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Ne?1:0.3)*0.23,Gc(p,W,ge,X,So),p.fill(),p.globalAlpha=Ne?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,So);else p.fillStyle=Ce,Gc(p,W,ge,X,So),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Gc(p,W,ge,X,So),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,So);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(u.toU(B.start+B.ttft));if(te>W+1&&te<W+X-1)p.fillStyle="rgba(0,0,0,0.5)",p.fillRect(te,ge+3,1,So-6)}if(B.unterminated)p.save(),p.strokeStyle=f.tick,p.setLineDash([2,2]),p.beginPath(),p.moveTo(W+X-0.5,ge),p.lineTo(W+X-0.5,ge+So),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Gc(p,W,ge,X,So),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Gc(p,W-1,ge-1,X+2,So+2),p.stroke(),p.lineWidth=1;if(X>lD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,So),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+So-5),p.restore();p.globalAlpha=1;let Be=Math.max(X,oD);K.push({kind:"span",x:W-(Be-X)/2,y:ge,w:Be,h:So,span:B,track:N.track})}}for(let N of i.blocks)for(let oe of N.track.markers){let B=z(u.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Ub/2;p.fillStyle=f.marker,p.beginPath(),p.moveTo(B,ee-4),p.lineTo(B+4,ee),p.lineTo(B,ee+4),p.lineTo(B-4,ee),p.closePath(),p.fill(),K.push({kind:"marker",x:B-5,y:ee-5,w:10,h:10,marker:oe,track:N.track})}x.current=K}function uD(r,i){let u=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:u,top:c};if(r.hit.kind==="marker"){let{marker:p}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(p.time).toLocaleTimeString()," (",ki(p.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:v}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:v.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[vt(v.end-v.start)," · ",new Date(v.start).toLocaleTimeString()," (",ki(v.start-i),")",v.unterminated?" · unterminated":""]},void 0,!0,void 0,this),v.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[v.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[q(v.tokens)," tok"]},void 0,!0,void 0,this),v.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",v.cost.toFixed(4)]},void 0,!0,void 0,this),v.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · TTFT ",vt(v.ttft)]},void 0,!0,void 0,this),v.isError&&Rt.jsxDEV(Rt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.kind==="subagent"&&v.model&&Rt.jsxDEV("div",{className:"muted num",children:v.model},void 0,!1,void 0,this),v.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:v.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zn=Y(ut(),1);var Fa=Y(ce(),1),wi=28,oT=20,iD=340;function dD(r){let i=[];for(let u of r){let c=u.id==="main"?0:u.id.split("/").length;for(let f of u.spans)i.push({key:f.id,time:f.start,span:f,track:u,depth:c});for(let f=0;f<u.markers.length;f++){let v=u.markers[f];i.push({key:`${u.id}:marker:${f}`,time:v.time,marker:v,track:u,depth:c})}}return i.sort((u,c)=>u.time-c.time),i}function lT({tracks:r,selection:i,onSelect:u,search:c,traceStart:f}){let v=Li(),p=Zn.useRef(null),[b,S]=Zn.useState(0),k=Zn.useMemo(()=>dD(r),[r]),h=Zn.useMemo(()=>{let L=c.trim().toLowerCase();if(!L)return k;return k.filter((D)=>(D.span?`${D.span.label} ${D.span.detail??""}`:D.marker?.label??"").toLowerCase().includes(L))},[k,c]);Zn.useEffect(()=>{if(!i)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===i);if(D===-1)return;let _=D*wi;if(_<L.scrollTop||_+wi>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[i,h]);let x=Math.max(0,Math.floor(b/wi)-oT),C=Math.min(h.length,Math.ceil((b+iD)/wi)+oT),R=h.slice(x,C);return Fa.jsxDEV("div",{ref:p,onScroll:(L)=>S(L.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:h.length*wi,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*wi,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===i,z=L.span?v.category[L.span.kind]:v.marker,F=L.span?.label??L.marker?.label??"",K=L.span?.detail,N=L.span?vt(L.span.end-L.span.start):"",oe=L.span?.kind??L.marker?.kind??"",B=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":z},children:oe},void 0,!1,void 0,this),L.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:L.track.label,children:L.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),K&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[L.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:N},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:ki(L.time-f)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee={paddingLeft:12+L.depth*12};return D?Fa.jsxDEV("button",{type:"button",onClick:()=>u(D.id),className:"traces-row","data-selected":_?"true":"false",style:ee,children:B},L.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:ee,children:B},L.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.length===0&&Fa.jsxDEV(mt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ze=Y(ce(),1),cD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],fD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function nT({file:r,active:i,onBack:u}){let c=qt(["trace",r],()=>zk(r),{pollMs:15000,enabled:i}),f=c.stale?null:c.data,[v,p]=Bt.useState("time"),[b,S]=Bt.useState(!0),[k,h]=Bt.useState(null),[x,C]=Bt.useState(!1),[R,L]=Bt.useState(""),[D,_]=Bt.useState(0),[z,F]=Bt.useState(new Set),[K,N]=Bt.useState(null),oe=Bt.useMemo(()=>f?.tracks??[],[f]),B=Bt.useMemo(()=>Zw(oe,v,b),[oe,v,b]),ee=Bt.useRef(B),Z=Bt.useRef(null);Bt.useEffect(()=>{if(!f)return;if(Z.current===f.file)return;Z.current=f.file,h(null),L(""),N(null);let se=new Set;for(let ne of f.tracks)if((ne.id==="main"?0:ne.id.split("/").length)>=1)se.add(ne.id);F(se)},[f]),Bt.useEffect(()=>{let se=ee.current;ee.current=B,N((ne)=>{if(!ne)return ne;let pe=se.toT(ne.u0),Lt=se.toT(ne.u1),Ye=B.toU(pe),V=B.toU(Lt);return V-Ye>0?{u0:Ye,u1:V}:null})},[B]);let W=K??{u0:B.domain[0],u1:B.domain[1]},X=Bt.useMemo(()=>{let se=[];for(let ne of oe)for(let pe of ne.spans)se.push({span:pe,track:ne});return se.sort((ne,pe)=>ne.span.start-pe.span.start),se},[oe]),ge=Bt.useMemo(()=>{let se=R.trim().toLowerCase();if(!se)return[];return X.filter(({span:ne})=>`${ne.label} ${ne.detail??""}`.toLowerCase().includes(se))},[X,R]),Ne=Bt.useCallback((se)=>{let ne=B.toU(se.start),pe=B.toU(se.end);N((Lt)=>{let Ye=Lt??{u0:B.domain[0],u1:B.domain[1]};if(ne>=Ye.u0&&pe<=Ye.u1)return Lt;let V=Ye.u1-Ye.u0,Pe=(ne+pe)/2,[Mt,pa]=B.domain,re=Pe-V/2;if(re<Mt)re=Mt;if(re+V>pa)re=Math.max(Mt,pa-V);return{u0:re,u1:re+V}})},[B]),Ce=Bt.useCallback((se)=>{h(se);let ne=X.find(({span:pe})=>pe.id===se);if(ne)Ne(ne.span)},[X,Ne]),Be=Bt.useCallback((se)=>{h(se),C(se!==null)},[]),te=Bt.useCallback((se)=>{if(ge.length===0)return;let ne=((D+se)%ge.length+ge.length)%ge.length;_(ne),Ce(ge[ne].span.id)},[ge,D,Ce]),ve=Bt.useCallback((se)=>{F((ne)=>{let pe=new Set(ne);if(pe.has(se))pe.delete(se);else pe.add(se);return pe})},[]),ke=Bt.useMemo(()=>{if(!k)return null;return X.find(({span:se})=>se.id===k)??null},[k,X]),je=Bt.useCallback((se)=>{let ne=oe.find((Lt)=>Lt.id===se),pe=ne?.spans[0];if(F((Lt)=>{let Ye=new Set(Lt),V=ne;while(V?.parentId)Ye.delete(V.parentId),V=oe.find((Pe)=>Pe.id===V?.parentId);return Ye}),pe)Ce(pe.id)},[oe,Ce]),ae=Bt.useCallback((se)=>{if(!se){F(new Set);return}let ne=new Set;for(let pe of oe)if(pe.id!=="main")ne.add(pe.id);F(ne)},[oe]),P=f?.startedAt??0,ue={...c,data:f};return Ze.jsxDEV("div",{className:"stack traces-view",children:[Ze.jsxDEV("div",{children:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:u,children:[Ze.jsxDEV(cc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(ta,{title:Ze.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ze.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ze.jsxDEV($r,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:ue,skeleton:Ze.jsxDEV(Tt,{height:420},void 0,!1,void 0,this),children:(se)=>Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV(Yw,{summary:se.summary},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!1),children:"Expand all"},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ze.jsxDEV("div",{className:"stack",children:[Ze.jsxDEV("div",{className:"traces-toolbar",children:[Ze.jsxDEV(za,{options:cD,value:v,onChange:p,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),v==="time"&&Ze.jsxDEV("label",{className:"traces-check",children:[Ze.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ne)=>S(ne.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-search",children:[Ze.jsxDEV(un,{value:R,onChange:(ne)=>{L(ne),_(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),R.trim()&&Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("span",{className:"num muted traces-match-count",children:ge.length===0?"0":`${D%Math.max(ge.length,1)+1}/${ge.length}`},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(-1),"aria-label":"Previous match",disabled:ge.length===0,children:Ze.jsxDEV(hc,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(1),"aria-label":"Next match",disabled:ge.length===0,children:Ze.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-legend",children:fD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${lu[ne.kind]})`}},void 0,!1,void 0,this),ne.label]},ne.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV($w,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(aT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:Be,search:R,collapsed:z,onToggleCollapse:ve,traceStart:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ze.jsxDEV(lT,{tracks:oe,selection:k,onSelect:(ne)=>{Ce(ne),C(!0)},search:R,traceStart:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Gw,{toolStats:se.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(jw,{span:x?ke?.span??null:null,track:ke?.track??null,onClose:()=>C(!1),onOpenChildTrack:je},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jt=Y(ce(),1),rT=200;function pD({models:r}){if(r.length===0)return jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return jt.jsxDEV("span",{className:"traces-models",title:r.join(`
|
|
236
|
-
`),children:[jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function
|
|
235
|
+
<%s key={someKey} {...props} />`,ne,Ye,V,Ye),ae[Ye+ne]=!0)}if(Ye=null,se!==void 0&&(i(se),Ye=""+se),p(ue)&&(i(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Ue in ue)Ue!=="key"&&(se[Ue]=ue[Ue])}else se=ue;return Ye&&b(se,typeof P==="function"?P.displayName||P.name||"Unknown":P),k(P,Ye,se,f(),pe,Lt)}function x(P){C(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===Z&&(P._payload.status==="fulfilled"?C(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function C(P){return typeof P==="object"&&P!==null&&P.$$typeof===R}var R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ge=Ys.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=Object.prototype.hasOwnProperty,Ce=Array.isArray,qe=console.createTask?console.createTask:function(){return null};Ys={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=Ys.react_stack_bottom_frame.bind(Ys,v)(),je=qe(c(v)),ae={};dA.Fragment=D,dA.jsxDEV=function(P,ue,se,ne){var pe=1e4>ge.recentlyCreatedOwnerStacks++;return h(P,ue,se,ne,pe?Error("react-stack-top-frame"):ke,pe?qe(c(P)):je)}})()});var iT=Y(M1(),1);var Ri=Y(ut(),1);var cm=Y(ut(),1);var A1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function D1(r,u,i=[]){if(u==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:A1(r),size:24,node:u,...i.length>0?{aliases:i}:{}}}var E1=(r)=>{let u="",i=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){i=u.length>0;continue}if(u.length===0)u+=c.toLowerCase();else u+=i?c.toUpperCase():c;i=!1}return u};var O1=(r)=>{let u=E1(r);return u.charAt(0).toUpperCase()+u.slice(1)};var ic=Y(ut(),1);var uc=(...r)=>r.filter((u,i,c)=>Boolean(u)&&u.trim()!==""&&c.indexOf(u)===i).join(" ").trim();var Hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function gb(r){return r!==null&&r!==void 0}function q1(r,u={}){let i=u.attributeNames??{},c=(C)=>i[C]??C,f=r.size??r.width??Hr.width,v=r.size??r.height??Hr.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=u.className?.split(" ").filter(Boolean)??[],k=u.includeDefaultClasses===!1?uc(...S):uc("lucide",...b,...S),h=u.absoluteStrokeWidth?Number(u.strokeWidth??Hr["stroke-width"])*Number(r.size??r.width??Hr.width)/Number(u.size??u.width??Hr.width):u.strokeWidth??Hr["stroke-width"];return["svg",{...Object.entries(Hr).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in u&&u.color&&{[c("stroke")]:u.color},..."size"in u&&gb(u.size)&&{[c("width")]:u.size,[c("height")]:u.size},..."width"in u&&gb(u.width)&&{[c("width")]:u.width},..."height"in u&&gb(u.height)&&{[c("height")]:u.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...u.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in u&&u.attributes},r.node.map((C)=>{let[R,L,D]=C,_=u.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function B1(r,u={}){return q1(r,{...u,attributeNames:{...u.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var N1=(r)=>{for(let u in r)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};var ci=Y(ut(),1),oA=ci.createContext({});var U1=()=>ci.useContext(oA);var P1=ic.forwardRef(({color:r,size:u,width:i,height:c,strokeWidth:f,absoluteStrokeWidth:v,nonScalingStroke:p,className:b="",children:S,iconNode:k=[],icon:h={node:k,aliases:[],size:24},...x},C)=>{let{size:R=24,strokeWidth:L=2,absoluteStrokeWidth:D=!1,nonScalingStroke:_=!1,color:z="currentColor",className:F=""}=U1()??{},K=Boolean(S)||N1(x),[N,oe,B=[]]=B1(h,{color:r??z,width:i??u??R,height:c??u??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:uc(F,b),hasA11yProp:K,attributes:x});return ic.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>ic.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,u=[],i=[]){let c=typeof r==="string"?D1(r,u,i):r,f=cm.forwardRef(({className:v,...p},b)=>cm.createElement(P1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=O1(c.name);return f}var z1={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};z1.node;var Fr=xe(z1);var _1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};_1.node;var Gr=xe(_1);var H1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};H1.node;var Vr=xe(H1);var F1={name:"sparkles",size:24,node:[["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"}]],aliases:["stars"]};F1.node;var ln=xe(F1);var G1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};G1.node;var vl=xe(G1);var V1={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};V1.node;var $r=xe(V1);var $1={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};$1.node;var dc=xe($1);var X1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};X1.node;var cc=xe(X1);var j1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};j1.node;var fc=xe(j1);var Y1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};Y1.node;var pc=xe(Y1);var Q1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Q1.node;var mc=xe(Q1);var Z1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Z1.node;var hc=xe(Z1);var W1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};W1.node;var $s=xe(W1);var K1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};K1.node;var Xs=xe(K1);var J1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};J1.node;var gc=xe(J1);var ek={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};ek.node;var Sl=xe(ek);var tk={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};tk.node;var yc=xe(tk);var ak={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};ak.node;var js=xe(ak);var ok={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};ok.node;var bc=xe(ok);var lk={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};lk.node;var vc=xe(lk);var nk={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};nk.node;var Sc=xe(nk);var rk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};rk.node;var xc=xe(rk);var sk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};sk.node;var Lc=xe(sk);var uk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};uk.node;var Cc=xe(uk);var ik={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};ik.node;var kc=xe(ik);var dk={name:"moon",size:24,node:[["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"}]]};dk.node;var wc=xe(dk);var ck={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};ck.node;var Xr=xe(ck);var fk={name:"rotate-cw",size:24,node:[["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"}]]};fk.node;var Tc=xe(fk);var pk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};pk.node;var Ic=xe(pk);var mk={name:"sun",size:24,node:[["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"}]]};mk.node;var Rc=xe(mk);var hk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};hk.node;var Mc=xe(hk);var gk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};gk.node;var ol=xe(gk);var Si=Y(ut(),1);var yk=["January","February","March","April","May","June","July","August","September","October","November","December"],bk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],lA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function jr(r,u=2){return String(r).padStart(u,"0")}function nA(r,u){let i=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(u){case"yyyy":return jr(r.getFullYear(),4);case"yy":return jr(r.getFullYear()%100);case"MMMM":return yk[i];case"MMM":return yk[i].slice(0,3);case"MM":return jr(i+1);case"M":return String(i+1);case"dd":return jr(r.getDate());case"d":return String(r.getDate());case"EEEE":return bk[c];case"EEE":return bk[c].slice(0,3);case"HH":return jr(f);case"H":return String(f);case"hh":return jr(v);case"h":return String(v);case"mm":return jr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return jr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function Sk(r){let u=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(u.getTime()))throw RangeError("Invalid time value");return u}function nn(r,u){let i=Sk(r),c="";for(let f=0;f<u.length;){if(u[f]==="'"){if(u[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<u.length){if(u[f]!=="'"){c+=u[f++];continue}if(u[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=u.slice(f),p=lA.find((S)=>v.startsWith(S));if(p){c+=nA(i,p),f+=p.length;continue}let b=u[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function Yr(r,u){return`${r} ${r===1?u:`${u}s`}`}function rA(r,u){let i=(u.getFullYear()-r.getFullYear())*12+u.getMonth()-r.getMonth();if(i===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+i,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>u.getTime())i--;return i}function vk(r,u){let i=(u.getTime()-r.getTime())/1000,c=(u.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((i-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return Yr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${Yr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return Yr(Math.round(f/1440),"day");if(f<86400)return`about ${Yr(Math.round(f/43200),"month")}`;let v=rA(r,u);if(v<12)return Yr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${Yr(p,"year")}`;if(b<9)return`over ${Yr(p,"year")}`;return`almost ${Yr(p+1,"year")}`}function xk(r,u={}){let i=Sk(r),c=new Date(Date.now()),f=i.getTime()>c.getTime(),v=f?vk(c,i):vk(i,c);if(!u.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var Lk=60000,fm=60*Lk,rn=24*fm,yb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:fm,bucketMs:5*Lk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:rn,bucketMs:fm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*rn,bucketMs:rn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*rn,bucketMs:rn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*rn,bucketMs:rn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:rn}},sA=1500,fi=["1h","24h","7d","30d","90d","all"];function na(r){return yb[r]}function pm(r,u){if(u<rn)return nn(new Date(r),u<fm?"HH:mm":"MMM d HH:mm");return nn(new Date(r),"MMM d")}function mm(r,u){if(u<rn)return nn(new Date(r),"HH:mm");return nn(new Date(r),"MMM d")}function zo(r,u,i=yb[r].bucketMs,c=Date.now()){let f=Math.floor(c/i)*i,v=yb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/i)*i;else{p=f;for(let S of u)if(S<p)p=S;p=Math.floor(p/i)*i}p=Math.max(p,f-(sA-1)*i);let b=[];for(let S=p;S<=f;S+=i)b.push(S);return b}var _o=Y(ut(),1);class Ck extends Error{status;endpoint;constructor(r,u,i){super(i);this.name="ApiError",this.status=r,this.endpoint=u}}async function uA(r,u){try{let i=await r.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${r.status} on ${u}`}async function Da(r,u){let i=await fetch(r,u);if(!i.ok)throw new Ck(i.status,r,await uA(i,r));return i.json()}var kk={"X-Omp-Stats-Action":"1"};async function wk(r="24h",u){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:u})}async function Tk(r="24h",u){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:u})}async function Ik(r="24h",u){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:u})}async function hm(r=50,u){return Da(`/api/stats/recent?limit=${r}`,{signal:u})}async function Rk(r="24h",u=50,i){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${u}`,{signal:i})}async function Mk(r,u){return Da(`/api/request/${r}`,{signal:u})}async function Ak(){return Da("/api/sync",{method:"POST"})}async function Dk(r="24h",u){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:u})}async function Ek(r,u){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:u})}async function Ok(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:kk})}async function qk(){return Da("/api/frustration/cancel",{method:"POST",headers:kk})}async function Bk(r="24h",u){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:u})}async function Nk(r="24h",u,i){let c=new URLSearchParams({range:r});if(u)c.set("project",u);return Da(`/api/stats/gain?${c}`,{signal:i})}async function Uk(r="24h",u){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:u})}async function Pk(r="24h",u){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:u})}async function bb(r,u,i){let c=new URLSearchParams({range:r});if(u!==null)c.set("provider",u);return Da(`/api/stats/provider-windows?${c}`,{signal:i})}async function zk(r=100,u,i){let c=new URLSearchParams({limit:String(r)});if(u)c.set("q",u);return Da(`/api/sessions?${c}`,{signal:i})}async function _k(r,u){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:u})}async function Hk(r,u,i){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(u)}`,{signal:i})}var $k=Y(ce(),1),Fk={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Gk=_o.createContext({version:0,sync:Fk,indexingHours:0,connected:!1,requestSync:()=>{}});function Vk({children:r}){let[u,i]=_o.useState({server:null,version:0}),[c,f]=_o.useState(!1);_o.useEffect(()=>{let b=new EventSource("/api/events");return b.onopen=()=>f(!0),b.onerror=()=>f(!1),b.onmessage=(S)=>{let k=JSON.parse(S.data);i((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=_o.useCallback(()=>{Ak().catch(()=>{})},[]),p=_o.useMemo(()=>({version:Math.max(0,u.version-1),sync:u.server?.sync??Fk,indexingHours:u.server?.indexingHours??0,connected:c,requestSync:v}),[u,c,v]);return $k.jsxDEV(Gk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function pi(){return _o.useContext(Gk)}var gm=Y(ce(),1);function wt({tone:r="neutral",mono:u,children:i}){return gm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":u??!1,children:i},void 0,!1,void 0,this)}function sn({tone:r="neutral",pulse:u}){return gm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":u??!1},void 0,!1,void 0,this)}function xl({color:r}){return gm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function un(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var So=Y(ce(),1);function Ve({title:r,description:u,actions:i,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||u!==void 0||i!==void 0;return So.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&So.jsxDEV("header",{className:"card-header",children:[So.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&So.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"card-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&So.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:u,actions:i}){return So.jsxDEV("header",{className:"page-header rise",children:[So.jsxDEV("div",{children:[So.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"page-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ac=Y(ut(),1),Xk=Y(sc(),1),Ya=Y(ce(),1);function ym({open:r,onClose:u,title:i,subtitle:c,actions:f,width:v,children:p}){let b=Ac.useRef(u);b.current=u;let S=Ac.useRef(null);if(Ac.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(x)=>{if(x.key==="Escape")x.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),k?.focus()}},[r]),!r)return null;return Xk.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:u,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:v!==void 0?{"--drawer-w":`${v}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:i},void 0,!1,void 0,this),c!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:u,"aria-label":"Close",children:Ya.jsxDEV(ol,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Ho({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((u)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:u.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:u.value},void 0,!1,void 0,this)]},u.key,!0,void 0,this))},void 0,!1,void 0,this)}var Qs=Y(ut(),1),Ll=Y(ce(),1);function mi({data:r,title:u="JSON",initialCollapsed:i=!1}){let[c,f]=Qs.useState(i),[v,p]=Qs.useState(!1),b=Qs.useRef(0),S=JSON.stringify(r,null,2);return Qs.useEffect(()=>()=>window.clearTimeout(b.current),[]),Ll.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ll.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?Ll.jsxDEV(Sl,{size:13},void 0,!1,void 0,this):Ll.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),u]},void 0,!0,void 0,this),Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),p(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>p(!1),1500)}catch{}},children:[v?Ll.jsxDEV($s,{size:13},void 0,!1,void 0,this):Ll.jsxDEV(js,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&Ll.jsxDEV("pre",{className:"code-block",children:Ll.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zs=Y(ut(),1),jk=Y(sc(),1);var Cl=Y(ce(),1);function Yk({open:r,title:u,onClose:i,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Zs.useRef(null),b=Zs.useRef(null),S=Zs.useRef(i);S.current=i,Zs.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,R=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R),C?.focus()}},[r]);let k=c!==void 0,h=c?.disabled??!1;if(Zs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return jk.createPortal(Cl.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)i()},role:"presentation",children:Cl.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Cl.jsxDEV("div",{className:"modal-header",children:[Cl.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:u},void 0,!1,void 0,this),Cl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":"Close",children:Cl.jsxDEV(ol,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Cl.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Cl.jsxDEV("div",{className:"modal-footer",children:[Cl.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:i,children:f},void 0,!1,void 0,this),c&&Cl.jsxDEV("button",{ref:p,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var bm=Y(ce(),1);function dn({value:r,onChange:u,placeholder:i="Filter…",width:c}){return bm.jsxDEV("label",{className:"search",children:[bm.jsxDEV(Ic,{size:14},void 0,!1,void 0,this),bm.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:i,onChange:(f)=>u(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var hi=Y(ut(),1),vm=Y(ce(),1);function za({options:r,value:u,onChange:i,size:c="md","aria-label":f}){let v=hi.useRef(null),[p,b]=hi.useState(null);return hi.useLayoutEffect(()=>{let S=v.current,k=S?.querySelector('[data-active="true"]');if(!S||!k){b(null);return}let h=()=>b({left:k.offsetLeft,width:k.offsetWidth});h();let x=new ResizeObserver(h);return x.observe(S),()=>x.disconnect()},[u,r]),vm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&vm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>vm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===u,className:"segmented-option","data-active":S.value===u,title:S.title,onClick:()=>i(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var bi=Y(ut(),1);var gi=Y(ut(),1);function Sm(){let r=gi.useRef(null),[u,i]=gi.useState(0);return gi.useLayoutEffect(()=>{let c=r.current;if(!c)return;i(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);i((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,u]}var Dc=Y(ce(),1);function yi({values:r,color:u="var(--chart-primary)",height:i=28,width:c,area:f=!0}){let[v,p]=Sm(),b=c??p,S=Math.max(0,...r),k=r.length,h="";if(b>0&&k>0){let x=k>1?b/(k-1):0;for(let C=0;C<k;C++){let R=k>1?C*x:b/2,L=S>0?i-2-r[C]/S*(i-4):i-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Dc.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:i},children:b>0&&k>0&&Dc.jsxDEV("svg",{width:b,height:i,"aria-hidden":"true",children:[f&&Dc.jsxDEV("path",{className:"area",d:`${h}L${b},${i}L0,${i}Z`,fill:u},void 0,!1,void 0,this),Dc.jsxDEV("path",{className:"chart-line",d:h,stroke:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ll=Y(ce(),1);function fe({label:r,value:u,hint:i,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=fA(typeof u==="string"||typeof u==="number"?u:null);return ll.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ll.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ll.jsxDEV("div",{className:"stat-value","data-flash":S,children:u},void 0,!1,void 0,this),(i!==void 0||c)&&ll.jsxDEV("div",{className:"stat-foot",children:[c&&ll.jsxDEV(cA,{...c},void 0,!1,void 0,this),i!==void 0&&ll.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ll.jsxDEV("div",{className:"stat-spark",children:ll.jsxDEV(yi,{values:f,color:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aa({min:r,children:u}){return ll.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:u},void 0,!1,void 0,this)}function cA({change:r,good:u="up"}){if(r===null||!Number.isFinite(r))return ll.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(r)<0.0005?0:r,c=i===0?void 0:i>0===(u==="up")?"good":"bad",f=i>0?"+":i<0?"−":"±",v=Math.abs(i)*100;return ll.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function fA(r){let u=bi.useRef(r),[i,c]=bi.useState(!1);return bi.useEffect(()=>{if(u.current===r)return;let f=u.current!==null;if(u.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),i}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:u}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(xc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),u!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vi({error:r,onRetry:u}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV($r,{size:15},void 0,!1,void 0,this),fa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),u&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:u,children:[fa.jsxDEV(Tc,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ea({width:r="100%",height:u=14,style:i}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:u,...i}},void 0,!1,void 0,this)}function Tt({height:r=220}){return fa.jsxDEV(Ea,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:r=6}){return fa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(u,i)=>fa.jsxDEV(Ea,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:u,isEmpty:i,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:u},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),i?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Ks=Y(ut(),1);var vb="en-US";function q(r){return r.toLocaleString(vb)}function Re(r){return r.toLocaleString(vb,{notation:"compact"})}function sa(r,u){if(r===0)return"$0";let i=u!==void 0?u:r>0&&r<0.01?4:2;return`$${r.toLocaleString(vb,{minimumFractionDigits:i,maximumFractionDigits:i})}`}function Ot(r,u,i){return r===0&&u>0?"N/A":sa(r,i)}function Sb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Qr(r,u){return Ot(r.usage.cost.total,Sb(r)?1:0,u)}function ze(r,u=1){return`${(r*100).toFixed(u)}%`}function eo(r){let u=r*100;if(u>0&&u<0.005)return"<0.01%";return ze(r,u>0&&u<0.1?2:1)}function vt(r,u){if(r===null)return"-";let i=r/1000,c=u!==void 0?u:i<1?2:1;return`${i.toFixed(c)}s`}function Ws(r){if(r<60000)return vt(r);let u=Math.floor(r/60000);if(u<60)return`${u}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(u/60)}h ${String(u%60).padStart(2,"0")}m`}function cn(r){if(r===null)return"-";return r.toFixed(1)}function ua(r){return xk(new Date(r),{addSuffix:!0})}function nl(r){return nn(new Date(r),"MMM d, HH:mm:ss")}function fn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function xb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var St=Y(ce(),1);function zt({columns:r,rows:u,rowKey:i,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Ks.useState(v??null),[C,R]=Ks.useState(p??Number.POSITIVE_INFINITY),L=Ks.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return u;let F=z.sort,K=h.dir==="asc"?1:-1;return[...u].sort((N,oe)=>{let B=F(N),ee=F(oe);if(typeof B==="number"&&typeof ee==="number")return(B-ee)*K;return String(B).localeCompare(String(ee))*K})},[u,r,h]);if(u.length===0)return St.jsxDEV(St.Fragment,{children:S??St.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=L.length>C?L.slice(0,C):L,_=(z)=>{if(!z.sort)return;x((F)=>F?.key===z.key?{key:z.key,dir:F.dir==="asc"?"desc":"asc"}:{key:z.key,dir:z.align==="right"?"desc":"asc"})};return St.jsxDEV(St.Fragment,{children:[St.jsxDEV("div",{className:"table-wrap",children:St.jsxDEV("table",{className:"table","data-dense":b??!1,children:[St.jsxDEV("thead",{children:St.jsxDEV("tr",{children:r.map((z)=>{let F=h?.key===z.key?h.dir:void 0;return St.jsxDEV("th",{"data-align":z.align??"left","data-sortable":z.sort!==void 0,"data-sorted":F,style:z.width!==void 0?{width:z.width}:void 0,title:z.title,onClick:()=>_(z),"aria-sort":F==="asc"?"ascending":F==="desc"?"descending":void 0,children:[z.header,F&&St.jsxDEV("span",{className:"sort-arrow",children:F==="asc"?St.jsxDEV(hc,{size:11},void 0,!1,void 0,this):St.jsxDEV(cc,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),St.jsxDEV("tbody",{children:D.map((z)=>{let F=i(z),K=k?.(z)??null;return St.jsxDEV(Ks.Fragment,{children:[St.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===F,onClick:c?()=>c(z):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),c(z)}:void 0,tabIndex:c?0:void 0,children:r.map((N)=>St.jsxDEV("td",{"data-align":N.align??"left","data-wrap":N.wrap??!1,children:N.render(z)},N.key,!1,void 0,this))},void 0,!1,void 0,this),K!==null&&St.jsxDEV("tr",{children:St.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},F,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p!==void 0&&L.length>p&&St.jsxDEV("div",{className:"table-more",children:[St.jsxDEV("span",{className:"micro",children:[q(D.length)," of ",q(L.length)]},void 0,!0,void 0,this),L.length>C&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R((z)=>z+p*4),children:"Show more"},void 0,!1,void 0,this),C>p&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R(p),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ia({value:r,max:u,display:i,color:c}){let f=u>0?Math.min(100,r/u*100):0;return St.jsxDEV("div",{className:"meter-cell",children:[St.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),St.jsxDEV("div",{className:"meter",children:St.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:u,lead:i}){return St.jsxDEV("div",{className:"row",style:{gap:10},children:[i,St.jsxDEV("div",{className:"stack",style:{gap:0},children:[St.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),u!==void 0&&St.jsxDEV("span",{className:"cell-secondary truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var xm=Y(ut(),1);var Xt=Y(ce(),1);function Qk(){let{sync:r,indexingHours:u,connected:i,requestSync:c}=pi(),f=mA(r.phase==="idle"?15000:null),v,p;if(!i)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(sn,{tone:"warn"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(Xr,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Xt.jsxDEV("span",{className:"live-chip-count",children:[q(r.current),"/",q(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Ingesting session files";else if(r.phase==="error")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(sn,{tone:"bad"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p=`${r.error??"Sync failed"} — click to retry`;else if(u>pA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(Xr,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Xt.jsxDEV("span",{className:"live-chip-count",children:[q(u),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Building hourly rollups; older ranges fill in as it goes";else v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(sn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Xt.jsxDEV("span",{className:"live-chip-count",children:hA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Click to sync session files now";return Xt.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:p,children:v},void 0,!1,void 0,this)}var pA=24;function mA(r){let[u,i]=xm.useState(Date.now);return xm.useEffect(()=>{if(r===null)return;i(Date.now());let c=setInterval(()=>i(Date.now()),r);return()=>clearInterval(c)},[r]),u}function hA(r){let u=Math.max(0,Math.round(r/1000));if(u<45)return"just now";let i=Math.round(u/60);if(i<60)return`${i}m ago`;let c=Math.round(i/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var Lm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:Lc,hotkey:"o"},{id:"models",label:"Models",icon:bc,hotkey:"m"},{id:"providers",label:"Providers",icon:Vr,hotkey:"p"},{id:"costs",label:"Costs",icon:yc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:dc,hotkey:"r"},{id:"errors",label:"Errors",icon:Fr,hotkey:"e"},{id:"traces",label:"Traces",icon:vl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Mc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Gr,hotkey:"f"},{id:"projects",label:"Projects",icon:vc,hotkey:"j"},{id:"gain",label:"Gain",icon:ln,hotkey:"g"}]}],gA=Lm.flatMap((r)=>r.items),Zk=gA.map((r)=>r.id);var Cm=Y(ut(),1),Wk="omp-stats-theme",Kk="(prefers-color-scheme: dark)";function yA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Wk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Jk(){if(typeof window>"u")return"dark";return window.matchMedia(Kk).matches?"dark":"light"}var Js=yA(),Ec=Js==="system"?Jk():Js,Lb=new Set;function ew(){for(let r of Lb)r()}function Cb(){if(Ec=Js==="system"?Jk():Js,typeof document<"u")document.documentElement.dataset.theme=Ec,document.documentElement.style.colorScheme=Ec}if(typeof window<"u")Cb(),window.matchMedia(Kk).addEventListener("change",()=>{if(Js==="system")Cb(),ew()});function bA(r){if(Js=r,typeof localStorage<"u")localStorage.setItem(Wk,r);Cb(),ew()}function kb(r){return Lb.add(r),()=>Lb.delete(r)}function tw(){return Cm.useSyncExternalStore(kb,()=>Ec,()=>"dark")}function aw(){let r=Cm.useSyncExternalStore(kb,()=>Js,()=>"system"),u=Cm.useSyncExternalStore(kb,()=>Ec,()=>"dark");return{preference:r,resolved:u,setPreference:bA}}var wb=Y(ce(),1),vA={system:"light",light:"dark",dark:"system"},SA={system:kc,light:Rc,dark:wc},ow={system:"System theme",light:"Light theme",dark:"Dark theme"};function lw(){let{preference:r,setPreference:u}=aw(),i=SA[r];return wb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>u(vA[r]),"aria-label":`${ow[r]} (click to switch)`,title:`${ow[r]} — click to switch`,children:wb.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),xA=fi.map((r,u)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${u+1})`}));function nw({section:r,onSectionChange:u,range:i,onRangeChange:c,children:f}){let[v,p]=Si.useState(!1),b=LA(),{sync:S}=pi();CA(u,c);let k=(x)=>{u(x),p(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),Ke.jsxDEV("header",{className:"topbar","data-scrolled":b,children:[Ke.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>p(!0),"aria-label":"Open navigation",children:Ke.jsxDEV(Cc,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-brand",children:[Ke.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[Ke.jsxDEV("defs",{children:Ke.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ke.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-actions",children:[Ke.jsxDEV("span",{className:"topbar-hide-narrow",children:Ke.jsxDEV(Qk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:xA,value:i,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(lw,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&Ke.jsxDEV("div",{className:"topbar-progress",children:Ke.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&Ke.jsxDEV("div",{className:"drawer-scrim",onClick:()=>p(!1),role:"presentation"},void 0,!1,void 0,this),Ke.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":"Pages",children:[Lm.map((x)=>Ke.jsxDEV("div",{className:"nav-group",children:[Ke.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((C)=>Ke.jsxDEV("button",{type:"button",className:"nav-row","data-active":C.id===r,"aria-current":C.id===r?"page":void 0,onClick:()=>k(C.id),children:[Ke.jsxDEV(C.icon,{size:15},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"nav-row-label",children:C.label},void 0,!1,void 0,this),Ke.jsxDEV("kbd",{children:["G ",C.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))]},x.heading,!0,void 0,this)),Ke.jsxDEV("div",{className:"sidebar-foot micro",children:[Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",Ke.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("main",{className:"shell-panel",children:Ke.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LA(){let[r,u]=Si.useState(!1);return Si.useEffect(()=>{let i=()=>u(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),r}function CA(r,u){Si.useEffect(()=>{let i=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let v=f.target;if(v instanceof HTMLElement&&(v.isContentEditable||v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let p=f.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let S=Lm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){i=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<fi.length)f.preventDefault(),u(fi[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,u])}var Vn=Y(ut(),1);function Oc(r){let[u,i]=r.replace(/^#\/?/,"").split("?"),c=Zk.includes(u)?u:"overview",f=new URLSearchParams(i??""),v=f.get("range"),p=fi.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function km({section:r,range:u,session:i}){let c=i?`&s=${encodeURIComponent(i)}`:"";return`#/${r}?range=${u}${c}`}function rw(){let[r,u]=Vn.useState(()=>Oc(window.location.hash));Vn.useEffect(()=>{let p=()=>u(Oc(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=km(Oc(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let i=Vn.useCallback((p)=>{u(p);let b=km(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Vn.useCallback((p)=>i({...r,section:p,session:p==="traces"?r.session:null}),[r,i]),f=Vn.useCallback((p)=>i({...r,range:p}),[r,i]),v=Vn.useCallback((p)=>i({...r,session:p}),[r,i]);return{...r,setSection:c,setRange:f,setSession:v}}var Im=Y(ut(),1);var pn=Y(ce(),1);function qc({items:r,max:u,onSelect:i}){let c=u??Math.max(0,...r.map((f)=>f.value));return pn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"bar-list-value",children:f.display??q(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?pn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(f.key),children:p},f.key,!1,void 0,this):pn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var $n=Y(ut(),1);var ct=Y(ce(),1),eu=10,kA=24,wA=68,TA=4;function kl({slots:r,tickLabel:u,tooltipTitle:i,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Re,formatRight:S,formatTooltip:k,yMax:h,yMaxRight:x,hidden:C,showTotal:R,references:L,onSelect:D,emptyLabel:_="No data in this range",tooltipExtra:z}){let[F,K]=Sm(),[N,oe]=$n.useState(null),B=$n.useId().replace(/:/g,""),ee=$n.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=$n.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Ue=ee.filter((Et)=>Et.axis==="right"),Mt=(Et)=>v&&(Et.kind??f)!=="line",pa=new Map,re=Array.from({length:r},()=>0),ma=0;for(let Et of V)if(Mt(Et)){let De=re.slice();pa.set(Et.key,De);for(let sl=0;sl<r;sl++)re[sl]+=Et.values[sl]??0}else for(let De=0;De<r;De++)ma=Math.max(ma,Et.values[De]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Ue)for(let De=0;De<r;De++)Ia=Math.max(Ia,Et.values[De]??0);for(let Et of L??[])if(Et.axis==="right")Ia=Math.max(Ia,Et.value);else ma=Math.max(ma,Et.value);let Kt=sw(h??ma),Yt=Ue.length>0?sw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((De)=>!De));return{left:V,right:Ue,bases:pa,stackable:Mt,leftScale:Kt,rightScale:Yt,empty:gt}},[ee,r,v,f,h,x,L]),W=Z.leftScale.ticks.map((V)=>b(V)),X=Z.rightScale?.ticks.map((V)=>(S??b)(V))??[],ge=Math.max(28,uw(W)+12),Be=Z.rightScale?Math.max(28,uw(X)+12):8,Ce=Math.max(0,K-ge-Be),qe=p-eu-kA,te=r>0?Ce/r:0,ve=(V)=>eu+qe-V/Z.leftScale.max*qe,ke=(V)=>eu+qe-V/(Z.rightScale?.max??1)*qe,je=(V)=>ge+(V+0.5)*te,ae=ee.filter((V)=>(V.kind??f)==="bars"),P=ae.filter((V)=>!Z.stackable(V)||V.axis==="right"),ue=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),se=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Ce/wA)))),ne=(V)=>{let Ue=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Ue.left)/(Ue.width/r));oe(Mt>=0&&Mt<r?Mt:null)},pe=N===null?[]:ee.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[N]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||ee.length===1)).sort((V,Ue)=>ee.length>1?Ue.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Ue)=>V+Ue.v,0),Ye=R??(v&&Z.left.length>1);return ct.jsxDEV("div",{className:"chart",ref:F,"data-hovering":N!==null,style:{height:p},children:[K>0&&ct.jsxDEV("svg",{width:K,height:p,role:"img",children:[ct.jsxDEV("defs",{children:ee.filter((V)=>V.pattern==="hatch").map((V)=>ct.jsxDEV("pattern",{id:`${B}-${Tb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ct.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ct.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-grid",children:Z.leftScale.ticks.map((V)=>ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:ve(V),y2:ve(V)},V,!1,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-axis",children:[Z.leftScale.ticks.map((V,Ue)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Ue]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Ue)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Ue]},V,!1,void 0,this)),Array.from({length:r},(V,Ue)=>Ue%se===0?ct.jsxDEV("text",{x:je(Ue),y:p-6,textAnchor:"middle",children:u(Ue)},Ue,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:eu,width:te,height:qe},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Ue=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=iw(r,je,(Kt)=>Ue(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Ue(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${Tb(V.key)})`:V.color;return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{d:`${re}${ma}Z`,fill:Ia,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),ct.jsxDEV("path",{className:"chart-line",d:re,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),ae.map((V)=>{let Ue=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=P.indexOf(V),re=pa>=0?ue/P.length:ue,ma=V.pattern==="hatch"?`url(#${B}-${Tb(V.key)})`:V.color;return ct.jsxDEV("g",{children:V.values.map((Ia,Kt)=>{if(!Ia)return null;let Yt=pa>=0?0:Mt?.[Kt]??0,gt=Ue(Yt),Et=Ue(Yt+Ia),De=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:De,y:Math.min(gt,Et),width:Math.max(1,re-(pa>=0&&P.length>1?1:0)),height:Math.max(Ia>0?1:0,Math.abs(gt-Et)),fill:ma},Kt,!1,void 0,this)})},V.key,!1,void 0,this)}),ee.filter((V)=>(V.kind??f)==="line").map((V)=>{let Ue=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Ue(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:iw(r,je,Mt),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((pa,re)=>{let ma=Mt(re);if(ma===null||re>0&&Mt(re-1)!==null||re<r-1&&Mt(re+1)!==null)return null;return ct.jsxDEV("circle",{cx:je(re),cy:ma,r:2.5,fill:V.color},re,!1,void 0,this)})]},V.key,!0,void 0,this)}),L?.map((V)=>{let Ue=V.axis==="right"?ke(V.value):ve(V.value);return ct.jsxDEV("g",{className:"chart-axis",children:[ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:Ue,y2:Ue,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Ue-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),ct.jsxDEV("line",{className:"chart-baseline",x1:ge,x2:ge+Ce,y1:ve(0),y2:ve(0)},void 0,!1,void 0,this),ct.jsxDEV("rect",{x:ge,y:eu,width:Ce,height:qe,fill:"transparent",onPointerMove:ne,onPointerLeave:()=>oe(null),onClick:D&&N!==null?()=>D(N):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.empty&&ct.jsxDEV("div",{className:"chart-empty",children:_},void 0,!1,void 0,this),N!==null&&!Z.empty&&ct.jsxDEV("div",{className:"chart-tooltip",style:je(N)>K/2?{right:K-je(N)+Math.min(te/2,24)+8,top:eu}:{left:je(N)+Math.min(te/2,24)+8,top:eu},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(i??u)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Ue})=>ct.jsxDEV("div",{className:"chart-tooltip-row",children:[ct.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(S??b)(Ue):(k??b)(Ue)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),Ye&&pe.length>1&&ct.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ct.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:(k??b)(Lt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ct.jsxDEV($n.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sw(r){if(!(r>0))return{max:1,ticks:[0]};let u=r/TA,i=10**Math.floor(Math.log10(u)),c=[1,2,2.5,5,10].map((p)=>p*i).find((p)=>p>=u)??10*i,f=Math.ceil(r/c)*c,v=[];for(let p=0;p<=f+c/2;p+=c)v.push(Number(p.toPrecision(12)));return{max:f,ticks:v}}function uw(r){return r.reduce((u,i)=>Math.max(u,i.length*6.3),0)}function iw(r,u,i){let c="",f=!1;for(let v=0;v<r;v++){let p=i(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${u(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function Tb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var wm=Y(ut(),1),mn=Y(ce(),1);function Qa({items:r,hidden:u,onToggle:i}){return mn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=mn.jsxDEV(mn.Fragment,{children:[mn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),mn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&mn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?mn.jsxDEV("button",{type:"button",className:"legend-item","data-off":u?.has(c.key)??!1,onClick:()=>i(c.key),title:c.label,children:f},c.key,!1,void 0,this):mn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function rl(){let[r,u]=wm.useState(()=>new Set),i=wm.useCallback((c)=>{u((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,i]}var Ib=Y(ce(),1);function Zr({segments:r,height:u=8}){let i=r.reduce((c,f)=>c+Math.max(0,f.value),0);return Ib.jsxDEV("div",{className:"share-bar",style:{height:u},role:"img",children:i>0&&r.filter((c)=>c.value>0).map((c)=>Ib.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/i,background:c.color},title:`${c.label}: ${(c.value/i*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var dw=Y(ce(),1);function Xn({buckets:r,bucketMs:u,onSelectBucket:i,...c}){return dw.jsxDEV(kl,{...c,slots:r.length,tickLabel:(f)=>mm(r[f],u),tooltipTitle:(f)=>pm(r[f],u),onSelect:i?(f)=>i(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],to="#6c6c74";function ya(r,u){return`${r}::${u}`}function Tm(r){return Bc(r.map((u)=>({key:ya(u.model,u.provider),weight:u.totalRequests})))}function Bc(r){let u=[...r].sort((i,c)=>c.weight-i.weight||i.key.localeCompare(c.key));return new Map(u.map((i,c)=>[i.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var IA=128,RA=1500,tu=new Map,Rb=new Map;function MA(r,u){if(tu.delete(r),tu.set(r,u),tu.size>IA){let i=tu.keys().next().value;if(i!==void 0)tu.delete(i)}}function AA(r,u,i){let c=Rb.get(r);if(c)return c;let f=u().then((v)=>(MA(r,{data:v,updatedAt:Date.now(),version:i}),v)).finally(()=>{Rb.delete(r)});return Rb.set(r,f),f}function qt(r,u,i){let c=JSON.stringify(r),f=i?.enabled??!0,v=i?.pollMs,{version:p}=pi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(u);C.current=u;let R=Oa.useRef(c);R.current=c;let L=Oa.useRef(p);L.current=p;let D=Oa.useRef(null),_=Oa.useRef(0),z=Oa.useCallback((B)=>{_.current=Date.now(),x(!0),AA(B,()=>C.current(),L.current).then(()=>{if(R.current!==B)return;Oa.startTransition(()=>{k(null),b()})}).catch((ee)=>{if(R.current!==B)return;k({key:B,error:ee instanceof Error?ee:Error(String(ee))})}).finally(()=>{if(R.current===B)x(!1)})},[]);Oa.useEffect(()=>{if(!f)return;let B=tu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+RA-Date.now():0;if(ee<=0){z(c);return}let Z=setTimeout(()=>z(c),ee);return()=>clearTimeout(Z)},[c,f,p,z]),Oa.useEffect(()=>{if(!f||!v)return;let B=setInterval(()=>{if(!document.hidden)z(R.current)},v);return()=>clearInterval(B)},[f,v,z]);let F=Oa.useCallback(()=>z(R.current),[z]),K=tu.get(c);if(K)D.current={key:c,data:K.data,updatedAt:K.updatedAt};let N=D.current,oe=S?.key===c?S.error:null;return{data:N?.data??null,error:oe,loading:!N&&!oe,stale:!!N&&N.key!==c,refreshing:h,updatedAt:N?.updatedAt??null,refetch:F}}function ba(r,u,i){let c=cw(u),f=Array.from({length:u.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=i(v)}return f}function hn(r,u){let i=cw(u.buckets),c=new Map;for(let k of r){let h=i.get(k.timestamp);if(h===void 0)continue;let x=u.key(k),C=c.get(x);if(!C)C=Array.from({length:u.buckets.length},()=>0),c.set(x,C);C[h]+=u.value(k)}let f=[...c.entries()].map(([k,h])=>({key:k,values:h,total:h.reduce((x,C)=>x+C,0)})).filter((k)=>k.total!==0).sort((k,h)=>h.total-k.total||k.key.localeCompare(h.key)),v=u.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:u.label?u.label(k.key):k.key,color:u.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:u.buckets.length},()=>0);for(let h of b)for(let x=0;x<k.length;x++)k[x]+=h.values[x];S.push({key:"__other__",label:`Other (${b.length})`,color:to,values:k})}return S}function cw(r){let u=new Map;for(let i=0;i<r.length;i++)u.set(r[i],i);return u}var DA=["main","subagent","advisor"];function Wr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function mw(r){let u=new Map;for(let p of r)u.set(p.agentType,p);let i=DA.map((p)=>u.get(p)).filter((p)=>p!==void 0),c=i.reduce((p,b)=>p+Wr(b),0),f=i.reduce((p,b)=>p+b.totalCost,0),v=i.map((p)=>{let b=Wr(p);return{agentType:p.agentType,tokens:b,requests:p.totalRequests,cost:p.totalCost,share:c>0?b/c:0}});return{totalTokens:c,totalCost:f,segments:v}}function hw(r){let u={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},i=new Map;for(let f of r){let v=ya(f.model,f.provider),p=i.get(v);if(!p)p={key:v,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(v,p);fw(p,f),fw(u,f),p.cost+=f.cost,u.totalCost+=f.cost}u.avgDailyCost=u.activeDays>0?u.totalCost/u.activeDays:0,u.models=[...i.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of u.models)f.share=u.totalCost>0?f.cost/u.totalCost:0;let c=u.models[0];return u.topModel=c!==void 0&&c.cost>0?c:null,u}function fw(r,u){r.costInput+=u.costInput,r.costOutput+=u.costOutput,r.costCacheRead+=u.costCacheRead,r.costCacheWrite+=u.costCacheWrite,r.requests+=u.requests,r.unpricedRequests+=u.unpricedRequests}function gw(r){let u=new Map;for(let i of r){let c=ya(i.model,i.provider),f=u.get(c);if(!f)f=[],u.set(c,f);f.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of u.values())i.sort((c,f)=>c.timestamp-f.timestamp);return u}var EA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function yw(r){let u=0,i=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(u+=C.totalRequests,i+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,v+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,p+=C.totalInputTokens,b+=C.totalCacheReadTokens,C.totalRequests>S)S=C.totalRequests;if(C.totalCost>k)k=C.totalCost}let h=0;return{rows:r.map((C)=>{let R=EA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:u>0?C.totalRequests/u:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:u,failedRequests:i,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function bw(r){let u=0,i=0,c=0;for(let f of r)u+=f.calls,i+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:u>0?f.calls/u:0,tokenFraction:i>0?f.totalTokensShare/i:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function jn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Mb(r,u){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(u*r.length)-1))]}function vw(r){let u=0,i=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=jn(h);if(x==="failed")u++;else if(x==="aborted")i++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,Sb(h))v++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)k.push(h.ttft);if(p===null||h.timestamp<p)p=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,x)=>h-x),k.sort((h,x)=>h-x),{requests:r.length,failed:u,aborted:i,tokens:c,cost:f,unpriced:v,medianDuration:Mb(S,0.5),p95Duration:Mb(S,0.95),medianTtft:Mb(k,0.5),oldest:p,newest:b}}var pw=180,OA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,qA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,BA=/\b[0-9a-f]{12,}\b/gi,NA=/(?<![\w.-])\d+(?:\.\d+)?/g,UA=/^[1-5]\d\d$/;function Ab(r){if(!r?.trim())return"Unknown error";let u=r.replace(/\s+/g," ").trim().replace(OA,"<id>").replace(qA,"<id>").replace(BA,"<hex>").replace(NA,(i)=>UA.test(i)?i:"N");return u.length>pw?`${u.slice(0,pw-1)}…`:u}function Sw(r){let u=new Map;for(let i of r){let c=Ab(i.errorMessage),f=u.get(c);if(!f)f={signature:c,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},u.set(c,f);if(f.count++,i.timestamp<f.firstSeen)f.firstSeen=i.timestamp;if(i.timestamp>f.lastSeen)f.lastSeen=i.timestamp,f.latest=i;let v=ya(i.model,i.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:i.model,provider:i.provider,count:1})}return[...u.values()].map(({byModel:i,...c})=>({...c,models:[...i.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((i,c)=>c.count-i.count||c.lastSeen-i.lastSeen)}var Me=Y(ce(),1),PA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],zA=6,_A=86400000,Nc=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],HA=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),FA=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function xw({active:r,range:u}){let i=qt(["costs",u],()=>Ik(u),{enabled:r}),c=na(u),[f,v]=Im.useState("model"),[p,b]=rl(),S=Im.useMemo(()=>i.data?GA(i.data,u):null,[i.data,u]),k=(x)=>x.costSeries.length===0,h=Me.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Me.jsxDEV("div",{className:"page",children:[Me.jsxDEV(ta,{title:"Costs",description:`What ${c.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV(VA,{view:S,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"grid grid-main-side",children:[Me.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Me.jsxDEV(za,{size:"sm",options:PA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:i.stale,children:Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>{if(!S)return null;let x=f==="model"?S.modelSeries:S.componentSeries;return Me.jsxDEV("div",{className:"stack",style:{gap:12},children:[Me.jsxDEV(kl,{slots:S.buckets.length,tickLabel:(C)=>HA.format(S.buckets[C]),tooltipTitle:(C)=>FA.format(S.buckets[C]),series:x,hidden:p,height:280,format:(C)=>sa(C,Number.isInteger(C)?0:2),formatTooltip:(C)=>sa(C),emptyLabel:"No priced usage in this range",tooltipExtra:(C)=>S.unpricedPerDay[C]>0?Me.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Me.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"chart-tooltip-value",children:q(S.unpricedPerDay[C])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Me.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:sa(jA(C.values))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Me.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:i.stale,children:Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV($A,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:i.stale,flush:!0,children:Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:XA(S),initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GA(r,u){let i=r.costSeries,c=hw(i),f=Tm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=zo(u,i.map((k)=>k.timestamp),_A),b=hn(i,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:zA,colors:f}).map((k)=>({...k,values:k.values.map((h)=>h||null)})),S=new Set;for(let k of b){if(k.key==="__other__")continue;if(S.has(k.color))k.color=Ha.find((h)=>!S.has(h))??k.color;S.add(k.color)}return{summary:c,swatches:new Map(b.filter((k)=>k.key!=="__other__").map((k)=>[k.key,k.color])),buckets:p,dailyTotals:ba(i,p,(k)=>k.cost),unpricedPerDay:ba(i,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Nc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(i,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function VA({view:r,stale:u}){let{summary:i}=r,c=i.requests-i.unpricedRequests,f=i.topModel;return Me.jsxDEV("div",{"data-stale":u,children:Me.jsxDEV(aa,{min:180,children:[Me.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(i.totalCost,i.unpricedRequests),hint:`${q(i.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(i.avgDailyCost,i.unpricedRequests),hint:`over ${q(i.activeDays)} active day${i.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${sa(f.cost)} · ${ze(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?Lw(i.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(i.unpricedRequests),hint:i.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function $A({summary:r}){return Me.jsxDEV("div",{className:"stack",style:{gap:14},children:[Me.jsxDEV(Zr,{height:10,segments:Nc.map((u)=>({key:u.key,label:u.label,value:r[u.key],color:u.color}))},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"costs-components",children:[Nc.map((u)=>Me.jsxDEV("div",{className:"costs-component-row",children:[Me.jsxDEV("span",{className:"row",children:[Me.jsxDEV(xl,{color:u.color},void 0,!1,void 0,this),u.label]},void 0,!0,void 0,this),Me.jsxDEV("span",{className:"num",children:sa(r[u.key])},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?ze(r[u.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},u.key,!0,void 0,this)),Me.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Me.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Me.jsxDEV("p",{className:"micro dim",children:[q(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XA(r){let u=Nc.map((i)=>({key:i.key,header:i.label,align:"right",sort:(c)=>c[i.key],render:(c)=>Me.jsxDEV("span",{className:"num",children:sa(c[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(i)=>i.model,render:(i)=>Me.jsxDEV(_a,{lead:Me.jsxDEV(xl,{color:r.swatches.get(i.key)??to},void 0,!1,void 0,this),primary:Me.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(i)=>i.requests,render:(i)=>Me.jsxDEV("span",{className:"num",children:q(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(i)=>i.cost,render:(i)=>Me.jsxDEV(ia,{value:i.cost,max:r.maxModelCost,display:Ot(i.cost,i.unpricedRequests),color:r.swatches.get(i.key)??to},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(i)=>i.share,render:(i)=>Me.jsxDEV("span",{className:"num muted",children:i.cost>0?ze(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Me.jsxDEV(Zr,{segments:Nc.map((c)=>({key:c.key,label:c.label,value:i[c.key],color:c.color}))},void 0,!1,void 0,this):Me.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...u,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Me.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?Lw(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Me.jsxDEV("span",{className:"num tone-warn",children:q(i.unpricedRequests)},void 0,!1,void 0,this):Me.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function Lw(r){return r>0&&r<0.0001?"<$0.0001":sa(r)}function jA(r){let u=0;for(let i of r)u+=i??0;return u}var Yn=Y(ut(),1);var Se=Y(ce(),1),Db=[50,200,1000];function Cw({active:r,range:u,onRequestClick:i}){let[c,f]=Yn.useState(0),v=Db[c],p=qt(["errors",u,v],()=>Rk(u,v),{enabled:r}),[b,S]=Yn.useState(null),[k,h]=Yn.useState(null),[x,C]=Yn.useState(""),R=na(u),L=Yn.useMemo(()=>{let W=(p.data??[]).map((qe)=>({row:qe,signature:Ab(qe.errorMessage)})),X=Sw(p.data??[]),ge=new Map;for(let{row:qe}of W){let te=ya(qe.model,qe.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:qe.model,provider:qe.provider,count:1})}let Be=[...ge.entries()].map(([qe,te])=>({key:qe,...te})).sort((qe,te)=>te.count-qe.count||qe.model.localeCompare(te.model)),Ce=W.reduce((qe,{row:te})=>!qe||te.timestamp>qe.timestamp?te:qe,null);return{rows:W,groups:X,models:Be,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=Yn.useMemo(()=>{let W=x.trim().toLowerCase();return L.rows.filter((X)=>(D===null||X.signature===D)&&(_===null||ya(X.row.model,X.row.provider)===_)&&(W===""||X.row.model.toLowerCase().includes(W)||X.row.provider.toLowerCase().includes(W)||X.row.folder.toLowerCase().includes(W)||(X.row.errorMessage??"").toLowerCase().includes(W))).map((X)=>X.row)},[L.rows,D,_,x]),F=p.data?.length??0,K=!p.stale&&F<v,N=c+1<Db.length?Db[c+1]:null,oe=p.data!==null&&!K?Se.jsxDEV(Se.Fragment,{children:[Se.jsxDEV("span",{children:["Showing the latest ",q(F)," failures in ",R.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),N!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(N)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,B=L.groups[0]?.count??0,ee=Yn.useMemo(()=>YA(B),[B]),Z=L.models.find((W)=>W.key===_);return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ta,{title:"Errors",description:`Failed model requests in ${R.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Se.jsxDEV("div",{"data-stale":p.stale,children:Se.jsxDEV(aa,{min:170,children:[Se.jsxDEV(fe,{label:"Failures",value:q(F),hint:K?`in ${R.windowLabel}`:`latest ${q(F)} loaded`},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:q(L.groups.length),hint:L.groups[0]?`top: ${q(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Affected models",value:q(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Last failure",value:L.newest?ua(L.newest.timestamp):"–",hint:L.newest?nl(L.newest.timestamp):`none in ${R.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"grid grid-main-side",children:[Se.jsxDEV(Ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:L.groups,rowKey:(W)=>W.signature,columns:ee,onRowClick:(W)=>S(D===W.signature?null:W.signature),selectedKey:D,expanded:(W)=>W.signature===D?Se.jsxDEV(QA,{group:W,onRequestClick:i},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(Ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:180},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Se.jsxDEV(qc,{items:L.models.slice(0,12).map((W)=>({key:W.key,label:Se.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Se.jsxDEV("span",{className:"mono truncate",children:W.model},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"dim truncate",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:W.count,color:W.key===_?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(W)=>h(_===W?null:W)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Ve,{index:3,title:"Failures",description:p.data===null?"Loading failures…":`${q(z.length)} of ${q(F)} failures, newest first`,actions:Se.jsxDEV(Se.Fragment,{children:[D!==null&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:D,children:[Se.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),Se.jsxDEV(ol,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[Se.jsxDEV("span",{className:"mono truncate",children:Z.model},void 0,!1,void 0,this),Se.jsxDEV(ol,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(dn,{value:x,onChange:C,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:oe,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:z,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&i(W.id),columns:ZA,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Se.jsxDEV(mt,{title:"No failures match",hint:"Clear the search or the selected filters."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(u)=>u.signature,render:(u)=>Se.jsxDEV("span",{className:"errors-signature",title:u.latest.errorMessage??void 0,children:u.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(u)=>u.models.length,render:(u)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:u.models[0]?.model},void 0,!1,void 0,this),secondary:u.models.length>1?`+${u.models.length-1} more`:u.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(u)=>u.lastSeen,render:(u)=>Se.jsxDEV("span",{className:"muted",title:nl(u.lastSeen),children:ua(u.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(u)=>u.count,render:(u)=>Se.jsxDEV(ia,{value:u.count,max:r,display:q(u.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function QA({group:r,onRequestClick:u}){let i=r.latest.id;return Se.jsxDEV("div",{className:"errors-detail",children:[Se.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"errors-detail-meta",children:[Se.jsxDEV("span",{className:"muted",children:[q(r.count)," failures · first ",nl(r.firstSeen)," · last"," ",nl(r.lastSeen)]},void 0,!0,void 0,this),i!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>u(i),children:["Open latest ",Se.jsxDEV(mc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Se.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Se.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Se.jsxDEV("span",{className:"num",children:Re(c.count)},void 0,!1,void 0,this)]},ya(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ZA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:nl(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>Se.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Se.jsxDEV("span",{className:"mono muted",title:r.folder,children:fn(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Se.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Se.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),WA=1000,Rm=50,Ob=0.5,Uc="*";function ww({active:r,range:u}){let[i,c]=It.useState(!1),f=qt(["frustration",u],()=>Dk(u),{enabled:r,pollMs:i?WA:void 0}),v=na(u),p=f.data?.job.state;It.useEffect(()=>{if(p!==void 0)c(p==="running")},[p]);let{refetch:b}=f,S=It.useCallback(()=>{c(!0),b()},[b]);return j.jsxDEV("div",{className:"page",children:[j.jsxDEV(ta,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${v.windowLabel}.`},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:(k)=>j.jsxDEV("div",{"data-stale":f.stale,children:j.jsxDEV(KA,{overall:k.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:120},void 0,!1,void 0,this),children:(k)=>j.jsxDEV(JA,{active:r,range:u,judgeAvailable:k.judgeAvailable,job:k.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Ve,{index:2,title:"Frustration by model version",children:[j.jsxDEV(Tt,{height:340},void 0,!1,void 0,this),j.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(k)=>j.jsxDEV(i2,{models:k.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wl(r,u){return u>0?ze(r/u):"–"}function Eb(r){return r instanceof Error?r.message:String(r)}function Tw(r){let u=Math.max(0,Math.floor(r/1000)),i=Math.floor(u/60),c=u%60;return i>0?`${i}m ${String(c).padStart(2,"0")}s`:`${c}s`}function KA({overall:r}){let u=r.messages-r.judged;return j.jsxDEV(aa,{min:170,children:[j.jsxDEV(fe,{label:"User messages",title:"User messages with prose in range",value:q(r.messages)},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:wl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(u)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:wl(r.annoyed,r.messages),hint:`${q(r.annoyed)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"At assistant",title:"Messages annoyed at the assistant",value:wl(r.atAssistant,r.messages),hint:`${q(r.atAssistant)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:wl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function JA({active:r,range:u,judgeAvailable:i,job:c,onRunStarted:f,onRunChanged:v}){let[p,b]=It.useState(!1),[S,k]=It.useState({status:"loading"}),[h,x]=It.useState(!1),[C,R]=It.useState(null),[L,D]=It.useState(!1),[_,z]=It.useState(null),F=It.useRef(null),K=c.state==="running",N=It.useCallback(()=>{F.current?.abort(),F.current=null,b(!1)},[]);It.useEffect(()=>{if(!r)N()},[r,N]),It.useEffect(()=>()=>F.current?.abort(),[]);let oe=()=>{F.current?.abort();let X=new AbortController;F.current=X;let ge=u;k({status:"loading"}),R(null),z(null),b(!0),Ek(ge,X.signal).then((Be)=>{if(!X.signal.aborted)k({status:"ready",estimate:Be,range:ge})},(Be)=>{if(!X.signal.aborted)k({status:"error",message:Eb(Be)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Ok(S.range),N(),f()}catch(X){R(Eb(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await qk(),v()}catch(X){z(Eb(X))}finally{D(!1)}},Z=S.status==="ready"?S.estimate:null,W=S.status==="loading"?{label:"Proceed",onClick:B,disabled:!0}:Z?.available?{label:h?"Starting…":"Proceed",onClick:B,disabled:h||Z.messages===0}:void 0;return j.jsxDEV(Ve,{index:1,title:j.jsxDEV(j.Fragment,{children:["Judge classification ",j.jsxDEV(e2,{job:c,judgeAvailable:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:j.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:oe,disabled:!i||K,title:!i?kw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(ln,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[j.jsxDEV("div",{className:"stack frustration-judge",children:[K?j.jsxDEV(a2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(o2,{job:c},void 0,!1,void 0,this),!i&&j.jsxDEV("p",{className:"micro dim",children:kw},void 0,!1,void 0,this),_&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(Yk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(t2,{estimate:S},void 0,!1,void 0,this),C&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function e2({job:r,judgeAvailable:u}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(sn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return j.jsxDEV(wt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return j.jsxDEV(wt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return j.jsxDEV(wt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return j.jsxDEV(wt,{children:u?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function t2({estimate:r}){if(r.status==="loading")return j.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return j.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let u=r.estimate;if(!u.available)return j.jsxDEV("p",{children:u.reason},void 0,!1,void 0,this);if(u.messages===0)return j.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"frustration-quote",children:[j.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",sa(u.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(Ho,{items:[{key:"messages",label:"Unjudged unique messages",value:q(u.messages)},{key:"chars",label:"Prose characters",value:q(u.chars)},{key:"tokens",label:"Estimated input tokens",value:q(u.inputTokens)},{key:"judge",label:"Judge",value:u.judge}]},void 0,!1,void 0,this),j.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function a2({job:r,cancelling:u,onCancel:i}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return j.jsxDEV("div",{className:"stack frustration-progress",children:[j.jsxDEV("div",{className:"row frustration-progress-head",children:[j.jsxDEV("span",{className:"num",children:[q(r.done),"/",q(r.total)," judged"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"num dim",children:ze(f)},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:u,children:u?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:j.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[j.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[q(r.failed)," failed"]},void 0,!0,void 0,this),j.jsxDEV("span",{children:["cost so far ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&j.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&j.jsxDEV("span",{children:["elapsed ",Tw(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&j.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&j.jsxDEV("span",{className:"num",children:[q(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function o2({job:r}){let u=`${q(r.done)}/${q(r.total)} messages`,i=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${Tw(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return j.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return j.jsxDEV("p",{className:"muted",children:["Last run judged ",u,i,c,f," for ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return j.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",u,i,"; spent ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return j.jsxDEV("p",{className:"muted",children:["Last run failed after ",u,i,": ",j.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function zc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function xi(r){return r.messages>0&&r.judged/r.messages<Ob}function l2(r){let u=2166136261;for(let i=0;i<r.length;i++)u^=r.charCodeAt(i),u=Math.imul(u,16777619);return u>>>0}function n2(r){let u=[...new Set(r.map(zc))].sort(),i=new Set,c=new Map;for(let f of u){let v=l2(f)%Ha.length;for(let p=0;p<Ha.length&&i.has(v);p++)v=(v+1)%Ha.length;i.add(v),c.set(f,Ha[v])}return c}function r2(r,u){if(u==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(u==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var s2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function u2(r,u){if(u==="angry")return r.angry;if(u==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Pc(r,u){return u>0?r/u*100:0}function i2({models:r,stale:u}){let[i,c]=It.useState(null),[f,v]=rl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>n2(r),[r]),x=It.useMemo(()=>{let B=new Map;for(let ee of r)B.set(ee.modelClass,(B.get(ee.modelClass)??0)+ee.messages);return B},[r]),C=It.useMemo(()=>{let B=null,ee=-1;for(let[Z,W]of x)if(W>ee)B=Z,ee=W;return B??Uc},[x]),R=i!==null&&(i===Uc||x.has(i))?i:C,L=It.useMemo(()=>[{value:Uc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Uc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=zc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Uc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(zc(B))),[D,f]),F=z.filter((B)=>B.messages<Rm).length,K=z.filter(xi).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Rm)&&!(S&&xi(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:u,children:j.jsxDEV(mt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let oe=N.some(xi);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV(Ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:u,children:j.jsxDEV("div",{className:"stack frustration-chart-body",children:[j.jsxDEV("div",{className:"frustration-classes",children:j.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:R,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row frustration-filters",children:[j.jsxDEV(Qa,{items:_.map((B)=>({key:B.key,label:B.label,color:h.get(B.key)??Ha[0],value:q(B.messages)})),hidden:f,onToggle:v},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("label",{className:"check",title:`Models with fewer than ${Rm} messages have noisy rates`,children:[j.jsxDEV("input",{type:"checkbox",checked:p,onChange:(B)=>b(B.target.checked)},void 0,!1,void 0,this),"Include < ",Rm," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Ob*100}% judged messages (rates from regex signals)`,children:[j.jsxDEV("input",{type:"checkbox",checked:S,onChange:(B)=>k(B.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",K>0?` (${K})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(d2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(c2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(f2,{rows:N,familyColors:h,stale:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function d2({hasRegexRows:r}){return j.jsxDEV("div",{className:"legend frustration-key",children:[j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Ob*100}% of these messages are judged; their rates come from regex signals`,children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function c2({rows:r,familyColors:u}){let i=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=zc(v),S=xi(v),k=`${b}|${S?"regex":"judged"}`,h=c.get(k);if(h)h.slots.push(p);else c.set(k,{family:b,regex:S,slots:[p]})});let f=[];for(let v of s2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Pc(u2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:r2(u.get(b.family)??Ha[0],v.key),values:S,pattern:b.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((v)=>Pc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,u]);if(r.length===0)return j.jsxDEV("div",{className:"frustration-chart-empty",children:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return j.jsxDEV(kl,{slots:r.length,tickLabel:(c)=>r[c].label,series:i,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return j.jsxDEV("div",{className:"frustration-tooltip-extra",children:[j.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[j.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"chart-tooltip-value",children:wl(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"micro dim",children:[q(f.messages)," messages · judged ",q(f.judged)," (",wl(f.judged,f.messages),")",xi(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function f2({rows:r,familyColors:u,stale:i}){let c=It.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>j.jsxDEV("span",{className:"row",title:f.key,children:[j.jsxDEV("span",{className:"swatch",style:{background:u.get(zc(f))??Ha[0]}},void 0,!1,void 0,this),j.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>j.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>j.jsxDEV("span",{className:"num",children:q(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>xi(f)?j.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[j.jsxDEV(wt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num dim",children:wl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:wl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Pc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:wl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Pc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:wl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Pc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:wl(f.angry,f.messages)},void 0,!1,void 0,this)}],[u]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:i,children:j.jsxDEV(zt,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var _c=Y(ut(),1);var xt=Y(ce(),1),p2=86400000,m2={snapcompact:"Snapcompact"},h2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Iw({active:r,range:u}){let[i,c]=_c.useState(null),f=qt(["gain",u,i],()=>Nk(u,i),{enabled:r}),v=na(u),p=f.data,b=_c.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=zo(u,R.map((F)=>F.timestamp),p2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,u]),S=_c.useMemo(()=>{if(!p)return[];let R=p.overall.savedTokens;return Object.keys(p.bySource).map((L)=>({...p.bySource[L],source:L,share:R>0?p.bySource[L].savedTokens/R:0}))},[p]),k=p?.projects??[],h=i!==null&&!k.includes(i)?[i,...k]:k,x=i?` for ${i}`:"",C=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return xt.jsxDEV("div",{className:"page",children:[xt.jsxDEV(ta,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${v.windowLabel}.`,actions:h.length>0&&xt.jsxDEV("select",{className:"input","aria-label":"Project",value:i??"",onChange:(R)=>c(R.target.value||null),style:{maxWidth:320},children:[xt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((R)=>xt.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_e,{query:f,skeleton:xt.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),isEmpty:(R)=>R.overall.hits===0&&R.timeSeries.length===0,empty:xt.jsxDEV(Ve,{children:xt.jsxDEV(mt,{title:`No savings recorded${x} in ${v.windowLabel}`,hint:u==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:R})=>xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("div",{"data-stale":f.stale,children:xt.jsxDEV(aa,{min:180,children:[xt.jsxDEV(fe,{label:"Saved tokens",value:Re(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:xb(R.savedBytes)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:R.reductionPercent!==null?ze(R.reductionPercent):"–",hint:R.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Hits",value:q(R.hits)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved per hit",value:R.hits>0?Re(R.savedTokens/R.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:xt.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:xt.jsxDEV(kl,{slots:b.buckets.length,tickLabel:(L)=>h2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Re},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:xt.jsxDEV(zt,{rows:S,rowKey:(L)=>L.source,columns:g2},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var g2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:m2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>xt.jsxDEV("span",{title:q(r.savedTokens),children:xt.jsxDEV(ia,{value:r.share,max:1,display:Re(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>xt.jsxDEV("span",{className:"num muted",children:ze(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>xt.jsxDEV("span",{className:"num",children:xb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>xt.jsxDEV("span",{className:"num",children:q(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>xt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?ze(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var Hc=Y(ut(),1);var Le=Y(ce(),1),y2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],b2=6;function Mw({active:r,range:u}){let i=qt(["models",u],()=>Tk(u),{enabled:r}),c=na(u),[f,v]=Hc.useState("share"),[p,b]=rl(),[S,k]=Hc.useState(null),h=Hc.useMemo(()=>i.data?v2(i.data,u):null,[i.data,u]),x=C2(c.bucketMs),C=(L)=>L.byModel.length===0,R=Le.jsxDEV(mt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ta,{title:"Models",description:`Which models did the work in ${c.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:i,skeleton:Le.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{"data-stale":i.stale,children:Le.jsxDEV(aa,{min:200,children:[Le.jsxDEV(fe,{label:"Models used",value:q(h.models.length),hint:`across ${q(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${ze(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Le.jsxDEV(za,{size:"sm",options:y2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:i.stale,children:Le.jsxDEV(_e,{query:i,skeleton:Le.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV(Xn,{buckets:h.buckets,bucketMs:c.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:p,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(L)=>ze(L,0):Re,formatTooltip:f==="share"?(L)=>ze(L):q,showTotal:f==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Qa,{items:h.countSeries.map((L)=>({key:L.key,label:L.label,color:L.color,value:ze(Rw(L.values)/Math.max(1,Rw(h.requestTotals)))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:i.stale,flush:!0,children:Le.jsxDEV(_e,{query:i,skeleton:Le.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV(zt,{rows:h.models,rowKey:(L)=>ya(L.model,L.provider),columns:x2(h,S,x),initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(L)=>{let D=ya(L.model,L.provider);k((_)=>_===D?null:D)},selectedKey:S,expanded:(L)=>{let D=ya(L.model,L.provider);return D===S?Le.jsxDEV(L2,{model:L,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:c.bucketMs,bucketWord:x},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function v2(r,u){let i=r.byModel,c=Tm(i),f=S2(i),v=zo(u,r.modelSeries.map((_)=>_.timestamp)),p=ba(r.modelSeries,v,(_)=>_.requests),b={buckets:v,key:(_)=>ya(_.model,_.provider),label:(_)=>f.get(_)??_,value:(_)=>_.requests,colors:c},S=hn(r.modelSeries,{...b,limit:b2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(hn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of i){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:i,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(i.map((_)=>_.provider)).size,totalRequests:C,failedRequests:R,totalCost:L,unpricedRequests:D,maxRequests:x?.totalRequests??0,buckets:v,requestTotals:p,countSeries:S,shareSeries:k,trends:h,performance:gw(r.modelPerformanceSeries)}}function S2(r){let u=new Map;for(let i of r)u.set(i.model,(u.get(i.model)??0)+1);return new Map(r.map((i)=>[ya(i.model,i.provider),(u.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function x2(r,u,i){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===u,children:Le.jsxDEV(Sl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(c)=>c.model,render:(c)=>Le.jsxDEV(_a,{lead:Le.jsxDEV(xl,{color:r.swatches.get(ya(c.model,c.provider))??to},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(c)=>c.totalRequests,render:(c)=>Le.jsxDEV(ia,{value:c.totalRequests,max:r.maxRequests,display:q(c.totalRequests),color:r.swatches.get(ya(c.model,c.provider))??to},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(c)=>c.totalCost,render:(c)=>Le.jsxDEV("span",{className:"num",children:Ot(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(c)=>Wr(c),render:(c)=>{let f=Wr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Re(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(c)=>c.cacheRate,render:(c)=>Le.jsxDEV("span",{className:"num",children:ze(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:`${q(c.failedRequests)} failed`,children:Le.jsxDEV(wt,{tone:un(c.errorRate),mono:!0,children:eo(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:cn(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:vt(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${i}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(yi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??to,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function L2({model:r,color:u,points:i,bucketMs:c,bucketWord:f}){let[v,p]=rl(),b=[{key:"tps",label:"Tokens/s",color:u,kind:i.length>1?"line":"bars",values:i.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:to,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((S)=>S.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${un(r.errorRate)}`,children:[eo(r.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",q(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:ze(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:ze(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:q(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"dur",label:"Avg duration",value:vt(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:vt(r.avgTtft)},{key:"tps",label:"Tokens/s",value:cn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"in",label:"Uncached input",value:Re(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Re(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Re(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Re(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:["First seen ",ua(r.firstTimestamp)," · last seen"," ",ua(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),Le.jsxDEV(Qa,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV(Xn,{buckets:i.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Re,formatTooltip:(S)=>`${cn(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:q(i[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function C2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Rw(r){let u=0;for(let i of r)u+=i??0;return u}var Mm=Y(ut(),1);var Ie=Y(ce(),1),k2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Aw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Dw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Ew=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function Ow({active:r,range:u,onRequestClick:i}){let c=qt(["overview",u],()=>wk(u),{enabled:r}),f=qt(["recent-requests"],()=>hm(12),{enabled:r}),[v,p]=Mm.useState("requests"),b=na(u),S=Mm.useMemo(()=>{let h=c.data?.timeSeries??[],x=zo(u,h.map((C)=>C.timestamp));return{buckets:x,requests:ba(h,x,(C)=>C.requests-C.errors),errors:ba(h,x,(C)=>C.errors),tokens:ba(h,x,(C)=>C.tokens),cost:ba(h,x,(C)=>C.cost),all:ba(h,x,(C)=>C.requests)}},[c.data,u]),k=v==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:v==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ta,{title:"Overview",description:`Everything omp did across your sessions in ${b.windowLabel}.`},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(aa,{min:190,children:[Ie.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(Wr(h)),hint:`${Re(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:ze(h.cacheRate),hint:`${ze(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:eo(h.errorRate),hint:`${q(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(aa,{min:140,children:[Ie.jsxDEV(fe,{size:"sm",label:"Uncached input",value:Re(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Re(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Re(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Re(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Premium requests",value:q(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Tokens/s",value:cn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg latency",value:vt(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg TTFT",value:vt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ve,{index:1,title:"Activity",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}`,actions:Ie.jsxDEV(za,{size:"sm",options:k2,value:v,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV(Xn,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Re},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:x})=>{let C={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},R=Wr(h),L=mw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Zr,{segments:Ew.map((D)=>({key:D.key,label:D.label,value:C[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Qa,{items:Ew.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?ze(C[D.key]/R,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Ie.jsxDEV(Zr,{segments:L.segments.map((D)=>({key:D.agentType,label:Aw[D.agentType],value:D.tokens,color:Dw[D.agentType]}))},void 0,!1,void 0,this),L.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:Dw[D.agentType]}},void 0,!1,void 0,this),Aw[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:[q(D.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Re(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:ze(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(Ve,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(sn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${u}`,children:["All requests ",Ie.jsxDEV(pc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(_e,{query:f,skeleton:Ie.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(zt,{rows:h,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&i(x.id),columns:w2,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var w2=[{key:"model",header:"Model",render:(r)=>Ie.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Ie.jsxDEV("span",{className:"muted",children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Ie.jsxDEV(wt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Ie.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var Tl=Y(ut(),1);var He=Y(ce(),1),T2=100,qw=8;function Bw({active:r,range:u}){let i=qt(["projects",u],()=>Bk(u),{enabled:r}),[c,f]=Tl.useState(""),[v,p]=Tl.useState(!0),b=Tl.useDeferredValue(c.trim().toLowerCase()),S=na(u),k=Tl.useMemo(()=>yw(i.data??[]),[i.data]),h=Tl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=Tl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=Tl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,qw),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,qw)}),[h]),R=He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=Tl.useMemo(()=>I2(k.maxRequests,k.maxCost),[k]);return He.jsxDEV("div",{className:"page",children:[He.jsxDEV(ta,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":i.stale,children:He.jsxDEV(aa,{min:180,children:[He.jsxDEV(fe,{label:"Folders",value:q(k.rows.length),hint:k.temporaryCount>0?`${q(k.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Requests",value:q(k.totalRequests),hint:`${q(k.failedRequests)} failed`},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(k.totalCost,k.unpricedRequests),hint:k.unpricedRequests>0?`${q(k.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(k.conversationTokens)},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:ze(k.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV("div",{className:"grid grid-2",children:[He.jsxDEV(Ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:i.stale,children:He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(qc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:fn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${ze(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV(Ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:i.stale,children:He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(qc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:fn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${ze(D.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),He.jsxDEV(Ve,{index:3,title:"Folders",description:i.data?x.length===k.rows.length?`${q(k.rows.length)} folders`:`${q(x.length)} of ${q(k.rows.length)} folders`:void 0,actions:He.jsxDEV(He.Fragment,{children:[k.temporaryCount>0&&He.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[He.jsxDEV("input",{type:"checkbox",checked:v,onChange:(D)=>p(D.target.checked)},void 0,!1,void 0,this),"Hide temporary (",q(k.temporaryCount),")"]},void 0,!0,void 0,this),He.jsxDEV(dn,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>He.jsxDEV(zt,{rows:x,rowKey:(D)=>D.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:T2,dense:!0,empty:He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"No folders match",hint:k.rows.length===0?"Try a longer range.":v&&k.temporaryCount>0?"Temporary folders are hidden.":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function I2(r,u){return[{key:"folder",header:"Folder",sort:(i)=>i.folder,render:(i)=>He.jsxDEV("span",{className:"row projects-folder",title:i.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:fn(i.folder)},void 0,!1,void 0,this),i.temporary&&He.jsxDEV(wt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(i)=>i.totalRequests,render:(i)=>He.jsxDEV("span",{title:`${ze(i.requestShare)} of all requests`,children:He.jsxDEV(ia,{value:i.totalRequests,max:r,display:q(i.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(i)=>i.totalCost,render:(i)=>He.jsxDEV("span",{title:`${ze(i.costShare)} of all cost`,children:He.jsxDEV(ia,{value:i.totalCost,max:u,display:Ot(i.totalCost,i.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(i)=>i.conversationTokens,render:(i)=>He.jsxDEV("span",{className:"num",title:q(i.conversationTokens),children:Re(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(i)=>i.cacheRate,render:(i)=>He.jsxDEV("span",{className:"num",children:ze(i.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(i)=>i.cacheSavings,render:(i)=>He.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:ze(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(i)=>i.errorRate,render:(i)=>He.jsxDEV("span",{title:`${q(i.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:i.failedRequests>0?un(i.errorRate):"neutral",mono:!0,children:eo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>He.jsxDEV("span",{className:"num",children:vt(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>He.jsxDEV("span",{className:"dim",children:ua(i.lastTimestamp)},void 0,!1,void 0,this)}]}var fo=Y(ut(),1);var J=Y(ce(),1),R2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],Nw=6,Uw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],Pw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function zw({active:r,range:u}){let i=qt(["providers",u],()=>Pk(u),{enabled:r}),[c,f]=fo.useState("tokens"),[v,p]=rl(),b=na(u),S=qt(["provider-windows",u],()=>bb(u,null),{enabled:r}),[k,h]=fo.useState(null),x=M2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",u,C],()=>bb(u,C),{enabled:r&&C!==null}),L=fo.useMemo(()=>{let F=i.data?.providers??[],K=i.data?.series??[],N=Bc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=zo(u,K.map((Z)=>Z.timestamp)),B={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Z of F)B.requests+=Z.totalRequests,B.failed+=Z.failedRequests,B.tokens+=Z.totalTokens,B.cost+=Z.totalCost,B.unpriced+=Z.unpricedRequests;let ee=(Z)=>hn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:Nw,colors:N}).map((W)=>({...W,values:W.values.map((X)=>X||null)}));return{colors:N,buckets:oe,totals:B,burn:{tokens:ee((Z)=>Z.totalTokens),cost:ee((Z)=>Z.cost),requests:ee((Z)=>Z.requests)},spark:{tokens:ba(K,oe,(Z)=>Z.totalTokens),cost:ba(K,oe,(Z)=>Z.cost),requests:ba(K,oe,(Z)=>Z.requests)},topProvider:F.reduce((Z,W)=>Z===null||W.totalTokens>Z.totalTokens?W:Z,null)}},[i.data,u]),D=L.burn[c],_=c==="cost"?(F)=>sa(F):Re,z=L.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(ta,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${b.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":i.stale,children:J.jsxDEV(aa,{min:190,children:[J.jsxDEV(fe,{label:"Providers",value:q(F.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Requests",value:q(z.requests),hint:`${q(z.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(z.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(z.cost,z.unpriced),hint:z.unpriced>0?`${q(z.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Error rate",value:eo(z.requests>0?z.failed/z.requests:0),hint:`${q(z.requests-z.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Ve,{index:1,title:"Provider totals",description:z.unpriced>0?`Cost is an API-equivalent estimate and excludes ${q(z.unpriced)} unpriced subscription request${z.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:i.stale,children:J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(A2,{providers:F,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("div",{className:"grid grid-main-side",children:[J.jsxDEV(Ve,{index:2,title:"Burn by provider",description:c==="cost"&&z.unpriced>0?`API-equivalent estimate per ${b.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${Nw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:R2,value:c,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Xn,{buckets:L.buckets,bucketMs:b.bucketMs,series:D,hidden:v,height:260,format:_,formatTooltip:c==="cost"?(F)=>sa(F):q,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:D.map((F)=>({key:F.key,label:F.label,color:F.color,value:_(F.values.reduce((K,N)=>K+(N??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(E2,{hourly:F,providers:K,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:J.jsxDEV(_e,{query:S,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(F)=>J.jsxDEV(O2,{insights:F.windowInsights,selected:x,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(P2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function M2(r,u){if(u&&r.some((c)=>c.provider===u.provider&&c.windowKey===u.windowKey))return u;let i=u&&r.find((c)=>c.provider===u.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function A2({providers:r,colors:u}){let[i,c]=fo.useState(null),f=fo.useMemo(()=>{let v=0,p=0,b=0;for(let S of r)v=Math.max(v,S.totalRequests),p=Math.max(p,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(xl,{color:u.get(S.provider)??to},void 0,!1,void 0,this),J.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>J.jsxDEV(ia,{value:S.totalRequests,max:v,display:q(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let k=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return J.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[J.jsxDEV("span",{className:"num dim",children:q(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(wt,{tone:S.failedRequests>0?un(k):"neutral",mono:!0,children:eo(k)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>J.jsxDEV("span",{className:"num",children:q(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV(ia,{value:S.totalTokens,max:p,display:Re(S.totalTokens),color:u.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV("span",{className:"num muted",children:ze(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>J.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${q(S.unpricedRequests)} unpriced`:void 0,children:Ot(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>J.jsxDEV("span",{className:"num",children:cn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>J.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:q(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,u]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===i?J.jsxDEV(D2,{provider:v},void 0,!1,void 0,this):null,empty:J.jsxDEV(mt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function D2({provider:r}){let u={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Zr,{segments:Uw.map((i)=>({key:i.key,label:i.label,value:u[i.key],color:i.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Uw.map((i)=>({key:i.key,label:i.label,color:i.color,value:`${Re(u[i.key])} · ${r.totalTokens>0?ze(u[i.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Fc="";function E2({hourly:r,providers:u,stale:i}){let[c,f]=fo.useState(Fc),v=c===Fc||u.some((S)=>S.provider===c)?c:Fc,p=fo.useMemo(()=>{let S=Array.from({length:24},()=>0),k=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(v!==Fc&&L.provider!==v)continue;S[L.hour]+=L.totalTokens,k[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let x=0;for(let L=1;L<24;L++)if(S[L]>S[x])x=L;let C=S[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,D)=>C&&D===x?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,D)=>C&&D===x?L:null)}],output:k,requests:h,peak:x,hasData:C}},[r,v]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(Ve,{index:3,title:"Peak burn hours",description:p.hasData?`Tokens by local hour of day; peak at ${b(p.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:v,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Fc,children:"All providers"},void 0,!1,void 0,this),u.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:J.jsxDEV(kl,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:p.series,height:260,showTotal:!1,formatTooltip:q,emptyLabel:"No activity in this range",tooltipExtra:(S)=>J.jsxDEV(J.Fragment,{children:[J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function O2({insights:r,selected:u,onSelect:i}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:q2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:u?`${u.provider}::${u.windowKey}`:null,onRowClick:(c)=>i({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Pw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var q2=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>J.jsxDEV(_a,{primary:r.windowLabel,secondary:J.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>J.jsxDEV("span",{className:"num",children:q(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>J.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?J.jsxDEV("span",{className:"num",children:Re(r.estTokensPerWindow)},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let u=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(ia,{value:r.peakConcurrentFraction,max:r.accounts,display:ze(r.peakConcurrentFraction,0),color:u>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.idealAccounts)," · have ",q(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:q(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Am=60000,Qn=60*Am,Dm=24*Qn,B2=[5*Am,15*Am,30*Am,Qn,2*Qn,3*Qn,6*Qn,12*Qn,Dm],N2=240,U2=6*Qn;function P2({insights:r,accounts:u,selected:i,onSelect:c}){let[f,v]=rl(),p=fo.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=fo.useMemo(()=>(r??[]).filter((L)=>L.provider===i?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,i?.provider]),S=fo.useMemo(()=>(u.data?.usageSeries??[]).filter((L)=>L.provider===i?.provider),[u.data,i?.provider]),k=S.length===0&&(u.loading||u.stale),h=fo.useMemo(()=>{let L=new Map;for(let _ of S){let z=L.get(_.accountLabel)??[];if(!z.includes(_.accountKey))z.push(_.accountKey);L.set(_.accountLabel,z)}let D=new Map;for(let[_,z]of L)z.sort(),z.forEach((F,K)=>D.set(F,z.length>1?`${_} #${K+1}`:_));return D},[S]),x=fo.useMemo(()=>z2(S.filter((L)=>L.windowKey===i?.windowKey),h),[S,h,i?.windowKey]),C=fo.useMemo(()=>{let L=new Map(x.series.map((D)=>[D.key,D.color]));return S.map((D)=>{let _=null,z=null;for(let N of D.points){if(N.usedFraction===null)continue;if(z=Math.max(z??0,N.usedFraction),!_||N.timestamp>=_.timestamp)_={fraction:N.usedFraction,exhausted:N.exhausted,timestamp:N.timestamp}}let F=D.windowKey===i?.windowKey?L.get(D.accountKey)??null:null,K=h.get(D.accountKey)??D.accountLabel;return{series:D,name:K,color:F,latest:_,peak:z,samples:D.points.length}}).sort((D,_)=>Number(_.color!==null)-Number(D.color!==null)||D.series.windowLabel.localeCompare(_.series.windowLabel)||(_.latest?.fraction??-1)-(D.latest?.fraction??-1))},[S,h,x.series,i?.windowKey]),R=b.find((L)=>L.key===i?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${nn(new Date(x.first),"MMM d HH:mm")} – ${nn(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:i&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(L)=>{let D=L.target.value,_=r?.find((z)=>z.provider===D);if(_)c({provider:D,windowKey:_.windowKey})},"aria-label":"Provider",children:p.map((L)=>J.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(L)=>c({provider:i.provider,windowKey:L.target.value}),"aria-label":"Window",children:b.map((L)=>J.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:u.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):i===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Pw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>k?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):J.jsxDEV("div",{className:"stack",style:{gap:16},children:[J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(kl,{slots:x.buckets.length,tickLabel:(L)=>mm(x.buckets[L],x.last-x.first>Dm?Dm:x.bucketMs),tooltipTitle:(L)=>pm(x.buckets[L],Qn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>ze(L,0),formatTooltip:(L)=>ze(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let D=x.exhausted[L];return D.length>0?J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),x.series.length>1&&J.jsxDEV(Qa,{items:x.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV(zt,{rows:C,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:H2,limit:16,onRowClick:(L)=>c({provider:L.series.provider,windowKey:L.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function z2(r,u){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<i)i=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=i))return{buckets:[],bucketMs:Qn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-i,v=B2.find((R)=>f/R<N2)??Dm,p=zo("all",[i],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>u.get(R.accountKey)??R.accountLabel,C=[...r].sort((R,L)=>h(R).localeCompare(h(L))).map((R,L)=>{let D=p.map(()=>null),_=p.map(()=>0);for(let K of R.points){let N=b(K.timestamp);if(N<0||N>=p.length)continue;if(K.exhausted&&!S[N].includes(h(R)))S[N].push(h(R));if(K.usedFraction===null||K.timestamp<_[N])continue;D[N]=K.usedFraction,_[N]=K.timestamp,k=Math.max(k,K.usedFraction)}let z=null,F=0;for(let K=0;K<p.length;K++)if(D[K]!==null)z=D[K],F=_[K];else if(z!==null&&p[K]-F<=U2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:i,last:c,max:k,series:C,exhausted:S}}function _2(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(wt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(wt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var H2=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&J.jsxDEV(xl,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>J.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?J.jsxDEV(ia,{value:r.latest.fraction,max:1,display:ze(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>_2(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>J.jsxDEV("span",{className:"num",children:r.peak===null?"–":ze(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>J.jsxDEV("span",{className:"muted",children:r.latest?ua(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var au=Y(ut(),1);var Je=Y(ce(),1),Em={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function _w({id:r,onClose:u}){let i=qt(["request",r],()=>Mk(r??0),{enabled:r!==null}),c=i.stale?null:i.data,f=c?Em[jn(c)]:null;return Je.jsxDEV(ym,{open:r!==null,onClose:u,width:620,title:c?Je.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):"Request",subtitle:c?Je.jsxDEV(Je.Fragment,{children:[c.provider," ·"," ",Je.jsxDEV("span",{title:nl(c.timestamp),children:ua(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?Je.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?Je.jsxDEV("div",{className:"row",style:{gap:6},children:[Je.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:km({...Oc(window.location.hash),section:"traces",session:c.sessionFile}),onClick:u,title:"Open this request's session in the trace view",children:[Je.jsxDEV(Sc,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),Je.jsxDEV(wt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?Je.jsxDEV(F2,{details:c,aborted:jn(c)==="aborted"},void 0,!1,void 0,this):i.error?Je.jsxDEV(vi,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):Je.jsxDEV("div",{className:"stack",style:{gap:12},children:[Je.jsxDEV(Ea,{height:56},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function F2({details:r,aborted:u}){let{usage:i}=r,c=r.duration!==null&&r.duration>0&&i.output>0?i.output*1000/r.duration:null,{messages:f,output:v,...p}=r;return Je.jsxDEV(Je.Fragment,{children:[r.errorMessage&&Je.jsxDEV("section",{className:"request-drawer-error","data-tone":u?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:u?"Aborted":"Error"},void 0,!1,void 0,this),Je.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),Je.jsxDEV(Ho,{items:[{key:"at",label:"Started",value:nl(r.timestamp)},{key:"duration",label:"Duration",value:vt(r.duration)},{key:"ttft",label:"Time to first token",value:vt(r.ttft)},{key:"tps",label:"Output tokens/s",value:cn(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Je.jsxDEV(Ho,{items:[{key:"input",label:"Uncached input",value:q(i.input)},{key:"cacheRead",label:"Cache read",value:q(i.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(i.cacheWrite)},{key:"output",label:"Output",value:q(i.output)},{key:"total",label:"Total",value:q(i.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),Je.jsxDEV(Ho,{items:[{key:"total",label:"Total",value:Qr(r,4)},{key:"input",label:"Input",value:sa(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:sa(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:sa(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:sa(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),Je.jsxDEV(Ho,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:Je.jsxDEV("span",{title:r.folder,children:fn(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"request-drawer-file",children:[Je.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v!=null&&Je.jsxDEV(mi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(mi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(mi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),qb=[500,2000,1e4];function Hw({active:r,range:u,onRequestClick:i}){let[c,f]=au.useState(0),v=qb[c],p=qt(["requests-log",v],()=>hm(v),{enabled:r}),[b,S]=au.useState(""),[k,h]=au.useState("all"),x=na(u),C=au.useMemo(()=>{let N=p.data??[],oe=x.spanMs===null?null:Date.now()-x.spanMs,B=oe===null?N:N.filter((W)=>W.timestamp>=oe),ee=!p.stale&&(N.length<v||oe!==null&&B.length<N.length),Z={all:B.length,ok:0,aborted:0,failed:0};for(let W of B)Z[jn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:vw(B)}},[p.data,p.stale,v,x.spanMs]),R=au.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||jn(oe)===k)&&(N===""||oe.model.toLowerCase().includes(N)||oe.provider.toLowerCase().includes(N)||oe.folder.toLowerCase().includes(N)))},[C.inRange,b,k]),{summary:L,counts:D,complete:_}=C,z=c+1<qb.length?qb[c+1]:null,F=z!==null?Qe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(z)}`},void 0,!1,void 0,this):void 0,K=["all","ok","aborted","failed"].map((N)=>({value:N,label:Qe.jsxDEV(Qe.Fragment,{children:[N==="all"?"All":Em[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Re(D[N])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(ta,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":p.stale,children:Qe.jsxDEV(aa,{min:160,children:[Qe.jsxDEV(fe,{label:"Requests",value:q(L.requests),hint:L.oldest===null?`none in ${x.windowLabel}`:`since ${ua(L.oldest)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Failed",value:q(L.failed),hint:`${L.requests>0?eo(L.failed/L.requests):"–"} · ${q(L.aborted)} aborted`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Tokens",title:"Total tokens across these requests",value:Re(L.tokens)},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median duration",value:vt(L.medianDuration),hint:`p95 ${vt(L.p95Duration)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median TTFT",title:"Time to first token",value:vt(L.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(Ve,{index:1,title:"Request log",description:p.data===null?"Loading the latest requests…":_?`${q(R.length)} of ${q(L.requests)} requests in ${x.windowLabel}`:`${q(R.length)} of the latest ${q(L.requests)} requests`,actions:Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV(dn,{value:b,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),Qe.jsxDEV(za,{size:"sm","aria-label":"Status",options:K,value:k,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:p.data!==null&&!_?Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV("span",{children:["Showing the latest ",q(C.loaded)," requests, back to"," ",L.oldest===null?"–":nl(L.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),F]},void 0,!0,void 0,this):void 0,children:Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(zt,{rows:R,rowKey:(N)=>N.id??`${N.sessionFile}:${N.entryId}`,onRowClick:(N)=>N.id!==void 0&&i(N.id),columns:G2,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:Qe.jsxDEV(mt,{title:L.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var G2=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Qe.jsxDEV(_a,{primary:Qe.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",sort:(r)=>r.timestamp,render:(r)=>Qe.jsxDEV("span",{className:"muted",title:nl(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Qe.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:fn(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Re(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>Qe.jsxDEV("span",{className:"num",title:`Cache write: ${q(r.usage.cacheWrite)}`,children:Re(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Re(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>Qe.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>Qe.jsxDEV("span",{className:"num muted",children:vt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>jn(r),render:(r)=>{let u=Em[jn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(sn,{tone:u.tone},void 0,!1,void 0,this),primary:u.label,secondary:Qe.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var lu=Y(ut(),1);var be=Y(ce(),1),V2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],Fw=6,ou="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Bb=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Gw({active:r,range:u}){let i=qt(["tools",u],()=>Uk(u),{enabled:r}),[c,f]=lu.useState("calls"),[v,p]=rl(),[b,S]=lu.useState(null),k=na(u),h=lu.useMemo(()=>$2(i.data,u),[i.data,u]),x=b!==null&&h.toolNames.includes(b)?b:null,C=c==="calls"?h.callSeries:h.errorSeries,R=(L)=>L.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ta,{title:"Tools",description:`Which tools omp called in ${k.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":i.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(aa,{min:190,children:[be.jsxDEV(fe,{label:"Tool calls",value:q(L.calls),hint:`${q(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Distinct tools",value:q(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Error rate",title:"Tool results that came back flagged as errors",value:eo(L.calls>0?L.errors/L.calls:0),hint:`${q(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed tokens",title:ou,value:Re(Math.round(L.tokens)),hint:`${Re(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${ou}; API-equivalent estimate`,value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(aa,{min:150,children:[be.jsxDEV(fe,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Re(L.resultChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Re(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Re(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg arguments per call",value:`${Re(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:1,title:c==="calls"?"Calls over time":"Errors over time",description:`Per ${k.bucketMs<3600000?"5 minutes":k.bucketMs<86400000?"hour":"day"}, top ${Fw} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:V2,value:c,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:Bb,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV(Xn,{buckets:h.buckets,bucketMs:k.bucketMs,series:C,hidden:v,height:260,formatTooltip:q,emptyLabel:c==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),be.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color,value:Re(L.values.reduce((D,_)=>D+(_??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:2,title:"By tool",description:`${ou}. Select a tool to break it down by model.`,flush:!0,stale:i.stale,children:be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Bb,children:()=>be.jsxDEV(zt,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(L)=>S((D)=>D===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:i.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[be.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>be.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:be.jsxDEV(ol,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Bb,children:(L)=>be.jsxDEV(j2,{rows:L.byToolModel,tool:x,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $2(r,u){let i=r?.byTool??[],c=r?.series??[],f=bw(i).sort((R,L)=>L.calls-R.calls),v=Bc(i.map((R)=>({key:R.tool,weight:R.calls}))),p=zo(u,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of i)b.calls+=R.calls,b.errors+=R.errors,b.tokens+=R.totalTokensShare,b.output+=R.outputTokensShare,b.cost+=R.costShare,b.unpriced+=R.unpricedRequestsShare,b.resultChars+=R.resultChars,b.argsChars+=R.argsChars;let[S,k]=[(R)=>R.calls,(R)=>R.errors].map((R)=>hn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:Fw,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(hn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=X2(x,v,h);return{rows:f,colors:v,buckets:p,totals:b,callSeries:S,errorSeries:k,totalCalls:ba(c,p,(R)=>R.calls),totalErrors:ba(c,p,(R)=>R.errors),toolNames:f.map((R)=>R.tool).sort((R,L)=>R.localeCompare(L)),toolColumns:C}}function X2(r,u,i){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(xl,{color:u.get(c.tool)??to},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(c)=>{let f=i.get(c.tool);return f&&f.length>1?be.jsxDEV(yi,{values:f,width:80,height:20,color:u.get(c.tool)??to},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(c)=>c.calls,render:(c)=>be.jsxDEV(ia,{value:c.calls,max:r,display:be.jsxDEV("span",{title:`${ze(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:ze(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(c)=>c.errorRate,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(c.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:c.errors>0?un(c.errorRate):"neutral",mono:!0,children:eo(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(c)=>c.argsChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Re(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(c)=>c.resultChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Re(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(c)=>c.avgResultChars,render:(c)=>be.jsxDEV("span",{className:"num muted",children:Re(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${ze(c.tokenFraction)} of attributed tokens`,children:[Re(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:ze(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${ze(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:ze(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(c)=>c.lastUsed,render:(c)=>be.jsxDEV("span",{className:"muted",children:ua(c.lastUsed)},void 0,!1,void 0,this)}]}function j2({rows:r,tool:u,colors:i}){let c=lu.useMemo(()=>(u===null?r:r.filter((v)=>v.tool===u)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,u]),f=lu.useMemo(()=>{let v=c.reduce((p,b)=>Math.max(p,b.calls),0);return[{key:"tool",header:"Tool",sort:(p)=>p.tool,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(xl,{color:i.get(p.tool)??to},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:p.tool,children:p.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(p)=>p.model,render:(p)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:p.model||"(unknown)"},void 0,!1,void 0,this),secondary:p.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(p)=>p.calls,render:(p)=>be.jsxDEV(ia,{value:p.calls,max:v,display:q(p.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(p)=>p.errorRate,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(p.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:p.errors>0?un(p.errorRate):"neutral",mono:!0,children:eo(p.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(p)=>p.resultChars,render:(p)=>be.jsxDEV("span",{className:"num",children:Re(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Re(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; API-equivalent estimate`,align:"right",sort:(p)=>p.costShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Ot(p.costShare,p.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(p)=>p.lastUsed,render:(p)=>be.jsxDEV("span",{className:"muted",children:ua(p.lastUsed)},void 0,!1,void 0,this)}]},[c,i]);return be.jsxDEV(zt,{rows:c,rowKey:(v)=>`${v.tool}::${v.model}::${v.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(mt,{title:u?`No calls to ${u} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ii=Y(ut(),1);var Bt=Y(ut(),1);var gn=Y(ce(),1);function Vw({toolStats:r,index:u}){if(r.length===0)return null;let i=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>gn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>gn.jsxDEV("span",{className:"num",children:q(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?gn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):gn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>gn.jsxDEV(ia,{value:f.totalMs,max:i,display:vt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>gn.jsxDEV("span",{className:"num",children:vt(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:"Max",align:"right",render:(f)=>gn.jsxDEV("span",{className:"num",children:vt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return gn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:u,children:gn.jsxDEV(zt,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Il=Y(ut(),1);var Li=Y(ut(),1);var nu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function Y2(){let r=getComputedStyle(document.documentElement),u=(i,c)=>r.getPropertyValue(i).trim()||c;return{category:{turn:u(nu.turn,"#a0a0a8"),model:u(nu.model,"#5ad8e6"),tool:u(nu.tool,"#f5a524"),subagent:u(nu.subagent,"#ed4abf"),background:u(nu.background,"#46464c")},error:u("--bad","#ff6166"),errorSoft:u("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:u("--ink-1","#ededef"),turnBand:u("--hover","rgba(255, 255, 255, 0.035)"),grid:u("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:u("--chart-axis","#5c5c64"),spanText:u("--ink-inverse","#0a0a0b"),selection:u("--focus","#5ad8e6"),brush:u("--selected","rgba(255, 255, 255, 0.075)"),fontSans:u("--font-sans","system-ui, sans-serif"),fontMono:u("--font-mono","ui-monospace, monospace")}}function Ci(){let r=tw(),[u,i]=Li.useState(0);return Li.useEffect(()=>{let c=new MutationObserver(()=>i((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),Li.useMemo(Y2,[r,u])}var jw=Y(ce(),1),Kr=44,Nb=["turn","model","tool","subagent"],$w=6,ki=10;function Xw({tracks:r,scale:u,viewport:i,onViewportChange:c}){let f=Ci(),v=Il.useRef(null),[p,b]=Il.useState(800),S=Il.useRef(null);Il.useEffect(()=>{let z=v.current;if(!z)return;let F=new ResizeObserver((K)=>{b(Math.max(100,Math.floor(K[0].contentRect.width)))});return F.observe(z),()=>F.disconnect()},[]);let[k,h]=u.domain,x=Math.max(h-k,0.000000001),C=Il.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Il.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Il.useEffect(()=>{let z=v.current;if(!z)return;let F=z.getContext("2d");if(!F)return;let K=devicePixelRatio;F.setTransform(K,0,0,K,0,0),F.clearRect(0,0,p,Kr);let N=Kr/Nb.length;for(let ee=0;ee<Nb.length;ee++){let Z=Nb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Be=Math.max(0,Math.floor(C(u.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(u.toU(ge.end))));for(let qe=Be;qe<=Ce;qe++)W[qe]=Math.min(1,W[qe]+0.34)}F.fillStyle=f.category[Z];for(let X=0;X<p;X++){if(W[X]<=0)continue;F.globalAlpha=0.25+W[X]*0.75,F.fillRect(X,ee*N+1,1,N-2)}F.globalAlpha=1}let oe=C(i.u0),B=C(i.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Kr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Kr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Kr),F.fillRect(B-2,0,2,Kr)},[r,u,i,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(i.u0),oe=C(i.u1),B;if(Math.abs(K-N)<=$w)B="left";else if(Math.abs(K-oe)<=$w)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Gc({u0:ee,u1:ee+ki},k,h))}S.current={mode:B,startX:K,startViewport:i},z.currentTarget.setPointerCapture(z.pointerId)},D=(z)=>{let F=S.current;if(!F)return;let K=z.currentTarget.getBoundingClientRect(),N=z.clientX-K.left,oe=R(N)-R(F.startX),{u0:B,u1:ee}=F.startViewport;if(F.mode==="move")c(Gc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Gc({u0:Math.min(B+oe,ee-ki),u1:ee},k,h));else if(F.mode==="right")c(Gc({u0:B,u1:Math.max(ee+oe,B+ki)},k,h));else{let Z=R(F.startX),W=R(N);c(Gc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+ki)},k,h))}},_=()=>{S.current=null};return jw.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Kr*devicePixelRatio),className:"traces-minimap",style:{height:Kr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Gc(r,u,i){let c=Math.max(ki,r.u1-r.u0);c=Math.min(c,i-u||ki);let f=r.u0;if(f<u)f=u;if(f+c>i)f=i-c;return{u0:f,u1:f+c}}var yn=Y(ut(),1);var et=Y(ce(),1);function Q2(r){let u=[];if(typeof r==="string"){if(r.trim())u.push({kind:"text",text:r});return u}if(!Array.isArray(r))return u;for(let i of r){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")u.push({kind:String(i.type),text:i.text})}return u}function Yw({span:r,track:u,onClose:i,onOpenChildTrack:c}){let[f,v]=yn.useState(null),[p,b]=yn.useState(!1),[S,k]=yn.useState(null),[h,x]=yn.useState(!1),C=yn.useRef(0);if(yn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!u||!r.entryId)return;b(!0);let F=new AbortController;return Hk(u.file,r.entryId,F.signal).then((K)=>{if(!F.signal.aborted)v(K.entry)}).catch((K)=>{if(F.signal.aborted)return;k(K instanceof Error?K:Error(String(K)))}).finally(()=>{if(!F.signal.aborted)b(!1)}),()=>F.abort()},[r,u]),yn.useEffect(()=>()=>window.clearTimeout(C.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),x(!0),window.clearTimeout(C.current),C.current=window.setTimeout(()=>x(!1),1500)}catch{}},D=(f&&typeof f==="object"?f:{}).message,_=D?.usage,z=[{key:"duration",label:"Duration",value:et.jsxDEV("span",{className:"num",children:[vt(r.end-r.start),r.unterminated&&et.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:et.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:et.jsxDEV("span",{className:"mono",children:u?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(z.push({key:"tokens",label:"Tokens",value:et.jsxDEV("span",{className:"num",children:q(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:et.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:et.jsxDEV("span",{className:"num",children:vt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:et.jsxDEV("span",{className:"mono",children:D?.model??r.model??"-"},void 0,!1,void 0,this)}),_)z.push({key:"split",label:"Input / output / cached",value:et.jsxDEV("span",{className:"num",children:[q(_.input??0)," / ",q(_.output??0)," /"," ",q(_.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)z.push({key:"provider",label:"Provider",value:et.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)z.push({key:"stop",label:"Stop reason",value:et.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return et.jsxDEV(ym,{open:!0,onClose:i,title:r.label,subtitle:et.jsxDEV("span",{className:"row",style:{gap:6},children:et.jsxDEV(wt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?et.jsxDEV($s,{size:15},void 0,!1,void 0,this):et.jsxDEV(js,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:et.jsxDEV("div",{className:"stack traces-drawer",children:[et.jsxDEV(Ho,{items:z},void 0,!1,void 0,this),D?.errorMessage&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&et.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:["Open child track ",et.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&et.jsxDEV("div",{className:"stack",children:[et.jsxDEV(Ea,{height:80},void 0,!1,void 0,this),et.jsxDEV(Ea,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&et.jsxDEV(vi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&Q2(D?.content).map((F,K)=>et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:F.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:F.text},void 0,!1,void 0,this)]},`${F.kind}-${K}`,!0,void 0,this)),!p&&f!==null&&et.jsxDEV(mi,{data:f,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Rl=Y(ce(),1);function Qw({summary:r}){let u=(i)=>r.wallMs>0?`${ze(i/r.wallMs)} of wall`:void 0;return Rl.jsxDEV(aa,{min:112,children:[Rl.jsxDEV(fe,{size:"sm",label:"Wall time",value:Ws(r.wallMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Model time",value:Ws(r.modelMs),hint:u(r.modelMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Tool time",value:Ws(r.toolMs),hint:u(r.toolMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Idle",value:Ws(r.idleMs),hint:u(r.idleMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Tokens",value:Re(r.totalTokens)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Cost",value:Ot(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wt=Y(ut(),1),aT=Y(sc(),1);function Om(r,u){let i=r.length,c=[u[0],u[i-1]],f=(v,p)=>{let b=0,S=i-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,i-2)};return{toU(v){if(v<=r[0])return u[0];if(v>=r[i-1])return u[i-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return u[p];return u[p]+(v-r[p])/b*(u[p+1]-u[p])},toT(v){if(v<=u[0])return r[0];if(v>=u[i-1])return r[i-1];let p=f(u,v),b=u[p+1]-u[p];if(b<=0)return r[p];return r[p]+(v-u[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Z2(r){let u=[];for(let i of r)for(let c of i.spans)u.push([c.start,c.end]);return u.sort((i,c)=>i[0]-c[0]),u}function W2(r){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:i}=Number;for(let c of r)for(let f of c.spans){if(f.start<u)u=f.start;if(f.end>i)i=f.end}if(!Number.isFinite(u))return[0,1];return[u,Math.max(i,u+1)]}function Zw(r,u,i){let c=[...new Set(r.filter((b)=>b>=u&&b<=i))].sort((b,S)=>b-S);if(c[0]!==u)c.unshift(u);if(c[c.length-1]!==i)c.push(i);if(c.length<2)return Om([u,i],[u,i]);let v=(i-u)/(c.length-1),p=c.map((b,S)=>u+S*v);return Om(c,p)}function K2(r,u,i){let c=Z2(r),f=[];for(let[h,x]of c){let C=h-2000,R=x+2000,L=f[f.length-1];if(L&&C<=L[1]){if(R>L[1])L[1]=R}else f.push([C,R])}if(f.length===0)f.push([u,i]);f[0][0]=Math.max(f[0][0],u),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),i);let v=[],p=[],b=[],S=f[0][0];for(let h=0;h<f.length;h++){let[x,C]=f[h];if(h===0)v.push(x),p.push(S);else{let R=f[h-1][1],L=x-R;if(L>30000)S+=8000,b.push({t0:R,t1:x,uMid:S-4000});else S+=L;v.push(x),p.push(S)}S+=Math.max(0,C-x),v.push(C),p.push(S)}return{...Om(v,p),gaps:b}}function Ww(r,u,i){let[c,f]=W2(r);if(u==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Zw(p,c,f)}if(u==="calls"){let v=[];for(let p of r)for(let b of p.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")v.push(b.start,b.end);return Zw(v,c,f)}if(i)return K2(r,c,f);return Om([c,f],[c,f])}var J2=90;function eD(r){let u=10**Math.floor(Math.log10(Math.max(r,1)));for(let i of[1,2,5,10])if(u*i>=r)return u*i;return u*10}function tD(r){let u=new Date(r),i=String(u.getHours()).padStart(2,"0"),c=String(u.getMinutes()).padStart(2,"0"),f=String(u.getSeconds()).padStart(2,"0");return`${i}:${c}:${f}`}function wi(r){let u=r<0?"-":"+",i=Math.abs(r),c=Math.floor(i/3600000),f=Math.floor(i%3600000/60000),v=Math.floor(i%60000/1000),p=Math.floor(i%1000),b=i%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${u}${c}:${S}`:`${u}${S}`}function Kw(r,u,i,c){let f=i-u;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=eD(f*J2/c),S=p+Math.ceil((u-p)/b)*b,k=0;for(let h=S;h<=i&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?tD(x):wi(h-p),major:C})}return v}var Rt=Y(ce(),1),Zn=28,Pb=22,xo=18,Jw=3,aD=14,eT=200,Ub=10,oD=2,lD=4,nD=56,tT=3,rD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function sD(r,u){let i=new Map(r.map((S)=>[S.id,S])),c=new Set;for(let S of r)if(S.parentId)c.add(S.parentId);let f=(S)=>{let k=S.parentId;while(k){if(u.has(k))return!0;k=i.get(k)?.parentId??null}return!1},v=[],p=[],b=Zn+6;for(let S of r){if(f(S))continue;let k=S.id==="main"?0:S.id.split("/").length,h={track:S,depth:k,hasChildren:c.has(S.id),headerY:b,lanes:[],y0:b,y1:b};b+=Pb;for(let{kind:x,label:C}of rD){let R=S.spans.filter((_)=>_.kind===x),L=x==="turn"||x==="model"||x==="tool";if(R.length===0&&!(S.id==="main"&&L))continue;let D={track:S,kind:x,label:C,y:b,spans:R};h.lanes.push(D),p.push(D),b+=xo+Jw}h.y1=b-Jw,v.push(h),b+=aD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Zn+48)}}function oT({tracks:r,scale:u,viewport:i,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Ci(),x=Wt.useRef(null),C=Wt.useRef(null),[R,L]=Wt.useState(800),[D,_]=Wt.useState(null),z=Wt.useRef([]),F=Wt.useRef(null),K=Wt.useRef(null),N=Wt.useRef(i);N.current=i;let oe=Wt.useMemo(()=>sD(r,b),[r,b]);Wt.useEffect(()=>{let ae=x.current;if(!ae)return;let P=new ResizeObserver((ue)=>{let se=Math.max(100,Math.floor(ue[0].contentRect.width-eT));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=u.domain,ne=Math.max(Ub,P-ae);ne=Math.min(ne,se-ue||Ub);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[u]),ee=Wt.useCallback((ae)=>{N.current=ae,c(ae)},[c]),Z=Wt.useCallback((ae,P)=>{let ue=R,{u0:se,u1:ne}=N.current,pe=ne-se,Lt=P===null?0.5:Math.min(1,Math.max(0,P/ue)),Ye=se+pe*Lt,V=pe*ae;ee(B(Ye-V*Lt,Ye+V*(1-Lt)))},[R,ee,B]),W=Wt.useCallback((ae)=>{let{u0:P,u1:ue}=N.current;ee(B(P+ae,ue+ae))},[ee,B]),X=Wt.useCallback((ae)=>{let P=u.toU(ae.start),ue=u.toU(ae.end),se=Math.max((ue-P)*0.1,Ub/2);ee(B(P-se,ue+se))},[u,ee,B]);Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=(ue)=>{ue.preventDefault();let se=ae.getBoundingClientRect(),ne=ue.clientX-se.left;K.current=ne,_(null);let pe=ae.clientWidth||1,Lt=()=>N.current.u1-N.current.u0;if(ue.shiftKey){let Ye=Math.abs(ue.deltaY)>=Math.abs(ue.deltaX)?ue.deltaY:ue.deltaX;W(Ye/pe*Lt());return}if(ue.deltaX!==0)W(ue.deltaX/pe*Lt());if(ue.deltaY!==0)Z(1.0015**ue.deltaY,ne)};return ae.addEventListener("wheel",P,{passive:!1}),()=>ae.removeEventListener("wheel",P)},[Z,W]);let ge=Wt.useCallback((ae,P)=>{let ue=C.current;if(!ue)return null;let se=ue.getBoundingClientRect(),ne=ae-se.left,pe=P-se.top,Lt=z.current;for(let Ye=Lt.length-1;Ye>=0;Ye--){let V=Lt[Ye];if(ne>=V.x&&ne<=V.x+V.w&&pe>=V.y&&pe<=V.y+V.h)return V}return null},[]),Be=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),F.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Ce=(ae)=>{let P=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-P.left;let ue=F.current;if(ue&&ue.pointerId===ae.pointerId){let ne=ae.clientX-ue.lastX;if(Math.abs(ne)>0){if(Math.abs(ne)>2)ue.moved=!0;ue.lastX=ae.clientX;let pe=N.current.u1-N.current.u0;W(-ne/(R||1)*pe)}_(null);return}let se=ge(ae.clientX,ae.clientY);_(se?{hit:se,clientX:ae.clientX,clientY:ae.clientY}:null)},qe=(ae)=>{let P=F.current;if(F.current=null,P?.moved)return;let ue=ge(ae.clientX,ae.clientY);if(ue?.kind==="span")v(ue.span.id);else v(null)},te=(ae)=>{let P=ge(ae.clientX,ae.clientY);if(P?.kind==="span")X(P.span)},ve=Wt.useCallback((ae)=>{if(!f)return;for(let P of oe.lanes){let ue=P.spans.findIndex((pe)=>pe.id===f);if(ue===-1)continue;let se=P.spans[ue+ae];if(!se)return;v(se.id);let ne=u.toU(se.start);if(ne<i.u0||ne>i.u1){let pe=i.u1-i.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,u,i,c,B]),ke=(ae)=>{let P=i.u1-i.u0;switch(ae.key){case"w":case"W":Z(0.7692307692307692,K.current);break;case"s":case"S":Z(1.3,K.current);break;case"a":case"A":W(-P*0.2);break;case"d":case"D":W(P*0.2);break;case"0":c({u0:u.domain[0],u1:u.domain[1]});break;case"f":case"F":{if(!f)break;let ue=r.flatMap((se)=>se.spans).find((se)=>se.id===f);if(ue)X(ue);break}case"Escape":v(null);break;case",":ve(-1);break;case".":ve(1);break;default:return}ae.preventDefault()};Wt.useEffect(()=>{C.current?.focus({preventScroll:!0})},[]),Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=requestAnimationFrame(()=>{uD(ae,oe,u,i,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,u,i,h,R,f,D,p]);let je=D?iD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:eT,flexShrink:0,position:"relative",height:oe.totalHeight},children:oe.blocks.map((ae)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:Pb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":b.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:b.has(ae.track.id)?Rt.jsxDEV(Sl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV(Xs,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ae.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.lanes.map((P)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:P.y,left:20+ae.depth*14,lineHeight:`${xo}px`},children:P.label},`${P.track.id}:${P.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:Math.floor(R*devicePixelRatio),height:Math.floor(oe.totalHeight*devicePixelRatio),style:{width:R,height:oe.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Be,onPointerMove:Ce,onPointerUp:qe,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&aT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Vc(r,u,i,c,f){if(r.beginPath(),c>=tT*2+1)r.roundRect(u,i,c,f,tT);else r.rect(u,i,c,f)}function uD(r,u,i,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=u.totalHeight,R=devicePixelRatio;p.setTransform(R,0,0,R,0,0),p.clearRect(0,0,b,C);let{u0:L,u1:D}=c,_=Math.max(D-L,0.000000001),z=(N)=>(N-L)/_*b,F=h.trim().toLowerCase(),K=[];for(let N of u.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(i.toU(oe[B].start)),Z=B+1<oe.length?z(i.toU(oe[B+1].start)):b;if(Z<0||ee>b)continue;if(B%2===1)p.fillStyle=f.turnBand,p.fillRect(Math.max(0,ee),N.y0,Math.min(b,Z)-Math.max(0,ee),N.y1-N.y0);if(ee>=0&&ee<=b)p.strokeStyle=f.grid,p.beginPath(),p.moveTo(Math.round(ee)+0.5,N.y0),p.lineTo(Math.round(ee)+0.5,N.y1),p.stroke()}}for(let N of i.gaps){let oe=z(N.uMid);if(oe<-24||oe>b+24)continue;p.save(),p.strokeStyle=f.grid,p.setLineDash([2,4]),p.beginPath(),p.moveTo(oe,Zn),p.lineTo(oe,C),p.stroke(),p.restore(),p.fillStyle=f.tick,p.font=`9px ${f.fontMono}`,p.textAlign="center",p.fillText(`⋯ ${vt(N.t1-N.t0)}`,oe,Zn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Kw(i,L,D,b)){let oe=Math.round(z(N.u))+0.5;if(p.strokeStyle=f.grid,p.beginPath(),N.major)p.moveTo(oe,4),p.lineTo(oe,C);else p.moveTo(oe,Zn-8),p.lineTo(oe,Zn);if(p.stroke(),p.fillStyle=f.tick,N.major)p.fillText(N.label,oe+4,11);else p.globalAlpha=0.75,p.fillText(N.label,oe+3,Zn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Zn+0.5),p.lineTo(b,Zn+0.5),p.stroke();for(let N of u.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=i.toU(B.start);if(ee>D)break;let Z=i.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(oD,z(Z)-W),ge=N.y,Be=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Be?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Be?1:0.3)*0.23,Vc(p,W,ge,X,xo),p.fill(),p.globalAlpha=Be?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,xo);else p.fillStyle=Ce,Vc(p,W,ge,X,xo),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Vc(p,W,ge,X,xo),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,xo);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(i.toU(B.start+B.ttft));if(te>W+1&&te<W+X-1)p.fillStyle="rgba(0,0,0,0.5)",p.fillRect(te,ge+3,1,xo-6)}if(B.unterminated)p.save(),p.strokeStyle=f.tick,p.setLineDash([2,2]),p.beginPath(),p.moveTo(W+X-0.5,ge),p.lineTo(W+X-0.5,ge+xo),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Vc(p,W,ge,X,xo),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Vc(p,W-1,ge-1,X+2,xo+2),p.stroke(),p.lineWidth=1;if(X>nD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,xo),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+xo-5),p.restore();p.globalAlpha=1;let qe=Math.max(X,lD);K.push({kind:"span",x:W-(qe-X)/2,y:ge,w:qe,h:xo,span:B,track:N.track})}}for(let N of u.blocks)for(let oe of N.track.markers){let B=z(i.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Pb/2;p.fillStyle=f.marker,p.beginPath(),p.moveTo(B,ee-4),p.lineTo(B+4,ee),p.lineTo(B,ee+4),p.lineTo(B-4,ee),p.closePath(),p.fill(),K.push({kind:"marker",x:B-5,y:ee-5,w:10,h:10,marker:oe,track:N.track})}x.current=K}function iD(r,u){let i=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:i,top:c};if(r.hit.kind==="marker"){let{marker:p}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(p.time).toLocaleTimeString()," (",wi(p.time-u),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:v}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:v.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[vt(v.end-v.start)," · ",new Date(v.start).toLocaleTimeString()," (",wi(v.start-u),")",v.unterminated?" · unterminated":""]},void 0,!0,void 0,this),v.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[v.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[q(v.tokens)," tok"]},void 0,!0,void 0,this),v.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",v.cost.toFixed(4)]},void 0,!0,void 0,this),v.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · TTFT ",vt(v.ttft)]},void 0,!0,void 0,this),v.isError&&Rt.jsxDEV(Rt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.kind==="subagent"&&v.model&&Rt.jsxDEV("div",{className:"muted num",children:v.model},void 0,!1,void 0,this),v.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:v.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wn=Y(ut(),1);var Fa=Y(ce(),1),Ti=28,lT=20,dD=340;function cD(r){let u=[];for(let i of r){let c=i.id==="main"?0:i.id.split("/").length;for(let f of i.spans)u.push({key:f.id,time:f.start,span:f,track:i,depth:c});for(let f=0;f<i.markers.length;f++){let v=i.markers[f];u.push({key:`${i.id}:marker:${f}`,time:v.time,marker:v,track:i,depth:c})}}return u.sort((i,c)=>i.time-c.time),u}function nT({tracks:r,selection:u,onSelect:i,search:c,traceStart:f}){let v=Ci(),p=Wn.useRef(null),[b,S]=Wn.useState(0),k=Wn.useMemo(()=>cD(r),[r]),h=Wn.useMemo(()=>{let L=c.trim().toLowerCase();if(!L)return k;return k.filter((D)=>(D.span?`${D.span.label} ${D.span.detail??""}`:D.marker?.label??"").toLowerCase().includes(L))},[k,c]);Wn.useEffect(()=>{if(!u)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===u);if(D===-1)return;let _=D*Ti;if(_<L.scrollTop||_+Ti>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[u,h]);let x=Math.max(0,Math.floor(b/Ti)-lT),C=Math.min(h.length,Math.ceil((b+dD)/Ti)+lT),R=h.slice(x,C);return Fa.jsxDEV("div",{ref:p,onScroll:(L)=>S(L.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:h.length*Ti,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*Ti,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===u,z=L.span?v.category[L.span.kind]:v.marker,F=L.span?.label??L.marker?.label??"",K=L.span?.detail,N=L.span?vt(L.span.end-L.span.start):"",oe=L.span?.kind??L.marker?.kind??"",B=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":z},children:oe},void 0,!1,void 0,this),L.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:L.track.label,children:L.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),K&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[L.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:N},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:wi(L.time-f)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee={paddingLeft:12+L.depth*12};return D?Fa.jsxDEV("button",{type:"button",onClick:()=>i(D.id),className:"traces-row","data-selected":_?"true":"false",style:ee,children:B},L.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:ee,children:B},L.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.length===0&&Fa.jsxDEV(mt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ze=Y(ce(),1),fD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],pD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function rT({file:r,active:u,onBack:i}){let c=qt(["trace",r],()=>_k(r),{pollMs:15000,enabled:u}),f=c.stale?null:c.data,[v,p]=Bt.useState("time"),[b,S]=Bt.useState(!0),[k,h]=Bt.useState(null),[x,C]=Bt.useState(!1),[R,L]=Bt.useState(""),[D,_]=Bt.useState(0),[z,F]=Bt.useState(new Set),[K,N]=Bt.useState(null),oe=Bt.useMemo(()=>f?.tracks??[],[f]),B=Bt.useMemo(()=>Ww(oe,v,b),[oe,v,b]),ee=Bt.useRef(B),Z=Bt.useRef(null);Bt.useEffect(()=>{if(!f)return;if(Z.current===f.file)return;Z.current=f.file,h(null),L(""),N(null);let se=new Set;for(let ne of f.tracks)if((ne.id==="main"?0:ne.id.split("/").length)>=1)se.add(ne.id);F(se)},[f]),Bt.useEffect(()=>{let se=ee.current;ee.current=B,N((ne)=>{if(!ne)return ne;let pe=se.toT(ne.u0),Lt=se.toT(ne.u1),Ye=B.toU(pe),V=B.toU(Lt);return V-Ye>0?{u0:Ye,u1:V}:null})},[B]);let W=K??{u0:B.domain[0],u1:B.domain[1]},X=Bt.useMemo(()=>{let se=[];for(let ne of oe)for(let pe of ne.spans)se.push({span:pe,track:ne});return se.sort((ne,pe)=>ne.span.start-pe.span.start),se},[oe]),ge=Bt.useMemo(()=>{let se=R.trim().toLowerCase();if(!se)return[];return X.filter(({span:ne})=>`${ne.label} ${ne.detail??""}`.toLowerCase().includes(se))},[X,R]),Be=Bt.useCallback((se)=>{let ne=B.toU(se.start),pe=B.toU(se.end);N((Lt)=>{let Ye=Lt??{u0:B.domain[0],u1:B.domain[1]};if(ne>=Ye.u0&&pe<=Ye.u1)return Lt;let V=Ye.u1-Ye.u0,Ue=(ne+pe)/2,[Mt,pa]=B.domain,re=Ue-V/2;if(re<Mt)re=Mt;if(re+V>pa)re=Math.max(Mt,pa-V);return{u0:re,u1:re+V}})},[B]),Ce=Bt.useCallback((se)=>{h(se);let ne=X.find(({span:pe})=>pe.id===se);if(ne)Be(ne.span)},[X,Be]),qe=Bt.useCallback((se)=>{h(se),C(se!==null)},[]),te=Bt.useCallback((se)=>{if(ge.length===0)return;let ne=((D+se)%ge.length+ge.length)%ge.length;_(ne),Ce(ge[ne].span.id)},[ge,D,Ce]),ve=Bt.useCallback((se)=>{F((ne)=>{let pe=new Set(ne);if(pe.has(se))pe.delete(se);else pe.add(se);return pe})},[]),ke=Bt.useMemo(()=>{if(!k)return null;return X.find(({span:se})=>se.id===k)??null},[k,X]),je=Bt.useCallback((se)=>{let ne=oe.find((Lt)=>Lt.id===se),pe=ne?.spans[0];if(F((Lt)=>{let Ye=new Set(Lt),V=ne;while(V?.parentId)Ye.delete(V.parentId),V=oe.find((Ue)=>Ue.id===V?.parentId);return Ye}),pe)Ce(pe.id)},[oe,Ce]),ae=Bt.useCallback((se)=>{if(!se){F(new Set);return}let ne=new Set;for(let pe of oe)if(pe.id!=="main")ne.add(pe.id);F(ne)},[oe]),P=f?.startedAt??0,ue={...c,data:f};return Ze.jsxDEV("div",{className:"stack traces-view",children:[Ze.jsxDEV("div",{children:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[Ze.jsxDEV(fc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(ta,{title:Ze.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ze.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ze.jsxDEV(Xr,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:ue,skeleton:Ze.jsxDEV(Tt,{height:420},void 0,!1,void 0,this),children:(se)=>Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV(Qw,{summary:se.summary},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!1),children:"Expand all"},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ze.jsxDEV("div",{className:"stack",children:[Ze.jsxDEV("div",{className:"traces-toolbar",children:[Ze.jsxDEV(za,{options:fD,value:v,onChange:p,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),v==="time"&&Ze.jsxDEV("label",{className:"traces-check",children:[Ze.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ne)=>S(ne.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-search",children:[Ze.jsxDEV(dn,{value:R,onChange:(ne)=>{L(ne),_(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),R.trim()&&Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("span",{className:"num muted traces-match-count",children:ge.length===0?"0":`${D%Math.max(ge.length,1)+1}/${ge.length}`},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(-1),"aria-label":"Previous match",disabled:ge.length===0,children:Ze.jsxDEV(gc,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(1),"aria-label":"Next match",disabled:ge.length===0,children:Ze.jsxDEV(Sl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-legend",children:pD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${nu[ne.kind]})`}},void 0,!1,void 0,this),ne.label]},ne.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV(Xw,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(oT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:qe,search:R,collapsed:z,onToggleCollapse:ve,traceStart:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ze.jsxDEV(nT,{tracks:oe,selection:k,onSelect:(ne)=>{Ce(ne),C(!0)},search:R,traceStart:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Vw,{toolStats:se.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Yw,{span:x?ke?.span??null:null,track:ke?.track??null,onClose:()=>C(!1),onOpenChildTrack:je},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jt=Y(ce(),1),sT=200;function mD({models:r}){if(r.length===0)return jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return jt.jsxDEV("span",{className:"traces-models",title:r.join(`
|
|
236
|
+
`),children:[jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function uT({active:r,session:u,onOpenSession:i}){let[c,f]=Ii.useState(""),v=qt(["sessions",sT],()=>zk(sT),{pollMs:30000,enabled:r&&u===null}),p=Ii.useMemo(()=>{let h=v.data??[],x=c.trim().toLowerCase();if(!x)return h;return h.filter((C)=>(C.title??"").toLowerCase().includes(x)||C.folder.toLowerCase().includes(x)||C.models.some((R)=>R.toLowerCase().includes(x)))},[v.data,c]),b=Ii.useMemo(()=>Math.max(0,...p.map((h)=>h.costTotal)),[p]),S=Ii.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(h)=>jt.jsxDEV(_a,{primary:h.title??h.file.split("/").pop(),secondary:jt.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:"Models",render:(h)=>jt.jsxDEV(mD,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(h)=>jt.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:ua(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:"Duration",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Ws(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:"Requests",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:"Tools",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(h)=>h.subagents>0?jt.jsxDEV("span",{className:"num",children:q(h.subagents)},void 0,!1,void 0,this):jt.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:"Tokens",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Re(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>jt.jsxDEV(ia,{value:h.costTotal,max:b,display:Ot(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[b]);if(u!==null)return jt.jsxDEV(rT,{file:u,active:r,onBack:()=>i(null)},void 0,!1,void 0,this);let k=v.data?.length??0;return jt.jsxDEV("div",{className:"stack traces-page",children:[jt.jsxDEV(ta,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),jt.jsxDEV(Ve,{title:"Sessions",description:v.data?c.trim()?`${q(p.length)} of ${q(k)} most recent`:`${q(k)} most recent`:void 0,actions:jt.jsxDEV(dn,{value:c,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:v.stale,children:jt.jsxDEV(_e,{query:v,skeleton:jt.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:jt.jsxDEV(mt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>jt.jsxDEV(zt,{columns:S,rows:p,rowKey:(h)=>h.file,onRowClick:(h)=>i(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:jt.jsxDEV(mt,{title:"No matching sessions",hint:"Try a different filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ta=Y(ce(),1);function zb(){return Ta.jsxDEV(Vk,{children:Ta.jsxDEV(hD,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function hD(){let{section:r,setSection:u,range:i,setRange:c,session:f,setSession:v}=rw(),[p,b]=Ri.useState(null),S=Ri.useCallback(()=>b(null),[]),k=Ri.useRef(new Set);k.current.add(r);let h=(x)=>{let C=x===r;switch(x){case"overview":return Ta.jsxDEV(Ow,{active:C,range:i,onRequestClick:b},void 0,!1,void 0,this);case"requests":return Ta.jsxDEV(Hw,{active:C,range:i,onRequestClick:b},void 0,!1,void 0,this);case"errors":return Ta.jsxDEV(Cw,{active:C,range:i,onRequestClick:b},void 0,!1,void 0,this);case"traces":return Ta.jsxDEV(uT,{active:C,session:f,onOpenSession:v},void 0,!1,void 0,this);case"models":return Ta.jsxDEV(Mw,{active:C,range:i},void 0,!1,void 0,this);case"providers":return Ta.jsxDEV(zw,{active:C,range:i},void 0,!1,void 0,this);case"costs":return Ta.jsxDEV(xw,{active:C,range:i},void 0,!1,void 0,this);case"tools":return Ta.jsxDEV(Gw,{active:C,range:i},void 0,!1,void 0,this);case"frustration":return Ta.jsxDEV(ww,{active:C,range:i},void 0,!1,void 0,this);case"projects":return Ta.jsxDEV(Bw,{active:C,range:i},void 0,!1,void 0,this);case"gain":return Ta.jsxDEV(Iw,{active:C,range:i},void 0,!1,void 0,this)}};return Ta.jsxDEV(Ta.Fragment,{children:[Ta.jsxDEV(nw,{section:r,onSectionChange:u,range:i,onRangeChange:c,children:[...k.current].map((x)=>Ta.jsxDEV("div",{hidden:x!==r,children:h(x)},x,!1,void 0,this))},void 0,!1,void 0,this),Ta.jsxDEV(_w,{id:p,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var cT=Y(ce(),1),dT=document.getElementById("root");if(!dT)throw Error("missing #root");iT.createRoot(dT).render(cT.jsxDEV(zb,{},void 0,!1,void 0,this));
|