@oh-my-pi/omp-stats 18.0.11 → 18.1.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/client/index.css +1 -1
  3. package/dist/client/index.js +101 -101
  4. package/dist/client/styles.css +265 -0
  5. package/dist/types/client/api.d.ts +7 -1
  6. package/dist/types/client/app/routes.d.ts +1 -1
  7. package/dist/types/client/data/useHashRoute.d.ts +2 -0
  8. package/dist/types/client/routes/TracesRoute.d.ts +11 -0
  9. package/dist/types/client/routes/index.d.ts +1 -0
  10. package/dist/types/client/traces/AggregatesPanel.d.ts +9 -0
  11. package/dist/types/client/traces/Minimap.d.ts +14 -0
  12. package/dist/types/client/traces/SpanDrawer.d.ts +14 -0
  13. package/dist/types/client/traces/SummaryStrip.d.ts +9 -0
  14. package/dist/types/client/traces/TimelineCanvas.d.ts +25 -0
  15. package/dist/types/client/traces/TraceView.d.ts +11 -0
  16. package/dist/types/client/traces/TranscriptList.d.ts +24 -0
  17. package/dist/types/client/traces/time-scale.d.ts +40 -0
  18. package/dist/types/client/traces/trace-colors.d.ts +31 -0
  19. package/dist/types/db.d.ts +24 -1
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/parser.d.ts +8 -0
  22. package/dist/types/server.d.ts +3 -2
  23. package/dist/types/shared-types.d.ts +130 -0
  24. package/dist/types/trace.d.ts +33 -0
  25. package/dist/types/types.d.ts +35 -1
  26. package/package.json +8 -8
  27. package/src/client/App.tsx +11 -1
  28. package/src/client/api.ts +23 -0
  29. package/src/client/app/routes.ts +7 -0
  30. package/src/client/data/useHashRoute.ts +28 -10
  31. package/src/client/routes/ProvidersRoute.tsx +1 -0
  32. package/src/client/routes/TracesRoute.tsx +182 -0
  33. package/src/client/routes/index.ts +1 -0
  34. package/src/client/styles.css +316 -0
  35. package/src/client/traces/AggregatesPanel.tsx +88 -0
  36. package/src/client/traces/Minimap.tsx +177 -0
  37. package/src/client/traces/SpanDrawer.tsx +309 -0
  38. package/src/client/traces/SummaryStrip.tsx +37 -0
  39. package/src/client/traces/TimelineCanvas.tsx +768 -0
  40. package/src/client/traces/TraceView.tsx +344 -0
  41. package/src/client/traces/TranscriptList.tsx +166 -0
  42. package/src/client/traces/time-scale.ts +250 -0
  43. package/src/client/traces/trace-colors.ts +77 -0
  44. package/src/db.ts +77 -0
  45. package/src/index.ts +1 -6
  46. package/src/parser.ts +55 -2
  47. package/src/server.ts +69 -17
  48. package/src/shared-types.ts +138 -0
  49. package/src/trace.ts +1002 -0
  50. package/src/types.ts +45 -1
@@ -1,76 +1,76 @@
1
- var $D=Object.create;var{getPrototypeOf:WD,defineProperty:pw,getOwnPropertyNames:ZD}=Object;var QD=Object.prototype.hasOwnProperty;function KD(a){return this[a]}var JD,e2,X=(a,n,s)=>{var l=a!=null&&typeof a==="object";if(l){var r=n?JD??=new WeakMap:e2??=new WeakMap,c=r.get(a);if(c)return c}s=a!=null?$D(WD(a)):{};let f=n||!a||!a.__esModule?pw(s,"default",{value:a,enumerable:!0}):s;if(a&&typeof a==="object"||typeof a==="function"){for(let h of ZD(a))if(!QD.call(f,h))pw(f,h,{get:KD.bind(a,h),enumerable:!0})}if(l)r.set(a,f);return f};var Ii=(a,n)=>()=>(n||a((n={exports:{}}).exports,n),n.exports);var PM=Ii(function(uB){(function(){function a(){if(W=!1,K){var G=uB.unstable_now();he=G;var le=!0;try{e:{U=!1,q&&(q=!1,ne(re),re=-1),_=!0;var pe=w;try{t:{c(G);for(k=s(S);k!==null&&!(k.expirationTime>G&&h());){var Qe=k.callback;if(typeof Qe==="function"){k.callback=null,w=k.priorityLevel;var je=Qe(k.expirationTime<=G);if(G=uB.unstable_now(),typeof je==="function"){k.callback=je,c(G),le=!0;break t}k===s(S)&&l(S),c(G)}else l(S);k=s(S)}if(k!==null)le=!0;else{var D=s(T);D!==null&&p(f,D.startTime-G),le=!1}}break e}finally{k=null,w=pe,_=!1}le=void 0}}finally{le?Le():K=!1}}}function n(G,le){var pe=G.length;G.push(le);e:for(;0<pe;){var Qe=pe-1>>>1,je=G[Qe];if(0<r(je,le))G[Qe]=le,G[pe]=je,pe=Qe;else break e}}function s(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var le=G[0],pe=G.pop();if(pe!==le){G[0]=pe;e:for(var Qe=0,je=G.length,D=je>>>1;Qe<D;){var Z=2*(Qe+1)-1,me=G[Z],ge=Z+1,Ge=G[ge];if(0>r(me,pe))ge<je&&0>r(Ge,me)?(G[Qe]=Ge,G[ge]=pe,Qe=ge):(G[Qe]=me,G[Z]=pe,Qe=Z);else if(ge<je&&0>r(Ge,pe))G[Qe]=Ge,G[ge]=pe,Qe=ge;else break e}}return le}function r(G,le){var pe=G.sortIndex-le.sortIndex;return pe!==0?pe:G.id-le.id}function c(G){for(var le=s(T);le!==null;){if(le.callback===null)l(T);else if(le.startTime<=G)l(T),le.sortIndex=le.expirationTime,n(S,le);else break;le=s(T)}}function f(G){if(q=!1,c(G),!U)if(s(S)!==null)U=!0,K||(K=!0,Le());else{var le=s(T);le!==null&&p(f,le.startTime-G)}}function h(){return W?!0:uB.unstable_now()-he<V?!1:!0}function p(G,le){re=Q(function(){G(uB.unstable_now())},le)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),uB.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var g=performance;uB.unstable_now=function(){return g.now()}}else{var x=Date,y=x.now();uB.unstable_now=function(){return x.now()-y}}var S=[],T=[],M=1,k=null,w=3,_=!1,U=!1,q=!1,W=!1,Q=typeof setTimeout==="function"?setTimeout:null,ne=typeof clearTimeout==="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null,K=!1,re=-1,V=5,he=-1;if(typeof J==="function")var Le=function(){J(a)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Oe=we.port2;we.port1.onmessage=a,Le=function(){Oe.postMessage(null)}}else Le=function(){Q(a,0)};uB.unstable_IdlePriority=5,uB.unstable_ImmediatePriority=1,uB.unstable_LowPriority=4,uB.unstable_NormalPriority=3,uB.unstable_Profiling=null,uB.unstable_UserBlockingPriority=2,uB.unstable_cancelCallback=function(G){G.callback=null},uB.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<G?Math.floor(1000/G):5},uB.unstable_getCurrentPriorityLevel=function(){return w},uB.unstable_next=function(G){switch(w){case 1:case 2:case 3:var le=3;break;default:le=w}var pe=w;w=le;try{return G()}finally{w=pe}},uB.unstable_requestPaint=function(){W=!0},uB.unstable_runWithPriority=function(G,le){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var pe=w;w=G;try{return le()}finally{w=pe}},uB.unstable_scheduleCallback=function(G,le,pe){var Qe=uB.unstable_now();switch(typeof pe==="object"&&pe!==null?(pe=pe.delay,pe=typeof pe==="number"&&0<pe?Qe+pe:Qe):pe=Qe,G){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5000}return je=pe+je,G={id:M++,callback:le,priorityLevel:G,startTime:pe,expirationTime:je,sortIndex:-1},pe>Qe?(G.sortIndex=pe,n(T,G),s(S)===null&&G===s(T)&&(q?(ne(re),re=-1):q=!0,p(f,pe-Qe))):(G.sortIndex=je,n(S,G),U||_||(U=!0,K||(K=!0,Le()))),G},uB.unstable_shouldYield=h,uB.unstable_wrapCallback=function(G){var le=w;return function(){var pe=w;w=le;try{return G.apply(this,arguments)}finally{w=pe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var vt=Ii(function(cB,Qp){(function(){function a(C,B){Object.defineProperty(l.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})}function n(C){if(C===null||typeof C!=="object")return null;return C=tf&&C[tf]||C["@@iterator"],typeof C==="function"?C:null}function s(C,B){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var Y=C+"."+B;ie[Y]||(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.",B,C),ie[Y]=!0)}function l(C,B,Y){this.props=C,this.context=B,this.refs=Bs,this.updater=Y||or}function r(){}function c(C,B,Y){this.props=C,this.context=B,this.refs=Bs,this.updater=Y||or}function f(){}function h(C){return""+C}function p(C){try{h(C);var B=!1}catch(ue){B=!0}if(B){B=console;var Y=B.error,ae=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Y.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),h(C)}}function g(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===Iu?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case je:return"Fragment";case Z:return"Profiler";case D:return"StrictMode";case Ft:return"Suspense";case Pe:return"SuspenseList";case en:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Qe:return"Portal";case ge:return C.displayName||"Context";case me:return(C._context.displayName||"Context")+".Consumer";case Ge:var B=C.render;return C=C.displayName,C||(C=B.displayName||B.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case Wt:return B=C.displayName||null,B!==null?B:g(C.type)||"Memo";case Aa:B=C._payload,C=C._init;try{return g(C(B))}catch(Y){}}return null}function x(C){if(C===je)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===Aa)return"<...>";try{var B=g(C);return B?"<"+B+">":"<...>"}catch(Y){return"<...>"}}function y(){var C=ze.A;return C===null?null:C.getOwner()}function S(){return Error("react-stack-top-frame")}function T(C){if(nr.call(C,"key")){var B=Object.getOwnPropertyDescriptor(C,"key").get;if(B&&B.isReactWarning)return!1}return C.key!==void 0}function M(C,B){function Y(){af||(af=!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)",B))}Y.isReactWarning=!0,Object.defineProperty(C,"key",{get:Y,configurable:!0})}function k(){var C=g(this.type);return Xi[C]||(Xi[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function w(C,B,Y,ae,ue,De){var Ee=Y.ref;return C={$$typeof:pe,type:C,key:B,props:Y,_owner:ae},(Ee!==void 0?Ee:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:k}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function _(C,B){return B=w(C.type,B,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(B._store.validated=C._store.validated),B}function U(C){q(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===Aa&&(C._payload.status==="fulfilled"?q(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function q(C){return typeof C==="object"&&C!==null&&C.$$typeof===pe}function W(C){var B={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(Y){return B[Y]})}function Q(C,B){return typeof C==="object"&&C!==null&&C.key!=null?(p(C.key),W(""+C.key)):B.toString(36)}function ne(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(f,f):(C.status="pending",C.then(function(B){C.status==="pending"&&(C.status="fulfilled",C.value=B)},function(B){C.status==="pending"&&(C.status="rejected",C.reason=B)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function J(C,B,Y,ae,ue){var De=typeof C;if(De==="undefined"||De==="boolean")C=null;var Ee=!1;if(C===null)Ee=!0;else switch(De){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(C.$$typeof){case pe:case Qe:Ee=!0;break;case Aa:return Ee=C._init,J(Ee(C._payload),B,Y,ae,ue)}}if(Ee){Ee=C,ue=ue(Ee);var nt=ae===""?"."+Q(Ee,0):ae;return mt(ue)?(Y="",nt!=null&&(Y=nt.replace(ir,"$&/")+"/"),J(ue,B,Y,"",function(ka){return ka})):ue!=null&&(q(ue)&&(ue.key!=null&&(Ee&&Ee.key===ue.key||p(ue.key)),Y=_(ue,Y+(ue.key==null||Ee&&Ee.key===ue.key?"":(""+ue.key).replace(ir,"$&/")+"/")+nt),ae!==""&&Ee!=null&&q(Ee)&&Ee.key==null&&Ee._store&&!Ee._store.validated&&(Y._store.validated=2),ue=Y),B.push(ue)),1}if(Ee=0,nt=ae===""?".":ae+":",mt(C))for(var ve=0;ve<C.length;ve++)ae=C[ve],De=nt+Q(ae,ve),Ee+=J(ae,B,Y,De,ue);else if(ve=n(C),typeof ve==="function")for(ve===C.entries&&(sr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sr=!0),C=ve.call(C),ve=0;!(ae=C.next()).done;)ae=ae.value,De=nt+Q(ae,ve++),Ee+=J(ae,B,Y,De,ue);else if(De==="object"){if(typeof C.then==="function")return J(ne(C),B,Y,ae,ue);throw B=String(C),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function K(C,B,Y){if(C==null)return C;var ae=[],ue=0;return J(C,ae,"","",function(De){return B.call(Y,De,ue++)}),ae}function re(C){if(C._status===-1){var B=C._ioInfo;B!=null&&(B.start=B.end=performance.now()),B=C._result;var Y=B();if(Y.then(function(ue){if(C._status===0||C._status===-1){C._status=1,C._result=ue;var De=C._ioInfo;De!=null&&(De.end=performance.now()),Y.status===void 0&&(Y.status="fulfilled",Y.value=ue)}},function(ue){if(C._status===0||C._status===-1){C._status=2,C._result=ue;var De=C._ioInfo;De!=null&&(De.end=performance.now()),Y.status===void 0&&(Y.status="rejected",Y.reason=ue)}}),B=C._ioInfo,B!=null){B.value=Y;var ae=Y.displayName;typeof ae==="string"&&(B.name=ae)}C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return B=C._result,B===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var GD=Object.create;var{getPrototypeOf:XD,defineProperty:Gw,getOwnPropertyNames:YD}=Object;var $D=Object.prototype.hasOwnProperty;function WD(a){return this[a]}var ZD,QD,Q=(a,n,s)=>{var i=a!=null&&typeof a==="object";if(i){var l=n?ZD??=new WeakMap:QD??=new WeakMap,u=l.get(a);if(u)return u}s=a!=null?GD(XD(a)):{};let d=n||!a||!a.__esModule?Gw(s,"default",{value:a,enumerable:!0}):s;if(a&&typeof a==="object"||typeof a==="function"){for(let p of YD(a))if(!$D.call(d,p))Gw(d,p,{get:WD.bind(a,p),enumerable:!0})}if(i)l.set(a,d);return d};var Xr=(a,n)=>()=>(n||a((n={exports:{}}).exports,n),n.exports);var fI=Xr(function(rN){(function(){function a(){if(H=!1,Y){var K=rN.unstable_now();se=K;var pe=!0;try{e:{B=!1,z&&(z=!1,G(J),J=-1),A=!0;var be=w;try{t:{u(K);for(I=s(v);I!==null&&!(I.expirationTime>K&&p());){var Ue=I.callback;if(typeof Ue==="function"){I.callback=null,w=I.priorityLevel;var He=Ue(I.expirationTime<=K);if(K=rN.unstable_now(),typeof He==="function"){I.callback=He,u(K),pe=!0;break t}I===s(v)&&i(v),u(K)}else i(v);I=s(v)}if(I!==null)pe=!0;else{var k=s(T);k!==null&&h(d,k.startTime-K),pe=!1}}break e}finally{I=null,w=be,A=!1}pe=void 0}}finally{pe?ge():Y=!1}}}function n(K,pe){var be=K.length;K.push(pe);e:for(;0<be;){var Ue=be-1>>>1,He=K[Ue];if(0<l(He,pe))K[Ue]=pe,K[be]=He,be=Ue;else break e}}function s(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var pe=K[0],be=K.pop();if(be!==pe){K[0]=be;e:for(var Ue=0,He=K.length,k=He>>>1;Ue<k;){var W=2*(Ue+1)-1,ee=K[W],ne=W+1,te=K[ne];if(0>l(ee,be))ne<He&&0>l(te,ee)?(K[Ue]=te,K[ne]=be,Ue=ne):(K[Ue]=ee,K[W]=be,Ue=W);else if(ne<He&&0>l(te,be))K[Ue]=te,K[ne]=be,Ue=ne;else break e}}return pe}function l(K,pe){var be=K.sortIndex-pe.sortIndex;return be!==0?be:K.id-pe.id}function u(K){for(var pe=s(T);pe!==null;){if(pe.callback===null)i(T);else if(pe.startTime<=K)i(T),pe.sortIndex=pe.expirationTime,n(v,pe);else break;pe=s(T)}}function d(K){if(z=!1,u(K),!B)if(s(v)!==null)B=!0,Y||(Y=!0,ge());else{var pe=s(T);pe!==null&&h(d,pe.startTime-K)}}function p(){return H?!0:rN.unstable_now()-se<j?!1:!0}function h(K,pe){J=V(function(){K(rN.unstable_now())},pe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),rN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var g=performance;rN.unstable_now=function(){return g.now()}}else{var b=Date,y=b.now();rN.unstable_now=function(){return b.now()-y}}var v=[],T=[],M=1,I=null,w=3,A=!1,B=!1,z=!1,H=!1,V=typeof setTimeout==="function"?setTimeout:null,G=typeof clearTimeout==="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null,Y=!1,J=-1,j=5,se=-1;if(typeof X==="function")var ge=function(){X(a)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Se=ye.port2;ye.port1.onmessage=a,ge=function(){Se.postMessage(null)}}else ge=function(){V(a,0)};rN.unstable_IdlePriority=5,rN.unstable_ImmediatePriority=1,rN.unstable_LowPriority=4,rN.unstable_NormalPriority=3,rN.unstable_Profiling=null,rN.unstable_UserBlockingPriority=2,rN.unstable_cancelCallback=function(K){K.callback=null},rN.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<K?Math.floor(1000/K):5},rN.unstable_getCurrentPriorityLevel=function(){return w},rN.unstable_next=function(K){switch(w){case 1:case 2:case 3:var pe=3;break;default:pe=w}var be=w;w=pe;try{return K()}finally{w=be}},rN.unstable_requestPaint=function(){H=!0},rN.unstable_runWithPriority=function(K,pe){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var be=w;w=K;try{return pe()}finally{w=be}},rN.unstable_scheduleCallback=function(K,pe,be){var Ue=rN.unstable_now();switch(typeof be==="object"&&be!==null?(be=be.delay,be=typeof be==="number"&&0<be?Ue+be:Ue):be=Ue,K){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5000}return He=be+He,K={id:M++,callback:pe,priorityLevel:K,startTime:be,expirationTime:He,sortIndex:-1},be>Ue?(K.sortIndex=be,n(T,K),s(v)===null&&K===s(T)&&(z?(G(J),J=-1):z=!0,h(d,be-Ue))):(K.sortIndex=He,n(v,K),B||A||(B=!0,Y||(Y=!0,ge()))),K},rN.unstable_shouldYield=p,rN.unstable_wrapCallback=function(K){var pe=w;return function(){var be=w;w=pe;try{return K.apply(this,arguments)}finally{w=be}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dt=Xr(function(iN,Cm){(function(){function a(C,N){Object.defineProperty(i.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",N[0],N[1])}})}function n(C){if(C===null||typeof C!=="object")return null;return C=tr&&C[tr]||C["@@iterator"],typeof C==="function"?C:null}function s(C,N){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var oe=C+"."+N;me[oe]||(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.",N,C),me[oe]=!0)}function i(C,N,oe){this.props=C,this.context=N,this.refs=ar,this.updater=oe||ds}function l(){}function u(C,N,oe){this.props=C,this.context=N,this.refs=ar,this.updater=oe||ds}function d(){}function p(C){return""+C}function h(C){try{p(C);var N=!1}catch(xe){N=!0}if(N){N=console;var oe=N.error,ue=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return oe.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ue),p(C)}}function g(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===Qu?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case He:return"Fragment";case W:return"Profiler";case k:return"StrictMode";case le:return"Suspense";case fe:return"SuspenseList";case Gt:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Ue:return"Portal";case ne:return C.displayName||"Context";case ee:return(C._context.displayName||"Context")+".Consumer";case te:var N=C.render;return C=C.displayName,C||(C=N.displayName||N.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case et:return N=C.displayName||null,N!==null?N:g(C.type)||"Memo";case tt:N=C._payload,C=C._init;try{return g(C(N))}catch(oe){}}return null}function b(C){if(C===He)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===tt)return"<...>";try{var N=g(C);return N?"<"+N+">":"<...>"}catch(oe){return"<...>"}}function y(){var C=Ve.A;return C===null?null:C.getOwner()}function v(){return Error("react-stack-top-frame")}function T(C){if(wl.call(C,"key")){var N=Object.getOwnPropertyDescriptor(C,"key").get;if(N&&N.isReactWarning)return!1}return C.key!==void 0}function M(C,N){function oe(){Af||(Af=!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)",N))}oe.isReactWarning=!0,Object.defineProperty(C,"key",{get:oe,configurable:!0})}function I(){var C=g(this.type);return pi[C]||(pi[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function w(C,N,oe,ue,xe,Ne){var ze=oe.ref;return C={$$typeof:be,type:C,key:N,props:oe,_owner:ue},(ze!==void 0?ze:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:I}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function A(C,N){return N=w(C.type,N,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(N._store.validated=C._store.validated),N}function B(C){z(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===tt&&(C._payload.status==="fulfilled"?z(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function z(C){return typeof C==="object"&&C!==null&&C.$$typeof===be}function H(C){var N={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return N[oe]})}function V(C,N){return typeof C==="object"&&C!==null&&C.key!=null?(h(C.key),H(""+C.key)):N.toString(36)}function G(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(d,d):(C.status="pending",C.then(function(N){C.status==="pending"&&(C.status="fulfilled",C.value=N)},function(N){C.status==="pending"&&(C.status="rejected",C.reason=N)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function X(C,N,oe,ue,xe){var Ne=typeof C;if(Ne==="undefined"||Ne==="boolean")C=null;var ze=!1;if(C===null)ze=!0;else switch(Ne){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(C.$$typeof){case be:case Ue:ze=!0;break;case tt:return ze=C._init,X(ze(C._payload),N,oe,ue,xe)}}if(ze){ze=C,xe=xe(ze);var pt=ue===""?"."+V(ze,0):ue;return Ct(xe)?(oe="",pt!=null&&(oe=pt.replace(Ml,"$&/")+"/"),X(xe,N,oe,"",function(Fa){return Fa})):xe!=null&&(z(xe)&&(xe.key!=null&&(ze&&ze.key===xe.key||h(xe.key)),oe=A(xe,oe+(xe.key==null||ze&&ze.key===xe.key?"":(""+xe.key).replace(Ml,"$&/")+"/")+pt),ue!==""&&ze!=null&&z(ze)&&ze.key==null&&ze._store&&!ze._store.validated&&(oe._store.validated=2),xe=oe),N.push(xe)),1}if(ze=0,pt=ue===""?".":ue+":",Ct(C))for(var Ae=0;Ae<C.length;Ae++)ue=C[Ae],Ne=pt+V(ue,Ae),ze+=X(ue,N,oe,Ne,xe);else if(Ae=n(C),typeof Ae==="function")for(Ae===C.entries&&(kl||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kl=!0),C=Ae.call(C),Ae=0;!(ue=C.next()).done;)ue=ue.value,Ne=pt+V(ue,Ae++),ze+=X(ue,N,oe,Ne,xe);else if(Ne==="object"){if(typeof C.then==="function")return X(G(C),N,oe,ue,xe);throw N=String(C),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(C,N,oe){if(C==null)return C;var ue=[],xe=0;return X(C,ue,"","",function(Ne){return N.call(oe,Ne,xe++)}),ue}function J(C){if(C._status===-1){var N=C._ioInfo;N!=null&&(N.start=N.end=performance.now()),N=C._result;var oe=N();if(oe.then(function(xe){if(C._status===0||C._status===-1){C._status=1,C._result=xe;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),oe.status===void 0&&(oe.status="fulfilled",oe.value=xe)}},function(xe){if(C._status===0||C._status===-1){C._status=2,C._result=xe;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),oe.status===void 0&&(oe.status="rejected",oe.reason=xe)}}),N=C._ioInfo,N!=null){N.value=oe;var ue=oe.displayName;typeof ue==="string"&&(N.name=ue)}C._status===-1&&(C._status=0,C._result=oe)}if(C._status===1)return N=C._result,N===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'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,B),"default"in B||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,N),"default"in N||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'))`,B),B.default;throw C._result}function V(){var C=ze.H;return C===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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,N),N.default;throw C._result}function j(){var C=Ve.H;return C===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.`),C}function he(){ze.asyncTransitions--}function Le(C){if(Wi===null)try{var B=("require"+Math.random()).slice(0,7);Wi=(Qp&&Qp[B]).call(Qp,"timers").setImmediate}catch(Y){Wi=function(ae){of===!1&&(of=!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 ue=new MessageChannel;ue.port1.onmessage=ae,ue.port2.postMessage(void 0)}}return Wi(C)}function we(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function Oe(C,B){B!==Zi-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. "),Zi=B}function G(C,B,Y){var ae=ze.actQueue;if(ae!==null)if(ae.length!==0)try{le(ae),Le(function(){return G(C,B,Y)});return}catch(ue){ze.thrownErrors.push(ue)}else ze.actQueue=null;0<ze.thrownErrors.length?(ae=we(ze.thrownErrors),ze.thrownErrors.length=0,Y(ae)):B(C)}function le(C){if(!Ki){Ki=!0;var B=0;try{for(;B<C.length;B++){var Y=C[B];do{ze.didUsePromise=!1;var ae=Y(!1);if(ae!==null){if(ze.didUsePromise){C[B]=Y,C.splice(0,B);return}Y=ae}else break}while(1)}C.length=0}catch(ue){C.splice(0,B+1),ze.thrownErrors.push(ue)}finally{Ki=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pe=Symbol.for("react.transitional.element"),Qe=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),Ge=Symbol.for("react.forward_ref"),Ft=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Wt=Symbol.for("react.memo"),Aa=Symbol.for("react.lazy"),en=Symbol.for("react.activity"),tf=Symbol.iterator,ie={},or={isMounted:function(){return!1},enqueueForceUpdate:function(C){s(C,"forceUpdate")},enqueueReplaceState:function(C){s(C,"replaceState")},enqueueSetState:function(C){s(C,"setState")}},Yi=Object.assign,Bs={};Object.freeze(Bs),l.prototype.isReactComponent={},l.prototype.setState=function(C,B){if(typeof C!=="object"&&typeof C!=="function"&&C!=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,C,B,"setState")},l.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var ua={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(zs in ua)ua.hasOwnProperty(zs)&&a(zs,ua[zs]);r.prototype=l.prototype,ua=c.prototype=new r,ua.constructor=c,Yi(ua,l.prototype),ua.isPureReactComponent=!0;var mt=Array.isArray,Iu=Symbol.for("react.client.reference"),ze={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},nr=Object.prototype.hasOwnProperty,St=console.createTask?console.createTask:function(){return null};ua={react_stack_bottom_frame:function(C){return C()}};var af,gn,Xi={},$i=ua.react_stack_bottom_frame.bind(ua,S)(),Sm=St(x(S)),sr=!1,ir=/\/+/g,Ns=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(B))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},of=!1,Wi=null,Zi=0,Qi=!1,Ki=!1,Mu=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:Le;ua=Object.freeze({__proto__:null,c:function(C){return V().useMemoCache(C)}});var zs={map:K,forEach:function(C,B,Y){K(C,function(){B.apply(this,arguments)},Y)},count:function(C){var B=0;return K(C,function(){B++}),B},toArray:function(C){return K(C,function(B){return B})||[]},only:function(C){if(!q(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};cB.Activity=en,cB.Children=zs,cB.Component=l,cB.Fragment=je,cB.Profiler=Z,cB.PureComponent=c,cB.StrictMode=D,cB.Suspense=Ft,cB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze,cB.__COMPILER_RUNTIME=ua,cB.act=function(C){var B=ze.actQueue,Y=Zi;Zi++;var ae=ze.actQueue=B!==null?B:[],ue=!1;try{var De=C()}catch(ve){ze.thrownErrors.push(ve)}if(0<ze.thrownErrors.length)throw Oe(B,Y),C=we(ze.thrownErrors),ze.thrownErrors.length=0,C;if(De!==null&&typeof De==="object"&&typeof De.then==="function"){var Ee=De;return Mu(function(){ue||Qi||(Qi=!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(ve,ka){ue=!0,Ee.then(function(co){if(Oe(B,Y),Y===0){try{le(ae),Le(function(){return G(co,ve,ka)})}catch(Au){ze.thrownErrors.push(Au)}if(0<ze.thrownErrors.length){var Us=we(ze.thrownErrors);ze.thrownErrors.length=0,ka(Us)}}else ve(co)},function(co){Oe(B,Y),0<ze.thrownErrors.length?(co=we(ze.thrownErrors),ze.thrownErrors.length=0,ka(co)):ka(co)})}}}var nt=De;if(Oe(B,Y),Y===0&&(le(ae),ae.length!==0&&Mu(function(){ue||Qi||(Qi=!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(() => ...)"))}),ze.actQueue=null),0<ze.thrownErrors.length)throw C=we(ze.thrownErrors),ze.thrownErrors.length=0,C;return{then:function(ve,ka){ue=!0,Y===0?(ze.actQueue=ae,Le(function(){return G(nt,ve,ka)})):ve(nt)}}},cB.cache=function(C){return function(){return C.apply(null,arguments)}},cB.cacheSignal=function(){return null},cB.captureOwnerStack=function(){var C=ze.getCurrentStack;return C===null?null:C()},cB.cloneElement=function(C,B,Y){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var ae=Yi({},C.props),ue=C.key,De=C._owner;if(B!=null){var Ee;e:{if(nr.call(B,"ref")&&(Ee=Object.getOwnPropertyDescriptor(B,"ref").get)&&Ee.isReactWarning){Ee=!1;break e}Ee=B.ref!==void 0}Ee&&(De=y()),T(B)&&(p(B.key),ue=""+B.key);for(nt in B)!nr.call(B,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&B.ref===void 0||(ae[nt]=B[nt])}var nt=arguments.length-2;if(nt===1)ae.children=Y;else if(1<nt){Ee=Array(nt);for(var ve=0;ve<nt;ve++)Ee[ve]=arguments[ve+2];ae.children=Ee}ae=w(C.type,ue,ae,De,C._debugStack,C._debugTask);for(ue=2;ue<arguments.length;ue++)U(arguments[ue]);return ae},cB.createContext=function(C){return C={$$typeof:ge,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:me,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},cB.createElement=function(C,B,Y){for(var ae=2;ae<arguments.length;ae++)U(arguments[ae]);ae={};var ue=null;if(B!=null)for(ve in gn||!("__self"in B)||"key"in B||(gn=!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")),T(B)&&(p(B.key),ue=""+B.key),B)nr.call(B,ve)&&ve!=="key"&&ve!=="__self"&&ve!=="__source"&&(ae[ve]=B[ve]);var De=arguments.length-2;if(De===1)ae.children=Y;else if(1<De){for(var Ee=Array(De),nt=0;nt<De;nt++)Ee[nt]=arguments[nt+2];Object.freeze&&Object.freeze(Ee),ae.children=Ee}if(C&&C.defaultProps)for(ve in De=C.defaultProps,De)ae[ve]===void 0&&(ae[ve]=De[ve]);ue&&M(ae,typeof C==="function"?C.displayName||C.name||"Unknown":C);var ve=1e4>ze.recentlyCreatedOwnerStacks++;return w(C,ue,ae,y(),ve?Error("react-stack-top-frame"):$i,ve?St(x(C)):Sm)},cB.createRef=function(){var C={current:null};return Object.seal(C),C},cB.forwardRef=function(C){C!=null&&C.$$typeof===Wt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var B={$$typeof:Ge,render:C},Y;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(ae){Y=ae,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ae}),C.displayName=ae)}}),B},cB.isValidElement=q,cB.lazy=function(C){C={_status:-1,_result:C};var B={$$typeof:Aa,_payload:C,_init:re},Y={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=Y,B._debugInfo=[{awaited:Y}],B},cB.memo=function(C,B){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),B={$$typeof:Wt,type:C,compare:B===void 0?null:B};var Y;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(ae){Y=ae,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ae}),C.displayName=ae)}}),B},cB.startTransition=function(C){var B=ze.T,Y={};Y._updatedFibers=new Set,ze.T=Y;try{var ae=C(),ue=ze.S;ue!==null&&ue(Y,ae),typeof ae==="object"&&ae!==null&&typeof ae.then==="function"&&(ze.asyncTransitions++,ae.then(he,he),ae.then(f,Ns))}catch(De){Ns(De)}finally{B===null&&Y._updatedFibers&&(C=Y._updatedFibers.size,Y._updatedFibers.clear(),10<C&&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.")),B!==null&&Y.types!==null&&(B.types!==null&&B.types!==Y.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."),B.types=Y.types),ze.T=B}},cB.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},cB.use=function(C){return V().use(C)},cB.useActionState=function(C,B,Y){return V().useActionState(C,B,Y)},cB.useCallback=function(C,B){return V().useCallback(C,B)},cB.useContext=function(C){var B=V();return C.$$typeof===me&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),B.useContext(C)},cB.useDebugValue=function(C,B){return V().useDebugValue(C,B)},cB.useDeferredValue=function(C,B){return V().useDeferredValue(C,B)},cB.useEffect=function(C,B){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(C,B)},cB.useEffectEvent=function(C){return V().useEffectEvent(C)},cB.useId=function(){return V().useId()},cB.useImperativeHandle=function(C,B,Y){return V().useImperativeHandle(C,B,Y)},cB.useInsertionEffect=function(C,B){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(C,B)},cB.useLayoutEffect=function(C,B){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(C,B)},cB.useMemo=function(C,B){return V().useMemo(C,B)},cB.useOptimistic=function(C,B){return V().useOptimistic(C,B)},cB.useReducer=function(C,B,Y){return V().useReducer(C,B,Y)},cB.useRef=function(C){return V().useRef(C)},cB.useState=function(C){return V().useState(C)},cB.useSyncExternalStore=function(C,B,Y){return V().useSyncExternalStore(C,B,Y)},cB.useTransition=function(){return V().useTransition()},cB.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var BM=Ii(function(dB){var uv=X(vt());(function(){function a(){}function n(x){return""+x}function s(x,y,S){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(T);var M=!1}catch(k){M=!0}return M&&(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&&T[Symbol.toStringTag]||T.constructor.name||"Object"),n(T)),{$$typeof:p,key:T==null?null:""+T,children:x,containerInfo:y,implementation:S}}function l(x,y){if(x==="font")return"";if(typeof y==="string")return y==="use-credentials"?y:""}function r(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":'something with type "'+typeof x+'"'}function c(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":typeof x==="string"?JSON.stringify(x):typeof x==="number"?"`"+x+"`":'something with type "'+typeof x+'"'}function f(){var x=g.H;return x===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.`),C}function se(){Ve.asyncTransitions--}function ge(C){if(mi===null)try{var N=("require"+Math.random()).slice(0,7);mi=(Cm&&Cm[N]).call(Cm,"timers").setImmediate}catch(oe){mi=function(ue){Rf===!1&&(Rf=!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 xe=new MessageChannel;xe.port1.onmessage=ue,xe.port2.postMessage(void 0)}}return mi(C)}function ye(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function Se(C,N){N!==gi-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. "),gi=N}function K(C,N,oe){var ue=Ve.actQueue;if(ue!==null)if(ue.length!==0)try{pe(ue),ge(function(){return K(C,N,oe)});return}catch(xe){Ve.thrownErrors.push(xe)}else Ve.actQueue=null;0<Ve.thrownErrors.length?(ue=ye(Ve.thrownErrors),Ve.thrownErrors.length=0,oe(ue)):N(C)}function pe(C){if(!bi){bi=!0;var N=0;try{for(;N<C.length;N++){var oe=C[N];do{Ve.didUsePromise=!1;var ue=oe(!1);if(ue!==null){if(Ve.didUsePromise){C[N]=oe,C.splice(0,N);return}oe=ue}else break}while(1)}C.length=0}catch(xe){C.splice(0,N+1),Ve.thrownErrors.push(xe)}finally{bi=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var be=Symbol.for("react.transitional.element"),Ue=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),Gt=Symbol.for("react.activity"),tr=Symbol.iterator,me={},ds={isMounted:function(){return!1},enqueueForceUpdate:function(C){s(C,"forceUpdate")},enqueueReplaceState:function(C){s(C,"replaceState")},enqueueSetState:function(C){s(C,"setState")}},oo=Object.assign,ar={};Object.freeze(ar),i.prototype.isReactComponent={},i.prototype.setState=function(C,N){if(typeof C!=="object"&&typeof C!=="function"&&C!=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,C,N,"setState")},i.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var va={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(nr in va)va.hasOwnProperty(nr)&&a(nr,va[nr]);l.prototype=i.prototype,va=u.prototype=new l,va.constructor=u,oo(va,i.prototype),va.isPureReactComponent=!0;var Ct=Array.isArray,Qu=Symbol.for("react.client.reference"),Ve={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},wl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};va={react_stack_bottom_frame:function(C){return C()}};var Af,Mn,pi={},hi=va.react_stack_bottom_frame.bind(va,v)(),Wm=_t(b(v)),kl=!1,Ml=/\/+/g,or=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(N))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},Rf=!1,mi=null,gi=0,yi=!1,bi=!1,Ku=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:ge;va=Object.freeze({__proto__:null,c:function(C){return j().useMemoCache(C)}});var nr={map:Y,forEach:function(C,N,oe){Y(C,function(){N.apply(this,arguments)},oe)},count:function(C){var N=0;return Y(C,function(){N++}),N},toArray:function(C){return Y(C,function(N){return N})||[]},only:function(C){if(!z(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};iN.Activity=Gt,iN.Children=nr,iN.Component=i,iN.Fragment=He,iN.Profiler=W,iN.PureComponent=u,iN.StrictMode=k,iN.Suspense=le,iN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ve,iN.__COMPILER_RUNTIME=va,iN.act=function(C){var N=Ve.actQueue,oe=gi;gi++;var ue=Ve.actQueue=N!==null?N:[],xe=!1;try{var Ne=C()}catch(Ae){Ve.thrownErrors.push(Ae)}if(0<Ve.thrownErrors.length)throw Se(N,oe),C=ye(Ve.thrownErrors),Ve.thrownErrors.length=0,C;if(Ne!==null&&typeof Ne==="object"&&typeof Ne.then==="function"){var ze=Ne;return Ku(function(){xe||yi||(yi=!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(Ae,Fa){xe=!0,ze.then(function(Lo){if(Se(N,oe),oe===0){try{pe(ue),ge(function(){return K(Lo,Ae,Fa)})}catch(Ju){Ve.thrownErrors.push(Ju)}if(0<Ve.thrownErrors.length){var sr=ye(Ve.thrownErrors);Ve.thrownErrors.length=0,Fa(sr)}}else Ae(Lo)},function(Lo){Se(N,oe),0<Ve.thrownErrors.length?(Lo=ye(Ve.thrownErrors),Ve.thrownErrors.length=0,Fa(Lo)):Fa(Lo)})}}}var pt=Ne;if(Se(N,oe),oe===0&&(pe(ue),ue.length!==0&&Ku(function(){xe||yi||(yi=!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(() => ...)"))}),Ve.actQueue=null),0<Ve.thrownErrors.length)throw C=ye(Ve.thrownErrors),Ve.thrownErrors.length=0,C;return{then:function(Ae,Fa){xe=!0,oe===0?(Ve.actQueue=ue,ge(function(){return K(pt,Ae,Fa)})):Ae(pt)}}},iN.cache=function(C){return function(){return C.apply(null,arguments)}},iN.cacheSignal=function(){return null},iN.captureOwnerStack=function(){var C=Ve.getCurrentStack;return C===null?null:C()},iN.cloneElement=function(C,N,oe){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var ue=oo({},C.props),xe=C.key,Ne=C._owner;if(N!=null){var ze;e:{if(wl.call(N,"ref")&&(ze=Object.getOwnPropertyDescriptor(N,"ref").get)&&ze.isReactWarning){ze=!1;break e}ze=N.ref!==void 0}ze&&(Ne=y()),T(N)&&(h(N.key),xe=""+N.key);for(pt in N)!wl.call(N,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&N.ref===void 0||(ue[pt]=N[pt])}var pt=arguments.length-2;if(pt===1)ue.children=oe;else if(1<pt){ze=Array(pt);for(var Ae=0;Ae<pt;Ae++)ze[Ae]=arguments[Ae+2];ue.children=ze}ue=w(C.type,xe,ue,Ne,C._debugStack,C._debugTask);for(xe=2;xe<arguments.length;xe++)B(arguments[xe]);return ue},iN.createContext=function(C){return C={$$typeof:ne,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:ee,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},iN.createElement=function(C,N,oe){for(var ue=2;ue<arguments.length;ue++)B(arguments[ue]);ue={};var xe=null;if(N!=null)for(Ae in Mn||!("__self"in N)||"key"in N||(Mn=!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")),T(N)&&(h(N.key),xe=""+N.key),N)wl.call(N,Ae)&&Ae!=="key"&&Ae!=="__self"&&Ae!=="__source"&&(ue[Ae]=N[Ae]);var Ne=arguments.length-2;if(Ne===1)ue.children=oe;else if(1<Ne){for(var ze=Array(Ne),pt=0;pt<Ne;pt++)ze[pt]=arguments[pt+2];Object.freeze&&Object.freeze(ze),ue.children=ze}if(C&&C.defaultProps)for(Ae in Ne=C.defaultProps,Ne)ue[Ae]===void 0&&(ue[Ae]=Ne[Ae]);xe&&M(ue,typeof C==="function"?C.displayName||C.name||"Unknown":C);var Ae=1e4>Ve.recentlyCreatedOwnerStacks++;return w(C,xe,ue,y(),Ae?Error("react-stack-top-frame"):hi,Ae?_t(b(C)):Wm)},iN.createRef=function(){var C={current:null};return Object.seal(C),C},iN.forwardRef=function(C){C!=null&&C.$$typeof===et?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var N={$$typeof:te,render:C},oe;return Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ue}),C.displayName=ue)}}),N},iN.isValidElement=z,iN.lazy=function(C){C={_status:-1,_result:C};var N={$$typeof:tt,_payload:C,_init:J},oe={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=oe,N._debugInfo=[{awaited:oe}],N},iN.memo=function(C,N){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),N={$$typeof:et,type:C,compare:N===void 0?null:N};var oe;return Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(ue){oe=ue,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ue}),C.displayName=ue)}}),N},iN.startTransition=function(C){var N=Ve.T,oe={};oe._updatedFibers=new Set,Ve.T=oe;try{var ue=C(),xe=Ve.S;xe!==null&&xe(oe,ue),typeof ue==="object"&&ue!==null&&typeof ue.then==="function"&&(Ve.asyncTransitions++,ue.then(se,se),ue.then(d,or))}catch(Ne){or(Ne)}finally{N===null&&oe._updatedFibers&&(C=oe._updatedFibers.size,oe._updatedFibers.clear(),10<C&&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.")),N!==null&&oe.types!==null&&(N.types!==null&&N.types!==oe.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=oe.types),Ve.T=N}},iN.unstable_useCacheRefresh=function(){return j().useCacheRefresh()},iN.use=function(C){return j().use(C)},iN.useActionState=function(C,N,oe){return j().useActionState(C,N,oe)},iN.useCallback=function(C,N){return j().useCallback(C,N)},iN.useContext=function(C){var N=j();return C.$$typeof===ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),N.useContext(C)},iN.useDebugValue=function(C,N){return j().useDebugValue(C,N)},iN.useDeferredValue=function(C,N){return j().useDeferredValue(C,N)},iN.useEffect=function(C,N){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),j().useEffect(C,N)},iN.useEffectEvent=function(C){return j().useEffectEvent(C)},iN.useId=function(){return j().useId()},iN.useImperativeHandle=function(C,N,oe){return j().useImperativeHandle(C,N,oe)},iN.useInsertionEffect=function(C,N){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),j().useInsertionEffect(C,N)},iN.useLayoutEffect=function(C,N){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),j().useLayoutEffect(C,N)},iN.useMemo=function(C,N){return j().useMemo(C,N)},iN.useOptimistic=function(C,N){return j().useOptimistic(C,N)},iN.useReducer=function(C,N,oe){return j().useReducer(C,N,oe)},iN.useRef=function(C){return j().useRef(C)},iN.useState=function(C){return j().useState(C)},iN.useSyncExternalStore=function(C,N,oe){return j().useSyncExternalStore(C,N,oe)},iN.useTransition=function(){return j().useTransition()},iN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var pI=Xr(function(lN){var Nv=Q(dt());(function(){function a(){}function n(b){return""+b}function s(b,y,v){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(T);var M=!1}catch(I){M=!0}return M&&(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&&T[Symbol.toStringTag]||T.constructor.name||"Object"),n(T)),{$$typeof:h,key:T==null?null:""+T,children:b,containerInfo:y,implementation:v}}function i(b,y){if(b==="font")return"";if(typeof y==="string")return y==="use-credentials"?y:""}function l(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":'something with type "'+typeof b+'"'}function u(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":typeof b==="string"?JSON.stringify(b):typeof b==="number"?"`"+b+"`":'something with type "'+typeof b+'"'}function d(){var b=g.H;return b===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.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},p=Symbol.for("react.portal"),g=uv.__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"),dB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,dB.createPortal=function(x,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return s(x,y,null,S)},dB.flushSync=function(x){var y=g.T,S=h.p;try{if(g.T=null,h.p=2,x)return x()}finally{g.T=y,h.p=S,h.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.")}},dB.preconnect=function(x,y){typeof x==="string"&&x?y!=null&&typeof y!=="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.",c(y)):y!=null&&typeof y.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.",r(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(x)),typeof x==="string"&&(y?(y=y.crossOrigin,y=typeof y==="string"?y==="use-credentials"?y:"":void 0):y=null,h.d.C(x,y))},dB.prefetchDNS=function(x){if(typeof x!=="string"||!x)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(x));else if(1<arguments.length){var y=arguments[1];typeof y==="object"&&y.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`.",c(y)):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`.",c(y))}typeof x==="string"&&h.d.D(x)},dB.preinit=function(x,y){if(typeof x==="string"&&x?y==null||typeof y!=="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.",c(y)):y.as!=="style"&&y.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".',c(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(x)),typeof x==="string"&&y&&typeof y.as==="string"){var S=y.as,T=l(S,y.crossOrigin),M=typeof y.integrity==="string"?y.integrity:void 0,k=typeof y.fetchPriority==="string"?y.fetchPriority:void 0;S==="style"?h.d.S(x,typeof y.precedence==="string"?y.precedence:void 0,{crossOrigin:T,integrity:M,fetchPriority:k}):S==="script"&&h.d.X(x,{crossOrigin:T,integrity:M,fetchPriority:k,nonce:typeof y.nonce==="string"?y.nonce:void 0})}},dB.preinitModule=function(x,y){var S="";if(typeof x==="string"&&x||(S+=" The `href` argument encountered was "+r(x)+"."),y!==void 0&&typeof y!=="object"?S+=" The `options` argument encountered was "+r(y)+".":y&&("as"in y)&&y.as!=="script"&&(S+=" The `as` option encountered was "+c(y.as)+"."),S)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",S);else switch(S=y&&typeof y.as==="string"?y.as:"script",S){case"script":break;default:S=c(S),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)',S,x)}if(typeof x==="string")if(typeof y==="object"&&y!==null){if(y.as==null||y.as==="script")S=l(y.as,y.crossOrigin),h.d.M(x,{crossOrigin:S,integrity:typeof y.integrity==="string"?y.integrity:void 0,nonce:typeof y.nonce==="string"?y.nonce:void 0})}else y==null&&h.d.M(x)},dB.preload=function(x,y){var S="";if(typeof x==="string"&&x||(S+=" The `href` argument encountered was "+r(x)+"."),y==null||typeof y!=="object"?S+=" The `options` argument encountered was "+r(y)+".":typeof y.as==="string"&&y.as||(S+=" The `as` option encountered was "+r(y.as)+"."),S&&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',S),typeof x==="string"&&typeof y==="object"&&y!==null&&typeof y.as==="string"){S=y.as;var T=l(S,y.crossOrigin);h.d.L(x,S,{crossOrigin:T,integrity:typeof y.integrity==="string"?y.integrity:void 0,nonce:typeof y.nonce==="string"?y.nonce:void 0,type:typeof y.type==="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority==="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy==="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet==="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes==="string"?y.imageSizes:void 0,media:typeof y.media==="string"?y.media:void 0})}},dB.preloadModule=function(x,y){var S="";typeof x==="string"&&x||(S+=" The `href` argument encountered was "+r(x)+"."),y!==void 0&&typeof y!=="object"?S+=" The `options` argument encountered was "+r(y)+".":y&&("as"in y)&&typeof y.as!=="string"&&(S+=" The `as` option encountered was "+r(y.as)+"."),S&&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',S),typeof x==="string"&&(y?(S=l(y.as,y.crossOrigin),h.d.m(x,{as:typeof y.as==="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity==="string"?y.integrity:void 0})):h.d.m(x))},dB.requestFormReset=function(x){h.d.r(x)},dB.unstable_batchedUpdates=function(x,y){return x(y)},dB.useFormState=function(x,y,S){return f().useFormState(x,y,S)},dB.useFormStatus=function(){return f().useHostTransitionStatus()},dB.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zM=Ii(function(yU,NM){var fB=X(BM());NM.exports=fB});var UM=Ii(function(hB){var it=X(PM()),xu=X(vt()),cv=X(zM());(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,o,i){if(o>=t.length)return i;var u=t[o],d=na(e)?e.slice():Xe({},e);return d[u]=n(e[u],t,o+1,i),d}function s(e,t,o){if(t.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<o.length-1;i++)if(t[i]!==o[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return l(e,t,o,0)}}function l(e,t,o,i){var u=t[i],d=na(e)?e.slice():Xe({},e);return i+1===t.length?(d[o[i]]=d[u],na(d)?d.splice(u,1):delete d[u]):d[u]=l(e[u],t,o,i+1),d}function r(e,t,o){var i=t[o],u=na(e)?e.slice():Xe({},e);if(o+1===t.length)return na(u)?u.splice(i,1):delete u[i],u;return u[i]=r(e[i],t,o+1),u}function c(){return!1}function f(){return null}function h(){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 p(){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 g(){}function x(){}function y(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")}function S(e,t,o,i){return new Nk(e,t,o,i)}function T(e,t){e.context===si&&(Sy(e.current,2,t,e,null,null),xr())}function M(e,t){if(Bo!==null){var o=t.staleFamilies;t=t.updatedFamilies,ec(),v0(e.current,t,o),xr()}}function k(e){Bo=e}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function U(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 q(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 W(e){if(_(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Q(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var o=e,i=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(i=u.return,i!==null){o=i;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return W(u),e;if(d===i)return W(u),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==i.return)o=u,i=d;else{for(var m=!1,b=u.child;b;){if(b===o){m=!0,o=u,i=d;break}if(b===i){m=!0,i=u,o=d;break}b=b.sibling}if(!m){for(b=d.child;b;){if(b===o){m=!0,o=d,i=u;break}if(b===i){m=!0,i=d,o=u;break}b=b.sibling}if(!m)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(o.alternate!==i)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(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:t}function ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ne(e),t!==null)return t;e=e.sibling}return null}function J(e){if(e===null||typeof e!=="object")return null;return e=MC&&e[MC]||e["@@iterator"],typeof e==="function"?e:null}function K(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===n_?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Ir:return"Fragment";case My:return"Profiler";case hh:return"StrictMode";case ky:return"Suspense";case Ry:return"SuspenseList";case _y: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 wr:return"Portal";case On:return e.displayName||"Context";case Ay:return(e._context.displayName||"Context")+".Consumer";case cc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ph:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case vo:t=e._payload,e=e._init;try{return K(e(t))}catch(o){}}return null}function re(e){return typeof e.tag==="number"?V(e):typeof e.name==="string"?e.name:null}function V(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 K(t);case 8:return t===hh?"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 o=t.length-1;0<=o;o--)if(typeof t[o].name==="string")return t[o].name}if(e.return!==null)return V(e.return)}return null}function he(e){return{current:e}}function Le(e,t){0>ls?console.error("Unexpected pop."):(t!==Ey[ls]&&console.error("Unexpected Fiber popped."),e.current=Dy[ls],Dy[ls]=null,Ey[ls]=null,ls--)}function we(e,t,o){ls++,Dy[ls]=e.current,Ey[ls]=o,e.current=t}function Oe(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 G(e,t){we(Js,t,e),we(dc,e,e),we(Ks,null,e);var o=t.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?QL(t):Ss:Ss;break;default:if(o=t.tagName,t=t.namespaceURI)t=QL(t),t=KL(t,o);else switch(o){case"svg":t=iu;break;case"math":t=fp;break;default:t=Ss}}o=o.toLowerCase(),o=Gv(null,o),o={context:t,ancestorInfo:o},Le(Ks,e),we(Ks,o,e)}function le(e){Le(Ks,e),Le(dc,e),Le(Js,e)}function pe(){return Oe(Ks.current)}function Qe(e){e.memoizedState!==null&&we(mh,e,e);var t=Oe(Ks.current),o=e.type,i=KL(t.context,o);o=Gv(t.ancestorInfo,o),i={context:i,ancestorInfo:o},t!==i&&(we(dc,e,e),we(Ks,i,e))}function je(e){dc.current===e&&(Le(Ks,e),Le(dc,e)),mh.current===e&&(Le(mh,e),ad._currentValue=Bl)}function D(){}function Z(){if(fc===0){AC=console.log,kC=console.info,RC=console.warn,_C=console.error,DC=console.group,EC=console.groupCollapsed,OC=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}fc++}function me(){if(fc--,fc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xe({},e,{value:AC}),info:Xe({},e,{value:kC}),warn:Xe({},e,{value:RC}),error:Xe({},e,{value:_C}),group:Xe({},e,{value:DC}),groupCollapsed:Xe({},e,{value:EC}),groupEnd:Xe({},e,{value:OC})})}0>fc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ge(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.`),b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var p={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},h=Symbol.for("react.portal"),g=Nv.__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"),lN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,lN.createPortal=function(b,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return s(b,y,null,v)},lN.flushSync=function(b){var y=g.T,v=p.p;try{if(g.T=null,p.p=2,b)return b()}finally{g.T=y,p.p=v,p.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.")}},lN.preconnect=function(b,y){typeof b==="string"&&b?y!=null&&typeof y!=="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.",u(y)):y!=null&&typeof y.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.",l(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(b)),typeof b==="string"&&(y?(y=y.crossOrigin,y=typeof y==="string"?y==="use-credentials"?y:"":void 0):y=null,p.d.C(b,y))},lN.prefetchDNS=function(b){if(typeof b!=="string"||!b)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(b));else if(1<arguments.length){var y=arguments[1];typeof y==="object"&&y.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`.",u(y)):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`.",u(y))}typeof b==="string"&&p.d.D(b)},lN.preinit=function(b,y){if(typeof b==="string"&&b?y==null||typeof y!=="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.",u(y)):y.as!=="style"&&y.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".',u(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(b)),typeof b==="string"&&y&&typeof y.as==="string"){var v=y.as,T=i(v,y.crossOrigin),M=typeof y.integrity==="string"?y.integrity:void 0,I=typeof y.fetchPriority==="string"?y.fetchPriority:void 0;v==="style"?p.d.S(b,typeof y.precedence==="string"?y.precedence:void 0,{crossOrigin:T,integrity:M,fetchPriority:I}):v==="script"&&p.d.X(b,{crossOrigin:T,integrity:M,fetchPriority:I,nonce:typeof y.nonce==="string"?y.nonce:void 0})}},lN.preinitModule=function(b,y){var v="";if(typeof b==="string"&&b||(v+=" The `href` argument encountered was "+l(b)+"."),y!==void 0&&typeof y!=="object"?v+=" The `options` argument encountered was "+l(y)+".":y&&("as"in y)&&y.as!=="script"&&(v+=" The `as` option encountered was "+u(y.as)+"."),v)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",v);else switch(v=y&&typeof y.as==="string"?y.as:"script",v){case"script":break;default:v=u(v),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)',v,b)}if(typeof b==="string")if(typeof y==="object"&&y!==null){if(y.as==null||y.as==="script")v=i(y.as,y.crossOrigin),p.d.M(b,{crossOrigin:v,integrity:typeof y.integrity==="string"?y.integrity:void 0,nonce:typeof y.nonce==="string"?y.nonce:void 0})}else y==null&&p.d.M(b)},lN.preload=function(b,y){var v="";if(typeof b==="string"&&b||(v+=" The `href` argument encountered was "+l(b)+"."),y==null||typeof y!=="object"?v+=" The `options` argument encountered was "+l(y)+".":typeof y.as==="string"&&y.as||(v+=" The `as` option encountered was "+l(y.as)+"."),v&&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',v),typeof b==="string"&&typeof y==="object"&&y!==null&&typeof y.as==="string"){v=y.as;var T=i(v,y.crossOrigin);p.d.L(b,v,{crossOrigin:T,integrity:typeof y.integrity==="string"?y.integrity:void 0,nonce:typeof y.nonce==="string"?y.nonce:void 0,type:typeof y.type==="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority==="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy==="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet==="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes==="string"?y.imageSizes:void 0,media:typeof y.media==="string"?y.media:void 0})}},lN.preloadModule=function(b,y){var v="";typeof b==="string"&&b||(v+=" The `href` argument encountered was "+l(b)+"."),y!==void 0&&typeof y!=="object"?v+=" The `options` argument encountered was "+l(y)+".":y&&("as"in y)&&typeof y.as!=="string"&&(v+=" The `as` option encountered was "+l(y.as)+"."),v&&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',v),typeof b==="string"&&(y?(v=i(y.as,y.crossOrigin),p.d.m(b,{as:typeof y.as==="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity==="string"?y.integrity:void 0})):p.d.m(b))},lN.requestFormReset=function(b){p.d.r(b)},lN.unstable_batchedUpdates=function(b,y){return b(y)},lN.useFormState=function(b,y,v){return d().useFormState(b,y,v)},lN.useFormStatus=function(){return d().useHostTransitionStatus()},lN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mI=Xr(function(BU,hI){var uN=Q(pI());hI.exports=uN});var gI=Xr(function(cN){var mt=Q(fI()),Uu=Q(dt()),zv=Q(mI());(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,o,r){if(o>=t.length)return r;var c=t[o],f=ha(e)?e.slice():Ze({},e);return f[c]=n(e[c],t,o+1,r),f}function s(e,t,o){if(t.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var r=0;r<o.length-1;r++)if(t[r]!==o[r]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return i(e,t,o,0)}}function i(e,t,o,r){var c=t[r],f=ha(e)?e.slice():Ze({},e);return r+1===t.length?(f[o[r]]=f[c],ha(f)?f.splice(c,1):delete f[c]):f[c]=i(e[c],t,o,r+1),f}function l(e,t,o){var r=t[o],c=ha(e)?e.slice():Ze({},e);if(o+1===t.length)return ha(c)?c.splice(r,1):delete c[r],c;return c[r]=l(e[r],t,o+1),c}function u(){return!1}function d(){return null}function p(){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 h(){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 g(){}function b(){}function y(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")}function v(e,t,o,r){return new OR(e,t,o,r)}function T(e,t){e.context===wr&&(Wy(e.current,2,t,e,null,null),Ul())}function M(e,t){if(Yo!==null){var o=t.staleFamilies;t=t.updatedFamilies,wc(),Q0(e.current,t,o),Ul()}}function I(e){Yo=e}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function A(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function B(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function z(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 H(e){if(A(e)!==e)throw Error("Unable to find node on an unmounted component.")}function V(e){var t=e.alternate;if(!t){if(t=A(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var o=e,r=t;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(r=c.return,r!==null){o=r;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return H(c),e;if(f===r)return H(c),t;f=f.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==r.return)o=c,r=f;else{for(var m=!1,x=c.child;x;){if(x===o){m=!0,o=c,r=f;break}if(x===r){m=!0,r=c,o=f;break}x=x.sibling}if(!m){for(x=f.child;x;){if(x===o){m=!0,o=f,r=c;break}if(x===r){m=!0,r=f,o=c;break}x=x.sibling}if(!m)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(o.alternate!==r)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(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:t}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=G(e),t!==null)return t;e=e.sibling}return null}function X(e){if(e===null||typeof e!=="object")return null;return e=n1&&e[n1]||e["@@iterator"],typeof e==="function"?e:null}function Y(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===t2?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Yl:return"Fragment";case tb:return"Profiler";case Hp:return"StrictMode";case ob:return"Suspense";case nb:return"SuspenseList";case sb: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 Xl:return"Portal";case Gn:return e.displayName||"Context";case ab:return(e._context.displayName||"Context")+".Consumer";case Pc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Up:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case _o:t=e._payload,e=e._init;try{return Y(e(t))}catch(o){}}return null}function J(e){return typeof e.tag==="number"?j(e):typeof e.name==="string"?e.name:null}function j(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 Y(t);case 8:return t===Hp?"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 o=t.length-1;0<=o;o--)if(typeof t[o].name==="string")return t[o].name}if(e.return!==null)return j(e.return)}return null}function se(e){return{current:e}}function ge(e,t){0>Ss?console.error("Unexpected pop."):(t!==ib[Ss]&&console.error("Unexpected Fiber popped."),e.current=rb[Ss],rb[Ss]=null,ib[Ss]=null,Ss--)}function ye(e,t,o){Ss++,rb[Ss]=e.current,ib[Ss]=o,e.current=t}function Se(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 K(e,t){ye(xr,t,e),ye(Bc,e,e),ye(br,null,e);var o=t.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?IC(t):Ps:Ps;break;default:if(o=t.tagName,t=t.namespaceURI)t=IC(t),t=AC(t,o);else switch(o){case"svg":t=Mu;break;case"math":t=zh;break;default:t=Ps}}o=o.toLowerCase(),o=L0(null,o),o={context:t,ancestorInfo:o},ge(br,e),ye(br,o,e)}function pe(e){ge(br,e),ge(Bc,e),ge(xr,e)}function be(){return Se(br.current)}function Ue(e){e.memoizedState!==null&&ye(Fp,e,e);var t=Se(br.current),o=e.type,r=AC(t.context,o);o=L0(t.ancestorInfo,o),r={context:r,ancestorInfo:o},t!==r&&(ye(Bc,e,e),ye(br,r,e))}function He(e){Bc.current===e&&(ge(br,e),ge(Bc,e)),Fp.current===e&&(ge(Fp,e),Md._currentValue=al)}function k(){}function W(){if(Nc===0){s1=console.log,r1=console.info,i1=console.warn,l1=console.error,u1=console.group,c1=console.groupCollapsed,d1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Nc++}function ee(){if(Nc--,Nc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},e,{value:s1}),info:Ze({},e,{value:r1}),warn:Ze({},e,{value:i1}),error:Ze({},e,{value:l1}),group:Ze({},e,{value:u1}),groupCollapsed:Ze({},e,{value:c1}),groupEnd:Ze({},e,{value:d1})})}0>Nc&&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 Ge(e){if(Oy===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);Oy=t&&t[1]||"",PC=-1<o.stack.indexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function te(e){if(lb===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);lb=t&&t[1]||"",f1=-1<o.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+Oy+e+PC}function Ft(e,t){if(!e||Py)return"";var o=By.get(e);if(o!==void 0)return o;Py=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=H.H,H.H=null,Z();try{var u={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(te){var N=te}Reflect.construct(e,[],A)}else{try{A.call()}catch(te){N=te}e.call(A.prototype)}}else{try{throw Error()}catch(te){N=te}(A=e())&&typeof A.catch==="function"&&A.catch(function(){})}}catch(te){if(te&&N&&typeof te.stack==="string")return[te.stack,N.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),b=m[0],v=m[1];if(b&&v){var L=b.split(`
23
- `),O=v.split(`
24
- `);for(m=d=0;d<L.length&&!L[d].includes("DetermineComponentFrameRoot");)d++;for(;m<O.length&&!O[m].includes("DetermineComponentFrameRoot");)m++;if(d===L.length||m===O.length)for(d=L.length-1,m=O.length-1;1<=d&&0<=m&&L[d]!==O[m];)m--;for(;1<=d&&0<=m;d--,m--)if(L[d]!==O[m]){if(d!==1||m!==1)do if(d--,m--,0>m||L[d]!==O[m]){var P=`
25
- `+L[d].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e==="function"&&By.set(e,P),P}while(1<=d&&0<=m);break}}}finally{Py=!1,H.H=i,me(),Error.prepareStackTrace=o}return L=(L=e?e.displayName||e.name:"")?Ge(L):"",typeof e==="function"&&By.set(e,L),L}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return Ft(e.type,!1);case 11:return Ft(e.type.render,!1);case 1:return Ft(e.type,!0);case 31:return Ge("Activity");default:return""}}function Wt(e){try{var t="",o=null;do{t+=Pe(e,o);var i=e._debugInfo;if(i)for(var u=i.length-1;0<=u;u--){var d=i[u];if(typeof d.name==="string"){var m=t;e:{var{name:b,env:v,debugLocation:L}=d;if(L!=null){var O=ge(L),P=O.lastIndexOf(`
26
- `),A=P===-1?O:O.slice(P+1);if(A.indexOf(b)!==-1){var N=`
27
- `+A;break e}}N=Ge(b+(v?" ["+v+"]":""))}t=m+N}}o=e,e=e.return}while(e);return t}catch(te){return`
28
- Error generating stack: `+te.message+`
29
- `+te.stack}}function Aa(e){return(e=e?e.displayName||e.name:"")?Ge(e):""}function en(){if(So===null)return null;var e=So._debugOwner;return e!=null?re(e):null}function tf(){if(So===null)return"";var e=So;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ge(e.type);break;case 13:t+=Ge("Suspense");break;case 19:t+=Ge("SuspenseList");break;case 31:t+=Ge("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Aa(e.type));break;case 11:e._debugOwner||t!==""||(t+=Aa(e.type.render))}for(;e;)if(typeof e.tag==="number"){var o=e;e=o._debugOwner;var i=o._debugStack;if(e&&i){var u=ge(i);u!==""&&(t+=`
30
- `+u)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
31
- `+ge(d))}else break;var m=t}catch(b){m=`
32
- Error generating stack: `+b.message+`
33
- `+b.stack}return m}function ie(e,t,o,i,u,d,m){var b=So;or(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,o,i,u,d,m)):t(o,i,u,d,m)}finally{or(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function or(e){H.getCurrentStack=e===null?null:tf,Pn=!1,So=e}function Yi(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Bs(e){try{return ua(e),!1}catch(t){return!0}}function ua(e){return""+e}function mt(e,t){if(Bs(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,Yi(e)),ua(e)}function Iu(e,t){if(Bs(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,Yi(e)),ua(e)}function ze(e){if(Bs(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.",Yi(e)),ua(e)}function nr(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{Ar=t.inject(e),_a=t}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return t.checkDCE?!0:!1}function St(e){if(typeof d_==="function"&&f_(e),_a&&typeof _a.setStrictMode==="function")try{_a.setStrictMode(Ar,e)}catch(t){Bn||(Bn=!0,console.error("React instrumentation encountered an error: %o",t))}}function af(e){return e>>>=0,e===0?32:31-(h_(e)/p_|0)|0}function gn(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 Xi(e,t,o){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~d,i!==0?u=gn(i):(m&=b,m!==0?u=gn(m):o||(o=b&~e,o!==0&&(u=gn(o))))):(b=i&~d,b!==0?u=gn(b):m!==0?u=gn(m):o||(o=i&~e,o!==0&&(u=gn(o)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,o=t&-t,d>=o||d===32&&(o&4194048)!==0)?t:u}function $i(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Sm(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 sr(){var e=bh;return bh<<=1,(bh&62914560)===0&&(bh=4194304),e}function ir(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Ns(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function of(e,t,o,i,u,d){var m=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var{entanglements:b,expirationTimes:v,hiddenUpdates:L}=e;for(o=m&~o;0<o;){var O=31-Na(o),P=1<<O;b[O]=0,v[O]=-1;var A=L[O];if(A!==null)for(L[O]=null,O=0;O<A.length;O++){var N=A[O];N!==null&&(N.lane&=-536870913)}o&=~P}i!==0&&Wi(e,i,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(m&~t))}function Wi(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Na(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|o&261930}function Zi(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var i=31-Na(o),u=1<<i;u&t|e[i]&t&&(e[i]|=t),o&=~u}}function Qi(e,t){var o=t&-t;return o=(o&42)!==0?1:Ki(o),(o&(e.suspendedLanes|t))!==0?0:o}function Ki(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 Mu(e,t,o){if(Nn)for(e=e.pendingUpdatersLaneMap;0<o;){var i=31-Na(o),u=1<<i;e[i].add(t),o&=~u}}function zs(e,t){if(Nn)for(var{pendingUpdatersLaneMap:o,memoizedUpdaters:i}=e;0<t;){var u=31-Na(t);e=1<<u,u=o[u],0<u.size&&(u.forEach(function(d){var m=d.alternate;m!==null&&i.has(m)||i.add(d)}),u.clear()),t&=~e}}function C(e){return e&=-e,Lo!==0&&Lo<e?sn!==0&&sn<e?(e&134217727)!==0?zn:xh:sn:Lo}function B(){var e=ct.p;if(e!==0)return e;return e=window.event,e===void 0?zn:vC(e.type)}function Y(e,t){var o=ct.p;try{return ct.p=e,t()}finally{ct.p=o}}function ae(e){delete e[Sa],delete e[za],delete e[Fy],delete e[m_],delete e[g_]}function ue(e){var t=e[Sa];if(t)return t;for(var o=e.parentNode;o;){if(t=o[ti]||o[Sa]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=iC(e);e!==null;){if(o=e[Sa])return o;e=iC(e)}return t}e=o,o=e.parentNode}return null}function De(e){if(e=e[Sa]||e[ti]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function nt(e){var t=e[BC];return t||(t=e[BC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[hc]=!0}function ka(e,t){co(e,t),co(e+"Capture",t)}function co(e,t){pl[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),pl[e]=t;var o=e.toLowerCase();qy[o]=e,e==="onDoubleClick"&&(qy.ondblclick=e);for(e=0;e<t.length;e++)NC.add(t[e])}function Us(e,t){y_[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 Au(e){if(nn.call(UC,e))return!0;if(nn.call(zC,e))return!1;if(b_.test(e))return UC[e]=!0;return zC[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Rv(e,t,o){if(Au(t)){if(!e.hasAttribute(t)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&o===!0)return!0;return mt(o,t),e===""+o?o:e}}function nf(e,t,o){if(Au(t))if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}mt(o,t),e.setAttribute(t,""+o)}}function sf(e,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}mt(o,t),e.setAttribute(t,""+o)}}function Kn(e,t,o,i){if(i===null)e.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}mt(i,o),e.setAttributeNS(t,o,""+i)}}function _o(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return ze(e),e;default:return""}}function _v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pk(e,t,o){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get==="function"&&typeof i.set==="function"){var{get:u,set:d}=i;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){ze(m),o=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(m){ze(m),o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lm(e){if(!e._valueTracker){var t=_v(e)?"checked":"value";e._valueTracker=pk(e,t,""+e[t])}}function Dv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),i="";return e&&(i=_v(e)?e.checked?"true":"false":e.value),e=i,e!==o?(t.setValue(e),!0):!1}function lf(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 Do(e){return e.replace(x_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ev(e,t){t.checked===void 0||t.defaultChecked===void 0||FC||(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",en()||"A component",t.type),FC=!0),t.value===void 0||t.defaultValue===void 0||HC||(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",en()||"A component",t.type),HC=!0)}function Cm(e,t,o,i,u,d,m,b){if(e.name="",m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"?(mt(m,"type"),e.type=m):e.removeAttribute("type"),t!=null)if(m==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+_o(t)}else e.value!==""+_o(t)&&(e.value=""+_o(t));else m!=="submit"&&m!=="reset"||e.removeAttribute("value");t!=null?Tm(e,m,_o(t)):o!=null?Tm(e,m,_o(o)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!=="function"&&typeof u!=="symbol"),b!=null&&typeof b!=="function"&&typeof b!=="symbol"&&typeof b!=="boolean"?(mt(b,"name"),e.name=""+_o(b)):e.removeAttribute("name")}function Ov(e,t,o,i,u,d,m,b){if(d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"&&(mt(d,"type"),e.type=d),t!=null||o!=null){if(!(d!=="submit"&&d!=="reset"||t!==void 0&&t!==null)){Lm(e);return}o=o!=null?""+_o(o):"",t=t!=null?""+_o(t):o,b||t===e.value||(e.value=t),e.defaultValue=t}i=i!=null?i:u,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"&&(mt(m,"name"),e.name=m),Lm(e)}function Tm(e,t,o){t==="number"&&lf(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Pv(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?xu.Children.forEach(t.children,function(o){o==null||typeof o==="string"||typeof o==="number"||typeof o==="bigint"||VC||(VC=!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||jC||(jC=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||qC||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),qC=!0)}function Bv(){var e=en();return e?`
34
-
35
- Check the render method of \``+e+"`.":""}function lr(e,t,o,i){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&i&&(e[o].defaultSelected=!0)}else{o=""+_o(o),t=null;for(u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Nv(e,t){for(e=0;e<YC.length;e++){var o=YC[e];if(t[o]!=null){var i=na(t[o]);t.multiple&&!i?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,Bv()):!t.multiple&&i&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,Bv())}}t.value===void 0||t.defaultValue===void 0||GC||(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"),GC=!0)}function zv(e,t){t.value===void 0||t.defaultValue===void 0||XC||(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",en()||"A component"),XC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Uv(e,t,o){if(t!=null&&(t=""+_o(t),t!==e.value&&(e.value=t),o==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=o!=null?""+_o(o):""}function Hv(e,t,o,i){if(t==null){if(i!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(na(i)){if(1<i.length)throw Error("<textarea> can only have at most one child.");i=i[0]}o=i}o==null&&(o=""),t=o}o=_o(t),e.defaultValue=o,i=e.textContent,i===o&&i!==""&&i!==null&&(e.value=i),Lm(e)}function Fv(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Fv(e.children[0],t):e}function fo(e){return" "+" ".repeat(e)}function rr(e){return"+ "+" ".repeat(e)}function Ji(e){return"- "+" ".repeat(e)}function qv(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 ku(e,t){return $C.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 rf(e,t,o){var i=120-2*o;if(t===null)return rr(o)+ku(e,i)+`
36
- `;if(typeof t==="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>i-8&&10<u&&(e="..."+e.slice(u-8),t="..."+t.slice(u-8)),rr(o)+ku(e,i)+`
37
- `+Ji(o)+ku(t,i)+`
38
- `}return fo(o)+ku(e,i)+`
39
- `}function wm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,o){return o})}function Ru(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(na(e))return"[...]";if(e.$$typeof===En)return(t=K(e.type))?"<"+t+">":"<...>";var o=wm(e);if(o==="Object"){o="",t-=2;for(var i in e)if(e.hasOwnProperty(i)){var u=JSON.stringify(i);if(u!=='"'+i+'"'&&(i=u),t-=i.length-2,u=Ru(e[i],15>t?t:15),t-=u.length,0>t){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+i+":"+u}return"{"+o+"}"}return o;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function ur(e,t){return typeof e!=="string"||$C.test(e)?"{"+Ru(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Im(e,t,o){var i=120-o.length-e.length,u=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var m=ur(t[d],120-o.length-d.length-1);i-=d.length+m.length+2,u.push(d+"="+m)}return u.length===0?o+"<"+e+`>
40
- `:0<i?o+"<"+e+" "+u.join(" ")+`>
22
+ `+lb+e+f1}function le(e,t){if(!e||ub)return"";var o=cb.get(e);if(o!==void 0)return o;ub=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=q.H,q.H=null,W();try{var c={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(ie){var U=ie}Reflect.construct(e,[],_)}else{try{_.call()}catch(ie){U=ie}e.call(_.prototype)}}else{try{throw Error()}catch(ie){U=ie}(_=e())&&typeof _.catch==="function"&&_.catch(function(){})}}catch(ie){if(ie&&U&&typeof ie.stack==="string")return[ie.stack,U.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),x=m[0],S=m[1];if(x&&S){var L=x.split(`
23
+ `),O=S.split(`
24
+ `);for(m=f=0;f<L.length&&!L[f].includes("DetermineComponentFrameRoot");)f++;for(;m<O.length&&!O[m].includes("DetermineComponentFrameRoot");)m++;if(f===L.length||m===O.length)for(f=L.length-1,m=O.length-1;1<=f&&0<=m&&L[f]!==O[m];)m--;for(;1<=f&&0<=m;f--,m--)if(L[f]!==O[m]){if(f!==1||m!==1)do if(f--,m--,0>m||L[f]!==O[m]){var P=`
25
+ `+L[f].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e==="function"&&cb.set(e,P),P}while(1<=f&&0<=m);break}}}finally{ub=!1,q.H=r,ee(),Error.prepareStackTrace=o}return L=(L=e?e.displayName||e.name:"")?te(L):"",typeof e==="function"&&cb.set(e,L),L}function fe(e,t){switch(e.tag){case 26:case 27:case 5:return te(e.type);case 16:return te("Lazy");case 13:return e.child!==t&&t!==null?te("Suspense Fallback"):te("Suspense");case 19:return te("SuspenseList");case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return te("Activity");default:return""}}function et(e){try{var t="",o=null;do{t+=fe(e,o);var r=e._debugInfo;if(r)for(var c=r.length-1;0<=c;c--){var f=r[c];if(typeof f.name==="string"){var m=t;e:{var{name:x,env:S,debugLocation:L}=f;if(L!=null){var O=ne(L),P=O.lastIndexOf(`
26
+ `),_=P===-1?O:O.slice(P+1);if(_.indexOf(x)!==-1){var U=`
27
+ `+_;break e}}U=te(x+(S?" ["+S+"]":""))}t=m+U}}o=e,e=e.return}while(e);return t}catch(ie){return`
28
+ Error generating stack: `+ie.message+`
29
+ `+ie.stack}}function tt(e){return(e=e?e.displayName||e.name:"")?te(e):""}function Gt(){if(Do===null)return null;var e=Do._debugOwner;return e!=null?J(e):null}function tr(){if(Do===null)return"";var e=Do;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=te(e.type);break;case 13:t+=te("Suspense");break;case 19:t+=te("SuspenseList");break;case 31:t+=te("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=tt(e.type));break;case 11:e._debugOwner||t!==""||(t+=tt(e.type.render))}for(;e;)if(typeof e.tag==="number"){var o=e;e=o._debugOwner;var r=o._debugStack;if(e&&r){var c=ne(r);c!==""&&(t+=`
30
+ `+c)}}else if(e.debugStack!=null){var f=e.debugStack;(e=e.owner)&&f&&(t+=`
31
+ `+ne(f))}else break;var m=t}catch(x){m=`
32
+ Error generating stack: `+x.message+`
33
+ `+x.stack}return m}function me(e,t,o,r,c,f,m){var x=Do;ds(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,o,r,c,f,m)):t(o,r,c,f,m)}finally{ds(x)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ds(e){q.getCurrentStack=e===null?null:tr,Xn=!1,Do=e}function oo(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ar(e){try{return va(e),!1}catch(t){return!0}}function va(e){return""+e}function Ct(e,t){if(ar(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,oo(e)),va(e)}function Qu(e,t){if(ar(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,oo(e)),va(e)}function Ve(e){if(ar(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.",oo(e)),va(e)}function wl(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{Wl=t.inject(e),Va=t}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return t.checkDCE?!0:!1}function _t(e){if(typeof l2==="function"&&u2(e),Va&&typeof Va.setStrictMode==="function")try{Va.setStrictMode(Wl,e)}catch(t){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Af(e){return e>>>=0,e===0?32:31-(c2(e)/d2|0)|0}function Mn(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 pi(e,t,o){var r=e.pendingLanes;if(r===0)return 0;var c=0,f=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=r&134217727;return x!==0?(r=x&~f,r!==0?c=Mn(r):(m&=x,m!==0?c=Mn(m):o||(o=x&~e,o!==0&&(c=Mn(o))))):(x=r&~f,x!==0?c=Mn(x):m!==0?c=Mn(m):o||(o=r&~e,o!==0&&(c=Mn(o)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,o=t&-t,f>=o||f===32&&(o&4194048)!==0)?t:c}function hi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wm(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 kl(){var e=jp;return jp<<=1,(jp&62914560)===0&&(jp=4194304),e}function Ml(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function or(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rf(e,t,o,r,c,f){var m=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var{entanglements:x,expirationTimes:S,hiddenUpdates:L}=e;for(o=m&~o;0<o;){var O=31-$a(o),P=1<<O;x[O]=0,S[O]=-1;var _=L[O];if(_!==null)for(L[O]=null,O=0;O<_.length;O++){var U=_[O];U!==null&&(U.lane&=-536870913)}o&=~P}r!==0&&mi(e,r,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(m&~t))}function mi(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-$a(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|o&261930}function gi(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var r=31-$a(o),c=1<<r;c&t|e[r]&t&&(e[r]|=t),o&=~c}}function yi(e,t){var o=t&-t;return o=(o&42)!==0?1:bi(o),(o&(e.suspendedLanes|t))!==0?0:o}function bi(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 Ku(e,t,o){if($n)for(e=e.pendingUpdatersLaneMap;0<o;){var r=31-$a(o),c=1<<r;e[r].add(t),o&=~c}}function nr(e,t){if($n)for(var{pendingUpdatersLaneMap:o,memoizedUpdaters:r}=e;0<t;){var c=31-$a(t);e=1<<c,c=o[c],0<c.size&&(c.forEach(function(f){var m=f.alternate;m!==null&&r.has(m)||r.add(f)}),c.clear()),t&=~e}}function C(e){return e&=-e,Eo!==0&&Eo<e?mn!==0&&mn<e?(e&134217727)!==0?Wn:Gp:mn:Eo}function N(){var e=yt.p;if(e!==0)return e;return e=window.event,e===void 0?Wn:QC(e.type)}function oe(e,t){var o=yt.p;try{return yt.p=e,t()}finally{yt.p=o}}function ue(e){delete e[Oa],delete e[Wa],delete e[mb],delete e[f2],delete e[p2]}function xe(e){var t=e[Oa];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Sr]||o[Oa]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=NC(e);e!==null;){if(o=e[Oa])return o;e=NC(e)}return t}e=o,o=e.parentNode}return null}function Ne(e){if(e=e[Oa]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function pt(e){var t=e[p1];return t||(t=e[p1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ae(e){e[zc]=!0}function Fa(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){Oi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Oi[e]=t;var o=e.toLowerCase();gb[o]=e,e==="onDoubleClick"&&(gb.ondblclick=e);for(e=0;e<t.length;e++)h1.add(t[e])}function sr(e,t){h2[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 Ju(e){if(hn.call(g1,e))return!0;if(hn.call(m1,e))return!1;if(m2.test(e))return g1[e]=!0;return m1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function i0(e,t,o){if(Ju(t)){if(!e.hasAttribute(t)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&o===!0)return!0;return Ct(o,t),e===""+o?o:e}}function _f(e,t,o){if(Ju(t))if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}Ct(o,t),e.setAttribute(t,""+o)}}function Df(e,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Ct(o,t),e.setAttribute(t,""+o)}}function fs(e,t,o,r){if(r===null)e.removeAttribute(o);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}Ct(r,o),e.setAttributeNS(t,o,""+r)}}function qo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ve(e),e;default:return""}}function l0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dR(e,t,o){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get==="function"&&typeof r.set==="function"){var{get:c,set:f}=r;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){Ve(m),o=""+m,f.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(m){Ve(m),o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zm(e){if(!e._valueTracker){var t=l0(e)?"checked":"value";e._valueTracker=dR(e,t,""+e[t])}}function u0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),r="";return e&&(r=l0(e)?e.checked?"true":"false":e.value),e=r,e!==o?(t.setValue(e),!0):!1}function Ef(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 Vo(e){return e.replace(g2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function c0(e,t){t.checked===void 0||t.defaultChecked===void 0||b1||(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",Gt()||"A component",t.type),b1=!0),t.value===void 0||t.defaultValue===void 0||y1||(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",Gt()||"A component",t.type),y1=!0)}function Qm(e,t,o,r,c,f,m,x){if(e.name="",m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"?(Ct(m,"type"),e.type=m):e.removeAttribute("type"),t!=null)if(m==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+qo(t)}else e.value!==""+qo(t)&&(e.value=""+qo(t));else m!=="submit"&&m!=="reset"||e.removeAttribute("value");t!=null?Km(e,m,qo(t)):o!=null?Km(e,m,qo(o)):r!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!=="function"&&typeof c!=="symbol"),x!=null&&typeof x!=="function"&&typeof x!=="symbol"&&typeof x!=="boolean"?(Ct(x,"name"),e.name=""+qo(x)):e.removeAttribute("name")}function d0(e,t,o,r,c,f,m,x){if(f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"&&(Ct(f,"type"),e.type=f),t!=null||o!=null){if(!(f!=="submit"&&f!=="reset"||t!==void 0&&t!==null)){Zm(e);return}o=o!=null?""+qo(o):"",t=t!=null?""+qo(t):o,x||t===e.value||(e.value=t),e.defaultValue=t}r=r!=null?r:c,r=typeof r!=="function"&&typeof r!=="symbol"&&!!r,e.checked=x?e.checked:!!r,e.defaultChecked=!!r,m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"&&(Ct(m,"name"),e.name=m),Zm(e)}function Km(e,t,o){t==="number"&&Ef(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function f0(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Uu.Children.forEach(t.children,function(o){o==null||typeof o==="string"||typeof o==="number"||typeof o==="bigint"||v1||(v1=!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||S1||(S1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||x1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),x1=!0)}function p0(){var e=Gt();return e?`
34
+
35
+ Check the render method of \``+e+"`.":""}function Il(e,t,o,r){if(e=e.options,t){t={};for(var c=0;c<o.length;c++)t["$"+o[c]]=!0;for(o=0;o<e.length;o++)c=t.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&r&&(e[o].defaultSelected=!0)}else{o=""+qo(o),t=null;for(c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=!0,r&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function h0(e,t){for(e=0;e<C1.length;e++){var o=C1[e];if(t[o]!=null){var r=ha(t[o]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,p0()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,p0())}}t.value===void 0||t.defaultValue===void 0||L1||(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"),L1=!0)}function m0(e,t){t.value===void 0||t.defaultValue===void 0||T1||(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",Gt()||"A component"),T1=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function g0(e,t,o){if(t!=null&&(t=""+qo(t),t!==e.value&&(e.value=t),o==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=o!=null?""+qo(o):""}function y0(e,t,o,r){if(t==null){if(r!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ha(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}o=r}o==null&&(o=""),t=o}o=qo(t),e.defaultValue=o,r=e.textContent,r===o&&r!==""&&r!==null&&(e.value=r),Zm(e)}function b0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?b0(e.children[0],t):e}function Co(e){return" "+" ".repeat(e)}function Al(e){return"+ "+" ".repeat(e)}function xi(e){return"- "+" ".repeat(e)}function x0(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 ec(e,t){return w1.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 Of(e,t,o){var r=120-2*o;if(t===null)return Al(o)+ec(e,r)+`
36
+ `;if(typeof t==="string"){for(var c=0;c<t.length&&c<e.length&&t.charCodeAt(c)===e.charCodeAt(c);c++);return c>r-8&&10<c&&(e="..."+e.slice(c-8),t="..."+t.slice(c-8)),Al(o)+ec(e,r)+`
37
+ `+xi(o)+ec(t,r)+`
38
+ `}return Co(o)+ec(e,r)+`
39
+ `}function Jm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,o){return o})}function tc(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(ha(e))return"[...]";if(e.$$typeof===jn)return(t=Y(e.type))?"<"+t+">":"<...>";var o=Jm(e);if(o==="Object"){o="",t-=2;for(var r in e)if(e.hasOwnProperty(r)){var c=JSON.stringify(r);if(c!=='"'+r+'"'&&(r=c),t-=r.length-2,c=tc(e[r],15>t?t:15),t-=c.length,0>t){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+r+":"+c}return"{"+o+"}"}return o;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Rl(e,t){return typeof e!=="string"||w1.test(e)?"{"+tc(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function eg(e,t,o){var r=120-o.length-e.length,c=[],f;for(f in t)if(t.hasOwnProperty(f)&&f!=="children"){var m=Rl(t[f],120-o.length-f.length-1);r-=f.length+m.length+2,c.push(f+"="+m)}return c.length===0?o+"<"+e+`>
40
+ `:0<r?o+"<"+e+" "+c.join(" ")+`>
41
41
  `:o+"<"+e+`
42
- `+o+" "+u.join(`
42
+ `+o+" "+c.join(`
43
43
  `+o+" ")+`
44
44
  `+o+`>
45
- `}function mk(e,t,o){var i="",u=Xe({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete u[d];var m=120-2*o-d.length-2,b=Ru(e[d],m);t.hasOwnProperty(d)?(m=Ru(t[d],m),i+=rr(o)+d+": "+b+`
46
- `,i+=Ji(o)+d+": "+m+`
47
- `):i+=rr(o)+d+": "+b+`
48
- `}for(var v in u)u.hasOwnProperty(v)&&(e=Ru(u[v],120-2*o-v.length-2),i+=Ji(o)+v+": "+e+`
49
- `);return i}function gk(e,t,o,i){var u="",d=new Map;for(L in o)o.hasOwnProperty(L)&&d.set(L.toLowerCase(),L);if(d.size===1&&d.has("children"))u+=Im(e,t,fo(i));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var b=120-2*(i+1)-m.length-1,v=d.get(m.toLowerCase());if(v!==void 0){d.delete(m.toLowerCase());var L=t[m];v=o[v];var O=ur(L,b);b=ur(v,b),typeof L==="object"&&L!==null&&typeof v==="object"&&v!==null&&wm(L)==="Object"&&wm(v)==="Object"&&(2<Object.keys(L).length||2<Object.keys(v).length||-1<O.indexOf("...")||-1<b.indexOf("..."))?u+=fo(i+1)+m+`={{
50
- `+mk(L,v,i+2)+fo(i+1)+`}}
51
- `:(u+=rr(i+1)+m+"="+O+`
52
- `,u+=Ji(i+1)+m+"="+b+`
53
- `)}else u+=fo(i+1)+m+"="+ur(t[m],b)+`
54
- `}d.forEach(function(P){if(P!=="children"){var A=120-2*(i+1)-P.length-1;u+=Ji(i+1)+P+"="+ur(o[P],A)+`
55
- `}}),u=u===""?fo(i)+"<"+e+`>
56
- `:fo(i)+"<"+e+`
57
- `+u+fo(i)+`>
58
- `}if(e=o.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(d="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")d=""+t;u+=rf(d,""+e,i+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")u=e==null?u+rf(""+t,null,i+1):u+rf(""+t,void 0,i+1);return u}function Vv(e,t){var o=qv(e);if(o===null){o="";for(e=e.child;e;)o+=Vv(e,t),e=e.sibling;return o}return fo(t)+"<"+o+`>
59
- `}function Mm(e,t){var o=Fv(e,t);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return fo(t)+`...
60
- `+Mm(o,t+1);o="";var i=e.fiber._debugInfo;if(i)for(var u=0;u<i.length;u++){var d=i[u].name;typeof d==="string"&&(o+=fo(t)+"<"+d+`>
61
- `,t++)}if(i="",u=e.fiber.pendingProps,e.fiber.tag===6)i=rf(u,e.serverProps,t),t++;else if(d=qv(e.fiber),d!==null)if(e.serverProps===void 0){i=t;var m=120-2*i-d.length-2,b="";for(L in u)if(u.hasOwnProperty(L)&&L!=="children"){var v=ur(u[L],15);if(m-=L.length+v.length+2,0>m){b+=" ...";break}b+=" "+L+"="+v}i=fo(i)+"<"+d+b+`>
62
- `,t++}else e.serverProps===null?(i=Im(d,u,rr(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."):(i=gk(d,u,e.serverProps,t),t++);var L="";u=e.fiber.child;for(d=0;u&&d<e.children.length;)m=e.children[d],m.fiber===u?(L+=Mm(m,t),d++):L+=Vv(u,t),u=u.sibling;u&&0<e.children.length&&(L+=fo(t)+`...
63
- `),u=e.serverTail,e.serverProps===null&&t--;for(e=0;e<u.length;e++)d=u[e],L=typeof d==="string"?L+(Ji(t)+ku(d,120-2*t)+`
64
- `):L+Im(d.type,d.props,Ji(t));return o+i+L}function Am(e){try{return`
65
-
66
- `+Mm(e,0)}catch(t){return""}}function jv(e,t,o){for(var i=t,u=null,d=0;i;)i===e&&(d=0),u={fiber:i,children:u!==null?[u]:[],serverProps:i===t?o:i===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,i=i.return;return u!==null?Am(u).replaceAll(/^[+-]/gm,">"):""}function Gv(e,t){var o=Xe({},e||ZC),i={tag:t};if(WC.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),S_.indexOf(t)!==-1&&(o.pTagInButtonScope=null),v_.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=i,t==="form"&&(o.formTag=i),t==="a"&&(o.aTagInScope=i),t==="button"&&(o.buttonTagInScope=i),t==="nobr"&&(o.nobrTagInScope=i),t==="p"&&(o.pTagInButtonScope=i),t==="li"&&(o.listItemTagAutoclosing=i),t==="dd"||t==="dt")o.dlItemTagAutoclosing=i;return t==="#document"||t==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=i),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function Yv(e,t,o){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(o)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!o)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 L_.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 o||t===null;case"html":return o&&t==="#document"||t===null;case"body":return o&&(t==="#document"||t==="html")||t===null}return!0}function yk(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 Xv(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 km(e,t){t=t||ZC;var o=t.current;if(t=(o=Yv(e,o&&o.tag,t.implicitRootScope)?null:o)?null:yk(e,t),t=o||t,!t)return!0;var i=t.tag;if(t=String(!!o)+"|"+e+"|"+i,vh[t])return!1;vh[t]=!0;var u=(t=So)?Xv(t.return,i):null,d=t!==null&&u!==null?jv(u,t,null):"",m="<"+e+">";return o?(o="",i==="table"&&e==="tr"&&(o+=" 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
- This will cause a hydration error.%s`,m,i,o,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,m,i,d),t&&(e=t.return,u===null||e===null||u===e&&e._debugOwner===t._debugOwner||ie(u,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,i,m)})),!1}function uf(e,t,o){if(o||Yv("#text",t,!1))return!0;if(o="#text|"+t,vh[o])return!1;vh[o]=!0;var i=(o=So)?Xv(o,t):null;return o=o!==null&&i!==null?jv(i,o,o.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
45
+ `}function fR(e,t,o){var r="",c=Ze({},t),f;for(f in e)if(e.hasOwnProperty(f)){delete c[f];var m=120-2*o-f.length-2,x=tc(e[f],m);t.hasOwnProperty(f)?(m=tc(t[f],m),r+=Al(o)+f+": "+x+`
46
+ `,r+=xi(o)+f+": "+m+`
47
+ `):r+=Al(o)+f+": "+x+`
48
+ `}for(var S in c)c.hasOwnProperty(S)&&(e=tc(c[S],120-2*o-S.length-2),r+=xi(o)+S+": "+e+`
49
+ `);return r}function pR(e,t,o,r){var c="",f=new Map;for(L in o)o.hasOwnProperty(L)&&f.set(L.toLowerCase(),L);if(f.size===1&&f.has("children"))c+=eg(e,t,Co(r));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var x=120-2*(r+1)-m.length-1,S=f.get(m.toLowerCase());if(S!==void 0){f.delete(m.toLowerCase());var L=t[m];S=o[S];var O=Rl(L,x);x=Rl(S,x),typeof L==="object"&&L!==null&&typeof S==="object"&&S!==null&&Jm(L)==="Object"&&Jm(S)==="Object"&&(2<Object.keys(L).length||2<Object.keys(S).length||-1<O.indexOf("...")||-1<x.indexOf("..."))?c+=Co(r+1)+m+`={{
50
+ `+fR(L,S,r+2)+Co(r+1)+`}}
51
+ `:(c+=Al(r+1)+m+"="+O+`
52
+ `,c+=xi(r+1)+m+"="+x+`
53
+ `)}else c+=Co(r+1)+m+"="+Rl(t[m],x)+`
54
+ `}f.forEach(function(P){if(P!=="children"){var _=120-2*(r+1)-P.length-1;c+=xi(r+1)+P+"="+Rl(o[P],_)+`
55
+ `}}),c=c===""?Co(r)+"<"+e+`>
56
+ `:Co(r)+"<"+e+`
57
+ `+c+Co(r)+`>
58
+ `}if(e=o.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(f="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")f=""+t;c+=Of(f,""+e,r+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")c=e==null?c+Of(""+t,null,r+1):c+Of(""+t,void 0,r+1);return c}function v0(e,t){var o=x0(e);if(o===null){o="";for(e=e.child;e;)o+=v0(e,t),e=e.sibling;return o}return Co(t)+"<"+o+`>
59
+ `}function tg(e,t){var o=b0(e,t);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return Co(t)+`...
60
+ `+tg(o,t+1);o="";var r=e.fiber._debugInfo;if(r)for(var c=0;c<r.length;c++){var f=r[c].name;typeof f==="string"&&(o+=Co(t)+"<"+f+`>
61
+ `,t++)}if(r="",c=e.fiber.pendingProps,e.fiber.tag===6)r=Of(c,e.serverProps,t),t++;else if(f=x0(e.fiber),f!==null)if(e.serverProps===void 0){r=t;var m=120-2*r-f.length-2,x="";for(L in c)if(c.hasOwnProperty(L)&&L!=="children"){var S=Rl(c[L],15);if(m-=L.length+S.length+2,0>m){x+=" ...";break}x+=" "+L+"="+S}r=Co(r)+"<"+f+x+`>
62
+ `,t++}else e.serverProps===null?(r=eg(f,c,Al(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."):(r=pR(f,c,e.serverProps,t),t++);var L="";c=e.fiber.child;for(f=0;c&&f<e.children.length;)m=e.children[f],m.fiber===c?(L+=tg(m,t),f++):L+=v0(c,t),c=c.sibling;c&&0<e.children.length&&(L+=Co(t)+`...
63
+ `),c=e.serverTail,e.serverProps===null&&t--;for(e=0;e<c.length;e++)f=c[e],L=typeof f==="string"?L+(xi(t)+ec(f,120-2*t)+`
64
+ `):L+eg(f.type,f.props,xi(t));return o+r+L}function ag(e){try{return`
65
+
66
+ `+tg(e,0)}catch(t){return""}}function S0(e,t,o){for(var r=t,c=null,f=0;r;)r===e&&(f=0),c={fiber:r,children:c!==null?[c]:[],serverProps:r===t?o:r===e?null:void 0,serverTail:[],distanceFromLeaf:f},f++,r=r.return;return c!==null?ag(c).replaceAll(/^[+-]/gm,">"):""}function L0(e,t){var o=Ze({},e||M1),r={tag:t};if(k1.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),b2.indexOf(t)!==-1&&(o.pTagInButtonScope=null),y2.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=r,t==="form"&&(o.formTag=r),t==="a"&&(o.aTagInScope=r),t==="button"&&(o.buttonTagInScope=r),t==="nobr"&&(o.nobrTagInScope=r),t==="p"&&(o.pTagInButtonScope=r),t==="li"&&(o.listItemTagAutoclosing=r),t==="dd"||t==="dt")o.dlItemTagAutoclosing=r;return t==="#document"||t==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=r),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function C0(e,t,o){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(o)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!o)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 x2.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 o||t===null;case"html":return o&&t==="#document"||t===null;case"body":return o&&(t==="#document"||t==="html")||t===null}return!0}function hR(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 T0(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 og(e,t){t=t||M1;var o=t.current;if(t=(o=C0(e,o&&o.tag,t.implicitRootScope)?null:o)?null:hR(e,t),t=o||t,!t)return!0;var r=t.tag;if(t=String(!!o)+"|"+e+"|"+r,Xp[t])return!1;Xp[t]=!0;var c=(t=Do)?T0(t.return,r):null,f=t!==null&&c!==null?S0(c,t,null):"",m="<"+e+">";return o?(o="",r==="table"&&e==="tr"&&(o+=" 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
+ This will cause a hydration error.%s`,m,r,o,f)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,m,r,f),t&&(e=t.return,c===null||e===null||c===e&&e._debugOwner===t._debugOwner||me(c,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,r,m)})),!1}function Pf(e,t,o){if(o||C0("#text",t,!1))return!0;if(o="#text|"+t,Xp[o])return!1;Xp[o]=!0;var r=(o=Do)?T0(o,t):null;return o=o!==null&&r!==null?S0(r,o,o.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,o):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,o),!1}function _u(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}function bk(e){return e.replace(w_,function(t,o){return o.toUpperCase()})}function $v(e,t,o){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?kr.hasOwnProperty(t)&&kr[t]||(kr[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,bk(t.replace(T_,"ms-")))):C_.test(t)?kr.hasOwnProperty(t)&&kr[t]||(kr[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!JC.test(o)||jy.hasOwnProperty(o)&&jy[o]||(jy[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,o.replace(JC,""))),typeof o==="number"&&(isNaN(o)?e1||(e1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(o)||t1||(t1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),o==null||typeof o==="boolean"||o===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,o):typeof o!=="number"||o===0||a1.has(t)?t==="float"?e.cssFloat=o:(Iu(o,t),e[t]=(""+o).trim()):e[t]=o+"px"}function Wv(e,t,o){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,o!=null){if(t){var i={};if(o){for(var u in o)if(o.hasOwnProperty(u)&&!t.hasOwnProperty(u))for(var d=Vy[u]||[u],m=0;m<d.length;m++)i[d[m]]=u}for(var b in t)if(t.hasOwnProperty(b)&&(!o||o[b]!==t[b]))for(u=Vy[b]||[b],d=0;d<u.length;d++)i[u[d]]=b;b={};for(var v in t)for(u=Vy[v]||[v],d=0;d<u.length;d++)b[u[d]]=v;v={};for(var L in i)if(u=i[L],(d=b[L])&&u!==d&&(m=u+","+d,!v[m])){v[m]=!0,m=console;var O=t[u];m.error.call(m,"%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.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",u,d)}}for(var P in o)!o.hasOwnProperty(P)||t!=null&&t.hasOwnProperty(P)||(P.indexOf("--")===0?e.setProperty(P,""):P==="float"?e.cssFloat="":e[P]="");for(var A in t)L=t[A],t.hasOwnProperty(A)&&o[A]!==L&&$v(e,A,L)}else for(i in t)t.hasOwnProperty(i)&&$v(e,i,t[i])}function Du(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 Zv(e){return I_.get(e)||e}function xk(e,t){if(nn.call(_r,t)&&_r[t])return!0;if(A_.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=o1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_r[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),_r[t]=!0}if(M_.test(t)){if(e=t.toLowerCase(),e=o1.hasOwnProperty(e)?e:null,e==null)return _r[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),_r[t]=!0)}return!0}function vk(e,t){var o=[],i;for(i in t)xk(e,i)||o.push(i);t=o.map(function(u){return"`"+u+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Sk(e,t,o,i){if(nn.call(Ua,t)&&Ua[t])return!0;var u=t.toLowerCase();if(u==="onfocusin"||u==="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."),Ua[t]=!0;if(typeof o==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(i!=null){if(e=i.possibleRegistrationNames,i.registrationNameDependencies.hasOwnProperty(t))return!0;if(i=e.hasOwnProperty(u)?e[u]:null,i!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,i),Ua[t]=!0;if(s1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ua[t]=!0}else if(s1.test(t))return k_.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ua[t]=!0;if(R_.test(t)||__.test(t))return!0;if(u==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ua[t]=!0;if(u==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ua[t]=!0;if(u==="is"&&o!==null&&o!==void 0&&typeof o!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Ua[t]=!0;if(typeof o==="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Ua[t]=!0;if(Lh.hasOwnProperty(u)){if(u=Lh[u],u!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,u),Ua[t]=!0}else if(t!==u)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,u),Ua[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 o){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(u=t.toLowerCase().slice(0,5),u==="data-"||u==="aria-")return!0;return o?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()}.',o,t,t,o,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.',o,t,t,o,t,t,t),Ua[t]=!0}case"function":case"symbol":return Ua[t]=!0,!1;case"string":if(o==="false"||o==="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}?",o,t,o==="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,o),Ua[t]=!0}}return!0}function Lk(e,t,o){var i=[],u;for(u in t)Sk(e,u,t[u],o)||i.push(u);t=i.map(function(d){return"`"+d+"`"}).join(", "),i.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<i.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 Eu(e){return D_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}function Rm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Qv(e){var t=De(e);if(t&&(e=t.stateNode)){var o=e[za]||null;e:switch(e=t.stateNode,t.type){case"input":if(Cm(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;mt(t,"name"),o=o.querySelectorAll('input[name="'+Do(""+t)+'"][type="radio"]');for(t=0;t<o.length;t++){var i=o[t];if(i!==e&&i.form===e.form){var u=i[za]||null;if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Cm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<o.length;t++)i=o[t],i.form===e.form&&Dv(i)}break e;case"textarea":Uv(e,o.value,o.defaultValue);break e;case"select":t=o.value,t!=null&&lr(e,!!o.multiple,t,!1)}}}function Kv(e,t,o){if(Gy)return e(t,o);Gy=!0;try{var i=e(t);return i}finally{if(Gy=!1,Dr!==null||Er!==null){if(xr(),Dr&&(t=Dr,e=Er,Er=Dr=null,Qv(t),e))for(t=0;t<e.length;t++)Qv(e[t])}}}function Ou(e,t){var o=e.stateNode;if(o===null)return null;var i=o[za]||null;if(i===null)return null;o=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(o&&typeof o!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function Jv(){if(Ch)return Ch;var e,t=Xy,o=t.length,i,u="value"in ai?ai.value:ai.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var m=o-e;for(i=1;i<=m&&t[o-i]===u[d-i];i++);return Ch=u.slice(e,1<i?1-i:void 0)}function cf(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 df(){return!0}function e0(){return!1}function Ga(e){function t(o,i,u,d,m){this._reactName=o,this._targetInst=u,this.type=i,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(o=e[b],this[b]=o?o(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?df:e0,this.isPropagationStopped=e0,this}return Xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!=="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=df)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!=="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=df)},persist:function(){},isPersistent:df}),t}function Ck(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G_[e])?!!t[e]:!1}function _m(){return Ck}function t0(e,t){switch(e){case"keyup":return oD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==u1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function Tk(e,t){switch(e){case"compositionend":return a0(t);case"keypress":if(t.which!==d1)return null;return h1=!0,f1;case"textInput":return e=t.data,e===f1&&h1?null:e;default:return null}}function wk(e,t){if(Or)return e==="compositionend"||!Qy&&t0(e,t)?(e=Jv(),Ch=Xy=ai=null,Or=!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 c1&&t.locale!=="ko"?null:t.data;default:return null}}function o0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sD[e.type]:t==="textarea"?!0:!1}function Ik(e){if(!Un)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 n0(e,t,o,i){Dr?Er?Er.push(i):Er=[i]:Dr=i,t=oh(t,"onChange"),0<t.length&&(o=new Th("onChange","change",null,o,i),e.push({event:o,listeners:t}))}function Mk(e){HL(e,0)}function ff(e){var t=Ee(e);if(Dv(t))return e}function s0(e,t){if(e==="change")return t}function i0(){xc&&(xc.detachEvent("onpropertychange",l0),vc=xc=null)}function l0(e){if(e.propertyName==="value"&&ff(vc)){var t=[];n0(t,vc,e,Rm(e)),Kv(Mk,t)}}function Ak(e,t,o){e==="focusin"?(i0(),xc=t,vc=o,xc.attachEvent("onpropertychange",l0)):e==="focusout"&&i0()}function kk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ff(vc)}function Rk(e,t){if(e==="click")return ff(t)}function _k(e,t){if(e==="input"||e==="change")return ff(t)}function Dk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Pu(e,t){if(Ha(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(i=0;i<o.length;i++){var u=o[i];if(!nn.call(t,u)||!Ha(e[u],t[u]))return!1}return!0}function r0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function u0(e,t){var o=r0(e);e=0;for(var i;o;){if(o.nodeType===3){if(i=e+o.textContent.length,e<=t&&i>=t)return{node:o,offset:t-e};e=i}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=r0(o)}}function c0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?c0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function d0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lf(e.document);t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href==="string"}catch(i){o=!1}if(o)e=t.contentWindow;else break;t=lf(e.document)}return t}function Dm(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 f0(e,t,o){var i=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Jy||Pr==null||Pr!==lf(i)||(i=Pr,("selectionStart"in i)&&Dm(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Sc&&Pu(Sc,i)||(Sc=i,i=oh(Ky,"onSelect"),0<i.length&&(t=new Th("onSelect","select",null,t,o),e.push({event:t,listeners:i}),t.target=Pr)))}function el(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}function tl(e){if(eb[e])return eb[e];if(!Br[e])return e;var t=Br[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in m1)return eb[e]=t[o];return e}function tn(e,t){v1.set(e,t),ka(t,[e])}function Ek(e){for(var t=Ih,o=0;o<e.length;o++){var i=e[o];if(typeof i==="object"&&i!==null)if(na(i)&&i.length===2&&typeof i[0]==="string"){if(t!==Ih&&t!==sb)return ob;t=sb}else return ob;else{if(typeof i==="function"||typeof i==="string"&&50<i.length||t!==Ih&&t!==nb)return ob;t=nb}}return t}function Em(e,t,o,i){for(var u in e)nn.call(e,u)&&u[0]!=="_"&&yn(u,e[u],t,o,i)}function yn(e,t,o,i,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===En){var d=K(t.type)||"…",m=t.key;t=t.props;var b=Object.keys(t),v=b.length;if(m==null&&v===0){t="<"+d+" />";break}if(3>i||v===1&&b[0]==="children"&&m==null){t="<"+d+" … />";break}o.push([u+"  ".repeat(i)+e,"<"+d]),m!==null&&yn("key",m,o,i+1,u),e=!1;for(var L in t)L==="children"?t.children!=null&&(!na(t.children)||0<t.children.length)&&(e=!0):nn.call(t,L)&&L[0]!=="_"&&yn(L,t[L],o,i+1,u);o.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(t),d=d.slice(8,d.length-1),d==="Array"){if(L=Ek(t),L===nb||L===Ih){t=JSON.stringify(t);break}else if(L===sb){o.push([u+"  ".repeat(i)+e,""]);for(e=0;e<t.length;e++)d=t[e],yn(d[0],d[1],o,i+1,u);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=o.length,yn(e,t.value,o,i,u),o.length>d){o=o[d],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=o.length,yn(e,t.reason,o,i,u),o.length>d)){o=o[d],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["  ".repeat(i)+e,"Promise"]);return}d==="Object"&&(L=Object.getPrototypeOf(t))&&typeof L.constructor==="function"&&(d=L.constructor.name),o.push([u+"  ".repeat(i)+e,d==="Object"?3>i?"":"…":d]),3>i&&Em(t,o,i+1,u);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===fD?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}o.push([u+"  ".repeat(i)+e,t])}function h0(e,t,o,i){var u=!0;for(m in e)m in t||(o.push([Mh+"  ".repeat(i)+m,"…"]),u=!1);for(var d in t)if(d in e){var m=e[d],b=t[d];if(m!==b){if(i===0&&d==="children")u="  ".repeat(i)+d,o.push([Mh+u,"…"],[Ah+u,"…"]);else{if(!(3<=i)){if(typeof m==="object"&&typeof b==="object"&&m!==null&&b!==null&&m.$$typeof===b.$$typeof)if(b.$$typeof===En){if(m.type===b.type&&m.key===b.key){m=K(b.type)||"…",u="  ".repeat(i)+d,m="<"+m+" … />",o.push([Mh+u,m],[Ah+u,m]),u=!1;continue}}else{var v=Object.prototype.toString.call(m),L=Object.prototype.toString.call(b);if(v===L&&(L==="[object Object]"||L==="[object Array]")){v=[C1+"  ".repeat(i)+d,L==="[object Array]"?"Array":""],o.push(v),L=o.length,h0(m,b,o,i+1)?L===o.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):u=!1;continue}}else if(typeof m==="function"&&typeof b==="function"&&m.name===b.name&&m.length===b.length&&(v=Function.prototype.toString.call(m),L=Function.prototype.toString.call(b),v===L)){m=b.name===""?"() => {}":b.name+"() {}",o.push([C1+"  ".repeat(i)+d,m+" Referentially unequal function closure. Consider memoization."]);continue}}yn(d,m,o,i,Mh),yn(d,b,o,i,Ah)}u=!1}}else o.push([Ah+"  ".repeat(i)+d,"…"]),u=!1;return u}function ho(e){Ze=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function bn(e,t,o,i){wt&&(ni.start=t,ni.end=o,rs.color="warning",rs.tooltipText=i,rs.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,i,ni)):performance.measure(i,ni))}function hf(e,t,o){bn(e,t,o,"Reconnect")}function pf(e,t,o,i,u){var d=V(e);if(d!==null&&wt){var{alternate:m,actualDuration:b}=e;if(m===null||m.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)b-=v.actualDuration;i=0.5>b?i?"tertiary-light":"primary-light":10>b?i?"tertiary":"primary":100>b?i?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;b=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(v=[hD],L=h0(m.memoizedProps,L,v,0),1<v.length&&(L&&!oi&&(m.lanes&u)===0&&100<e.actualDuration?(oi=!0,v[0]=pD,rs.color="warning",rs.tooltipText=T1):(rs.color=i,rs.tooltipText=d),rs.properties=v,ni.start=t,ni.end=o,b!=null?b.run(performance.measure.bind(performance,"​"+d,ni)):performance.measure("​"+d,ni))):b!=null?b.run(console.timeStamp.bind(console,d,t,o,Oo,void 0,i)):console.timeStamp(d,t,o,Oo,void 0,i)}}function Om(e,t,o,i){if(wt){var u=V(e);if(u!==null){for(var d=null,m=[],b=0;b<i.length;b++){var v=i[b];d==null&&v.source!==null&&(d=v.source._debugTask),v=v.value,m.push(["Error",typeof v==="object"&&v!==null&&typeof v.message==="string"?String(v.message):String(v)])}e.key!==null&&yn("key",e.key,m,0,""),e.memoizedProps!==null&&Em(e.memoizedProps,m,0,""),d==null&&(d=e._debugTask),e={start:t,end:o,detail:{devtools:{color:"error",track:Oo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:m}}},d?d.run(performance.measure.bind(performance,"​"+u,e)):performance.measure("​"+u,e)}}}function xn(e,t,o,i,u){if(u!==null){if(wt){var d=V(e);if(d!==null){i=[];for(var m=0;m<u.length;m++){var b=u[m].value;i.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}e.key!==null&&yn("key",e.key,i,0,""),e.memoizedProps!==null&&Em(e.memoizedProps,i,0,""),t={start:t,end:o,detail:{devtools:{color:"error",track:Oo,tooltipText:"A lifecycle or effect errored",properties:i}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+d,t)):performance.measure("​"+d,t)}}}else d=V(e),d!==null&&wt&&(u=1>i?"secondary-light":100>i?"secondary":500>i?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,o,Oo,void 0,u)):console.timeStamp(d,t,o,Oo,void 0,u))}function Ok(e,t,o,i){if(wt&&!(t<=e)){var u=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",i?i.run(console.timeStamp.bind(console,o,e,t,Ze,$e,u)):console.timeStamp(o,e,t,Ze,$e,u)}}function p0(e,t,o,i){!wt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Prewarm",e,t,Ze,$e,o)):console.timeStamp("Prewarm",e,t,Ze,$e,o))}function m0(e,t,o,i){!wt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Suspended",e,t,Ze,$e,o)):console.timeStamp("Suspended",e,t,Ze,$e,o))}function Pk(e,t,o,i,u,d){if(wt&&!(t<=e)){o=[];for(var m=0;m<i.length;m++){var b=i[m].value;o.push(["Recoverable Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Ze,trackGroup:$e,tooltipText:u?"Hydration Failed":"Recovered after Error",properties:o}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Pm(e,t,o,i){!wt||t<=e||(i?i.run(console.timeStamp.bind(console,"Errored",e,t,Ze,$e,"error")):console.timeStamp("Errored",e,t,Ze,$e,"error"))}function Bk(e,t,o,i){!wt||t<=e||(i?i.run(console.timeStamp.bind(console,o,e,t,Ze,$e,"secondary-light")):console.timeStamp(o,e,t,Ze,$e,"secondary-light"))}function g0(e,t,o,i,u){if(wt&&!(t<=e)){for(var d=[],m=0;m<o.length;m++){var b=o[m].value;d.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ze,trackGroup:$e,tooltipText:i?"Remaining Effects Errored":"Commit Errored",properties:d}}},u?u.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Bu(e,t,o){!wt||t<=e||(o?o.run(console.timeStamp.bind(console,"Animating",e,t,Ze,$e,"secondary-dark")):console.timeStamp("Animating",e,t,Ze,$e,"secondary-dark"))}function mf(){for(var e=Nr,t=ib=Nr=0;t<e;){var o=Po[t];Po[t++]=null;var i=Po[t];Po[t++]=null;var u=Po[t];Po[t++]=null;var d=Po[t];if(Po[t++]=null,i!==null&&u!==null){var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}d!==0&&y0(o,u,d)}}function gf(e,t,o,i){Po[Nr++]=e,Po[Nr++]=t,Po[Nr++]=o,Po[Nr++]=i,ib|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Bm(e,t,o,i){return gf(e,t,o,i),yf(e)}function Ra(e,t){return gf(e,null,null,t),yf(e)}function y0(e,t,o){e.lanes|=o;var i=e.alternate;i!==null&&(i.lanes|=o);for(var u=!1,d=e.return;d!==null;)d.childLanes|=o,i=d.alternate,i!==null&&(i.childLanes|=o),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Lc||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Na(o),e=d.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=o|536870912),d):null}function yf(e){if(Wc>kD)throw Rl=Wc=0,Zc=Ub=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.");Rl>RD&&(Rl=0,Zc=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&&EL(e);for(var t=e,o=t.return;o!==null;)t.alternate===null&&(t.flags&4098)!==0&&EL(e),t=o,o=t.return;return t.tag===3?t.stateNode:null}function al(e){if(Bo===null)return e;var t=Bo(e);return t===void 0?e:t.current}function Nm(e){if(Bo===null)return e;var t=Bo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=al(e.render),e.render!==t)?(t={$$typeof:cc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function b0(e,t){if(Bo===null)return!1;var o=e.elementType;t=t.type;var i=!1,u=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(i=!0);break;case 0:typeof t==="function"?i=!0:u===vo&&(i=!0);break;case 11:u===cc?i=!0:u===vo&&(i=!0);break;case 14:case 15:u===ph?i=!0:u===vo&&(i=!0);break;default:return!1}return i&&(e=Bo(o),e!==void 0&&e===Bo(t))?!0:!1}function x0(e){Bo!==null&&typeof WeakSet==="function"&&(zr===null&&(zr=new WeakSet),zr.add(e))}function v0(e,t,o){do{var i=e,u=i.alternate,d=i.child,m=i.sibling,b=i.tag;i=i.type;var v=null;switch(b){case 0:case 15:case 1:v=i;break;case 11:v=i.render}if(Bo===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(i=!1,v!==null&&(v=Bo(v),v!==void 0&&(o.has(v)?i=!0:t.has(v)&&(b===1?i=!0:L=!0))),zr!==null&&(zr.has(e)||u!==null&&zr.has(u))&&(i=!0),i&&(e._debugNeedsRemount=!0),i||L)u=Ra(e,2),u!==null&&Nt(u,e,2);if(d===null||i||v0(d,t,o),m===null)break;e=m}while(1)}function Nk(e,t,o,i){this.tag=e,this.key=o,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=i,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,w1||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function es(e,t){var o=e.alternate;switch(o===null?(o=S(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=al(e.type);break;case 1:o.type=al(e.type);break;case 11:o.type=Nm(e.type)}return o}function S0(e,t){e.flags&=65011714;var o=e.alternate;return o===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=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,t=o.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function Um(e,t,o,i,u,d){var m=0,b=e;if(typeof e==="function")zm(e)&&(m=1),b=al(b);else if(typeof e==="string")m=pe(),m=YR(e,o,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _y:return t=S(31,o,t,u),t.elementType=_y,t.lanes=d,t;case Ir:return ol(o.children,u,d,t);case hh:m=8,u|=Da,u|=ln;break;case My:return e=o,i=u,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=S(12,e,t,i|Ue),t.elementType=My,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ky:return t=S(13,o,t,u),t.elementType=ky,t.lanes=d,t;case Ry:return t=S(19,o,t,u),t.elementType=Ry,t.lanes=d,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case On:m=10;break e;case Ay:m=9;break e;case cc:m=11,b=Nm(b);break e;case ph:m=14;break e;case vo:m=16,b=null;break e}if(b="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)b+=" 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?o="null":na(e)?o="array":e!==void 0&&e.$$typeof===En?(o="<"+(K(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(m=i?re(i):null)&&(b+=`
71
+ This will cause a hydration error.%s`,t,o),!1}function ac(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}function mR(e){return e.replace(L2,function(t,o){return o.toUpperCase()})}function w0(e,t,o){var r=t.indexOf("--")===0;r||(-1<t.indexOf("-")?Zl.hasOwnProperty(t)&&Zl[t]||(Zl[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,mR(t.replace(S2,"ms-")))):v2.test(t)?Zl.hasOwnProperty(t)&&Zl[t]||(Zl[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!R1.test(o)||bb.hasOwnProperty(o)&&bb[o]||(bb[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,o.replace(R1,""))),typeof o==="number"&&(isNaN(o)?_1||(_1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(o)||D1||(D1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),o==null||typeof o==="boolean"||o===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,o):typeof o!=="number"||o===0||E1.has(t)?t==="float"?e.cssFloat=o:(Qu(o,t),e[t]=(""+o).trim()):e[t]=o+"px"}function k0(e,t,o){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,o!=null){if(t){var r={};if(o){for(var c in o)if(o.hasOwnProperty(c)&&!t.hasOwnProperty(c))for(var f=yb[c]||[c],m=0;m<f.length;m++)r[f[m]]=c}for(var x in t)if(t.hasOwnProperty(x)&&(!o||o[x]!==t[x]))for(c=yb[x]||[x],f=0;f<c.length;f++)r[c[f]]=x;x={};for(var S in t)for(c=yb[S]||[S],f=0;f<c.length;f++)x[c[f]]=S;S={};for(var L in r)if(c=r[L],(f=x[L])&&c!==f&&(m=c+","+f,!S[m])){S[m]=!0,m=console;var O=t[c];m.error.call(m,"%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.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",c,f)}}for(var P in o)!o.hasOwnProperty(P)||t!=null&&t.hasOwnProperty(P)||(P.indexOf("--")===0?e.setProperty(P,""):P==="float"?e.cssFloat="":e[P]="");for(var _ in t)L=t[_],t.hasOwnProperty(_)&&o[_]!==L&&w0(e,_,L)}else for(r in t)t.hasOwnProperty(r)&&w0(e,r,t[r])}function oc(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 M0(e){return C2.get(e)||e}function gR(e,t){if(hn.call(Kl,t)&&Kl[t])return!0;if(w2.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=O1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Kl[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Kl[t]=!0}if(T2.test(t)){if(e=t.toLowerCase(),e=O1.hasOwnProperty(e)?e:null,e==null)return Kl[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Kl[t]=!0)}return!0}function yR(e,t){var o=[],r;for(r in t)gR(e,r)||o.push(r);t=o.map(function(c){return"`"+c+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function bR(e,t,o,r){if(hn.call(Za,t)&&Za[t])return!0;var c=t.toLowerCase();if(c==="onfocusin"||c==="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."),Za[t]=!0;if(typeof o==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(c)?e[c]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Za[t]=!0;if(B1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Za[t]=!0}else if(B1.test(t))return k2.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Za[t]=!0;if(M2.test(t)||I2.test(t))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Za[t]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Za[t]=!0;if(c==="is"&&o!==null&&o!==void 0&&typeof o!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Za[t]=!0;if(typeof o==="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Za[t]=!0;if($p.hasOwnProperty(c)){if(c=$p[c],c!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,c),Za[t]=!0}else if(t!==c)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,c),Za[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 o){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(c=t.toLowerCase().slice(0,5),c==="data-"||c==="aria-")return!0;return o?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()}.',o,t,t,o,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.',o,t,t,o,t,t,t),Za[t]=!0}case"function":case"symbol":return Za[t]=!0,!1;case"string":if(o==="false"||o==="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}?",o,t,o==="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,o),Za[t]=!0}}return!0}function xR(e,t,o){var r=[],c;for(c in t)bR(e,c,t[c],o)||r.push(c);t=r.map(function(f){return"`"+f+"`"}).join(", "),r.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<r.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 nc(e){return A2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ps(){}function ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function I0(e){var t=Ne(e);if(t&&(e=t.stateNode)){var o=e[Wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qm(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;Ct(t,"name"),o=o.querySelectorAll('input[name="'+Vo(""+t)+'"][type="radio"]');for(t=0;t<o.length;t++){var r=o[t];if(r!==e&&r.form===e.form){var c=r[Wa]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Qm(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<o.length;t++)r=o[t],r.form===e.form&&u0(r)}break e;case"textarea":g0(e,o.value,o.defaultValue);break e;case"select":t=o.value,t!=null&&Il(e,!!o.multiple,t,!1)}}}function A0(e,t,o){if(xb)return e(t,o);xb=!0;try{var r=e(t);return r}finally{if(xb=!1,Jl!==null||eu!==null){if(Ul(),Jl&&(t=Jl,e=eu,eu=Jl=null,I0(t),e))for(t=0;t<e.length;t++)I0(e[t])}}}function sc(e,t){var o=e.stateNode;if(o===null)return null;var r=o[Wa]||null;if(r===null)return null;o=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(o&&typeof o!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function R0(){if(Wp)return Wp;var e,t=Sb,o=t.length,r,c="value"in Lr?Lr.value:Lr.textContent,f=c.length;for(e=0;e<o&&t[e]===c[e];e++);var m=o-e;for(r=1;r<=m&&t[o-r]===c[f-r];r++);return Wp=c.slice(e,1<r?1-r:void 0)}function Bf(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 Nf(){return!0}function _0(){return!1}function no(e){function t(o,r,c,f,m){this._reactName=o,this._targetInst=c,this.type=r,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(o=e[x],this[x]=o?o(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Nf:_0,this.isPropagationStopped=_0,this}return Ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!=="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!=="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),t}function vR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q2[e])?!!t[e]:!1}function sg(){return vR}function D0(e,t){switch(e){case"keyup":return eD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==U1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function SR(e,t){switch(e){case"compositionend":return E0(t);case"keypress":if(t.which!==q1)return null;return j1=!0,V1;case"textInput":return e=t.data,e===V1&&j1?null:e;default:return null}}function LR(e,t){if(tu)return e==="compositionend"||!wb&&D0(e,t)?(e=R0(),Wp=Sb=Lr=null,tu=!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 F1&&t.locale!=="ko"?null:t.data;default:return null}}function O0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aD[e.type]:t==="textarea"?!0:!1}function CR(e){if(!Zn)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,o,r){Jl?eu?eu.push(r):eu=[r]:Jl=r,t=Ap(t,"onChange"),0<t.length&&(o=new Zp("onChange","change",null,o,r),e.push({event:o,listeners:t}))}function TR(e){yC(e,0)}function zf(e){var t=ze(e);if(u0(t))return e}function B0(e,t){if(e==="change")return t}function N0(){jc&&(jc.detachEvent("onpropertychange",z0),Gc=jc=null)}function z0(e){if(e.propertyName==="value"&&zf(Gc)){var t=[];P0(t,Gc,e,ng(e)),A0(TR,t)}}function wR(e,t,o){e==="focusin"?(N0(),jc=t,Gc=o,jc.attachEvent("onpropertychange",z0)):e==="focusout"&&N0()}function kR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zf(Gc)}function MR(e,t){if(e==="click")return zf(t)}function IR(e,t){if(e==="input"||e==="change")return zf(t)}function AR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function rc(e,t){if(Qa(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(r=0;r<o.length;r++){var c=o[r];if(!hn.call(t,c)||!Qa(e[c],t[c]))return!1}return!0}function H0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function U0(e,t){var o=H0(e);e=0;for(var r;o;){if(o.nodeType===3){if(r=e+o.textContent.length,e<=t&&r>=t)return{node:o,offset:t-e};e=r}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=H0(o)}}function F0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?F0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ef(e.document);t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href==="string"}catch(r){o=!1}if(o)e=t.contentWindow;else break;t=Ef(e.document)}return t}function rg(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 V0(e,t,o){var r=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Mb||au==null||au!==Ef(r)||(r=au,("selectionStart"in r)&&rg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xc&&rc(Xc,r)||(Xc=r,r=Ap(kb,"onSelect"),0<r.length&&(t=new Zp("onSelect","select",null,t,o),e.push({event:t,listeners:r}),t.target=au)))}function vi(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}function Si(e){if(Ib[e])return Ib[e];if(!ou[e])return e;var t=ou[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in X1)return Ib[e]=t[o];return e}function dn(e,t){Q1.set(e,t),Fa(t,[e])}function RR(e){for(var t=Kp,o=0;o<e.length;o++){var r=e[o];if(typeof r==="object"&&r!==null)if(ha(r)&&r.length===2&&typeof r[0]==="string"){if(t!==Kp&&t!==Eb)return _b;t=Eb}else return _b;else{if(typeof r==="function"||typeof r==="string"&&50<r.length||t!==Kp&&t!==Db)return _b;t=Db}}return t}function ig(e,t,o,r){for(var c in e)hn.call(e,c)&&c[0]!=="_"&&In(c,e[c],t,o,r)}function In(e,t,o,r,c){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===jn){var f=Y(t.type)||"…",m=t.key;t=t.props;var x=Object.keys(t),S=x.length;if(m==null&&S===0){t="<"+f+" />";break}if(3>r||S===1&&x[0]==="children"&&m==null){t="<"+f+" … />";break}o.push([c+"  ".repeat(r)+e,"<"+f]),m!==null&&In("key",m,o,r+1,c),e=!1;for(var L in t)L==="children"?t.children!=null&&(!ha(t.children)||0<t.children.length)&&(e=!0):hn.call(t,L)&&L[0]!=="_"&&In(L,t[L],o,r+1,c);o.push(["",e?">…</"+f+">":"/>"]);return}if(f=Object.prototype.toString.call(t),f=f.slice(8,f.length-1),f==="Array"){if(L=RR(t),L===Db||L===Kp){t=JSON.stringify(t);break}else if(L===Eb){o.push([c+"  ".repeat(r)+e,""]);for(e=0;e<t.length;e++)f=t[e],In(f[0],f[1],o,r+1,c);return}}if(f==="Promise"){if(t.status==="fulfilled"){if(f=o.length,In(e,t.value,o,r,c),o.length>f){o=o[f],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(t.status==="rejected"&&(f=o.length,In(e,t.reason,o,r,c),o.length>f)){o=o[f],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["  ".repeat(r)+e,"Promise"]);return}f==="Object"&&(L=Object.getPrototypeOf(t))&&typeof L.constructor==="function"&&(f=L.constructor.name),o.push([c+"  ".repeat(r)+e,f==="Object"?3>r?"":"…":f]),3>r&&ig(t,o,r+1,c);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===uD?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}o.push([c+"  ".repeat(r)+e,t])}function j0(e,t,o,r){var c=!0;for(m in e)m in t||(o.push([Jp+"  ".repeat(r)+m,"…"]),c=!1);for(var f in t)if(f in e){var m=e[f],x=t[f];if(m!==x){if(r===0&&f==="children")c="  ".repeat(r)+f,o.push([Jp+c,"…"],[eh+c,"…"]);else{if(!(3<=r)){if(typeof m==="object"&&typeof x==="object"&&m!==null&&x!==null&&m.$$typeof===x.$$typeof)if(x.$$typeof===jn){if(m.type===x.type&&m.key===x.key){m=Y(x.type)||"…",c="  ".repeat(r)+f,m="<"+m+" … />",o.push([Jp+c,m],[eh+c,m]),c=!1;continue}}else{var S=Object.prototype.toString.call(m),L=Object.prototype.toString.call(x);if(S===L&&(L==="[object Object]"||L==="[object Array]")){S=[eT+"  ".repeat(r)+f,L==="[object Array]"?"Array":""],o.push(S),L=o.length,j0(m,x,o,r+1)?L===o.length&&(S[1]="Referentially unequal but deeply equal objects. Consider memoization."):c=!1;continue}}else if(typeof m==="function"&&typeof x==="function"&&m.name===x.name&&m.length===x.length&&(S=Function.prototype.toString.call(m),L=Function.prototype.toString.call(x),S===L)){m=x.name===""?"() => {}":x.name+"() {}",o.push([eT+"  ".repeat(r)+f,m+" Referentially unequal function closure. Consider memoization."]);continue}}In(f,m,o,r,Jp),In(f,x,o,r,eh)}c=!1}}else o.push([eh+"  ".repeat(r)+f,"…"]),c=!1;return c}function To(e){Je=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function An(e,t,o,r){Pt&&(Tr.start=t,Tr.end=o,Ls.color="warning",Ls.tooltipText=r,Ls.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Tr)):performance.measure(r,Tr))}function Hf(e,t,o){An(e,t,o,"Reconnect")}function Uf(e,t,o,r,c){var f=j(e);if(f!==null&&Pt){var{alternate:m,actualDuration:x}=e;if(m===null||m.child!==e.child)for(var S=e.child;S!==null;S=S.sibling)x-=S.actualDuration;r=0.5>x?r?"tertiary-light":"primary-light":10>x?r?"tertiary":"primary":100>x?r?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;x=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(S=[cD],L=j0(m.memoizedProps,L,S,0),1<S.length&&(L&&!Cr&&(m.lanes&c)===0&&100<e.actualDuration?(Cr=!0,S[0]=dD,Ls.color="warning",Ls.tooltipText=tT):(Ls.color=r,Ls.tooltipText=f),Ls.properties=S,Tr.start=t,Tr.end=o,x!=null?x.run(performance.measure.bind(performance,"​"+f,Tr)):performance.measure("​"+f,Tr))):x!=null?x.run(console.timeStamp.bind(console,f,t,o,Go,void 0,r)):console.timeStamp(f,t,o,Go,void 0,r)}}function lg(e,t,o,r){if(Pt){var c=j(e);if(c!==null){for(var f=null,m=[],x=0;x<r.length;x++){var S=r[x];f==null&&S.source!==null&&(f=S.source._debugTask),S=S.value,m.push(["Error",typeof S==="object"&&S!==null&&typeof S.message==="string"?String(S.message):String(S)])}e.key!==null&&In("key",e.key,m,0,""),e.memoizedProps!==null&&ig(e.memoizedProps,m,0,""),f==null&&(f=e._debugTask),e={start:t,end:o,detail:{devtools:{color:"error",track:Go,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:m}}},f?f.run(performance.measure.bind(performance,"​"+c,e)):performance.measure("​"+c,e)}}}function Rn(e,t,o,r,c){if(c!==null){if(Pt){var f=j(e);if(f!==null){r=[];for(var m=0;m<c.length;m++){var x=c[m].value;r.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e.key!==null&&In("key",e.key,r,0,""),e.memoizedProps!==null&&ig(e.memoizedProps,r,0,""),t={start:t,end:o,detail:{devtools:{color:"error",track:Go,tooltipText:"A lifecycle or effect errored",properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+f,t)):performance.measure("​"+f,t)}}}else f=j(e),f!==null&&Pt&&(c=1>r?"secondary-light":100>r?"secondary":500>r?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,f,t,o,Go,void 0,c)):console.timeStamp(f,t,o,Go,void 0,c))}function _R(e,t,o,r){if(Pt&&!(t<=e)){var c=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",r?r.run(console.timeStamp.bind(console,o,e,t,Je,Qe,c)):console.timeStamp(o,e,t,Je,Qe,c)}}function G0(e,t,o,r){!Pt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",r?r.run(console.timeStamp.bind(console,"Prewarm",e,t,Je,Qe,o)):console.timeStamp("Prewarm",e,t,Je,Qe,o))}function X0(e,t,o,r){!Pt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",r?r.run(console.timeStamp.bind(console,"Suspended",e,t,Je,Qe,o)):console.timeStamp("Suspended",e,t,Je,Qe,o))}function DR(e,t,o,r,c,f){if(Pt&&!(t<=e)){o=[];for(var m=0;m<r.length;m++){var x=r[m].value;o.push(["Recoverable Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Je,trackGroup:Qe,tooltipText:c?"Hydration Failed":"Recovered after Error",properties:o}}},f?f.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function ug(e,t,o,r){!Pt||t<=e||(r?r.run(console.timeStamp.bind(console,"Errored",e,t,Je,Qe,"error")):console.timeStamp("Errored",e,t,Je,Qe,"error"))}function ER(e,t,o,r){!Pt||t<=e||(r?r.run(console.timeStamp.bind(console,o,e,t,Je,Qe,"secondary-light")):console.timeStamp(o,e,t,Je,Qe,"secondary-light"))}function Y0(e,t,o,r,c){if(Pt&&!(t<=e)){for(var f=[],m=0;m<o.length;m++){var x=o[m].value;f.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Je,trackGroup:Qe,tooltipText:r?"Remaining Effects Errored":"Commit Errored",properties:f}}},c?c.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function ic(e,t,o){!Pt||t<=e||(o?o.run(console.timeStamp.bind(console,"Animating",e,t,Je,Qe,"secondary-dark")):console.timeStamp("Animating",e,t,Je,Qe,"secondary-dark"))}function Ff(){for(var e=nu,t=Ob=nu=0;t<e;){var o=Xo[t];Xo[t++]=null;var r=Xo[t];Xo[t++]=null;var c=Xo[t];Xo[t++]=null;var f=Xo[t];if(Xo[t++]=null,r!==null&&c!==null){var m=r.pending;m===null?c.next=c:(c.next=m.next,m.next=c),r.pending=c}f!==0&&$0(o,c,f)}}function qf(e,t,o,r){Xo[nu++]=e,Xo[nu++]=t,Xo[nu++]=o,Xo[nu++]=r,Ob|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function cg(e,t,o,r){return qf(e,t,o,r),Vf(e)}function qa(e,t){return qf(e,null,null,t),Vf(e)}function $0(e,t,o){e.lanes|=o;var r=e.alternate;r!==null&&(r.lanes|=o);for(var c=!1,f=e.return;f!==null;)f.childLanes|=o,r=f.alternate,r!==null&&(r.childLanes|=o),f.tag===22&&(e=f.stateNode,e===null||e._visibility&Yc||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-$a(o),e=f.hiddenUpdates,r=e[c],r===null?e[c]=[t]:r.push(t),t.lane=o|536870912),f):null}function Vf(e){if(vd>kD)throw Zi=vd=0,Sd=px=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.");Zi>MD&&(Zi=0,Sd=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&&cC(e);for(var t=e,o=t.return;o!==null;)t.alternate===null&&(t.flags&4098)!==0&&cC(e),t=o,o=t.return;return t.tag===3?t.stateNode:null}function Li(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e:t.current}function dg(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=Li(e.render),e.render!==t)?(t={$$typeof:Pc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function W0(e,t){if(Yo===null)return!1;var o=e.elementType;t=t.type;var r=!1,c=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(r=!0);break;case 0:typeof t==="function"?r=!0:c===_o&&(r=!0);break;case 11:c===Pc?r=!0:c===_o&&(r=!0);break;case 14:case 15:c===Up?r=!0:c===_o&&(r=!0);break;default:return!1}return r&&(e=Yo(o),e!==void 0&&e===Yo(t))?!0:!1}function Z0(e){Yo!==null&&typeof WeakSet==="function"&&(su===null&&(su=new WeakSet),su.add(e))}function Q0(e,t,o){do{var r=e,c=r.alternate,f=r.child,m=r.sibling,x=r.tag;r=r.type;var S=null;switch(x){case 0:case 15:case 1:S=r;break;case 11:S=r.render}if(Yo===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(r=!1,S!==null&&(S=Yo(S),S!==void 0&&(o.has(S)?r=!0:t.has(S)&&(x===1?r=!0:L=!0))),su!==null&&(su.has(e)||c!==null&&su.has(c))&&(r=!0),r&&(e._debugNeedsRemount=!0),r||L)c=qa(e,2),c!==null&&Zt(c,e,2);if(f===null||r||Q0(f,t,o),m===null)break;e=m}while(1)}function OR(e,t,o,r){this.tag=e,this.key=o,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=r,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,aT||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hs(e,t){var o=e.alternate;switch(o===null?(o=v(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=Li(e.type);break;case 1:o.type=Li(e.type);break;case 11:o.type=dg(e.type)}return o}function K0(e,t){e.flags&=65011714;var o=e.alternate;return o===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=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,t=o.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function pg(e,t,o,r,c,f){var m=0,x=e;if(typeof e==="function")fg(e)&&(m=1),x=Li(x);else if(typeof e==="string")m=be(),m=V_(e,o,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sb:return t=v(31,o,t,c),t.elementType=sb,t.lanes=f,t;case Yl:return Ci(o.children,c,f,t);case Hp:m=8,c|=ja,c|=gn;break;case tb:return e=o,r=c,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=v(12,e,t,r|je),t.elementType=tb,t.lanes=f,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ob:return t=v(13,o,t,c),t.elementType=ob,t.lanes=f,t;case nb:return t=v(19,o,t,c),t.elementType=nb,t.lanes=f,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Gn:m=10;break e;case ab:m=9;break e;case Pc:m=11,x=dg(x);break e;case Up:m=14;break e;case _o:m=16,x=null;break e}if(x="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)x+=" 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?o="null":ha(e)?o="array":e!==void 0&&e.$$typeof===jn?(o="<"+(Y(e.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(m=r?J(r):null)&&(x+=`
72
72
 
73
- Check the render method of \``+m+"`."),m=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+b)),b=null}return t=S(m,o,t,u),t.elementType=e,t.type=b,t.lanes=d,t._debugOwner=i,t}function bf(e,t,o){return t=Um(e.type,e.key,e.props,e._owner,t,o),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ol(e,t,o,i){return e=S(7,e,i,t),e.lanes=o,e}function Hm(e,t,o){return e=S(6,e,null,t),e.lanes=o,e}function L0(e){var t=S(18,null,null,Ae);return t.stateNode=e,t}function Fm(e,t,o){return t=S(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function po(e,t){if(typeof e==="object"&&e!==null){var o=lb.get(e);if(o!==void 0)return o;return t={value:e,source:t,stack:Wt(t)},lb.set(e,t),t}return{value:e,source:t,stack:Wt(t)}}function ts(e,t){Hs(),Ur[Hr++]=Cc,Ur[Hr++]=kh,kh=e,Cc=t}function C0(e,t,o){Hs(),No[zo++]=cs,No[zo++]=ds,No[zo++]=gl,gl=e;var i=cs;e=ds;var u=32-Na(i)-1;i&=~(1<<u),o+=1;var d=32-Na(t)+u;if(30<d){var m=u-u%5;d=(i&(1<<m)-1).toString(32),i>>=m,u-=m,cs=1<<32-Na(t)+u|o<<u|i,ds=d+e}else cs=1<<d|o<<u|i,ds=e}function qm(e){Hs(),e.return!==null&&(ts(e,1),C0(e,1,0))}function Vm(e){for(;e===kh;)kh=Ur[--Hr],Ur[Hr]=null,Cc=Ur[--Hr],Ur[Hr]=null;for(;e===gl;)gl=No[--zo],No[zo]=null,ds=No[--zo],No[zo]=null,cs=No[--zo],No[zo]=null}function T0(){return Hs(),gl!==null?{id:cs,overflow:ds}:null}function w0(e,t){Hs(),No[zo++]=cs,No[zo++]=ds,No[zo++]=gl,cs=t.id,ds=t.overflow,gl=e}function Hs(){Ke||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function nl(e,t){if(e.return===null){if(Co===null)Co={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Co.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Co.distanceFromLeaf>t&&(Co.distanceFromLeaf=t)}return Co}var o=nl(e.return,t+1).children;if(0<o.length&&o[o.length-1].fiber===e)return o=o[o.length-1],o.distanceFromLeaf>t&&(o.distanceFromLeaf=t),o;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},o.push(t),t}function I0(){Ke&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function xf(e,t){Hn||(e=nl(e,0),e.serverProps=null,t!==null&&(t=nC(t),e.serverTail.push(t)))}function Fs(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",i=Co;throw i!==null&&(Co=null,o=Am(i)),Nu(po(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:
73
+ Check the render method of \``+m+"`."),m=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+x)),x=null}return t=v(m,o,t,c),t.elementType=e,t.type=x,t.lanes=f,t._debugOwner=r,t}function jf(e,t,o){return t=pg(e.type,e.key,e.props,e._owner,t,o),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Ci(e,t,o,r){return e=v(7,e,r,t),e.lanes=o,e}function hg(e,t,o){return e=v(6,e,null,t),e.lanes=o,e}function J0(e){var t=v(18,null,null,Oe);return t.stateNode=e,t}function mg(e,t,o){return t=v(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wo(e,t){if(typeof e==="object"&&e!==null){var o=Pb.get(e);if(o!==void 0)return o;return t={value:e,source:t,stack:et(t)},Pb.set(e,t),t}return{value:e,source:t,stack:et(t)}}function ms(e,t){rr(),ru[iu++]=$c,ru[iu++]=th,th=e,$c=t}function eS(e,t,o){rr(),$o[Wo++]=Ts,$o[Wo++]=ws,$o[Wo++]=Bi,Bi=e;var r=Ts;e=ws;var c=32-$a(r)-1;r&=~(1<<c),o+=1;var f=32-$a(t)+c;if(30<f){var m=c-c%5;f=(r&(1<<m)-1).toString(32),r>>=m,c-=m,Ts=1<<32-$a(t)+c|o<<c|r,ws=f+e}else Ts=1<<f|o<<c|r,ws=e}function gg(e){rr(),e.return!==null&&(ms(e,1),eS(e,1,0))}function yg(e){for(;e===th;)th=ru[--iu],ru[iu]=null,$c=ru[--iu],ru[iu]=null;for(;e===Bi;)Bi=$o[--Wo],$o[Wo]=null,ws=$o[--Wo],$o[Wo]=null,Ts=$o[--Wo],$o[Wo]=null}function tS(){return rr(),Bi!==null?{id:Ts,overflow:ws}:null}function aS(e,t){rr(),$o[Wo++]=Ts,$o[Wo++]=ws,$o[Wo++]=Bi,Ts=t.id,ws=t.overflow,Bi=e}function rr(){at||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ti(e,t){if(e.return===null){if(Oo===null)Oo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Oo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Oo.distanceFromLeaf>t&&(Oo.distanceFromLeaf=t)}return Oo}var o=Ti(e.return,t+1).children;if(0<o.length&&o[o.length-1].fiber===e)return o=o[o.length-1],o.distanceFromLeaf>t&&(o.distanceFromLeaf=t),o;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},o.push(t),t}function oS(){at&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Gf(e,t){Qn||(e=Ti(e,0),e.serverProps=null,t!==null&&(t=PC(t),e.serverTail.push(t)))}function ir(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",r=Oo;throw r!==null&&(Oo=null,o=ag(r)),lc(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 \``+m+"`."),m=29,o=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`+o),e)),rb}function M0(e){var{stateNode:t,type:o,memoizedProps:i}=e;switch(t[Sa]=e,t[za]=i,uy(o,i),o){case"dialog":et("cancel",t),et("close",t);break;case"iframe":case"object":case"embed":et("load",t);break;case"video":case"audio":for(o=0;o<Qc.length;o++)et(Qc[o],t);break;case"source":et("error",t);break;case"img":case"image":case"link":et("error",t),et("load",t);break;case"details":et("toggle",t);break;case"input":Us("input",i),et("invalid",t),Ev(t,i),Ov(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"option":Pv(t,i);break;case"select":Us("select",i),et("invalid",t),Nv(t,i);break;case"textarea":Us("textarea",i),et("invalid",t),zv(t,i),Hv(t,i.value,i.defaultValue,i.children)}o=i.children,typeof o!=="string"&&typeof o!=="number"&&typeof o!=="bigint"||t.textContent===""+o||i.suppressHydrationWarning===!0||jL(t.textContent,o)?(i.popover!=null&&(et("beforetoggle",t),et("toggle",t)),i.onScroll!=null&&et("scroll",t),i.onScrollEnd!=null&&et("scrollend",t),i.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||Fs(e,!0)}function A0(e){for(La=e.return;La;)switch(La.tag){case 5:case 31:case 13:Uo=!1;return;case 27:case 3:Uo=!0;return;default:La=La.return}}function cr(e){if(e!==La)return!1;if(!Ke)return A0(e),Ke=!0,!1;var t=e.tag,o;if(o=t!==3&&t!==27){if(o=t===5)o=e.type,o=!(o!=="form"&&o!=="button")||py(e.type,e.memoizedProps);o=!o}if(o&&It){for(o=It;o;){var i=nl(e,0),u=nC(o);i.serverTail.push(u),o=u.type==="Suspense"?by(o):xo(o.nextSibling)}Fs(e)}if(A0(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.");It=by(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.");It=by(e)}else t===27?(t=It,Qs(e.type)?(e=Qb,Qb=null,It=e):It=t):It=La?xo(e.stateNode.nextSibling):null;return!0}function sl(){It=La=null,Hn=Ke=!1}function jm(){var e=ii;return e!==null&&(ja===null?ja=e:ja.push.apply(ja,e),ii=null),e}function Nu(e){ii===null?ii=[e]:ii.push(e)}function Gm(){var e=Co;if(e!==null){Co=null;for(var t=Am(e);0<e.children.length;)e=e.children[0];ie(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:
83
+ https://react.dev/link/hydration-mismatch`+o),e)),Bb}function nS(e){var{stateNode:t,type:o,memoizedProps:r}=e;switch(t[Oa]=e,t[Wa]=r,Ny(o,r),o){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(o=0;o<Ld.length;o++)nt(Ld[o],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":sr("input",r),nt("invalid",t),c0(t,r),d0(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"option":f0(t,r);break;case"select":sr("select",r),nt("invalid",t),h0(t,r);break;case"textarea":sr("textarea",r),nt("invalid",t),m0(t,r),y0(t,r.value,r.defaultValue,r.children)}o=r.children,typeof o!=="string"&&typeof o!=="number"&&typeof o!=="bigint"||t.textContent===""+o||r.suppressHydrationWarning===!0||SC(t.textContent,o)?(r.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),r.onScroll!=null&&nt("scroll",t),r.onScrollEnd!=null&&nt("scrollend",t),r.onClick!=null&&(t.onclick=ps),t=!0):t=!1,t||ir(e,!0)}function sS(e){for(Pa=e.return;Pa;)switch(Pa.tag){case 5:case 31:case 13:Zo=!1;return;case 27:case 3:Zo=!0;return;default:Pa=Pa.return}}function _l(e){if(e!==Pa)return!1;if(!at)return sS(e),at=!0,!1;var t=e.tag,o;if(o=t!==3&&t!==27){if(o=t===5)o=e.type,o=!(o!=="form"&&o!=="button")||qy(e.type,e.memoizedProps);o=!o}if(o&&Bt){for(o=Bt;o;){var r=Ti(e,0),c=PC(o);r.serverTail.push(c),o=c.type==="Suspense"?Xy(o):Ro(o.nextSibling)}ir(e)}if(sS(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.");Bt=Xy(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.");Bt=Xy(e)}else t===27?(t=Bt,yr(e.type)?(e=wx,wx=null,Bt=e):Bt=t):Bt=Pa?Ro(e.stateNode.nextSibling):null;return!0}function wi(){Bt=Pa=null,Qn=at=!1}function bg(){var e=kr;return e!==null&&(to===null?to=e:to.push.apply(to,e),kr=null),e}function lc(e){kr===null?kr=[e]:kr.push(e)}function xg(){var e=Oo;if(e!==null){Oo=null;for(var t=ag(e);0<e.children.length;)e=e.children[0];me(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,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+o),e)),rb}function M0(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 vf(){Fr=Rh=null,qr=!1}function qs(e,t,o){we(ub,t._currentValue,e),t._currentValue=o,we(cb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==M1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=M1}function as(e,t){e._currentValue=ub.current;var o=cb.current;Le(cb,t),e._currentRenderer=o,Le(ub,t)}function Ym(e,t,o){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===o)break;e=e.return}e!==o&&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 Xm(e,t,o,i){var u=e.child;u!==null&&(u.return=e);for(;u!==null;){var d=u.dependencies;if(d!==null){var m=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var v=0;v<t.length;v++)if(b.context===t[v]){d.lanes|=o,b=d.alternate,b!==null&&(b.lanes|=o),Ym(d.return,o,e),i||(m=null);break e}d=b.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes|=o,d=m.alternate,d!==null&&(d.lanes|=o),Ym(m,o,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function dr(e,t,o,i){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error("Should have a current fiber. This is a bug in React.");if(m=m.memoizedProps,m!==null){var b=u.type;Ha(u.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(u===mh.current){if(m=u.alternate,m===null)throw Error("Should have a current fiber. This is a bug in React.");m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ad):e=[ad])}u=u.return}e!==null&&Xm(t,e,o,i),t.flags|=262144}function Sf(e){for(e=e.firstContext;e!==null;){if(!Ha(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function il(e){Rh=e,Fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return qr&&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()."),k0(Rh,e)}function Lf(e,t){return Rh===null&&il(e),k0(e,t)}function k0(e,t){var o=t._currentValue;if(t={context:t,memoizedValue:o,next:null},Fr===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().");Fr=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Fr=Fr.next=t;return o}function $m(){return{controller:new yD,data:new Map,refCount:0}}function ll(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 zu(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&&bD(xD,function(){e.controller.abort()})}function vn(e,t,o){if((e&127)!==0)0>Fn&&(Fn=Qt(),wc=_h(t),db=t,o!=null&&(fb=V(o)),(ot&(ia|Io))!==pa&&(zt=!0,ui=Tc),e=sc(),t=nc(),e!==Vr||t!==Ic?Vr=-1.1:t!==null&&(ui=Tc),bl=e,Ic=t);else if((e&4194048)!==0&&0>Ho&&(Ho=Qt(),Mc=_h(t),A1=t,o!=null&&(k1=V(o)),0>ps)){if(e=sc(),t=nc(),e!==di||t!==xl)di=-1.1;ci=e,xl=t}}function zk(e){if(0>Fn){Fn=Qt(),wc=e._debugTask!=null?e._debugTask:null,(ot&(ia|Io))!==pa&&(ui=Tc);var t=sc(),o=nc();t!==Vr||o!==Ic?Vr=-1.1:o!==null&&(ui=Tc),bl=t,Ic=o}if(0>Ho&&(Ho=Qt(),Mc=e._debugTask!=null?e._debugTask:null,0>ps)){if(e=sc(),t=nc(),e!==di||t!==xl)di=-1.1;ci=e,xl=t}}function os(){var e=yl;return yl=0,e}function Cf(e){var t=yl;return yl=e,t}function Uu(e){var t=yl;return yl+=e,t}function Tf(){Ce=Se=-1.1}function mo(){var e=Se;return Se=-1.1,e}function go(e){0<=e&&(Se=e)}function Sn(){var e=Et;return Et=-0,e}function Ln(e){0<=e&&(Et=e)}function Cn(){var e=Dt;return Dt=null,e}function Tn(){var e=zt;return zt=!1,e}function Wm(e){Fa=Qt(),0>e.actualStartTime&&(e.actualStartTime=Fa)}function Zm(e){if(0<=Fa){var t=Qt()-Fa;e.actualDuration+=t,e.selfBaseDuration=t,Fa=-1}}function R0(e){if(0<=Fa){var t=Qt()-Fa;e.actualDuration+=t,Fa=-1}}function wn(){if(0<=Fa){var e=Qt(),t=e-Fa;Fa=-1,yl+=t,Et+=t,Ce=e}}function _0(e){Dt===null&&(Dt=[]),Dt.push(e),hs===null&&(hs=[]),hs.push(e)}function In(){Fa=Qt(),0>Se&&(Se=Fa)}function Hu(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Uk(e,t){if(kc===null){var o=kc=[];pb=0,vl=sy(),jr={status:"pending",value:void 0,then:function(i){o.push(i)}}}return pb++,t.then(D0,D0),t}function D0(){if(--pb===0&&(-1<Ho||(ps=-1.1),kc!==null)){jr!==null&&(jr.status="fulfilled");var e=kc;kc=null,vl=0,jr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hk(e,t){var o=[],i={status:"pending",value:null,reason:null,then:function(u){o.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<o.length;u++)(0,o[u])(t)},function(u){i.status="rejected",i.reason=u;for(u=0;u<o.length;u++)(0,o[u])(void 0)}),i}function Qm(){var e=Sl.current;return e!==null?e:xt.pooledCache}function wf(e,t){t===null?we(Sl,Sl.current,e):we(Sl,t.pool,e)}function E0(){var e=Qm();return e===null?null:{parent:Zt._currentValue,pool:e}}function O0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function P0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function B0(e,t,o){H.actQueue!==null&&(H.didUsePromise=!0);var i=e.thenables;if(o=i[o],o===void 0?i.push(t):o!==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(Jn,Jn),t=o),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var u={name:typeof i==="string"?i:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:u}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){u.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,z0(e),e;default:if(typeof t.status==="string")t.then(Jn,Jn);else{if(e=xt,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(d){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=d}},function(d){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=d}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,z0(e),e}throw Cl=t,Bc=!0,Gr}}function Vs(e){try{return CD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Cl=t,Bc=!0,Gr;throw t}}function N0(){if(Cl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Cl;return Cl=null,Bc=!1,e}function z0(e){if(e===Gr||e===Uh)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 ba(e){var t=He;return e!=null&&(He=t===null?e:t.concat(e)),t}function Km(){var e=He;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var o=e[t].debugTask;if(o!=null)return o}}return null}function If(e,t,o){for(var i=Object.keys(e.props),u=0;u<i.length;u++){var d=i[u];if(d!=="children"&&d!=="key"){t===null&&(t=bf(e,o.mode,0),t._debugInfo=He,t.return=o),ie(t,function(m){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m)},d);break}}}function Mf(e){var t=Nc;return Nc+=1,Yr===null&&(Yr=O0()),B0(Yr,e,t)}function Fu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function U0(e,t){if(t.$$typeof===a_)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Xf(){lu=ah=null,uu=!1}function lr(e,t,o){ye(Nb,t._currentValue,e),t._currentValue=o,ye(zb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==nT&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=nT}function gs(e,t){e._currentValue=Nb.current;var o=zb.current;ge(zb,t),e._currentRenderer=o,ge(Nb,t)}function vg(e,t,o){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===o)break;e=e.return}e!==o&&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 Sg(e,t,o,r){var c=e.child;c!==null&&(c.return=e);for(;c!==null;){var f=c.dependencies;if(f!==null){var m=c.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=c;for(var S=0;S<t.length;S++)if(x.context===t[S]){f.lanes|=o,x=f.alternate,x!==null&&(x.lanes|=o),vg(f.return,o,e),r||(m=null);break e}f=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes|=o,f=m.alternate,f!==null&&(f.lanes|=o),vg(m,o,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function Dl(e,t,o,r){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error("Should have a current fiber. This is a bug in React.");if(m=m.memoizedProps,m!==null){var x=c.type;Qa(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===Fp.current){if(m=c.alternate,m===null)throw Error("Should have a current fiber. This is a bug in React.");m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Md):e=[Md])}c=c.return}e!==null&&Sg(t,e,o,r),t.flags|=262144}function Yf(e){for(e=e.firstContext;e!==null;){if(!Qa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){ah=e,lu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return uu&&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()."),rS(ah,e)}function $f(e,t){return ah===null&&ki(e),rS(e,t)}function rS(e,t){var o=t._currentValue;if(t={context:t,memoizedValue:o,next:null},lu===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().");lu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else lu=lu.next=t;return o}function Lg(){return{controller:new hD,data:new Map,refCount:0}}function Mi(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 uc(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&&mD(gD,function(){e.controller.abort()})}function _n(e,t,o){if((e&127)!==0)0>Kn&&(Kn=ia(),Zc=oh(t),Hb=t,o!=null&&(Ub=j(o)),(ct&(ga|No))!==wa&&(Qt=!0,Ar=Wc),e=Rc(),t=Ac(),e!==cu||t!==Qc?cu=-1.1:t!==null&&(Ar=Wc),zi=e,Qc=t);else if((e&4194048)!==0&&0>Qo&&(Qo=ia(),Kc=oh(t),sT=t,o!=null&&(rT=j(o)),0>Is)){if(e=Rc(),t=Ac(),e!==_r||t!==Hi)_r=-1.1;Rr=e,Hi=t}}function PR(e){if(0>Kn){Kn=ia(),Zc=e._debugTask!=null?e._debugTask:null,(ct&(ga|No))!==wa&&(Ar=Wc);var t=Rc(),o=Ac();t!==cu||o!==Qc?cu=-1.1:o!==null&&(Ar=Wc),zi=t,Qc=o}if(0>Qo&&(Qo=ia(),Kc=e._debugTask!=null?e._debugTask:null,0>Is)){if(e=Rc(),t=Ac(),e!==_r||t!==Hi)_r=-1.1;Rr=e,Hi=t}}function ys(){var e=Ni;return Ni=0,e}function Wf(e){var t=Ni;return Ni=e,t}function cc(e){var t=Ni;return Ni+=e,t}function Zf(){_e=Re=-1.1}function ko(){var e=Re;return Re=-1.1,e}function Mo(e){0<=e&&(Re=e)}function Dn(){var e=Xt;return Xt=-0,e}function En(e){0<=e&&(Xt=e)}function On(){var e=qt;return qt=null,e}function Pn(){var e=Qt;return Qt=!1,e}function Cg(e){Ka=ia(),0>e.actualStartTime&&(e.actualStartTime=Ka)}function Tg(e){if(0<=Ka){var t=ia()-Ka;e.actualDuration+=t,e.selfBaseDuration=t,Ka=-1}}function iS(e){if(0<=Ka){var t=ia()-Ka;e.actualDuration+=t,Ka=-1}}function Bn(){if(0<=Ka){var e=ia(),t=e-Ka;Ka=-1,Ni+=t,Xt+=t,_e=e}}function lS(e){qt===null&&(qt=[]),qt.push(e),Ms===null&&(Ms=[]),Ms.push(e)}function Nn(){Ka=ia(),0>Re&&(Re=Ka)}function dc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function BR(e,t){if(ed===null){var o=ed=[];qb=0,Ui=Ey(),du={status:"pending",value:void 0,then:function(r){o.push(r)}}}return qb++,t.then(uS,uS),t}function uS(){if(--qb===0&&(-1<Qo||(Is=-1.1),ed!==null)){du!==null&&(du.status="fulfilled");var e=ed;ed=null,Ui=0,du=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function NR(e,t){var o=[],r={status:"pending",value:null,reason:null,then:function(c){o.push(c)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var c=0;c<o.length;c++)(0,o[c])(t)},function(c){r.status="rejected",r.reason=c;for(c=0;c<o.length;c++)(0,o[c])(void 0)}),r}function wg(){var e=Fi.current;return e!==null?e:At.pooledCache}function Qf(e,t){t===null?ye(Fi,Fi.current,e):ye(Fi,t.pool,e)}function cS(){var e=wg();return e===null?null:{parent:ra._currentValue,pool:e}}function dS(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function fS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pS(e,t,o){q.actQueue!==null&&(q.didUsePromise=!0);var r=e.thenables;if(o=r[o],o===void 0?r.push(t):o!==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(ps,ps),t=o),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var c={name:typeof r==="string"?r:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:c}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){c.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mS(e),e;default:if(typeof t.status==="string")t.then(ps,ps);else{if(e=At,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(f){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=f}},function(f){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=f}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mS(e),e}throw Vi=t,id=!0,fu}}function ur(e){try{return vD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Vi=t,id=!0,fu;throw t}}function hS(){if(Vi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Vi;return Vi=null,id=!1,e}function mS(e){if(e===fu||e===dh)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 _a(e){var t=Ge;return e!=null&&(Ge=t===null?e:t.concat(e)),t}function kg(){var e=Ge;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var o=e[t].debugTask;if(o!=null)return o}}return null}function Kf(e,t,o){for(var r=Object.keys(e.props),c=0;c<r.length;c++){var f=r[c];if(f!=="children"&&f!=="key"){t===null&&(t=jf(e,o.mode,0),t._debugInfo=Ge,t.return=o),me(t,function(m){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m)},f);break}}}function Jf(e){var t=ld;return ld+=1,pu===null&&(pu=dS()),pS(pu,e,t)}function fc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gS(e,t){if(t.$$typeof===J_)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 Af(e,t){var o=Km();o!==null?o.run(U0.bind(null,e,t)):U0(e,t)}function H0(e,t){var o=V(e)||"Component";W1[o]||(W1[o]=!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.
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 ep(e,t){var o=kg();o!==null?o.run(gS.bind(null,e,t)):gS(e,t)}function yS(e,t){var o=j(e)||"Component";kT[o]||(kT[o]=!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,o,t,o))}function kf(e,t){var o=Km();o!==null?o.run(H0.bind(null,e,t)):H0(e,t)}function F0(e,t){var o=V(e)||"Component";Z1[o]||(Z1[o]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,t,t,o,t,o))}function tp(e,t){var o=kg();o!==null?o.run(yS.bind(null,e,t)):yS(e,t)}function bS(e,t){var o=j(e)||"Component";MT[o]||(MT[o]=!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>`,o,t,o))}function Rf(e,t){var o=Km();o!==null?o.run(F0.bind(null,e,t)):F0(e,t)}function q0(e){function t(I,R){if(e){var E=I.deletions;E===null?(I.deletions=[R],I.flags|=16):E.push(R)}}function o(I,R){if(!e)return null;for(;R!==null;)t(I,R),R=R.sibling;return null}function i(I){for(var R=new Map;I!==null;)I.key!==null?R.set(I.key,I):R.set(I.index,I),I=I.sibling;return R}function u(I,R){return I=es(I,R),I.index=0,I.sibling=null,I}function d(I,R,E){if(I.index=E,!e)return I.flags|=1048576,R;if(E=I.alternate,E!==null)return E=E.index,E<R?(I.flags|=67108866,R):E;return I.flags|=67108866,R}function m(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function b(I,R,E,F){if(R===null||R.tag!==6)return R=Hm(E,I.mode,F),R.return=I,R._debugOwner=I,R._debugTask=I._debugTask,R._debugInfo=He,R;return R=u(R,E),R.return=I,R._debugInfo=He,R}function v(I,R,E,F){var oe=E.type;if(oe===Ir)return R=O(I,R,E.props.children,F,E.key),If(E,R,I),R;if(R!==null&&(R.elementType===oe||b0(R,E)||typeof oe==="object"&&oe!==null&&oe.$$typeof===vo&&Vs(oe)===R.type))return R=u(R,E.props),Fu(R,E),R.return=I,R._debugOwner=E._owner,R._debugInfo=He,R;return R=bf(E,I.mode,F),Fu(R,E),R.return=I,R._debugInfo=He,R}function L(I,R,E,F){if(R===null||R.tag!==4||R.stateNode.containerInfo!==E.containerInfo||R.stateNode.implementation!==E.implementation)return R=Fm(E,I.mode,F),R.return=I,R._debugInfo=He,R;return R=u(R,E.children||[]),R.return=I,R._debugInfo=He,R}function O(I,R,E,F,oe){if(R===null||R.tag!==7)return R=ol(E,I.mode,F,oe),R.return=I,R._debugOwner=I,R._debugTask=I._debugTask,R._debugInfo=He,R;return R=u(R,E),R.return=I,R._debugInfo=He,R}function P(I,R,E){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return R=Hm(""+R,I.mode,E),R.return=I,R._debugOwner=I,R._debugTask=I._debugTask,R._debugInfo=He,R;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case En:return E=bf(R,I.mode,E),Fu(E,R),E.return=I,I=ba(R._debugInfo),E._debugInfo=He,He=I,E;case wr:return R=Fm(R,I.mode,E),R.return=I,R._debugInfo=He,R;case vo:var F=ba(R._debugInfo);return R=Vs(R),I=P(I,R,E),He=F,I}if(na(R)||J(R))return E=ol(R,I.mode,E,null),E.return=I,E._debugOwner=I,E._debugTask=I._debugTask,I=ba(R._debugInfo),E._debugInfo=He,He=I,E;if(typeof R.then==="function")return F=ba(R._debugInfo),I=P(I,Mf(R),E),He=F,I;if(R.$$typeof===On)return P(I,Lf(I,R),E);Af(I,R)}return typeof R==="function"&&kf(I,R),typeof R==="symbol"&&Rf(I,R),null}function A(I,R,E,F){var oe=R!==null?R.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return oe!==null?null:b(I,R,""+E,F);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case En:return E.key===oe?(oe=ba(E._debugInfo),I=v(I,R,E,F),He=oe,I):null;case wr:return E.key===oe?L(I,R,E,F):null;case vo:return oe=ba(E._debugInfo),E=Vs(E),I=A(I,R,E,F),He=oe,I}if(na(E)||J(E)){if(oe!==null)return null;return oe=ba(E._debugInfo),I=O(I,R,E,F,null),He=oe,I}if(typeof E.then==="function")return oe=ba(E._debugInfo),I=A(I,R,Mf(E),F),He=oe,I;if(E.$$typeof===On)return A(I,R,Lf(I,E),F);Af(I,E)}return typeof E==="function"&&kf(I,E),typeof E==="symbol"&&Rf(I,E),null}function N(I,R,E,F,oe){if(typeof F==="string"&&F!==""||typeof F==="number"||typeof F==="bigint")return I=I.get(E)||null,b(R,I,""+F,oe);if(typeof F==="object"&&F!==null){switch(F.$$typeof){case En:return E=I.get(F.key===null?E:F.key)||null,I=ba(F._debugInfo),R=v(R,E,F,oe),He=I,R;case wr:return I=I.get(F.key===null?E:F.key)||null,L(R,I,F,oe);case vo:var Re=ba(F._debugInfo);return F=Vs(F),R=N(I,R,E,F,oe),He=Re,R}if(na(F)||J(F))return E=I.get(E)||null,I=ba(F._debugInfo),R=O(R,E,F,oe,null),He=I,R;if(typeof F.then==="function")return Re=ba(F._debugInfo),R=N(I,R,E,Mf(F),oe),He=Re,R;if(F.$$typeof===On)return N(I,R,E,Lf(R,F),oe);Af(R,F)}return typeof F==="function"&&kf(R,F),typeof F==="symbol"&&Rf(R,F),null}function te(I,R,E,F){if(typeof E!=="object"||E===null)return F;switch(E.$$typeof){case En:case wr:x(I,R,E);var oe=E.key;if(typeof oe!=="string")break;if(F===null){F=new Set,F.add(oe);break}if(!F.has(oe)){F.add(oe);break}ie(R,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.",oe)});break;case vo:E=Vs(E),te(I,R,E,F)}return F}function se(I,R,E,F){for(var oe=null,Re=null,xe=null,fe=R,Be=R=0,Mt=null;fe!==null&&Be<E.length;Be++){fe.index>Be?(Mt=fe,fe=null):Mt=fe.sibling;var Gt=A(I,fe,E[Be],F);if(Gt===null){fe===null&&(fe=Mt);break}oe=te(I,Gt,E[Be],oe),e&&fe&&Gt.alternate===null&&t(I,fe),R=d(Gt,R,Be),xe===null?Re=Gt:xe.sibling=Gt,xe=Gt,fe=Mt}if(Be===E.length)return o(I,fe),Ke&&ts(I,Be),Re;if(fe===null){for(;Be<E.length;Be++)fe=P(I,E[Be],F),fe!==null&&(oe=te(I,fe,E[Be],oe),R=d(fe,R,Be),xe===null?Re=fe:xe.sibling=fe,xe=fe);return Ke&&ts(I,Be),Re}for(fe=i(fe);Be<E.length;Be++)Mt=N(fe,I,Be,E[Be],F),Mt!==null&&(oe=te(I,Mt,E[Be],oe),e&&Mt.alternate!==null&&fe.delete(Mt.key===null?Be:Mt.key),R=d(Mt,R,Be),xe===null?Re=Mt:xe.sibling=Mt,xe=Mt);return e&&fe.forEach(function(Cs){return t(I,Cs)}),Ke&&ts(I,Be),Re}function Ct(I,R,E,F){if(E==null)throw Error("An iterable object provided no iterator.");for(var oe=null,Re=null,xe=R,fe=R=0,Be=null,Mt=null,Gt=E.next();xe!==null&&!Gt.done;fe++,Gt=E.next()){xe.index>fe?(Be=xe,xe=null):Be=xe.sibling;var Cs=A(I,xe,Gt.value,F);if(Cs===null){xe===null&&(xe=Be);break}Mt=te(I,Cs,Gt.value,Mt),e&&xe&&Cs.alternate===null&&t(I,xe),R=d(Cs,R,fe),Re===null?oe=Cs:Re.sibling=Cs,Re=Cs,xe=Be}if(Gt.done)return o(I,xe),Ke&&ts(I,fe),oe;if(xe===null){for(;!Gt.done;fe++,Gt=E.next())xe=P(I,Gt.value,F),xe!==null&&(Mt=te(I,xe,Gt.value,Mt),R=d(xe,R,fe),Re===null?oe=xe:Re.sibling=xe,Re=xe);return Ke&&ts(I,fe),oe}for(xe=i(xe);!Gt.done;fe++,Gt=E.next())Be=N(xe,I,fe,Gt.value,F),Be!==null&&(Mt=te(I,Be,Gt.value,Mt),e&&Be.alternate!==null&&xe.delete(Be.key===null?fe:Be.key),R=d(Be,R,fe),Re===null?oe=Be:Re.sibling=Be,Re=Be);return e&&xe.forEach(function(XD){return t(I,XD)}),Ke&&ts(I,fe),oe}function tt(I,R,E,F){if(typeof E==="object"&&E!==null&&E.type===Ir&&E.key===null&&(If(E,null,I),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case En:var oe=ba(E._debugInfo);e:{for(var Re=E.key;R!==null;){if(R.key===Re){if(Re=E.type,Re===Ir){if(R.tag===7){o(I,R.sibling),F=u(R,E.props.children),F.return=I,F._debugOwner=E._owner,F._debugInfo=He,If(E,F,I),I=F;break e}}else if(R.elementType===Re||b0(R,E)||typeof Re==="object"&&Re!==null&&Re.$$typeof===vo&&Vs(Re)===R.type){o(I,R.sibling),F=u(R,E.props),Fu(F,E),F.return=I,F._debugOwner=E._owner,F._debugInfo=He,I=F;break e}o(I,R);break}else t(I,R);R=R.sibling}E.type===Ir?(F=ol(E.props.children,I.mode,F,E.key),F.return=I,F._debugOwner=I,F._debugTask=I._debugTask,F._debugInfo=He,If(E,F,I),I=F):(F=bf(E,I.mode,F),Fu(F,E),F.return=I,F._debugInfo=He,I=F)}return I=m(I),He=oe,I;case wr:e:{oe=E;for(E=oe.key;R!==null;){if(R.key===E)if(R.tag===4&&R.stateNode.containerInfo===oe.containerInfo&&R.stateNode.implementation===oe.implementation){o(I,R.sibling),F=u(R,oe.children||[]),F.return=I,I=F;break e}else{o(I,R);break}else t(I,R);R=R.sibling}F=Fm(oe,I.mode,F),F.return=I,I=F}return m(I);case vo:return oe=ba(E._debugInfo),E=Vs(E),I=tt(I,R,E,F),He=oe,I}if(na(E))return oe=ba(E._debugInfo),I=se(I,R,E,F),He=oe,I;if(J(E)){if(oe=ba(E._debugInfo),Re=J(E),typeof Re!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var xe=Re.call(E);if(xe===E){if(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(xe)!=="[object Generator]")X1||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."),X1=!0}else E.entries!==Re||bb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bb=!0);return I=Ct(I,R,xe,F),He=oe,I}if(typeof E.then==="function")return oe=ba(E._debugInfo),I=tt(I,R,Mf(E),F),He=oe,I;if(E.$$typeof===On)return tt(I,R,Lf(I,E),F);Af(I,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return oe=""+E,R!==null&&R.tag===6?(o(I,R.sibling),F=u(R,oe),F.return=I,I=F):(o(I,R),F=Hm(oe,I.mode,F),F.return=I,F._debugOwner=I,F._debugTask=I._debugTask,F._debugInfo=He,I=F),m(I);return typeof E==="function"&&kf(I,E),typeof E==="symbol"&&Rf(I,E),o(I,R)}return function(I,R,E,F){var oe=He;He=null;try{Nc=0;var Re=tt(I,R,E,F);return Yr=null,Re}catch(Mt){if(Mt===Gr||Mt===Uh)throw Mt;var xe=S(29,Mt,null,I.mode);xe.lanes=F,xe.return=I;var fe=xe._debugInfo=He;if(xe._debugOwner=I._debugOwner,xe._debugTask=I._debugTask,fe!=null){for(var Be=fe.length-1;0<=Be;Be--)if(typeof fe[Be].stack==="string"){xe._debugOwner=fe[Be],xe._debugTask=fe[Be].debugTask;break}}return xe}finally{He=oe}}}function V0(e,t){var o=na(e);return e=!o&&typeof J(e)==="function",o||e?(o=o?"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>",o,t,o),!1):!0}function Jm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eg(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 js(e){return{lane:e,tag:K1,payload:null,callback:null,next:null}}function Gs(e,t,o){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,vb===i&&!tT){var u=V(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>`,o,t,o))}function ap(e,t){var o=kg();o!==null?o.run(bS.bind(null,e,t)):bS(e,t)}function xS(e){function t(R,D){if(e){var E=R.deletions;E===null?(R.deletions=[D],R.flags|=16):E.push(D)}}function o(R,D){if(!e)return null;for(;D!==null;)t(R,D),D=D.sibling;return null}function r(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function c(R,D){return R=hs(R,D),R.index=0,R.sibling=null,R}function f(R,D,E){if(R.index=E,!e)return R.flags|=1048576,D;if(E=R.alternate,E!==null)return E=E.index,E<D?(R.flags|=67108866,D):E;return R.flags|=67108866,D}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function x(R,D,E,Z){if(D===null||D.tag!==6)return D=hg(E,R.mode,Z),D.return=R,D._debugOwner=R,D._debugTask=R._debugTask,D._debugInfo=Ge,D;return D=c(D,E),D.return=R,D._debugInfo=Ge,D}function S(R,D,E,Z){var ce=E.type;if(ce===Yl)return D=O(R,D,E.props.children,Z,E.key),Kf(E,D,R),D;if(D!==null&&(D.elementType===ce||W0(D,E)||typeof ce==="object"&&ce!==null&&ce.$$typeof===_o&&ur(ce)===D.type))return D=c(D,E.props),fc(D,E),D.return=R,D._debugOwner=E._owner,D._debugInfo=Ge,D;return D=jf(E,R.mode,Z),fc(D,E),D.return=R,D._debugInfo=Ge,D}function L(R,D,E,Z){if(D===null||D.tag!==4||D.stateNode.containerInfo!==E.containerInfo||D.stateNode.implementation!==E.implementation)return D=mg(E,R.mode,Z),D.return=R,D._debugInfo=Ge,D;return D=c(D,E.children||[]),D.return=R,D._debugInfo=Ge,D}function O(R,D,E,Z,ce){if(D===null||D.tag!==7)return D=Ci(E,R.mode,Z,ce),D.return=R,D._debugOwner=R,D._debugTask=R._debugTask,D._debugInfo=Ge,D;return D=c(D,E),D.return=R,D._debugInfo=Ge,D}function P(R,D,E){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=hg(""+D,R.mode,E),D.return=R,D._debugOwner=R,D._debugTask=R._debugTask,D._debugInfo=Ge,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case jn:return E=jf(D,R.mode,E),fc(E,D),E.return=R,R=_a(D._debugInfo),E._debugInfo=Ge,Ge=R,E;case Xl:return D=mg(D,R.mode,E),D.return=R,D._debugInfo=Ge,D;case _o:var Z=_a(D._debugInfo);return D=ur(D),R=P(R,D,E),Ge=Z,R}if(ha(D)||X(D))return E=Ci(D,R.mode,E,null),E.return=R,E._debugOwner=R,E._debugTask=R._debugTask,R=_a(D._debugInfo),E._debugInfo=Ge,Ge=R,E;if(typeof D.then==="function")return Z=_a(D._debugInfo),R=P(R,Jf(D),E),Ge=Z,R;if(D.$$typeof===Gn)return P(R,$f(R,D),E);ep(R,D)}return typeof D==="function"&&tp(R,D),typeof D==="symbol"&&ap(R,D),null}function _(R,D,E,Z){var ce=D!==null?D.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ce!==null?null:x(R,D,""+E,Z);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case jn:return E.key===ce?(ce=_a(E._debugInfo),R=S(R,D,E,Z),Ge=ce,R):null;case Xl:return E.key===ce?L(R,D,E,Z):null;case _o:return ce=_a(E._debugInfo),E=ur(E),R=_(R,D,E,Z),Ge=ce,R}if(ha(E)||X(E)){if(ce!==null)return null;return ce=_a(E._debugInfo),R=O(R,D,E,Z,null),Ge=ce,R}if(typeof E.then==="function")return ce=_a(E._debugInfo),R=_(R,D,Jf(E),Z),Ge=ce,R;if(E.$$typeof===Gn)return _(R,D,$f(R,E),Z);ep(R,E)}return typeof E==="function"&&tp(R,E),typeof E==="symbol"&&ap(R,E),null}function U(R,D,E,Z,ce){if(typeof Z==="string"&&Z!==""||typeof Z==="number"||typeof Z==="bigint")return R=R.get(E)||null,x(D,R,""+Z,ce);if(typeof Z==="object"&&Z!==null){switch(Z.$$typeof){case jn:return E=R.get(Z.key===null?E:Z.key)||null,R=_a(Z._debugInfo),D=S(D,E,Z,ce),Ge=R,D;case Xl:return R=R.get(Z.key===null?E:Z.key)||null,L(D,R,Z,ce);case _o:var Be=_a(Z._debugInfo);return Z=ur(Z),D=U(R,D,E,Z,ce),Ge=Be,D}if(ha(Z)||X(Z))return E=R.get(E)||null,R=_a(Z._debugInfo),D=O(D,E,Z,ce,null),Ge=R,D;if(typeof Z.then==="function")return Be=_a(Z._debugInfo),D=U(R,D,E,Jf(Z),ce),Ge=Be,D;if(Z.$$typeof===Gn)return U(R,D,E,$f(D,Z),ce);ep(D,Z)}return typeof Z==="function"&&tp(D,Z),typeof Z==="symbol"&&ap(D,Z),null}function ie(R,D,E,Z){if(typeof E!=="object"||E===null)return Z;switch(E.$$typeof){case jn:case Xl:b(R,D,E);var ce=E.key;if(typeof ce!=="string")break;if(Z===null){Z=new Set,Z.add(ce);break}if(!Z.has(ce)){Z.add(ce);break}me(D,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.",ce)});break;case _o:E=ur(E),ie(R,D,E,Z)}return Z}function he(R,D,E,Z){for(var ce=null,Be=null,Ie=null,Le=D,Fe=D=0,Nt=null;Le!==null&&Fe<E.length;Fe++){Le.index>Fe?(Nt=Le,Le=null):Nt=Le.sibling;var oa=_(R,Le,E[Fe],Z);if(oa===null){Le===null&&(Le=Nt);break}ce=ie(R,oa,E[Fe],ce),e&&Le&&oa.alternate===null&&t(R,Le),D=f(oa,D,Fe),Ie===null?Be=oa:Ie.sibling=oa,Ie=oa,Le=Nt}if(Fe===E.length)return o(R,Le),at&&ms(R,Fe),Be;if(Le===null){for(;Fe<E.length;Fe++)Le=P(R,E[Fe],Z),Le!==null&&(ce=ie(R,Le,E[Fe],ce),D=f(Le,D,Fe),Ie===null?Be=Le:Ie.sibling=Le,Ie=Le);return at&&ms(R,Fe),Be}for(Le=r(Le);Fe<E.length;Fe++)Nt=U(Le,R,Fe,E[Fe],Z),Nt!==null&&(ce=ie(R,Nt,E[Fe],ce),e&&Nt.alternate!==null&&Le.delete(Nt.key===null?Fe:Nt.key),D=f(Nt,D,Fe),Ie===null?Be=Nt:Ie.sibling=Nt,Ie=Nt);return e&&Le.forEach(function(Ns){return t(R,Ns)}),at&&ms(R,Fe),Be}function Et(R,D,E,Z){if(E==null)throw Error("An iterable object provided no iterator.");for(var ce=null,Be=null,Ie=D,Le=D=0,Fe=null,Nt=null,oa=E.next();Ie!==null&&!oa.done;Le++,oa=E.next()){Ie.index>Le?(Fe=Ie,Ie=null):Fe=Ie.sibling;var Ns=_(R,Ie,oa.value,Z);if(Ns===null){Ie===null&&(Ie=Fe);break}Nt=ie(R,Ns,oa.value,Nt),e&&Ie&&Ns.alternate===null&&t(R,Ie),D=f(Ns,D,Le),Be===null?ce=Ns:Be.sibling=Ns,Be=Ns,Ie=Fe}if(oa.done)return o(R,Ie),at&&ms(R,Le),ce;if(Ie===null){for(;!oa.done;Le++,oa=E.next())Ie=P(R,oa.value,Z),Ie!==null&&(Nt=ie(R,Ie,oa.value,Nt),D=f(Ie,D,Le),Be===null?ce=Ie:Be.sibling=Ie,Be=Ie);return at&&ms(R,Le),ce}for(Ie=r(Ie);!oa.done;Le++,oa=E.next())Fe=U(Ie,R,Le,oa.value,Z),Fe!==null&&(Nt=ie(R,Fe,oa.value,Nt),e&&Fe.alternate!==null&&Ie.delete(Fe.key===null?Le:Fe.key),D=f(Fe,D,Le),Be===null?ce=Fe:Be.sibling=Fe,Be=Fe);return e&&Ie.forEach(function(jD){return t(R,jD)}),at&&ms(R,Le),ce}function st(R,D,E,Z){if(typeof E==="object"&&E!==null&&E.type===Yl&&E.key===null&&(Kf(E,null,R),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case jn:var ce=_a(E._debugInfo);e:{for(var Be=E.key;D!==null;){if(D.key===Be){if(Be=E.type,Be===Yl){if(D.tag===7){o(R,D.sibling),Z=c(D,E.props.children),Z.return=R,Z._debugOwner=E._owner,Z._debugInfo=Ge,Kf(E,Z,R),R=Z;break e}}else if(D.elementType===Be||W0(D,E)||typeof Be==="object"&&Be!==null&&Be.$$typeof===_o&&ur(Be)===D.type){o(R,D.sibling),Z=c(D,E.props),fc(Z,E),Z.return=R,Z._debugOwner=E._owner,Z._debugInfo=Ge,R=Z;break e}o(R,D);break}else t(R,D);D=D.sibling}E.type===Yl?(Z=Ci(E.props.children,R.mode,Z,E.key),Z.return=R,Z._debugOwner=R,Z._debugTask=R._debugTask,Z._debugInfo=Ge,Kf(E,Z,R),R=Z):(Z=jf(E,R.mode,Z),fc(Z,E),Z.return=R,Z._debugInfo=Ge,R=Z)}return R=m(R),Ge=ce,R;case Xl:e:{ce=E;for(E=ce.key;D!==null;){if(D.key===E)if(D.tag===4&&D.stateNode.containerInfo===ce.containerInfo&&D.stateNode.implementation===ce.implementation){o(R,D.sibling),Z=c(D,ce.children||[]),Z.return=R,R=Z;break e}else{o(R,D);break}else t(R,D);D=D.sibling}Z=mg(ce,R.mode,Z),Z.return=R,R=Z}return m(R);case _o:return ce=_a(E._debugInfo),E=ur(E),R=st(R,D,E,Z),Ge=ce,R}if(ha(E))return ce=_a(E._debugInfo),R=he(R,D,E,Z),Ge=ce,R;if(X(E)){if(ce=_a(E._debugInfo),Be=X(E),typeof Be!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ie=Be.call(E);if(Ie===E){if(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ie)!=="[object Generator]")TT||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."),TT=!0}else E.entries!==Be||Xb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xb=!0);return R=Et(R,D,Ie,Z),Ge=ce,R}if(typeof E.then==="function")return ce=_a(E._debugInfo),R=st(R,D,Jf(E),Z),Ge=ce,R;if(E.$$typeof===Gn)return st(R,D,$f(R,E),Z);ep(R,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ce=""+E,D!==null&&D.tag===6?(o(R,D.sibling),Z=c(D,ce),Z.return=R,R=Z):(o(R,D),Z=hg(ce,R.mode,Z),Z.return=R,Z._debugOwner=R,Z._debugTask=R._debugTask,Z._debugInfo=Ge,R=Z),m(R);return typeof E==="function"&&tp(R,E),typeof E==="symbol"&&ap(R,E),o(R,D)}return function(R,D,E,Z){var ce=Ge;Ge=null;try{ld=0;var Be=st(R,D,E,Z);return pu=null,Be}catch(Nt){if(Nt===fu||Nt===dh)throw Nt;var Ie=v(29,Nt,null,R.mode);Ie.lanes=Z,Ie.return=R;var Le=Ie._debugInfo=Ge;if(Ie._debugOwner=R._debugOwner,Ie._debugTask=R._debugTask,Le!=null){for(var Fe=Le.length-1;0<=Fe;Fe--)if(typeof Le[Fe].stack==="string"){Ie._debugOwner=Le[Fe],Ie._debugTask=Le[Fe].debugTask;break}}return Ie}finally{Ge=ce}}}function vS(e,t){var o=ha(e);return e=!o&&typeof X(e)==="function",o||e?(o=o?"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>",o,t,o),!1):!0}function Mg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ig(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 cr(e){return{lane:e,tag:AT,payload:null,callback:null,next:null}}function dr(e,t,o){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$b===r&&!DT){var c=j(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`,u),tT=!0}if((ot&ia)!==pa)return u=i.pending,u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=yf(e),y0(e,null,o),t;return gf(e,i,t,o),yf(e)}function qu(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,o|=i,t.lanes=o,Zi(e,o)}}function _f(e,t){var{updateQueue:o,alternate:i}=e;if(i!==null&&(i=i.updateQueue,o===i)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var m={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?u=d=m:d=d.next=m,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function Vu(){if(Sb){var e=jr;if(e!==null)throw e}}function ju(e,t,o,i){Sb=!1;var u=e.updateQueue;fi=!1,vb=u.shared;var{firstBaseUpdate:d,lastBaseUpdate:m}=u,b=u.shared.pending;if(b!==null){u.shared.pending=null;var v=b,L=v.next;v.next=null,m===null?d=L:m.next=L,m=v;var O=e.alternate;O!==null&&(O=O.updateQueue,b=O.lastBaseUpdate,b!==m&&(b===null?O.firstBaseUpdate=L:b.next=L,O.lastBaseUpdate=v))}if(d!==null){var P=u.baseState;m=0,O=L=v=null,b=d;do{var A=b.lane&-536870913,N=A!==b.lane;if(N?(Fe&A)===A:(i&A)===A){A!==0&&A===vl&&(Sb=!0),O!==null&&(O=O.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{A=e;var te=b,se=t,Ct=o;switch(te.tag){case J1:if(te=te.payload,typeof te==="function"){qr=!0;var tt=te.call(Ct,P,se);if(A.mode&Da){St(!0);try{te.call(Ct,P,se)}finally{St(!1)}}qr=!1,P=tt;break e}P=te;break e;case xb:A.flags=A.flags&-65537|128;case K1:if(tt=te.payload,typeof tt==="function"){if(qr=!0,te=tt.call(Ct,P,se),A.mode&Da){St(!0);try{tt.call(Ct,P,se)}finally{St(!1)}}qr=!1}else te=tt;if(te===null||te===void 0)break e;P=Xe({},P,te);break e;case eT:fi=!0}}A=b.callback,A!==null&&(e.flags|=64,N&&(e.flags|=8192),N=u.callbacks,N===null?u.callbacks=[A]:N.push(A))}else N={lane:A,tag:b.tag,payload:b.payload,callback:b.callback,next:null},O===null?(L=O=N,v=P):O=O.next=N,m|=A;if(b=b.next,b===null)if(b=u.shared.pending,b===null)break;else N=b,b=N.next,N.next=null,u.lastBaseUpdate=N,u.shared.pending=null}while(1);O===null&&(v=P),u.baseState=v,u.firstBaseUpdate=L,u.lastBaseUpdate=O,d===null&&(u.shared.lanes=0),mi|=m,e.lanes=m,e.memoizedState=P}vb=null}function j0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Fk(e,t){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)j0(o[e],t)}function G0(e,t){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)j0(o[e],t)}function Y0(e,t){var o=jn;we(Fh,o,e),we(Xr,t,e),jn=o|t.baseLanes}function tg(e){we(Fh,jn,e),we(Xr,Xr.current,e)}function ag(e){jn=Fh.current,Le(Xr,e),Le(Fh,e)}function Ys(e){var t=e.alternate;we(jt,jt.current&$r,e),we(To,e,e),Fo===null&&(t===null||Xr.current!==null?Fo=e:t.memoizedState!==null&&(Fo=e))}function og(e){we(jt,jt.current,e),we(To,e,e),Fo===null&&(Fo=e)}function X0(e){e.tag===22?(we(jt,jt.current,e),we(To,e,e),Fo===null&&(Fo=e)):Xs(e)}function Xs(e){we(jt,jt.current,e),we(To,To.current,e)}function yo(e){Le(To,e),Fo===e&&(Fo=null),Le(jt,e)}function Df(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||gy(o)||yy(o)))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 Ye(){var e=z;Vo===null?Vo=[e]:Vo.push(e)}function j(){var e=z;if(Vo!==null&&(bs++,Vo[bs]!==e)){var t=V(ke);if(!aT.has(t)&&(aT.add(t),Vo!==null)){for(var o="",i=0;i<=bs;i++){var u=Vo[i],d=i===bs?e:u;for(u=i+1+". "+u;30>u.length;)u+=" ";u+=d+`
103
- `,o+=u}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
102
+ Please update the following component: %s`,c),DT=!0}if((ct&ga)!==wa)return c=r.pending,c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=Vf(e),$0(e,null,o),t;return qf(e,r,t,o),Vf(e)}function pc(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,o|=r,t.lanes=o,gi(e,o)}}function op(e,t){var{updateQueue:o,alternate:r}=e;if(r!==null&&(r=r.updateQueue,o===r)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var m={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};f===null?c=f=m:f=f.next=m,o=o.next}while(o!==null);f===null?c=f=t:f=f.next=t}else c=f=t;o={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:r.shared,callbacks:r.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function hc(){if(Wb){var e=du;if(e!==null)throw e}}function mc(e,t,o,r){Wb=!1;var c=e.updateQueue;Dr=!1,$b=c.shared;var{firstBaseUpdate:f,lastBaseUpdate:m}=c,x=c.shared.pending;if(x!==null){c.shared.pending=null;var S=x,L=S.next;S.next=null,m===null?f=L:m.next=L,m=S;var O=e.alternate;O!==null&&(O=O.updateQueue,x=O.lastBaseUpdate,x!==m&&(x===null?O.firstBaseUpdate=L:x.next=L,O.lastBaseUpdate=S))}if(f!==null){var P=c.baseState;m=0,O=L=S=null,x=f;do{var _=x.lane&-536870913,U=_!==x.lane;if(U?(Xe&_)===_:(r&_)===_){_!==0&&_===Ui&&(Wb=!0),O!==null&&(O=O.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{_=e;var ie=x,he=t,Et=o;switch(ie.tag){case RT:if(ie=ie.payload,typeof ie==="function"){uu=!0;var st=ie.call(Et,P,he);if(_.mode&ja){_t(!0);try{ie.call(Et,P,he)}finally{_t(!1)}}uu=!1,P=st;break e}P=ie;break e;case Yb:_.flags=_.flags&-65537|128;case AT:if(st=ie.payload,typeof st==="function"){if(uu=!0,ie=st.call(Et,P,he),_.mode&ja){_t(!0);try{st.call(Et,P,he)}finally{_t(!1)}}uu=!1}else ie=st;if(ie===null||ie===void 0)break e;P=Ze({},P,ie);break e;case _T:Dr=!0}}_=x.callback,_!==null&&(e.flags|=64,U&&(e.flags|=8192),U=c.callbacks,U===null?c.callbacks=[_]:U.push(_))}else U={lane:_,tag:x.tag,payload:x.payload,callback:x.callback,next:null},O===null?(L=O=U,S=P):O=O.next=U,m|=_;if(x=x.next,x===null)if(x=c.shared.pending,x===null)break;else U=x,x=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}while(1);O===null&&(S=P),c.baseState=S,c.firstBaseUpdate=L,c.lastBaseUpdate=O,f===null&&(c.shared.lanes=0),Pr|=m,e.lanes=m,e.memoizedState=P}$b=null}function SS(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zR(e,t){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)SS(o[e],t)}function LS(e,t){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)SS(o[e],t)}function CS(e,t){var o=ts;ye(ph,o,e),ye(hu,t,e),ts=o|t.baseLanes}function Ag(e){ye(ph,ts,e),ye(hu,hu.current,e)}function Rg(e){ts=ph.current,ge(hu,e),ge(ph,e)}function fr(e){var t=e.alternate;ye(aa,aa.current&mu,e),ye(Po,e,e),Ko===null&&(t===null||hu.current!==null?Ko=e:t.memoizedState!==null&&(Ko=e))}function _g(e){ye(aa,aa.current,e),ye(Po,e,e),Ko===null&&(Ko=e)}function TS(e){e.tag===22?(ye(aa,aa.current,e),ye(Po,e,e),Ko===null&&(Ko=e)):pr(e)}function pr(e){ye(aa,aa.current,e),ye(Po,Po.current,e)}function Io(e){ge(Po,e),Ko===e&&(Ko=null),ge(aa,e)}function np(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||jy(o)||Gy(o)))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 We(){var e=F;en===null?en=[e]:en.push(e)}function ae(){var e=F;if(en!==null&&(Ds++,en[Ds]!==e)){var t=j(Pe);if(!ET.has(t)&&(ET.add(t),en!==null)){for(var o="",r=0;r<=Ds;r++){var c=en[r],f=r===Ds?e:c;for(c=r+1+". "+c;30>c.length;)c+=" ";c+=f+`
103
+ `,o+=c}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,o)}}}function fr(e){e===void 0||e===null||na(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.",z,typeof e)}function Ef(){var e=V(ke);nT.has(e)||(nT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function qt(){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:
108
+ `,t,o)}}}function El(e){e===void 0||e===null||ha(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.",F,typeof e)}function sp(){var e=j(Pe);PT.has(e)||(PT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ea(){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 ng(e,t){if(Hc)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.",z),!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.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Dg(e,t){if(dd)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.",F),!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`,z,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<t.length&&o<e.length;o++)if(!Ha(e[o],t[o]))return!1;return!0}function sg(e,t,o,i,u,d){if(gs=d,ke=t,Vo=e!==null?e._debugHookTypes:null,bs=-1,Hc=e!==null&&e.type!==t.type,Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")d=V(ke),Lb.has(d)||(Lb.add(d),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.",d===null?"An unknown Component":"<"+d+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e!==null&&e.memoizedState!==null?Tb:Vo!==null?sT:Cb,wl=d=(t.mode&Da)!==Ae;var m=mb(o,i,u);if(wl=!1,Zr&&(m=ig(t,o,i,u)),d){St(!0);try{m=ig(t,o,i,u)}finally{St(!1)}}return $0(e,t),m}function $0(e,t){t._debugHookTypes=Vo,t.dependencies===null?ys!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ys}):t.dependencies._debugThenableState=ys,H.H=Fc;var o=bt!==null&&bt.next!==null;if(gs=0,Vo=z=Kt=bt=ke=null,bs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Vh=!1,Uc=0,ys=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Jt||(e=e.dependencies,e!==null&&Sf(e)&&(Jt=!0)),Bc?(Bc=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",oT.has(t)||Lb.has(t)||(oT.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 ig(e,t,o,i){ke=e;var u=0;do{if(Zr&&(ys=null),Uc=0,Zr=!1,u>=wD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(u+=1,Hc=!1,Kt=bt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}bs=-1,H.H=iT,d=mb(t,o,i)}while(Zr);return d}function qk(){var e=H.H,t=e.useState()[0];return t=typeof t.then==="function"?Gu(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(ke.flags|=1024),t}function lg(){var e=jh!==0;return jh=0,e}function rg(e,t,o){t.updateQueue=e.updateQueue,t.flags=(t.mode&ln)!==Ae?t.flags&-402655237:t.flags&-2053,e.lanes&=~o}function ug(e){if(Vh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vh=!1}gs=0,Vo=Kt=bt=ke=null,bs=-1,z=null,Zr=!1,Uc=jh=0,ys=null}function Ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?ke.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function ft(){if(bt===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Kt===null?ke.memoizedState:Kt.next;if(t!==null)Kt=t,bt=e;else{if(e===null){if(ke.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.")}bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Kt===null?ke.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Of(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gu(e){var t=Uc;return Uc+=1,ys===null&&(ys=O0()),e=B0(ys,e,t),t=ke,(Kt===null?t.memoizedState:Kt.next)===null&&(t=t.alternate,H.H=t!==null&&t.memoizedState!==null?Tb:Cb),e}function $s(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Gu(e);if(e.$$typeof===On)return _t(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function rl(e){var t=null,o=ke.updateQueue;if(o!==null&&(t=o.memoCache),t==null){var i=ke.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),o===null&&(o=Of(),ke.updateQueue=o),o.memoCache=t,o=t.data[t.index],o===void 0||Hc)for(o=t.data[t.index]=Array(e),i=0;i<e;i++)o[i]=o_;else o.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.",o.length,e);return t.index++,o}function an(e,t){return typeof t==="function"?t(e):t}function cg(e,t,o){var i=Ba();if(o!==void 0){var u=o(t);if(wl){St(!0);try{o(t)}finally{St(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=Xk.bind(null,ke,e),[i.memoizedState,e]}function hr(e){var t=ft();return dg(t,bt,e)}function dg(e,t,o){var i=e.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=o;var u=e.baseQueue,d=i.pending;if(d!==null){if(u!==null){var m=u.next;u.next=d.next,d.next=m}t.baseQueue!==u&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=u=d,i.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var b=m=null,v=null,L=t,O=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Fe&P)===P:(gs&P)===P){var A=L.revertLane;if(A===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===vl&&(O=!0);else if((gs&A)===A){L=L.next,A===vl&&(O=!0);continue}else P={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},v===null?(b=v=P,m=d):v=v.next=P,ke.lanes|=A,mi|=A;P=L.action,wl&&o(d,P),d=L.hasEagerState?L.eagerState:o(d,P)}else A={lane:P,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},v===null?(b=v=A,m=d):v=v.next=A,ke.lanes|=P,mi|=P;L=L.next}while(L!==null&&L!==t);if(v===null?m=d:v.next=b,!Ha(d,e.memoizedState)&&(Jt=!0,O&&(o=jr,o!==null)))throw o;e.memoizedState=d,e.baseState=m,e.baseQueue=v,i.lastRenderedState=d}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Yu(e){var t=ft(),o=t.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=e;var{dispatch:i,pending:u}=o,d=t.memoizedState;if(u!==null){o.pending=null;var m=u=u.next;do d=e(d,m.action),m=m.next;while(m!==u);Ha(d,t.memoizedState)||(Jt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,i]}function fg(e,t,o){var i=ke,u=Ba();if(Ke){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=o();Wr||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Wr=!0)}else{if(d=t(),Wr||(o=t(),Ha(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wr=!0)),xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Fe&127)!==0||W0(i,t,d)}return u.memoizedState=d,o={value:d,getSnapshot:t},u.queue=o,zf(Q0.bind(null,i,o,e),[e]),i.flags|=2048,mr(qo|Va,{destroy:void 0},Z0.bind(null,i,o,d,t),null),d}function Pf(e,t,o){var i=ke,u=ft(),d=Ke;if(d){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=t(),!Wr){var m=t();Ha(o,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wr=!0)}if(m=!Ha((bt||u).memoizedState,o))u.memoizedState=o,Jt=!0;u=u.queue;var b=Q0.bind(null,i,u,e);if(Ya(2048,Va,b,[e]),u.getSnapshot!==t||m||Kt!==null&&Kt.memoizedState.tag&qo){if(i.flags|=2048,mr(qo|Va,{destroy:void 0},Z0.bind(null,i,u,o,t),null),xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(gs&127)!==0||W0(i,t,o)}return o}function W0(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=ke.updateQueue,t===null?(t=Of(),ke.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Z0(e,t,o,i){t.value=o,t.getSnapshot=i,K0(t)&&J0(e)}function Q0(e,t,o){return o(function(){K0(t)&&(vn(2,"updateSyncExternalStore()",e),J0(e))})}function K0(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Ha(e,o)}catch(i){return!0}}function J0(e){var t=Ra(e,2);t!==null&&Nt(t,e,2)}function hg(e){var t=Ba();if(typeof e==="function"){var o=e;if(e=o(),wl){St(!0);try{o()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:e},t}function pg(e){e=hg(e);var t=e.queue,o=bS.bind(null,ke,t);return t.dispatch=o,[e.memoizedState,o]}function mg(e){var t=Ba();t.memoizedState=t.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=o,t=kg.bind(null,ke,!0,o),o.dispatch=t,[e,t]}function eS(e,t){var o=ft();return tS(o,bt,e,t)}function tS(e,t,o,i){return e.baseState=o,dg(e,bt,typeof i==="function"?i:an)}function aS(e,t){var o=ft();if(bt!==null)return tS(o,bt,e,t);return o.baseState=e,[e,o.queue.dispatch]}function Vk(e,t,o,i,u){if(jf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){d.listeners.push(m)}};H.T!==null?o(!0):d.isTransition=!1,i(d),o=t.pending,o===null?(d.next=t.pending=d,oS(t,d)):(d.next=o.next,t.pending=o.next=d)}}function oS(e,t){var{action:o,payload:i}=t,u=e.state;if(t.isTransition){var d=H.T,m={};m._updatedFibers=new Set,H.T=m;try{var b=o(u,i),v=H.S;v!==null&&v(m,b),nS(e,t,b)}catch(L){gg(e,t,L)}finally{d!==null&&m.types!==null&&(d.types!==null&&d.types!==m.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."),d.types=m.types),H.T=d,d===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._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{m=o(u,i),nS(e,t,m)}catch(L){gg(e,t,L)}}function nS(e,t,o){o!==null&&typeof o==="object"&&typeof o.then==="function"?(H.asyncTransitions++,o.then(Vf,Vf),o.then(function(i){sS(e,t,i)},function(i){return gg(e,t,i)}),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.")):sS(e,t,o)}function sS(e,t,o){t.status="fulfilled",t.value=o,iS(t),e.state=o,t=e.pending,t!==null&&(o=t.next,o===t?e.pending=null:(o=o.next,t.next=o,oS(e,o)))}function gg(e,t,o){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=o,iS(t),t=t.next;while(t!==i)}e.action=null}function iS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lS(e,t){return t}function pr(e,t){if(Ke){var o=xt.formState;if(o!==null){e:{var i=ke;if(Ke){if(It){t:{var u=It;for(var d=Uo;u.nodeType!==8;){if(!d){u=null;break t}if(u=xo(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d===Xb||d===GT?u:null}if(u){It=xo(u.nextSibling),i=u.data===Xb;break e}}Fs(i)}i=!1}i&&(t=o[0])}}return o=Ba(),o.memoizedState=o.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lS,lastRenderedState:t},o.queue=i,o=bS.bind(null,ke,i),i.dispatch=o,i=hg(!1),d=kg.bind(null,ke,!1,i.queue),i=Ba(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,o=Vk.bind(null,ke,u,d,o),u.dispatch=o,i.memoizedState=e,[t,o,!1]}function Bf(e){var t=ft();return rS(t,bt,e)}function rS(e,t,o){if(t=dg(e,t,lS)[0],e=hr(an)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var i=Gu(t)}catch(m){if(m===Gr)throw Uh;throw m}else i=t;t=ft();var u=t.queue,d=u.dispatch;return o!==t.memoizedState&&(ke.flags|=2048,mr(qo|Va,{destroy:void 0},jk.bind(null,u,o),null)),[i,d,e]}function jk(e,t){e.action=t}function Nf(e){var t=ft(),o=bt;if(o!==null)return rS(t,o,e);ft(),t=t.memoizedState,o=ft();var i=o.queue.dispatch;return o.memoizedState=e,[t,i,!1]}function mr(e,t,o,i){return e={tag:e,create:o,deps:i,inst:t,next:null},t=ke.updateQueue,t===null&&(t=Of(),ke.updateQueue=t),o=t.lastEffect,o===null?t.lastEffect=e.next=e:(i=o.next,o.next=e,e.next=i,t.lastEffect=e),e}function yg(e){var t=Ba();return e={current:e},t.memoizedState=e}function ul(e,t,o,i){var u=Ba();ke.flags|=e,u.memoizedState=mr(qo|t,{destroy:void 0},o,i===void 0?null:i)}function Ya(e,t,o,i){var u=ft();i=i===void 0?null:i;var d=u.memoizedState.inst;bt!==null&&i!==null&&ng(i,bt.memoizedState.deps)?u.memoizedState=mr(t,d,o,i):(ke.flags|=e,u.memoizedState=mr(qo|t,d,o,i))}function zf(e,t){(ke.mode&ln)!==Ae?ul(276826112,Va,e,t):ul(8390656,Va,e,t)}function Gk(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=Of(),ke.updateQueue=t,t.events=[e];else{var o=t.events;o===null?t.events=[e]:o.push(e)}}function bg(e){var t=Ba(),o={impl:e};return t.memoizedState=o,function(){if((ot&ia)!==pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function Uf(e){var t=ft().memoizedState;return Gk({ref:t,nextImpl:e}),function(){if((ot&ia)!==pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function xg(e,t){var o=4194308;return(ke.mode&ln)!==Ae&&(o|=134217728),ul(o,wo,e,t)}function uS(e,t){if(typeof t==="function"){e=e();var o=t(e);return function(){typeof o==="function"?o():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 vg(e,t,o){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"),o=o!==null&&o!==void 0?o.concat([e]):null;var i=4194308;(ke.mode&ln)!==Ae&&(i|=134217728),ul(i,wo,uS.bind(null,t,e),o)}function Hf(e,t,o){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"),o=o!==null&&o!==void 0?o.concat([e]):null,Ya(4,wo,uS.bind(null,t,e),o)}function Sg(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e}function Ff(e,t){var o=ft();t=t===void 0?null:t;var i=o.memoizedState;if(t!==null&&ng(t,i[1]))return i[0];return o.memoizedState=[e,t],e}function Lg(e,t){var o=Ba();t=t===void 0?null:t;var i=e();if(wl){St(!0);try{e()}finally{St(!1)}}return o.memoizedState=[i,t],i}function qf(e,t){var o=ft();t=t===void 0?null:t;var i=o.memoizedState;if(t!==null&&ng(t,i[1]))return i[0];if(i=e(),wl){St(!0);try{e()}finally{St(!1)}}return o.memoizedState=[i,t],i}function Cg(e,t){var o=Ba();return Tg(o,e,t)}function cS(e,t){var o=ft();return fS(o,bt.memoizedState,e,t)}function dS(e,t){var o=ft();return bt===null?Tg(o,e,t):fS(o,bt.memoizedState,e,t)}function Tg(e,t,o){if(o===void 0||(gs&1073741824)!==0&&(Fe&261930)===0)return e.memoizedState=t;return e.memoizedState=o,e=hL(),ke.lanes|=e,mi|=e,o}function fS(e,t,o,i){if(Ha(o,t))return o;if(Xr.current!==null)return e=Tg(e,o,i),Ha(e,t)||(Jt=!0),e;if((gs&42)===0||(gs&1073741824)!==0&&(Fe&261930)===0)return Jt=!0,e.memoizedState=o;return e=hL(),ke.lanes|=e,mi|=e,t}function Vf(){H.asyncTransitions--}function hS(e,t,o,i,u){var d=ct.p;ct.p=d!==0&&d<sn?d:sn;var m=H.T,b={};b._updatedFibers=new Set,H.T=b,kg(e,!1,t,o);try{var v=u(),L=H.S;if(L!==null&&L(b,v),v!==null&&typeof v==="object"&&typeof v.then==="function"){H.asyncTransitions++,v.then(Vf,Vf);var O=Hk(v,i);Xu(e,t,O,bo(e))}else Xu(e,t,i,bo(e))}catch(P){Xu(e,t,{then:function(){},status:"rejected",reason:P},bo(e))}finally{ct.p=d,m!==null&&b.types!==null&&(m.types!==null&&m.types!==b.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."),m.types=b.types),H.T=m,m===null&&b._updatedFibers&&(e=b._updatedFibers.size,b._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 wg(e,t,o,i){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var u=pS(e).queue;zk(e),hS(e,u,t,Bl,o===null?g:function(){return mS(e),o(i)})}function pS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Bl,baseState:Bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:Bl},next:null};var o={};return t.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:o},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mS(e){H.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=pS(e);t.next===null&&(t=e.alternate.memoizedState),Xu(e,t.next.queue,{},bo(e))}function Ig(){var e=hg(!1);return e=hS.bind(null,ke,e.queue,!0,!1),Ba().memoizedState=e,[!1,e]}function gS(){var e=hr(an)[0],t=ft().memoizedState;return[typeof e==="boolean"?e:Gu(e),t]}function yS(){var e=Yu(an)[0],t=ft().memoizedState;return[typeof e==="boolean"?e:Gu(e),t]}function cl(){return _t(ad)}function Mg(){var e=Ba(),t=xt.identifierPrefix;if(Ke){var o=ds,i=cs;o=(i&~(1<<32-Na(i)-1)).toString(32)+o,t="_"+t+"R_"+o,o=jh++,0<o&&(t+="H"+o.toString(32)),t+="_"}else o=TD++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t}function Ag(){return Ba().memoizedState=Yk.bind(null,ke)}function Yk(e,t){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var i=bo(o),u=js(i),d=Gs(o,u,i);d!==null&&(vn(i,"refresh()",e),Nt(d,o,i),qu(d,o,i)),e=$m(),t!==null&&t!==void 0&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),u.payload={cache:e};return}o=o.return}}function Xk(e,t,o){var i=arguments;typeof i[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()."),i=bo(e);var u={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};jf(e)?xS(t,u):(u=Bm(e,t,u,i),u!==null&&(vn(i,"dispatch()",e),Nt(u,e,i),vS(u,t,i)))}function bS(e,t,o){var i=arguments;typeof i[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()."),i=bo(e),Xu(e,t,o,i)&&vn(i,"setState()",e)}function Xu(e,t,o,i){var u={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(jf(e))xS(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null)){var m=H.H;H.H=un;try{var b=t.lastRenderedState,v=d(b,o);if(u.hasEagerState=!0,u.eagerState=v,Ha(v,b))return gf(e,t,u,0),xt===null&&mf(),!1}catch(L){}finally{H.H=m}}if(o=Bm(e,t,u,i),o!==null)return Nt(o,e,i),vS(o,t,i),!0}return!1}function kg(e,t,o,i){if(H.T===null&&vl===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."),i={lane:2,revertLane:sy(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},jf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Bm(e,o,i,2),t!==null&&(vn(2,"setOptimistic()",e),Nt(t,e,2))}function jf(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function xS(e,t){Zr=Vh=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function vS(e,t,o){if((o&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,o|=i,t.lanes=o,Zi(e,o)}}function Rg(e){if(e!==null&&typeof e!=="function"){var t=String(e);yT.has(t)||(yT.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function _g(e,t,o,i){var u=e.memoizedState,d=o(i,u);if(e.mode&Da){St(!0);try{d=o(i,u)}finally{St(!1)}}d===void 0&&(t=K(t)||"Component",hT.has(t)||(hT.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),u=d===null||d===void 0?u:Xe({},u,d),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}function SS(e,t,o,i,u,d,m){var b=e.stateNode;if(typeof b.shouldComponentUpdate==="function"){if(o=b.shouldComponentUpdate(i,d,m),e.mode&Da){St(!0);try{o=b.shouldComponentUpdate(i,d,m)}finally{St(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",K(t)||"Component"),o}return t.prototype&&t.prototype.isPureReactComponent?!Pu(o,i)||!Pu(u,d):!0}function LS(e,t,o,i){var u=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(o,i),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(o,i),t.state!==u&&(e=V(e)||"Component",rT.has(e)||(rT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),wb.enqueueReplaceState(t,t.state,null))}function dl(e,t){var o=t;if("ref"in t){o={};for(var i in t)i!=="ref"&&(o[i]=t[i])}if(e=e.defaultProps){o===t&&(o=Xe({},o));for(var u in e)o[u]===void 0&&(o[u]=e[u])}return o}function CS(e){ab(e),console.warn(`%s
115
+ Incoming: %s`,F,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<t.length&&o<e.length;o++)if(!Qa(e[o],t[o]))return!1;return!0}function Eg(e,t,o,r,c,f){if(Rs=f,Pe=t,en=e!==null?e._debugHookTypes:null,Ds=-1,dd=e!==null&&e.type!==t.type,Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")f=j(Pe),Zb.has(f)||(Zb.add(f),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.",f===null?"An unknown Component":"<"+f+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e!==null&&e.memoizedState!==null?Kb:en!==null?BT:Qb,Gi=f=(t.mode&ja)!==Oe;var m=Vb(o,r,c);if(Gi=!1,yu&&(m=Og(t,o,r,c)),f){_t(!0);try{m=Og(t,o,r,c)}finally{_t(!1)}}return wS(e,t),m}function wS(e,t){t._debugHookTypes=en,t.dependencies===null?_s!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:_s}):t.dependencies._debugThenableState=_s,q.H=fd;var o=It!==null&&It.next!==null;if(Rs=0,en=F=la=It=Pe=null,Ds=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mh=!1,cd=0,_s=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ua||(e=e.dependencies,e!==null&&Yf(e)&&(ua=!0)),id?(id=!1,e=!0):e=!1,e&&(t=j(t)||"Unknown",OT.has(t)||Zb.has(t)||(OT.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 Og(e,t,o,r){Pe=e;var c=0;do{if(yu&&(_s=null),cd=0,yu=!1,c>=LD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,dd=!1,la=It=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}Ds=-1,q.H=NT,f=Vb(t,o,r)}while(yu);return f}function HR(){var e=q.H,t=e.useState()[0];return t=typeof t.then==="function"?gc(t):t,e=e.useState()[0],(It!==null?It.memoizedState:null)!==e&&(Pe.flags|=1024),t}function Pg(){var e=gh!==0;return gh=0,e}function Bg(e,t,o){t.updateQueue=e.updateQueue,t.flags=(t.mode&gn)!==Oe?t.flags&-402655237:t.flags&-2053,e.lanes&=~o}function Ng(e){if(mh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mh=!1}Rs=0,en=la=It=Pe=null,Ds=-1,F=null,yu=!1,cd=gh=0,_s=null}function Ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return la===null?Pe.memoizedState=la=e:la=la.next=e,la}function vt(){if(It===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=It.next;var t=la===null?Pe.memoizedState:la.next;if(t!==null)la=t,It=e;else{if(e===null){if(Pe.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.")}It=e,e={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},la===null?Pe.memoizedState=la=e:la=la.next=e}return la}function rp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gc(e){var t=cd;return cd+=1,_s===null&&(_s=dS()),e=pS(_s,e,t),t=Pe,(la===null?t.memoizedState:la.next)===null&&(t=t.alternate,q.H=t!==null&&t.memoizedState!==null?Kb:Qb),e}function hr(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return gc(e);if(e.$$typeof===Gn)return Ft(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ii(e){var t=null,o=Pe.updateQueue;if(o!==null&&(t=o.memoCache),t==null){var r=Pe.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),o===null&&(o=rp(),Pe.updateQueue=o),o.memoCache=t,o=t.data[t.index],o===void 0||dd)for(o=t.data[t.index]=Array(e),r=0;r<e;r++)o[r]=e2;else o.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.",o.length,e);return t.index++,o}function fn(e,t){return typeof t==="function"?t(e):t}function zg(e,t,o){var r=Ya();if(o!==void 0){var c=o(t);if(Gi){_t(!0);try{o(t)}finally{_t(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=jR.bind(null,Pe,e),[r.memoizedState,e]}function Ol(e){var t=vt();return Hg(t,It,e)}function Hg(e,t,o){var r=e.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=o;var c=e.baseQueue,f=r.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}t.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=c=f,r.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=m=null,S=null,L=t,O=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Xe&P)===P:(Rs&P)===P){var _=L.revertLane;if(_===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===Ui&&(O=!0);else if((Rs&_)===_){L=L.next,_===Ui&&(O=!0);continue}else P={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(x=S=P,m=f):S=S.next=P,Pe.lanes|=_,Pr|=_;P=L.action,Gi&&o(f,P),f=L.hasEagerState?L.eagerState:o(f,P)}else _={lane:P,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(x=S=_,m=f):S=S.next=_,Pe.lanes|=P,Pr|=P;L=L.next}while(L!==null&&L!==t);if(S===null?m=f:S.next=x,!Qa(f,e.memoizedState)&&(ua=!0,O&&(o=du,o!==null)))throw o;e.memoizedState=f,e.baseState=m,e.baseQueue=S,r.lastRenderedState=f}return c===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function yc(e){var t=vt(),o=t.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=e;var{dispatch:r,pending:c}=o,f=t.memoizedState;if(c!==null){o.pending=null;var m=c=c.next;do f=e(f,m.action),m=m.next;while(m!==c);Qa(f,t.memoizedState)||(ua=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),o.lastRenderedState=f}return[f,r]}function Ug(e,t,o){var r=Pe,c=Ya();if(at){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var f=o();gu||f===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),gu=!0)}else{if(f=t(),gu||(o=t(),Qa(f,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gu=!0)),At===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Xe&127)!==0||kS(r,t,f)}return c.memoizedState=f,o={value:f,getSnapshot:t},c.queue=o,cp(IS.bind(null,r,o,e),[e]),r.flags|=2048,Bl(Jo|eo,{destroy:void 0},MS.bind(null,r,o,f,t),null),f}function ip(e,t,o){var r=Pe,c=vt(),f=at;if(f){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=t(),!gu){var m=t();Qa(o,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gu=!0)}if(m=!Qa((It||c).memoizedState,o))c.memoizedState=o,ua=!0;c=c.queue;var x=IS.bind(null,r,c,e);if(so(2048,eo,x,[e]),c.getSnapshot!==t||m||la!==null&&la.memoizedState.tag&Jo){if(r.flags|=2048,Bl(Jo|eo,{destroy:void 0},MS.bind(null,r,c,o,t),null),At===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f||(Rs&127)!==0||kS(r,t,o)}return o}function kS(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Pe.updateQueue,t===null?(t=rp(),Pe.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function MS(e,t,o,r){t.value=o,t.getSnapshot=r,AS(t)&&RS(e)}function IS(e,t,o){return o(function(){AS(t)&&(_n(2,"updateSyncExternalStore()",e),RS(e))})}function AS(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Qa(e,o)}catch(r){return!0}}function RS(e){var t=qa(e,2);t!==null&&Zt(t,e,2)}function Fg(e){var t=Ya();if(typeof e==="function"){var o=e;if(e=o(),Gi){_t(!0);try{o()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:e},t}function qg(e){e=Fg(e);var t=e.queue,o=WS.bind(null,Pe,t);return t.dispatch=o,[e.memoizedState,o]}function Vg(e){var t=Ya();t.memoizedState=t.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=o,t=oy.bind(null,Pe,!0,o),o.dispatch=t,[e,t]}function _S(e,t){var o=vt();return DS(o,It,e,t)}function DS(e,t,o,r){return e.baseState=o,Hg(e,It,typeof r==="function"?r:fn)}function ES(e,t){var o=vt();if(It!==null)return DS(o,It,e,t);return o.baseState=e,[e,o.queue.dispatch]}function UR(e,t,o,r,c){if(gp(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){f.listeners.push(m)}};q.T!==null?o(!0):f.isTransition=!1,r(f),o=t.pending,o===null?(f.next=t.pending=f,OS(t,f)):(f.next=o.next,t.pending=o.next=f)}}function OS(e,t){var{action:o,payload:r}=t,c=e.state;if(t.isTransition){var f=q.T,m={};m._updatedFibers=new Set,q.T=m;try{var x=o(c,r),S=q.S;S!==null&&S(m,x),PS(e,t,x)}catch(L){jg(e,t,L)}finally{f!==null&&m.types!==null&&(f.types!==null&&f.types!==m.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."),f.types=m.types),q.T=f,f===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._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{m=o(c,r),PS(e,t,m)}catch(L){jg(e,t,L)}}function PS(e,t,o){o!==null&&typeof o==="object"&&typeof o.then==="function"?(q.asyncTransitions++,o.then(mp,mp),o.then(function(r){BS(e,t,r)},function(r){return jg(e,t,r)}),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.")):BS(e,t,o)}function BS(e,t,o){t.status="fulfilled",t.value=o,NS(t),e.state=o,t=e.pending,t!==null&&(o=t.next,o===t?e.pending=null:(o=o.next,t.next=o,OS(e,o)))}function jg(e,t,o){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=o,NS(t),t=t.next;while(t!==r)}e.action=null}function NS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zS(e,t){return t}function Pl(e,t){if(at){var o=At.formState;if(o!==null){e:{var r=Pe;if(at){if(Bt){t:{var c=Bt;for(var f=Zo;c.nodeType!==8;){if(!f){c=null;break t}if(c=Ro(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f===Sx||f===Lw?c:null}if(c){Bt=Ro(c.nextSibling),r=c.data===Sx;break e}}ir(r)}r=!1}r&&(t=o[0])}}return o=Ya(),o.memoizedState=o.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zS,lastRenderedState:t},o.queue=r,o=WS.bind(null,Pe,r),r.dispatch=o,r=Fg(!1),f=oy.bind(null,Pe,!1,r.queue),r=Ya(),c={state:t,dispatch:null,action:e,pending:null},r.queue=c,o=UR.bind(null,Pe,c,f,o),c.dispatch=o,r.memoizedState=e,[t,o,!1]}function lp(e){var t=vt();return HS(t,It,e)}function HS(e,t,o){if(t=Hg(e,t,zS)[0],e=Ol(fn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var r=gc(t)}catch(m){if(m===fu)throw dh;throw m}else r=t;t=vt();var c=t.queue,f=c.dispatch;return o!==t.memoizedState&&(Pe.flags|=2048,Bl(Jo|eo,{destroy:void 0},FR.bind(null,c,o),null)),[r,f,e]}function FR(e,t){e.action=t}function up(e){var t=vt(),o=It;if(o!==null)return HS(t,o,e);vt(),t=t.memoizedState,o=vt();var r=o.queue.dispatch;return o.memoizedState=e,[t,r,!1]}function Bl(e,t,o,r){return e={tag:e,create:o,deps:r,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=rp(),Pe.updateQueue=t),o=t.lastEffect,o===null?t.lastEffect=e.next=e:(r=o.next,o.next=e,e.next=r,t.lastEffect=e),e}function Gg(e){var t=Ya();return e={current:e},t.memoizedState=e}function Ai(e,t,o,r){var c=Ya();Pe.flags|=e,c.memoizedState=Bl(Jo|t,{destroy:void 0},o,r===void 0?null:r)}function so(e,t,o,r){var c=vt();r=r===void 0?null:r;var f=c.memoizedState.inst;It!==null&&r!==null&&Dg(r,It.memoizedState.deps)?c.memoizedState=Bl(t,f,o,r):(Pe.flags|=e,c.memoizedState=Bl(Jo|t,f,o,r))}function cp(e,t){(Pe.mode&gn)!==Oe?Ai(276826112,eo,e,t):Ai(8390656,eo,e,t)}function qR(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=rp(),Pe.updateQueue=t,t.events=[e];else{var o=t.events;o===null?t.events=[e]:o.push(e)}}function Xg(e){var t=Ya(),o={impl:e};return t.memoizedState=o,function(){if((ct&ga)!==wa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function dp(e){var t=vt().memoizedState;return qR({ref:t,nextImpl:e}),function(){if((ct&ga)!==wa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Yg(e,t){var o=4194308;return(Pe.mode&gn)!==Oe&&(o|=134217728),Ai(o,Bo,e,t)}function US(e,t){if(typeof t==="function"){e=e();var o=t(e);return function(){typeof o==="function"?o():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 $g(e,t,o){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"),o=o!==null&&o!==void 0?o.concat([e]):null;var r=4194308;(Pe.mode&gn)!==Oe&&(r|=134217728),Ai(r,Bo,US.bind(null,t,e),o)}function fp(e,t,o){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"),o=o!==null&&o!==void 0?o.concat([e]):null,so(4,Bo,US.bind(null,t,e),o)}function Wg(e,t){return Ya().memoizedState=[e,t===void 0?null:t],e}function pp(e,t){var o=vt();t=t===void 0?null:t;var r=o.memoizedState;if(t!==null&&Dg(t,r[1]))return r[0];return o.memoizedState=[e,t],e}function Zg(e,t){var o=Ya();t=t===void 0?null:t;var r=e();if(Gi){_t(!0);try{e()}finally{_t(!1)}}return o.memoizedState=[r,t],r}function hp(e,t){var o=vt();t=t===void 0?null:t;var r=o.memoizedState;if(t!==null&&Dg(t,r[1]))return r[0];if(r=e(),Gi){_t(!0);try{e()}finally{_t(!1)}}return o.memoizedState=[r,t],r}function Qg(e,t){var o=Ya();return Kg(o,e,t)}function FS(e,t){var o=vt();return VS(o,It.memoizedState,e,t)}function qS(e,t){var o=vt();return It===null?Kg(o,e,t):VS(o,It.memoizedState,e,t)}function Kg(e,t,o){if(o===void 0||(Rs&1073741824)!==0&&(Xe&261930)===0)return e.memoizedState=t;return e.memoizedState=o,e=jL(),Pe.lanes|=e,Pr|=e,o}function VS(e,t,o,r){if(Qa(o,t))return o;if(hu.current!==null)return e=Kg(e,o,r),Qa(e,t)||(ua=!0),e;if((Rs&42)===0||(Rs&1073741824)!==0&&(Xe&261930)===0)return ua=!0,e.memoizedState=o;return e=jL(),Pe.lanes|=e,Pr|=e,t}function mp(){q.asyncTransitions--}function jS(e,t,o,r,c){var f=yt.p;yt.p=f!==0&&f<mn?f:mn;var m=q.T,x={};x._updatedFibers=new Set,q.T=x,oy(e,!1,t,o);try{var S=c(),L=q.S;if(L!==null&&L(x,S),S!==null&&typeof S==="object"&&typeof S.then==="function"){q.asyncTransitions++,S.then(mp,mp);var O=NR(S,r);bc(e,t,O,Ao(e))}else bc(e,t,r,Ao(e))}catch(P){bc(e,t,{then:function(){},status:"rejected",reason:P},Ao(e))}finally{yt.p=f,m!==null&&x.types!==null&&(m.types!==null&&m.types!==x.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."),m.types=x.types),q.T=m,m===null&&x._updatedFibers&&(e=x._updatedFibers.size,x._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 Jg(e,t,o,r){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=GS(e).queue;PR(e),jS(e,c,t,al,o===null?g:function(){return XS(e),o(r)})}function GS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:al,baseState:al,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:al},next:null};var o={};return t.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:o},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function XS(e){q.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=GS(e);t.next===null&&(t=e.alternate.memoizedState),bc(e,t.next.queue,{},Ao(e))}function ey(){var e=Fg(!1);return e=jS.bind(null,Pe,e.queue,!0,!1),Ya().memoizedState=e,[!1,e]}function YS(){var e=Ol(fn)[0],t=vt().memoizedState;return[typeof e==="boolean"?e:gc(e),t]}function $S(){var e=yc(fn)[0],t=vt().memoizedState;return[typeof e==="boolean"?e:gc(e),t]}function Ri(){return Ft(Md)}function ty(){var e=Ya(),t=At.identifierPrefix;if(at){var o=ws,r=Ts;o=(r&~(1<<32-$a(r)-1)).toString(32)+o,t="_"+t+"R_"+o,o=gh++,0<o&&(t+="H"+o.toString(32)),t+="_"}else o=SD++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t}function ay(){return Ya().memoizedState=VR.bind(null,Pe)}function VR(e,t){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var r=Ao(o),c=cr(r),f=dr(o,c,r);f!==null&&(_n(r,"refresh()",e),Zt(f,o,r),pc(f,o,r)),e=Lg(),t!==null&&t!==void 0&&f!==null&&console.error("The seed argument is not enabled outside experimental channels."),c.payload={cache:e};return}o=o.return}}function jR(e,t,o){var r=arguments;typeof r[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()."),r=Ao(e);var c={lane:r,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};gp(e)?ZS(t,c):(c=cg(e,t,c,r),c!==null&&(_n(r,"dispatch()",e),Zt(c,e,r),QS(c,t,r)))}function WS(e,t,o){var r=arguments;typeof r[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()."),r=Ao(e),bc(e,t,o,r)&&_n(r,"setState()",e)}function bc(e,t,o,r){var c={lane:r,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(gp(e))ZS(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null)){var m=q.H;q.H=bn;try{var x=t.lastRenderedState,S=f(x,o);if(c.hasEagerState=!0,c.eagerState=S,Qa(S,x))return qf(e,t,c,0),At===null&&Ff(),!1}catch(L){}finally{q.H=m}}if(o=cg(e,t,c,r),o!==null)return Zt(o,e,r),QS(o,t,r),!0}return!1}function oy(e,t,o,r){if(q.T===null&&Ui===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."),r={lane:2,revertLane:Ey(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},gp(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=cg(e,o,r,2),t!==null&&(_n(2,"setOptimistic()",e),Zt(t,e,2))}function gp(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function ZS(e,t){yu=mh=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function QS(e,t,o){if((o&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,o|=r,t.lanes=o,gi(e,o)}}function ny(e){if(e!==null&&typeof e!=="function"){var t=String(e);$T.has(t)||($T.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function sy(e,t,o,r){var c=e.memoizedState,f=o(r,c);if(e.mode&ja){_t(!0);try{f=o(r,c)}finally{_t(!1)}}f===void 0&&(t=Y(t)||"Component",jT.has(t)||(jT.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),c=f===null||f===void 0?c:Ze({},c,f),e.memoizedState=c,e.lanes===0&&(e.updateQueue.baseState=c)}function KS(e,t,o,r,c,f,m){var x=e.stateNode;if(typeof x.shouldComponentUpdate==="function"){if(o=x.shouldComponentUpdate(r,f,m),e.mode&ja){_t(!0);try{o=x.shouldComponentUpdate(r,f,m)}finally{_t(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Y(t)||"Component"),o}return t.prototype&&t.prototype.isPureReactComponent?!rc(o,r)||!rc(c,f):!0}function JS(e,t,o,r){var c=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(o,r),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(o,r),t.state!==c&&(e=j(e)||"Component",HT.has(e)||(HT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Jb.enqueueReplaceState(t,t.state,null))}function _i(e,t){var o=t;if("ref"in t){o={};for(var r in t)r!=="ref"&&(o[r]=t[r])}if(e=e.defaultProps){o===t&&(o=Ze({},o));for(var c in e)o[c]===void 0&&(o[c]=e[c])}return o}function eL(e){Rb(e),console.warn(`%s
116
116
 
117
117
  %s
118
- `,Qr?"An error occurred in the <"+Qr+"> 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 TS(e){var t=Qr?"The above error occurred in the <"+Qr+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Ib||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var i=e.environmentName;e=[`%o
118
+ `,bu?"An error occurred in the <"+bu+"> 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 tL(e){var t=bu?"The above error occurred in the <"+bu+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((ex||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var r=e.environmentName;e=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,e,t,o].slice(0),typeof e[0]==="string"?e.splice(0,1,JT+" "+e[0],ew,mp+i+mp,tw):e.splice(0,0,JT,ew,mp+i+mp,tw),e.unshift(console),i=GD.apply(console.error,e),i()}else console.error(`%o
124
+ `,e,t,o].slice(0),typeof e[0]==="string"?e.splice(0,1,Rw+" "+e[0],_w,Fh+r+Fh,Dw):e.splice(0,0,Rw,_w,Fh+r+Fh,Dw),e.unshift(console),r=qD.apply(console.error,e),r()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,o)}function wS(e){ab(e)}function Gf(e,t){try{Qr=t.source?V(t.source):null,Ib=null;var o=t.value;if(H.actQueue!==null)H.thrownErrors.push(o);else{var i=e.onUncaughtError;i(o,{componentStack:t.stack})}}catch(u){setTimeout(function(){throw u})}}function IS(e,t,o){try{Qr=o.source?V(o.source):null,Ib=V(t);var i=e.onCaughtError;i(o.value,{componentStack:o.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Dg(e,t,o){return o=js(o),o.tag=xb,o.payload={element:null},o.callback=function(){ie(t.source,Gf,e,t)},o}function Eg(e){return e=js(e),e.tag=xb,e}function Og(e,t,o,i){var u=o.type.getDerivedStateFromError;if(typeof u==="function"){var d=i.value;e.payload=function(){return u(d)},e.callback=function(){x0(o),ie(i.source,IS,t,o,i)}}var m=o.stateNode;m!==null&&typeof m.componentDidCatch==="function"&&(e.callback=function(){x0(o),ie(i.source,IS,t,o,i),typeof u!=="function"&&(yi===null?yi=new Set([this]):yi.add(this)),vD(this,i),typeof u==="function"||(o.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.",V(o)||"Unknown")})}function $k(e,t,o,i,u){if(o.flags|=32768,Nn&&tc(e,u),i!==null&&typeof i==="object"&&typeof i.then==="function"){if(t=o.alternate,t!==null&&dr(t,o,u,!0),Ke&&(Hn=!0),o=To.current,o!==null){switch(o.tag){case 31:case 13:return Fo===null?eh():o.alternate===null&&Ot===vs&&(Ot=Xh),o.flags&=-257,o.flags|=65536,o.lanes=u,i===Hh?o.flags|=16384:(t=o.updateQueue,t===null?o.updateQueue=new Set([i]):t.add(i),ty(e,i,u)),!1;case 22:return o.flags|=65536,i===Hh?o.flags|=16384:(t=o.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},o.updateQueue=t):(o=t.retryQueue,o===null?t.retryQueue=new Set([i]):o.add(i)),ty(e,i,u)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return ty(e,i,u),eh(),!1}if(Ke)return Hn=!0,t=To.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==rb&&Nu(po(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:i}),o))):(i!==rb&&Nu(po(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:i}),o)),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=po(i,o),u=Dg(e.stateNode,i,u),_f(e,u),Ot!==hi&&(Ot=Il)),!1;var d=po(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:i}),o);if(Xc===null?Xc=[d]:Xc.push(d),Ot!==hi&&(Ot=Il),t===null)return!0;i=po(i,o),o=t;do{switch(o.tag){case 3:return o.flags|=65536,e=u&-u,o.lanes|=e,e=Dg(o.stateNode,i,e),_f(o,e),!1;case 1:if(t=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||d!==null&&typeof d.componentDidCatch==="function"&&(yi===null||!yi.has(d))))return o.flags|=65536,u&=-u,o.lanes|=u,u=Eg(u),Og(u,e,o,i),_f(o,u),!1}o=o.return}while(o!==null);return!1}function xa(e,t,o,i){t.child=e===null?Q1(t,null,o,i):Tl(t,e.child,o,i)}function MS(e,t,o,i,u){o=o.render;var d=t.ref;if("ref"in i){var m={};for(var b in i)b!=="ref"&&(m[b]=i[b])}else m=i;if(il(t),i=sg(e,t,o,m,d,u),b=lg(),e!==null&&!Jt)return rg(e,t,u),ns(e,t,u);return Ke&&b&&qm(t),t.flags|=1,xa(e,t,i,u),t.child}function AS(e,t,o,i,u){if(e===null){var d=o.type;if(typeof d==="function"&&!zm(d)&&d.defaultProps===void 0&&o.compare===null)return o=al(d),t.tag=15,t.type=o,Bg(t,d),kS(e,t,o,i,u);return e=Um(o.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e}if(d=e.child,!qg(e,u)){var m=d.memoizedProps;if(o=o.compare,o=o!==null?o:Pu,o(m,i)&&e.ref===t.ref)return ns(e,t,u)}return t.flags|=1,e=es(d,i),e.ref=t.ref,e.return=t,t.child=e}function kS(e,t,o,i,u){if(e!==null){var d=e.memoizedProps;if(Pu(d,i)&&e.ref===t.ref&&t.type===e.type)if(Jt=!1,t.pendingProps=i=d,qg(e,u))(e.flags&131072)!==0&&(Jt=!0);else return t.lanes=e.lanes,ns(e,t,u)}return Pg(e,t,o,i,u)}function RS(e,t,o,i){var u=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Lc,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|o:o,e!==null){i=t.child=e.child;for(u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~d}else i=0,t.child=null;return _S(e,t,d,o,i)}if((o&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wf(t,d!==null?d.cachePool:null),d!==null?Y0(t,d):tg(t),X0(t);else return i=t.lanes=536870912,_S(e,t,d!==null?d.baseLanes|o:o,o,i)}else d!==null?(wf(t,d.cachePool),Y0(t,d),Xs(t),t.memoizedState=null):(e!==null&&wf(t,null),tg(t),Xs(t));return xa(e,t,u,o),t.child}function $u(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Lc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _S(e,t,o,i,u){var d=Qm();return d=d===null?null:{parent:Zt._currentValue,pool:d},t.memoizedState={baseLanes:o,cachePool:d},e!==null&&wf(t,null),tg(t),X0(t),e!==null&&dr(e,t,i,!0),t.childLanes=u,null}function Yf(e,t){var o=t.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,o)}function aL(e){Rb(e)}function yp(e,t){try{bu=t.source?j(t.source):null,ex=null;var o=t.value;if(q.actQueue!==null)q.thrownErrors.push(o);else{var r=e.onUncaughtError;r(o,{componentStack:t.stack})}}catch(c){setTimeout(function(){throw c})}}function oL(e,t,o){try{bu=o.source?j(o.source):null,ex=j(t);var r=e.onCaughtError;r(o.value,{componentStack:o.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ry(e,t,o){return o=cr(o),o.tag=Yb,o.payload={element:null},o.callback=function(){me(t.source,yp,e,t)},o}function iy(e){return e=cr(e),e.tag=Yb,e}function ly(e,t,o,r){var c=o.type.getDerivedStateFromError;if(typeof c==="function"){var f=r.value;e.payload=function(){return c(f)},e.callback=function(){Z0(o),me(r.source,oL,t,o,r)}}var m=o.stateNode;m!==null&&typeof m.componentDidCatch==="function"&&(e.callback=function(){Z0(o),me(r.source,oL,t,o,r),typeof c!=="function"&&(Nr===null?Nr=new Set([this]):Nr.add(this)),yD(this,r),typeof c==="function"||(o.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.",j(o)||"Unknown")})}function GR(e,t,o,r,c){if(o.flags|=32768,$n&&kc(e,c),r!==null&&typeof r==="object"&&typeof r.then==="function"){if(t=o.alternate,t!==null&&Dl(t,o,c,!0),at&&(Qn=!0),o=Po.current,o!==null){switch(o.tag){case 31:case 13:return Ko===null?kp():o.alternate===null&&Yt===Os&&(Yt=xh),o.flags&=-257,o.flags|=65536,o.lanes=c,r===fh?o.flags|=16384:(t=o.updateQueue,t===null?o.updateQueue=new Set([r]):t.add(r),Ay(e,r,c)),!1;case 22:return o.flags|=65536,r===fh?o.flags|=16384:(t=o.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},o.updateQueue=t):(o=t.retryQueue,o===null?t.retryQueue=new Set([r]):o.add(r)),Ay(e,r,c)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return Ay(e,r,c),kp(),!1}if(at)return Qn=!0,t=Po.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,r!==Bb&&lc(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),o))):(r!==Bb&&lc(wo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),o)),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,r=wo(r,o),c=ry(e.stateNode,r,c),op(e,c),Yt!==Er&&(Yt=Xi)),!1;var f=wo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),o);if(bd===null?bd=[f]:bd.push(f),Yt!==Er&&(Yt=Xi),t===null)return!0;r=wo(r,o),o=t;do{switch(o.tag){case 3:return o.flags|=65536,e=c&-c,o.lanes|=e,e=ry(o.stateNode,r,e),op(o,e),!1;case 1:if(t=o.type,f=o.stateNode,(o.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||f!==null&&typeof f.componentDidCatch==="function"&&(Nr===null||!Nr.has(f))))return o.flags|=65536,c&=-c,o.lanes|=c,c=iy(c),ly(c,e,o,r),op(o,c),!1}o=o.return}while(o!==null);return!1}function Da(e,t,o,r){t.child=e===null?IT(t,null,o,r):ji(t,e.child,o,r)}function nL(e,t,o,r,c){o=o.render;var f=t.ref;if("ref"in r){var m={};for(var x in r)x!=="ref"&&(m[x]=r[x])}else m=r;if(ki(t),r=Eg(e,t,o,m,f,c),x=Pg(),e!==null&&!ua)return Bg(e,t,c),bs(e,t,c);return at&&x&&gg(t),t.flags|=1,Da(e,t,r,c),t.child}function sL(e,t,o,r,c){if(e===null){var f=o.type;if(typeof f==="function"&&!fg(f)&&f.defaultProps===void 0&&o.compare===null)return o=Li(f),t.tag=15,t.type=o,cy(t,f),rL(e,t,o,r,c);return e=pg(o.type,null,r,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e}if(f=e.child,!gy(e,c)){var m=f.memoizedProps;if(o=o.compare,o=o!==null?o:rc,o(m,r)&&e.ref===t.ref)return bs(e,t,c)}return t.flags|=1,e=hs(f,r),e.ref=t.ref,e.return=t,t.child=e}function rL(e,t,o,r,c){if(e!==null){var f=e.memoizedProps;if(rc(f,r)&&e.ref===t.ref&&t.type===e.type)if(ua=!1,t.pendingProps=r=f,gy(e,c))(e.flags&131072)!==0&&(ua=!0);else return t.lanes=e.lanes,bs(e,t,c)}return uy(e,t,o,r,c)}function iL(e,t,o,r){var c=r.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Yc,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|o:o,e!==null){r=t.child=e.child;for(c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~f}else r=0,t.child=null;return lL(e,t,f,o,r)}if((o&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qf(t,f!==null?f.cachePool:null),f!==null?CS(t,f):Ag(t),TS(t);else return r=t.lanes=536870912,lL(e,t,f!==null?f.baseLanes|o:o,o,r)}else f!==null?(Qf(t,f.cachePool),CS(t,f),pr(t),t.memoizedState=null):(e!==null&&Qf(t,null),Ag(t),pr(t));return Da(e,t,c,o),t.child}function xc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Yc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lL(e,t,o,r,c){var f=wg();return f=f===null?null:{parent:ra._currentValue,pool:f},t.memoizedState={baseLanes:o,cachePool:f},e!==null&&Qf(t,null),Ag(t),TS(t),e!==null&&Dl(e,t,r,!0),t.childLanes=c,null}function bp(e,t){var o=t.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),t=$f({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function DS(e,t,o){return Tl(t,e.child,null,o),e=Yf(t,t.pendingProps),e.flags|=2,yo(t),t.memoizedState=null,e}function Wk(e,t,o){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ke){if(i.mode==="hidden")return e=Yf(t,i),t.lanes=536870912,$u(null,e);if(og(t),(e=It)?(o=oC(e,Uo),o=o!==null&&o.data===Dl?o:null,o!==null&&(i={dehydrated:o,treeContext:T0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=L0(o),i.return=t,t.child=i,La=t,It=null)):o=null,o===null)throw xf(t,e),Fs(t);return t.lanes=536870912,null}return Yf(t,i)}var d=e.memoizedState;if(d!==null){var m=d.dehydrated;if(og(t),u)if(t.flags&256)t.flags&=-257,t=DS(e,t,o);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(I0(),(o&536870912)!==0&&Jf(t),Jt||dr(e,t,o,!1),u=(o&e.childLanes)!==0,Jt||u){if(i=xt,i!==null&&(m=Qi(i,o),m!==0&&m!==d.retryLane))throw d.retryLane=m,Ra(e,m),Nt(i,e,m),Mb;eh(),t=DS(e,t,o)}else e=d.treeContext,It=xo(m.nextSibling),La=t,Ke=!0,ii=null,Hn=!1,Co=null,Uo=!1,e!==null&&w0(t,e),t=Yf(t,i),t.flags|=4096;return t}return d=e.child,i={mode:i.mode,children:i.children},(o&536870912)!==0&&(o&e.lanes)!==0&&Jf(t),e=es(d,i),e.ref=t.ref,t.child=e,e.return=t,e}function Xf(e,t){var o=t.ref;if(o===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof o!=="function"&&typeof o!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==o)t.flags|=4194816}}function Pg(e,t,o,i,u){if(o.prototype&&typeof o.prototype.render==="function"){var d=K(o)||"Unknown";bT[d]||(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.",d,d),bT[d]=!0)}if(t.mode&Da&&rn.recordLegacyContextWarning(t,null),e===null&&(Bg(t,t.type),o.contextTypes&&(d=K(o)||"Unknown",vT[d]||(vT[d]=!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)",d)))),il(t),o=sg(e,t,o,i,void 0,u),i=lg(),e!==null&&!Jt)return rg(e,t,u),ns(e,t,u);return Ke&&i&&qm(t),t.flags|=1,xa(e,t,o,u),t.child}function ES(e,t,o,i,u,d){if(il(t),bs=-1,Hc=e!==null&&e.type!==t.type,t.updateQueue=null,o=ig(t,i,o,u),$0(e,t),i=lg(),e!==null&&!Jt)return rg(e,t,d),ns(e,t,d);return Ke&&i&&qm(t),t.flags|=1,xa(e,t,o,d),t.child}function OS(e,t,o,i,u){switch(f(t)){case!1:var d=t.stateNode,m=new t.type(t.memoizedProps,d.context).state;d.updater.enqueueSetState(d,m,null);break;case!0:t.flags|=128,t.flags|=65536,d=Error("Simulated error coming from DevTools");var b=u&-u;if(t.lanes|=b,m=xt,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=Eg(b),Og(b,m,t,po(d,t)),_f(t,b)}if(il(t),t.stateNode===null){if(m=si,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==On)&&!gT.has(o)&&(gT.add(o),b=d===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 d!=="object"?" However, it is set to a "+typeof d+".":d.$$typeof===Ay?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",K(o)||"Component",b)),typeof d==="object"&&d!==null&&(m=_t(d)),d=new o(i,m),t.mode&Da){St(!0);try{d=new o(i,m)}finally{St(!1)}}if(m=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=wb,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=lT,typeof o.getDerivedStateFromProps==="function"&&m===null&&(m=K(o)||"Component",uT.has(m)||(uT.add(m),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.",m,d.state===null?"null":"undefined",m))),typeof o.getDerivedStateFromProps==="function"||typeof d.getSnapshotBeforeUpdate==="function"){var v=b=m=null;if(typeof d.componentWillMount==="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?m="componentWillMount":typeof d.UNSAFE_componentWillMount==="function"&&(m="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps==="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?b="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps==="function"&&(b="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate==="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate==="function"&&(v="UNSAFE_componentWillUpdate"),m!==null||b!==null||v!==null){d=K(o)||"Component";var L=typeof o.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";dT.has(d)||(dT.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),t=vp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uL(e,t,o){return ji(t,e.child,null,o),e=bp(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function XR(e,t,o){var r=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(r.mode==="hidden")return e=bp(t,r),t.lanes=536870912,xc(null,e);if(_g(t),(e=Bt)?(o=OC(e,Zo),o=o!==null&&o.data===Ki?o:null,o!==null&&(r={dehydrated:o,treeContext:tS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=J0(o),r.return=t,t.child=r,Pa=t,Bt=null)):o=null,o===null)throw Gf(t,e),ir(t);return t.lanes=536870912,null}return bp(t,r)}var f=e.memoizedState;if(f!==null){var m=f.dehydrated;if(_g(t),c)if(t.flags&256)t.flags&=-257,t=uL(e,t,o);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(oS(),(o&536870912)!==0&&wp(t),ua||Dl(e,t,o,!1),c=(o&e.childLanes)!==0,ua||c){if(r=At,r!==null&&(m=yi(r,o),m!==0&&m!==f.retryLane))throw f.retryLane=m,qa(e,m),Zt(r,e,m),tx;kp(),t=uL(e,t,o)}else e=f.treeContext,Bt=Ro(m.nextSibling),Pa=t,at=!0,kr=null,Qn=!1,Oo=null,Zo=!1,e!==null&&aS(t,e),t=bp(t,r),t.flags|=4096;return t}return f=e.child,r={mode:r.mode,children:r.children},(o&536870912)!==0&&(o&e.lanes)!==0&&wp(t),e=hs(f,r),e.ref=t.ref,t.child=e,e.return=t,e}function xp(e,t){var o=t.ref;if(o===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof o!=="function"&&typeof o!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==o)t.flags|=4194816}}function uy(e,t,o,r,c){if(o.prototype&&typeof o.prototype.render==="function"){var f=Y(o)||"Unknown";WT[f]||(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.",f,f),WT[f]=!0)}if(t.mode&ja&&yn.recordLegacyContextWarning(t,null),e===null&&(cy(t,t.type),o.contextTypes&&(f=Y(o)||"Unknown",QT[f]||(QT[f]=!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)",f)))),ki(t),o=Eg(e,t,o,r,void 0,c),r=Pg(),e!==null&&!ua)return Bg(e,t,c),bs(e,t,c);return at&&r&&gg(t),t.flags|=1,Da(e,t,o,c),t.child}function cL(e,t,o,r,c,f){if(ki(t),Ds=-1,dd=e!==null&&e.type!==t.type,t.updateQueue=null,o=Og(t,r,o,c),wS(e,t),r=Pg(),e!==null&&!ua)return Bg(e,t,f),bs(e,t,f);return at&&r&&gg(t),t.flags|=1,Da(e,t,o,f),t.child}function dL(e,t,o,r,c){switch(d(t)){case!1:var f=t.stateNode,m=new t.type(t.memoizedProps,f.context).state;f.updater.enqueueSetState(f,m,null);break;case!0:t.flags|=128,t.flags|=65536,f=Error("Simulated error coming from DevTools");var x=c&-c;if(t.lanes|=x,m=At,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");x=iy(x),ly(x,m,t,wo(f,t)),op(t,x)}if(ki(t),t.stateNode===null){if(m=wr,f=o.contextType,"contextType"in o&&f!==null&&(f===void 0||f.$$typeof!==Gn)&&!YT.has(o)&&(YT.add(o),x=f===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 f!=="object"?" However, it is set to a "+typeof f+".":f.$$typeof===ab?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Y(o)||"Component",x)),typeof f==="object"&&f!==null&&(m=Ft(f)),f=new o(r,m),t.mode&ja){_t(!0);try{f=new o(r,m)}finally{_t(!1)}}if(m=t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Jb,t.stateNode=f,f._reactInternals=t,f._reactInternalInstance=zT,typeof o.getDerivedStateFromProps==="function"&&m===null&&(m=Y(o)||"Component",UT.has(m)||(UT.add(m),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.",m,f.state===null?"null":"undefined",m))),typeof o.getDerivedStateFromProps==="function"||typeof f.getSnapshotBeforeUpdate==="function"){var S=x=m=null;if(typeof f.componentWillMount==="function"&&f.componentWillMount.__suppressDeprecationWarning!==!0?m="componentWillMount":typeof f.UNSAFE_componentWillMount==="function"&&(m="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps==="function"&&f.componentWillReceiveProps.__suppressDeprecationWarning!==!0?x="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps==="function"&&(x="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate==="function"&&f.componentWillUpdate.__suppressDeprecationWarning!==!0?S="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate==="function"&&(S="UNSAFE_componentWillUpdate"),m!==null||x!==null||S!==null){f=Y(o)||"Component";var L=typeof o.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qT.has(f)||(qT.add(f),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
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,d,L,m!==null?`
137
- `+m:"",b!==null?`
138
- `+b:"",v!==null?`
139
- `+v:""))}}d=t.stateNode,m=K(o)||"Component",d.render||(o.prototype&&typeof o.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",m):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",m)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.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?",m),d.getDefaultProps&&!d.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.",m),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),o.childContextTypes&&!mT.has(o)&&(mT.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",m)),o.contextTypes&&!pT.has(o)&&(pT.add(o),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)",m)),typeof d.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.",m),o.prototype&&o.prototype.isPureReactComponent&&typeof d.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.",K(o)||"A pure component"),typeof d.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof d.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().",m),typeof d.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof d.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m),b=d.props!==i,d.props!==void 0&&b&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m),d.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.",m,m),typeof d.getSnapshotBeforeUpdate!=="function"||typeof d.componentDidUpdate==="function"||cT.has(o)||(cT.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",K(o))),typeof d.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof d.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof o.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m),(b=d.state)&&(typeof b!=="object"||na(b))&&console.error("%s.state: must be set to an object or null",m),typeof d.getChildContext==="function"&&typeof o.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m),d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Jm(t),m=o.contextType,d.context=typeof m==="object"&&m!==null?_t(m):si,d.state===i&&(m=K(o)||"Component",fT.has(m)||(fT.add(m),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.",m))),t.mode&Da&&rn.recordLegacyContextWarning(t,d),rn.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m==="function"&&(_g(t,o,m,i),d.state=t.memoizedState),typeof o.getDerivedStateFromProps==="function"||typeof d.getSnapshotBeforeUpdate==="function"||typeof d.UNSAFE_componentWillMount!=="function"&&typeof d.componentWillMount!=="function"||(m=d.state,typeof d.componentWillMount==="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount==="function"&&d.UNSAFE_componentWillMount(),m!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),wb.enqueueReplaceState(d,d.state,null)),ju(t,i,d,u),Vu(),d.state=t.memoizedState),typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ln)!==Ae&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var O=t.memoizedProps;b=dl(o,O),d.props=b;var P=d.context;v=o.contextType,m=si,typeof v==="object"&&v!==null&&(m=_t(v)),L=o.getDerivedStateFromProps,v=typeof L==="function"||typeof d.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,v||typeof d.UNSAFE_componentWillReceiveProps!=="function"&&typeof d.componentWillReceiveProps!=="function"||(O||P!==m)&&LS(t,d,i,m),fi=!1;var A=t.memoizedState;d.state=A,ju(t,i,d,u),Vu(),P=t.memoizedState,O||A!==P||fi?(typeof L==="function"&&(_g(t,o,L,i),P=t.memoizedState),(b=fi||SS(t,o,b,i,A,P,m))?(v||typeof d.UNSAFE_componentWillMount!=="function"&&typeof d.componentWillMount!=="function"||(typeof d.componentWillMount==="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount==="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ln)!==Ae&&(t.flags|=134217728)):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ln)!==Ae&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=P),d.props=i,d.state=P,d.context=m,d=b):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ln)!==Ae&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,eg(e,t),m=t.memoizedProps,v=dl(o,m),d.props=v,L=t.pendingProps,A=d.context,P=o.contextType,b=si,typeof P==="object"&&P!==null&&(b=_t(P)),O=o.getDerivedStateFromProps,(P=typeof O==="function"||typeof d.getSnapshotBeforeUpdate==="function")||typeof d.UNSAFE_componentWillReceiveProps!=="function"&&typeof d.componentWillReceiveProps!=="function"||(m!==L||A!==b)&&LS(t,d,i,b),fi=!1,A=t.memoizedState,d.state=A,ju(t,i,d,u),Vu();var N=t.memoizedState;m!==L||A!==N||fi||e!==null&&e.dependencies!==null&&Sf(e.dependencies)?(typeof O==="function"&&(_g(t,o,O,i),N=t.memoizedState),(v=fi||SS(t,o,v,i,A,N,b)||e!==null&&e.dependencies!==null&&Sf(e.dependencies))?(P||typeof d.UNSAFE_componentWillUpdate!=="function"&&typeof d.componentWillUpdate!=="function"||(typeof d.componentWillUpdate==="function"&&d.componentWillUpdate(i,N,b),typeof d.UNSAFE_componentWillUpdate==="function"&&d.UNSAFE_componentWillUpdate(i,N,b)),typeof d.componentDidUpdate==="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=N),d.props=i,d.state=N,d.context=b,d=v):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),d=!1)}if(b=d,Xf(e,t),m=(t.flags&128)!==0,b||m){if(b=t.stateNode,or(t),m&&typeof o.getDerivedStateFromError!=="function")o=null,Fa=-1;else if(o=N1(b),t.mode&Da){St(!0);try{N1(b)}finally{St(!1)}}t.flags|=1,e!==null&&m?(t.child=Tl(t,e.child,null,u),t.child=Tl(t,null,o,u)):xa(e,t,o,u),t.memoizedState=b.state,e=t.child}else e=ns(e,t,u);return u=t.stateNode,d&&u.props!==i&&(Kr||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(t)||"a component"),Kr=!0),e}function PS(e,t,o,i){return sl(),t.flags|=256,xa(e,t,o,i),t.child}function Bg(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=K(t)||"Unknown",ST[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),ST[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=K(t)||"Unknown",xT[t]||(console.error("%s: Function components do not support contextType.",t),xT[t]=!0))}function Ng(e){return{baseLanes:e,cachePool:E0()}}function zg(e,t,o){return e=e!==null?e.childLanes&~o:0,t&&(e|=Qa),e}function BS(e,t,o){var i,u=t.pendingProps;c(t)&&(t.flags|=128);var d=!1,m=(t.flags&128)!==0;if((i=m)||(i=e!==null&&e.memoizedState===null?!1:(jt.current&zc)!==0),i&&(d=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ke){if(d?Ys(t):Xs(t),(e=It)?(o=oC(e,Uo),o=o!==null&&o.data!==Dl?o:null,o!==null&&(i={dehydrated:o,treeContext:T0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=L0(o),i.return=t,t.child=i,La=t,It=null)):o=null,o===null)throw xf(t,e),Fs(t);return yy(o)?t.lanes=32:t.lanes=536870912,null}var b=u.children;if(u=u.fallback,d){Xs(t);var v=t.mode;return b=$f({mode:"hidden",children:b},v),u=ol(u,v,o,null),b.return=t,u.return=t,b.sibling=u,t.child=b,u=t.child,u.memoizedState=Ng(o),u.childLanes=zg(e,i,o),t.memoizedState=Ab,$u(null,u)}return Ys(t),Ug(t,b)}var L=e.memoizedState;if(L!==null){var O=L.dehydrated;if(O!==null){if(m)t.flags&256?(Ys(t),t.flags&=-257,t=Hg(e,t,o)):t.memoizedState!==null?(Xs(t),t.child=e.child,t.flags|=128,t=null):(Xs(t),b=u.fallback,v=t.mode,u=$f({mode:"visible",children:u.children},v),b=ol(b,v,o,null),b.flags|=2,u.return=t,b.return=t,u.sibling=b,t.child=u,Tl(t,e.child,null,o),u=t.child,u.memoizedState=Ng(o),u.childLanes=zg(e,i,o),t.memoizedState=Ab,t=$u(null,u));else if(Ys(t),I0(),(o&536870912)!==0&&Jf(t),yy(O)){if(i=O.nextSibling&&O.nextSibling.dataset,i){b=i.dgst;var P=i.msg;v=i.stck;var A=i.cstck}d=P,i=b,u=v,O=A,b=d,v=O,b=b?Error(b):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),b.stack=u||"",b.digest=i,i=v===void 0?null:v,u={value:b,source:null,stack:i},typeof i==="string"&&lb.set(b,u),Nu(u),t=Hg(e,t,o)}else if(Jt||dr(e,t,o,!1),i=(o&e.childLanes)!==0,Jt||i){if(i=xt,i!==null&&(u=Qi(i,o),u!==0&&u!==L.retryLane))throw L.retryLane=u,Ra(e,u),Nt(i,e,u),Mb;gy(O)||eh(),t=Hg(e,t,o)}else gy(O)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,It=xo(O.nextSibling),La=t,Ke=!0,ii=null,Hn=!1,Co=null,Uo=!1,e!==null&&w0(t,e),t=Ug(t,u.children),t.flags|=4096);return t}}if(d)return Xs(t),b=u.fallback,v=t.mode,A=e.child,O=A.sibling,u=es(A,{mode:"hidden",children:u.children}),u.subtreeFlags=A.subtreeFlags&65011712,O!==null?b=es(O,b):(b=ol(b,v,o,null),b.flags|=2),b.return=t,u.return=t,u.sibling=b,t.child=u,$u(null,u),u=t.child,b=e.child.memoizedState,b===null?b=Ng(o):(v=b.cachePool,v!==null?(A=Zt._currentValue,v=v.parent!==A?{parent:A,pool:A}:v):v=E0(),b={baseLanes:b.baseLanes|o,cachePool:v}),u.memoizedState=b,u.childLanes=zg(e,i,o),t.memoizedState=Ab,$u(e.child,u);return L!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&Jf(t),Ys(t),o=e.child,e=o.sibling,o=es(o,{mode:"visible",children:u.children}),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function Ug(e,t){return t=$f({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $f(e,t){return e=S(22,e,null,t),e.lanes=0,e}function Hg(e,t,o){return Tl(t,e.child,null,o),e=Ug(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NS(e,t,o){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ym(e.return,t,o)}function Fg(e,t,o,i,u,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:o,tailMode:u,treeForkCount:d}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=o,m.tailMode=u,m.treeForkCount=d)}function zS(e,t,o){var i=t.pendingProps,u=i.revealOrder,d=i.tail,m=i.children,b=jt.current;if((i=(b&zc)!==0)?(b=b&$r|zc,t.flags|=128):b&=$r,we(jt,b,t),b=u==null?"null":u,u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!LT[b])if(LT[b]=!0,u==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(u==="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 u==="string")switch(u.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.',u,u.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.',u,u.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u);if(b=d==null?"null":d,!Yh[b])if(d==null){if(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")Yh[b]=!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 d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(Yh[b]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):u!=="forwards"&&u!=="backwards"&&u!=="unstable_legacy-backwards"&&(Yh[b]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d));e:if((u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&m!==void 0&&m!==null&&m!==!1)if(na(m)){for(b=0;b<m.length;b++)if(!V0(m[b],b))break e}else if(b=J(m),typeof b==="function"){if(b=b.call(m))for(var v=b.next(),L=0;!v.done;v=b.next()){if(!V0(v.value,L))break e;L++}}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?',u);if(xa(e,t,m,o),Ke?(Hs(),m=Cc):m=0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&NS(e,o,t);else if(e.tag===19)NS(e,o,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(u){case"forwards":o=t.child;for(u=null;o!==null;)e=o.alternate,e!==null&&Df(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Fg(t,!1,u,o,d,m);break;case"backwards":case"unstable_legacy-backwards":o=null,u=t.child;for(t.child=null;u!==null;){if(e=u.alternate,e!==null&&Df(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Fg(t,!0,o,null,d,m);break;case"together":Fg(t,!1,null,null,void 0,m);break;default:t.memoizedState=null}return t.child}function ns(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Fa=-1,mi|=t.lanes,(o&t.childLanes)===0)if(e!==null){if(dr(e,t,o,!1),(o&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,o=es(e,e.pendingProps),t.child=o;for(o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=es(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function qg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Sf(e)?!0:!1}function Zk(e,t,o){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),qs(t,Zt,e.memoizedState.cache),sl();break;case 27:case 5:Qe(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:qs(t,t.type,t.memoizedProps.value);break;case 12:(o&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var i=t.stateNode;i.effectDuration=-0,i.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,og(t),null;break;case 13:if(i=t.memoizedState,i!==null){if(i.dehydrated!==null)return Ys(t),t.flags|=128,null;if((o&t.child.childLanes)!==0)return BS(e,t,o);return Ys(t),e=ns(e,t,o),e!==null?e.sibling:null}Ys(t);break;case 19:var u=(e.flags&128)!==0;if(i=(o&t.childLanes)!==0,i||(dr(e,t,o,!1),i=(o&t.childLanes)!==0),u){if(i)return zS(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),we(jt,jt.current,t),i)break;else return null;case 22:return t.lanes=0,RS(e,t,o,t.pendingProps);case 24:qs(t,Zt,e.memoizedState.cache)}return ns(e,t,o)}function Vg(e,t,o){if(t._debugNeedsRemount&&e!==null){o=Um(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),o._debugStack=t._debugStack,o._debugTask=t._debugTask;var i=t.return;if(i===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,o.index=t.index,o.sibling=t.sibling,o.return=t.return,o.ref=t.ref,o._debugInfo=t._debugInfo,t===i.child)i.child=o;else{var u=i.child;if(u===null)throw Error("Expected parent to have a child.");for(;u.sibling!==t;)if(u=u.sibling,u===null)throw Error("Expected to find the previous sibling.");u.sibling=o}return t=i.deletions,t===null?(i.deletions=[e],i.flags|=16):t.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Jt=!0;else{if(!qg(e,o)&&(t.flags&128)===0)return Jt=!1,Zk(e,t,o);Jt=(e.flags&131072)!==0?!0:!1}else{if(Jt=!1,i=Ke)Hs(),i=(t.flags&1048576)!==0;i&&(i=t.index,Hs(),C0(t,Cc,i))}switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=Vs(t.elementType),t.type=e,typeof e==="function")zm(e)?(i=dl(e,i),t.tag=1,t.type=e=al(e),t=OS(null,t,e,i,o)):(t.tag=0,Bg(t,e),t.type=e=al(e),t=Pg(null,t,e,i,o));else{if(e!==void 0&&e!==null){if(u=e.$$typeof,u===cc){t.tag=11,t.type=e=Nm(e),t=MS(null,t,e,i,o);break e}else if(u===ph){t.tag=14,t=AS(null,t,e,i,o);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===vo&&(t=" Did you wrap a component in React.lazy() more than once?"),o=K(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Pg(e,t,t.type,t.pendingProps,o);case 1:return i=t.type,u=dl(i,t.pendingProps),OS(e,t,i,u,o);case 3:e:{if(G(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");i=t.pendingProps;var d=t.memoizedState;u=d.element,eg(e,t),ju(t,i,null,o);var m=t.memoizedState;if(i=m.cache,qs(t,Zt,i),i!==d.cache&&Xm(t,[Zt],o,!0),Vu(),i=m.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=PS(e,t,i,o);break e}else if(i!==u){u=po(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Nu(u),t=PS(e,t,i,o);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}It=xo(e.firstChild),La=t,Ke=!0,ii=null,Hn=!1,Co=null,Uo=!0,o=Q1(t,null,i,o);for(t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(sl(),i===u){t=ns(e,t,o);break e}xa(e,t,i,o)}t=t.child}return t;case 26:return Xf(e,t),e===null?(o=uC(t.type,null,t.pendingProps,null))?t.memoizedState=o:Ke||(o=t.type,e=t.pendingProps,i=Oe(Js.current),i=nh(i).createElement(o),i[Sa]=t,i[za]=e,va(i,o,e),ve(i),t.stateNode=i):t.memoizedState=uC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qe(t),e===null&&Ke&&(i=Oe(Js.current),u=pe(),i=t.stateNode=lC(t.type,t.pendingProps,i,u,!1),Hn||(u=WL(i,t.type,t.pendingProps,u),u!==null&&(nl(t,0).serverProps=u)),La=t,Uo=!0,u=It,Qs(t.type)?(Qb=u,It=xo(i.firstChild)):It=u),xa(e,t,t.pendingProps.children,o),Xf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ke&&(d=pe(),i=km(t.type,d.ancestorInfo),u=It,(m=!u)||(m=zR(u,t.type,t.pendingProps,Uo),m!==null?(t.stateNode=m,Hn||(d=WL(m,t.type,t.pendingProps,d),d!==null&&(nl(t,0).serverProps=d)),La=t,It=xo(m.firstChild),Uo=!1,d=!0):d=!1,m=!d),m&&(i&&xf(t,u),Fs(t))),Qe(t),u=t.type,d=t.pendingProps,m=e!==null?e.memoizedProps:null,i=d.children,py(u,d)?i=null:m!==null&&py(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=sg(e,t,qk,null,null,o),ad._currentValue=u),Xf(e,t),xa(e,t,i,o),t.child;case 6:return e===null&&Ke&&(o=t.pendingProps,e=pe(),i=e.ancestorInfo.current,o=i!=null?uf(o,i.tag,e.ancestorInfo.implicitRootScope):!0,e=It,(i=!e)||(i=UR(e,t.pendingProps,Uo),i!==null?(t.stateNode=i,La=t,It=null,i=!0):i=!1,i=!i),i&&(o&&xf(t,e),Fs(t))),null;case 13:return BS(e,t,o);case 4:return G(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Tl(t,null,i,o):xa(e,t,i,o),t.child;case 11:return MS(e,t,t.type,t.pendingProps,o);case 7:return xa(e,t,t.pendingProps,o),t.child;case 8:return xa(e,t,t.pendingProps.children,o),t.child;case 12:return t.flags|=4,t.flags|=2048,i=t.stateNode,i.effectDuration=-0,i.passiveEffectDuration=-0,xa(e,t,t.pendingProps.children,o),t.child;case 10:return i=t.type,u=t.pendingProps,d=u.value,"value"in u||CT||(CT=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),qs(t,i,d),xa(e,t,u.children,o),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,typeof i!=="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."),il(t),u=_t(u),i=mb(i,u,void 0),t.flags|=1,xa(e,t,i,o),t.child;case 14:return AS(e,t,t.type,t.pendingProps,o);case 15:return kS(e,t,t.type,t.pendingProps,o);case 19:return zS(e,t,o);case 31:return Wk(e,t,o);case 22:return RS(e,t,o,t.pendingProps);case 24:return il(t),i=_t(Zt),e===null?(u=Qm(),u===null&&(u=xt,d=$m(),u.pooledCache=d,ll(d),d!==null&&(u.pooledCacheLanes|=o),u=d),t.memoizedState={parent:i,cache:u},Jm(t),qs(t,Zt,u)):((e.lanes&o)!==0&&(eg(e,t),ju(t,null,null,o),Vu()),u=e.memoizedState,d=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),qs(t,Zt,i)):(i=d.cache,qs(t,Zt,i),i!==u.cache&&Xm(t,[Zt],o,!0))),xa(e,t,t.pendingProps.children,o),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 ss(e){e.flags|=4}function jg(e,t,o,i,u){if(t=(e.mode&gD)!==Ae)t=!1;if(t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(yL())e.flags|=8192;else throw Cl=Hh,yb}else e.flags&=-16777217}function US(e,t){if(t.type!=="stylesheet"||(t.state.loading&jo)!==Pl)e.flags&=-16777217;else if(e.flags|=16777216,!pC(t))if(yL())e.flags|=8192;else throw Cl=Hh,yb}function Wf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sr():536870912,e.lanes|=t,kl|=t)}function Wu(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,i=0;if(t)if((e.mode&Ue)!==Ae){for(var{selfBaseDuration:u,child:d}=e;d!==null;)o|=d.lanes|d.childLanes,i|=d.subtreeFlags&65011712,i|=d.flags&65011712,u+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=u}else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else if((e.mode&Ue)!==Ae){u=e.actualDuration,d=e.selfBaseDuration;for(var m=e.child;m!==null;)o|=m.lanes|m.childLanes,i|=m.subtreeFlags,i|=m.flags,u+=m.actualDuration,d+=m.treeBaseDuration,m=m.sibling;e.actualDuration=u,e.treeBaseDuration=d}else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=o,t}function Qk(e,t,o){var i=t.pendingProps;switch(Vm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:if(o=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),as(Zt,t),le(t),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),e===null||e.child===null)cr(t)?(Gm(),ss(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jm());return Lt(t),null;case 26:var{type:u,memoizedState:d}=t;return e===null?(ss(t),d!==null?(Lt(t),US(t,d)):(Lt(t),jg(t,u,null,i,o))):d?d!==e.memoizedState?(ss(t),Lt(t),US(t,d)):(Lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ss(t),Lt(t),jg(t,u,e,i,o)),null;case 27:if(je(t),o=Oe(Js.current),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ss(t);else{if(!i){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 Lt(t),null}e=pe(),cr(t)?M0(t,e):(e=lC(u,i,o,e,!0),t.stateNode=e,ss(t))}return Lt(t),null;case 5:if(je(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ss(t);else{if(!i){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 Lt(t),null}var m=pe();if(cr(t))M0(t,m);else{switch(d=Oe(Js.current),km(u,m.ancestorInfo),m=m.context,d=nh(d),m){case iu:d=d.createElementNS(Rr,u);break;case fp:d=d.createElementNS(Sh,u);break;default:switch(u){case"svg":d=d.createElementNS(Rr,u);break;case"math":d=d.createElementNS(Sh,u);break;case"script":d=d.createElement("div"),d.innerHTML="<script></script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is==="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is==="string"?d.createElement(u,{is:i.is}):d.createElement(u),u.indexOf("-")===-1&&(u!==u.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),Object.prototype.toString.call(d)!=="[object HTMLUnknownElement]"||nn.call(XT,u)||(XT[u]=!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.",u)))}}d[Sa]=t,d[za]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)d.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=d;e:switch(va(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ss(t)}}return Lt(t),jg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,o),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ss(t);else{if(typeof i!=="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=Oe(Js.current),o=pe(),cr(t)){if(e=t.stateNode,o=t.memoizedProps,u=!Hn,i=null,d=La,d!==null)switch(d.tag){case 3:u&&(u=sC(e,o,i),u!==null&&(nl(t,0).serverProps=u));break;case 27:case 5:i=d.memoizedProps,u&&(u=sC(e,o,i),u!==null&&(nl(t,0).serverProps=u))}e[Sa]=t,e=e.nodeValue===o||i!==null&&i.suppressHydrationWarning===!0||jL(e.nodeValue,o)?!0:!1,e||Fs(t,!0)}else u=o.ancestorInfo.current,u!=null&&uf(i,u.tag,o.ancestorInfo.implicitRootScope),e=nh(e).createTextNode(i),e[Sa]=t,t.stateNode=e}return Lt(t),null;case 31:if(o=t.memoizedState,e===null||e.memoizedState!==null){if(i=cr(t),o!==null){if(e===null){if(!i)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[Sa]=t,Lt(t),(t.mode&Ue)!==Ae&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Gm(),sl(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Ue)!==Ae&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=jm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e){if(t.flags&256)return yo(t),t;return yo(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=i,d=cr(t),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[Sa]=t,Lt(t),(t.mode&Ue)!==Ae&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration))}else Gm(),sl(),(t.flags&128)===0&&(u=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Ue)!==Ae&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration));u=!1}else u=jm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u){if(t.flags&256)return yo(t),t;return yo(t),null}}if(yo(t),(t.flags&128)!==0)return t.lanes=o,(t.mode&Ue)!==Ae&&Hu(t),t;return o=i!==null,e=e!==null&&e.memoizedState!==null,o&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),o!==e&&o&&(t.child.flags|=8192),Wf(t,t.updateQueue),Lt(t),(t.mode&Ue)!==Ae&&o&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return le(t),e===null&&ly(t.stateNode.containerInfo),Lt(t),null;case 10:return as(t.type,t),Lt(t),null;case 19:if(Le(jt,t),i=t.memoizedState,i===null)return Lt(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)Wu(i,!1);else{if(Ot!==vs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Df(e),d!==null){t.flags|=128,Wu(i,!1),e=d.updateQueue,t.updateQueue=e,Wf(t,e),t.subtreeFlags=0,e=o;for(o=t.child;o!==null;)S0(o,e),o=o.sibling;return we(jt,jt.current&$r|zc,t),Ke&&ts(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&da()>Jh&&(t.flags|=128,u=!0,Wu(i,!1),t.lanes=4194304)}else{if(!u)if(e=Df(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Wf(t,e),Wu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ke)return Lt(t),null}else 2*da()-i.renderingStartTime>Jh&&o!==536870912&&(t.flags|=128,u=!0,Wu(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}if(i.tail!==null)return e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=da(),e.sibling=null,o=jt.current,o=u?o&$r|zc:o&$r,we(jt,o,t),Ke&&ts(t,i.treeForkCount),e;return Lt(t),null;case 22:case 23:return yo(t),ag(t),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(o&536870912)!==0&&(t.flags&128)===0&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),o=t.updateQueue,o!==null&&Wf(t,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==o&&(t.flags|=2048),e!==null&&Le(Sl,t),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),as(Zt,t),Lt(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 Kk(e,t){switch(Vm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Hu(t),t):null;case 3:return as(Zt,t),le(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(yo(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Hu(t),t):null;case 13:if(yo(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.");sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Hu(t),t):null;case 19:return Le(jt,t),null;case 4:return le(t),null;case 10:return as(t.type,t),null;case 22:case 23:return yo(t),ag(t),e!==null&&Le(Sl,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Hu(t),t):null;case 24:return as(Zt,t),null;case 25:return null;default:return null}}function HS(e,t){switch(Vm(t),t.tag){case 3:as(Zt,t),le(t);break;case 26:case 27:case 5:je(t);break;case 4:le(t);break;case 31:t.memoizedState!==null&&yo(t);break;case 13:yo(t);break;case 19:Le(jt,t);break;case 10:as(t.type,t);break;case 22:case 23:yo(t),ag(t),e!==null&&Le(Sl,t);break;case 24:as(Zt,t)}}function Mn(e){return(e.mode&Ue)!==Ae}function FS(e,t){Mn(e)?(In(),Zu(t,e),wn()):Zu(t,e)}function Gg(e,t,o){Mn(e)?(In(),gr(o,e,t),wn()):gr(o,e,t)}function Zu(e,t){try{var o=t.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var u=i.next;o=u;do{if((o.tag&e)===e&&(i=void 0,(e&qa)!==qh&&(ou=!0),i=ie(t,SD,o),(e&qa)!==qh&&(ou=!1),i!==void 0&&typeof i!=="function")){var d=void 0;d=(o.tag&wo)!==0?"useLayoutEffect":(o.tag&qa)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then==="function"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,f,L,m!==null?`
137
+ `+m:"",x!==null?`
138
+ `+x:"",S!==null?`
139
+ `+S:""))}}f=t.stateNode,m=Y(o)||"Component",f.render||(o.prototype&&typeof o.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",m):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",m)),!f.getInitialState||f.getInitialState.isReactClassApproved||f.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?",m),f.getDefaultProps&&!f.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.",m),f.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),o.childContextTypes&&!XT.has(o)&&(XT.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",m)),o.contextTypes&&!GT.has(o)&&(GT.add(o),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)",m)),typeof f.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.",m),o.prototype&&o.prototype.isPureReactComponent&&typeof f.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.",Y(o)||"A pure component"),typeof f.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof f.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().",m),typeof f.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof f.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m),x=f.props!==r,f.props!==void 0&&x&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m),f.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.",m,m),typeof f.getSnapshotBeforeUpdate!=="function"||typeof f.componentDidUpdate==="function"||FT.has(o)||(FT.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Y(o))),typeof f.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof f.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof o.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m),(x=f.state)&&(typeof x!=="object"||ha(x))&&console.error("%s.state: must be set to an object or null",m),typeof f.getChildContext==="function"&&typeof o.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m),f=t.stateNode,f.props=r,f.state=t.memoizedState,f.refs={},Mg(t),m=o.contextType,f.context=typeof m==="object"&&m!==null?Ft(m):wr,f.state===r&&(m=Y(o)||"Component",VT.has(m)||(VT.add(m),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.",m))),t.mode&ja&&yn.recordLegacyContextWarning(t,f),yn.recordUnsafeLifecycleWarnings(t,f),f.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m==="function"&&(sy(t,o,m,r),f.state=t.memoizedState),typeof o.getDerivedStateFromProps==="function"||typeof f.getSnapshotBeforeUpdate==="function"||typeof f.UNSAFE_componentWillMount!=="function"&&typeof f.componentWillMount!=="function"||(m=f.state,typeof f.componentWillMount==="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount==="function"&&f.UNSAFE_componentWillMount(),m!==f.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",j(t)||"Component"),Jb.enqueueReplaceState(f,f.state,null)),mc(t,r,f,c),hc(),f.state=t.memoizedState),typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),f=!0}else if(e===null){f=t.stateNode;var O=t.memoizedProps;x=_i(o,O),f.props=x;var P=f.context;S=o.contextType,m=wr,typeof S==="object"&&S!==null&&(m=Ft(S)),L=o.getDerivedStateFromProps,S=typeof L==="function"||typeof f.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,S||typeof f.UNSAFE_componentWillReceiveProps!=="function"&&typeof f.componentWillReceiveProps!=="function"||(O||P!==m)&&JS(t,f,r,m),Dr=!1;var _=t.memoizedState;f.state=_,mc(t,r,f,c),hc(),P=t.memoizedState,O||_!==P||Dr?(typeof L==="function"&&(sy(t,o,L,r),P=t.memoizedState),(x=Dr||KS(t,o,x,r,_,P,m))?(S||typeof f.UNSAFE_componentWillMount!=="function"&&typeof f.componentWillMount!=="function"||(typeof f.componentWillMount==="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount==="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728)):(typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=P),f.props=r,f.state=P,f.context=m,f=x):(typeof f.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Oe&&(t.flags|=134217728),f=!1)}else{f=t.stateNode,Ig(e,t),m=t.memoizedProps,S=_i(o,m),f.props=S,L=t.pendingProps,_=f.context,P=o.contextType,x=wr,typeof P==="object"&&P!==null&&(x=Ft(P)),O=o.getDerivedStateFromProps,(P=typeof O==="function"||typeof f.getSnapshotBeforeUpdate==="function")||typeof f.UNSAFE_componentWillReceiveProps!=="function"&&typeof f.componentWillReceiveProps!=="function"||(m!==L||_!==x)&&JS(t,f,r,x),Dr=!1,_=t.memoizedState,f.state=_,mc(t,r,f,c),hc();var U=t.memoizedState;m!==L||_!==U||Dr||e!==null&&e.dependencies!==null&&Yf(e.dependencies)?(typeof O==="function"&&(sy(t,o,O,r),U=t.memoizedState),(S=Dr||KS(t,o,S,r,_,U,x)||e!==null&&e.dependencies!==null&&Yf(e.dependencies))?(P||typeof f.UNSAFE_componentWillUpdate!=="function"&&typeof f.componentWillUpdate!=="function"||(typeof f.componentWillUpdate==="function"&&f.componentWillUpdate(r,U,x),typeof f.UNSAFE_componentWillUpdate==="function"&&f.UNSAFE_componentWillUpdate(r,U,x)),typeof f.componentDidUpdate==="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!=="function"||m===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),f.props=r,f.state=U,f.context=x,f=S):(typeof f.componentDidUpdate!=="function"||m===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),f=!1)}if(x=f,xp(e,t),m=(t.flags&128)!==0,x||m){if(x=t.stateNode,ds(t),m&&typeof o.getDerivedStateFromError!=="function")o=null,Ka=-1;else if(o=hT(x),t.mode&ja){_t(!0);try{hT(x)}finally{_t(!1)}}t.flags|=1,e!==null&&m?(t.child=ji(t,e.child,null,c),t.child=ji(t,null,o,c)):Da(e,t,o,c),t.memoizedState=x.state,e=t.child}else e=bs(e,t,c);return c=t.stateNode,f&&c.props!==r&&(xu||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",j(t)||"a component"),xu=!0),e}function fL(e,t,o,r){return wi(),t.flags|=256,Da(e,t,o,r),t.child}function cy(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=Y(t)||"Unknown",KT[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),KT[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Y(t)||"Unknown",ZT[t]||(console.error("%s: Function components do not support contextType.",t),ZT[t]=!0))}function dy(e){return{baseLanes:e,cachePool:cS()}}function fy(e,t,o){return e=e!==null?e.childLanes&~o:0,t&&(e|=co),e}function pL(e,t,o){var r,c=t.pendingProps;u(t)&&(t.flags|=128);var f=!1,m=(t.flags&128)!==0;if((r=m)||(r=e!==null&&e.memoizedState===null?!1:(aa.current&ud)!==0),r&&(f=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(f?fr(t):pr(t),(e=Bt)?(o=OC(e,Zo),o=o!==null&&o.data!==Ki?o:null,o!==null&&(r={dehydrated:o,treeContext:tS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=J0(o),r.return=t,t.child=r,Pa=t,Bt=null)):o=null,o===null)throw Gf(t,e),ir(t);return Gy(o)?t.lanes=32:t.lanes=536870912,null}var x=c.children;if(c=c.fallback,f){pr(t);var S=t.mode;return x=vp({mode:"hidden",children:x},S),c=Ci(c,S,o,null),x.return=t,c.return=t,x.sibling=c,t.child=x,c=t.child,c.memoizedState=dy(o),c.childLanes=fy(e,r,o),t.memoizedState=ax,xc(null,c)}return fr(t),py(t,x)}var L=e.memoizedState;if(L!==null){var O=L.dehydrated;if(O!==null){if(m)t.flags&256?(fr(t),t.flags&=-257,t=hy(e,t,o)):t.memoizedState!==null?(pr(t),t.child=e.child,t.flags|=128,t=null):(pr(t),x=c.fallback,S=t.mode,c=vp({mode:"visible",children:c.children},S),x=Ci(x,S,o,null),x.flags|=2,c.return=t,x.return=t,c.sibling=x,t.child=c,ji(t,e.child,null,o),c=t.child,c.memoizedState=dy(o),c.childLanes=fy(e,r,o),t.memoizedState=ax,t=xc(null,c));else if(fr(t),oS(),(o&536870912)!==0&&wp(t),Gy(O)){if(r=O.nextSibling&&O.nextSibling.dataset,r){x=r.dgst;var P=r.msg;S=r.stck;var _=r.cstck}f=P,r=x,c=S,O=_,x=f,S=O,x=x?Error(x):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),x.stack=c||"",x.digest=r,r=S===void 0?null:S,c={value:x,source:null,stack:r},typeof r==="string"&&Pb.set(x,c),lc(c),t=hy(e,t,o)}else if(ua||Dl(e,t,o,!1),r=(o&e.childLanes)!==0,ua||r){if(r=At,r!==null&&(c=yi(r,o),c!==0&&c!==L.retryLane))throw L.retryLane=c,qa(e,c),Zt(r,e,c),tx;jy(O)||kp(),t=hy(e,t,o)}else jy(O)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,Bt=Ro(O.nextSibling),Pa=t,at=!0,kr=null,Qn=!1,Oo=null,Zo=!1,e!==null&&aS(t,e),t=py(t,c.children),t.flags|=4096);return t}}if(f)return pr(t),x=c.fallback,S=t.mode,_=e.child,O=_.sibling,c=hs(_,{mode:"hidden",children:c.children}),c.subtreeFlags=_.subtreeFlags&65011712,O!==null?x=hs(O,x):(x=Ci(x,S,o,null),x.flags|=2),x.return=t,c.return=t,c.sibling=x,t.child=c,xc(null,c),c=t.child,x=e.child.memoizedState,x===null?x=dy(o):(S=x.cachePool,S!==null?(_=ra._currentValue,S=S.parent!==_?{parent:_,pool:_}:S):S=cS(),x={baseLanes:x.baseLanes|o,cachePool:S}),c.memoizedState=x,c.childLanes=fy(e,r,o),t.memoizedState=ax,xc(e.child,c);return L!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&wp(t),fr(t),o=e.child,e=o.sibling,o=hs(o,{mode:"visible",children:c.children}),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function py(e,t){return t=vp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vp(e,t){return e=v(22,e,null,t),e.lanes=0,e}function hy(e,t,o){return ji(t,e.child,null,o),e=py(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hL(e,t,o){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vg(e.return,t,o)}function my(e,t,o,r,c,f){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:o,tailMode:c,treeForkCount:f}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=r,m.tail=o,m.tailMode=c,m.treeForkCount=f)}function mL(e,t,o){var r=t.pendingProps,c=r.revealOrder,f=r.tail,m=r.children,x=aa.current;if((r=(x&ud)!==0)?(x=x&mu|ud,t.flags|=128):x&=mu,ye(aa,x,t),x=c==null?"null":c,c!=="forwards"&&c!=="unstable_legacy-backwards"&&c!=="together"&&c!=="independent"&&!JT[x])if(JT[x]=!0,c==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(c==="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 c==="string")switch(c.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.',c,c.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.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c);if(x=f==null?"null":f,!bh[x])if(f==null){if(c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")bh[x]=!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 f!=="visible"&&f!=="collapsed"&&f!=="hidden"?(bh[x]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',f)):c!=="forwards"&&c!=="backwards"&&c!=="unstable_legacy-backwards"&&(bh[x]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',f));e:if((c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&m!==void 0&&m!==null&&m!==!1)if(ha(m)){for(x=0;x<m.length;x++)if(!vS(m[x],x))break e}else if(x=X(m),typeof x==="function"){if(x=x.call(m))for(var S=x.next(),L=0;!S.done;S=x.next()){if(!vS(S.value,L))break e;L++}}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?',c);if(Da(e,t,m,o),at?(rr(),m=$c):m=0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hL(e,o,t);else if(e.tag===19)hL(e,o,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(c){case"forwards":o=t.child;for(c=null;o!==null;)e=o.alternate,e!==null&&np(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=t.child,t.child=null):(c=o.sibling,o.sibling=null),my(t,!1,c,o,f,m);break;case"backwards":case"unstable_legacy-backwards":o=null,c=t.child;for(t.child=null;c!==null;){if(e=c.alternate,e!==null&&np(e)===null){t.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e}my(t,!0,o,null,f,m);break;case"together":my(t,!1,null,null,void 0,m);break;default:t.memoizedState=null}return t.child}function bs(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Ka=-1,Pr|=t.lanes,(o&t.childLanes)===0)if(e!==null){if(Dl(e,t,o,!1),(o&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,o=hs(e,e.pendingProps),t.child=o;for(o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=hs(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function gy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Yf(e)?!0:!1}function YR(e,t,o){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),lr(t,ra,e.memoizedState.cache),wi();break;case 27:case 5:Ue(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:lr(t,t.type,t.memoizedProps.value);break;case 12:(o&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,_g(t),null;break;case 13:if(r=t.memoizedState,r!==null){if(r.dehydrated!==null)return fr(t),t.flags|=128,null;if((o&t.child.childLanes)!==0)return pL(e,t,o);return fr(t),e=bs(e,t,o),e!==null?e.sibling:null}fr(t);break;case 19:var c=(e.flags&128)!==0;if(r=(o&t.childLanes)!==0,r||(Dl(e,t,o,!1),r=(o&t.childLanes)!==0),c){if(r)return mL(e,t,o);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ye(aa,aa.current,t),r)break;else return null;case 22:return t.lanes=0,iL(e,t,o,t.pendingProps);case 24:lr(t,ra,e.memoizedState.cache)}return bs(e,t,o)}function yy(e,t,o){if(t._debugNeedsRemount&&e!==null){o=pg(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),o._debugStack=t._debugStack,o._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,o.index=t.index,o.sibling=t.sibling,o.return=t.return,o.ref=t.ref,o._debugInfo=t._debugInfo,t===r.child)r.child=o;else{var c=r.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==t;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=o}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ua=!0;else{if(!gy(e,o)&&(t.flags&128)===0)return ua=!1,YR(e,t,o);ua=(e.flags&131072)!==0?!0:!1}else{if(ua=!1,r=at)rr(),r=(t.flags&1048576)!==0;r&&(r=t.index,rr(),eS(t,$c,r))}switch(t.lanes=0,t.tag){case 16:e:if(r=t.pendingProps,e=ur(t.elementType),t.type=e,typeof e==="function")fg(e)?(r=_i(e,r),t.tag=1,t.type=e=Li(e),t=dL(null,t,e,r,o)):(t.tag=0,cy(t,e),t.type=e=Li(e),t=uy(null,t,e,r,o));else{if(e!==void 0&&e!==null){if(c=e.$$typeof,c===Pc){t.tag=11,t.type=e=dg(e),t=nL(null,t,e,r,o);break e}else if(c===Up){t.tag=14,t=sL(null,t,e,r,o);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===_o&&(t=" Did you wrap a component in React.lazy() more than once?"),o=Y(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return uy(e,t,t.type,t.pendingProps,o);case 1:return r=t.type,c=_i(r,t.pendingProps),dL(e,t,r,c,o);case 3:e:{if(K(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var f=t.memoizedState;c=f.element,Ig(e,t),mc(t,r,null,o);var m=t.memoizedState;if(r=m.cache,lr(t,ra,r),r!==f.cache&&Sg(t,[ra],o,!0),hc(),r=m.element,f.isDehydrated)if(f={element:r,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=fL(e,t,r,o);break e}else if(r!==c){c=wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),lc(c),t=fL(e,t,r,o);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}Bt=Ro(e.firstChild),Pa=t,at=!0,kr=null,Qn=!1,Oo=null,Zo=!0,o=IT(t,null,r,o);for(t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(wi(),r===c){t=bs(e,t,o);break e}Da(e,t,r,o)}t=t.child}return t;case 26:return xp(e,t),e===null?(o=UC(t.type,null,t.pendingProps,null))?t.memoizedState=o:at||(o=t.type,e=t.pendingProps,r=Se(xr.current),r=Rp(r).createElement(o),r[Oa]=t,r[Wa]=e,Ea(r,o,e),Ae(r),t.stateNode=r):t.memoizedState=UC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ue(t),e===null&&at&&(r=Se(xr.current),c=be(),r=t.stateNode=zC(t.type,t.pendingProps,r,c,!1),Qn||(c=kC(r,t.type,t.pendingProps,c),c!==null&&(Ti(t,0).serverProps=c)),Pa=t,Zo=!0,c=Bt,yr(t.type)?(wx=c,Bt=Ro(r.firstChild)):Bt=c),Da(e,t,t.pendingProps.children,o),xp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&(f=be(),r=og(t.type,f.ancestorInfo),c=Bt,(m=!c)||(m=P_(c,t.type,t.pendingProps,Zo),m!==null?(t.stateNode=m,Qn||(f=kC(m,t.type,t.pendingProps,f),f!==null&&(Ti(t,0).serverProps=f)),Pa=t,Bt=Ro(m.firstChild),Zo=!1,f=!0):f=!1,m=!f),m&&(r&&Gf(t,c),ir(t))),Ue(t),c=t.type,f=t.pendingProps,m=e!==null?e.memoizedProps:null,r=f.children,qy(c,f)?r=null:m!==null&&qy(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Eg(e,t,HR,null,null,o),Md._currentValue=c),xp(e,t),Da(e,t,r,o),t.child;case 6:return e===null&&at&&(o=t.pendingProps,e=be(),r=e.ancestorInfo.current,o=r!=null?Pf(o,r.tag,e.ancestorInfo.implicitRootScope):!0,e=Bt,(r=!e)||(r=B_(e,t.pendingProps,Zo),r!==null?(t.stateNode=r,Pa=t,Bt=null,r=!0):r=!1,r=!r),r&&(o&&Gf(t,e),ir(t))),null;case 13:return pL(e,t,o);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,o):Da(e,t,r,o),t.child;case 11:return nL(e,t,t.type,t.pendingProps,o);case 7:return Da(e,t,t.pendingProps,o),t.child;case 8:return Da(e,t,t.pendingProps.children,o),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,Da(e,t,t.pendingProps.children,o),t.child;case 10:return r=t.type,c=t.pendingProps,f=c.value,"value"in c||ew||(ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),lr(t,r,f),Da(e,t,c.children,o),t.child;case 9:return c=t.type._context,r=t.pendingProps.children,typeof r!=="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."),ki(t),c=Ft(c),r=Vb(r,c,void 0),t.flags|=1,Da(e,t,r,o),t.child;case 14:return sL(e,t,t.type,t.pendingProps,o);case 15:return rL(e,t,t.type,t.pendingProps,o);case 19:return mL(e,t,o);case 31:return XR(e,t,o);case 22:return iL(e,t,o,t.pendingProps);case 24:return ki(t),r=Ft(ra),e===null?(c=wg(),c===null&&(c=At,f=Lg(),c.pooledCache=f,Mi(f),f!==null&&(c.pooledCacheLanes|=o),c=f),t.memoizedState={parent:r,cache:c},Mg(t),lr(t,ra,c)):((e.lanes&o)!==0&&(Ig(e,t),mc(t,null,null,o),hc()),c=e.memoizedState,f=t.memoizedState,c.parent!==r?(c={parent:r,cache:r},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),lr(t,ra,r)):(r=f.cache,lr(t,ra,r),r!==c.cache&&Sg(t,[ra],o,!0))),Da(e,t,t.pendingProps.children,o),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 xs(e){e.flags|=4}function by(e,t,o,r,c){if(t=(e.mode&pD)!==Oe)t=!1;if(t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if($L())e.flags|=8192;else throw Vi=fh,Gb}else e.flags&=-16777217}function gL(e,t){if(t.type!=="stylesheet"||(t.state.loading&tn)!==tl)e.flags&=-16777217;else if(e.flags|=16777216,!GC(t))if($L())e.flags|=8192;else throw Vi=fh,Gb}function Sp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kl():536870912,e.lanes|=t,Wi|=t)}function vc(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var r=null;o!==null;)o.alternate!==null&&(r=o),o=o.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,r=0;if(t)if((e.mode&je)!==Oe){for(var{selfBaseDuration:c,child:f}=e;f!==null;)o|=f.lanes|f.childLanes,r|=f.subtreeFlags&65011712,r|=f.flags&65011712,c+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=c}else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=e,c=c.sibling;else if((e.mode&je)!==Oe){c=e.actualDuration,f=e.selfBaseDuration;for(var m=e.child;m!==null;)o|=m.lanes|m.childLanes,r|=m.subtreeFlags,r|=m.flags,c+=m.actualDuration,f+=m.treeBaseDuration,m=m.sibling;e.actualDuration=c,e.treeBaseDuration=f}else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=r,e.childLanes=o,t}function $R(e,t,o){var r=t.pendingProps;switch(yg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:if(o=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),gs(ra,t),pe(t),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),e===null||e.child===null)_l(t)?(xg(),xs(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bg());return Dt(t),null;case 26:var{type:c,memoizedState:f}=t;return e===null?(xs(t),f!==null?(Dt(t),gL(t,f)):(Dt(t),by(t,c,null,r,o))):f?f!==e.memoizedState?(xs(t),Dt(t),gL(t,f)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&xs(t),Dt(t),by(t,c,e,r,o)),null;case 27:if(He(t),o=Se(xr.current),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xs(t);else{if(!r){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 Dt(t),null}e=be(),_l(t)?nS(t,e):(e=zC(c,r,o,e,!0),t.stateNode=e,xs(t))}return Dt(t),null;case 5:if(He(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xs(t);else{if(!r){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 Dt(t),null}var m=be();if(_l(t))nS(t,m);else{switch(f=Se(xr.current),og(c,m.ancestorInfo),m=m.context,f=Rp(f),m){case Mu:f=f.createElementNS(Ql,c);break;case zh:f=f.createElementNS(Yp,c);break;default:switch(c){case"svg":f=f.createElementNS(Ql,c);break;case"math":f=f.createElementNS(Yp,c);break;case"script":f=f.createElement("div"),f.innerHTML="<script></script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof r.is==="string"?f.createElement("select",{is:r.is}):f.createElement("select"),r.multiple?f.multiple=!0:r.size&&(f.size=r.size);break;default:f=typeof r.is==="string"?f.createElement(c,{is:r.is}):f.createElement(c),c.indexOf("-")===-1&&(c!==c.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),Object.prototype.toString.call(f)!=="[object HTMLUnknownElement]"||hn.call(Tw,c)||(Tw[c]=!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.",c)))}}f[Oa]=t,f[Wa]=r;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)f.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=f;e:switch(Ea(f,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&xs(t)}}return Dt(t),by(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,o),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&xs(t);else{if(typeof r!=="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=Se(xr.current),o=be(),_l(t)){if(e=t.stateNode,o=t.memoizedProps,c=!Qn,r=null,f=Pa,f!==null)switch(f.tag){case 3:c&&(c=BC(e,o,r),c!==null&&(Ti(t,0).serverProps=c));break;case 27:case 5:r=f.memoizedProps,c&&(c=BC(e,o,r),c!==null&&(Ti(t,0).serverProps=c))}e[Oa]=t,e=e.nodeValue===o||r!==null&&r.suppressHydrationWarning===!0||SC(e.nodeValue,o)?!0:!1,e||ir(t,!0)}else c=o.ancestorInfo.current,c!=null&&Pf(r,c.tag,o.ancestorInfo.implicitRootScope),e=Rp(e).createTextNode(r),e[Oa]=t,t.stateNode=e}return Dt(t),null;case 31:if(o=t.memoizedState,e===null||e.memoizedState!==null){if(r=_l(t),o!==null){if(e===null){if(!r)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[Oa]=t,Dt(t),(t.mode&je)!==Oe&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else xg(),wi(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,Dt(t),(t.mode&je)!==Oe&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=bg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),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 Dt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=r,f=_l(t),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");f[Oa]=t,Dt(t),(t.mode&je)!==Oe&&c!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration))}else xg(),wi(),(t.flags&128)===0&&(c=t.memoizedState=null),t.flags|=4,Dt(t),(t.mode&je)!==Oe&&c!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=bg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=o,(t.mode&je)!==Oe&&dc(t),t;return o=r!==null,e=e!==null&&e.memoizedState!==null,o&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),f=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(f=r.memoizedState.cachePool.pool),f!==c&&(r.flags|=2048)),o!==e&&o&&(t.child.flags|=8192),Sp(t,t.updateQueue),Dt(t),(t.mode&je)!==Oe&&o&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return pe(t),e===null&&Py(t.stateNode.containerInfo),Dt(t),null;case 10:return gs(t.type,t),Dt(t),null;case 19:if(ge(aa,t),r=t.memoizedState,r===null)return Dt(t),null;if(c=(t.flags&128)!==0,f=r.rendering,f===null)if(c)vc(r,!1);else{if(Yt!==Os||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=np(e),f!==null){t.flags|=128,vc(r,!1),e=f.updateQueue,t.updateQueue=e,Sp(t,e),t.subtreeFlags=0,e=o;for(o=t.child;o!==null;)K0(o,e),o=o.sibling;return ye(aa,aa.current&mu|ud,t),at&&ms(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&La()>wh&&(t.flags|=128,c=!0,vc(r,!1),t.lanes=4194304)}else{if(!c)if(e=np(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Sp(t,e),vc(r,!0),r.tail===null&&r.tailMode==="hidden"&&!f.alternate&&!at)return Dt(t),null}else 2*La()-r.renderingStartTime>wh&&o!==536870912&&(t.flags|=128,c=!0,vc(r,!1),t.lanes=4194304);r.isBackwards?(f.sibling=t.child,t.child=f):(e=r.last,e!==null?e.sibling=f:t.child=f,r.last=f)}if(r.tail!==null)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=La(),e.sibling=null,o=aa.current,o=c?o&mu|ud:o&mu,ye(aa,o,t),at&&ms(t,r.treeForkCount),e;return Dt(t),null;case 22:case 23:return Io(t),Rg(t),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(o&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),o=t.updateQueue,o!==null&&Sp(t,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==o&&(t.flags|=2048),e!==null&&ge(Fi,t),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),gs(ra,t),Dt(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 WR(e,t){switch(yg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&dc(t),t):null;case 3:return gs(ra,t),pe(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(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.");wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&dc(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.");wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&dc(t),t):null;case 19:return ge(aa,t),null;case 4:return pe(t),null;case 10:return gs(t.type,t),null;case 22:case 23:return Io(t),Rg(t),e!==null&&ge(Fi,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&je)!==Oe&&dc(t),t):null;case 24:return gs(ra,t),null;case 25:return null;default:return null}}function yL(e,t){switch(yg(t),t.tag){case 3:gs(ra,t),pe(t);break;case 26:case 27:case 5:He(t);break;case 4:pe(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:ge(aa,t);break;case 10:gs(t.type,t);break;case 22:case 23:Io(t),Rg(t),e!==null&&ge(Fi,t);break;case 24:gs(ra,t)}}function zn(e){return(e.mode&je)!==Oe}function bL(e,t){zn(e)?(Nn(),Sc(t,e),Bn()):Sc(t,e)}function xy(e,t,o){zn(e)?(Nn(),Nl(o,e,t),Bn()):Nl(o,e,t)}function Sc(e,t){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var c=r.next;o=c;do{if((o.tag&e)===e&&(r=void 0,(e&Ja)!==hh&&(Tu=!0),r=me(t,bD,o),(e&Ja)!==hh&&(Tu=!1),r!==void 0&&typeof r!=="function")){var f=void 0;f=(o.tag&Bo)!==0?"useLayoutEffect":(o.tag&Ja)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=r===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof r.then==="function"?`
141
141
 
142
- It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
142
+ It looks like you wrote `+f+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
144
- `+d+`(() => {
144
+ `+f+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+d+`(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: "+i,ie(t,function(b,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,v)},d,m)}o=o.next}while(o!==u)}}catch(b){ut(t,t.return,b)}}function gr(e,t,o){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var m=i.inst,b=m.destroy;b!==void 0&&(m.destroy=void 0,(e&qa)!==qh&&(ou=!0),u=t,ie(u,LD,u,o,b),(e&qa)!==qh&&(ou=!1))}i=i.next}while(i!==d)}}catch(v){ut(t,t.return,v)}}function qS(e,t){Mn(e)?(In(),Zu(t,e),wn()):Zu(t,e)}function Yg(e,t,o){Mn(e)?(In(),gr(o,e,t),wn()):gr(o,e,t)}function VS(e){var t=e.updateQueue;if(t!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Kr||(o.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.",V(e)||"instance"),o.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.",V(e)||"instance"));try{ie(e,G0,t,o)}catch(i){ut(e,e.return,i)}}}function Jk(e,t,o){return e.getSnapshotBeforeUpdate(t,o)}function eR(e,t){var{memoizedProps:o,memoizedState:i}=t;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Kr||(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.",V(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.",V(e)||"instance"));try{var u=dl(e.type,o),d=ie(e,Jk,t,u,i);o=TT,d!==void 0||o.has(e.type)||(o.add(e.type),ie(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(m){ut(e,e.return,m)}}function jS(e,t,o){o.props=dl(e.type,e.memoizedProps),o.state=e.memoizedState,Mn(e)?(In(),ie(e,V1,e,t,o),wn()):ie(e,V1,e,t,o)}function tR(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}if(typeof t==="function")if(Mn(e))try{In(),e.refCleanup=t(o)}finally{wn()}else e.refCleanup=t(o);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().",V(e)),t.current=o}}function Qu(e,t){try{ie(e,tR,e)}catch(o){ut(e,t,o)}}function An(e,t){var{ref:o,refCleanup:i}=e;if(o!==null)if(typeof i==="function")try{if(Mn(e))try{In(),ie(e,i)}finally{wn(e)}else ie(e,i)}catch(u){ut(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o==="function")try{if(Mn(e))try{In(),ie(e,o,null)}finally{wn(e)}else ie(e,o,null)}catch(u){ut(e,t,u)}else o.current=null}function GS(e,t,o,i){var u=e.memoizedProps,d=u.id,m=u.onCommit;u=u.onRender,t=t===null?"mount":"update",Bh&&(t="nested-update"),typeof u==="function"&&u(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof m==="function"&&m(d,t,i,o)}function aR(e,t,o,i){var u=e.memoizedProps;e=u.id,u=u.onPostCommit,t=t===null?"mount":"update",Bh&&(t="nested-update"),typeof u==="function"&&u(e,t,i,o)}function YS(e){var{type:t,memoizedProps:o,stateNode:i}=e;try{ie(e,IR,i,t,o,e)}catch(u){ut(e,e.return,u)}}function Xg(e,t,o){try{ie(e,AR,e.stateNode,e.type,o,t,e)}catch(i){ut(e,e.return,i)}}function XS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qs(e.type)||e.tag===4}function $g(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XS(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&&Qs(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 Wg(e,t,o){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(eC(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,t)):(eC(o),t=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,t.appendChild(e),o=o._reactRootContainer,o!==null&&o!==void 0||t.onclick!==null||(t.onclick=Jn));else if(i!==4&&(i===27&&Qs(e.type)&&(o=e.stateNode,t=null),e=e.child,e!==null))for(Wg(e,t,o),e=e.sibling;e!==null;)Wg(e,t,o),e=e.sibling}function Zf(e,t,o){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(i!==4&&(i===27&&Qs(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(Zf(e,t,o),e=e.sibling;e!==null;)Zf(e,t,o),e=e.sibling}function oR(e){for(var t,o=e.return;o!==null;){if(XS(o)){t=o;break}o=o.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,o=$g(e),Zf(e,o,t);break;case 5:o=t.stateNode,t.flags&32&&(JL(o),t.flags&=-33),t=$g(e),Zf(e,t,o);break;case 3:case 4:t=t.stateNode.containerInfo,o=$g(e),Wg(e,o,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function $S(e){var{stateNode:t,memoizedProps:o}=e;try{ie(e,jR,e.type,o,t,e)}catch(i){ut(e,e.return,i)}}function WS(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 nR(e,t){if(e=e.containerInfo,$b=gp,e=d0(e),Dm(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var i=o.getSelection&&o.getSelection();if(i&&i.rangeCount!==0){o=i.anchorNode;var{anchorOffset:u,focusNode:d}=i;i=i.focusOffset;try{o.nodeType,d.nodeType}catch(te){o=null;break e}var m=0,b=-1,v=-1,L=0,O=0,P=e,A=null;t:for(;;){for(var N;;){if(P!==o||u!==0&&P.nodeType!==3||(b=m+u),P!==d||i!==0&&P.nodeType!==3||(v=m+i),P.nodeType===3&&(m+=P.nodeValue.length),(N=P.firstChild)===null)break;A=P,P=N}for(;;){if(P===e)break t;if(A===o&&++L===u&&(b=m),A===d&&++O===i&&(v=m),(N=P.nextSibling)!==null)break;P=A,A=P.parentNode}P=N}o=b===-1||v===-1?null:{start:b,end:v}}else o=null}o=o||{start:0,end:0}}else o=null;Wb={focusedElem:e,selectionRange:o},gp=!1;for(ha=t;ha!==null;)if(t=ha,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ha=e;else for(;ha!==null;){switch(e=t=ha,o=e.alternate,u=e.flags,e.tag){case 0:if((u&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)u=e[o],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:(u&1024)!==0&&o!==null&&eR(e,o);break;case 3:if((u&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)my(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":my(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&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,ha=e;break}ha=t.return}}function ZS(e,t,o){var i=mo(),u=Sn(),d=Cn(),m=Tn(),b=o.flags;switch(o.tag){case 0:case 11:case 15:kn(e,o),b&4&&FS(o,wo|qo);break;case 1:if(kn(e,o),b&4)if(e=o.stateNode,t===null)o.type.defaultProps||"ref"in o.memoizedProps||Kr||(e.props!==o.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.",V(o)||"instance"),e.state!==o.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.",V(o)||"instance")),Mn(o)?(In(),ie(o,gb,o,e),wn()):ie(o,gb,o,e);else{var v=dl(o.type,t.memoizedProps);t=t.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Kr||(e.props!==o.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.",V(o)||"instance"),e.state!==o.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.",V(o)||"instance")),Mn(o)?(In(),ie(o,H1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate),wn()):ie(o,H1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}b&64&&VS(o),b&512&&Qu(o,o.return);break;case 3:if(t=os(),kn(e,o),b&64&&(b=o.updateQueue,b!==null)){if(v=null,o.child!==null)switch(o.child.tag){case 27:case 5:v=o.child.stateNode;break;case 1:v=o.child.stateNode}try{ie(o,G0,b,v)}catch(O){ut(o,o.return,O)}}e.effectDuration+=Cf(t);break;case 27:t===null&&b&4&&$S(o);case 26:case 5:if(kn(e,o),t===null){if(b&4)YS(o);else if(b&64){e=o.type,t=o.memoizedProps,v=o.stateNode;try{ie(o,MR,v,e,t,o)}catch(O){ut(o,o.return,O)}}}b&512&&Qu(o,o.return);break;case 12:if(b&4){b=os(),kn(e,o),e=o.stateNode,e.effectDuration+=Uu(b);try{ie(o,GS,o,t,li,e.effectDuration)}catch(O){ut(o,o.return,O)}}else kn(e,o);break;case 31:kn(e,o),b&4&&JS(e,o);break;case 13:kn(e,o),b&4&&eL(e,o),b&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(b=hR.bind(null,o),HR(e,b))));break;case 22:if(b=o.memoizedState!==null||xs,!b){t=t!==null&&t.memoizedState!==null||ea,v=xs;var L=ea;xs=b,(ea=t)&&!L?(Rn(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&hf(o,Se,Ce)):kn(e,o),xs=v,ea=L}break;case 30:break;default:kn(e,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&((zt||0.05<Et)&&xn(o,Se,Ce,Et,Dt),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&0.05<Ce-Se&&(WS(o.return.alternate,o.return)||bn(o,Se,Ce,"Mount"))),go(i),Ln(u),Dt=d,zt=m}function QS(e){var t=e.alternate;t!==null&&(e.alternate=null,QS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ae(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 is(e,t,o){for(o=o.child;o!==null;)KS(e,t,o),o=o.sibling}function KS(e,t,o){if(_a&&typeof _a.onCommitFiberUnmount==="function")try{_a.onCommitFiberUnmount(Ar,o)}catch(L){Bn||(Bn=!0,console.error("React instrumentation encountered an error: %o",L))}var i=mo(),u=Sn(),d=Cn(),m=Tn();switch(o.tag){case 26:ea||An(o,t),is(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:ea||An(o,t);var b=ta,v=Wa;Qs(o.type)&&(ta=o.stateNode,Wa=!1),is(e,t,o),ie(o,ic,o.stateNode),ta=b,Wa=v;break;case 5:ea||An(o,t);case 6:if(b=ta,v=Wa,ta=null,is(e,t,o),ta=b,Wa=v,ta!==null)if(Wa)try{ie(o,_R,ta,o.stateNode)}catch(L){ut(o,t,L)}else try{ie(o,RR,ta,o.stateNode)}catch(L){ut(o,t,L)}break;case 18:ta!==null&&(Wa?(e=ta,tC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Tr(e)):tC(ta,o.stateNode));break;case 4:b=ta,v=Wa,ta=o.stateNode.containerInfo,Wa=!0,is(e,t,o),ta=b,Wa=v;break;case 0:case 11:case 14:case 15:gr(qa,o,t),ea||Gg(o,t,wo),is(e,t,o);break;case 1:ea||(An(o,t),b=o.stateNode,typeof b.componentWillUnmount==="function"&&jS(o,t,b)),is(e,t,o);break;case 21:is(e,t,o);break;case 22:ea=(b=ea)||o.memoizedState!==null,is(e,t,o),ea=b;break;default:is(e,t,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(o,Se,Ce,Et,Dt),go(i),Ln(u),Dt=d,zt=m}function JS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ie(t,qR,e)}catch(o){ut(t,t.return,o)}}}function eL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ie(t,VR,e)}catch(o){ut(t,t.return,o)}}function sR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wT),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wT),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Qf(e,t){var o=sR(e);t.forEach(function(i){if(!o.has(i)){if(o.add(i),Nn)if(Jr!==null&&eu!==null)tc(eu,Jr);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var u=pR.bind(null,e,i);i.then(u,u)}})}function Xa(e,t){var o=t.deletions;if(o!==null)for(var i=0;i<o.length;i++){var u=e,d=t,m=o[i],b=mo(),v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Qs(v.type)){ta=v.stateNode,Wa=!1;break e}break;case 5:ta=v.stateNode,Wa=!1;break e;case 3:case 4:ta=v.stateNode.containerInfo,Wa=!0;break e}v=v.return}if(ta===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");KS(u,d,m),ta=null,Wa=!1,(m.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&bn(m,Se,Ce,"Unmount"),go(b),u=m,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)tL(t,e),t=t.sibling}function tL(e,t){var o=mo(),i=Sn(),u=Cn(),d=Tn(),m=e.alternate,b=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xa(t,e),$a(e),b&4&&(gr(qa|qo,e,e.return),Zu(qa|qo,e),Gg(e,e.return,wo|qo));break;case 1:if(Xa(t,e),$a(e),b&512&&(ea||m===null||An(m,m.return)),b&64&&xs&&(b=e.updateQueue,b!==null&&(m=b.callbacks,m!==null))){var v=b.shared.hiddenCallbacks;b.shared.hiddenCallbacks=v===null?m:v.concat(m)}break;case 26:if(v=cn,Xa(t,e),$a(e),b&512&&(ea||m===null||An(m,m.return)),b&4){var L=m!==null?m.memoizedState:null;if(b=e.memoizedState,m===null)if(b===null)if(e.stateNode===null){e:{b=e.type,m=e.memoizedProps,v=v.ownerDocument||v;t:switch(b){case"title":if(L=v.getElementsByTagName("title")[0],!L||L[hc]||L[Sa]||L.namespaceURI===Rr||L.hasAttribute("itemprop"))L=v.createElement(b),v.head.insertBefore(L,v.querySelector("head > title"));va(L,b,m),L[Sa]=e,ve(L),b=L;break e;case"link":var O=fC("link","href",v).get(b+(m.href||""));if(O){for(var P=0;P<O.length;P++)if(L=O[P],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){O.splice(P,1);break t}}L=v.createElement(b),va(L,b,m),v.head.appendChild(L);break;case"meta":if(O=fC("meta","content",v).get(b+(m.content||""))){for(P=0;P<O.length;P++)if(L=O[P],mt(m.content,"content"),L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){O.splice(P,1);break t}}L=v.createElement(b),va(L,b,m),v.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}L[Sa]=e,ve(L),b=L}e.stateNode=b}else hC(v,e.type,e.stateNode);else e.stateNode=dC(v,b,e.memoizedProps);else L!==b?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,b===null?hC(v,e.type,e.stateNode):dC(v,b,e.memoizedProps)):b===null&&e.stateNode!==null&&Xg(e,e.memoizedProps,m.memoizedProps)}break;case 27:Xa(t,e),$a(e),b&512&&(ea||m===null||An(m,m.return)),m!==null&&b&4&&Xg(e,e.memoizedProps,m.memoizedProps);break;case 5:if(Xa(t,e),$a(e),b&512&&(ea||m===null||An(m,m.return)),e.flags&32){v=e.stateNode;try{ie(e,JL,v)}catch(se){ut(e,e.return,se)}}b&4&&e.stateNode!=null&&(v=e.memoizedProps,Xg(e,v,m!==null?m.memoizedProps:v)),b&1024&&(kb=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Xa(t,e),$a(e),b&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.");b=e.memoizedProps,m=m!==null?m.memoizedProps:b,v=e.stateNode;try{ie(e,kR,v,m,b)}catch(se){ut(e,e.return,se)}}break;case 3:if(v=os(),hp=null,L=cn,cn=sh(t.containerInfo),Xa(t,e),cn=L,$a(e),b&4&&m!==null&&m.memoizedState.isDehydrated)try{ie(e,FR,t.containerInfo)}catch(se){ut(e,e.return,se)}kb&&(kb=!1,aL(e)),t.effectDuration+=Cf(v);break;case 4:b=cn,cn=sh(e.stateNode.containerInfo),Xa(t,e),$a(e),cn=b;break;case 12:b=os(),Xa(t,e),$a(e),e.stateNode.effectDuration+=Uu(b);break;case 31:Xa(t,e),$a(e),b&4&&(b=e.updateQueue,b!==null&&(e.updateQueue=null,Qf(e,b)));break;case 13:Xa(t,e),$a(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(Kh=da()),b&4&&(b=e.updateQueue,b!==null&&(e.updateQueue=null,Qf(e,b)));break;case 22:v=e.memoizedState!==null;var A=m!==null&&m.memoizedState!==null,N=xs,te=ea;if(xs=N||v,ea=te||A,Xa(t,e),ea=te,xs=N,A&&!v&&!N&&!te&&(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&hf(e,Se,Ce),$a(e),b&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~Lc:t._visibility|Lc,!v||m===null||A||xs||ea||(fl(e),(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&bn(e,Se,Ce,"Disconnect")),m=null,t=e;;){if(t.tag===5||t.tag===26){if(m===null){A=m=t;try{L=A.stateNode,v?ie(A,ER,L):ie(A,BR,A.stateNode,A.memoizedProps)}catch(se){ut(A,A.return,se)}}}else if(t.tag===6){if(m===null){A=t;try{O=A.stateNode,v?ie(A,OR,O):ie(A,NR,O,A.memoizedProps)}catch(se){ut(A,A.return,se)}}}else if(t.tag===18){if(m===null){A=t;try{P=A.stateNode,v?ie(A,DR,P):ie(A,PR,A.stateNode)}catch(se){ut(A,A.return,se)}}}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;m===t&&(m=null),t=t.return}m===t&&(m=null),t.sibling.return=t.return,t=t.sibling}b&4&&(b=e.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,Qf(e,m))));break;case 19:Xa(t,e),$a(e),b&4&&(b=e.updateQueue,b!==null&&(e.updateQueue=null,Qf(e,b)));break;case 30:break;case 21:break;default:Xa(t,e),$a(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&((zt||0.05<Et)&&xn(e,Se,Ce,Et,Dt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ce-Se&&(WS(e.return.alternate,e.return)||bn(e,Se,Ce,"Mount"))),go(o),Ln(i),Dt=u,zt=d}function $a(e){var t=e.flags;if(t&2){try{ie(e,oR,e)}catch(o){ut(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aL(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;aL(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ZS(e,t.alternate,t),t=t.sibling}function oL(e){var t=mo(),o=Sn(),i=Cn(),u=Tn();switch(e.tag){case 0:case 11:case 14:case 15:Gg(e,e.return,wo),fl(e);break;case 1:An(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount==="function"&&jS(e,e.return,d),fl(e);break;case 27:ie(e,ic,e.stateNode);case 26:case 5:An(e,e.return),fl(e);break;case 22:e.memoizedState===null&&fl(e);break;case 30:fl(e);break;default:fl(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(e,Se,Ce,Et,Dt),go(t),Ln(o),Dt=i,zt=u}function fl(e){for(e=e.child;e!==null;)oL(e),e=e.sibling}function nL(e,t,o,i){var u=mo(),d=Sn(),m=Cn(),b=Tn(),v=o.flags;switch(o.tag){case 0:case 11:case 15:Rn(e,o,i),FS(o,wo);break;case 1:if(Rn(e,o,i),t=o.stateNode,typeof t.componentDidMount==="function"&&ie(o,gb,o,t),t=o.updateQueue,t!==null){e=o.stateNode;try{ie(o,Fk,t,e)}catch(L){ut(o,o.return,L)}}i&&v&64&&VS(o),Qu(o,o.return);break;case 27:$S(o);case 26:case 5:Rn(e,o,i),i&&t===null&&v&4&&YS(o),Qu(o,o.return);break;case 12:if(i&&v&4){v=os(),Rn(e,o,i),i=o.stateNode,i.effectDuration+=Uu(v);try{ie(o,GS,o,t,li,i.effectDuration)}catch(L){ut(o,o.return,L)}}else Rn(e,o,i);break;case 31:Rn(e,o,i),i&&v&4&&JS(e,o);break;case 13:Rn(e,o,i),i&&v&4&&eL(e,o);break;case 22:o.memoizedState===null&&Rn(e,o,i),Qu(o,o.return);break;case 30:break;default:Rn(e,o,i)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(o,Se,Ce,Et,Dt),go(u),Ln(d),Dt=m,zt=b}function Rn(e,t,o){o=o&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)nL(e,t.alternate,t,o),t=t.sibling}function Zg(e,t){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==o&&(e!=null&&ll(e),o!=null&&zu(o))}function Qg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ll(t),e!=null&&zu(e))}function on(e,t,o,i,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var d=t.sibling;sL(e,t,o,i,d!==null?d.actualStartTime:u),t=d}}function sL(e,t,o,i,u){var d=mo(),m=Sn(),b=Cn(),v=Tn(),L=oi,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ue)!==Ae&&0<t.actualStartTime&&(t.flags&1)!==0&&pf(t,t.actualStartTime,u,sa,o),on(e,t,o,i,u),O&2048&&qS(t,Va|qo);break;case 1:(t.mode&Ue)!==Ae&&0<t.actualStartTime&&((t.flags&128)!==0?Om(t,t.actualStartTime,u,[]):(t.flags&1)!==0&&pf(t,t.actualStartTime,u,sa,o)),on(e,t,o,i,u);break;case 3:var P=os(),A=sa;sa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,on(e,t,o,i,u),sa=A,O&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),i=t.memoizedState.cache,i!==o&&(ll(i),o!=null&&zu(o))),e.passiveEffectDuration+=Cf(P);break;case 12:if(O&2048){O=os(),on(e,t,o,i,u),e=t.stateNode,e.passiveEffectDuration+=Uu(O);try{ie(t,aR,t,t.alternate,li,e.passiveEffectDuration)}catch(N){ut(t,t.return,N)}}else on(e,t,o,i,u);break;case 31:O=sa,P=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,P!==null&&A===null?(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(sa=!1,P=P.hydrationErrors,P!==null&&Om(t,t.actualStartTime,u,P)):sa=!0):sa=!1,on(e,t,o,i,u),sa=O;break;case 13:O=sa,P=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,P===null||P.dehydrated===null||A!==null&&A.dehydrated!==null?sa=!1:(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(sa=!1,P=P.hydrationErrors,P!==null&&Om(t,t.actualStartTime,u,P)):sa=!0),on(e,t,o,i,u),sa=O;break;case 23:break;case 22:A=t.stateNode,P=t.alternate,t.memoizedState!==null?A._visibility&us?on(e,t,o,i,u):Ku(e,t,o,i,u):A._visibility&us?on(e,t,o,i,u):(A._visibility|=us,yr(e,t,o,i,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),u),(t.mode&Ue)===Ae||sa||(e=t.actualStartTime,0<=e&&0.05<u-e&&hf(t,e,u),0<=Se&&0<=Ce&&0.05<Ce-Se&&hf(t,Se,Ce))),O&2048&&Zg(P,t);break;case 24:on(e,t,o,i,u),O&2048&&Qg(t.alternate,t);break;default:on(e,t,o,i,u)}if((t.mode&Ue)!==Ae){if(e=!sa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)o=t.actualStartTime,0<=o&&0.05<u-o&&bn(t,o,u,"Mount");0<=Se&&0<=Ce&&((zt||0.05<Et)&&xn(t,Se,Ce,Et,Dt),e&&0.05<Ce-Se&&bn(t,Se,Ce,"Mount"))}go(d),Ln(m),Dt=b,zt=v,oi=L}function yr(e,t,o,i,u,d){u=u&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var m=t.sibling;iL(e,t,o,i,u,m!==null?m.actualStartTime:d),t=m}}function iL(e,t,o,i,u,d){var m=mo(),b=Sn(),v=Cn(),L=Tn(),O=oi;u&&(t.mode&Ue)!==Ae&&0<t.actualStartTime&&(t.flags&1)!==0&&pf(t,t.actualStartTime,d,sa,o);var P=t.flags;switch(t.tag){case 0:case 11:case 15:yr(e,t,o,i,u,d),qS(t,Va);break;case 23:break;case 22:var A=t.stateNode;t.memoizedState!==null?A._visibility&us?yr(e,t,o,i,u,d):Ku(e,t,o,i,d):(A._visibility|=us,yr(e,t,o,i,u,d)),u&&P&2048&&Zg(t.alternate,t);break;case 24:yr(e,t,o,i,u,d),u&&P&2048&&Qg(t.alternate,t);break;default:yr(e,t,o,i,u,d)}(t.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(t,Se,Ce,Et,Dt),go(m),Ln(b),Dt=v,zt=L,oi=O}function Ku(e,t,o,i,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var d=t.child;d!==null;){t=d.sibling;var m=e,b=o,v=i,L=t!==null?t.actualStartTime:u,O=oi;(d.mode&Ue)!==Ae&&0<d.actualStartTime&&(d.flags&1)!==0&&pf(d,d.actualStartTime,L,sa,b);var P=d.flags;switch(d.tag){case 22:Ku(m,d,b,v,L),P&2048&&Zg(d.alternate,d);break;case 24:Ku(m,d,b,v,L),P&2048&&Qg(d.alternate,d);break;default:Ku(m,d,b,v,L)}oi=O,d=t}}function br(e,t,o){if(e.subtreeFlags&qc)for(e=e.child;e!==null;)lL(e,t,o),e=e.sibling}function lL(e,t,o){switch(e.tag){case 26:br(e,t,o),e.flags&qc&&e.memoizedState!==null&&XR(o,cn,e.memoizedState,e.memoizedProps);break;case 5:br(e,t,o);break;case 3:case 4:var i=cn;cn=sh(e.stateNode.containerInfo),br(e,t,o),cn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=qc,qc=16777216,br(e,t,o),qc=i):br(e,t,o));break;default:br(e,t,o)}}function rL(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 Ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var i=t[o],u=mo();ha=i,dL(i,e),(i.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&bn(i,Se,Ce,"Unmount"),go(u)}rL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uL(e),e=e.sibling}function uL(e){var t=mo(),o=Sn(),i=Cn(),u=Tn();switch(e.tag){case 0:case 11:case 15:Ju(e),e.flags&2048&&Yg(e,e.return,Va|qo);break;case 3:var d=os();Ju(e),e.stateNode.passiveEffectDuration+=Cf(d);break;case 12:d=os(),Ju(e),e.stateNode.passiveEffectDuration+=Uu(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&us&&(e.return===null||e.return.tag!==13)?(d._visibility&=~us,Kf(e),(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&bn(e,Se,Ce,"Disconnect")):Ju(e);break;default:Ju(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(e,Se,Ce,Et,Dt),go(t),Ln(o),zt=u,Dt=i}function Kf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var i=t[o],u=mo();ha=i,dL(i,e),(i.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&bn(i,Se,Ce,"Unmount"),go(u)}rL(e)}for(e=e.child;e!==null;)cL(e),e=e.sibling}function cL(e){var t=mo(),o=Sn(),i=Cn(),u=Tn();switch(e.tag){case 0:case 11:case 15:Yg(e,e.return,Va),Kf(e);break;case 22:var d=e.stateNode;d._visibility&us&&(d._visibility&=~us,Kf(e));break;default:Kf(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(e,Se,Ce,Et,Dt),go(t),Ln(o),zt=u,Dt=i}function dL(e,t){for(;ha!==null;){var o=ha,i=o,u=t,d=mo(),m=Sn(),b=Cn(),v=Tn();switch(i.tag){case 0:case 11:case 15:Yg(i,u,Va);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool,u!=null&&ll(u));break;case 24:zu(i.memoizedState.cache)}if((i.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&xn(i,Se,Ce,Et,Dt),go(d),Ln(m),zt=v,Dt=b,i=o.child,i!==null)i.return=o,ha=i;else e:for(o=e;ha!==null;){if(i=ha,d=i.sibling,m=i.return,QS(i),i===o){ha=null;break e}if(d!==null){d.return=m,ha=d;break e}ha=m}}}function iR(){MD.forEach(function(e){return e()})}function fL(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||H.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function bo(e){if((ot&ia)!==pa&&Fe!==0)return Fe&-Fe;var t=H.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),sy()):B()}function hL(){if(Qa===0)if((Fe&536870912)===0||Ke){var e=yh;yh<<=1,(yh&3932160)===0&&(yh=262144),Qa=e}else Qa=536870912;return e=To.current,e!==null&&(e.flags|=32),Qa}function Nt(e,t,o){if(ou&&console.error("useInsertionEffect must not schedule updates."),Hb&&(ap=!0),e===xt&&(ht===Ml||ht===Al)||e.cancelPendingCommit!==null)vr(e,0),Ws(e,Fe,Qa,!1);if(Ns(e,o),(ot&ia)!==pa&&e===xt){if(Pn)switch(t.tag){case 0:case 11:case 15:e=qe&&V(qe)||"Unknown",HT.has(e)||(HT.add(e),t=V(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:UT||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UT=!0)}}else Nn&&Mu(e,t,o),gR(t),e===xt&&((ot&ia)===pa&&(gi|=o),Ot===hi&&Ws(e,Fe,Qa,!1)),_n(e)}function pL(e,t,o){if((ot&(ia|Io))!==pa)throw Error("Should not already be working.");if(Fe!==0&&qe!==null){var i=qe,u=da();switch(D1){case Gc:case Ml:var d=Ac;wt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Suspended",d,u,Oo,void 0,"primary-light")):console.timeStamp("Suspended",d,u,Oo,void 0,"primary-light"));break;case Al:d=Ac,wt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Action",d,u,Oo,void 0,"primary-light")):console.timeStamp("Action",d,u,Oo,void 0,"primary-light"));break;default:wt&&(i=u-Ac,3>i||console.timeStamp("Blocked",Ac,u,Oo,void 0,5>i?"primary-light":10>i?"primary":100>i?"primary-dark":"error"))}}d=(o=!o&&(t&127)===0&&(t&e.expiredLanes)===0||$i(e,t))?rR(e,t):Jg(e,t,!0);var m=o;do{if(d===vs){tu&&!o&&Ws(e,t,0,!1),t=ht,Ac=Qt(),D1=t;break}else{if(i=da(),u=e.current.alternate,m&&!lR(u)){ho(t),u=fa,d=i,!wt||d<=u||(Vt?Vt.run(console.timeStamp.bind(console,"Teared Render",u,d,Ze,$e,"error")):console.timeStamp("Teared Render",u,d,Ze,$e,"error")),hl(t,i),d=Jg(e,t,!1),m=!1;continue}if(d===Il){if(m=t,e.errorRecoveryDisabledLanes&m)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){ho(t),Pm(fa,i,t,Vt),hl(t,i),t=b;e:{i=e,d=m,m=Xc;var v=i.current.memoizedState.isDehydrated;if(v&&(vr(i,b).flags|=256),b=Jg(i,b,!1),b!==Il){if(Db&&!v){i.errorRecoveryDisabledLanes|=d,gi|=d,d=hi;break e}i=ja,ja=m,i!==null&&(ja===null?ja=i:ja.push.apply(ja,i))}d=b}if(m=!1,d!==Il)continue;else i=da()}}if(d===jc){ho(t),Pm(fa,i,t,Vt),hl(t,i),vr(e,0),Ws(e,t,0,!0);break}e:{switch(o=e,d){case vs:case jc:throw Error("Root did not complete. This is a bug in React.");case hi:if((t&4194048)!==t)break;case $h:ho(t),p0(fa,i,t,Vt),hl(t,i),u=t,(u&127)!==0?Eh=i:(u&4194048)!==0&&(Oh=i),Ws(o,t,Qa,!pi);break e;case Il:ja=null;break;case Xh:case IT:break;default:throw Error("Unknown root exit status.")}if(H.actQueue!==null)ey(o,u,t,ja,$c,Qh,Qa,gi,kl,d,null,null,fa,i);else{if((t&62914560)===t&&(m=Kh+kT-da(),10<m)){if(Ws(o,t,Qa,!pi),Xi(o,0,!0)!==0)break e;dn=t,o.timeoutHandle=$T(mL.bind(null,o,u,ja,$c,Qh,t,Qa,gi,kl,pi,d,"Throttled",fa,i),m);break e}mL(o,u,ja,$c,Qh,t,Qa,gi,kl,pi,d,null,fa,i)}}}break}while(1);_n(e)}function mL(e,t,o,i,u,d,m,b,v,L,O,P,A,N){e.timeoutHandle=Ol;var te=t.subtreeFlags,se=null;if(te&8192||(te&16785408)===16785408){if(se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},lL(t,d,se),te=(d&62914560)===d?Kh-da():(d&4194048)===d?AT-da():0,te=$R(se,te),te!==null){dn=d,e.cancelPendingCommit=te(ey.bind(null,e,t,d,o,i,u,m,b,v,O,se,se.waitingForViewTransition?"Waiting for the previous Animation":0<se.count?0<se.imgCount?"Suspended on CSS and Images":"Suspended on CSS":se.imgCount===1?"Suspended on an Image":0<se.imgCount?"Suspended on Images":null,A,N)),Ws(e,d,m,!L);return}}ey(e,t,d,o,i,u,m,b,v,O,se,P,A,N)}function lR(e){for(var t=e;;){var o=t.tag;if((o===0||o===11||o===15)&&t.flags&16384&&(o=t.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var i=0;i<o.length;i++){var u=o[i],d=u.getSnapshot;u=u.value;try{if(!Ha(d(),u))return!1}catch(m){return!1}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 Ws(e,t,o,i){t&=~Eb,t&=~gi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var d=31-Na(u),m=1<<d;i[d]=-1,u&=~m}o!==0&&Wi(e,o,t)}function xr(){return(ot&(ia|Io))===pa?(ac(0,!1),!1):!0}function Kg(){if(qe!==null){if(ht===Za)var e=qe.return;else e=qe,vf(),ug(e),Yr=null,Nc=0,e=qe;for(;e!==null;)HS(e.alternate,e),e=e.return;qe=null}}function hl(e,t){(e&127)!==0&&(ri=t),(e&4194048)!==0&&(qn=t),(e&62914560)!==0&&(R1=t),(e&2080374784)!==0&&(_1=t)}function vr(e,t){wt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",$e,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",$e,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",$e,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",$e,"primary-light"));var o=fa;if(fa=Qt(),Fe!==0&&0<o){if(ho(Fe),Ot===Xh||Ot===hi)p0(o,fa,t,Vt);else{var i=fa,u=Vt;if(wt&&!(i<=o)){var d=(t&738197653)===t?"tertiary-dark":"primary-dark",m=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";u?u.run(console.timeStamp.bind(console,m,o,i,Ze,$e,d)):console.timeStamp(m,o,i,Ze,$e,d)}}hl(Fe,fa)}if(o=Vt,Vt=null,(t&127)!==0){Vt=wc,u=0<=Fn&&Fn<ri?ri:Fn,i=0<=bl&&bl<ri?ri:bl,d=0<=i?i:0<=u?u:fa,0<=Eh?(ho(2),m0(Eh,d,t,o)):(Ph&127)!==0&&(ho(2),Bu(ri,d,ms)),o=u;var b=i,v=Ic,L=0<Vr,O=ui===Tc,P=ui===Dh;if(u=fa,i=wc,d=db,m=fb,wt){if(Ze="Blocking",0<o?o>u&&(o=u):o=u,0<b?b>o&&(b=o):b=o,v!==null&&o>b){var A=L?"secondary-light":"warning";i?i.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+v,b,o,Ze,$e,A)):console.timeStamp(L?"Consecutive":"Event: "+v,b,o,Ze,$e,A)}u>o&&(b=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=P?"Promise Resolved":O?"Cascading Update":5<u-o?"Update Blocked":"Update",P=[],m!=null&&P.push(["Component name",m]),d!=null&&P.push(["Method name",d]),o={start:o,end:u,detail:{devtools:{properties:P,track:Ze,trackGroup:$e,color:b}}},i?i.run(performance.measure.bind(performance,O,o)):performance.measure(O,o))}Fn=-1.1,ui=0,fb=db=null,Eh=-1.1,Vr=bl,bl=-1.1,ri=Qt()}if((t&4194048)!==0&&(Vt=Mc,u=0<=ps&&ps<qn?qn:ps,o=0<=Ho&&Ho<qn?qn:Ho,i=0<=ci&&ci<qn?qn:ci,d=0<=i?i:0<=o?o:fa,0<=Oh?(ho(256),m0(Oh,d,t,Vt)):(Ph&4194048)!==0&&(ho(256),Bu(qn,d,ms)),P=i,b=xl,v=0<di,L=hb===Dh,d=fa,i=Mc,m=A1,O=k1,wt&&(Ze="Transition",0<o?o>d&&(o=d):o=d,0<u?u>o&&(u=o):u=o,0<P?P>u&&(P=u):P=u,u>P&&b!==null&&(A=v?"secondary-light":"warning",i?i.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+b,P,u,Ze,$e,A)):console.timeStamp(v?"Consecutive":"Event: "+b,P,u,Ze,$e,A)),o>u&&(i?i.run(console.timeStamp.bind(console,"Action",u,o,Ze,$e,"primary-dark")):console.timeStamp("Action",u,o,Ze,$e,"primary-dark")),d>o&&(u=L?"Promise Resolved":5<d-o?"Update Blocked":"Update",P=[],O!=null&&P.push(["Component name",O]),m!=null&&P.push(["Method name",m]),o={start:o,end:d,detail:{devtools:{properties:P,track:Ze,trackGroup:$e,color:"primary-light"}}},i?i.run(performance.measure.bind(performance,u,o)):performance.measure(u,o))),Ho=ps=-1.1,hb=0,Oh=-1.1,di=ci,ci=-1.1,qn=Qt()),(t&62914560)!==0&&(Ph&62914560)!==0&&(ho(4194304),Bu(R1,fa,ms)),(t&2080374784)!==0&&(Ph&2080374784)!==0&&(ho(268435456),Bu(_1,fa,ms)),o=e.timeoutHandle,o!==Ol&&(e.timeoutHandle=Ol,HD(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),dn=0,Kg(),xt=e,qe=o=es(e.current,null),Fe=t,ht=Za,Mo=null,pi=!1,tu=$i(e,t),Db=!1,Ot=vs,kl=Qa=Eb=gi=mi=0,ja=Xc=null,Qh=!1,(t&8)!==0&&(t|=t&32),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=t;0<i;)u=31-Na(i),d=1<<u,t|=e[u],i&=~d;return jn=t,mf(),e=L1(),1000<e-S1&&(H.recentlyCreatedOwnerStacks=0,S1=e),rn.discardPendingWarnings(),o}function gL(e,t){ke=null,H.H=Fc,H.getCurrentStack=null,Pn=!1,So=null,t===Gr||t===Uh?(t=N0(),ht=Gc):t===yb?(t=N0(),ht=MT):ht=t===Mb?_b:t!==null&&typeof t==="object"&&typeof t.then==="function"?Yc:Wh,Mo=t;var o=qe;o===null?(Ot=jc,Gf(e,po(t,e.current))):o.mode&Ue&&Zm(o)}function yL(){var e=To.current;return e===null?!0:(Fe&4194048)===Fe?Fo===null?!0:!1:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===Fo:!1}function bL(){var e=H.H;return H.H=Fc,e===null?Fc:e}function xL(){var e=H.A;return H.A=ID,e}function Jf(e){Vt===null&&(Vt=e._debugTask==null?null:e._debugTask)}function eh(){Ot=hi,pi||(Fe&4194048)!==Fe&&To.current!==null||(tu=!0),(mi&134217727)===0&&(gi&134217727)===0||xt===null||Ws(xt,Fe,Qa,!1)}function Jg(e,t,o){var i=ot;ot|=ia;var u=bL(),d=xL();if(xt!==e||Fe!==t){if(Nn){var m=e.memoizedUpdaters;0<m.size&&(tc(e,Fe),m.clear()),zs(e,t)}$c=null,vr(e,t)}t=!1,m=Ot;e:do try{if(ht!==Za&&qe!==null){var b=qe,v=Mo;switch(ht){case _b:Kg(),m=$h;break e;case Gc:case Ml:case Al:case Yc:To.current===null&&(t=!0);var L=ht;if(ht=Za,Mo=null,Sr(e,b,v,L),o&&tu){m=vs;break e}break;default:L=ht,ht=Za,Mo=null,Sr(e,b,v,L)}}vL(),m=Ot;break}catch(O){gL(e,O)}while(1);return t&&e.shellSuspendCounter++,vf(),ot=i,H.H=u,H.A=d,qe===null&&(xt=null,Fe=0,mf()),m}function vL(){for(;qe!==null;)SL(qe)}function rR(e,t){var o=ot;ot|=ia;var i=bL(),u=xL();if(xt!==e||Fe!==t){if(Nn){var d=e.memoizedUpdaters;0<d.size&&(tc(e,Fe),d.clear()),zs(e,t)}$c=null,Jh=da()+RT,vr(e,t)}else tu=$i(e,t);e:do try{if(ht!==Za&&qe!==null)t:switch(t=qe,d=Mo,ht){case Wh:ht=Za,Mo=null,Sr(e,t,d,Wh);break;case Ml:case Al:if(P0(d)){ht=Za,Mo=null,LL(t);break}t=function(){ht!==Ml&&ht!==Al||xt!==e||(ht=Zh),_n(e)},d.then(t,t);break e;case Gc:ht=Zh;break e;case MT:ht=Rb;break e;case Zh:P0(d)?(ht=Za,Mo=null,LL(t)):(ht=Za,Mo=null,Sr(e,t,d,Zh));break;case Rb:var m=null;switch(qe.tag){case 26:m=qe.memoizedState;case 5:case 27:var b=qe;if(m?pC(m):b.stateNode.complete){ht=Za,Mo=null;var v=b.sibling;if(v!==null)qe=v;else{var L=b.return;L!==null?(qe=L,th(L)):qe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ht=Za,Mo=null,Sr(e,t,d,Rb);break;case Yc:ht=Za,Mo=null,Sr(e,t,d,Yc);break;case _b:Kg(),Ot=$h;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}H.actQueue!==null?vL():uR();break}catch(O){gL(e,O)}while(1);if(vf(),H.H=i,H.A=u,ot=o,qe!==null)return vs;return xt=null,Fe=0,mf(),Ot}function uR(){for(;qe!==null&&!l_();)SL(qe)}function SL(e){var t=e.alternate;(e.mode&Ue)!==Ae?(Wm(e),t=ie(e,Vg,t,e,jn),Zm(e)):t=ie(e,Vg,t,e,jn),e.memoizedProps=e.pendingProps,t===null?th(e):qe=t}function LL(e){var t=ie(e,cR,e);e.memoizedProps=e.pendingProps,t===null?th(e):qe=t}function cR(e){var t=e.alternate,o=(e.mode&Ue)!==Ae;switch(o&&Wm(e),e.tag){case 15:case 0:t=ES(t,e,e.pendingProps,e.type,void 0,Fe);break;case 11:t=ES(t,e,e.pendingProps,e.type.render,e.ref,Fe);break;case 5:ug(e);default:HS(t,e),e=qe=S0(e,jn),t=Vg(t,e,jn)}return o&&Zm(e),t}function Sr(e,t,o,i){vf(),ug(t),Yr=null,Nc=0;var u=t.return;try{if($k(e,u,t,o,Fe)){Ot=jc,Gf(e,po(o,e.current)),qe=null;return}}catch(d){if(u!==null)throw qe=u,d;Ot=jc,Gf(e,po(o,e.current)),qe=null;return}if(t.flags&32768){if(Ke||i===Wh)e=!0;else if(tu||(Fe&536870912)!==0)e=!1;else if(pi=e=!0,i===Ml||i===Al||i===Gc||i===Yc)i=To.current,i!==null&&i.tag===13&&(i.flags|=16384);CL(t,e)}else th(t)}function th(e){var t=e;do{if((t.flags&32768)!==0){CL(t,pi);return}var o=t.alternate;if(e=t.return,Wm(t),o=ie(t,Qk,o,t,jn),(t.mode&Ue)!==Ae&&R0(t),o!==null){qe=o;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Ot===vs&&(Ot=IT)}function CL(e,t){do{var o=Kk(e.alternate,e);if(o!==null){o.flags&=32767,qe=o;return}if((e.mode&Ue)!==Ae){R0(e),o=e.actualDuration;for(var i=e.child;i!==null;)o+=i.actualDuration,i=i.sibling;e.actualDuration=o}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!t&&(e=e.sibling,e!==null)){qe=e;return}qe=e=o}while(e!==null);Ot=$h,qe=null}function ey(e,t,o,i,u,d,m,b,v,L,O,P,A,N){e.cancelPendingCommit=null;do ec();while(aa!==bi);if(rn.flushLegacyContextWarning(),rn.flushPendingUnsafeLifecycleWarnings(),(ot&(ia|Io))!==pa)throw Error("Should not already be working.");if(ho(o),L===Il?Pm(A,N,o,Vt):i!==null?Pk(A,N,o,i,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Vt):Ok(A,N,o,Vt),t!==null){if(o===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(d=t.lanes|t.childLanes,d|=ib,of(e,o,d,m,b,v),e===xt&&(qe=xt=null,Fe=0),au=t,xi=e,dn=o,Bb=d,zb=u,BT=i,Nb=N,NT=P,fn=ep,zT=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mR(Mr,function(){return ed=window.event,fn===ep&&(fn=Pb),AL(),null})):(e.callbackNode=null,e.callbackPriority=0),hs=null,li=Qt(),P!==null&&Bk(N,li,P,Vt),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=H.T,H.T=null,u=ct.p,ct.p=Lo,m=ot,ot|=Io;try{nR(e,t,o)}finally{ot=m,ct.p=u,H.T=i}}aa=DT,TL(),wL(),IL()}}function TL(){if(aa===DT){aa=bi;var e=xi,t=au,o=dn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=H.T,H.T=null;var u=ct.p;ct.p=Lo;var d=ot;ot|=Io;try{Jr=o,eu=e,Tf(),tL(t,e),eu=Jr=null,o=Wb;var m=d0(e.containerInfo),b=o.focusedElem,v=o.selectionRange;if(m!==b&&b&&b.ownerDocument&&c0(b.ownerDocument.documentElement,b)){if(v!==null&&Dm(b)){var{start:L,end:O}=v;if(O===void 0&&(O=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(O,b.value.length);else{var P=b.ownerDocument||document,A=P&&P.defaultView||window;if(A.getSelection){var N=A.getSelection(),te=b.textContent.length,se=Math.min(v.start,te),Ct=v.end===void 0?se:Math.min(v.end,te);!N.extend&&se>Ct&&(m=Ct,Ct=se,se=m);var tt=u0(b,se),I=u0(b,Ct);if(tt&&I&&(N.rangeCount!==1||N.anchorNode!==tt.node||N.anchorOffset!==tt.offset||N.focusNode!==I.node||N.focusOffset!==I.offset)){var R=P.createRange();R.setStart(tt.node,tt.offset),N.removeAllRanges(),se>Ct?(N.addRange(R),N.extend(I.node,I.offset)):(R.setEnd(I.node,I.offset),N.addRange(R))}}}}P=[];for(N=b;N=N.parentNode;)N.nodeType===1&&P.push({element:N,left:N.scrollLeft,top:N.scrollTop});typeof b.focus==="function"&&b.focus();for(b=0;b<P.length;b++){var E=P[b];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}gp=!!$b,Wb=$b=null}finally{ot=d,ct.p=u,H.T=i}}e.current=t,aa=ET}}function wL(){if(aa===ET){aa=bi;var e=zT;if(e!==null){li=Qt();var t=fs,o=li;!wt||o<=t||(ms?ms.run(console.timeStamp.bind(console,e,t,o,Ze,$e,"secondary-light")):console.timeStamp(e,t,o,Ze,$e,"secondary-light"))}e=xi,t=au,o=dn;var i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=H.T,H.T=null;var u=ct.p;ct.p=Lo;var d=ot;ot|=Io;try{Jr=o,eu=e,Tf(),ZS(e,t.alternate,t),eu=Jr=null}finally{ot=d,ct.p=u,H.T=i}}e=Nb,t=NT,fs=Qt(),e=t===null?e:li,t=fs,o=fn===Ob,i=Vt,hs!==null?g0(e,t,hs,!1,i):!wt||t<=e||(i?i.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,t,Ze,$e,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,t,Ze,$e,o?"error":"secondary-dark")),aa=OT}}function IL(){if(aa===PT||aa===OT){if(aa===PT){var e=fs;fs=Qt();var t=fs,o=fn===Ob;!wt||t<=e||(ms?ms.run(console.timeStamp.bind(console,o?"Interrupted View Transition":"Starting Animation",e,t,Ze,$e,o?"error":"secondary-light")):console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,t,Ze,$e,o?" error":"secondary-light")),fn!==Ob&&(fn=_T)}aa=bi,r_(),e=xi;var i=au;t=dn,o=BT;var u=i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;u?aa=tp:(aa=bi,au=xi=null,ML(e,e.pendingLanes),Rl=0,Zc=null);var d=e.pendingLanes;if(d===0&&(yi=null),u||DL(e),d=C(t),i=i.stateNode,_a&&typeof _a.onCommitFiberRoot==="function")try{var m=(i.current.flags&128)===128;switch(d){case Lo:var b=zy;break;case sn:b=Uy;break;case zn:b=Mr;break;case xh:b=Hy;break;default:b=Mr}_a.onCommitFiberRoot(Ar,i,b,m)}catch(P){Bn||(Bn=!0,console.error("React instrumentation encountered an error: %o",P))}if(Nn&&e.memoizedUpdaters.clear(),iR(),o!==null){m=H.T,b=ct.p,ct.p=Lo,H.T=null;try{var v=e.onRecoverableError;for(i=0;i<o.length;i++){var L=o[i],O=dR(L.stack);ie(L.source,v,L.value,O)}}finally{H.T=m,ct.p=b}}(dn&3)!==0&&ec(),_n(e),d=e.pendingLanes,(t&261930)!==0&&(d&42)!==0?(Nh=!0,e===Ub?Wc++:(Wc=0,Ub=e)):Wc=0,u||hl(t,fs),ac(0,!1)}}function dR(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 ML(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zu(t)))}function ec(){return TL(),wL(),IL(),AL()}function AL(){if(aa!==tp)return!1;var e=xi,t=Bb;Bb=0;var o=C(dn),i=zn===0||zn>o?zn:o;o=H.T;var u=ct.p;try{ct.p=i,H.T=null;var d=zb;zb=null,i=xi;var m=dn;if(aa=bi,au=xi=null,dn=0,(ot&(ia|Io))!==pa)throw Error("Cannot flush passive effects while already rendering.");ho(m),Hb=!0,ap=!1;var b=0;if(hs=null,b=da(),fn===_T)Bu(fs,b,ms);else{var v=fs,L=b,O=fn===Pb;!wt||L<=v||(Vt?Vt.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",v,L,Ze,$e,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",v,L,Ze,$e,"secondary-light"))}v=ot,ot|=Io;var P=i.current;Tf(),uL(P);var A=i.current;P=Nb,Tf(),sL(i,A,m,d,P),DL(i),ot=v;var N=da();if(A=b,P=Vt,hs!==null?g0(A,N,hs,!0,P):!wt||N<=A||(P?P.run(console.timeStamp.bind(console,"Remaining Effects",A,N,Ze,$e,"secondary-dark")):console.timeStamp("Remaining Effects",A,N,Ze,$e,"secondary-dark")),hl(m,N),ac(0,!1),ap?i===Zc?Rl++:(Rl=0,Zc=i):Rl=0,ap=Hb=!1,_a&&typeof _a.onPostCommitFiberRoot==="function")try{_a.onPostCommitFiberRoot(Ar,i)}catch(se){Bn||(Bn=!0,console.error("React instrumentation encountered an error: %o",se))}var te=i.current.stateNode;return te.effectDuration=0,te.passiveEffectDuration=0,!0}finally{ct.p=u,H.T=o,ML(e,t)}}function kL(e,t,o){t=po(o,t),_0(t),t=Dg(e.stateNode,t,2),e=Gs(e,t,2),e!==null&&(Ns(e,2),_n(e))}function ut(e,t,o){if(ou=!1,e.tag===3)kL(e,e,o);else{for(;t!==null;){if(t.tag===3){kL(t,e,o);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof i.componentDidCatch==="function"&&(yi===null||!yi.has(i))){e=po(o,e),_0(e),o=Eg(2),i=Gs(t,o,2),i!==null&&(Og(o,i,t,e),Ns(i,2),_n(i));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: "+r,me(t,function(x,S){console.error("%s must not return anything besides a function, which is used for clean-up.%s",x,S)},f,m)}o=o.next}while(o!==c)}}catch(x){gt(t,t.return,x)}}function Nl(e,t,o){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){var m=r.inst,x=m.destroy;x!==void 0&&(m.destroy=void 0,(e&Ja)!==hh&&(Tu=!0),c=t,me(c,xD,c,o,x),(e&Ja)!==hh&&(Tu=!1))}r=r.next}while(r!==f)}}catch(S){gt(t,t.return,S)}}function xL(e,t){zn(e)?(Nn(),Sc(t,e),Bn()):Sc(t,e)}function vy(e,t,o){zn(e)?(Nn(),Nl(o,e,t),Bn()):Nl(o,e,t)}function vL(e){var t=e.updateQueue;if(t!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||xu||(o.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.",j(e)||"instance"),o.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.",j(e)||"instance"));try{me(e,LS,t,o)}catch(r){gt(e,e.return,r)}}}function ZR(e,t,o){return e.getSnapshotBeforeUpdate(t,o)}function QR(e,t){var{memoizedProps:o,memoizedState:r}=t;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||xu||(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.",j(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.",j(e)||"instance"));try{var c=_i(e.type,o),f=me(e,ZR,t,c,r);o=tw,f!==void 0||o.has(e.type)||(o.add(e.type),me(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",j(e))})),t.__reactInternalSnapshotBeforeUpdate=f}catch(m){gt(e,e.return,m)}}function SL(e,t,o){o.props=_i(e.type,e.memoizedProps),o.state=e.memoizedState,zn(e)?(Nn(),me(e,vT,e,t,o),Bn()):me(e,vT,e,t,o)}function KR(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}if(typeof t==="function")if(zn(e))try{Nn(),e.refCleanup=t(o)}finally{Bn()}else e.refCleanup=t(o);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().",j(e)),t.current=o}}function Lc(e,t){try{me(e,KR,e)}catch(o){gt(e,t,o)}}function Hn(e,t){var{ref:o,refCleanup:r}=e;if(o!==null)if(typeof r==="function")try{if(zn(e))try{Nn(),me(e,r)}finally{Bn(e)}else me(e,r)}catch(c){gt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o==="function")try{if(zn(e))try{Nn(),me(e,o,null)}finally{Bn(e)}else me(e,o,null)}catch(c){gt(e,t,c)}else o.current=null}function LL(e,t,o,r){var c=e.memoizedProps,f=c.id,m=c.onCommit;c=c.onRender,t=t===null?"mount":"update",lh&&(t="nested-update"),typeof c==="function"&&c(f,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof m==="function"&&m(f,t,r,o)}function JR(e,t,o,r){var c=e.memoizedProps;e=c.id,c=c.onPostCommit,t=t===null?"mount":"update",lh&&(t="nested-update"),typeof c==="function"&&c(e,t,r,o)}function CL(e){var{type:t,memoizedProps:o,stateNode:r}=e;try{me(e,C_,r,t,o,e)}catch(c){gt(e,e.return,c)}}function Sy(e,t,o){try{me(e,w_,e.stateNode,e.type,o,t,e)}catch(r){gt(e,e.return,r)}}function TL(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yr(e.type)||e.tag===4}function Ly(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TL(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&&yr(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 Cy(e,t,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(_C(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,t)):(_C(o),t=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,t.appendChild(e),o=o._reactRootContainer,o!==null&&o!==void 0||t.onclick!==null||(t.onclick=ps));else if(r!==4&&(r===27&&yr(e.type)&&(o=e.stateNode,t=null),e=e.child,e!==null))for(Cy(e,t,o),e=e.sibling;e!==null;)Cy(e,t,o),e=e.sibling}function Lp(e,t,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(r!==4&&(r===27&&yr(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(Lp(e,t,o),e=e.sibling;e!==null;)Lp(e,t,o),e=e.sibling}function e_(e){for(var t,o=e.return;o!==null;){if(TL(o)){t=o;break}o=o.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,o=Ly(e),Lp(e,o,t);break;case 5:o=t.stateNode,t.flags&32&&(RC(o),t.flags&=-33),t=Ly(e),Lp(e,t,o);break;case 3:case 4:t=t.stateNode.containerInfo,o=Ly(e),Cy(e,o,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wL(e){var{stateNode:t,memoizedProps:o}=e;try{me(e,F_,e.type,o,t,e)}catch(r){gt(e,e.return,r)}}function kL(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 t_(e,t){if(e=e.containerInfo,Lx=qh,e=q0(e),rg(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var{anchorOffset:c,focusNode:f}=r;r=r.focusOffset;try{o.nodeType,f.nodeType}catch(ie){o=null;break e}var m=0,x=-1,S=-1,L=0,O=0,P=e,_=null;t:for(;;){for(var U;;){if(P!==o||c!==0&&P.nodeType!==3||(x=m+c),P!==f||r!==0&&P.nodeType!==3||(S=m+r),P.nodeType===3&&(m+=P.nodeValue.length),(U=P.firstChild)===null)break;_=P,P=U}for(;;){if(P===e)break t;if(_===o&&++L===c&&(x=m),_===f&&++O===r&&(S=m),(U=P.nextSibling)!==null)break;P=_,_=P.parentNode}P=U}o=x===-1||S===-1?null:{start:x,end:S}}else o=null}o=o||{start:0,end:0}}else o=null;Cx={focusedElem:e,selectionRange:o},qh=!1;for(Ta=t;Ta!==null;)if(t=Ta,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ta=e;else for(;Ta!==null;){switch(e=t=Ta,o=e.alternate,c=e.flags,e.tag){case 0:if((c&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)c=e[o],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:(c&1024)!==0&&o!==null&&QR(e,o);break;case 3:if((c&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)Vy(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vy(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&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,Ta=e;break}Ta=t.return}}function ML(e,t,o){var r=ko(),c=Dn(),f=On(),m=Pn(),x=o.flags;switch(o.tag){case 0:case 11:case 15:Un(e,o),x&4&&bL(o,Bo|Jo);break;case 1:if(Un(e,o),x&4)if(e=o.stateNode,t===null)o.type.defaultProps||"ref"in o.memoizedProps||xu||(e.props!==o.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.",j(o)||"instance"),e.state!==o.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.",j(o)||"instance")),zn(o)?(Nn(),me(o,jb,o,e),Bn()):me(o,jb,o,e);else{var S=_i(o.type,t.memoizedProps);t=t.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||xu||(e.props!==o.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.",j(o)||"instance"),e.state!==o.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.",j(o)||"instance")),zn(o)?(Nn(),me(o,yT,o,e,S,t,e.__reactInternalSnapshotBeforeUpdate),Bn()):me(o,yT,o,e,S,t,e.__reactInternalSnapshotBeforeUpdate)}x&64&&vL(o),x&512&&Lc(o,o.return);break;case 3:if(t=ys(),Un(e,o),x&64&&(x=o.updateQueue,x!==null)){if(S=null,o.child!==null)switch(o.child.tag){case 27:case 5:S=o.child.stateNode;break;case 1:S=o.child.stateNode}try{me(o,LS,x,S)}catch(O){gt(o,o.return,O)}}e.effectDuration+=Wf(t);break;case 27:t===null&&x&4&&wL(o);case 26:case 5:if(Un(e,o),t===null){if(x&4)CL(o);else if(x&64){e=o.type,t=o.memoizedProps,S=o.stateNode;try{me(o,T_,S,e,t,o)}catch(O){gt(o,o.return,O)}}}x&512&&Lc(o,o.return);break;case 12:if(x&4){x=ys(),Un(e,o),e=o.stateNode,e.effectDuration+=cc(x);try{me(o,LL,o,t,Mr,e.effectDuration)}catch(O){gt(o,o.return,O)}}else Un(e,o);break;case 31:Un(e,o),x&4&&RL(e,o);break;case 13:Un(e,o),x&4&&_L(e,o),x&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(x=c_.bind(null,o),N_(e,x))));break;case 22:if(x=o.memoizedState!==null||Es,!x){t=t!==null&&t.memoizedState!==null||ca,S=Es;var L=ca;Es=x,(ca=t)&&!L?(Fn(e,o,(o.subtreeFlags&8772)!==0),(o.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&Hf(o,Re,_e)):Un(e,o),Es=S,ca=L}break;case 30:break;default:Un(e,o)}(o.mode&je)!==Oe&&0<=Re&&0<=_e&&((Qt||0.05<Xt)&&Rn(o,Re,_e,Xt,qt),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&0.05<_e-Re&&(kL(o.return.alternate,o.return)||An(o,Re,_e,"Mount"))),Mo(r),En(c),qt=f,Qt=m}function IL(e){var t=e.alternate;t!==null&&(e.alternate=null,IL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ue(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 vs(e,t,o){for(o=o.child;o!==null;)AL(e,t,o),o=o.sibling}function AL(e,t,o){if(Va&&typeof Va.onCommitFiberUnmount==="function")try{Va.onCommitFiberUnmount(Wl,o)}catch(L){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",L))}var r=ko(),c=Dn(),f=On(),m=Pn();switch(o.tag){case 26:ca||Hn(o,t),vs(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:ca||Hn(o,t);var x=da,S=lo;yr(o.type)&&(da=o.stateNode,lo=!1),vs(e,t,o),me(o,_c,o.stateNode),da=x,lo=S;break;case 5:ca||Hn(o,t);case 6:if(x=da,S=lo,da=null,vs(e,t,o),da=x,lo=S,da!==null)if(lo)try{me(o,I_,da,o.stateNode)}catch(L){gt(o,t,L)}else try{me(o,M_,da,o.stateNode)}catch(L){gt(o,t,L)}break;case 18:da!==null&&(lo?(e=da,DC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Gl(e)):DC(da,o.stateNode));break;case 4:x=da,S=lo,da=o.stateNode.containerInfo,lo=!0,vs(e,t,o),da=x,lo=S;break;case 0:case 11:case 14:case 15:Nl(Ja,o,t),ca||xy(o,t,Bo),vs(e,t,o);break;case 1:ca||(Hn(o,t),x=o.stateNode,typeof x.componentWillUnmount==="function"&&SL(o,t,x)),vs(e,t,o);break;case 21:vs(e,t,o);break;case 22:ca=(x=ca)||o.memoizedState!==null,vs(e,t,o),ca=x;break;default:vs(e,t,o)}(o.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(o,Re,_e,Xt,qt),Mo(r),En(c),qt=f,Qt=m}function RL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{me(t,H_,e)}catch(o){gt(t,t.return,o)}}}function _L(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{me(t,U_,e)}catch(o){gt(t,t.return,o)}}function a_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new aw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new aw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Cp(e,t){var o=a_(e);t.forEach(function(r){if(!o.has(r)){if(o.add(r),$n)if(vu!==null&&Su!==null)kc(Su,vu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var c=d_.bind(null,e,r);r.then(c,c)}})}function ro(e,t){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var c=e,f=t,m=o[r],x=ko(),S=f;e:for(;S!==null;){switch(S.tag){case 27:if(yr(S.type)){da=S.stateNode,lo=!1;break e}break;case 5:da=S.stateNode,lo=!1;break e;case 3:case 4:da=S.stateNode.containerInfo,lo=!0;break e}S=S.return}if(da===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");AL(c,f,m),da=null,lo=!1,(m.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&An(m,Re,_e,"Unmount"),Mo(x),c=m,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)DL(t,e),t=t.sibling}function DL(e,t){var o=ko(),r=Dn(),c=On(),f=Pn(),m=e.alternate,x=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ro(t,e),io(e),x&4&&(Nl(Ja|Jo,e,e.return),Sc(Ja|Jo,e),xy(e,e.return,Bo|Jo));break;case 1:if(ro(t,e),io(e),x&512&&(ca||m===null||Hn(m,m.return)),x&64&&Es&&(x=e.updateQueue,x!==null&&(m=x.callbacks,m!==null))){var S=x.shared.hiddenCallbacks;x.shared.hiddenCallbacks=S===null?m:S.concat(m)}break;case 26:if(S=xn,ro(t,e),io(e),x&512&&(ca||m===null||Hn(m,m.return)),x&4){var L=m!==null?m.memoizedState:null;if(x=e.memoizedState,m===null)if(x===null)if(e.stateNode===null){e:{x=e.type,m=e.memoizedProps,S=S.ownerDocument||S;t:switch(x){case"title":if(L=S.getElementsByTagName("title")[0],!L||L[zc]||L[Oa]||L.namespaceURI===Ql||L.hasAttribute("itemprop"))L=S.createElement(x),S.head.insertBefore(L,S.querySelector("head > title"));Ea(L,x,m),L[Oa]=e,Ae(L),x=L;break e;case"link":var O=VC("link","href",S).get(x+(m.href||""));if(O){for(var P=0;P<O.length;P++)if(L=O[P],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){O.splice(P,1);break t}}L=S.createElement(x),Ea(L,x,m),S.head.appendChild(L);break;case"meta":if(O=VC("meta","content",S).get(x+(m.content||""))){for(P=0;P<O.length;P++)if(L=O[P],Ct(m.content,"content"),L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){O.splice(P,1);break t}}L=S.createElement(x),Ea(L,x,m),S.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+x+'". This is a bug in React.')}L[Oa]=e,Ae(L),x=L}e.stateNode=x}else jC(S,e.type,e.stateNode);else e.stateNode=qC(S,x,e.memoizedProps);else L!==x?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,x===null?jC(S,e.type,e.stateNode):qC(S,x,e.memoizedProps)):x===null&&e.stateNode!==null&&Sy(e,e.memoizedProps,m.memoizedProps)}break;case 27:ro(t,e),io(e),x&512&&(ca||m===null||Hn(m,m.return)),m!==null&&x&4&&Sy(e,e.memoizedProps,m.memoizedProps);break;case 5:if(ro(t,e),io(e),x&512&&(ca||m===null||Hn(m,m.return)),e.flags&32){S=e.stateNode;try{me(e,RC,S)}catch(he){gt(e,e.return,he)}}x&4&&e.stateNode!=null&&(S=e.memoizedProps,Sy(e,S,m!==null?m.memoizedProps:S)),x&1024&&(ox=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ro(t,e),io(e),x&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.");x=e.memoizedProps,m=m!==null?m.memoizedProps:x,S=e.stateNode;try{me(e,k_,S,m,x)}catch(he){gt(e,e.return,he)}}break;case 3:if(S=ys(),Hh=null,L=xn,xn=_p(t.containerInfo),ro(t,e),xn=L,io(e),x&4&&m!==null&&m.memoizedState.isDehydrated)try{me(e,z_,t.containerInfo)}catch(he){gt(e,e.return,he)}ox&&(ox=!1,EL(e)),t.effectDuration+=Wf(S);break;case 4:x=xn,xn=_p(e.stateNode.containerInfo),ro(t,e),io(e),xn=x;break;case 12:x=ys(),ro(t,e),io(e),e.stateNode.effectDuration+=cc(x);break;case 31:ro(t,e),io(e),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,Cp(e,x)));break;case 13:ro(t,e),io(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(Th=La()),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,Cp(e,x)));break;case 22:S=e.memoizedState!==null;var _=m!==null&&m.memoizedState!==null,U=Es,ie=ca;if(Es=U||S,ca=ie||_,ro(t,e),ca=ie,Es=U,_&&!S&&!U&&!ie&&(e.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&Hf(e,Re,_e),io(e),x&8192)e:for(t=e.stateNode,t._visibility=S?t._visibility&~Yc:t._visibility|Yc,!S||m===null||_||Es||ca||(Di(e),(e.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&An(e,Re,_e,"Disconnect")),m=null,t=e;;){if(t.tag===5||t.tag===26){if(m===null){_=m=t;try{L=_.stateNode,S?me(_,R_,L):me(_,E_,_.stateNode,_.memoizedProps)}catch(he){gt(_,_.return,he)}}}else if(t.tag===6){if(m===null){_=t;try{O=_.stateNode,S?me(_,__,O):me(_,O_,O,_.memoizedProps)}catch(he){gt(_,_.return,he)}}}else if(t.tag===18){if(m===null){_=t;try{P=_.stateNode,S?me(_,A_,P):me(_,D_,_.stateNode)}catch(he){gt(_,_.return,he)}}}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;m===t&&(m=null),t=t.return}m===t&&(m=null),t.sibling.return=t.return,t=t.sibling}x&4&&(x=e.updateQueue,x!==null&&(m=x.retryQueue,m!==null&&(x.retryQueue=null,Cp(e,m))));break;case 19:ro(t,e),io(e),x&4&&(x=e.updateQueue,x!==null&&(e.updateQueue=null,Cp(e,x)));break;case 30:break;case 21:break;default:ro(t,e),io(e)}(e.mode&je)!==Oe&&0<=Re&&0<=_e&&((Qt||0.05<Xt)&&Rn(e,Re,_e,Xt,qt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<_e-Re&&(kL(e.return.alternate,e.return)||An(e,Re,_e,"Mount"))),Mo(o),En(r),qt=c,Qt=f}function io(e){var t=e.flags;if(t&2){try{me(e,e_,e)}catch(o){gt(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function EL(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;EL(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ML(e,t.alternate,t),t=t.sibling}function OL(e){var t=ko(),o=Dn(),r=On(),c=Pn();switch(e.tag){case 0:case 11:case 14:case 15:xy(e,e.return,Bo),Di(e);break;case 1:Hn(e,e.return);var f=e.stateNode;typeof f.componentWillUnmount==="function"&&SL(e,e.return,f),Di(e);break;case 27:me(e,_c,e.stateNode);case 26:case 5:Hn(e,e.return),Di(e);break;case 22:e.memoizedState===null&&Di(e);break;case 30:Di(e);break;default:Di(e)}(e.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(e,Re,_e,Xt,qt),Mo(t),En(o),qt=r,Qt=c}function Di(e){for(e=e.child;e!==null;)OL(e),e=e.sibling}function PL(e,t,o,r){var c=ko(),f=Dn(),m=On(),x=Pn(),S=o.flags;switch(o.tag){case 0:case 11:case 15:Fn(e,o,r),bL(o,Bo);break;case 1:if(Fn(e,o,r),t=o.stateNode,typeof t.componentDidMount==="function"&&me(o,jb,o,t),t=o.updateQueue,t!==null){e=o.stateNode;try{me(o,zR,t,e)}catch(L){gt(o,o.return,L)}}r&&S&64&&vL(o),Lc(o,o.return);break;case 27:wL(o);case 26:case 5:Fn(e,o,r),r&&t===null&&S&4&&CL(o),Lc(o,o.return);break;case 12:if(r&&S&4){S=ys(),Fn(e,o,r),r=o.stateNode,r.effectDuration+=cc(S);try{me(o,LL,o,t,Mr,r.effectDuration)}catch(L){gt(o,o.return,L)}}else Fn(e,o,r);break;case 31:Fn(e,o,r),r&&S&4&&RL(e,o);break;case 13:Fn(e,o,r),r&&S&4&&_L(e,o);break;case 22:o.memoizedState===null&&Fn(e,o,r),Lc(o,o.return);break;case 30:break;default:Fn(e,o,r)}(o.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(o,Re,_e,Xt,qt),Mo(c),En(f),qt=m,Qt=x}function Fn(e,t,o){o=o&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)PL(e,t.alternate,t,o),t=t.sibling}function Ty(e,t){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==o&&(e!=null&&Mi(e),o!=null&&uc(o))}function wy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Mi(t),e!=null&&uc(e))}function pn(e,t,o,r,c){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var f=t.sibling;BL(e,t,o,r,f!==null?f.actualStartTime:c),t=f}}function BL(e,t,o,r,c){var f=ko(),m=Dn(),x=On(),S=Pn(),L=Cr,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&je)!==Oe&&0<t.actualStartTime&&(t.flags&1)!==0&&Uf(t,t.actualStartTime,c,ma,o),pn(e,t,o,r,c),O&2048&&xL(t,eo|Jo);break;case 1:(t.mode&je)!==Oe&&0<t.actualStartTime&&((t.flags&128)!==0?lg(t,t.actualStartTime,c,[]):(t.flags&1)!==0&&Uf(t,t.actualStartTime,c,ma,o)),pn(e,t,o,r,c);break;case 3:var P=ys(),_=ma;ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,pn(e,t,o,r,c),ma=_,O&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==o&&(Mi(r),o!=null&&uc(o))),e.passiveEffectDuration+=Wf(P);break;case 12:if(O&2048){O=ys(),pn(e,t,o,r,c),e=t.stateNode,e.passiveEffectDuration+=cc(O);try{me(t,JR,t,t.alternate,Mr,e.passiveEffectDuration)}catch(U){gt(t,t.return,U)}}else pn(e,t,o,r,c);break;case 31:O=ma,P=t.alternate!==null?t.alternate.memoizedState:null,_=t.memoizedState,P!==null&&_===null?(_=t.deletions,_!==null&&0<_.length&&_[0].tag===18?(ma=!1,P=P.hydrationErrors,P!==null&&lg(t,t.actualStartTime,c,P)):ma=!0):ma=!1,pn(e,t,o,r,c),ma=O;break;case 13:O=ma,P=t.alternate!==null?t.alternate.memoizedState:null,_=t.memoizedState,P===null||P.dehydrated===null||_!==null&&_.dehydrated!==null?ma=!1:(_=t.deletions,_!==null&&0<_.length&&_[0].tag===18?(ma=!1,P=P.hydrationErrors,P!==null&&lg(t,t.actualStartTime,c,P)):ma=!0),pn(e,t,o,r,c),ma=O;break;case 23:break;case 22:_=t.stateNode,P=t.alternate,t.memoizedState!==null?_._visibility&Cs?pn(e,t,o,r,c):Cc(e,t,o,r,c):_._visibility&Cs?pn(e,t,o,r,c):(_._visibility|=Cs,zl(e,t,o,r,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),c),(t.mode&je)===Oe||ma||(e=t.actualStartTime,0<=e&&0.05<c-e&&Hf(t,e,c),0<=Re&&0<=_e&&0.05<_e-Re&&Hf(t,Re,_e))),O&2048&&Ty(P,t);break;case 24:pn(e,t,o,r,c),O&2048&&wy(t.alternate,t);break;default:pn(e,t,o,r,c)}if((t.mode&je)!==Oe){if(e=!ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)o=t.actualStartTime,0<=o&&0.05<c-o&&An(t,o,c,"Mount");0<=Re&&0<=_e&&((Qt||0.05<Xt)&&Rn(t,Re,_e,Xt,qt),e&&0.05<_e-Re&&An(t,Re,_e,"Mount"))}Mo(f),En(m),qt=x,Qt=S,Cr=L}function zl(e,t,o,r,c,f){c=c&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var m=t.sibling;NL(e,t,o,r,c,m!==null?m.actualStartTime:f),t=m}}function NL(e,t,o,r,c,f){var m=ko(),x=Dn(),S=On(),L=Pn(),O=Cr;c&&(t.mode&je)!==Oe&&0<t.actualStartTime&&(t.flags&1)!==0&&Uf(t,t.actualStartTime,f,ma,o);var P=t.flags;switch(t.tag){case 0:case 11:case 15:zl(e,t,o,r,c,f),xL(t,eo);break;case 23:break;case 22:var _=t.stateNode;t.memoizedState!==null?_._visibility&Cs?zl(e,t,o,r,c,f):Cc(e,t,o,r,f):(_._visibility|=Cs,zl(e,t,o,r,c,f)),c&&P&2048&&Ty(t.alternate,t);break;case 24:zl(e,t,o,r,c,f),c&&P&2048&&wy(t.alternate,t);break;default:zl(e,t,o,r,c,f)}(t.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(t,Re,_e,Xt,qt),Mo(m),En(x),qt=S,Qt=L,Cr=O}function Cc(e,t,o,r,c){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var f=t.child;f!==null;){t=f.sibling;var m=e,x=o,S=r,L=t!==null?t.actualStartTime:c,O=Cr;(f.mode&je)!==Oe&&0<f.actualStartTime&&(f.flags&1)!==0&&Uf(f,f.actualStartTime,L,ma,x);var P=f.flags;switch(f.tag){case 22:Cc(m,f,x,S,L),P&2048&&Ty(f.alternate,f);break;case 24:Cc(m,f,x,S,L),P&2048&&wy(f.alternate,f);break;default:Cc(m,f,x,S,L)}Cr=O,f=t}}function Hl(e,t,o){if(e.subtreeFlags&pd)for(e=e.child;e!==null;)zL(e,t,o),e=e.sibling}function zL(e,t,o){switch(e.tag){case 26:Hl(e,t,o),e.flags&pd&&e.memoizedState!==null&&j_(o,xn,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,o);break;case 3:case 4:var r=xn;xn=_p(e.stateNode.containerInfo),Hl(e,t,o),xn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pd,pd=16777216,Hl(e,t,o),pd=r):Hl(e,t,o));break;default:Hl(e,t,o)}}function HL(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 Tc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var r=t[o],c=ko();Ta=r,qL(r,e),(r.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&An(r,Re,_e,"Unmount"),Mo(c)}HL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)UL(e),e=e.sibling}function UL(e){var t=ko(),o=Dn(),r=On(),c=Pn();switch(e.tag){case 0:case 11:case 15:Tc(e),e.flags&2048&&vy(e,e.return,eo|Jo);break;case 3:var f=ys();Tc(e),e.stateNode.passiveEffectDuration+=Wf(f);break;case 12:f=ys(),Tc(e),e.stateNode.passiveEffectDuration+=cc(f);break;case 22:f=e.stateNode,e.memoizedState!==null&&f._visibility&Cs&&(e.return===null||e.return.tag!==13)?(f._visibility&=~Cs,Tp(e),(e.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&An(e,Re,_e,"Disconnect")):Tc(e);break;default:Tc(e)}(e.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(e,Re,_e,Xt,qt),Mo(t),En(o),Qt=c,qt=r}function Tp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var r=t[o],c=ko();Ta=r,qL(r,e),(r.mode&je)!==Oe&&0<=Re&&0<=_e&&0.05<_e-Re&&An(r,Re,_e,"Unmount"),Mo(c)}HL(e)}for(e=e.child;e!==null;)FL(e),e=e.sibling}function FL(e){var t=ko(),o=Dn(),r=On(),c=Pn();switch(e.tag){case 0:case 11:case 15:vy(e,e.return,eo),Tp(e);break;case 22:var f=e.stateNode;f._visibility&Cs&&(f._visibility&=~Cs,Tp(e));break;default:Tp(e)}(e.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(e,Re,_e,Xt,qt),Mo(t),En(o),Qt=c,qt=r}function qL(e,t){for(;Ta!==null;){var o=Ta,r=o,c=t,f=ko(),m=Dn(),x=On(),S=Pn();switch(r.tag){case 0:case 11:case 15:vy(r,c,eo);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool,c!=null&&Mi(c));break;case 24:uc(r.memoizedState.cache)}if((r.mode&je)!==Oe&&0<=Re&&0<=_e&&(Qt||0.05<Xt)&&Rn(r,Re,_e,Xt,qt),Mo(f),En(m),Qt=S,qt=x,r=o.child,r!==null)r.return=o,Ta=r;else e:for(o=e;Ta!==null;){if(r=Ta,f=r.sibling,m=r.return,IL(r),r===o){Ta=null;break e}if(f!==null){f.return=m,Ta=f;break e}Ta=m}}}function o_(){TD.forEach(function(e){return e()})}function VL(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||q.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ao(e){if((ct&ga)!==wa&&Xe!==0)return Xe&-Xe;var t=q.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Ey()):N()}function jL(){if(co===0)if((Xe&536870912)===0||at){var e=Vp;Vp<<=1,(Vp&3932160)===0&&(Vp=262144),co=e}else co=536870912;return e=Po.current,e!==null&&(e.flags|=32),co}function Zt(e,t,o){if(Tu&&console.error("useInsertionEffect must not schedule updates."),hx&&(Ih=!0),e===At&&(St===Yi||St===$i)||e.cancelPendingCommit!==null)Fl(e,0),mr(e,Xe,co,!1);if(or(e,o),(ct&ga)!==wa&&e===At){if(Xn)switch(t.tag){case 0:case 11:case 15:e=Ye&&j(Ye)||"Unknown",yw.has(e)||(yw.add(e),t=j(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:gw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),gw=!0)}}else $n&&Ku(e,t,o),p_(t),e===At&&((ct&ga)===wa&&(Br|=o),Yt===Er&&mr(e,Xe,co,!1)),qn(e)}function GL(e,t,o){if((ct&(ga|No))!==wa)throw Error("Should not already be working.");if(Xe!==0&&Ye!==null){var r=Ye,c=La();switch(uT){case gd:case Yi:var f=Jc;Pt&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,"Suspended",f,c,Go,void 0,"primary-light")):console.timeStamp("Suspended",f,c,Go,void 0,"primary-light"));break;case $i:f=Jc,Pt&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,"Action",f,c,Go,void 0,"primary-light")):console.timeStamp("Action",f,c,Go,void 0,"primary-light"));break;default:Pt&&(r=c-Jc,3>r||console.timeStamp("Blocked",Jc,c,Go,void 0,5>r?"primary-light":10>r?"primary":100>r?"primary-dark":"error"))}}f=(o=!o&&(t&127)===0&&(t&e.expiredLanes)===0||hi(e,t))?s_(e,t):My(e,t,!0);var m=o;do{if(f===Os){Lu&&!o&&mr(e,t,0,!1),t=St,Jc=ia(),uT=t;break}else{if(r=La(),c=e.current.alternate,m&&!n_(c)){To(t),c=Ca,f=r,!Pt||f<=c||(ta?ta.run(console.timeStamp.bind(console,"Teared Render",c,f,Je,Qe,"error")):console.timeStamp("Teared Render",c,f,Je,Qe,"error")),Ei(t,r),f=My(e,t,!1),m=!1;continue}if(f===Xi){if(m=t,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){To(t),ug(Ca,r,t,ta),Ei(t,r),t=x;e:{r=e,f=m,m=bd;var S=r.current.memoizedState.isDehydrated;if(S&&(Fl(r,x).flags|=256),x=My(r,x,!1),x!==Xi){if(rx&&!S){r.errorRecoveryDisabledLanes|=f,Br|=f,f=Er;break e}r=to,to=m,r!==null&&(to===null?to=r:to.push.apply(to,r))}f=x}if(m=!1,f!==Xi)continue;else r=La()}}if(f===md){To(t),ug(Ca,r,t,ta),Ei(t,r),Fl(e,0),mr(e,t,0,!0);break}e:{switch(o=e,f){case Os:case md:throw Error("Root did not complete. This is a bug in React.");case Er:if((t&4194048)!==t)break;case vh:To(t),G0(Ca,r,t,ta),Ei(t,r),c=t,(c&127)!==0?sh=r:(c&4194048)!==0&&(rh=r),mr(o,t,co,!Or);break e;case Xi:to=null;break;case xh:case ow:break;default:throw Error("Unknown root exit status.")}if(q.actQueue!==null)Iy(o,c,t,to,xd,Ch,co,Br,Wi,f,null,null,Ca,r);else{if((t&62914560)===t&&(m=Th+rw-La(),10<m)){if(mr(o,t,co,!Or),pi(o,0,!0)!==0)break e;vn=t,o.timeoutHandle=ww(XL.bind(null,o,c,to,xd,Ch,t,co,Br,Wi,Or,f,"Throttled",Ca,r),m);break e}XL(o,c,to,xd,Ch,t,co,Br,Wi,Or,f,null,Ca,r)}}}break}while(1);qn(e)}function XL(e,t,o,r,c,f,m,x,S,L,O,P,_,U){e.timeoutHandle=el;var ie=t.subtreeFlags,he=null;if(ie&8192||(ie&16785408)===16785408){if(he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ps},zL(t,f,he),ie=(f&62914560)===f?Th-La():(f&4194048)===f?sw-La():0,ie=G_(he,ie),ie!==null){vn=f,e.cancelPendingCommit=ie(Iy.bind(null,e,t,f,o,r,c,m,x,S,O,he,he.waitingForViewTransition?"Waiting for the previous Animation":0<he.count?0<he.imgCount?"Suspended on CSS and Images":"Suspended on CSS":he.imgCount===1?"Suspended on an Image":0<he.imgCount?"Suspended on Images":null,_,U)),mr(e,f,m,!L);return}}Iy(e,t,f,o,r,c,m,x,S,O,he,P,_,U)}function n_(e){for(var t=e;;){var o=t.tag;if((o===0||o===11||o===15)&&t.flags&16384&&(o=t.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var r=0;r<o.length;r++){var c=o[r],f=c.getSnapshot;c=c.value;try{if(!Qa(f(),c))return!1}catch(m){return!1}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 mr(e,t,o,r){t&=~ix,t&=~Br,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var c=t;0<c;){var f=31-$a(c),m=1<<f;r[f]=-1,c&=~m}o!==0&&mi(e,o,t)}function Ul(){return(ct&(ga|No))===wa?(Mc(0,!1),!1):!0}function ky(){if(Ye!==null){if(St===uo)var e=Ye.return;else e=Ye,Xf(),Ng(e),pu=null,ld=0,e=Ye;for(;e!==null;)yL(e.alternate,e),e=e.return;Ye=null}}function Ei(e,t){(e&127)!==0&&(Ir=t),(e&4194048)!==0&&(Jn=t),(e&62914560)!==0&&(iT=t),(e&2080374784)!==0&&(lT=t)}function Fl(e,t){Pt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Qe,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Qe,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Qe,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Qe,"primary-light"));var o=Ca;if(Ca=ia(),Xe!==0&&0<o){if(To(Xe),Yt===xh||Yt===Er)G0(o,Ca,t,ta);else{var r=Ca,c=ta;if(Pt&&!(r<=o)){var f=(t&738197653)===t?"tertiary-dark":"primary-dark",m=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";c?c.run(console.timeStamp.bind(console,m,o,r,Je,Qe,f)):console.timeStamp(m,o,r,Je,Qe,f)}}Ei(Xe,Ca)}if(o=ta,ta=null,(t&127)!==0){ta=Zc,c=0<=Kn&&Kn<Ir?Ir:Kn,r=0<=zi&&zi<Ir?Ir:zi,f=0<=r?r:0<=c?c:Ca,0<=sh?(To(2),X0(sh,f,t,o)):(ih&127)!==0&&(To(2),ic(Ir,f,As)),o=c;var x=r,S=Qc,L=0<cu,O=Ar===Wc,P=Ar===nh;if(c=Ca,r=Zc,f=Hb,m=Ub,Pt){if(Je="Blocking",0<o?o>c&&(o=c):o=c,0<x?x>o&&(x=o):x=o,S!==null&&o>x){var _=L?"secondary-light":"warning";r?r.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+S,x,o,Je,Qe,_)):console.timeStamp(L?"Consecutive":"Event: "+S,x,o,Je,Qe,_)}c>o&&(x=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=P?"Promise Resolved":O?"Cascading Update":5<c-o?"Update Blocked":"Update",P=[],m!=null&&P.push(["Component name",m]),f!=null&&P.push(["Method name",f]),o={start:o,end:c,detail:{devtools:{properties:P,track:Je,trackGroup:Qe,color:x}}},r?r.run(performance.measure.bind(performance,O,o)):performance.measure(O,o))}Kn=-1.1,Ar=0,Ub=Hb=null,sh=-1.1,cu=zi,zi=-1.1,Ir=ia()}if((t&4194048)!==0&&(ta=Kc,c=0<=Is&&Is<Jn?Jn:Is,o=0<=Qo&&Qo<Jn?Jn:Qo,r=0<=Rr&&Rr<Jn?Jn:Rr,f=0<=r?r:0<=o?o:Ca,0<=rh?(To(256),X0(rh,f,t,ta)):(ih&4194048)!==0&&(To(256),ic(Jn,f,As)),P=r,x=Hi,S=0<_r,L=Fb===nh,f=Ca,r=Kc,m=sT,O=rT,Pt&&(Je="Transition",0<o?o>f&&(o=f):o=f,0<c?c>o&&(c=o):c=o,0<P?P>c&&(P=c):P=c,c>P&&x!==null&&(_=S?"secondary-light":"warning",r?r.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+x,P,c,Je,Qe,_)):console.timeStamp(S?"Consecutive":"Event: "+x,P,c,Je,Qe,_)),o>c&&(r?r.run(console.timeStamp.bind(console,"Action",c,o,Je,Qe,"primary-dark")):console.timeStamp("Action",c,o,Je,Qe,"primary-dark")),f>o&&(c=L?"Promise Resolved":5<f-o?"Update Blocked":"Update",P=[],O!=null&&P.push(["Component name",O]),m!=null&&P.push(["Method name",m]),o={start:o,end:f,detail:{devtools:{properties:P,track:Je,trackGroup:Qe,color:"primary-light"}}},r?r.run(performance.measure.bind(performance,c,o)):performance.measure(c,o))),Qo=Is=-1.1,Fb=0,rh=-1.1,_r=Rr,Rr=-1.1,Jn=ia()),(t&62914560)!==0&&(ih&62914560)!==0&&(To(4194304),ic(iT,Ca,As)),(t&2080374784)!==0&&(ih&2080374784)!==0&&(To(268435456),ic(lT,Ca,As)),o=e.timeoutHandle,o!==el&&(e.timeoutHandle=el,ND(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),vn=0,ky(),At=e,Ye=o=hs(e.current,null),Xe=t,St=uo,zo=null,Or=!1,Lu=hi(e,t),rx=!1,Yt=Os,Wi=co=ix=Br=Pr=0,to=bd=null,Ch=!1,(t&8)!==0&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)c=31-$a(r),f=1<<c,t|=e[c],r&=~f;return ts=t,Ff(),e=J1(),1000<e-K1&&(q.recentlyCreatedOwnerStacks=0,K1=e),yn.discardPendingWarnings(),o}function YL(e,t){Pe=null,q.H=fd,q.getCurrentStack=null,Xn=!1,Do=null,t===fu||t===dh?(t=hS(),St=gd):t===Gb?(t=hS(),St=nw):St=t===tx?sx:t!==null&&typeof t==="object"&&typeof t.then==="function"?yd:Sh,zo=t;var o=Ye;o===null?(Yt=md,yp(e,wo(t,e.current))):o.mode&je&&Tg(o)}function $L(){var e=Po.current;return e===null?!0:(Xe&4194048)===Xe?Ko===null?!0:!1:(Xe&62914560)===Xe||(Xe&536870912)!==0?e===Ko:!1}function WL(){var e=q.H;return q.H=fd,e===null?fd:e}function ZL(){var e=q.A;return q.A=CD,e}function wp(e){ta===null&&(ta=e._debugTask==null?null:e._debugTask)}function kp(){Yt=Er,Or||(Xe&4194048)!==Xe&&Po.current!==null||(Lu=!0),(Pr&134217727)===0&&(Br&134217727)===0||At===null||mr(At,Xe,co,!1)}function My(e,t,o){var r=ct;ct|=ga;var c=WL(),f=ZL();if(At!==e||Xe!==t){if($n){var m=e.memoizedUpdaters;0<m.size&&(kc(e,Xe),m.clear()),nr(e,t)}xd=null,Fl(e,t)}t=!1,m=Yt;e:do try{if(St!==uo&&Ye!==null){var x=Ye,S=zo;switch(St){case sx:ky(),m=vh;break e;case gd:case Yi:case $i:case yd:Po.current===null&&(t=!0);var L=St;if(St=uo,zo=null,ql(e,x,S,L),o&&Lu){m=Os;break e}break;default:L=St,St=uo,zo=null,ql(e,x,S,L)}}QL(),m=Yt;break}catch(O){YL(e,O)}while(1);return t&&e.shellSuspendCounter++,Xf(),ct=r,q.H=c,q.A=f,Ye===null&&(At=null,Xe=0,Ff()),m}function QL(){for(;Ye!==null;)KL(Ye)}function s_(e,t){var o=ct;ct|=ga;var r=WL(),c=ZL();if(At!==e||Xe!==t){if($n){var f=e.memoizedUpdaters;0<f.size&&(kc(e,Xe),f.clear()),nr(e,t)}xd=null,wh=La()+iw,Fl(e,t)}else Lu=hi(e,t);e:do try{if(St!==uo&&Ye!==null)t:switch(t=Ye,f=zo,St){case Sh:St=uo,zo=null,ql(e,t,f,Sh);break;case Yi:case $i:if(fS(f)){St=uo,zo=null,JL(t);break}t=function(){St!==Yi&&St!==$i||At!==e||(St=Lh),qn(e)},f.then(t,t);break e;case gd:St=Lh;break e;case nw:St=nx;break e;case Lh:fS(f)?(St=uo,zo=null,JL(t)):(St=uo,zo=null,ql(e,t,f,Lh));break;case nx:var m=null;switch(Ye.tag){case 26:m=Ye.memoizedState;case 5:case 27:var x=Ye;if(m?GC(m):x.stateNode.complete){St=uo,zo=null;var S=x.sibling;if(S!==null)Ye=S;else{var L=x.return;L!==null?(Ye=L,Mp(L)):Ye=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}St=uo,zo=null,ql(e,t,f,nx);break;case yd:St=uo,zo=null,ql(e,t,f,yd);break;case sx:ky(),Yt=vh;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}q.actQueue!==null?QL():r_();break}catch(O){YL(e,O)}while(1);if(Xf(),q.H=r,q.A=c,ct=o,Ye!==null)return Os;return At=null,Xe=0,Ff(),Yt}function r_(){for(;Ye!==null&&!n2();)KL(Ye)}function KL(e){var t=e.alternate;(e.mode&je)!==Oe?(Cg(e),t=me(e,yy,t,e,ts),Tg(e)):t=me(e,yy,t,e,ts),e.memoizedProps=e.pendingProps,t===null?Mp(e):Ye=t}function JL(e){var t=me(e,i_,e);e.memoizedProps=e.pendingProps,t===null?Mp(e):Ye=t}function i_(e){var t=e.alternate,o=(e.mode&je)!==Oe;switch(o&&Cg(e),e.tag){case 15:case 0:t=cL(t,e,e.pendingProps,e.type,void 0,Xe);break;case 11:t=cL(t,e,e.pendingProps,e.type.render,e.ref,Xe);break;case 5:Ng(e);default:yL(t,e),e=Ye=K0(e,ts),t=yy(t,e,ts)}return o&&Tg(e),t}function ql(e,t,o,r){Xf(),Ng(t),pu=null,ld=0;var c=t.return;try{if(GR(e,c,t,o,Xe)){Yt=md,yp(e,wo(o,e.current)),Ye=null;return}}catch(f){if(c!==null)throw Ye=c,f;Yt=md,yp(e,wo(o,e.current)),Ye=null;return}if(t.flags&32768){if(at||r===Sh)e=!0;else if(Lu||(Xe&536870912)!==0)e=!1;else if(Or=e=!0,r===Yi||r===$i||r===gd||r===yd)r=Po.current,r!==null&&r.tag===13&&(r.flags|=16384);eC(t,e)}else Mp(t)}function Mp(e){var t=e;do{if((t.flags&32768)!==0){eC(t,Or);return}var o=t.alternate;if(e=t.return,Cg(t),o=me(t,$R,o,t,ts),(t.mode&je)!==Oe&&iS(t),o!==null){Ye=o;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);Yt===Os&&(Yt=ow)}function eC(e,t){do{var o=WR(e.alternate,e);if(o!==null){o.flags&=32767,Ye=o;return}if((e.mode&je)!==Oe){iS(e),o=e.actualDuration;for(var r=e.child;r!==null;)o+=r.actualDuration,r=r.sibling;e.actualDuration=o}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!t&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=o}while(e!==null);Yt=vh,Ye=null}function Iy(e,t,o,r,c,f,m,x,S,L,O,P,_,U){e.cancelPendingCommit=null;do wc();while(fa!==zr);if(yn.flushLegacyContextWarning(),yn.flushPendingUnsafeLifecycleWarnings(),(ct&(ga|No))!==wa)throw Error("Should not already be working.");if(To(o),L===Xi?ug(_,U,o,ta):r!==null?DR(_,U,o,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ta):_R(_,U,o,ta),t!==null){if(o===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(f=t.lanes|t.childLanes,f|=Ob,Rf(e,o,f,m,x,S),e===At&&(Ye=At=null,Xe=0),Cu=t,Hr=e,vn=o,cx=f,fx=c,pw=r,dx=U,hw=P,Sn=kh,mw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f_($l,function(){return wd=window.event,Sn===kh&&(Sn=ux),sC(),null})):(e.callbackNode=null,e.callbackPriority=0),Ms=null,Mr=ia(),P!==null&&ER(U,Mr,P,ta),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=q.T,q.T=null,c=yt.p,yt.p=Eo,m=ct,ct|=No;try{t_(e,t,o)}finally{ct=m,yt.p=c,q.T=r}}fa=uw,tC(),aC(),oC()}}function tC(){if(fa===uw){fa=zr;var e=Hr,t=Cu,o=vn,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=q.T,q.T=null;var c=yt.p;yt.p=Eo;var f=ct;ct|=No;try{vu=o,Su=e,Zf(),DL(t,e),Su=vu=null,o=Cx;var m=q0(e.containerInfo),x=o.focusedElem,S=o.selectionRange;if(m!==x&&x&&x.ownerDocument&&F0(x.ownerDocument.documentElement,x)){if(S!==null&&rg(x)){var{start:L,end:O}=S;if(O===void 0&&(O=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(O,x.value.length);else{var P=x.ownerDocument||document,_=P&&P.defaultView||window;if(_.getSelection){var U=_.getSelection(),ie=x.textContent.length,he=Math.min(S.start,ie),Et=S.end===void 0?he:Math.min(S.end,ie);!U.extend&&he>Et&&(m=Et,Et=he,he=m);var st=U0(x,he),R=U0(x,Et);if(st&&R&&(U.rangeCount!==1||U.anchorNode!==st.node||U.anchorOffset!==st.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var D=P.createRange();D.setStart(st.node,st.offset),U.removeAllRanges(),he>Et?(U.addRange(D),U.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),U.addRange(D))}}}}P=[];for(U=x;U=U.parentNode;)U.nodeType===1&&P.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof x.focus==="function"&&x.focus();for(x=0;x<P.length;x++){var E=P[x];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}qh=!!Lx,Cx=Lx=null}finally{ct=f,yt.p=c,q.T=r}}e.current=t,fa=cw}}function aC(){if(fa===cw){fa=zr;var e=mw;if(e!==null){Mr=ia();var t=ks,o=Mr;!Pt||o<=t||(As?As.run(console.timeStamp.bind(console,e,t,o,Je,Qe,"secondary-light")):console.timeStamp(e,t,o,Je,Qe,"secondary-light"))}e=Hr,t=Cu,o=vn;var r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=q.T,q.T=null;var c=yt.p;yt.p=Eo;var f=ct;ct|=No;try{vu=o,Su=e,Zf(),ML(e,t.alternate,t),Su=vu=null}finally{ct=f,yt.p=c,q.T=r}}e=dx,t=hw,ks=ia(),e=t===null?e:Mr,t=ks,o=Sn===lx,r=ta,Ms!==null?Y0(e,t,Ms,!1,r):!Pt||t<=e||(r?r.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,t,Je,Qe,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,t,Je,Qe,o?"error":"secondary-dark")),fa=dw}}function oC(){if(fa===fw||fa===dw){if(fa===fw){var e=ks;ks=ia();var t=ks,o=Sn===lx;!Pt||t<=e||(As?As.run(console.timeStamp.bind(console,o?"Interrupted View Transition":"Starting Animation",e,t,Je,Qe,o?"error":"secondary-light")):console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,t,Je,Qe,o?" error":"secondary-light")),Sn!==lx&&(Sn=lw)}fa=zr,s2(),e=Hr;var r=Cu;t=vn,o=pw;var c=r.actualDuration!==0||(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0;c?fa=Mh:(fa=zr,Cu=Hr=null,nC(e,e.pendingLanes),Zi=0,Sd=null);var f=e.pendingLanes;if(f===0&&(Nr=null),c||uC(e),f=C(t),r=r.stateNode,Va&&typeof Va.onCommitFiberRoot==="function")try{var m=(r.current.flags&128)===128;switch(f){case Eo:var x=fb;break;case mn:x=pb;break;case Wn:x=$l;break;case Gp:x=hb;break;default:x=$l}Va.onCommitFiberRoot(Wl,r,x,m)}catch(P){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",P))}if($n&&e.memoizedUpdaters.clear(),o_(),o!==null){m=q.T,x=yt.p,yt.p=Eo,q.T=null;try{var S=e.onRecoverableError;for(r=0;r<o.length;r++){var L=o[r],O=l_(L.stack);me(L.source,S,L.value,O)}}finally{q.T=m,yt.p=x}}(vn&3)!==0&&wc(),qn(e),f=e.pendingLanes,(t&261930)!==0&&(f&42)!==0?(uh=!0,e===px?vd++:(vd=0,px=e)):vd=0,c||Ei(t,ks),Mc(0,!1)}}function l_(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 nC(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,uc(t)))}function wc(){return tC(),aC(),oC(),sC()}function sC(){if(fa!==Mh)return!1;var e=Hr,t=cx;cx=0;var o=C(vn),r=Wn===0||Wn>o?Wn:o;o=q.T;var c=yt.p;try{yt.p=r,q.T=null;var f=fx;fx=null,r=Hr;var m=vn;if(fa=zr,Cu=Hr=null,vn=0,(ct&(ga|No))!==wa)throw Error("Cannot flush passive effects while already rendering.");To(m),hx=!0,Ih=!1;var x=0;if(Ms=null,x=La(),Sn===lw)ic(ks,x,As);else{var S=ks,L=x,O=Sn===ux;!Pt||L<=S||(ta?ta.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",S,L,Je,Qe,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",S,L,Je,Qe,"secondary-light"))}S=ct,ct|=No;var P=r.current;Zf(),UL(P);var _=r.current;P=dx,Zf(),BL(r,_,m,f,P),uC(r),ct=S;var U=La();if(_=x,P=ta,Ms!==null?Y0(_,U,Ms,!0,P):!Pt||U<=_||(P?P.run(console.timeStamp.bind(console,"Remaining Effects",_,U,Je,Qe,"secondary-dark")):console.timeStamp("Remaining Effects",_,U,Je,Qe,"secondary-dark")),Ei(m,U),Mc(0,!1),Ih?r===Sd?Zi++:(Zi=0,Sd=r):Zi=0,Ih=hx=!1,Va&&typeof Va.onPostCommitFiberRoot==="function")try{Va.onPostCommitFiberRoot(Wl,r)}catch(he){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",he))}var ie=r.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{yt.p=c,q.T=o,nC(e,t)}}function rC(e,t,o){t=wo(o,t),lS(t),t=ry(e.stateNode,t,2),e=dr(e,t,2),e!==null&&(or(e,2),qn(e))}function gt(e,t,o){if(Tu=!1,e.tag===3)rC(e,e,o);else{for(;t!==null;){if(t.tag===3){rC(t,e,o);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof r.componentDidCatch==="function"&&(Nr===null||!Nr.has(r))){e=wo(o,e),lS(e),o=iy(2),r=dr(t,o,2),r!==null&&(ly(o,r,t,e),or(r,2),qn(r));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`,o)}}function ty(e,t,o){var i=e.pingCache;if(i===null){i=e.pingCache=new AD;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(o)||(Db=!0,u.add(o),i=fR.bind(null,e,t,o),Nn&&tc(e,o),t.then(i,i))}function fR(e,t,o){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>Fn&&(ri=Fn=Qt(),wc=_h("Promise Resolved"),ui=Dh):(o&4194048)!==0&&0>Ho&&(qn=Ho=Qt(),Mc=_h("Promise Resolved"),hb=Dh),fL()&&H.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,o)}}function Ay(e,t,o){var r=e.pingCache;if(r===null){r=e.pingCache=new wD;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(o)||(rx=!0,c.add(o),r=u_.bind(null,e,t,o),$n&&kc(e,o),t.then(r,r))}function u_(e,t,o){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>Kn&&(Ir=Kn=ia(),Zc=oh("Promise Resolved"),Ar=nh):(o&4194048)!==0&&0>Qo&&(Jn=Qo=ia(),Kc=oh("Promise Resolved"),Fb=nh),VL()&&q.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`),xt===e&&(Fe&o)===o&&(Ot===hi||Ot===Xh&&(Fe&62914560)===Fe&&da()-Kh<kT?(ot&ia)===pa&&vr(e,0):Eb|=o,kl===Fe&&(kl=0)),_n(e)}function RL(e,t){t===0&&(t=sr()),e=Ra(e,t),e!==null&&(Ns(e,t),_n(e))}function hR(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),RL(e,o)}function pR(e,t){var o=0;switch(e.tag){case 31:case 13:var{stateNode:i,memoizedState:u}=e;u!==null&&(o=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),RL(e,o)}function ay(e,t,o){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,u=t,d=u.type===hh;d=o||d,u.tag!==22?u.flags&67108864?d&&ie(u,_L,i,u):ay(i,u,d):u.memoizedState===null&&(d&&u.flags&8192?ie(u,_L,i,u):u.subtreeFlags&67108864&&ie(u,ay,i,u,d)),t=t.sibling}}function _L(e,t){St(!0);try{oL(t),cL(t),nL(e,t.alternate,t,!1),iL(e,t,0,null,!1,0)}finally{St(!1)}}function DL(e){var t=!0;e.current.mode&(Da|ln)||(t=!1),ay(e,e.current,t)}function EL(e){if((ot&ia)===pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",op!==null){if(op.has(t))return;op.add(t)}else op=new Set([t]);ie(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 tc(e,t){Nn&&e.memoizedUpdaters.forEach(function(o){Mu(e,o,t)})}function mR(e,t){var o=H.actQueue;return o!==null?(o.push(t),_D):Ny(e,t)}function gR(e){fL()&&H.actQueue===null&&ie(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
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`),At===e&&(Xe&o)===o&&(Yt===Er||Yt===xh&&(Xe&62914560)===Xe&&La()-Th<rw?(ct&ga)===wa&&Fl(e,0):ix|=o,Wi===Xe&&(Wi=0)),qn(e)}function iC(e,t){t===0&&(t=kl()),e=qa(e,t),e!==null&&(or(e,t),qn(e))}function c_(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),iC(e,o)}function d_(e,t){var o=0;switch(e.tag){case 31:case 13:var{stateNode:r,memoizedState:c}=e;c!==null&&(o=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}r!==null&&r.delete(t),iC(e,o)}function Ry(e,t,o){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var r=e,c=t,f=c.type===Hp;f=o||f,c.tag!==22?c.flags&67108864?f&&me(c,lC,r,c):Ry(r,c,f):c.memoizedState===null&&(f&&c.flags&8192?me(c,lC,r,c):c.subtreeFlags&67108864&&me(c,Ry,r,c,f)),t=t.sibling}}function lC(e,t){_t(!0);try{OL(t),FL(t),PL(e,t.alternate,t,!1),NL(e,t,0,null,!1,0)}finally{_t(!1)}}function uC(e){var t=!0;e.current.mode&(ja|gn)||(t=!1),Ry(e,e.current,t)}function cC(e){if((ct&ga)===wa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=j(e)||"ReactComponent",Ah!==null){if(Ah.has(t))return;Ah.add(t)}else Ah=new Set([t]);me(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 kc(e,t){$n&&e.memoizedUpdaters.forEach(function(o){Ku(e,o,t)})}function f_(e,t){var o=q.actQueue;return o!==null?(o.push(t),ID):db(e,t)}function p_(e){VL()&&q.actQueue===null&&me(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,25 +172,25 @@ 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`,V(e))})}function _n(e){e!==nu&&e.next===null&&(nu===null?np=nu=e:nu=nu.next=e),sp=!0,H.actQueue!==null?qb||(qb=!0,NL()):Fb||(Fb=!0,NL())}function ac(e,t){if(!Vb&&sp){Vb=!0;do{var o=!1;for(var i=np;i!==null;){if(!t)if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var{suspendedLanes:m,pingedLanes:b}=i;d=(1<<31-Na(42|e)+1)-1,d&=u&~(m&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,BL(i,d))}else d=Fe,d=Xi(i,i===xt?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Ol),(d&3)===0||$i(i,d)||(o=!0,BL(i,d));i=i.next}}while(o);Vb=!1}}function yR(){ed=window.event,oy()}function oy(){sp=qb=Fb=!1;var e=0;vi!==0&&TR()&&(e=vi);for(var t=da(),o=null,i=np;i!==null;){var u=i.next,d=OL(i,t);if(d===0)i.next=null,o===null?np=u:o.next=u,u===null&&(nu=o);else if(o=i,e!==0||(d&3)!==0)sp=!0;i=u}aa!==bi&&aa!==tp||ac(e,!1),vi!==0&&(vi=0)}function OL(e,t){for(var{suspendedLanes:o,pingedLanes:i,expirationTimes:u}=e,d=e.pendingLanes&-62914561;0<d;){var m=31-Na(d),b=1<<m,v=u[m];if(v===-1){if((b&o)===0||(b&i)!==0)u[m]=Sm(b,t)}else v<=t&&(e.expiredLanes|=b);d&=~b}if(t=xt,o=Fe,o=Xi(e,e===t?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ol),i=e.callbackNode,o===0||e===t&&(ht===Ml||ht===Al)||e.cancelPendingCommit!==null)return i!==null&&ny(i),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||$i(e,o)){if(t=o&-o,t!==e.callbackPriority||H.actQueue!==null&&i!==jb)ny(i);else return t;switch(C(o)){case Lo:case sn:o=Uy;break;case zn:o=Mr;break;case xh:o=Hy;break;default:o=Mr}return i=PL.bind(null,e),H.actQueue!==null?(H.actQueue.push(i),o=jb):o=Ny(o,i),e.callbackPriority=t,e.callbackNode=o,t}return i!==null&&ny(i),e.callbackPriority=2,e.callbackNode=null,2}function PL(e,t){if(Nh=Bh=!1,ed=window.event,aa!==bi&&aa!==tp)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(fn===ep&&(fn=Pb),ec()&&e.callbackNode!==o)return null;var i=Fe;if(i=Xi(e,e===xt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ol),i===0)return null;return pL(e,i,t),OL(e,da()),e.callbackNode!=null&&e.callbackNode===o?PL.bind(null,e):null}function BL(e,t){if(ec())return null;Bh=Nh,Nh=!1,pL(e,t,!0)}function ny(e){e!==jb&&e!==null&&i_(e)}function NL(){H.actQueue!==null&&H.actQueue.push(function(){return oy(),null}),FD(function(){(ot&(ia|Io))!==pa?Ny(zy,yR):oy()})}function sy(){if(vi===0){var e=vl;e===0&&(e=gh,gh<<=1,(gh&261888)===0&&(gh=256)),vi=e}return vi}function zL(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return mt(e,"action"),Eu(""+e)}function UL(e,t){var o=t.ownerDocument.createElement("input");return o.name=t.name,o.value=t.value,e.id&&o.setAttribute("form",e.id),t.parentNode.insertBefore(o,t),e=new FormData(e),o.parentNode.removeChild(o),e}function bR(e,t,o,i,u){if(t==="submit"&&o&&o.stateNode===u){var d=zL((u[za]||null).action),m=i.submitter;m&&(t=(t=m[za]||null)?zL(t.formAction):m.getAttribute("formAction"),t!==null&&(d=t,m=null));var b=new Th("action","action",null,i,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(vi!==0){var v=m?UL(u,m):new FormData(u),L={pending:!0,data:v,method:u.method,action:d};Object.freeze(L),wg(o,L,null,v)}}else typeof d==="function"&&(b.preventDefault(),v=m?UL(u,m):new FormData(u),L={pending:!0,data:v,method:u.method,action:d},Object.freeze(L),wg(o,L,d,v))},currentTarget:u}]})}}function ah(e,t,o){e.currentTarget=o;try{t(e)}catch(i){ab(i)}e.currentTarget=null}function HL(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var i=e[o];e:{var u=void 0,d=i.event;if(i=i.listeners,t)for(var m=i.length-1;0<=m;m--){var b=i[m],v=b.instance,L=b.currentTarget;if(b=b.listener,v!==u&&d.isPropagationStopped())break e;v!==null?ie(v,ah,d,b,L):ah(d,b,L),u=v}else for(m=0;m<i.length;m++){if(b=i[m],v=b.instance,L=b.currentTarget,b=b.listener,v!==u&&d.isPropagationStopped())break e;v!==null?ie(v,ah,d,b,L):ah(d,b,L),u=v}}}}function et(e,t){Gb.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=t[Fy];o===void 0&&(o=t[Fy]=new Set);var i=e+"__bubble";o.has(i)||(FL(t,e,2,!1),o.add(i))}function iy(e,t,o){Gb.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 i=0;t&&(i|=4),FL(o,e,i,t)}function ly(e){if(!e[ip]){e[ip]=!0,NC.forEach(function(o){o!=="selectionchange"&&(Gb.has(o)||iy(o,!1,e),iy(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ip]||(t[ip]=!0,iy("selectionchange",!1,t))}}function FL(e,t,o,i){switch(vC(t)){case Lo:var u=KR;break;case sn:u=JR;break;default:u=Cy}o=u.bind(null,t,o,e),u=void 0,!Yy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function ry(e,t,o,i,u){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var b=i.stateNode.containerInfo;if(b===u)break;if(m===4)for(m=i.return;m!==null;){var v=m.tag;if((v===3||v===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;b!==null;){if(m=ue(b),m===null)return;if(v=m.tag,v===5||v===6||v===26||v===27){i=d=m;continue e}b=b.parentNode}}i=i.return}Kv(function(){var L=d,O=Rm(o),P=[];e:{var A=v1.get(e);if(A!==void 0){var N=Th,te=e;switch(e){case"keypress":if(cf(o)===0)break e;case"keydown":case"keyup":N=X_;break;case"focusin":te="focus",N=Zy;break;case"focusout":te="blur",N=Zy;break;case"beforeblur":case"afterblur":N=Zy;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=i1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=P_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Z_;break;case g1:case y1:case b1:N=z_;break;case x1:N=K_;break;case"scroll":case"scrollend":N=E_;break;case"wheel":N=eD;break;case"copy":case"cut":case"paste":N=H_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=r1;break;case"toggle":case"beforetoggle":N=aD}var se=(t&4)!==0,Ct=!se&&(e==="scroll"||e==="scrollend"),tt=se?A!==null?A+"Capture":null:A;se=[];for(var I=L,R;I!==null;){var E=I;if(R=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||R===null||tt===null||(E=Ou(I,tt),E!=null&&se.push(oc(I,E,R))),Ct)break;I=I.return}0<se.length&&(A=new N(A,te,null,o,O),P.push({event:A,listeners:se}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",A&&o!==pc&&(te=o.relatedTarget||o.fromElement)&&(ue(te)||te[ti]))break e;if(N||A){if(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,N){if(te=o.relatedTarget||o.toElement,N=L,te=te?ue(te):null,te!==null&&(Ct=_(te),se=te.tag,te!==Ct||se!==5&&se!==27&&se!==6))te=null}else N=null,te=L;if(N!==te){if(se=i1,E="onMouseLeave",tt="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")se=r1,E="onPointerLeave",tt="onPointerEnter",I="pointer";if(Ct=N==null?A:Ee(N),R=te==null?A:Ee(te),A=new se(E,I+"leave",N,o,O),A.target=Ct,A.relatedTarget=R,E=null,ue(O)===L&&(se=new se(tt,I+"enter",te,o,O),se.target=R,se.relatedTarget=Ct,E=se),Ct=E,N&&te)t:{se=xR,tt=N,I=te,R=0;for(E=tt;E;E=se(E))R++;E=0;for(var F=I;F;F=se(F))E++;for(;0<R-E;)tt=se(tt),R--;for(;0<E-R;)I=se(I),E--;for(;R--;){if(tt===I||I!==null&&tt===I.alternate){se=tt;break t}tt=se(tt),I=se(I)}se=null}else se=null;N!==null&&qL(P,A,N,se,!1),te!==null&&Ct!==null&&qL(P,Ct,te,se,!0)}}}e:{if(A=L?Ee(L):window,N=A.nodeName&&A.nodeName.toLowerCase(),N==="select"||N==="input"&&A.type==="file")var oe=s0;else if(o0(A))if(p1)oe=_k;else{oe=kk;var Re=Ak}else N=A.nodeName,!N||N.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?L&&Du(L.elementType)&&(oe=s0):oe=Rk;if(oe&&(oe=oe(e,L))){n0(P,oe,o,O);break e}Re&&Re(e,A,L),e==="focusout"&&L&&A.type==="number"&&L.memoizedProps.value!=null&&Tm(A,"number",A.value)}switch(Re=L?Ee(L):window,e){case"focusin":if(o0(Re)||Re.contentEditable==="true")Pr=Re,Ky=L,Sc=null;break;case"focusout":Sc=Ky=Pr=null;break;case"mousedown":Jy=!0;break;case"contextmenu":case"mouseup":case"dragend":Jy=!1,f0(P,o,O);break;case"selectionchange":if(iD)break;case"keydown":case"keyup":f0(P,o,O)}var xe;if(Qy)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else Or?t0(e,o)&&(fe="onCompositionEnd"):e==="keydown"&&o.keyCode===u1&&(fe="onCompositionStart");if(fe&&(c1&&o.locale!=="ko"&&(Or||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&Or&&(xe=Jv()):(ai=O,Xy=("value"in ai)?ai.value:ai.textContent,Or=!0)),Re=oh(L,fe),0<Re.length&&(fe=new l1(fe,e,null,o,O),P.push({event:fe,listeners:Re}),xe?fe.data=xe:(xe=a0(o),xe!==null&&(fe.data=xe)))),xe=nD?Tk(e,o):wk(e,o))fe=oh(L,"onBeforeInput"),0<fe.length&&(Re=new q_("onBeforeInput","beforeinput",null,o,O),P.push({event:Re,listeners:fe}),Re.data=xe);bR(P,e,L,o,O)}HL(P,t)})}function oc(e,t,o){return{instance:e,listener:t,currentTarget:o}}function oh(e,t){for(var o=t+"Capture",i=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Ou(e,o),u!=null&&i.unshift(oc(e,u,d)),u=Ou(e,t),u!=null&&i.push(oc(e,u,d))),e.tag===3)return i;e=e.return}return[]}function xR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function qL(e,t,o,i,u){for(var d=t._reactName,m=[];o!==null&&o!==i;){var b=o,v=b.alternate,L=b.stateNode;if(b=b.tag,v!==null&&v===i)break;b!==5&&b!==26&&b!==27||L===null||(v=L,u?(L=Ou(o,d),L!=null&&m.unshift(oc(o,L,v))):u||(L=Ou(o,d),L!=null&&m.push(oc(o,L,v)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}function uy(e,t){vk(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||n1||(n1=!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 o={registrationNameDependencies:pl,possibleRegistrationNames:qy};Du(e)||typeof t.is==="string"||Lk(e,t,o),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 ca(e,t,o,i){t!==o&&(o=Zs(o),Zs(t)!==o&&(i[e]=t))}function vR(e,t,o){t.forEach(function(i){o[GL(i)]=i==="style"?dy(e):e.getAttribute(i)})}function Dn(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 VL(e,t){return e=e.namespaceURI===Sh||e.namespaceURI===Rr?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Zs(e){return Bs(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.",Yi(e)),ua(e)),(typeof e==="string"?e:""+e).replace(DD,`
176
- `).replace(ED,"")}function jL(e,t){return t=Zs(t),Zs(e)===t?!0:!1}function yt(e,t,o,i,u,d){switch(o){case"children":if(typeof i==="string")uf(i,t,!1),t==="body"||t==="textarea"&&i===""||_u(e,i);else if(typeof i==="number"||typeof i==="bigint")uf(""+i,t,!1),t!=="body"&&_u(e,""+i);break;case"className":sf(e,"class",i);break;case"tabIndex":sf(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":sf(e,o,i);break;case"style":Wv(e,i,d);break;case"data":if(t!=="object"){sf(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||o!=="href")){o==="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.',o,o):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.',o,o),e.removeAttribute(o);break}if(i==null||typeof i==="function"||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(o);break}mt(i,o),i=Eu(""+i),e.setAttribute(o,i);break;case"action":case"formAction":if(i!=null&&(t==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof i==="function"&&(u.encType==null&&u.method==null||up||(up=!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.")),u.target==null||rp||(rp=!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"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||u.type==="submit"||u.type==="image"||lp?t!=="button"||u.type==null||u.type==="submit"||lp?typeof i==="function"&&(u.name==null||VT||(VT=!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.')),u.formEncType==null&&u.formMethod==null||up||(up=!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.")),u.formTarget==null||rp||(rp=!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."))):(lp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(lp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):o==="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 i==="function"){e.setAttribute(o,"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 d==="function"&&(o==="formAction"?(t!=="input"&&yt(e,t,"name",u.name,u,null),yt(e,t,"formEncType",u.formEncType,u,null),yt(e,t,"formMethod",u.formMethod,u,null),yt(e,t,"formTarget",u.formTarget,u,null)):(yt(e,t,"encType",u.encType,u,null),yt(e,t,"method",u.method,u,null),yt(e,t,"target",u.target,u,null)));if(i==null||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(o);break}mt(i,o),i=Eu(""+i),e.setAttribute(o,i);break;case"onClick":i!=null&&(typeof i!=="function"&&Dn(o,i),e.onclick=Jn);break;case"onScroll":i!=null&&(typeof i!=="function"&&Dn(o,i),et("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&Dn(o,i),et("scrollend",e));break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=i.__html,o!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"multiple":e.multiple=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"muted":e.muted=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i==="function"||typeof i==="boolean"||typeof i==="symbol"){e.removeAttribute("xlink:href");break}mt(i,o),o=Eu(""+i),e.setAttributeNS(_l,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!=="function"&&typeof i!=="symbol"?(mt(i,o),e.setAttribute(o,""+i)):e.removeAttribute(o);break;case"inert":i!==""||cp[o]||(cp[o]=!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.",o));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":i&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":i===!0?e.setAttribute(o,""):i!==!1&&i!=null&&typeof i!=="function"&&typeof i!=="symbol"?(mt(i,o),e.setAttribute(o,i)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&!isNaN(i)&&1<=i?(mt(i,o),e.setAttribute(o,i)):e.removeAttribute(o);break;case"rowSpan":case"start":i==null||typeof i==="function"||typeof i==="symbol"||isNaN(i)?e.removeAttribute(o):(mt(i,o),e.setAttribute(o,i));break;case"popover":et("beforetoggle",e),et("toggle",e),nf(e,"popover",i);break;case"xlinkActuate":Kn(e,_l,"xlink:actuate",i);break;case"xlinkArcrole":Kn(e,_l,"xlink:arcrole",i);break;case"xlinkRole":Kn(e,_l,"xlink:role",i);break;case"xlinkShow":Kn(e,_l,"xlink:show",i);break;case"xlinkTitle":Kn(e,_l,"xlink:title",i);break;case"xlinkType":Kn(e,_l,"xlink:type",i);break;case"xmlBase":Kn(e,Yb,"xml:base",i);break;case"xmlLang":Kn(e,Yb,"xml:lang",i);break;case"xmlSpace":Kn(e,Yb,"xml:space",i);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),nf(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":jT||i==null||typeof i!=="object"||(jT=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",i));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=Zv(o),nf(e,o,i)):pl.hasOwnProperty(o)&&i!=null&&typeof i!=="function"&&Dn(o,i)}}function cy(e,t,o,i,u,d){switch(o){case"style":Wv(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=i.__html,o!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"children":typeof i==="string"?_u(e,i):(typeof i==="number"||typeof i==="bigint")&&_u(e,""+i);break;case"onScroll":i!=null&&(typeof i!=="function"&&Dn(o,i),et("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&Dn(o,i),et("scrollend",e));break;case"onClick":i!=null&&(typeof i!=="function"&&Dn(o,i),e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(pl.hasOwnProperty(o))i!=null&&typeof i!=="function"&&Dn(o,i);else e:{if(o[0]==="o"&&o[1]==="n"&&(u=o.endsWith("Capture"),t=o.slice(2,u?o.length-7:void 0),d=e[za]||null,d=d!=null?d[o]:null,typeof d==="function"&&e.removeEventListener(t,d,u),typeof i==="function")){typeof d!=="function"&&d!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(t,i,u);break e}o in e?e[o]=i:i===!0?e.setAttribute(o,""):nf(e,o,i)}}}function va(e,t,o){switch(uy(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",e),et("load",e);var i=!1,u=!1,d;for(d in o)if(o.hasOwnProperty(d)){var m=o[d];if(m!=null)switch(d){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yt(e,t,d,m,o,null)}}u&&yt(e,t,"srcSet",o.srcSet,o,null),i&&yt(e,t,"src",o.src,o,null);return;case"input":Us("input",o),et("invalid",e);var b=d=m=u=null,v=null,L=null;for(i in o)if(o.hasOwnProperty(i)){var O=o[i];if(O!=null)switch(i){case"name":u=O;break;case"type":m=O;break;case"checked":v=O;break;case"defaultChecked":L=O;break;case"value":d=O;break;case"defaultValue":b=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:yt(e,t,i,O,o,null)}}Ev(e,o),Ov(e,d,b,v,L,m,u,!1);return;case"select":Us("select",o),et("invalid",e),i=m=d=null;for(u in o)if(o.hasOwnProperty(u)&&(b=o[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":m=b;break;case"multiple":i=b;default:yt(e,t,u,b,o,null)}Nv(e,o),t=d,o=m,e.multiple=!!i,t!=null?lr(e,!!i,t,!1):o!=null&&lr(e,!!i,o,!0);return;case"textarea":Us("textarea",o),et("invalid",e),d=u=i=null;for(m in o)if(o.hasOwnProperty(m)&&(b=o[m],b!=null))switch(m){case"value":i=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:yt(e,t,m,b,o,null)}zv(e,o),Hv(e,i,u,d);return;case"option":Pv(e,o);for(v in o)if(o.hasOwnProperty(v)&&(i=o[v],i!=null))switch(v){case"selected":e.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:yt(e,t,v,i,o,null)}return;case"dialog":et("beforetoggle",e),et("toggle",e),et("cancel",e),et("close",e);break;case"iframe":case"object":et("load",e);break;case"video":case"audio":for(i=0;i<Qc.length;i++)et(Qc[i],e);break;case"image":et("error",e),et("load",e);break;case"details":et("toggle",e);break;case"embed":case"source":case"link":et("error",e),et("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(L in o)if(o.hasOwnProperty(L)&&(i=o[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yt(e,t,L,i,o,null)}return;default:if(Du(t)){for(O in o)o.hasOwnProperty(O)&&(i=o[O],i!==void 0&&cy(e,t,O,i,o,void 0));return}}for(b in o)o.hasOwnProperty(b)&&(i=o[b],i!=null&&yt(e,t,b,i,o,null))}function SR(e,t,o,i){switch(uy(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,m=null,b=null,v=null,L=null,O=null;for(N in o){var P=o[N];if(o.hasOwnProperty(N)&&P!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":v=P;default:i.hasOwnProperty(N)||yt(e,t,N,null,i,P)}}for(var A in i){var N=i[A];if(P=o[A],i.hasOwnProperty(A)&&(N!=null||P!=null))switch(A){case"type":d=N;break;case"name":u=N;break;case"checked":L=N;break;case"defaultChecked":O=N;break;case"value":m=N;break;case"defaultValue":b=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:N!==P&&yt(e,t,A,N,i,P)}}t=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,i=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,t||!i||qT||(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"),qT=!0),!t||i||FT||(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"),FT=!0),Cm(e,m,b,v,L,O,d,u);return;case"select":N=m=b=A=null;for(d in o)if(v=o[d],o.hasOwnProperty(d)&&v!=null)switch(d){case"value":break;case"multiple":N=v;default:i.hasOwnProperty(d)||yt(e,t,d,null,i,v)}for(u in i)if(d=i[u],v=o[u],i.hasOwnProperty(u)&&(d!=null||v!=null))switch(u){case"value":A=d;break;case"defaultValue":b=d;break;case"multiple":m=d;default:d!==v&&yt(e,t,u,d,i,v)}i=b,t=m,o=N,A!=null?lr(e,!!t,A,!1):!!o!==!!t&&(i!=null?lr(e,!!t,i,!0):lr(e,!!t,t?[]:"",!1));return;case"textarea":N=A=null;for(b in o)if(u=o[b],o.hasOwnProperty(b)&&u!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:yt(e,t,b,null,i,u)}for(m in i)if(u=i[m],d=o[m],i.hasOwnProperty(m)&&(u!=null||d!=null))switch(m){case"value":A=u;break;case"defaultValue":N=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:u!==d&&yt(e,t,m,u,i,d)}Uv(e,A,N);return;case"option":for(var te in o)if(A=o[te],o.hasOwnProperty(te)&&A!=null&&!i.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:yt(e,t,te,null,i,A)}for(v in i)if(A=i[v],N=o[v],i.hasOwnProperty(v)&&A!==N&&(A!=null||N!=null))switch(v){case"selected":e.selected=A&&typeof A!=="function"&&typeof A!=="symbol";break;default:yt(e,t,v,A,i,N)}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 se in o)A=o[se],o.hasOwnProperty(se)&&A!=null&&!i.hasOwnProperty(se)&&yt(e,t,se,null,i,A);for(L in i)if(A=i[L],N=o[L],i.hasOwnProperty(L)&&A!==N&&(A!=null||N!=null))switch(L){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:yt(e,t,L,A,i,N)}return;default:if(Du(t)){for(var Ct in o)A=o[Ct],o.hasOwnProperty(Ct)&&A!==void 0&&!i.hasOwnProperty(Ct)&&cy(e,t,Ct,void 0,i,A);for(O in i)A=i[O],N=o[O],!i.hasOwnProperty(O)||A===N||A===void 0&&N===void 0||cy(e,t,O,A,i,N);return}}for(var tt in o)A=o[tt],o.hasOwnProperty(tt)&&A!=null&&!i.hasOwnProperty(tt)&&yt(e,t,tt,null,i,A);for(P in i)A=i[P],N=o[P],!i.hasOwnProperty(P)||A===N||A==null&&N==null||yt(e,t,P,A,i,N)}function GL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function dy(e){var t={};e=e.style;for(var o=0;o<e.length;o++){var i=e[o];t[i]=e.getPropertyValue(i)}return t}function YL(e,t,o){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 i,u=i="",d;for(d in t)if(t.hasOwnProperty(d)){var m=t[d];m!=null&&typeof m!=="boolean"&&m!==""&&(d.indexOf("--")===0?(Iu(m,d),i+=u+d+":"+(""+m).trim()):typeof m!=="number"||m===0||a1.has(d)?(Iu(m,d),i+=u+d.replace(QC,"-$1").toLowerCase().replace(KC,"-ms-")+":"+(""+m).trim()):i+=u+d.replace(QC,"-$1").toLowerCase().replace(KC,"-ms-")+":"+m+"px",u=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=Zs(i),Zs(t)!==i&&(o.style=dy(e)))}}function Eo(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(mt(i,t),e===""+i)return}ca(t,e,i,d)}function XL(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null){switch(typeof i){case"function":case"symbol":return}if(!i)return}else switch(typeof i){case"function":case"symbol":break;default:if(i)return}ca(t,e,i,d)}function fy(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(mt(i,o),e===""+i)return}ca(t,e,i,d)}function $L(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(i))return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(!isNaN(i)&&(mt(i,t),e===""+i))return}ca(t,e,i,d)}function hy(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(mt(i,t),o=Eu(""+i),e===o)return}ca(t,e,i,d)}function WL(e,t,o,i){for(var u={},d=new Set,m=e.attributes,b=0;b<m.length;b++)switch(m[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(m[b].name)}if(Du(t)){for(var v in o)if(o.hasOwnProperty(v)){var L=o[v];if(L!=null){if(pl.hasOwnProperty(v))typeof L!=="function"&&Dn(v,L);else if(o.suppressHydrationWarning!==!0)switch(v){case"children":typeof L!=="string"&&typeof L!=="number"||ca("children",e.textContent,L,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,L=L?L.__html:void 0,L!=null&&(L=VL(e,L),ca(v,m,L,u));continue;case"style":d.delete(v),YL(e,L,u);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(v.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",v);continue;case"className":d.delete("class"),m=Rv(e,"class",L),ca("className",m,L,u);continue;default:i.context===Ss&&t!=="svg"&&t!=="math"?d.delete(v.toLowerCase()):d.delete(v),m=Rv(e,v,L),ca(v,m,L,u)}}}}else for(L in o)if(o.hasOwnProperty(L)&&(v=o[L],v!=null)){if(pl.hasOwnProperty(L))typeof v!=="function"&&Dn(L,v);else if(o.suppressHydrationWarning!==!0)switch(L){case"children":typeof v!=="string"&&typeof v!=="number"||ca("children",e.textContent,v,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=VL(e,v),m!==v&&(u[L]={__html:m}));continue;case"className":Eo(e,L,"class",v,d,u);continue;case"tabIndex":Eo(e,L,"tabindex",v,d,u);continue;case"style":d.delete(L),YL(e,v,u);continue;case"multiple":d.delete(L),ca(L,e.multiple,v,u);continue;case"muted":d.delete(L),ca(L,e.muted,v,u);continue;case"autoFocus":d.delete("autofocus"),ca(L,e.autofocus,v,u);continue;case"data":if(t!=="object"){d.delete(L),m=e.getAttribute("data"),ca(L,m,v,u);continue}case"src":case"href":if(!(v!==""||t==="a"&&L==="href"||t==="object"&&L==="data")){L==="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.',L,L):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.',L,L);continue}hy(e,L,L,v,d,u);continue;case"action":case"formAction":if(m=e.getAttribute(L),typeof v==="function"){d.delete(L.toLowerCase()),L==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(m===OD){d.delete(L.toLowerCase()),ca(L,"function",v,u);continue}hy(e,L,L.toLowerCase(),v,d,u);continue;case"xlinkHref":hy(e,L,"xlink:href",v,d,u);continue;case"contentEditable":fy(e,L,"contenteditable",v,d,u);continue;case"spellCheck":fy(e,L,"spellcheck",v,d,u);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":fy(e,L,L,v,d,u);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":XL(e,L,L.toLowerCase(),v,d,u);continue;case"capture":case"download":e:{b=e;var O=m=L,P=u;if(d.delete(O),b=b.getAttribute(O),b===null)switch(typeof v){case"undefined":case"function":case"symbol":break e;default:if(v===!1)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":break;case"boolean":if(v===!0&&b==="")break e;break;default:if(mt(v,m),b===""+v)break e}ca(m,b,v,P)}continue;case"cols":case"rows":case"size":case"span":e:{if(b=e,O=m=L,P=u,d.delete(O),b=b.getAttribute(O),b===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(v)||1>v)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(v)||1>v)&&(mt(v,m),b===""+v))break e}ca(m,b,v,P)}continue;case"rowSpan":$L(e,L,"rowspan",v,d,u);continue;case"start":$L(e,L,L,v,d,u);continue;case"xHeight":Eo(e,L,"x-height",v,d,u);continue;case"xlinkActuate":Eo(e,L,"xlink:actuate",v,d,u);continue;case"xlinkArcrole":Eo(e,L,"xlink:arcrole",v,d,u);continue;case"xlinkRole":Eo(e,L,"xlink:role",v,d,u);continue;case"xlinkShow":Eo(e,L,"xlink:show",v,d,u);continue;case"xlinkTitle":Eo(e,L,"xlink:title",v,d,u);continue;case"xlinkType":Eo(e,L,"xlink:type",v,d,u);continue;case"xmlBase":Eo(e,L,"xml:base",v,d,u);continue;case"xmlLang":Eo(e,L,"xml:lang",v,d,u);continue;case"xmlSpace":Eo(e,L,"xml:space",v,d,u);continue;case"inert":v!==""||cp[L]||(cp[L]=!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.",L)),XL(e,L,L,v,d,u);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){b=Zv(L),m=!1,i.context===Ss&&t!=="svg"&&t!=="math"?d.delete(b.toLowerCase()):(O=L.toLowerCase(),O=Lh.hasOwnProperty(O)?Lh[O]||null:null,O!==null&&O!==L&&(m=!0,d.delete(O)),d.delete(b));e:if(O=e,P=b,b=v,Au(P))if(O.hasAttribute(P))O=O.getAttribute(P),mt(b,P),b=O===""+b?b:O;else{switch(typeof b){case"function":case"symbol":break e;case"boolean":if(O=P.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}b=b===void 0?void 0:null}else b=void 0;m||ca(L,b,v,u)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&vR(e,d,u),Object.keys(u).length===0?null:u}function LR(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 ZL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CR(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,o=performance.getEntriesByType("resource"),i=0;i<o.length;i++){var u=o[i],d=u.transferSize,m=u.initiatorType,b=u.duration;if(d&&b&&ZL(m)){m=0,b=u.responseEnd;for(i+=1;i<o.length;i++){var v=o[i],L=v.startTime;if(L>b)break;var{transferSize:O,initiatorType:P}=v;O&&ZL(P)&&(v=v.responseEnd,m+=O*(v<b?1:(b-L)/(v-L)))}if(--i,t+=8*(d+m)/(u.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 nh(e){return e.nodeType===9?e:e.ownerDocument}function QL(e){switch(e){case Rr:return iu;case Sh:return fp;default:return Ss}}function KL(e,t){if(e===Ss)switch(t){case"svg":return iu;case"math":return fp;default:return Ss}return e===iu&&t==="foreignObject"?Ss:e}function py(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 TR(){var e=window.event;if(e&&e.type==="popstate"){if(e===Zb)return!1;return Zb=e,!0}return Zb=null,!1}function nc(){var e=window.event;return e&&e!==ed?e.type:null}function sc(){var e=window.event;return e&&e!==ed?e.timeStamp:-1.1}function wR(e){setTimeout(function(){throw e})}function IR(e,t,o){switch(t){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();break;case"img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet)}}function MR(){}function AR(e,t,o,i){SR(e,t,o,i),e[za]=i}function JL(e){_u(e,"")}function kR(e,t,o){e.nodeValue=o}function eC(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[za]||null;if(t!==null){var o=De(e);o!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,ie(o,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,ie(o,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 Qs(e){return e==="head"}function RR(e,t){e.removeChild(t)}function _R(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function tC(e,t){var o=t,i=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o===Jc||o===dp){if(i===0){e.removeChild(u),Tr(t);return}i--}else if(o===Kc||o===Si||o===El||o===su||o===Dl)i++;else if(o===BD)ic(e.ownerDocument.documentElement);else if(o===zD){o=e.ownerDocument.head,ic(o);for(var d=o.firstChild;d;){var{nextSibling:m,nodeName:b}=d;d[hc]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||o.removeChild(d),d=m}}else o===ND&&ic(e.ownerDocument.body);o=u}while(o);Tr(t)}function aC(e,t){var o=e;e=0;do{var i=o.nextSibling;if(o.nodeType===1?t?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(t?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),i&&i.nodeType===8)if(o=i.data,o===Jc)if(e===0)break;else e--;else o!==Kc&&o!==Si&&o!==El&&o!==su||e++;o=i}while(o)}function DR(e){aC(e,!0)}function ER(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function OR(e){e.nodeValue=""}function PR(e){aC(e,!1)}function BR(e,t){t=t[UD],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function NR(e,t){e.nodeValue=t}function my(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var o=t;switch(t=t.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":my(o),ae(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function zR(e,t,o,i){for(;e.nodeType===1;){var u=o;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!i)if(t==="input"&&e.type==="hidden"){mt(u.name,"name");var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;else if(!e[hc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=xo(e.nextSibling),e===null)break}return null}function UR(e,t,o){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o)return null;if(e=xo(e.nextSibling),e===null)return null}return e}function oC(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=xo(e.nextSibling),e===null)return null}return e}function gy(e){return e.data===Si||e.data===El}function yy(e){return e.data===su||e.data===Si&&e.ownerDocument.readyState!==YT}function HR(e,t){var o=e.ownerDocument;if(e.data===El)e._reactRetry=t;else if(e.data!==Si||o.readyState!==YT)t();else{var i=function(){t(),o.removeEventListener("DOMContentLoaded",i)};o.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function xo(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===Kc||t===su||t===Si||t===El||t===Dl||t===Xb||t===GT)break;if(t===Jc||t===dp)return null}}return e}function nC(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),o={},i=e.attributes,u=0;u<i.length;u++){var d=i[u];o[GL(d.name)]=d.name.toLowerCase()==="style"?dy(e):d.value}return{type:t,props:o}}return e.nodeType===8?e.data===Dl?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function sC(e,t,o){return o===null||o[PD]!==!0?(e.nodeValue===t?e=null:(t=Zs(t),e=Zs(e.nodeValue)===t?null:e.nodeValue),e):null}function by(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Jc||o===dp){if(t===0)return xo(e.nextSibling);t--}else o!==Kc&&o!==su&&o!==Si&&o!==El&&o!==Dl||t++}e=e.nextSibling}return null}function iC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Kc||o===su||o===Si||o===El||o===Dl){if(t===0)return e;t--}else o!==Jc&&o!==dp||t++}e=e.previousSibling}return null}function FR(e){Tr(e)}function qR(e){Tr(e)}function VR(e){Tr(e)}function lC(e,t,o,i,u){switch(u&&km(e,i.ancestorInfo),t=nh(o),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 jR(e,t,o,i){if(!o[ti]&&De(o)){var u=o.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.",u,u,u)}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(u=o.attributes;u.length;)o.removeAttributeNode(u[0]);va(o,e,t),o[Sa]=i,o[za]=t}function ic(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ae(e)}function sh(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function rC(e,t,o){var i=lu;if(i&&typeof t==="string"&&t){var u=Do(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof o==="string"&&(u+='[crossorigin="'+o+'"]'),KT.has(u)||(KT.add(u),e={rel:e,crossOrigin:o,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),va(t,"link",e),ve(t),i.head.appendChild(t)))}}function uC(e,t,o,i){var u=(u=Js.current)?sh(u):null;if(!u)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 o.precedence==="string"&&typeof o.href==="string"?(o=Lr(o.href),t=nt(u).hoistableStyles,i=t.get(o),i||(i={type:"style",instance:null,count:0,state:null},t.set(o,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href==="string"&&typeof o.precedence==="string"){e=Lr(o.href);var d=nt(u).hoistableStyles,m=d.get(e);if(!m&&(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:Pl,preload:null}},d.set(e,m),(d=u.querySelector(lc(e)))&&!d._p&&(m.instance=d,m.state.loading=td|jo),!Go.has(e))){var b={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Go.set(e,b),d||GR(u,e,b,m.state)}if(t&&i===null)throw o=`
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`,j(e))})}function qn(e){e!==wu&&e.next===null&&(wu===null?Rh=wu=e:wu=wu.next=e),_h=!0,q.actQueue!==null?gx||(gx=!0,hC()):mx||(mx=!0,hC())}function Mc(e,t){if(!yx&&_h){yx=!0;do{var o=!1;for(var r=Rh;r!==null;){if(!t)if(e!==0){var c=r.pendingLanes;if(c===0)var f=0;else{var{suspendedLanes:m,pingedLanes:x}=r;f=(1<<31-$a(42|e)+1)-1,f&=c&~(m&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(o=!0,pC(r,f))}else f=Xe,f=pi(r,r===At?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==el),(f&3)===0||hi(r,f)||(o=!0,pC(r,f));r=r.next}}while(o);yx=!1}}function h_(){wd=window.event,_y()}function _y(){_h=gx=mx=!1;var e=0;Ur!==0&&S_()&&(e=Ur);for(var t=La(),o=null,r=Rh;r!==null;){var c=r.next,f=dC(r,t);if(f===0)r.next=null,o===null?Rh=c:o.next=c,c===null&&(wu=o);else if(o=r,e!==0||(f&3)!==0)_h=!0;r=c}fa!==zr&&fa!==Mh||Mc(e,!1),Ur!==0&&(Ur=0)}function dC(e,t){for(var{suspendedLanes:o,pingedLanes:r,expirationTimes:c}=e,f=e.pendingLanes&-62914561;0<f;){var m=31-$a(f),x=1<<m,S=c[m];if(S===-1){if((x&o)===0||(x&r)!==0)c[m]=Wm(x,t)}else S<=t&&(e.expiredLanes|=x);f&=~x}if(t=At,o=Xe,o=pi(e,e===t?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==el),r=e.callbackNode,o===0||e===t&&(St===Yi||St===$i)||e.cancelPendingCommit!==null)return r!==null&&Dy(r),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||hi(e,o)){if(t=o&-o,t!==e.callbackPriority||q.actQueue!==null&&r!==bx)Dy(r);else return t;switch(C(o)){case Eo:case mn:o=pb;break;case Wn:o=$l;break;case Gp:o=hb;break;default:o=$l}return r=fC.bind(null,e),q.actQueue!==null?(q.actQueue.push(r),o=bx):o=db(o,r),e.callbackPriority=t,e.callbackNode=o,t}return r!==null&&Dy(r),e.callbackPriority=2,e.callbackNode=null,2}function fC(e,t){if(uh=lh=!1,wd=window.event,fa!==zr&&fa!==Mh)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Sn===kh&&(Sn=ux),wc()&&e.callbackNode!==o)return null;var r=Xe;if(r=pi(e,e===At?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==el),r===0)return null;return GL(e,r,t),dC(e,La()),e.callbackNode!=null&&e.callbackNode===o?fC.bind(null,e):null}function pC(e,t){if(wc())return null;lh=uh,uh=!1,GL(e,t,!0)}function Dy(e){e!==bx&&e!==null&&o2(e)}function hC(){q.actQueue!==null&&q.actQueue.push(function(){return _y(),null}),zD(function(){(ct&(ga|No))!==wa?db(fb,h_):_y()})}function Ey(){if(Ur===0){var e=Ui;e===0&&(e=qp,qp<<=1,(qp&261888)===0&&(qp=256)),Ur=e}return Ur}function mC(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Ct(e,"action"),nc(""+e)}function gC(e,t){var o=t.ownerDocument.createElement("input");return o.name=t.name,o.value=t.value,e.id&&o.setAttribute("form",e.id),t.parentNode.insertBefore(o,t),e=new FormData(e),o.parentNode.removeChild(o),e}function m_(e,t,o,r,c){if(t==="submit"&&o&&o.stateNode===c){var f=mC((c[Wa]||null).action),m=r.submitter;m&&(t=(t=m[Wa]||null)?mC(t.formAction):m.getAttribute("formAction"),t!==null&&(f=t,m=null));var x=new Zp("action","action",null,r,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ur!==0){var S=m?gC(c,m):new FormData(c),L={pending:!0,data:S,method:c.method,action:f};Object.freeze(L),Jg(o,L,null,S)}}else typeof f==="function"&&(x.preventDefault(),S=m?gC(c,m):new FormData(c),L={pending:!0,data:S,method:c.method,action:f},Object.freeze(L),Jg(o,L,f,S))},currentTarget:c}]})}}function Ip(e,t,o){e.currentTarget=o;try{t(e)}catch(r){Rb(r)}e.currentTarget=null}function yC(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var r=e[o];e:{var c=void 0,f=r.event;if(r=r.listeners,t)for(var m=r.length-1;0<=m;m--){var x=r[m],S=x.instance,L=x.currentTarget;if(x=x.listener,S!==c&&f.isPropagationStopped())break e;S!==null?me(S,Ip,f,x,L):Ip(f,x,L),c=S}else for(m=0;m<r.length;m++){if(x=r[m],S=x.instance,L=x.currentTarget,x=x.listener,S!==c&&f.isPropagationStopped())break e;S!==null?me(S,Ip,f,x,L):Ip(f,x,L),c=S}}}}function nt(e,t){xx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=t[mb];o===void 0&&(o=t[mb]=new Set);var r=e+"__bubble";o.has(r)||(bC(t,e,2,!1),o.add(r))}function Oy(e,t,o){xx.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 r=0;t&&(r|=4),bC(o,e,r,t)}function Py(e){if(!e[Dh]){e[Dh]=!0,h1.forEach(function(o){o!=="selectionchange"&&(xx.has(o)||Oy(o,!1,e),Oy(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dh]||(t[Dh]=!0,Oy("selectionchange",!1,t))}}function bC(e,t,o,r){switch(QC(t)){case Eo:var c=W_;break;case mn:c=Z_;break;default:c=Qy}o=c.bind(null,t,o,e),c=void 0,!vb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),r?c!==void 0?e.addEventListener(t,o,{capture:!0,passive:c}):e.addEventListener(t,o,!0):c!==void 0?e.addEventListener(t,o,{passive:c}):e.addEventListener(t,o,!1)}function By(e,t,o,r,c){var f=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var m=r.tag;if(m===3||m===4){var x=r.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=r.return;m!==null;){var S=m.tag;if((S===3||S===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=xe(x),m===null)return;if(S=m.tag,S===5||S===6||S===26||S===27){r=f=m;continue e}x=x.parentNode}}r=r.return}A0(function(){var L=f,O=ng(o),P=[];e:{var _=Q1.get(e);if(_!==void 0){var U=Zp,ie=e;switch(e){case"keypress":if(Bf(o)===0)break e;case"keydown":case"keyup":U=j2;break;case"focusin":ie="focus",U=Tb;break;case"focusout":ie="blur",U=Tb;break;case"beforeblur":case"afterblur":U=Tb;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=N1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=D2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Y2;break;case Y1:case $1:case W1:U=P2;break;case Z1:U=W2;break;case"scroll":case"scrollend":U=R2;break;case"wheel":U=Q2;break;case"copy":case"cut":case"paste":U=N2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=H1;break;case"toggle":case"beforetoggle":U=J2}var he=(t&4)!==0,Et=!he&&(e==="scroll"||e==="scrollend"),st=he?_!==null?_+"Capture":null:_;he=[];for(var R=L,D;R!==null;){var E=R;if(D=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||D===null||st===null||(E=sc(R,st),E!=null&&he.push(Ic(R,E,D))),Et)break;R=R.return}0<he.length&&(_=new U(_,ie,null,o,O),P.push({event:_,listeners:he}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",_&&o!==Hc&&(ie=o.relatedTarget||o.fromElement)&&(xe(ie)||ie[Sr]))break e;if(U||_){if(_=O.window===O?O:(_=O.ownerDocument)?_.defaultView||_.parentWindow:window,U){if(ie=o.relatedTarget||o.toElement,U=L,ie=ie?xe(ie):null,ie!==null&&(Et=A(ie),he=ie.tag,ie!==Et||he!==5&&he!==27&&he!==6))ie=null}else U=null,ie=L;if(U!==ie){if(he=N1,E="onMouseLeave",st="onMouseEnter",R="mouse",e==="pointerout"||e==="pointerover")he=H1,E="onPointerLeave",st="onPointerEnter",R="pointer";if(Et=U==null?_:ze(U),D=ie==null?_:ze(ie),_=new he(E,R+"leave",U,o,O),_.target=Et,_.relatedTarget=D,E=null,xe(O)===L&&(he=new he(st,R+"enter",ie,o,O),he.target=D,he.relatedTarget=Et,E=he),Et=E,U&&ie)t:{he=g_,st=U,R=ie,D=0;for(E=st;E;E=he(E))D++;E=0;for(var Z=R;Z;Z=he(Z))E++;for(;0<D-E;)st=he(st),D--;for(;0<E-D;)R=he(R),E--;for(;D--;){if(st===R||R!==null&&st===R.alternate){he=st;break t}st=he(st),R=he(R)}he=null}else he=null;U!==null&&xC(P,_,U,he,!1),ie!==null&&Et!==null&&xC(P,Et,ie,he,!0)}}}e:{if(_=L?ze(L):window,U=_.nodeName&&_.nodeName.toLowerCase(),U==="select"||U==="input"&&_.type==="file")var ce=B0;else if(O0(_))if(G1)ce=IR;else{ce=kR;var Be=wR}else U=_.nodeName,!U||U.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?L&&oc(L.elementType)&&(ce=B0):ce=MR;if(ce&&(ce=ce(e,L))){P0(P,ce,o,O);break e}Be&&Be(e,_,L),e==="focusout"&&L&&_.type==="number"&&L.memoizedProps.value!=null&&Km(_,"number",_.value)}switch(Be=L?ze(L):window,e){case"focusin":if(O0(Be)||Be.contentEditable==="true")au=Be,kb=L,Xc=null;break;case"focusout":Xc=kb=au=null;break;case"mousedown":Mb=!0;break;case"contextmenu":case"mouseup":case"dragend":Mb=!1,V0(P,o,O);break;case"selectionchange":if(oD)break;case"keydown":case"keyup":V0(P,o,O)}var Ie;if(wb)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else tu?D0(e,o)&&(Le="onCompositionEnd"):e==="keydown"&&o.keyCode===U1&&(Le="onCompositionStart");if(Le&&(F1&&o.locale!=="ko"&&(tu||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&tu&&(Ie=R0()):(Lr=O,Sb=("value"in Lr)?Lr.value:Lr.textContent,tu=!0)),Be=Ap(L,Le),0<Be.length&&(Le=new z1(Le,e,null,o,O),P.push({event:Le,listeners:Be}),Ie?Le.data=Ie:(Ie=E0(o),Ie!==null&&(Le.data=Ie)))),Ie=tD?SR(e,o):LR(e,o))Le=Ap(L,"onBeforeInput"),0<Le.length&&(Be=new H2("onBeforeInput","beforeinput",null,o,O),P.push({event:Be,listeners:Le}),Be.data=Ie);m_(P,e,L,o,O)}yC(P,t)})}function Ic(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Ap(e,t){for(var o=t+"Capture",r=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=sc(e,o),c!=null&&r.unshift(Ic(e,c,f)),c=sc(e,t),c!=null&&r.push(Ic(e,c,f))),e.tag===3)return r;e=e.return}return[]}function g_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function xC(e,t,o,r,c){for(var f=t._reactName,m=[];o!==null&&o!==r;){var x=o,S=x.alternate,L=x.stateNode;if(x=x.tag,S!==null&&S===r)break;x!==5&&x!==26&&x!==27||L===null||(S=L,c?(L=sc(o,f),L!=null&&m.unshift(Ic(o,L,S))):c||(L=sc(o,f),L!=null&&m.push(Ic(o,L,S)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}function Ny(e,t){yR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||P1||(P1=!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 o={registrationNameDependencies:Oi,possibleRegistrationNames:gb};oc(e)||typeof t.is==="string"||xR(e,t,o),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 Sa(e,t,o,r){t!==o&&(o=gr(o),gr(t)!==o&&(r[e]=t))}function y_(e,t,o){t.forEach(function(r){o[LC(r)]=r==="style"?Hy(e):e.getAttribute(r)})}function Vn(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 vC(e,t){return e=e.namespaceURI===Yp||e.namespaceURI===Ql?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function gr(e){return ar(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.",oo(e)),va(e)),(typeof e==="string"?e:""+e).replace(AD,`
176
+ `).replace(RD,"")}function SC(e,t){return t=gr(t),gr(e)===t?!0:!1}function Mt(e,t,o,r,c,f){switch(o){case"children":if(typeof r==="string")Pf(r,t,!1),t==="body"||t==="textarea"&&r===""||ac(e,r);else if(typeof r==="number"||typeof r==="bigint")Pf(""+r,t,!1),t!=="body"&&ac(e,""+r);break;case"className":Df(e,"class",r);break;case"tabIndex":Df(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Df(e,o,r);break;case"style":k0(e,r,f);break;case"data":if(t!=="object"){Df(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||o!=="href")){o==="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.',o,o):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.',o,o),e.removeAttribute(o);break}if(r==null||typeof r==="function"||typeof r==="symbol"||typeof r==="boolean"){e.removeAttribute(o);break}Ct(r,o),r=nc(""+r),e.setAttribute(o,r);break;case"action":case"formAction":if(r!=null&&(t==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof r==="function"&&(c.encType==null&&c.method==null||Ph||(Ph=!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.")),c.target==null||Oh||(Oh=!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"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||c.type==="submit"||c.type==="image"||Eh?t!=="button"||c.type==null||c.type==="submit"||Eh?typeof r==="function"&&(c.name==null||vw||(vw=!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.')),c.formEncType==null&&c.formMethod==null||Ph||(Ph=!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.")),c.formTarget==null||Oh||(Oh=!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."))):(Eh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Eh=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):o==="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 r==="function"){e.setAttribute(o,"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 f==="function"&&(o==="formAction"?(t!=="input"&&Mt(e,t,"name",c.name,c,null),Mt(e,t,"formEncType",c.formEncType,c,null),Mt(e,t,"formMethod",c.formMethod,c,null),Mt(e,t,"formTarget",c.formTarget,c,null)):(Mt(e,t,"encType",c.encType,c,null),Mt(e,t,"method",c.method,c,null),Mt(e,t,"target",c.target,c,null)));if(r==null||typeof r==="symbol"||typeof r==="boolean"){e.removeAttribute(o);break}Ct(r,o),r=nc(""+r),e.setAttribute(o,r);break;case"onClick":r!=null&&(typeof r!=="function"&&Vn(o,r),e.onclick=ps);break;case"onScroll":r!=null&&(typeof r!=="function"&&Vn(o,r),nt("scroll",e));break;case"onScrollEnd":r!=null&&(typeof r!=="function"&&Vn(o,r),nt("scrollend",e));break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!=="object"||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=r.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"multiple":e.multiple=r&&typeof r!=="function"&&typeof r!=="symbol";break;case"muted":e.muted=r&&typeof r!=="function"&&typeof r!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r==="function"||typeof r==="boolean"||typeof r==="symbol"){e.removeAttribute("xlink:href");break}Ct(r,o),o=nc(""+r),e.setAttributeNS(Qi,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!=="function"&&typeof r!=="symbol"?(Ct(r,o),e.setAttribute(o,""+r)):e.removeAttribute(o);break;case"inert":r!==""||Bh[o]||(Bh[o]=!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.",o));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":r&&typeof r!=="function"&&typeof r!=="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":r===!0?e.setAttribute(o,""):r!==!1&&r!=null&&typeof r!=="function"&&typeof r!=="symbol"?(Ct(r,o),e.setAttribute(o,r)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&!isNaN(r)&&1<=r?(Ct(r,o),e.setAttribute(o,r)):e.removeAttribute(o);break;case"rowSpan":case"start":r==null||typeof r==="function"||typeof r==="symbol"||isNaN(r)?e.removeAttribute(o):(Ct(r,o),e.setAttribute(o,r));break;case"popover":nt("beforetoggle",e),nt("toggle",e),_f(e,"popover",r);break;case"xlinkActuate":fs(e,Qi,"xlink:actuate",r);break;case"xlinkArcrole":fs(e,Qi,"xlink:arcrole",r);break;case"xlinkRole":fs(e,Qi,"xlink:role",r);break;case"xlinkShow":fs(e,Qi,"xlink:show",r);break;case"xlinkTitle":fs(e,Qi,"xlink:title",r);break;case"xlinkType":fs(e,Qi,"xlink:type",r);break;case"xmlBase":fs(e,vx,"xml:base",r);break;case"xmlLang":fs(e,vx,"xml:lang",r);break;case"xmlSpace":fs(e,vx,"xml:space",r);break;case"is":f!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),_f(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":Sw||r==null||typeof r!=="object"||(Sw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=M0(o),_f(e,o,r)):Oi.hasOwnProperty(o)&&r!=null&&typeof r!=="function"&&Vn(o,r)}}function zy(e,t,o,r,c,f){switch(o){case"style":k0(e,r,f);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!=="object"||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=r.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"children":typeof r==="string"?ac(e,r):(typeof r==="number"||typeof r==="bigint")&&ac(e,""+r);break;case"onScroll":r!=null&&(typeof r!=="function"&&Vn(o,r),nt("scroll",e));break;case"onScrollEnd":r!=null&&(typeof r!=="function"&&Vn(o,r),nt("scrollend",e));break;case"onClick":r!=null&&(typeof r!=="function"&&Vn(o,r),e.onclick=ps);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Oi.hasOwnProperty(o))r!=null&&typeof r!=="function"&&Vn(o,r);else e:{if(o[0]==="o"&&o[1]==="n"&&(c=o.endsWith("Capture"),t=o.slice(2,c?o.length-7:void 0),f=e[Wa]||null,f=f!=null?f[o]:null,typeof f==="function"&&e.removeEventListener(t,f,c),typeof r==="function")){typeof f!=="function"&&f!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(t,r,c);break e}o in e?e[o]=r:r===!0?e.setAttribute(o,""):_f(e,o,r)}}}function Ea(e,t,o){switch(Ny(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var r=!1,c=!1,f;for(f in o)if(o.hasOwnProperty(f)){var m=o[f];if(m!=null)switch(f){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mt(e,t,f,m,o,null)}}c&&Mt(e,t,"srcSet",o.srcSet,o,null),r&&Mt(e,t,"src",o.src,o,null);return;case"input":sr("input",o),nt("invalid",e);var x=f=m=c=null,S=null,L=null;for(r in o)if(o.hasOwnProperty(r)){var O=o[r];if(O!=null)switch(r){case"name":c=O;break;case"type":m=O;break;case"checked":S=O;break;case"defaultChecked":L=O;break;case"value":f=O;break;case"defaultValue":x=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mt(e,t,r,O,o,null)}}c0(e,o),d0(e,f,x,S,L,m,c,!1);return;case"select":sr("select",o),nt("invalid",e),r=m=f=null;for(c in o)if(o.hasOwnProperty(c)&&(x=o[c],x!=null))switch(c){case"value":f=x;break;case"defaultValue":m=x;break;case"multiple":r=x;default:Mt(e,t,c,x,o,null)}h0(e,o),t=f,o=m,e.multiple=!!r,t!=null?Il(e,!!r,t,!1):o!=null&&Il(e,!!r,o,!0);return;case"textarea":sr("textarea",o),nt("invalid",e),f=c=r=null;for(m in o)if(o.hasOwnProperty(m)&&(x=o[m],x!=null))switch(m){case"value":r=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Mt(e,t,m,x,o,null)}m0(e,o),y0(e,r,c,f);return;case"option":f0(e,o);for(S in o)if(o.hasOwnProperty(S)&&(r=o[S],r!=null))switch(S){case"selected":e.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:Mt(e,t,S,r,o,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(r=0;r<Ld.length;r++)nt(Ld[r],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(L in o)if(o.hasOwnProperty(L)&&(r=o[L],r!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mt(e,t,L,r,o,null)}return;default:if(oc(t)){for(O in o)o.hasOwnProperty(O)&&(r=o[O],r!==void 0&&zy(e,t,O,r,o,void 0));return}}for(x in o)o.hasOwnProperty(x)&&(r=o[x],r!=null&&Mt(e,t,x,r,o,null))}function b_(e,t,o,r){switch(Ny(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,m=null,x=null,S=null,L=null,O=null;for(U in o){var P=o[U];if(o.hasOwnProperty(U)&&P!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=P;default:r.hasOwnProperty(U)||Mt(e,t,U,null,r,P)}}for(var _ in r){var U=r[_];if(P=o[_],r.hasOwnProperty(_)&&(U!=null||P!=null))switch(_){case"type":f=U;break;case"name":c=U;break;case"checked":L=U;break;case"defaultChecked":O=U;break;case"value":m=U;break;case"defaultValue":x=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!==P&&Mt(e,t,_,U,r,P)}}t=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,r=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,t||!r||xw||(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"),xw=!0),!t||r||bw||(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"),bw=!0),Qm(e,m,x,S,L,O,f,c);return;case"select":U=m=x=_=null;for(f in o)if(S=o[f],o.hasOwnProperty(f)&&S!=null)switch(f){case"value":break;case"multiple":U=S;default:r.hasOwnProperty(f)||Mt(e,t,f,null,r,S)}for(c in r)if(f=r[c],S=o[c],r.hasOwnProperty(c)&&(f!=null||S!=null))switch(c){case"value":_=f;break;case"defaultValue":x=f;break;case"multiple":m=f;default:f!==S&&Mt(e,t,c,f,r,S)}r=x,t=m,o=U,_!=null?Il(e,!!t,_,!1):!!o!==!!t&&(r!=null?Il(e,!!t,r,!0):Il(e,!!t,t?[]:"",!1));return;case"textarea":U=_=null;for(x in o)if(c=o[x],o.hasOwnProperty(x)&&c!=null&&!r.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(e,t,x,null,r,c)}for(m in r)if(c=r[m],f=o[m],r.hasOwnProperty(m)&&(c!=null||f!=null))switch(m){case"value":_=c;break;case"defaultValue":U=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==f&&Mt(e,t,m,c,r,f)}g0(e,_,U);return;case"option":for(var ie in o)if(_=o[ie],o.hasOwnProperty(ie)&&_!=null&&!r.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Mt(e,t,ie,null,r,_)}for(S in r)if(_=r[S],U=o[S],r.hasOwnProperty(S)&&_!==U&&(_!=null||U!=null))switch(S){case"selected":e.selected=_&&typeof _!=="function"&&typeof _!=="symbol";break;default:Mt(e,t,S,_,r,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 he in o)_=o[he],o.hasOwnProperty(he)&&_!=null&&!r.hasOwnProperty(he)&&Mt(e,t,he,null,r,_);for(L in r)if(_=r[L],U=o[L],r.hasOwnProperty(L)&&_!==U&&(_!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mt(e,t,L,_,r,U)}return;default:if(oc(t)){for(var Et in o)_=o[Et],o.hasOwnProperty(Et)&&_!==void 0&&!r.hasOwnProperty(Et)&&zy(e,t,Et,void 0,r,_);for(O in r)_=r[O],U=o[O],!r.hasOwnProperty(O)||_===U||_===void 0&&U===void 0||zy(e,t,O,_,r,U);return}}for(var st in o)_=o[st],o.hasOwnProperty(st)&&_!=null&&!r.hasOwnProperty(st)&&Mt(e,t,st,null,r,_);for(P in r)_=r[P],U=o[P],!r.hasOwnProperty(P)||_===U||_==null&&U==null||Mt(e,t,P,_,r,U)}function LC(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Hy(e){var t={};e=e.style;for(var o=0;o<e.length;o++){var r=e[o];t[r]=e.getPropertyValue(r)}return t}function CC(e,t,o){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 r,c=r="",f;for(f in t)if(t.hasOwnProperty(f)){var m=t[f];m!=null&&typeof m!=="boolean"&&m!==""&&(f.indexOf("--")===0?(Qu(m,f),r+=c+f+":"+(""+m).trim()):typeof m!=="number"||m===0||E1.has(f)?(Qu(m,f),r+=c+f.replace(I1,"-$1").toLowerCase().replace(A1,"-ms-")+":"+(""+m).trim()):r+=c+f.replace(I1,"-$1").toLowerCase().replace(A1,"-ms-")+":"+m+"px",c=";")}r=r||null,t=e.getAttribute("style"),t!==r&&(r=gr(r),gr(t)!==r&&(o.style=Hy(e)))}}function jo(e,t,o,r,c,f){if(c.delete(o),e=e.getAttribute(o),e===null)switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(r!=null)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(Ct(r,t),e===""+r)return}Sa(t,e,r,f)}function TC(e,t,o,r,c,f){if(c.delete(o),e=e.getAttribute(o),e===null){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}Sa(t,e,r,f)}function Uy(e,t,o,r,c,f){if(c.delete(o),e=e.getAttribute(o),e===null)switch(typeof r){case"undefined":case"function":case"symbol":return}else if(r!=null)switch(typeof r){case"function":case"symbol":break;default:if(Ct(r,o),e===""+r)return}Sa(t,e,r,f)}function wC(e,t,o,r,c,f){if(c.delete(o),e=e.getAttribute(o),e===null)switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(Ct(r,t),e===""+r))return}Sa(t,e,r,f)}function Fy(e,t,o,r,c,f){if(c.delete(o),e=e.getAttribute(o),e===null)switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(r!=null)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(Ct(r,t),o=nc(""+r),e===o)return}Sa(t,e,r,f)}function kC(e,t,o,r){for(var c={},f=new Set,m=e.attributes,x=0;x<m.length;x++)switch(m[x].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:f.add(m[x].name)}if(oc(t)){for(var S in o)if(o.hasOwnProperty(S)){var L=o[S];if(L!=null){if(Oi.hasOwnProperty(S))typeof L!=="function"&&Vn(S,L);else if(o.suppressHydrationWarning!==!0)switch(S){case"children":typeof L!=="string"&&typeof L!=="number"||Sa("children",e.textContent,L,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,L=L?L.__html:void 0,L!=null&&(L=vC(e,L),Sa(S,m,L,c));continue;case"style":f.delete(S),CC(e,L,c);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":f.delete(S.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",S);continue;case"className":f.delete("class"),m=i0(e,"class",L),Sa("className",m,L,c);continue;default:r.context===Ps&&t!=="svg"&&t!=="math"?f.delete(S.toLowerCase()):f.delete(S),m=i0(e,S,L),Sa(S,m,L,c)}}}}else for(L in o)if(o.hasOwnProperty(L)&&(S=o[L],S!=null)){if(Oi.hasOwnProperty(L))typeof S!=="function"&&Vn(L,S);else if(o.suppressHydrationWarning!==!0)switch(L){case"children":typeof S!=="string"&&typeof S!=="number"||Sa("children",e.textContent,S,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=vC(e,S),m!==S&&(c[L]={__html:m}));continue;case"className":jo(e,L,"class",S,f,c);continue;case"tabIndex":jo(e,L,"tabindex",S,f,c);continue;case"style":f.delete(L),CC(e,S,c);continue;case"multiple":f.delete(L),Sa(L,e.multiple,S,c);continue;case"muted":f.delete(L),Sa(L,e.muted,S,c);continue;case"autoFocus":f.delete("autofocus"),Sa(L,e.autofocus,S,c);continue;case"data":if(t!=="object"){f.delete(L),m=e.getAttribute("data"),Sa(L,m,S,c);continue}case"src":case"href":if(!(S!==""||t==="a"&&L==="href"||t==="object"&&L==="data")){L==="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.',L,L):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.',L,L);continue}Fy(e,L,L,S,f,c);continue;case"action":case"formAction":if(m=e.getAttribute(L),typeof S==="function"){f.delete(L.toLowerCase()),L==="formAction"?(f.delete("name"),f.delete("formenctype"),f.delete("formmethod"),f.delete("formtarget")):(f.delete("enctype"),f.delete("method"),f.delete("target"));continue}else if(m===_D){f.delete(L.toLowerCase()),Sa(L,"function",S,c);continue}Fy(e,L,L.toLowerCase(),S,f,c);continue;case"xlinkHref":Fy(e,L,"xlink:href",S,f,c);continue;case"contentEditable":Uy(e,L,"contenteditable",S,f,c);continue;case"spellCheck":Uy(e,L,"spellcheck",S,f,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Uy(e,L,L,S,f,c);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":TC(e,L,L.toLowerCase(),S,f,c);continue;case"capture":case"download":e:{x=e;var O=m=L,P=c;if(f.delete(O),x=x.getAttribute(O),x===null)switch(typeof S){case"undefined":case"function":case"symbol":break e;default:if(S===!1)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":break;case"boolean":if(S===!0&&x==="")break e;break;default:if(Ct(S,m),x===""+S)break e}Sa(m,x,S,P)}continue;case"cols":case"rows":case"size":case"span":e:{if(x=e,O=m=L,P=c,f.delete(O),x=x.getAttribute(O),x===null)switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(S)||1>S)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(S)||1>S)&&(Ct(S,m),x===""+S))break e}Sa(m,x,S,P)}continue;case"rowSpan":wC(e,L,"rowspan",S,f,c);continue;case"start":wC(e,L,L,S,f,c);continue;case"xHeight":jo(e,L,"x-height",S,f,c);continue;case"xlinkActuate":jo(e,L,"xlink:actuate",S,f,c);continue;case"xlinkArcrole":jo(e,L,"xlink:arcrole",S,f,c);continue;case"xlinkRole":jo(e,L,"xlink:role",S,f,c);continue;case"xlinkShow":jo(e,L,"xlink:show",S,f,c);continue;case"xlinkTitle":jo(e,L,"xlink:title",S,f,c);continue;case"xlinkType":jo(e,L,"xlink:type",S,f,c);continue;case"xmlBase":jo(e,L,"xml:base",S,f,c);continue;case"xmlLang":jo(e,L,"xml:lang",S,f,c);continue;case"xmlSpace":jo(e,L,"xml:space",S,f,c);continue;case"inert":S!==""||Bh[L]||(Bh[L]=!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.",L)),TC(e,L,L,S,f,c);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){x=M0(L),m=!1,r.context===Ps&&t!=="svg"&&t!=="math"?f.delete(x.toLowerCase()):(O=L.toLowerCase(),O=$p.hasOwnProperty(O)?$p[O]||null:null,O!==null&&O!==L&&(m=!0,f.delete(O)),f.delete(x));e:if(O=e,P=x,x=S,Ju(P))if(O.hasAttribute(P))O=O.getAttribute(P),Ct(x,P),x=O===""+x?x:O;else{switch(typeof x){case"function":case"symbol":break e;case"boolean":if(O=P.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}x=x===void 0?void 0:null}else x=void 0;m||Sa(L,x,S,c)}}}return 0<f.size&&o.suppressHydrationWarning!==!0&&y_(e,f,c),Object.keys(c).length===0?null:c}function x_(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 MC(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function v_(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,o=performance.getEntriesByType("resource"),r=0;r<o.length;r++){var c=o[r],f=c.transferSize,m=c.initiatorType,x=c.duration;if(f&&x&&MC(m)){m=0,x=c.responseEnd;for(r+=1;r<o.length;r++){var S=o[r],L=S.startTime;if(L>x)break;var{transferSize:O,initiatorType:P}=S;O&&MC(P)&&(S=S.responseEnd,m+=O*(S<x?1:(x-L)/(S-L)))}if(--r,t+=8*(f+m)/(c.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 Rp(e){return e.nodeType===9?e:e.ownerDocument}function IC(e){switch(e){case Ql:return Mu;case Yp:return zh;default:return Ps}}function AC(e,t){if(e===Ps)switch(t){case"svg":return Mu;case"math":return zh;default:return Ps}return e===Mu&&t==="foreignObject"?Ps:e}function qy(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 S_(){var e=window.event;if(e&&e.type==="popstate"){if(e===Tx)return!1;return Tx=e,!0}return Tx=null,!1}function Ac(){var e=window.event;return e&&e!==wd?e.type:null}function Rc(){var e=window.event;return e&&e!==wd?e.timeStamp:-1.1}function L_(e){setTimeout(function(){throw e})}function C_(e,t,o){switch(t){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();break;case"img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet)}}function T_(){}function w_(e,t,o,r){b_(e,t,o,r),e[Wa]=r}function RC(e){ac(e,"")}function k_(e,t,o){e.nodeValue=o}function _C(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Wa]||null;if(t!==null){var o=Ne(e);o!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,me(o,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,me(o,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 yr(e){return e==="head"}function M_(e,t){e.removeChild(t)}function I_(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function DC(e,t){var o=t,r=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o===Td||o===Nh){if(r===0){e.removeChild(c),Gl(t);return}r--}else if(o===Cd||o===Fr||o===Ji||o===ku||o===Ki)r++;else if(o===ED)_c(e.ownerDocument.documentElement);else if(o===PD){o=e.ownerDocument.head,_c(o);for(var f=o.firstChild;f;){var{nextSibling:m,nodeName:x}=f;f[zc]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&f.rel.toLowerCase()==="stylesheet"||o.removeChild(f),f=m}}else o===OD&&_c(e.ownerDocument.body);o=c}while(o);Gl(t)}function EC(e,t){var o=e;e=0;do{var r=o.nextSibling;if(o.nodeType===1?t?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(t?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),r&&r.nodeType===8)if(o=r.data,o===Td)if(e===0)break;else e--;else o!==Cd&&o!==Fr&&o!==Ji&&o!==ku||e++;o=r}while(o)}function A_(e){EC(e,!0)}function R_(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function __(e){e.nodeValue=""}function D_(e){EC(e,!1)}function E_(e,t){t=t[BD],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function O_(e,t){e.nodeValue=t}function Vy(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var o=t;switch(t=t.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Vy(o),ue(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function P_(e,t,o,r){for(;e.nodeType===1;){var c=o;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!r)if(t==="input"&&e.type==="hidden"){Ct(c.name,"name");var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;else if(!e[zc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Ro(e.nextSibling),e===null)break}return null}function B_(e,t,o){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o)return null;if(e=Ro(e.nextSibling),e===null)return null}return e}function OC(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Ro(e.nextSibling),e===null)return null}return e}function jy(e){return e.data===Fr||e.data===Ji}function Gy(e){return e.data===ku||e.data===Fr&&e.ownerDocument.readyState!==Cw}function N_(e,t){var o=e.ownerDocument;if(e.data===Ji)e._reactRetry=t;else if(e.data!==Fr||o.readyState!==Cw)t();else{var r=function(){t(),o.removeEventListener("DOMContentLoaded",r)};o.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Ro(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===Cd||t===ku||t===Fr||t===Ji||t===Ki||t===Sx||t===Lw)break;if(t===Td||t===Nh)return null}}return e}function PC(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),o={},r=e.attributes,c=0;c<r.length;c++){var f=r[c];o[LC(f.name)]=f.name.toLowerCase()==="style"?Hy(e):f.value}return{type:t,props:o}}return e.nodeType===8?e.data===Ki?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function BC(e,t,o){return o===null||o[DD]!==!0?(e.nodeValue===t?e=null:(t=gr(t),e=gr(e.nodeValue)===t?null:e.nodeValue),e):null}function Xy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Td||o===Nh){if(t===0)return Ro(e.nextSibling);t--}else o!==Cd&&o!==ku&&o!==Fr&&o!==Ji&&o!==Ki||t++}e=e.nextSibling}return null}function NC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Cd||o===ku||o===Fr||o===Ji||o===Ki){if(t===0)return e;t--}else o!==Td&&o!==Nh||t++}e=e.previousSibling}return null}function z_(e){Gl(e)}function H_(e){Gl(e)}function U_(e){Gl(e)}function zC(e,t,o,r,c){switch(c&&og(e,r.ancestorInfo),t=Rp(o),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 F_(e,t,o,r){if(!o[Sr]&&Ne(o)){var c=o.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.",c,c,c)}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(c=o.attributes;c.length;)o.removeAttributeNode(c[0]);Ea(o,e,t),o[Oa]=r,o[Wa]=t}function _c(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ue(e)}function _p(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function HC(e,t,o){var r=Iu;if(r&&typeof t==="string"&&t){var c=Vo(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof o==="string"&&(c+='[crossorigin="'+o+'"]'),Aw.has(c)||(Aw.add(c),e={rel:e,crossOrigin:o,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),Ea(t,"link",e),Ae(t),r.head.appendChild(t)))}}function UC(e,t,o,r){var c=(c=xr.current)?_p(c):null;if(!c)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 o.precedence==="string"&&typeof o.href==="string"?(o=Vl(o.href),t=pt(c).hoistableStyles,r=t.get(o),r||(r={type:"style",instance:null,count:0,state:null},t.set(o,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href==="string"&&typeof o.precedence==="string"){e=Vl(o.href);var f=pt(c).hoistableStyles,m=f.get(e);if(!m&&(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:tl,preload:null}},f.set(e,m),(f=c.querySelector(Dc(e)))&&!f._p&&(m.instance=f,m.state.loading=kd|tn),!an.has(e))){var x={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};an.set(e,x),f||q_(c,e,x,m.state)}if(t&&r===null)throw o=`
177
177
 
178
- - `+ih(t)+`
179
- + `+ih(o),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."+o);return m}if(t&&i!==null)throw o=`
178
+ - `+Dp(t)+`
179
+ + `+Dp(o),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."+o);return m}if(t&&r!==null)throw o=`
180
180
 
181
- - `+ih(t)+`
182
- + `+ih(o),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."+o);return null;case"script":return t=o.async,o=o.src,typeof o==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(o=Cr(o),t=nt(u).hoistableScripts,i=t.get(o),i||(i={type:"script",instance:null,count:0,state:null},t.set(o,i)),i):{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 ih(e){var t=0,o="<link";return typeof e.rel==="string"?(t++,o+=' rel="'+e.rel+'"'):nn.call(e,"rel")&&(t++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,o+=' href="'+e.href+'"'):nn.call(e,"href")&&(t++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,o+=' precedence="'+e.precedence+'"'):nn.call(e,"precedence")&&(t++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(o+=" ..."),o+" />"}function Lr(e){return'href="'+Do(e)+'"'}function lc(e){return'link[rel="stylesheet"]['+e+"]"}function cC(e){return Xe({},e,{"data-precedence":e.precedence,precedence:null})}function GR(e,t,o,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=td:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=td}),t.addEventListener("error",function(){return i.loading|=ZT}),va(t,"link",o),ve(t),e.head.appendChild(t))}function Cr(e){return'[src="'+Do(e)+'"]'}function rc(e){return"script[async]"+e}function dC(e,t,o){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Do(o.href)+'"]');if(i)return t.instance=i,ve(i),i;var u=Xe({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ve(i),va(i,"style",u),lh(i,o.precedence,e),t.instance=i;case"stylesheet":u=Lr(o.href);var d=e.querySelector(lc(u));if(d)return t.state.loading|=jo,t.instance=d,ve(d),d;i=cC(o),(u=Go.get(u))&&xy(i,u),d=(e.ownerDocument||e).createElement("link"),ve(d);var m=d;return m._p=new Promise(function(b,v){m.onload=b,m.onerror=v}),va(d,"link",i),t.state.loading|=jo,lh(d,o.precedence,e),t.instance=d;case"script":if(d=Cr(o.src),u=e.querySelector(rc(d)))return t.instance=u,ve(u),u;if(i=o,u=Go.get(d))i=Xe({},o),vy(i,u);return e=e.ownerDocument||e,u=e.createElement("script"),ve(u),va(u,"link",i),e.head.appendChild(u),t.instance=u;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&jo)===Pl&&(i=t.instance,t.state.loading|=jo,lh(i,o.precedence,e));return t.instance}function lh(e,t,o){for(var i=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,m=0;m<i.length;m++){var b=i[m];if(b.dataset.precedence===t)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=o.nodeType===9?o.head:o,t.insertBefore(e,t.firstChild))}function xy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function fC(e,t,o){if(hp===null){var i=new Map,u=hp=new Map;u.set(o,i)}else u=hp,i=u.get(o),i||(i=new Map,u.set(o,i));if(i.has(e))return i;i.set(e,null),o=o.getElementsByTagName(e);for(u=0;u<o.length;u++){var d=o[u];if(!(d[hc]||d[Sa]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==Rr){var m=d.getAttribute(t)||"";m=e+m;var b=i.get(m);b?b.push(d):i.set(m,[d])}}return i}function hC(e,t,o){e=e.ownerDocument||e,e.head.insertBefore(o,t==="title"?e.querySelector("head > title"):null)}function YR(e,t,o){var i=!o.ancestorInfo.containerTagInScope;if(o.context===iu||t.itemProp!=null)return!i||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===""){i&&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{onError:u,disabled:d}=t;o=[],t.onLoad&&o.push("`onLoad`"),u&&o.push("`onError`"),d!=null&&o.push("`disabled`"),u=LR(o,"and"),u+=o.length===1?" prop":" props",d=o.length===1?"an "+u:"the "+u,o.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,d,u)}i&&(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"&&i&&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"){i&&(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":i&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function pC(e){return e.type==="stylesheet"&&(e.state.loading&QT)===Pl?!1:!0}function XR(e,t,o,i){if(o.type==="stylesheet"&&(typeof i.media!=="string"||matchMedia(i.media).matches!==!1)&&(o.state.loading&jo)===Pl){if(o.instance===null){var u=Lr(i.href),d=t.querySelector(lc(u));if(d){t=d._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=rh.bind(e),t.then(e,e)),o.state.loading|=jo,o.instance=d,ve(d);return}d=t.ownerDocument||t,i=cC(i),(u=Go.get(u))&&xy(i,u),d=d.createElement("link"),ve(d);var m=d;m._p=new Promise(function(b,v){m.onload=b,m.onerror=v}),va(d,"link",i),o.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,t),(t=o.state.preload)&&(o.state.loading&QT)===Pl&&(e.count++,o=rh.bind(e),t.addEventListener("load",o),t.addEventListener("error",o))}}function $R(e,t){return e.stylesheets&&e.count===0&&uh(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var i=setTimeout(function(){if(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},qD+t);0<e.imgBytes&&Kb===0&&(Kb=125*CR()*jD);var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Kb?50:VD)+t);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function rh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function uh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pp=new Map,t.forEach(WR,e),pp=null,rh.call(e))}function WR(e,t){if(!(t.state.loading&jo)){var o=pp.get(e);if(o)var i=o.get(Jb);else{o=new Map,pp.set(e,o);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var m=u[d];if(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")o.set(m.dataset.precedence,m),i=m}i&&o.set(Jb,i)}u=t.instance,m=u.getAttribute("data-precedence"),d=o.get(m)||i,d===i&&o.set(Jb,u),o.set(m,u),this.count++,i=rh.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=jo}}function ZR(e,t,o,i,u,d,m,b,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ol,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ir(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ir(0),this.hiddenUpdates=ir(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,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=o?"hydrateRoot()":"createRoot()"}function mC(e,t,o,i,u,d,m,b,v,L,O,P){return e=new ZR(e,t,o,m,v,L,O,P,b),t=mD,d===!0&&(t|=Da|ln),t|=Ue,d=S(3,null,null,t),e.current=d,d.stateNode=e,t=$m(),ll(t),e.pooledCache=t,ll(t),d.memoizedState={element:i,isDehydrated:o,cache:t},Jm(d),e}function gC(e){if(!e)return si;return e=si,e}function Sy(e,t,o,i,u,d){if(_a&&typeof _a.onScheduleFiberRoot==="function")try{_a.onScheduleFiberRoot(Ar,i,o)}catch(m){Bn||(Bn=!0,console.error("React instrumentation encountered an error: %o",m))}u=gC(u),i.context===null?i.context=u:i.pendingContext=u,Pn&&So!==null&&!aw&&(aw=!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
+ - `+Dp(t)+`
182
+ + `+Dp(o),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."+o);return null;case"script":return t=o.async,o=o.src,typeof o==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(o=jl(o),t=pt(c).hoistableScripts,r=t.get(o),r||(r={type:"script",instance:null,count:0,state:null},t.set(o,r)),r):{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 Dp(e){var t=0,o="<link";return typeof e.rel==="string"?(t++,o+=' rel="'+e.rel+'"'):hn.call(e,"rel")&&(t++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,o+=' href="'+e.href+'"'):hn.call(e,"href")&&(t++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,o+=' precedence="'+e.precedence+'"'):hn.call(e,"precedence")&&(t++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(o+=" ..."),o+" />"}function Vl(e){return'href="'+Vo(e)+'"'}function Dc(e){return'link[rel="stylesheet"]['+e+"]"}function FC(e){return Ze({},e,{"data-precedence":e.precedence,precedence:null})}function q_(e,t,o,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=kd:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=kd}),t.addEventListener("error",function(){return r.loading|=Mw}),Ea(t,"link",o),Ae(t),e.head.appendChild(t))}function jl(e){return'[src="'+Vo(e)+'"]'}function Ec(e){return"script[async]"+e}function qC(e,t,o){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Vo(o.href)+'"]');if(r)return t.instance=r,Ae(r),r;var c=Ze({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ae(r),Ea(r,"style",c),Ep(r,o.precedence,e),t.instance=r;case"stylesheet":c=Vl(o.href);var f=e.querySelector(Dc(c));if(f)return t.state.loading|=tn,t.instance=f,Ae(f),f;r=FC(o),(c=an.get(c))&&Yy(r,c),f=(e.ownerDocument||e).createElement("link"),Ae(f);var m=f;return m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),Ea(f,"link",r),t.state.loading|=tn,Ep(f,o.precedence,e),t.instance=f;case"script":if(f=jl(o.src),c=e.querySelector(Ec(f)))return t.instance=c,Ae(c),c;if(r=o,c=an.get(f))r=Ze({},o),$y(r,c);return e=e.ownerDocument||e,c=e.createElement("script"),Ae(c),Ea(c,"link",r),e.head.appendChild(c),t.instance=c;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&tn)===tl&&(r=t.instance,t.state.loading|=tn,Ep(r,o.precedence,e));return t.instance}function Ep(e,t,o){for(var r=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,f=c,m=0;m<r.length;m++){var x=r[m];if(x.dataset.precedence===t)f=x;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=o.nodeType===9?o.head:o,t.insertBefore(e,t.firstChild))}function Yy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $y(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function VC(e,t,o){if(Hh===null){var r=new Map,c=Hh=new Map;c.set(o,r)}else c=Hh,r=c.get(o),r||(r=new Map,c.set(o,r));if(r.has(e))return r;r.set(e,null),o=o.getElementsByTagName(e);for(c=0;c<o.length;c++){var f=o[c];if(!(f[zc]||f[Oa]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!==Ql){var m=f.getAttribute(t)||"";m=e+m;var x=r.get(m);x?x.push(f):r.set(m,[f])}}return r}function jC(e,t,o){e=e.ownerDocument||e,e.head.insertBefore(o,t==="title"?e.querySelector("head > title"):null)}function V_(e,t,o){var r=!o.ancestorInfo.containerTagInScope;if(o.context===Mu||t.itemProp!=null)return!r||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===""){r&&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{onError:c,disabled:f}=t;o=[],t.onLoad&&o.push("`onLoad`"),c&&o.push("`onError`"),f!=null&&o.push("`disabled`"),c=x_(o,"and"),c+=o.length===1?" prop":" props",f=o.length===1?"an "+c:"the "+c,o.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,f,c)}r&&(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"&&r&&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"){r&&(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":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function GC(e){return e.type==="stylesheet"&&(e.state.loading&Iw)===tl?!1:!0}function j_(e,t,o,r){if(o.type==="stylesheet"&&(typeof r.media!=="string"||matchMedia(r.media).matches!==!1)&&(o.state.loading&tn)===tl){if(o.instance===null){var c=Vl(r.href),f=t.querySelector(Dc(c));if(f){t=f._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Op.bind(e),t.then(e,e)),o.state.loading|=tn,o.instance=f,Ae(f);return}f=t.ownerDocument||t,r=FC(r),(c=an.get(c))&&Yy(r,c),f=f.createElement("link"),Ae(f);var m=f;m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),Ea(f,"link",r),o.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,t),(t=o.state.preload)&&(o.state.loading&Iw)===tl&&(e.count++,o=Op.bind(e),t.addEventListener("load",o),t.addEventListener("error",o))}}function G_(e,t){return e.stylesheets&&e.count===0&&Pp(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var r=setTimeout(function(){if(e.stylesheets&&Pp(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},HD+t);0<e.imgBytes&&kx===0&&(kx=125*v_()*FD);var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pp(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>kx?50:UD)+t);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function Op(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Pp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Uh=new Map,t.forEach(X_,e),Uh=null,Op.call(e))}function X_(e,t){if(!(t.state.loading&tn)){var o=Uh.get(e);if(o)var r=o.get(Mx);else{o=new Map,Uh.set(e,o);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var m=c[f];if(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")o.set(m.dataset.precedence,m),r=m}r&&o.set(Mx,r)}c=t.instance,m=c.getAttribute("data-precedence"),f=o.get(m)||r,f===r&&o.set(Mx,c),o.set(m,c),this.count++,r=Op.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=tn}}function Y_(e,t,o,r,c,f,m,x,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=el,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ml(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.hiddenUpdates=Ml(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,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=o?"hydrateRoot()":"createRoot()"}function XC(e,t,o,r,c,f,m,x,S,L,O,P){return e=new Y_(e,t,o,m,S,L,O,P,x),t=fD,f===!0&&(t|=ja|gn),t|=je,f=v(3,null,null,t),e.current=f,f.stateNode=e,t=Lg(),Mi(t),e.pooledCache=t,Mi(t),f.memoizedState={element:r,isDehydrated:o,cache:t},Mg(f),e}function YC(e){if(!e)return wr;return e=wr,e}function Wy(e,t,o,r,c,f){if(Va&&typeof Va.onScheduleFiberRoot==="function")try{Va.onScheduleFiberRoot(Wl,r,o)}catch(m){Yn||(Yn=!0,console.error("React instrumentation encountered an error: %o",m))}c=YC(c),r.context===null?r.context=c:r.pendingContext=c,Xn&&Do!==null&&!Ew&&(Ew=!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.`,V(So)||"Unknown")),i=js(t),i.payload={element:o},d=d===void 0?null:d,d!==null&&(typeof d!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),i.callback=d),o=Gs(e,i,t),o!==null&&(vn(t,"root.render()",null),Nt(o,e,t),qu(o,e,t))}function yC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function Ly(e,t){yC(e,t),(e=e.alternate)&&yC(e,t)}function bC(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&Nt(t,e,67108864),Ly(e,67108864)}}function xC(e){if(e.tag===13||e.tag===31){var t=bo(e);t=Ki(t);var o=Ra(e,t);o!==null&&Nt(o,e,t),Ly(e,t)}}function QR(){return So}function KR(e,t,o,i){var u=H.T;H.T=null;var d=ct.p;try{ct.p=Lo,Cy(e,t,o,i)}finally{ct.p=d,H.T=u}}function JR(e,t,o,i){var u=H.T;H.T=null;var d=ct.p;try{ct.p=sn,Cy(e,t,o,i)}finally{ct.p=d,H.T=u}}function Cy(e,t,o,i){if(gp){var u=Ty(i);if(u===null)ry(e,t,i,yp,o),SC(e,i);else if(e_(u,e,t,o,i))i.stopPropagation();else if(SC(e,i),t&4&&-1<YD.indexOf(e)){for(;u!==null;){var d=De(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var m=gn(d.pendingLanes);if(m!==0){var b=d;b.pendingLanes|=2;for(b.entangledLanes|=2;m;){var v=1<<31-Na(m);b.entanglements[1]|=v,m&=~v}_n(d),(ot&(ia|Io))===pa&&(Jh=da()+RT,ac(0,!1))}}break;case 31:case 13:b=Ra(d,2),b!==null&&Nt(b,d,2),xr(),Ly(d,2)}if(d=Ty(i),d===null&&ry(e,t,i,yp,o),d===u)break;u=d}u!==null&&i.stopPropagation()}else ry(e,t,i,null,o)}}function Ty(e){return e=Rm(e),wy(e)}function wy(e){if(yp=null,e=ue(e),e!==null){var t=_(e);if(t===null)e=null;else{var o=t.tag;if(o===13){if(e=U(t),e!==null)return e;e=null}else if(o===31){if(e=q(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function vC(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 Lo;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 sn;case"message":switch(u_()){case zy:return Lo;case Uy:return sn;case Mr:case c_:return zn;case Hy:return xh;default:return zn}default:return zn}}function SC(e,t){switch(e){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":Ci=null;break;case"mouseover":case"mouseout":Ti=null;break;case"pointerover":case"pointerout":od.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nd.delete(t.pointerId)}}function uc(e,t,o,i,u,d){if(e===null||e.nativeEvent!==d)return e={blockedOn:t,domEventName:o,eventSystemFlags:i,nativeEvent:d,targetContainers:[u]},t!==null&&(t=De(t),t!==null&&bC(t)),e;return e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e}function e_(e,t,o,i,u){switch(t){case"focusin":return Li=uc(Li,e,t,o,i,u),!0;case"dragenter":return Ci=uc(Ci,e,t,o,i,u),!0;case"mouseover":return Ti=uc(Ti,e,t,o,i,u),!0;case"pointerover":var d=u.pointerId;return od.set(d,uc(od.get(d)||null,e,t,o,i,u)),!0;case"gotpointercapture":return d=u.pointerId,nd.set(d,uc(nd.get(d)||null,e,t,o,i,u)),!0}return!1}function LC(e){var t=ue(e.target);if(t!==null){var o=_(t);if(o!==null){if(t=o.tag,t===13){if(t=U(o),t!==null){e.blockedOn=t,Y(e.priority,function(){xC(o)});return}}else if(t===31){if(t=q(o),t!==null){e.blockedOn=t,Y(e.priority,function(){xC(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ch(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Ty(e.nativeEvent);if(o===null){o=e.nativeEvent;var i=new o.constructor(o.type,o),u=i;pc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),pc=u,o.target.dispatchEvent(i),pc===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."),pc=null}else return t=De(o),t!==null&&bC(t),e.blockedOn=o,!1;t.shift()}return!0}function CC(e,t,o){ch(e)&&o.delete(t)}function t_(){ex=!1,Li!==null&&ch(Li)&&(Li=null),Ci!==null&&ch(Ci)&&(Ci=null),Ti!==null&&ch(Ti)&&(Ti=null),od.forEach(CC),nd.forEach(CC)}function dh(e,t){e.blockedOn===t&&(e.blockedOn=null,ex||(ex=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,t_)))}function TC(e){bp!==e&&(bp=e,it.unstable_scheduleCallback(it.unstable_NormalPriority,function(){bp===e&&(bp=null);for(var t=0;t<e.length;t+=3){var o=e[t],i=e[t+1],u=e[t+2];if(typeof i!=="function")if(wy(i||o)===null)continue;else break;var d=De(o);d!==null&&(e.splice(t,3),t-=3,o={pending:!0,data:u,method:o.method,action:i},Object.freeze(o),wg(d,o,i,u))}}))}function Tr(e){function t(v){return dh(v,e)}Li!==null&&dh(Li,e),Ci!==null&&dh(Ci,e),Ti!==null&&dh(Ti,e),od.forEach(t),nd.forEach(t);for(var o=0;o<wi.length;o++){var i=wi[o];i.blockedOn===e&&(i.blockedOn=null)}for(;0<wi.length&&(o=wi[0],o.blockedOn===null);)LC(o),o.blockedOn===null&&wi.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(i=0;i<o.length;i+=3){var u=o[i],d=o[i+1],m=u[za]||null;if(typeof d==="function")m||TC(o);else if(m){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,m=d[za]||null)b=m.formAction;else if(wy(u)!==null)continue}else b=m.action;typeof b==="function"?o[i+1]=b:(o.splice(i,3),i-=3),TC(o)}}}function wC(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(o,20)}function o(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(o,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Iy(e){this._internalRoot=e}function fh(e){this._internalRoot=e}function IC(e){e[ti]&&(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 Xe=Object.assign,a_=Symbol.for("react.element"),En=Symbol.for("react.transitional.element"),wr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),hh=Symbol.for("react.strict_mode"),My=Symbol.for("react.profiler"),Ay=Symbol.for("react.consumer"),On=Symbol.for("react.context"),cc=Symbol.for("react.forward_ref"),ky=Symbol.for("react.suspense"),Ry=Symbol.for("react.suspense_list"),ph=Symbol.for("react.memo"),vo=Symbol.for("react.lazy"),_y=Symbol.for("react.activity"),o_=Symbol.for("react.memo_cache_sentinel"),MC=Symbol.iterator,n_=Symbol.for("react.client.reference"),na=Array.isArray,H=xu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ct=cv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,s_=Object.freeze({pending:!1,data:null,method:null,action:null}),Dy=[],Ey=[],ls=-1,Ks=he(null),dc=he(null),Js=he(null),mh=he(null),fc=0,AC,kC,RC,_C,DC,EC,OC;D.__reactDisabledLog=!0;var Oy,PC,Py=!1,By=new(typeof WeakMap==="function"?WeakMap:Map),So=null,Pn=!1,nn=Object.prototype.hasOwnProperty,Ny=it.unstable_scheduleCallback,i_=it.unstable_cancelCallback,l_=it.unstable_shouldYield,r_=it.unstable_requestPaint,da=it.unstable_now,u_=it.unstable_getCurrentPriorityLevel,zy=it.unstable_ImmediatePriority,Uy=it.unstable_UserBlockingPriority,Mr=it.unstable_NormalPriority,c_=it.unstable_LowPriority,Hy=it.unstable_IdlePriority,d_=it.log,f_=it.unstable_setDisableYieldValue,Ar=null,_a=null,Bn=!1,Nn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Na=Math.clz32?Math.clz32:af,h_=Math.log,p_=Math.LN2,gh=256,yh=262144,bh=4194304,Lo=2,sn=8,zn=32,xh=268435456,ei=Math.random().toString(36).slice(2),Sa="__reactFiber$"+ei,za="__reactProps$"+ei,ti="__reactContainer$"+ei,Fy="__reactEvents$"+ei,m_="__reactListeners$"+ei,g_="__reactHandles$"+ei,BC="__reactResources$"+ei,hc="__reactMarker$"+ei,NC=new Set,pl={},qy={},y_={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},b_=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]*$"),zC={},UC={},x_=/[\n"\\]/g,HC=!1,FC=!1,qC=!1,VC=!1,jC=!1,GC=!1,YC=["value","defaultValue"],XC=!1,$C=/["'&<>\n\t]|^\s|\s$/,v_="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(" "),WC="applet caption html table td th marquee object template foreignObject desc title".split(" "),S_=WC.concat(["button"]),L_="dd dt li option optgroup p rp rt".split(" "),ZC={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},vh={},Vy={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"]},QC=/([A-Z])/g,KC=/^ms-/,C_=/^(?:webkit|moz|o)[A-Z]/,T_=/^-ms-/,w_=/-(.)/g,JC=/;\s*$/,kr={},jy={},e1=!1,t1=!1,a1=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(" ")),Sh="http://www.w3.org/1998/Math/MathML",Rr="http://www.w3.org/2000/svg",I_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lh={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"},o1={"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},_r={},M_=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]*$"),A_=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]*$"),n1=!1,Ua={},s1=/^on./,k_=/^on[^A-Z]/,R_=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]*$"),__=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]*$"),D_=/^[\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,pc=null,Dr=null,Er=null,Gy=!1,Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yy=!1;if(Un)try{var mc={};Object.defineProperty(mc,"passive",{get:function(){Yy=!0}}),window.addEventListener("test",mc,mc),window.removeEventListener("test",mc,mc)}catch(e){Yy=!1}var ai=null,Xy=null,Ch=null,ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Th=Ga(ml),gc=Xe({},ml,{view:0,detail:0}),E_=Ga(gc),$y,Wy,yc,wh=Xe({},gc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_m,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!==yc&&(yc&&e.type==="mousemove"?($y=e.screenX-yc.screenX,Wy=e.screenY-yc.screenY):Wy=$y=0,yc=e),$y},movementY:function(e){return"movementY"in e?e.movementY:Wy}}),i1=Ga(wh),O_=Xe({},wh,{dataTransfer:0}),P_=Ga(O_),B_=Xe({},gc,{relatedTarget:0}),Zy=Ga(B_),N_=Xe({},ml,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=Ga(N_),U_=Xe({},ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H_=Ga(U_),F_=Xe({},ml,{data:0}),l1=Ga(F_),q_=l1,V_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j_={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"},G_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Y_=Xe({},gc,{key:function(e){if(e.key){var t=V_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_m,charCode:function(e){return e.type==="keypress"?cf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X_=Ga(Y_),$_=Xe({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r1=Ga($_),W_=Xe({},gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_m}),Z_=Ga(W_),Q_=Xe({},ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),K_=Ga(Q_),J_=Xe({},wh,{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}),eD=Ga(J_),tD=Xe({},ml,{newState:0,oldState:0}),aD=Ga(tD),oD=[9,13,27,32],u1=229,Qy=Un&&"CompositionEvent"in window,bc=null;Un&&"documentMode"in document&&(bc=document.documentMode);var nD=Un&&"TextEvent"in window&&!bc,c1=Un&&(!Qy||bc&&8<bc&&11>=bc),d1=32,f1=String.fromCharCode(d1),h1=!1,Or=!1,sD={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},xc=null,vc=null,p1=!1;Un&&(p1=Ik("input")&&(!document.documentMode||9<document.documentMode));var Ha=typeof Object.is==="function"?Object.is:Dk,iD=Un&&"documentMode"in document&&11>=document.documentMode,Pr=null,Ky=null,Sc=null,Jy=!1,Br={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionrun:el("Transition","TransitionRun"),transitionstart:el("Transition","TransitionStart"),transitioncancel:el("Transition","TransitionCancel"),transitionend:el("Transition","TransitionEnd")},eb={},m1={};Un&&(m1=document.createElement("div").style,("AnimationEvent"in window)||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),("TransitionEvent"in window)||delete Br.transitionend.transition);var g1=tl("animationend"),y1=tl("animationiteration"),b1=tl("animationstart"),lD=tl("transitionrun"),rD=tl("transitionstart"),uD=tl("transitioncancel"),x1=tl("transitionend"),v1=new Map,tb="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(" ");tb.push("scrollEnd");var S1=0;if(typeof performance==="object"&&typeof performance.now==="function")var cD=performance,L1=function(){return cD.now()};else{var dD=Date;L1=function(){return dD.now()}}var ab=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)},fD="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.",Ih=0,ob=1,nb=2,sb=3,Mh="– ",Ah="+ ",C1="  ",wt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Oo="Components ⚛",$e="Scheduler ⚛",Ze="Blocking",oi=!1,rs={color:"primary",properties:null,tooltipText:"",track:Oo},ni={start:-0,end:-0,detail:{devtools:rs}},hD=["Changed Props",""],T1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",pD=["Changed Props",T1],Lc=1,us=2,Po=[],Nr=0,ib=0,si={};Object.freeze(si);var Bo=null,zr=null,Ae=0,mD=1,Ue=2,Da=8,ln=16,gD=32,w1=!1;try{var I1=Object.preventExtensions({})}catch(e){w1=!0}var lb=new WeakMap,Ur=[],Hr=0,kh=null,Cc=0,No=[],zo=0,gl=null,cs=1,ds="",La=null,It=null,Ke=!1,Hn=!1,Co=null,ii=null,Uo=!1,rb=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."),ub=he(null),cb=he(null),M1={},Rh=null,Fr=null,qr=!1,yD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(o,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(o){return o()})}},bD=it.unstable_scheduleCallback,xD=it.unstable_NormalPriority,Zt={$$typeof:On,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Qt=it.unstable_now,_h=console.createTask?console.createTask:function(){return null},Tc=1,Dh=2,fa=-0,li=-0,fs=-0,hs=null,Fa=-1.1,yl=-0,Et=-0,Se=-1.1,Ce=-1.1,Dt=null,zt=!1,ri=-0,Fn=-1.1,wc=null,ui=0,db=null,fb=null,bl=-1.1,Ic=null,Vr=-1.1,Eh=-1.1,qn=-0,ps=-1.1,Ho=-1.1,hb=0,Mc=null,A1=null,k1=null,ci=-1.1,xl=null,di=-1.1,Oh=-1.1,R1=-0,_1=-0,Ph=0,ms=null,D1=0,Ac=-1.1,Bh=!1,Nh=!1,kc=null,pb=0,vl=0,jr=null,E1=H.S;H.S=function(e,t){if(AT=da(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ps&&0>Ho){ps=Qt();var o=sc(),i=nc();if(o!==di||i!==xl)di=-1.1;ci=o,xl=i}Uk(e,t)}E1!==null&&E1(e,t)};var Sl=he(null),rn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Rc=[],_c=[],Dc=[],Ec=[],Oc=[],Pc=[],Ll=new Set;rn.recordUnsafeLifecycleWarnings=function(e,t){Ll.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Rc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillMount==="function"&&_c.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Dc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Ec.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Oc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillUpdate==="function"&&Pc.push(e))},rn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Rc.length&&(Rc.forEach(function(b){e.add(V(b)||"Component"),Ll.add(b.type)}),Rc=[]);var t=new Set;0<_c.length&&(_c.forEach(function(b){t.add(V(b)||"Component"),Ll.add(b.type)}),_c=[]);var o=new Set;0<Dc.length&&(Dc.forEach(function(b){o.add(V(b)||"Component"),Ll.add(b.type)}),Dc=[]);var i=new Set;0<Ec.length&&(Ec.forEach(function(b){i.add(V(b)||"Component"),Ll.add(b.type)}),Ec=[]);var u=new Set;0<Oc.length&&(Oc.forEach(function(b){u.add(V(b)||"Component"),Ll.add(b.type)}),Oc=[]);var d=new Set;if(0<Pc.length&&(Pc.forEach(function(b){d.add(V(b)||"Component"),Ll.add(b.type)}),Pc=[]),0<t.size){var m=y(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.`,j(Do)||"Unknown")),r=cr(t),r.payload={element:o},f=f===void 0?null:f,f!==null&&(typeof f!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",f),r.callback=f),o=dr(e,r,t),o!==null&&(_n(t,"root.render()",null),Zt(o,e,t),pc(o,e,t))}function $C(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function Zy(e,t){$C(e,t),(e=e.alternate)&&$C(e,t)}function WC(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&Zt(t,e,67108864),Zy(e,67108864)}}function ZC(e){if(e.tag===13||e.tag===31){var t=Ao(e);t=bi(t);var o=qa(e,t);o!==null&&Zt(o,e,t),Zy(e,t)}}function $_(){return Do}function W_(e,t,o,r){var c=q.T;q.T=null;var f=yt.p;try{yt.p=Eo,Qy(e,t,o,r)}finally{yt.p=f,q.T=c}}function Z_(e,t,o,r){var c=q.T;q.T=null;var f=yt.p;try{yt.p=mn,Qy(e,t,o,r)}finally{yt.p=f,q.T=c}}function Qy(e,t,o,r){if(qh){var c=Ky(r);if(c===null)By(e,t,r,Vh,o),KC(e,r);else if(Q_(c,e,t,o,r))r.stopPropagation();else if(KC(e,r),t&4&&-1<VD.indexOf(e)){for(;c!==null;){var f=Ne(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var m=Mn(f.pendingLanes);if(m!==0){var x=f;x.pendingLanes|=2;for(x.entangledLanes|=2;m;){var S=1<<31-$a(m);x.entanglements[1]|=S,m&=~S}qn(f),(ct&(ga|No))===wa&&(wh=La()+iw,Mc(0,!1))}}break;case 31:case 13:x=qa(f,2),x!==null&&Zt(x,f,2),Ul(),Zy(f,2)}if(f=Ky(r),f===null&&By(e,t,r,Vh,o),f===c)break;c=f}c!==null&&r.stopPropagation()}else By(e,t,r,null,o)}}function Ky(e){return e=ng(e),Jy(e)}function Jy(e){if(Vh=null,e=xe(e),e!==null){var t=A(e);if(t===null)e=null;else{var o=t.tag;if(o===13){if(e=B(t),e!==null)return e;e=null}else if(o===31){if(e=z(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vh=e,null}function QC(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 mn;case"message":switch(r2()){case fb:return Eo;case pb:return mn;case $l:case i2:return Wn;case hb:return Gp;default:return Wn}default:return Wn}}function KC(e,t){switch(e){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":jr=null;break;case"pointerover":case"pointerout":Id.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ad.delete(t.pointerId)}}function Oc(e,t,o,r,c,f){if(e===null||e.nativeEvent!==f)return e={blockedOn:t,domEventName:o,eventSystemFlags:r,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Ne(t),t!==null&&WC(t)),e;return e.eventSystemFlags|=r,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e}function Q_(e,t,o,r,c){switch(t){case"focusin":return qr=Oc(qr,e,t,o,r,c),!0;case"dragenter":return Vr=Oc(Vr,e,t,o,r,c),!0;case"mouseover":return jr=Oc(jr,e,t,o,r,c),!0;case"pointerover":var f=c.pointerId;return Id.set(f,Oc(Id.get(f)||null,e,t,o,r,c)),!0;case"gotpointercapture":return f=c.pointerId,Ad.set(f,Oc(Ad.get(f)||null,e,t,o,r,c)),!0}return!1}function JC(e){var t=xe(e.target);if(t!==null){var o=A(t);if(o!==null){if(t=o.tag,t===13){if(t=B(o),t!==null){e.blockedOn=t,oe(e.priority,function(){ZC(o)});return}}else if(t===31){if(t=z(o),t!==null){e.blockedOn=t,oe(e.priority,function(){ZC(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Ky(e.nativeEvent);if(o===null){o=e.nativeEvent;var r=new o.constructor(o.type,o),c=r;Hc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Hc=c,o.target.dispatchEvent(r),Hc===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."),Hc=null}else return t=Ne(o),t!==null&&WC(t),e.blockedOn=o,!1;t.shift()}return!0}function e1(e,t,o){Bp(e)&&o.delete(t)}function K_(){Ix=!1,qr!==null&&Bp(qr)&&(qr=null),Vr!==null&&Bp(Vr)&&(Vr=null),jr!==null&&Bp(jr)&&(jr=null),Id.forEach(e1),Ad.forEach(e1)}function Np(e,t){e.blockedOn===t&&(e.blockedOn=null,Ix||(Ix=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,K_)))}function t1(e){jh!==e&&(jh=e,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,function(){jh===e&&(jh=null);for(var t=0;t<e.length;t+=3){var o=e[t],r=e[t+1],c=e[t+2];if(typeof r!=="function")if(Jy(r||o)===null)continue;else break;var f=Ne(o);f!==null&&(e.splice(t,3),t-=3,o={pending:!0,data:c,method:o.method,action:r},Object.freeze(o),Jg(f,o,r,c))}}))}function Gl(e){function t(S){return Np(S,e)}qr!==null&&Np(qr,e),Vr!==null&&Np(Vr,e),jr!==null&&Np(jr,e),Id.forEach(t),Ad.forEach(t);for(var o=0;o<Gr.length;o++){var r=Gr[o];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Gr.length&&(o=Gr[0],o.blockedOn===null);)JC(o),o.blockedOn===null&&Gr.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(r=0;r<o.length;r+=3){var c=o[r],f=o[r+1],m=c[Wa]||null;if(typeof f==="function")m||t1(o);else if(m){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,m=f[Wa]||null)x=m.formAction;else if(Jy(c)!==null)continue}else x=m.action;typeof x==="function"?o[r+1]=x:(o.splice(r,3),r-=3),t1(o)}}}function a1(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),r||setTimeout(o,20)}function o(){if(!r&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var r=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(o,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function eb(e){this._internalRoot=e}function zp(e){this._internalRoot=e}function o1(e){e[Sr]&&(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 Ze=Object.assign,J_=Symbol.for("react.element"),jn=Symbol.for("react.transitional.element"),Xl=Symbol.for("react.portal"),Yl=Symbol.for("react.fragment"),Hp=Symbol.for("react.strict_mode"),tb=Symbol.for("react.profiler"),ab=Symbol.for("react.consumer"),Gn=Symbol.for("react.context"),Pc=Symbol.for("react.forward_ref"),ob=Symbol.for("react.suspense"),nb=Symbol.for("react.suspense_list"),Up=Symbol.for("react.memo"),_o=Symbol.for("react.lazy"),sb=Symbol.for("react.activity"),e2=Symbol.for("react.memo_cache_sentinel"),n1=Symbol.iterator,t2=Symbol.for("react.client.reference"),ha=Array.isArray,q=Uu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yt=zv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,a2=Object.freeze({pending:!1,data:null,method:null,action:null}),rb=[],ib=[],Ss=-1,br=se(null),Bc=se(null),xr=se(null),Fp=se(null),Nc=0,s1,r1,i1,l1,u1,c1,d1;k.__reactDisabledLog=!0;var lb,f1,ub=!1,cb=new(typeof WeakMap==="function"?WeakMap:Map),Do=null,Xn=!1,hn=Object.prototype.hasOwnProperty,db=mt.unstable_scheduleCallback,o2=mt.unstable_cancelCallback,n2=mt.unstable_shouldYield,s2=mt.unstable_requestPaint,La=mt.unstable_now,r2=mt.unstable_getCurrentPriorityLevel,fb=mt.unstable_ImmediatePriority,pb=mt.unstable_UserBlockingPriority,$l=mt.unstable_NormalPriority,i2=mt.unstable_LowPriority,hb=mt.unstable_IdlePriority,l2=mt.log,u2=mt.unstable_setDisableYieldValue,Wl=null,Va=null,Yn=!1,$n=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",$a=Math.clz32?Math.clz32:Af,c2=Math.log,d2=Math.LN2,qp=256,Vp=262144,jp=4194304,Eo=2,mn=8,Wn=32,Gp=268435456,vr=Math.random().toString(36).slice(2),Oa="__reactFiber$"+vr,Wa="__reactProps$"+vr,Sr="__reactContainer$"+vr,mb="__reactEvents$"+vr,f2="__reactListeners$"+vr,p2="__reactHandles$"+vr,p1="__reactResources$"+vr,zc="__reactMarker$"+vr,h1=new Set,Oi={},gb={},h2={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},m2=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]*$"),m1={},g1={},g2=/[\n"\\]/g,y1=!1,b1=!1,x1=!1,v1=!1,S1=!1,L1=!1,C1=["value","defaultValue"],T1=!1,w1=/["'&<>\n\t]|^\s|\s$/,y2="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(" "),k1="applet caption html table td th marquee object template foreignObject desc title".split(" "),b2=k1.concat(["button"]),x2="dd dt li option optgroup p rp rt".split(" "),M1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Xp={},yb={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"]},I1=/([A-Z])/g,A1=/^ms-/,v2=/^(?:webkit|moz|o)[A-Z]/,S2=/^-ms-/,L2=/-(.)/g,R1=/;\s*$/,Zl={},bb={},_1=!1,D1=!1,E1=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(" ")),Yp="http://www.w3.org/1998/Math/MathML",Ql="http://www.w3.org/2000/svg",C2=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"]]),$p={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"},O1={"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},Kl={},T2=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]*$"),w2=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]*$"),P1=!1,Za={},B1=/^on./,k2=/^on[^A-Z]/,M2=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]*$"),I2=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]*$"),A2=/^[\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,Hc=null,Jl=null,eu=null,xb=!1,Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vb=!1;if(Zn)try{var Uc={};Object.defineProperty(Uc,"passive",{get:function(){vb=!0}}),window.addEventListener("test",Uc,Uc),window.removeEventListener("test",Uc,Uc)}catch(e){vb=!1}var Lr=null,Sb=null,Wp=null,Pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zp=no(Pi),Fc=Ze({},Pi,{view:0,detail:0}),R2=no(Fc),Lb,Cb,qc,Qp=Ze({},Fc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sg,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!==qc&&(qc&&e.type==="mousemove"?(Lb=e.screenX-qc.screenX,Cb=e.screenY-qc.screenY):Cb=Lb=0,qc=e),Lb},movementY:function(e){return"movementY"in e?e.movementY:Cb}}),N1=no(Qp),_2=Ze({},Qp,{dataTransfer:0}),D2=no(_2),E2=Ze({},Fc,{relatedTarget:0}),Tb=no(E2),O2=Ze({},Pi,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=no(O2),B2=Ze({},Pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N2=no(B2),z2=Ze({},Pi,{data:0}),z1=no(z2),H2=z1,U2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F2={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"},q2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},V2=Ze({},Fc,{key:function(e){if(e.key){var t=U2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sg,charCode:function(e){return e.type==="keypress"?Bf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j2=no(V2),G2=Ze({},Qp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),H1=no(G2),X2=Ze({},Fc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sg}),Y2=no(X2),$2=Ze({},Pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),W2=no($2),Z2=Ze({},Qp,{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}),Q2=no(Z2),K2=Ze({},Pi,{newState:0,oldState:0}),J2=no(K2),eD=[9,13,27,32],U1=229,wb=Zn&&"CompositionEvent"in window,Vc=null;Zn&&"documentMode"in document&&(Vc=document.documentMode);var tD=Zn&&"TextEvent"in window&&!Vc,F1=Zn&&(!wb||Vc&&8<Vc&&11>=Vc),q1=32,V1=String.fromCharCode(q1),j1=!1,tu=!1,aD={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},jc=null,Gc=null,G1=!1;Zn&&(G1=CR("input")&&(!document.documentMode||9<document.documentMode));var Qa=typeof Object.is==="function"?Object.is:AR,oD=Zn&&"documentMode"in document&&11>=document.documentMode,au=null,kb=null,Xc=null,Mb=!1,ou={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Ib={},X1={};Zn&&(X1=document.createElement("div").style,("AnimationEvent"in window)||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),("TransitionEvent"in window)||delete ou.transitionend.transition);var Y1=Si("animationend"),$1=Si("animationiteration"),W1=Si("animationstart"),nD=Si("transitionrun"),sD=Si("transitionstart"),rD=Si("transitioncancel"),Z1=Si("transitionend"),Q1=new Map,Ab="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(" ");Ab.push("scrollEnd");var K1=0;if(typeof performance==="object"&&typeof performance.now==="function")var iD=performance,J1=function(){return iD.now()};else{var lD=Date;J1=function(){return lD.now()}}var Rb=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)},uD="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.",Kp=0,_b=1,Db=2,Eb=3,Jp="– ",eh="+ ",eT="  ",Pt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Go="Components ⚛",Qe="Scheduler ⚛",Je="Blocking",Cr=!1,Ls={color:"primary",properties:null,tooltipText:"",track:Go},Tr={start:-0,end:-0,detail:{devtools:Ls}},cD=["Changed Props",""],tT="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dD=["Changed Props",tT],Yc=1,Cs=2,Xo=[],nu=0,Ob=0,wr={};Object.freeze(wr);var Yo=null,su=null,Oe=0,fD=1,je=2,ja=8,gn=16,pD=32,aT=!1;try{var oT=Object.preventExtensions({})}catch(e){aT=!0}var Pb=new WeakMap,ru=[],iu=0,th=null,$c=0,$o=[],Wo=0,Bi=null,Ts=1,ws="",Pa=null,Bt=null,at=!1,Qn=!1,Oo=null,kr=null,Zo=!1,Bb=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."),Nb=se(null),zb=se(null),nT={},ah=null,lu=null,uu=!1,hD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(o,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(o){return o()})}},mD=mt.unstable_scheduleCallback,gD=mt.unstable_NormalPriority,ra={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ia=mt.unstable_now,oh=console.createTask?console.createTask:function(){return null},Wc=1,nh=2,Ca=-0,Mr=-0,ks=-0,Ms=null,Ka=-1.1,Ni=-0,Xt=-0,Re=-1.1,_e=-1.1,qt=null,Qt=!1,Ir=-0,Kn=-1.1,Zc=null,Ar=0,Hb=null,Ub=null,zi=-1.1,Qc=null,cu=-1.1,sh=-1.1,Jn=-0,Is=-1.1,Qo=-1.1,Fb=0,Kc=null,sT=null,rT=null,Rr=-1.1,Hi=null,_r=-1.1,rh=-1.1,iT=-0,lT=-0,ih=0,As=null,uT=0,Jc=-1.1,lh=!1,uh=!1,ed=null,qb=0,Ui=0,du=null,cT=q.S;q.S=function(e,t){if(sw=La(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Is&&0>Qo){Is=ia();var o=Rc(),r=Ac();if(o!==_r||r!==Hi)_r=-1.1;Rr=o,Hi=r}BR(e,t)}cT!==null&&cT(e,t)};var Fi=se(null),yn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},td=[],ad=[],od=[],nd=[],sd=[],rd=[],qi=new Set;yn.recordUnsafeLifecycleWarnings=function(e,t){qi.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&td.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillMount==="function"&&ad.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&od.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&nd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&sd.push(e),e.mode&ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&rd.push(e))},yn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<td.length&&(td.forEach(function(x){e.add(j(x)||"Component"),qi.add(x.type)}),td=[]);var t=new Set;0<ad.length&&(ad.forEach(function(x){t.add(j(x)||"Component"),qi.add(x.type)}),ad=[]);var o=new Set;0<od.length&&(od.forEach(function(x){o.add(j(x)||"Component"),qi.add(x.type)}),od=[]);var r=new Set;0<nd.length&&(nd.forEach(function(x){r.add(j(x)||"Component"),qi.add(x.type)}),nd=[]);var c=new Set;0<sd.length&&(sd.forEach(function(x){c.add(j(x)||"Component"),qi.add(x.type)}),sd=[]);var f=new Set;if(0<rd.length&&(rd.forEach(function(x){f.add(j(x)||"Component"),qi.add(x.type)}),rd=[]),0<t.size){var m=y(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
 
188
- Please update the following components: %s`,m)}0<i.size&&(m=y(i),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
188
+ Please update the following components: %s`,m)}0<r.size&&(m=y(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,m)),0<d.size&&(m=y(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,m)),0<f.size&&(m=y(f),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
@@ -205,53 +205,53 @@ Please update the following components: %s`,m)),0<o.size&&(m=y(o),console.warn(`
205
205
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
206
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.
207
207
 
208
- Please update the following components: %s`,m)),0<u.size&&(m=y(u),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,m)),0<c.size&&(m=y(c),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
209
 
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`,m))};var zh=new Map,O1=new Set;rn.recordLegacyContextWarning=function(e,t){var o=null;for(var i=e;i!==null;)i.mode&Da&&(o=i),i=i.return;o===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."):!O1.has(e.type)&&(i=zh.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(i===void 0&&(i=[],zh.set(o,i)),i.push(e))},rn.flushLegacyContextWarning=function(){zh.forEach(function(e){if(e.length!==0){var t=e[0],o=new Set;e.forEach(function(u){o.add(V(u)||"Component"),O1.add(u.type)});var i=y(o);ie(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,m))};var ch=new Map,dT=new Set;yn.recordLegacyContextWarning=function(e,t){var o=null;for(var r=e;r!==null;)r.mode&ja&&(o=r),r=r.return;o===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."):!dT.has(e.type)&&(r=ch.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(r===void 0&&(r=[],ch.set(o,r)),r.push(e))},yn.flushLegacyContextWarning=function(){ch.forEach(function(e){if(e.length!==0){var t=e[0],o=new Set;e.forEach(function(c){o.add(j(c)||"Component"),dT.add(c.type)});var r=y(o);me(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`,i)})}})},rn.discardPendingWarnings=function(){Rc=[],_c=[],Dc=[],Ec=[],Oc=[],Pc=[],zh=new Map};var P1={react_stack_bottom_frame:function(e,t,o){var i=Pn;Pn=!0;try{return e(t,o)}finally{Pn=i}}},mb=P1.react_stack_bottom_frame.bind(P1),B1={react_stack_bottom_frame:function(e){var t=Pn;Pn=!0;try{return e.render()}finally{Pn=t}}},N1=B1.react_stack_bottom_frame.bind(B1),z1={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(o){ut(e,e.return,o)}}},gb=z1.react_stack_bottom_frame.bind(z1),U1={react_stack_bottom_frame:function(e,t,o,i,u){try{t.componentDidUpdate(o,i,u)}catch(d){ut(e,e.return,d)}}},H1=U1.react_stack_bottom_frame.bind(U1),F1={react_stack_bottom_frame:function(e,t){var o=t.stack;e.componentDidCatch(t.value,{componentStack:o!==null?o:""})}},vD=F1.react_stack_bottom_frame.bind(F1),q1={react_stack_bottom_frame:function(e,t,o){try{o.componentWillUnmount()}catch(i){ut(e,t,i)}}},V1=q1.react_stack_bottom_frame.bind(q1),j1={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},SD=j1.react_stack_bottom_frame.bind(j1),G1={react_stack_bottom_frame:function(e,t,o){try{o()}catch(i){ut(e,t,i)}}},LD=G1.react_stack_bottom_frame.bind(G1),Y1={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},CD=Y1.react_stack_bottom_frame.bind(Y1),Gr=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`."),yb=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."),Uh=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."),Hh={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.')}},Cl=null,Bc=!1,Yr=null,Nc=0,He=null,bb,X1=bb=!1,$1={},W1={},Z1={};x=function(e,t,o){if(o!==null&&typeof o==="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._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.");o._store.validated=1;var i=V(e),u=i||"null";if(!$1[u]){$1[u]=!0,o=o._owner,e=e._debugOwner;var d="";e&&typeof e.tag==="number"&&(u=V(e))&&(d=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},yn.discardPendingWarnings=function(){td=[],ad=[],od=[],nd=[],sd=[],rd=[],ch=new Map};var fT={react_stack_bottom_frame:function(e,t,o){var r=Xn;Xn=!0;try{return e(t,o)}finally{Xn=r}}},Vb=fT.react_stack_bottom_frame.bind(fT),pT={react_stack_bottom_frame:function(e){var t=Xn;Xn=!0;try{return e.render()}finally{Xn=t}}},hT=pT.react_stack_bottom_frame.bind(pT),mT={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(o){gt(e,e.return,o)}}},jb=mT.react_stack_bottom_frame.bind(mT),gT={react_stack_bottom_frame:function(e,t,o,r,c){try{t.componentDidUpdate(o,r,c)}catch(f){gt(e,e.return,f)}}},yT=gT.react_stack_bottom_frame.bind(gT),bT={react_stack_bottom_frame:function(e,t){var o=t.stack;e.componentDidCatch(t.value,{componentStack:o!==null?o:""})}},yD=bT.react_stack_bottom_frame.bind(bT),xT={react_stack_bottom_frame:function(e,t,o){try{o.componentWillUnmount()}catch(r){gt(e,t,r)}}},vT=xT.react_stack_bottom_frame.bind(xT),ST={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},bD=ST.react_stack_bottom_frame.bind(ST),LT={react_stack_bottom_frame:function(e,t,o){try{o()}catch(r){gt(e,t,r)}}},xD=LT.react_stack_bottom_frame.bind(LT),CT={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},vD=CT.react_stack_bottom_frame.bind(CT),fu=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`."),Gb=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."),dh=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."),fh={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.')}},Vi=null,id=!1,pu=null,ld=0,Ge=null,Xb,TT=Xb=!1,wT={},kT={},MT={};b=function(e,t,o){if(o!==null&&typeof o==="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._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.");o._store.validated=1;var r=j(e),c=r||"null";if(!wT[c]){wT[c]=!0,o=o._owner,e=e._debugOwner;var f="";e&&typeof e.tag==="number"&&(c=j(e))&&(f=`
220
220
 
221
- Check the render method of \``+u+"`."),d||i&&(d=`
221
+ Check the render method of \``+c+"`."),f||r&&(f=`
222
222
 
223
- Check the top-level render call using <`+i+">.");var m="";o!=null&&e!==o&&(i=null,typeof o.tag==="number"?i=V(o):typeof o.name==="string"&&(i=o.name),i&&(m=" It was passed a child from "+i+".")),ie(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.',d,m)})}}};var Tl=q0(!0),Q1=q0(!1),K1=0,J1=1,eT=2,xb=3,fi=!1,tT=!1,vb=null,Sb=!1,Xr=he(null),Fh=he(0),To=he(null),Fo=null,$r=1,zc=2,jt=he(0),qh=0,qo=1,qa=2,wo=4,Va=8,Wr,aT=new Set,oT=new Set,Lb=new Set,nT=new Set,gs=0,ke=null,bt=null,Kt=null,Vh=!1,Zr=!1,wl=!1,jh=0,Uc=0,ys=null,TD=0,wD=25,z=null,Vo=null,bs=-1,Hc=!1,Fc={readContext:_t,use:$s,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Fc.useEffectEvent=qt;var Cb=null,sT=null,Tb=null,iT=null,Vn=null,un=null,Gh=null;Cb={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return z="useCallback",Ye(),fr(t),Sg(e,t)},useContext:function(e){return z="useContext",Ye(),_t(e)},useEffect:function(e,t){return z="useEffect",Ye(),fr(t),zf(e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",Ye(),fr(o),vg(e,t,o)},useInsertionEffect:function(e,t){z="useInsertionEffect",Ye(),fr(t),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),fr(t),xg(e,t)},useMemo:function(e,t){z="useMemo",Ye(),fr(t);var o=H.H;H.H=Vn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",Ye();var i=H.H;H.H=Vn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return z="useRef",Ye(),yg(e)},useState:function(e){z="useState",Ye();var t=H.H;H.H=Vn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){z="useDebugValue",Ye()},useDeferredValue:function(e,t){return z="useDeferredValue",Ye(),Cg(e,t)},useTransition:function(){return z="useTransition",Ye(),Ig()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",Ye(),fg(e,t,o)},useId:function(){return z="useId",Ye(),Mg()},useFormState:function(e,t){return z="useFormState",Ye(),Ef(),pr(e,t)},useActionState:function(e,t){return z="useActionState",Ye(),pr(e,t)},useOptimistic:function(e){return z="useOptimistic",Ye(),mg(e)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return z="useCacheRefresh",Ye(),Ag()},useEffectEvent:function(e){return z="useEffectEvent",Ye(),bg(e)}},sT={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return z="useCallback",j(),Sg(e,t)},useContext:function(e){return z="useContext",j(),_t(e)},useEffect:function(e,t){return z="useEffect",j(),zf(e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",j(),vg(e,t,o)},useInsertionEffect:function(e,t){z="useInsertionEffect",j(),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",j(),xg(e,t)},useMemo:function(e,t){z="useMemo",j();var o=H.H;H.H=Vn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",j();var i=H.H;H.H=Vn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return z="useRef",j(),yg(e)},useState:function(e){z="useState",j();var t=H.H;H.H=Vn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){z="useDebugValue",j()},useDeferredValue:function(e,t){return z="useDeferredValue",j(),Cg(e,t)},useTransition:function(){return z="useTransition",j(),Ig()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",j(),fg(e,t,o)},useId:function(){return z="useId",j(),Mg()},useActionState:function(e,t){return z="useActionState",j(),pr(e,t)},useFormState:function(e,t){return z="useFormState",j(),Ef(),pr(e,t)},useOptimistic:function(e){return z="useOptimistic",j(),mg(e)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return z="useCacheRefresh",j(),Ag()},useEffectEvent:function(e){return z="useEffectEvent",j(),bg(e)}},Tb={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return z="useCallback",j(),Ff(e,t)},useContext:function(e){return z="useContext",j(),_t(e)},useEffect:function(e,t){z="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return z="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){z="useMemo",j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",j();var i=H.H;H.H=un;try{return hr(e,t,o)}finally{H.H=i}},useRef:function(){return z="useRef",j(),ft().memoizedState},useState:function(){z="useState",j();var e=H.H;H.H=un;try{return hr(an)}finally{H.H=e}},useDebugValue:function(){z="useDebugValue",j()},useDeferredValue:function(e,t){return z="useDeferredValue",j(),cS(e,t)},useTransition:function(){return z="useTransition",j(),gS()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",j(),Pf(e,t,o)},useId:function(){return z="useId",j(),ft().memoizedState},useFormState:function(e){return z="useFormState",j(),Ef(),Bf(e)},useActionState:function(e){return z="useActionState",j(),Bf(e)},useOptimistic:function(e,t){return z="useOptimistic",j(),eS(e,t)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return z="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",j(),Uf(e)}},iT={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return z="useCallback",j(),Ff(e,t)},useContext:function(e){return z="useContext",j(),_t(e)},useEffect:function(e,t){z="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return z="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){z="useMemo",j();var o=H.H;H.H=Gh;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",j();var i=H.H;H.H=Gh;try{return Yu(e,t,o)}finally{H.H=i}},useRef:function(){return z="useRef",j(),ft().memoizedState},useState:function(){z="useState",j();var e=H.H;H.H=Gh;try{return Yu(an)}finally{H.H=e}},useDebugValue:function(){z="useDebugValue",j()},useDeferredValue:function(e,t){return z="useDeferredValue",j(),dS(e,t)},useTransition:function(){return z="useTransition",j(),yS()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",j(),Pf(e,t,o)},useId:function(){return z="useId",j(),ft().memoizedState},useFormState:function(e){return z="useFormState",j(),Ef(),Nf(e)},useActionState:function(e){return z="useActionState",j(),Nf(e)},useOptimistic:function(e,t){return z="useOptimistic",j(),aS(e,t)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return z="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",j(),Uf(e)}},Vn={readContext:function(e){return p(),_t(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return z="useCallback",h(),Ye(),Sg(e,t)},useContext:function(e){return z="useContext",h(),Ye(),_t(e)},useEffect:function(e,t){return z="useEffect",h(),Ye(),zf(e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",h(),Ye(),vg(e,t,o)},useInsertionEffect:function(e,t){z="useInsertionEffect",h(),Ye(),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",h(),Ye(),xg(e,t)},useMemo:function(e,t){z="useMemo",h(),Ye();var o=H.H;H.H=Vn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",h(),Ye();var i=H.H;H.H=Vn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return z="useRef",h(),Ye(),yg(e)},useState:function(e){z="useState",h(),Ye();var t=H.H;H.H=Vn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){z="useDebugValue",h(),Ye()},useDeferredValue:function(e,t){return z="useDeferredValue",h(),Ye(),Cg(e,t)},useTransition:function(){return z="useTransition",h(),Ye(),Ig()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",h(),Ye(),fg(e,t,o)},useId:function(){return z="useId",h(),Ye(),Mg()},useFormState:function(e,t){return z="useFormState",h(),Ye(),pr(e,t)},useActionState:function(e,t){return z="useActionState",h(),Ye(),pr(e,t)},useOptimistic:function(e){return z="useOptimistic",h(),Ye(),mg(e)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return z="useCacheRefresh",Ye(),Ag()},useEffectEvent:function(e){return z="useEffectEvent",h(),Ye(),bg(e)}},un={readContext:function(e){return p(),_t(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return z="useCallback",h(),j(),Ff(e,t)},useContext:function(e){return z="useContext",h(),j(),_t(e)},useEffect:function(e,t){z="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",h(),j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return z="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){z="useMemo",h(),j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",h(),j();var i=H.H;H.H=un;try{return hr(e,t,o)}finally{H.H=i}},useRef:function(){return z="useRef",h(),j(),ft().memoizedState},useState:function(){z="useState",h(),j();var e=H.H;H.H=un;try{return hr(an)}finally{H.H=e}},useDebugValue:function(){z="useDebugValue",h(),j()},useDeferredValue:function(e,t){return z="useDeferredValue",h(),j(),cS(e,t)},useTransition:function(){return z="useTransition",h(),j(),gS()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",h(),j(),Pf(e,t,o)},useId:function(){return z="useId",h(),j(),ft().memoizedState},useFormState:function(e){return z="useFormState",h(),j(),Bf(e)},useActionState:function(e){return z="useActionState",h(),j(),Bf(e)},useOptimistic:function(e,t){return z="useOptimistic",h(),j(),eS(e,t)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return z="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",h(),j(),Uf(e)}},Gh={readContext:function(e){return p(),_t(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return z="useCallback",h(),j(),Ff(e,t)},useContext:function(e){return z="useContext",h(),j(),_t(e)},useEffect:function(e,t){z="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return z="useImperativeHandle",h(),j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return z="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){z="useMemo",h(),j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){z="useReducer",h(),j();var i=H.H;H.H=un;try{return Yu(e,t,o)}finally{H.H=i}},useRef:function(){return z="useRef",h(),j(),ft().memoizedState},useState:function(){z="useState",h(),j();var e=H.H;H.H=un;try{return Yu(an)}finally{H.H=e}},useDebugValue:function(){z="useDebugValue",h(),j()},useDeferredValue:function(e,t){return z="useDeferredValue",h(),j(),dS(e,t)},useTransition:function(){return z="useTransition",h(),j(),yS()},useSyncExternalStore:function(e,t,o){return z="useSyncExternalStore",h(),j(),Pf(e,t,o)},useId:function(){return z="useId",h(),j(),ft().memoizedState},useFormState:function(e){return z="useFormState",h(),j(),Nf(e)},useActionState:function(e){return z="useActionState",h(),j(),Nf(e)},useOptimistic:function(e,t){return z="useOptimistic",h(),j(),aS(e,t)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return z="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",h(),j(),Uf(e)}};var lT={},rT=new Set,uT=new Set,cT=new Set,dT=new Set,fT=new Set,hT=new Set,pT=new Set,mT=new Set,gT=new Set,yT=new Set;Object.freeze(lT);var wb={enqueueSetState:function(e,t,o){e=e._reactInternals;var i=bo(e),u=js(i);u.payload=t,o!==void 0&&o!==null&&(Rg(o),u.callback=o),t=Gs(e,u,i),t!==null&&(vn(i,"this.setState()",e),Nt(t,e,i),qu(t,e,i))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var i=bo(e),u=js(i);u.tag=J1,u.payload=t,o!==void 0&&o!==null&&(Rg(o),u.callback=o),t=Gs(e,u,i),t!==null&&(vn(i,"this.replaceState()",e),Nt(t,e,i),qu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=bo(e),i=js(o);i.tag=eT,t!==void 0&&t!==null&&(Rg(t),i.callback=t),t=Gs(e,i,o),t!==null&&(vn(o,"this.forceUpdate()",e),Nt(t,e,o),qu(t,e,o))}},Qr=null,Ib=null,Mb=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."),Jt=!1,bT={},xT={},vT={},ST={},Kr=!1,LT={},Yh={},Ab={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CT=!1,TT=null;TT=new Set;var xs=!1,ea=!1,kb=!1,wT=typeof WeakSet==="function"?WeakSet:Set,ha=null,Jr=null,eu=null,ta=null,Wa=!1,cn=null,sa=!1,qc=8192,ID={getCacheForType:function(e){var t=_t(Zt),o=t.data.get(e);return o===void 0&&(o=e(),t.data.set(e,o)),o},cacheSignal:function(){return _t(Zt).controller.signal},getOwner:function(){return So}};if(typeof Symbol==="function"&&Symbol.for){var Vc=Symbol.for;Vc("selector.component"),Vc("selector.has_pseudo_class"),Vc("selector.role"),Vc("selector.test_id"),Vc("selector.text")}var MD=[],AD=typeof WeakMap==="function"?WeakMap:Map,pa=0,ia=2,Io=4,vs=0,jc=1,Il=2,Xh=3,hi=4,$h=6,IT=5,ot=pa,xt=null,qe=null,Fe=0,Za=0,Wh=1,Ml=2,Gc=3,MT=4,Rb=5,Yc=6,Zh=7,_b=8,Al=9,ht=Za,Mo=null,pi=!1,tu=!1,Db=!1,jn=0,Ot=vs,mi=0,gi=0,Eb=0,Qa=0,kl=0,Xc=null,ja=null,Qh=!1,Kh=0,AT=0,kT=300,Jh=1/0,RT=500,$c=null,Vt=null,yi=null,ep=0,Ob=1,Pb=2,_T=3,bi=0,DT=1,ET=2,OT=3,PT=4,tp=5,aa=0,xi=null,au=null,dn=0,Bb=0,Nb=-0,zb=null,BT=null,NT=null,fn=ep,zT=null,kD=50,Wc=0,Ub=null,Hb=!1,ap=!1,RD=50,Rl=0,Zc=null,ou=!1,op=null,UT=!1,HT=new Set,_D={},np=null,nu=null,Fb=!1,qb=!1,sp=!1,Vb=!1,vi=0,jb={};(function(){for(var e=0;e<tb.length;e++){var t=tb[e],o=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),tn(o,"on"+t)}tn(g1,"onAnimationEnd"),tn(y1,"onAnimationIteration"),tn(b1,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(lD,"onTransitionRun"),tn(rD,"onTransitionStart"),tn(uD,"onTransitionCancel"),tn(x1,"onTransitionEnd")})(),co("onMouseEnter",["mouseout","mouseover"]),co("onMouseLeave",["mouseout","mouseover"]),co("onPointerEnter",["pointerout","pointerover"]),co("onPointerLeave",["pointerout","pointerover"]),ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qc="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(" "),Gb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qc)),ip="_reactListening"+Math.random().toString(36).slice(2),FT=!1,qT=!1,lp=!1,VT=!1,rp=!1,up=!1,jT=!1,cp={},DD=/\r\n?/g,ED=/\u0000|\uFFFD/g,_l="http://www.w3.org/1999/xlink",Yb="http://www.w3.org/XML/1998/namespace",OD="javascript:throw new Error('React form unexpectedly submitted.')",PD="suppressHydrationWarning",Dl="&",dp="/&",Kc="$",Jc="/$",Si="$?",El="$~",su="$!",BD="html",ND="body",zD="head",Xb="F!",GT="F",YT="loading",UD="style",Ss=0,iu=1,fp=2,$b=null,Wb=null,XT={dialog:!0,webview:!0},Zb=null,ed=void 0,$T=typeof setTimeout==="function"?setTimeout:void 0,HD=typeof clearTimeout==="function"?clearTimeout:void 0,Ol=-1,WT=typeof Promise==="function"?Promise:void 0,FD=typeof queueMicrotask==="function"?queueMicrotask:typeof WT<"u"?function(e){return WT.resolve(null).then(e).catch(wR)}:$T,Qb=null,Pl=0,td=1,ZT=2,QT=3,jo=4,Go=new Map,KT=new Set,Ls=ct.d;ct.d={f:function(){var e=Ls.f(),t=xr();return e||t},r:function(e){var t=De(e);t!==null&&t.tag===5&&t.type==="form"?mS(t):Ls.r(e)},D:function(e){Ls.D(e),rC("dns-prefetch",e,null)},C:function(e,t){Ls.C(e,t),rC("preconnect",e,t)},L:function(e,t,o){Ls.L(e,t,o);var i=lu;if(i&&e&&t){var u='link[rel="preload"][as="'+Do(t)+'"]';t==="image"?o&&o.imageSrcSet?(u+='[imagesrcset="'+Do(o.imageSrcSet)+'"]',typeof o.imageSizes==="string"&&(u+='[imagesizes="'+Do(o.imageSizes)+'"]')):u+='[href="'+Do(e)+'"]':u+='[href="'+Do(e)+'"]';var d=u;switch(t){case"style":d=Lr(e);break;case"script":d=Cr(e)}Go.has(d)||(e=Xe({rel:"preload",href:t==="image"&&o&&o.imageSrcSet?void 0:e,as:t},o),Go.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(lc(d))||t==="script"&&i.querySelector(rc(d))||(t=i.createElement("link"),va(t,"link",e),ve(t),i.head.appendChild(t)))}},m:function(e,t){Ls.m(e,t);var o=lu;if(o&&e){var i=t&&typeof t.as==="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Do(i)+'"][href="'+Do(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Cr(e)}if(!Go.has(d)&&(e=Xe({rel:"modulepreload",href:e},t),Go.set(d,e),o.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(rc(d)))return}i=o.createElement("link"),va(i,"link",e),ve(i),o.head.appendChild(i)}}},X:function(e,t){Ls.X(e,t);var o=lu;if(o&&e){var i=nt(o).hoistableScripts,u=Cr(e),d=i.get(u);d||(d=o.querySelector(rc(u)),d||(e=Xe({src:e,async:!0},t),(t=Go.get(u))&&vy(e,t),d=o.createElement("script"),ve(d),va(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}},S:function(e,t,o){Ls.S(e,t,o);var i=lu;if(i&&e){var u=nt(i).hoistableStyles,d=Lr(e);t=t||"default";var m=u.get(d);if(!m){var b={loading:Pl,preload:null};if(m=i.querySelector(lc(d)))b.loading=td|jo;else{e=Xe({rel:"stylesheet",href:e,"data-precedence":t},o),(o=Go.get(d))&&xy(e,o);var v=m=i.createElement("link");ve(v),va(v,"link",e),v._p=new Promise(function(L,O){v.onload=L,v.onerror=O}),v.addEventListener("load",function(){b.loading|=td}),v.addEventListener("error",function(){b.loading|=ZT}),b.loading|=jo,lh(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:b},u.set(d,m)}}},M:function(e,t){Ls.M(e,t);var o=lu;if(o&&e){var i=nt(o).hoistableScripts,u=Cr(e),d=i.get(u);d||(d=o.querySelector(rc(u)),d||(e=Xe({src:e,async:!0,type:"module"},t),(t=Go.get(u))&&vy(e,t),d=o.createElement("script"),ve(d),va(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}};var lu=typeof document>"u"?null:document,hp=null,qD=60000,VD=800,jD=500,Kb=0,Jb=null,pp=null,Bl=s_,ad={$$typeof:On,Provider:null,Consumer:null,_currentValue:Bl,_currentValue2:Bl,_threadCount:0},JT="%c%s%c",ew="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",tw="",mp=" ",GD=Function.prototype.bind,aw=!1,ow=null,nw=null,sw=null,iw=null,lw=null,rw=null,uw=null,cw=null,dw=null,fw=null;ow=function(e,t,o,i){t=a(e,t),t!==null&&(o=n(t.memoizedState,o,0,i),t.memoizedState=o,t.baseState=o,e.memoizedProps=Xe({},e.memoizedProps),o=Ra(e,2),o!==null&&Nt(o,e,2))},nw=function(e,t,o){t=a(e,t),t!==null&&(o=r(t.memoizedState,o,0),t.memoizedState=o,t.baseState=o,e.memoizedProps=Xe({},e.memoizedProps),o=Ra(e,2),o!==null&&Nt(o,e,2))},sw=function(e,t,o,i){t=a(e,t),t!==null&&(o=s(t.memoizedState,o,i),t.memoizedState=o,t.baseState=o,e.memoizedProps=Xe({},e.memoizedProps),o=Ra(e,2),o!==null&&Nt(o,e,2))},iw=function(e,t,o){e.pendingProps=n(e.memoizedProps,t,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Nt(t,e,2)},lw=function(e,t){e.pendingProps=r(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Nt(t,e,2)},rw=function(e,t,o){e.pendingProps=s(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Nt(t,e,2)},uw=function(e){var t=Ra(e,2);t!==null&&Nt(t,e,2)},cw=function(e){var t=sr(),o=Ra(e,t);o!==null&&Nt(o,e,t)},dw=function(e){f=e},fw=function(e){c=e};var gp=!0,yp=null,ex=!1,Li=null,Ci=null,Ti=null,od=new Map,nd=new Map,wi=[],YD="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(" "),bp=null;if(fh.prototype.render=Iy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[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()."):w(o[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 o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var i=t.current,u=bo(i);Sy(i,u,o,t,null,null)},fh.prototype.unmount=Iy.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;(ot&(ia|Io))!==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."),Sy(e.current,2,null,e,null,null),xr(),t[ti]=null}},fh.prototype.unstable_scheduleHydration=function(e){if(e){var t=B();e={blockedOn:null,target:e,priority:t};for(var o=0;o<wi.length&&t!==0&&t<wi[o].priority;o++);wi.splice(o,0,e),o===0&&LC(e)}},function(){var e=xu.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 <`+r+">.");var m="";o!=null&&e!==o&&(r=null,typeof o.tag==="number"?r=j(o):typeof o.name==="string"&&(r=o.name),r&&(m=" It was passed a child from "+r+".")),me(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.',f,m)})}}};var ji=xS(!0),IT=xS(!1),AT=0,RT=1,_T=2,Yb=3,Dr=!1,DT=!1,$b=null,Wb=!1,hu=se(null),ph=se(0),Po=se(null),Ko=null,mu=1,ud=2,aa=se(0),hh=0,Jo=1,Ja=2,Bo=4,eo=8,gu,ET=new Set,OT=new Set,Zb=new Set,PT=new Set,Rs=0,Pe=null,It=null,la=null,mh=!1,yu=!1,Gi=!1,gh=0,cd=0,_s=null,SD=0,LD=25,F=null,en=null,Ds=-1,dd=!1,fd={readContext:Ft,use:hr,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useInsertionEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useSyncExternalStore:ea,useId:ea,useHostTransitionStatus:ea,useFormState:ea,useActionState:ea,useOptimistic:ea,useMemoCache:ea,useCacheRefresh:ea};fd.useEffectEvent=ea;var Qb=null,BT=null,Kb=null,NT=null,es=null,bn=null,yh=null;Qb={readContext:function(e){return Ft(e)},use:hr,useCallback:function(e,t){return F="useCallback",We(),El(t),Wg(e,t)},useContext:function(e){return F="useContext",We(),Ft(e)},useEffect:function(e,t){return F="useEffect",We(),El(t),cp(e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",We(),El(o),$g(e,t,o)},useInsertionEffect:function(e,t){F="useInsertionEffect",We(),El(t),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",We(),El(t),Yg(e,t)},useMemo:function(e,t){F="useMemo",We(),El(t);var o=q.H;q.H=es;try{return Zg(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",We();var r=q.H;q.H=es;try{return zg(e,t,o)}finally{q.H=r}},useRef:function(e){return F="useRef",We(),Gg(e)},useState:function(e){F="useState",We();var t=q.H;q.H=es;try{return qg(e)}finally{q.H=t}},useDebugValue:function(){F="useDebugValue",We()},useDeferredValue:function(e,t){return F="useDeferredValue",We(),Qg(e,t)},useTransition:function(){return F="useTransition",We(),ey()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",We(),Ug(e,t,o)},useId:function(){return F="useId",We(),ty()},useFormState:function(e,t){return F="useFormState",We(),sp(),Pl(e,t)},useActionState:function(e,t){return F="useActionState",We(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",We(),Vg(e)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",We(),ay()},useEffectEvent:function(e){return F="useEffectEvent",We(),Xg(e)}},BT={readContext:function(e){return Ft(e)},use:hr,useCallback:function(e,t){return F="useCallback",ae(),Wg(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){return F="useEffect",ae(),cp(e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",ae(),$g(e,t,o)},useInsertionEffect:function(e,t){F="useInsertionEffect",ae(),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),Yg(e,t)},useMemo:function(e,t){F="useMemo",ae();var o=q.H;q.H=es;try{return Zg(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",ae();var r=q.H;q.H=es;try{return zg(e,t,o)}finally{q.H=r}},useRef:function(e){return F="useRef",ae(),Gg(e)},useState:function(e){F="useState",ae();var t=q.H;q.H=es;try{return qg(e)}finally{q.H=t}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),Qg(e,t)},useTransition:function(){return F="useTransition",ae(),ey()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",ae(),Ug(e,t,o)},useId:function(){return F="useId",ae(),ty()},useActionState:function(e,t){return F="useActionState",ae(),Pl(e,t)},useFormState:function(e,t){return F="useFormState",ae(),sp(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",ae(),Vg(e)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),ay()},useEffectEvent:function(e){return F="useEffectEvent",ae(),Xg(e)}},Kb={readContext:function(e){return Ft(e)},use:hr,useCallback:function(e,t){return F="useCallback",ae(),pp(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){F="useEffect",ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",ae(),fp(e,t,o)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",ae();var o=q.H;q.H=bn;try{return hp(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",ae();var r=q.H;q.H=bn;try{return Ol(e,t,o)}finally{q.H=r}},useRef:function(){return F="useRef",ae(),vt().memoizedState},useState:function(){F="useState",ae();var e=q.H;q.H=bn;try{return Ol(fn)}finally{q.H=e}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),FS(e,t)},useTransition:function(){return F="useTransition",ae(),YS()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",ae(),ip(e,t,o)},useId:function(){return F="useId",ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",ae(),sp(),lp(e)},useActionState:function(e){return F="useActionState",ae(),lp(e)},useOptimistic:function(e,t){return F="useOptimistic",ae(),_S(e,t)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",ae(),dp(e)}},NT={readContext:function(e){return Ft(e)},use:hr,useCallback:function(e,t){return F="useCallback",ae(),pp(e,t)},useContext:function(e){return F="useContext",ae(),Ft(e)},useEffect:function(e,t){F="useEffect",ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",ae(),fp(e,t,o)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",ae();var o=q.H;q.H=yh;try{return hp(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",ae();var r=q.H;q.H=yh;try{return yc(e,t,o)}finally{q.H=r}},useRef:function(){return F="useRef",ae(),vt().memoizedState},useState:function(){F="useState",ae();var e=q.H;q.H=yh;try{return yc(fn)}finally{q.H=e}},useDebugValue:function(){F="useDebugValue",ae()},useDeferredValue:function(e,t){return F="useDeferredValue",ae(),qS(e,t)},useTransition:function(){return F="useTransition",ae(),$S()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",ae(),ip(e,t,o)},useId:function(){return F="useId",ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",ae(),sp(),up(e)},useActionState:function(e){return F="useActionState",ae(),up(e)},useOptimistic:function(e,t){return F="useOptimistic",ae(),ES(e,t)},useHostTransitionStatus:Ri,useMemoCache:Ii,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",ae(),dp(e)}},es={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),hr(e)},useCallback:function(e,t){return F="useCallback",p(),We(),Wg(e,t)},useContext:function(e){return F="useContext",p(),We(),Ft(e)},useEffect:function(e,t){return F="useEffect",p(),We(),cp(e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",p(),We(),$g(e,t,o)},useInsertionEffect:function(e,t){F="useInsertionEffect",p(),We(),Ai(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),We(),Yg(e,t)},useMemo:function(e,t){F="useMemo",p(),We();var o=q.H;q.H=es;try{return Zg(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",p(),We();var r=q.H;q.H=es;try{return zg(e,t,o)}finally{q.H=r}},useRef:function(e){return F="useRef",p(),We(),Gg(e)},useState:function(e){F="useState",p(),We();var t=q.H;q.H=es;try{return qg(e)}finally{q.H=t}},useDebugValue:function(){F="useDebugValue",p(),We()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),We(),Qg(e,t)},useTransition:function(){return F="useTransition",p(),We(),ey()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",p(),We(),Ug(e,t,o)},useId:function(){return F="useId",p(),We(),ty()},useFormState:function(e,t){return F="useFormState",p(),We(),Pl(e,t)},useActionState:function(e,t){return F="useActionState",p(),We(),Pl(e,t)},useOptimistic:function(e){return F="useOptimistic",p(),We(),Vg(e)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",We(),ay()},useEffectEvent:function(e){return F="useEffectEvent",p(),We(),Xg(e)}},bn={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),hr(e)},useCallback:function(e,t){return F="useCallback",p(),ae(),pp(e,t)},useContext:function(e){return F="useContext",p(),ae(),Ft(e)},useEffect:function(e,t){F="useEffect",p(),ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",p(),ae(),fp(e,t,o)},useInsertionEffect:function(e,t){return F="useInsertionEffect",p(),ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",p(),ae();var o=q.H;q.H=bn;try{return hp(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",p(),ae();var r=q.H;q.H=bn;try{return Ol(e,t,o)}finally{q.H=r}},useRef:function(){return F="useRef",p(),ae(),vt().memoizedState},useState:function(){F="useState",p(),ae();var e=q.H;q.H=bn;try{return Ol(fn)}finally{q.H=e}},useDebugValue:function(){F="useDebugValue",p(),ae()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),ae(),FS(e,t)},useTransition:function(){return F="useTransition",p(),ae(),YS()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",p(),ae(),ip(e,t,o)},useId:function(){return F="useId",p(),ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",p(),ae(),lp(e)},useActionState:function(e){return F="useActionState",p(),ae(),lp(e)},useOptimistic:function(e,t){return F="useOptimistic",p(),ae(),_S(e,t)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",p(),ae(),dp(e)}},yh={readContext:function(e){return h(),Ft(e)},use:function(e){return p(),hr(e)},useCallback:function(e,t){return F="useCallback",p(),ae(),pp(e,t)},useContext:function(e){return F="useContext",p(),ae(),Ft(e)},useEffect:function(e,t){F="useEffect",p(),ae(),so(2048,eo,e,t)},useImperativeHandle:function(e,t,o){return F="useImperativeHandle",p(),ae(),fp(e,t,o)},useInsertionEffect:function(e,t){return F="useInsertionEffect",p(),ae(),so(4,Ja,e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",p(),ae(),so(4,Bo,e,t)},useMemo:function(e,t){F="useMemo",p(),ae();var o=q.H;q.H=bn;try{return hp(e,t)}finally{q.H=o}},useReducer:function(e,t,o){F="useReducer",p(),ae();var r=q.H;q.H=bn;try{return yc(e,t,o)}finally{q.H=r}},useRef:function(){return F="useRef",p(),ae(),vt().memoizedState},useState:function(){F="useState",p(),ae();var e=q.H;q.H=bn;try{return yc(fn)}finally{q.H=e}},useDebugValue:function(){F="useDebugValue",p(),ae()},useDeferredValue:function(e,t){return F="useDeferredValue",p(),ae(),qS(e,t)},useTransition:function(){return F="useTransition",p(),ae(),$S()},useSyncExternalStore:function(e,t,o){return F="useSyncExternalStore",p(),ae(),ip(e,t,o)},useId:function(){return F="useId",p(),ae(),vt().memoizedState},useFormState:function(e){return F="useFormState",p(),ae(),up(e)},useActionState:function(e){return F="useActionState",p(),ae(),up(e)},useOptimistic:function(e,t){return F="useOptimistic",p(),ae(),ES(e,t)},useMemoCache:function(e){return p(),Ii(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return F="useCacheRefresh",ae(),vt().memoizedState},useEffectEvent:function(e){return F="useEffectEvent",p(),ae(),dp(e)}};var zT={},HT=new Set,UT=new Set,FT=new Set,qT=new Set,VT=new Set,jT=new Set,GT=new Set,XT=new Set,YT=new Set,$T=new Set;Object.freeze(zT);var Jb={enqueueSetState:function(e,t,o){e=e._reactInternals;var r=Ao(e),c=cr(r);c.payload=t,o!==void 0&&o!==null&&(ny(o),c.callback=o),t=dr(e,c,r),t!==null&&(_n(r,"this.setState()",e),Zt(t,e,r),pc(t,e,r))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var r=Ao(e),c=cr(r);c.tag=RT,c.payload=t,o!==void 0&&o!==null&&(ny(o),c.callback=o),t=dr(e,c,r),t!==null&&(_n(r,"this.replaceState()",e),Zt(t,e,r),pc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=Ao(e),r=cr(o);r.tag=_T,t!==void 0&&t!==null&&(ny(t),r.callback=t),t=dr(e,r,o),t!==null&&(_n(o,"this.forceUpdate()",e),Zt(t,e,o),pc(t,e,o))}},bu=null,ex=null,tx=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."),ua=!1,WT={},ZT={},QT={},KT={},xu=!1,JT={},bh={},ax={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ew=!1,tw=null;tw=new Set;var Es=!1,ca=!1,ox=!1,aw=typeof WeakSet==="function"?WeakSet:Set,Ta=null,vu=null,Su=null,da=null,lo=!1,xn=null,ma=!1,pd=8192,CD={getCacheForType:function(e){var t=Ft(ra),o=t.data.get(e);return o===void 0&&(o=e(),t.data.set(e,o)),o},cacheSignal:function(){return Ft(ra).controller.signal},getOwner:function(){return Do}};if(typeof Symbol==="function"&&Symbol.for){var hd=Symbol.for;hd("selector.component"),hd("selector.has_pseudo_class"),hd("selector.role"),hd("selector.test_id"),hd("selector.text")}var TD=[],wD=typeof WeakMap==="function"?WeakMap:Map,wa=0,ga=2,No=4,Os=0,md=1,Xi=2,xh=3,Er=4,vh=6,ow=5,ct=wa,At=null,Ye=null,Xe=0,uo=0,Sh=1,Yi=2,gd=3,nw=4,nx=5,yd=6,Lh=7,sx=8,$i=9,St=uo,zo=null,Or=!1,Lu=!1,rx=!1,ts=0,Yt=Os,Pr=0,Br=0,ix=0,co=0,Wi=0,bd=null,to=null,Ch=!1,Th=0,sw=0,rw=300,wh=1/0,iw=500,xd=null,ta=null,Nr=null,kh=0,lx=1,ux=2,lw=3,zr=0,uw=1,cw=2,dw=3,fw=4,Mh=5,fa=0,Hr=null,Cu=null,vn=0,cx=0,dx=-0,fx=null,pw=null,hw=null,Sn=kh,mw=null,kD=50,vd=0,px=null,hx=!1,Ih=!1,MD=50,Zi=0,Sd=null,Tu=!1,Ah=null,gw=!1,yw=new Set,ID={},Rh=null,wu=null,mx=!1,gx=!1,_h=!1,yx=!1,Ur=0,bx={};(function(){for(var e=0;e<Ab.length;e++){var t=Ab[e],o=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),dn(o,"on"+t)}dn(Y1,"onAnimationEnd"),dn($1,"onAnimationIteration"),dn(W1,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(nD,"onTransitionRun"),dn(sD,"onTransitionStart"),dn(rD,"onTransitionCancel"),dn(Z1,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ld="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(" "),xx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ld)),Dh="_reactListening"+Math.random().toString(36).slice(2),bw=!1,xw=!1,Eh=!1,vw=!1,Oh=!1,Ph=!1,Sw=!1,Bh={},AD=/\r\n?/g,RD=/\u0000|\uFFFD/g,Qi="http://www.w3.org/1999/xlink",vx="http://www.w3.org/XML/1998/namespace",_D="javascript:throw new Error('React form unexpectedly submitted.')",DD="suppressHydrationWarning",Ki="&",Nh="/&",Cd="$",Td="/$",Fr="$?",Ji="$~",ku="$!",ED="html",OD="body",PD="head",Sx="F!",Lw="F",Cw="loading",BD="style",Ps=0,Mu=1,zh=2,Lx=null,Cx=null,Tw={dialog:!0,webview:!0},Tx=null,wd=void 0,ww=typeof setTimeout==="function"?setTimeout:void 0,ND=typeof clearTimeout==="function"?clearTimeout:void 0,el=-1,kw=typeof Promise==="function"?Promise:void 0,zD=typeof queueMicrotask==="function"?queueMicrotask:typeof kw<"u"?function(e){return kw.resolve(null).then(e).catch(L_)}:ww,wx=null,tl=0,kd=1,Mw=2,Iw=3,tn=4,an=new Map,Aw=new Set,Bs=yt.d;yt.d={f:function(){var e=Bs.f(),t=Ul();return e||t},r:function(e){var t=Ne(e);t!==null&&t.tag===5&&t.type==="form"?XS(t):Bs.r(e)},D:function(e){Bs.D(e),HC("dns-prefetch",e,null)},C:function(e,t){Bs.C(e,t),HC("preconnect",e,t)},L:function(e,t,o){Bs.L(e,t,o);var r=Iu;if(r&&e&&t){var c='link[rel="preload"][as="'+Vo(t)+'"]';t==="image"?o&&o.imageSrcSet?(c+='[imagesrcset="'+Vo(o.imageSrcSet)+'"]',typeof o.imageSizes==="string"&&(c+='[imagesizes="'+Vo(o.imageSizes)+'"]')):c+='[href="'+Vo(e)+'"]':c+='[href="'+Vo(e)+'"]';var f=c;switch(t){case"style":f=Vl(e);break;case"script":f=jl(e)}an.has(f)||(e=Ze({rel:"preload",href:t==="image"&&o&&o.imageSrcSet?void 0:e,as:t},o),an.set(f,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(Dc(f))||t==="script"&&r.querySelector(Ec(f))||(t=r.createElement("link"),Ea(t,"link",e),Ae(t),r.head.appendChild(t)))}},m:function(e,t){Bs.m(e,t);var o=Iu;if(o&&e){var r=t&&typeof t.as==="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Vo(r)+'"][href="'+Vo(e)+'"]',f=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=jl(e)}if(!an.has(f)&&(e=Ze({rel:"modulepreload",href:e},t),an.set(f,e),o.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ec(f)))return}r=o.createElement("link"),Ea(r,"link",e),Ae(r),o.head.appendChild(r)}}},X:function(e,t){Bs.X(e,t);var o=Iu;if(o&&e){var r=pt(o).hoistableScripts,c=jl(e),f=r.get(c);f||(f=o.querySelector(Ec(c)),f||(e=Ze({src:e,async:!0},t),(t=an.get(c))&&$y(e,t),f=o.createElement("script"),Ae(f),Ea(f,"link",e),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}},S:function(e,t,o){Bs.S(e,t,o);var r=Iu;if(r&&e){var c=pt(r).hoistableStyles,f=Vl(e);t=t||"default";var m=c.get(f);if(!m){var x={loading:tl,preload:null};if(m=r.querySelector(Dc(f)))x.loading=kd|tn;else{e=Ze({rel:"stylesheet",href:e,"data-precedence":t},o),(o=an.get(f))&&Yy(e,o);var S=m=r.createElement("link");Ae(S),Ea(S,"link",e),S._p=new Promise(function(L,O){S.onload=L,S.onerror=O}),S.addEventListener("load",function(){x.loading|=kd}),S.addEventListener("error",function(){x.loading|=Mw}),x.loading|=tn,Ep(m,t,r)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(f,m)}}},M:function(e,t){Bs.M(e,t);var o=Iu;if(o&&e){var r=pt(o).hoistableScripts,c=jl(e),f=r.get(c);f||(f=o.querySelector(Ec(c)),f||(e=Ze({src:e,async:!0,type:"module"},t),(t=an.get(c))&&$y(e,t),f=o.createElement("script"),Ae(f),Ea(f,"link",e),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}}};var Iu=typeof document>"u"?null:document,Hh=null,HD=60000,UD=800,FD=500,kx=0,Mx=null,Uh=null,al=a2,Md={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:al,_currentValue2:al,_threadCount:0},Rw="%c%s%c",_w="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",Dw="",Fh=" ",qD=Function.prototype.bind,Ew=!1,Ow=null,Pw=null,Bw=null,Nw=null,zw=null,Hw=null,Uw=null,Fw=null,qw=null,Vw=null;Ow=function(e,t,o,r){t=a(e,t),t!==null&&(o=n(t.memoizedState,o,0,r),t.memoizedState=o,t.baseState=o,e.memoizedProps=Ze({},e.memoizedProps),o=qa(e,2),o!==null&&Zt(o,e,2))},Pw=function(e,t,o){t=a(e,t),t!==null&&(o=l(t.memoizedState,o,0),t.memoizedState=o,t.baseState=o,e.memoizedProps=Ze({},e.memoizedProps),o=qa(e,2),o!==null&&Zt(o,e,2))},Bw=function(e,t,o,r){t=a(e,t),t!==null&&(o=s(t.memoizedState,o,r),t.memoizedState=o,t.baseState=o,e.memoizedProps=Ze({},e.memoizedProps),o=qa(e,2),o!==null&&Zt(o,e,2))},Nw=function(e,t,o){e.pendingProps=n(e.memoizedProps,t,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},zw=function(e,t){e.pendingProps=l(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},Hw=function(e,t,o){e.pendingProps=s(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=qa(e,2),t!==null&&Zt(t,e,2)},Uw=function(e){var t=qa(e,2);t!==null&&Zt(t,e,2)},Fw=function(e){var t=kl(),o=qa(e,t);o!==null&&Zt(o,e,t)},qw=function(e){d=e},Vw=function(e){u=e};var qh=!0,Vh=null,Ix=!1,qr=null,Vr=null,jr=null,Id=new Map,Ad=new Map,Gr=[],VD="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(" "),jh=null;if(zp.prototype.render=eb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[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()."):w(o[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 o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var r=t.current,c=Ao(r);Wy(r,c,o,t,null,null)},zp.prototype.unmount=eb.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;(ct&(ga|No))!==wa&&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."),Wy(e.current,2,null,e,null,null),Ul(),t[Sr]=null}},zp.prototype.unstable_scheduleHydration=function(e){if(e){var t=N();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Gr.length&&t!==0&&t<Gr[o].priority;o++);Gr.splice(o,0,e),o===0&&JC(e)}},function(){var e=Uu.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"),ct.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=Q(t),e=e!==null?ne(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.7"};return e.overrideHookState=ow,e.overrideHookStateDeletePath=nw,e.overrideHookStateRenamePath=sw,e.overrideProps=iw,e.overridePropsDeletePath=lw,e.overridePropsRenamePath=rw,e.scheduleUpdate=uw,e.scheduleRetry=cw,e.setErrorHandler=dw,e.setSuspenseHandler=fw,e.scheduleRefresh=M,e.scheduleRoot=T,e.setRefreshHandler=k,e.getCurrentFiber=QR,nr(e)}()&&Un&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var hw=window.location.protocol;/^(https?|file):$/.test(hw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(hw==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}hB.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");IC(e);var o=!1,i="",u=CS,d=TS,m=wS;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===En&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
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"),yt.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=V(t),e=e!==null?G(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.7"};return e.overrideHookState=Ow,e.overrideHookStateDeletePath=Pw,e.overrideHookStateRenamePath=Bw,e.overrideProps=Nw,e.overridePropsDeletePath=zw,e.overridePropsRenamePath=Hw,e.scheduleUpdate=Uw,e.scheduleRetry=Fw,e.setErrorHandler=qw,e.setSuspenseHandler=Vw,e.scheduleRefresh=M,e.scheduleRoot=T,e.setRefreshHandler=I,e.getCurrentFiber=$_,wl(e)}()&&Zn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var jw=window.location.protocol;/^(https?|file):$/.test(jw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(jw==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}cN.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");o1(e);var o=!1,r="",c=eL,f=tL,m=aL;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===jn&&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&&(o=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=mC(e,1,!1,null,null,o,i,null,u,d,m,wC),e[ti]=t.current,ly(e),new Iy(t)},hB.hydrateRoot=function(e,t,o){if(!w(e))throw Error("Target container is not a DOM element.");IC(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,u="",d=CS,m=TS,b=wS,v=null;return o!==null&&o!==void 0&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onUncaughtError!==void 0&&(d=o.onUncaughtError),o.onCaughtError!==void 0&&(m=o.onCaughtError),o.onRecoverableError!==void 0&&(b=o.onRecoverableError),o.formState!==void 0&&(v=o.formState)),t=mC(e,1,!0,t,o!=null?o:null,i,u,v,d,m,b,wC),t.context=gC(null),o=t.current,i=bo(o),i=Ki(i),u=js(i),u.callback=null,Gs(o,u,i),vn(i,"hydrateRoot()",null),o=i,t.current.lanes=o,Ns(t,o),_n(t),e[ti]=t.current,ly(e),new fh(t)},hB.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var FM=Ii(function(wU,HM){var pB=X(UM());HM.exports=pB});var ce=Ii(function(qB){var Wl=X(vt());(function(){function a(D){if(D==null)return null;if(typeof D==="function")return D.$$typeof===V?null:D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case k:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case re:return"Activity"}if(typeof D==="object")switch(typeof D.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case M:return"Portal";case q:return D.displayName||"Context";case U:return(D._context.displayName||"Context")+".Consumer";case W:var Z=D.render;return D=D.displayName,D||(D=Z.displayName||Z.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case J:return Z=D.displayName||null,Z!==null?Z:a(D.type)||"Memo";case K:Z=D._payload,D=D._init;try{return a(D(Z))}catch(me){}}return null}function n(D){return""+D}function s(D){try{n(D);var Z=!1}catch(Ge){Z=!0}if(Z){Z=console;var me=Z.error,ge=typeof Symbol==="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return me.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),n(D)}}function l(D){if(D===k)return"<>";if(typeof D==="object"&&D!==null&&D.$$typeof===K)return"<...>";try{var Z=a(D);return Z?"<"+Z+">":"<...>"}catch(me){return"<...>"}}function r(){var D=he.A;return D===null?null:D.getOwner()}function c(){return Error("react-stack-top-frame")}function f(D){if(Le.call(D,"key")){var Z=Object.getOwnPropertyDescriptor(D,"key").get;if(Z&&Z.isReactWarning)return!1}return D.key!==void 0}function h(D,Z){function me(){G||(G=!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)",Z))}me.isReactWarning=!0,Object.defineProperty(D,"key",{get:me,configurable:!0})}function p(){var D=a(this.type);return le[D]||(le[D]=!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.")),D=this.props.ref,D!==void 0?D:null}function g(D,Z,me,ge,Ge,Ft){var Pe=me.ref;return D={$$typeof:T,type:D,key:Z,props:me,_owner:ge},(Pe!==void 0?Pe:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:p}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ft}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function x(D,Z,me,ge,Ge,Ft){var Pe=Z.children;if(Pe!==void 0)if(ge)if(we(Pe)){for(ge=0;ge<Pe.length;ge++)y(Pe[ge]);Object.freeze&&Object.freeze(Pe)}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 y(Pe);if(Le.call(Z,"key")){Pe=a(D);var Wt=Object.keys(Z).filter(function(en){return en!=="key"});ge=0<Wt.length?"{key: someKey, "+Wt.join(": ..., ")+": ...}":"{key: someKey}",je[Pe+ge]||(Wt=0<Wt.length?"{"+Wt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=XC(e,1,!1,null,null,o,r,null,c,f,m,a1),e[Sr]=t.current,Py(e),new eb(t)},cN.hydrateRoot=function(e,t,o){if(!w(e))throw Error("Target container is not a DOM element.");o1(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,c="",f=eL,m=tL,x=aL,S=null;return o!==null&&o!==void 0&&(o.unstable_strictMode===!0&&(r=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onUncaughtError!==void 0&&(f=o.onUncaughtError),o.onCaughtError!==void 0&&(m=o.onCaughtError),o.onRecoverableError!==void 0&&(x=o.onRecoverableError),o.formState!==void 0&&(S=o.formState)),t=XC(e,1,!0,t,o!=null?o:null,r,c,S,f,m,x,a1),t.context=YC(null),o=t.current,r=Ao(o),r=bi(r),c=cr(r),c.callback=null,dr(o,c,r),_n(r,"hydrateRoot()",null),o=r,t.current.lanes=o,or(t,o),qn(t),e[Sr]=t.current,Py(e),new zp(t)},cN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bI=Xr(function(jU,yI){var dN=Q(gI());yI.exports=dN});var de=Xr(function(qN){var bl=Q(dt());(function(){function a(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===j?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case I:return"Fragment";case A:return"Profiler";case w:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList";case J:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case M:return"Portal";case z:return k.displayName||"Context";case B:return(k._context.displayName||"Context")+".Consumer";case H:var W=k.render;return k=k.displayName,k||(k=W.displayName||W.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case X:return W=k.displayName||null,W!==null?W:a(k.type)||"Memo";case Y:W=k._payload,k=k._init;try{return a(k(W))}catch(ee){}}return null}function n(k){return""+k}function s(k){try{n(k);var W=!1}catch(te){W=!0}if(W){W=console;var ee=W.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ee.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),n(k)}}function i(k){if(k===I)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===Y)return"<...>";try{var W=a(k);return W?"<"+W+">":"<...>"}catch(ee){return"<...>"}}function l(){var k=se.A;return k===null?null:k.getOwner()}function u(){return Error("react-stack-top-frame")}function d(k){if(ge.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function p(k,W){function ee(){K||(K=!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)",W))}ee.isReactWarning=!0,Object.defineProperty(k,"key",{get:ee,configurable:!0})}function h(){var k=a(this.type);return pe[k]||(pe[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function g(k,W,ee,ne,te,le){var fe=ee.ref;return k={$$typeof:T,type:k,key:W,props:ee,_owner:ne},(fe!==void 0?fe:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:h}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function b(k,W,ee,ne,te,le){var fe=W.children;if(fe!==void 0)if(ne)if(ye(fe)){for(ne=0;ne<fe.length;ne++)y(fe[ne]);Object.freeze&&Object.freeze(fe)}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 y(fe);if(ge.call(W,"key")){fe=a(k);var et=Object.keys(W).filter(function(Gt){return Gt!=="key"});ne=0<et.length?"{key: someKey, "+et.join(": ..., ")+": ...}":"{key: someKey}",He[fe+ne]||(et=0<et.length?"{"+et.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} />`,ge,Pe,Wt,Pe),je[Pe+ge]=!0)}if(Pe=null,me!==void 0&&(s(me),Pe=""+me),f(Z)&&(s(Z.key),Pe=""+Z.key),"key"in Z){me={};for(var Aa in Z)Aa!=="key"&&(me[Aa]=Z[Aa])}else me=Z;return Pe&&h(me,typeof D==="function"?D.displayName||D.name||"Unknown":D),g(D,Pe,me,r(),Ge,Ft)}function y(D){S(D)?D._store&&(D._store.validated=1):typeof D==="object"&&D!==null&&D.$$typeof===K&&(D._payload.status==="fulfilled"?S(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function S(D){return typeof D==="object"&&D!==null&&D.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),q=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),he=Wl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le=Object.prototype.hasOwnProperty,we=Array.isArray,Oe=console.createTask?console.createTask:function(){return null};Wl={react_stack_bottom_frame:function(D){return D()}};var G,le={},pe=Wl.react_stack_bottom_frame.bind(Wl,c)(),Qe=Oe(l(c)),je={};qB.Fragment=k,qB.jsxDEV=function(D,Z,me,ge){var Ge=1e4>he.recentlyCreatedOwnerStacks++;return x(D,Z,me,ge,Ge?Error("react-stack-top-frame"):pe,Ge?Oe(l(D)):Qe)}})()});var TA=Ii(function(KB){var Ql=X(vt());(function(){function a(D){if(D==null)return null;if(typeof D==="function")return D.$$typeof===V?null:D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case k:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case re:return"Activity"}if(typeof D==="object")switch(typeof D.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case M:return"Portal";case q:return D.displayName||"Context";case U:return(D._context.displayName||"Context")+".Consumer";case W:var Z=D.render;return D=D.displayName,D||(D=Z.displayName||Z.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case J:return Z=D.displayName||null,Z!==null?Z:a(D.type)||"Memo";case K:Z=D._payload,D=D._init;try{return a(D(Z))}catch(me){}}return null}function n(D){return""+D}function s(D){try{n(D);var Z=!1}catch(Ge){Z=!0}if(Z){Z=console;var me=Z.error,ge=typeof Symbol==="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return me.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),n(D)}}function l(D){if(D===k)return"<>";if(typeof D==="object"&&D!==null&&D.$$typeof===K)return"<...>";try{var Z=a(D);return Z?"<"+Z+">":"<...>"}catch(me){return"<...>"}}function r(){var D=he.A;return D===null?null:D.getOwner()}function c(){return Error("react-stack-top-frame")}function f(D){if(Le.call(D,"key")){var Z=Object.getOwnPropertyDescriptor(D,"key").get;if(Z&&Z.isReactWarning)return!1}return D.key!==void 0}function h(D,Z){function me(){G||(G=!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)",Z))}me.isReactWarning=!0,Object.defineProperty(D,"key",{get:me,configurable:!0})}function p(){var D=a(this.type);return le[D]||(le[D]=!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.")),D=this.props.ref,D!==void 0?D:null}function g(D,Z,me,ge,Ge,Ft){var Pe=me.ref;return D={$$typeof:T,type:D,key:Z,props:me,_owner:ge},(Pe!==void 0?Pe:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:p}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ft}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function x(D,Z,me,ge,Ge,Ft){var Pe=Z.children;if(Pe!==void 0)if(ge)if(we(Pe)){for(ge=0;ge<Pe.length;ge++)y(Pe[ge]);Object.freeze&&Object.freeze(Pe)}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 y(Pe);if(Le.call(Z,"key")){Pe=a(D);var Wt=Object.keys(Z).filter(function(en){return en!=="key"});ge=0<Wt.length?"{key: someKey, "+Wt.join(": ..., ")+": ...}":"{key: someKey}",je[Pe+ge]||(Wt=0<Wt.length?"{"+Wt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,ne,fe,et,fe),He[fe+ne]=!0)}if(fe=null,ee!==void 0&&(s(ee),fe=""+ee),d(W)&&(s(W.key),fe=""+W.key),"key"in W){ee={};for(var tt in W)tt!=="key"&&(ee[tt]=W[tt])}else ee=W;return fe&&p(ee,typeof k==="function"?k.displayName||k.name||"Unknown":k),g(k,fe,ee,l(),te,le)}function y(k){v(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===Y&&(k._payload.status==="fulfilled"?v(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function v(k){return typeof k==="object"&&k!==null&&k.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),se=bl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,ye=Array.isArray,Se=console.createTask?console.createTask:function(){return null};bl={react_stack_bottom_frame:function(k){return k()}};var K,pe={},be=bl.react_stack_bottom_frame.bind(bl,u)(),Ue=Se(i(u)),He={};qN.Fragment=I,qN.jsxDEV=function(k,W,ee,ne){var te=1e4>se.recentlyCreatedOwnerStacks++;return b(k,W,ee,ne,te?Error("react-stack-top-frame"):be,te?Se(i(k)):Ue)}})()});var nA=Xr(function(KN){var vl=Q(dt());(function(){function a(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===j?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case I:return"Fragment";case A:return"Profiler";case w:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList";case J:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case M:return"Portal";case z:return k.displayName||"Context";case B:return(k._context.displayName||"Context")+".Consumer";case H:var W=k.render;return k=k.displayName,k||(k=W.displayName||W.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case X:return W=k.displayName||null,W!==null?W:a(k.type)||"Memo";case Y:W=k._payload,k=k._init;try{return a(k(W))}catch(ee){}}return null}function n(k){return""+k}function s(k){try{n(k);var W=!1}catch(te){W=!0}if(W){W=console;var ee=W.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ee.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),n(k)}}function i(k){if(k===I)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===Y)return"<...>";try{var W=a(k);return W?"<"+W+">":"<...>"}catch(ee){return"<...>"}}function l(){var k=se.A;return k===null?null:k.getOwner()}function u(){return Error("react-stack-top-frame")}function d(k){if(ge.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function p(k,W){function ee(){K||(K=!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)",W))}ee.isReactWarning=!0,Object.defineProperty(k,"key",{get:ee,configurable:!0})}function h(){var k=a(this.type);return pe[k]||(pe[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function g(k,W,ee,ne,te,le){var fe=ee.ref;return k={$$typeof:T,type:k,key:W,props:ee,_owner:ne},(fe!==void 0?fe:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:h}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function b(k,W,ee,ne,te,le){var fe=W.children;if(fe!==void 0)if(ne)if(ye(fe)){for(ne=0;ne<fe.length;ne++)y(fe[ne]);Object.freeze&&Object.freeze(fe)}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 y(fe);if(ge.call(W,"key")){fe=a(k);var et=Object.keys(W).filter(function(Gt){return Gt!=="key"});ne=0<et.length?"{key: someKey, "+et.join(": ..., ")+": ...}":"{key: someKey}",He[fe+ne]||(et=0<et.length?"{"+et.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
236
  let props = %s;
237
237
  <%s {...props} />
238
238
  React keys must be passed directly to JSX without using spread:
239
239
  let props = %s;
240
- <%s key={someKey} {...props} />`,ge,Pe,Wt,Pe),je[Pe+ge]=!0)}if(Pe=null,me!==void 0&&(s(me),Pe=""+me),f(Z)&&(s(Z.key),Pe=""+Z.key),"key"in Z){me={};for(var Aa in Z)Aa!=="key"&&(me[Aa]=Z[Aa])}else me=Z;return Pe&&h(me,typeof D==="function"?D.displayName||D.name||"Unknown":D),g(D,Pe,me,r(),Ge,Ft)}function y(D){S(D)?D._store&&(D._store.validated=1):typeof D==="object"&&D!==null&&D.$$typeof===K&&(D._payload.status==="fulfilled"?S(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function S(D){return typeof D==="object"&&D!==null&&D.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),q=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),he=Ql.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le=Object.prototype.hasOwnProperty,we=Array.isArray,Oe=console.createTask?console.createTask:function(){return null};Ql={react_stack_bottom_frame:function(D){return D()}};var G,le={},pe=Ql.react_stack_bottom_frame.bind(Ql,c)(),Qe=Oe(l(c)),je={};KB.Fragment=k,KB.jsx=function(D,Z,me){var ge=1e4>he.recentlyCreatedOwnerStacks++;return x(D,Z,me,!1,ge?Error("react-stack-top-frame"):pe,ge?Oe(l(D)):Qe)},KB.jsxs=function(D,Z,me){var ge=1e4>he.recentlyCreatedOwnerStacks++;return x(D,Z,me,!0,ge?Error("react-stack-top-frame"):pe,ge?Oe(l(D)):Qe)}})()});/*!
240
+ <%s key={someKey} {...props} />`,ne,fe,et,fe),He[fe+ne]=!0)}if(fe=null,ee!==void 0&&(s(ee),fe=""+ee),d(W)&&(s(W.key),fe=""+W.key),"key"in W){ee={};for(var tt in W)tt!=="key"&&(ee[tt]=W[tt])}else ee=W;return fe&&p(ee,typeof k==="function"?k.displayName||k.name||"Unknown":k),g(k,fe,ee,l(),te,le)}function y(k){v(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===Y&&(k._payload.status==="fulfilled"?v(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function v(k){return typeof k==="object"&&k!==null&&k.$$typeof===T}var T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),se=vl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,ye=Array.isArray,Se=console.createTask?console.createTask:function(){return null};vl={react_stack_bottom_frame:function(k){return k()}};var K,pe={},be=vl.react_stack_bottom_frame.bind(vl,u)(),Ue=Se(i(u)),He={};KN.Fragment=I,KN.jsx=function(k,W,ee){var ne=1e4>se.recentlyCreatedOwnerStacks++;return b(k,W,ee,!1,ne?Error("react-stack-top-frame"):be,ne?Se(i(k)):Ue)},KN.jsxs=function(k,W,ee){var ne=1e4>se.recentlyCreatedOwnerStacks++;return b(k,W,ee,!0,ne?Error("react-stack-top-frame"):be,ne?Se(i(k)):Ue)}})()});/*!
241
241
  * @kurkle/color v0.3.4
242
242
  * https://github.com/kurkle/color#readme
243
243
  * (c) 2024 Jukka Kurkela
244
244
  * Released under the MIT License
245
- */function id(a){return a+0.5|0}var Mi=(a,n,s)=>Math.max(Math.min(a,s),n);function sd(a){return Mi(id(a*2.55),0,255)}function Ai(a){return Mi(id(a*255),0,255)}function Ts(a){return Mi(id(a/2.55)/100,0,1)}function mw(a){return Mi(id(a*100),0,100)}var Yo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ax=[..."0123456789ABCDEF"],t2=(a)=>ax[a&15],a2=(a)=>ax[(a&240)>>4]+ax[a&15],xp=(a)=>(a&240)>>4===(a&15),o2=(a)=>xp(a.r)&&xp(a.g)&&xp(a.b)&&xp(a.a);function n2(a){var n=a.length,s;if(a[0]==="#"){if(n===4||n===5)s={r:255&Yo[a[1]]*17,g:255&Yo[a[2]]*17,b:255&Yo[a[3]]*17,a:n===5?Yo[a[4]]*17:255};else if(n===7||n===9)s={r:Yo[a[1]]<<4|Yo[a[2]],g:Yo[a[3]]<<4|Yo[a[4]],b:Yo[a[5]]<<4|Yo[a[6]],a:n===9?Yo[a[7]]<<4|Yo[a[8]]:255}}return s}var s2=(a,n)=>a<255?n(a):"";function i2(a){var n=o2(a)?t2:a2;return a?"#"+n(a.r)+n(a.g)+n(a.b)+s2(a.a,n):void 0}var l2=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xw(a,n,s){let l=n*Math.min(s,1-s),r=(c,f=(c+a/30)%12)=>s-l*Math.max(Math.min(f-3,9-f,1),-1);return[r(0),r(8),r(4)]}function r2(a,n,s){let l=(r,c=(r+a/60)%6)=>s-s*n*Math.max(Math.min(c,4-c,1),0);return[l(5),l(3),l(1)]}function u2(a,n,s){let l=xw(a,1,0.5),r;if(n+s>1)r=1/(n+s),n*=r,s*=r;for(r=0;r<3;r++)l[r]*=1-n-s,l[r]+=n;return l}function c2(a,n,s,l,r){if(a===r)return(n-s)/l+(n<s?6:0);if(n===r)return(s-a)/l+2;return(a-n)/l+4}function ox(a){let s=a.r/255,l=a.g/255,r=a.b/255,c=Math.max(s,l,r),f=Math.min(s,l,r),h=(c+f)/2,p,g,x;if(c!==f)x=c-f,g=h>0.5?x/(2-c-f):x/(c+f),p=c2(s,l,r,x,c),p=p*60+0.5;return[p|0,g||0,h]}function nx(a,n,s,l){return(Array.isArray(n)?a(n[0],n[1],n[2]):a(n,s,l)).map(Ai)}function sx(a,n,s){return nx(xw,a,n,s)}function d2(a,n,s){return nx(u2,a,n,s)}function f2(a,n,s){return nx(r2,a,n,s)}function vw(a){return(a%360+360)%360}function h2(a){let n=l2.exec(a),s=255,l;if(!n)return;if(n[5]!==l)s=n[6]?sd(+n[5]):Ai(+n[5]);let r=vw(+n[2]),c=+n[3]/100,f=+n[4]/100;if(n[1]==="hwb")l=d2(r,c,f);else if(n[1]==="hsv")l=f2(r,c,f);else l=sx(r,c,f);return{r:l[0],g:l[1],b:l[2],a:s}}function p2(a,n){var s=ox(a);s[0]=vw(s[0]+n),s=sx(s),a.r=s[0],a.g=s[1],a.b=s[2]}function m2(a){if(!a)return;let n=ox(a),s=n[0],l=mw(n[1]),r=mw(n[2]);return a.a<255?`hsla(${s}, ${l}%, ${r}%, ${Ts(a.a)})`:`hsl(${s}, ${l}%, ${r}%)`}var gw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function g2(){let a={},n=Object.keys(yw),s=Object.keys(gw),l,r,c,f,h;for(l=0;l<n.length;l++){f=h=n[l];for(r=0;r<s.length;r++)c=s[r],h=h.replace(c,gw[c]);c=parseInt(yw[f],16),a[h]=[c>>16&255,c>>8&255,c&255]}return a}var vp;function y2(a){if(!vp)vp=g2(),vp.transparent=[0,0,0,0];let n=vp[a.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var b2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function x2(a){let n=b2.exec(a),s=255,l,r,c;if(!n)return;if(n[7]!==l){let f=+n[7];s=n[8]?sd(f):Mi(f*255,0,255)}return l=+n[1],r=+n[3],c=+n[5],l=255&(n[2]?sd(l):Mi(l,0,255)),r=255&(n[4]?sd(r):Mi(r,0,255)),c=255&(n[6]?sd(c):Mi(c,0,255)),{r:l,g:r,b:c,a:s}}function v2(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${Ts(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}var tx=(a)=>a<=0.0031308?a*12.92:Math.pow(a,0.4166666666666667)*1.055-0.055,ru=(a)=>a<=0.04045?a/12.92:Math.pow((a+0.055)/1.055,2.4);function S2(a,n,s){let l=ru(Ts(a.r)),r=ru(Ts(a.g)),c=ru(Ts(a.b));return{r:Ai(tx(l+s*(ru(Ts(n.r))-l))),g:Ai(tx(r+s*(ru(Ts(n.g))-r))),b:Ai(tx(c+s*(ru(Ts(n.b))-c))),a:a.a+s*(n.a-a.a)}}function Sp(a,n,s){if(a){let l=ox(a);l[n]=Math.max(0,Math.min(l[n]+l[n]*s,n===0?360:1)),l=sx(l),a.r=l[0],a.g=l[1],a.b=l[2]}}function Sw(a,n){return a?Object.assign(n||{},a):a}function bw(a){var n={r:0,g:0,b:0,a:255};if(Array.isArray(a)){if(a.length>=3){if(n={r:a[0],g:a[1],b:a[2],a:255},a.length>3)n.a=Ai(a[3])}}else n=Sw(a,{r:0,g:0,b:0,a:1}),n.a=Ai(n.a);return n}function L2(a){if(a.charAt(0)==="r")return x2(a);return h2(a)}class uu{constructor(a){if(a instanceof uu)return a;let n=typeof a,s;if(n==="object")s=bw(a);else if(n==="string")s=n2(a)||y2(a)||L2(a);this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var a=Sw(this._rgb);if(a)a.a=Ts(a.a);return a}set rgb(a){this._rgb=bw(a)}rgbString(){return this._valid?v2(this._rgb):void 0}hexString(){return this._valid?i2(this._rgb):void 0}hslString(){return this._valid?m2(this._rgb):void 0}mix(a,n){if(a){let s=this.rgb,l=a.rgb,r,c=n===r?0.5:n,f=2*c-1,h=s.a-l.a,p=((f*h===-1?f:(f+h)/(1+f*h))+1)/2;r=1-p,s.r=255&p*s.r+r*l.r+0.5,s.g=255&p*s.g+r*l.g+0.5,s.b=255&p*s.b+r*l.b+0.5,s.a=c*s.a+(1-c)*l.a,this.rgb=s}return this}interpolate(a,n){if(a)this._rgb=S2(this._rgb,a._rgb,n);return this}clone(){return new uu(this.rgb)}alpha(a){return this._rgb.a=Ai(a),this}clearer(a){let n=this._rgb;return n.a*=1-a,this}greyscale(){let a=this._rgb,n=id(a.r*0.3+a.g*0.59+a.b*0.11);return a.r=a.g=a.b=n,this}opaquer(a){let n=this._rgb;return n.a*=1+a,this}negate(){let a=this._rgb;return a.r=255-a.r,a.g=255-a.g,a.b=255-a.b,this}lighten(a){return Sp(this._rgb,2,a),this}darken(a){return Sp(this._rgb,2,-a),this}saturate(a){return Sp(this._rgb,1,a),this}desaturate(a){return Sp(this._rgb,1,-a),this}rotate(a){return p2(this._rgb,a),this}}/*!
245
+ */function _d(a){return a+0.5|0}var Yr=(a,n,s)=>Math.max(Math.min(a,s),n);function Rd(a){return Yr(_d(a*2.55),0,255)}function $r(a){return Yr(_d(a*255),0,255)}function zs(a){return Yr(_d(a/2.55)/100,0,1)}function Xw(a){return Yr(_d(a*100),0,100)}var on={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Rx=[..."0123456789ABCDEF"],KD=(a)=>Rx[a&15],JD=(a)=>Rx[(a&240)>>4]+Rx[a&15],Gh=(a)=>(a&240)>>4===(a&15),eE=(a)=>Gh(a.r)&&Gh(a.g)&&Gh(a.b)&&Gh(a.a);function tE(a){var n=a.length,s;if(a[0]==="#"){if(n===4||n===5)s={r:255&on[a[1]]*17,g:255&on[a[2]]*17,b:255&on[a[3]]*17,a:n===5?on[a[4]]*17:255};else if(n===7||n===9)s={r:on[a[1]]<<4|on[a[2]],g:on[a[3]]<<4|on[a[4]],b:on[a[5]]<<4|on[a[6]],a:n===9?on[a[7]]<<4|on[a[8]]:255}}return s}var aE=(a,n)=>a<255?n(a):"";function oE(a){var n=eE(a)?KD:JD;return a?"#"+n(a.r)+n(a.g)+n(a.b)+aE(a.a,n):void 0}var nE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Zw(a,n,s){let i=n*Math.min(s,1-s),l=(u,d=(u+a/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);return[l(0),l(8),l(4)]}function sE(a,n,s){let i=(l,u=(l+a/60)%6)=>s-s*n*Math.max(Math.min(u,4-u,1),0);return[i(5),i(3),i(1)]}function rE(a,n,s){let i=Zw(a,1,0.5),l;if(n+s>1)l=1/(n+s),n*=l,s*=l;for(l=0;l<3;l++)i[l]*=1-n-s,i[l]+=n;return i}function iE(a,n,s,i,l){if(a===l)return(n-s)/i+(n<s?6:0);if(n===l)return(s-a)/i+2;return(a-n)/i+4}function _x(a){let s=a.r/255,i=a.g/255,l=a.b/255,u=Math.max(s,i,l),d=Math.min(s,i,l),p=(u+d)/2,h,g,b;if(u!==d)b=u-d,g=p>0.5?b/(2-u-d):b/(u+d),h=iE(s,i,l,b,u),h=h*60+0.5;return[h|0,g||0,p]}function Dx(a,n,s,i){return(Array.isArray(n)?a(n[0],n[1],n[2]):a(n,s,i)).map($r)}function Ex(a,n,s){return Dx(Zw,a,n,s)}function lE(a,n,s){return Dx(rE,a,n,s)}function uE(a,n,s){return Dx(sE,a,n,s)}function Qw(a){return(a%360+360)%360}function cE(a){let n=nE.exec(a),s=255,i;if(!n)return;if(n[5]!==i)s=n[6]?Rd(+n[5]):$r(+n[5]);let l=Qw(+n[2]),u=+n[3]/100,d=+n[4]/100;if(n[1]==="hwb")i=lE(l,u,d);else if(n[1]==="hsv")i=uE(l,u,d);else i=Ex(l,u,d);return{r:i[0],g:i[1],b:i[2],a:s}}function dE(a,n){var s=_x(a);s[0]=Qw(s[0]+n),s=Ex(s),a.r=s[0],a.g=s[1],a.b=s[2]}function fE(a){if(!a)return;let n=_x(a),s=n[0],i=Xw(n[1]),l=Xw(n[2]);return a.a<255?`hsla(${s}, ${i}%, ${l}%, ${zs(a.a)})`:`hsl(${s}, ${i}%, ${l}%)`}var Yw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$w={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function pE(){let a={},n=Object.keys($w),s=Object.keys(Yw),i,l,u,d,p;for(i=0;i<n.length;i++){d=p=n[i];for(l=0;l<s.length;l++)u=s[l],p=p.replace(u,Yw[u]);u=parseInt($w[d],16),a[p]=[u>>16&255,u>>8&255,u&255]}return a}var Xh;function hE(a){if(!Xh)Xh=pE(),Xh.transparent=[0,0,0,0];let n=Xh[a.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var mE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function gE(a){let n=mE.exec(a),s=255,i,l,u;if(!n)return;if(n[7]!==i){let d=+n[7];s=n[8]?Rd(d):Yr(d*255,0,255)}return i=+n[1],l=+n[3],u=+n[5],i=255&(n[2]?Rd(i):Yr(i,0,255)),l=255&(n[4]?Rd(l):Yr(l,0,255)),u=255&(n[6]?Rd(u):Yr(u,0,255)),{r:i,g:l,b:u,a:s}}function yE(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${zs(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}var Ax=(a)=>a<=0.0031308?a*12.92:Math.pow(a,0.4166666666666667)*1.055-0.055,Au=(a)=>a<=0.04045?a/12.92:Math.pow((a+0.055)/1.055,2.4);function bE(a,n,s){let i=Au(zs(a.r)),l=Au(zs(a.g)),u=Au(zs(a.b));return{r:$r(Ax(i+s*(Au(zs(n.r))-i))),g:$r(Ax(l+s*(Au(zs(n.g))-l))),b:$r(Ax(u+s*(Au(zs(n.b))-u))),a:a.a+s*(n.a-a.a)}}function Yh(a,n,s){if(a){let i=_x(a);i[n]=Math.max(0,Math.min(i[n]+i[n]*s,n===0?360:1)),i=Ex(i),a.r=i[0],a.g=i[1],a.b=i[2]}}function Kw(a,n){return a?Object.assign(n||{},a):a}function Ww(a){var n={r:0,g:0,b:0,a:255};if(Array.isArray(a)){if(a.length>=3){if(n={r:a[0],g:a[1],b:a[2],a:255},a.length>3)n.a=$r(a[3])}}else n=Kw(a,{r:0,g:0,b:0,a:1}),n.a=$r(n.a);return n}function xE(a){if(a.charAt(0)==="r")return gE(a);return cE(a)}class Ru{constructor(a){if(a instanceof Ru)return a;let n=typeof a,s;if(n==="object")s=Ww(a);else if(n==="string")s=tE(a)||hE(a)||xE(a);this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var a=Kw(this._rgb);if(a)a.a=zs(a.a);return a}set rgb(a){this._rgb=Ww(a)}rgbString(){return this._valid?yE(this._rgb):void 0}hexString(){return this._valid?oE(this._rgb):void 0}hslString(){return this._valid?fE(this._rgb):void 0}mix(a,n){if(a){let s=this.rgb,i=a.rgb,l,u=n===l?0.5:n,d=2*u-1,p=s.a-i.a,h=((d*p===-1?d:(d+p)/(1+d*p))+1)/2;l=1-h,s.r=255&h*s.r+l*i.r+0.5,s.g=255&h*s.g+l*i.g+0.5,s.b=255&h*s.b+l*i.b+0.5,s.a=u*s.a+(1-u)*i.a,this.rgb=s}return this}interpolate(a,n){if(a)this._rgb=bE(this._rgb,a._rgb,n);return this}clone(){return new Ru(this.rgb)}alpha(a){return this._rgb.a=$r(a),this}clearer(a){let n=this._rgb;return n.a*=1-a,this}greyscale(){let a=this._rgb,n=_d(a.r*0.3+a.g*0.59+a.b*0.11);return a.r=a.g=a.b=n,this}opaquer(a){let n=this._rgb;return n.a*=1+a,this}negate(){let a=this._rgb;return a.r=255-a.r,a.g=255-a.g,a.b=255-a.b,this}lighten(a){return Yh(this._rgb,2,a),this}darken(a){return Yh(this._rgb,2,-a),this}saturate(a){return Yh(this._rgb,1,a),this}desaturate(a){return Yh(this._rgb,1,-a),this}rotate(a){return dE(this._rgb,a),this}}/*!
246
246
  * Chart.js v4.5.1
247
247
  * https://www.chartjs.org
248
248
  * (c) 2025 Chart.js Contributors
249
249
  * Released under the MIT License
250
- */function Yn(){}var Dw=(()=>{let a=0;return()=>a++})();function st(a){return a===null||a===void 0}function At(a){if(Array.isArray&&Array.isArray(a))return!0;let n=Object.prototype.toString.call(a);if(n.slice(0,7)==="[object"&&n.slice(-6)==="Array]")return!0;return!1}function at(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function Ut(a){return(typeof a==="number"||a instanceof Number)&&isFinite(+a)}function ao(a,n){return Ut(a)?a:n}function We(a,n){return typeof a>"u"?n:a}var Ew=(a,n)=>typeof a==="string"&&a.endsWith("%")?parseFloat(a)/100*n:+a;function Tt(a,n,s){if(a&&typeof a.call==="function")return a.apply(s,n)}function pt(a,n,s,l){let r,c,f;if(At(a))if(c=a.length,l)for(r=c-1;r>=0;r--)n.call(s,a[r],r);else for(r=0;r<c;r++)n.call(s,a[r],r);else if(at(a)){f=Object.keys(a),c=f.length;for(r=0;r<c;r++)n.call(s,a[f[r]],f[r])}}function ud(a,n){let s,l,r,c;if(!a||!n||a.length!==n.length)return!1;for(s=0,l=a.length;s<l;++s)if(r=a[s],c=n[s],r.datasetIndex!==c.datasetIndex||r.index!==c.index)return!1;return!0}function wp(a){if(At(a))return a.map(wp);if(at(a)){let n=Object.create(null),s=Object.keys(a),l=s.length,r=0;for(;r<l;++r)n[s[r]]=wp(a[s[r]]);return n}return a}function Ow(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function C2(a,n,s,l){if(!Ow(a))return;let r=n[a],c=s[a];if(at(r)&&at(c))du(r,c,l);else n[a]=wp(c)}function du(a,n,s){let l=At(n)?n:[n],r=l.length;if(!at(a))return a;s=s||{};let c=s.merger||C2,f;for(let h=0;h<r;++h){if(f=l[h],!at(f))continue;let p=Object.keys(f);for(let g=0,x=p.length;g<x;++g)c(p[g],a,f,s)}return a}function hu(a,n){return du(a,n,{merger:T2})}function T2(a,n,s){if(!Ow(a))return;let l=n[a],r=s[a];if(at(l)&&at(r))hu(l,r);else if(!Object.prototype.hasOwnProperty.call(n,a))n[a]=wp(r)}var Lw={"":(a)=>a,x:(a)=>a.x,y:(a)=>a.y};function w2(a){let n=a.split("."),s=[],l="";for(let r of n)if(l+=r,l.endsWith("\\"))l=l.slice(0,-1)+".";else s.push(l),l="";return s}function I2(a){let n=w2(a);return(s)=>{for(let l of n){if(l==="")break;s=s&&s[l]}return s}}function Hl(a,n){return(Lw[n]||(Lw[n]=I2(n)))(a)}function kp(a){return a.charAt(0).toUpperCase()+a.slice(1)}var pu=(a)=>typeof a<"u",ws=(a)=>typeof a==="function",rx=(a,n)=>{if(a.size!==n.size)return!1;for(let s of a)if(!n.has(s))return!1;return!0};function Pw(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}var Yt=Math.PI,eo=2*Yt,M2=eo+Yt,Ip=Number.POSITIVE_INFINITY,A2=Yt/180,Ja=Yt/2,Nl=Yt/4,Cw=Yt*2/3,Is=Math.log10,hn=Math.sign;function mu(a,n,s){return Math.abs(a-n)<s}function ux(a){let n=Math.round(a);a=mu(a,n,a/1000)?n:a;let s=Math.pow(10,Math.floor(Is(a))),l=a/s;return(l<=1?1:l<=2?2:l<=5?5:10)*s}function Bw(a){let n=[],s=Math.sqrt(a),l;for(l=1;l<s;l++)if(a%l===0)n.push(l),n.push(a/l);if(s===(s|0))n.push(s);return n.sort((r,c)=>r-c).pop(),n}function k2(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function gu(a){return!k2(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function Nw(a,n){let s=Math.round(a);return s-n<=a&&s+n>=a}function cx(a,n,s){let l,r,c;for(l=0,r=a.length;l<r;l++)if(c=a[l][s],!isNaN(c))n.min=Math.min(n.min,c),n.max=Math.max(n.max,c)}function Ms(a){return a*(Yt/180)}function Rp(a){return a*(180/Yt)}function dx(a){if(!Ut(a))return;let n=1,s=0;while(Math.round(a*n)/n!==a)n*=10,s++;return s}function zw(a,n){let s=n.x-a.x,l=n.y-a.y,r=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);if(c<-0.5*Yt)c+=eo;return{angle:c,distance:r}}function Mp(a,n){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))}function R2(a,n){return(a-n+M2)%eo-Yt}function Ka(a){return(a%eo+eo)%eo}function fx(a,n,s,l){let r=Ka(a),c=Ka(n),f=Ka(s),h=Ka(c-r),p=Ka(f-r),g=Ka(r-c),x=Ka(r-f);return r===c||r===f||l&&c===f||h>p&&g<x}function to(a,n,s){return Math.max(n,Math.min(s,a))}function Uw(a){return to(a,-32768,32767)}function As(a,n,s,l=0.000001){return a>=Math.min(n,s)-l&&a<=Math.max(n,s)+l}function _p(a,n,s){s=s||((f)=>a[f]<n);let l=a.length-1,r=0,c;while(l-r>1)if(c=r+l>>1,s(c))r=c;else l=c;return{lo:r,hi:l}}var Ri=(a,n,s,l)=>_p(a,s,l?(r)=>{let c=a[r][n];return c<s||c===s&&a[r+1][n]===s}:(r)=>a[r][n]<s),Hw=(a,n,s)=>_p(a,s,(l)=>a[l][n]>=s);function Fw(a,n,s){let l=0,r=a.length;while(l<r&&a[l]<n)l++;while(r>l&&a[r-1]>s)r--;return l>0||r<a.length?a.slice(l,r):a}var qw=["push","pop","shift","splice","unshift"];function Vw(a,n){if(a._chartjs){a._chartjs.listeners.push(n);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),qw.forEach((s)=>{let l="_onData"+kp(s),r=a[s];Object.defineProperty(a,s,{configurable:!0,enumerable:!1,value(...c){let f=r.apply(this,c);return a._chartjs.listeners.forEach((h)=>{if(typeof h[l]==="function")h[l](...c)}),f}})})}function hx(a,n){let s=a._chartjs;if(!s)return;let l=s.listeners,r=l.indexOf(n);if(r!==-1)l.splice(r,1);if(l.length>0)return;qw.forEach((c)=>{delete a[c]}),delete a._chartjs}function px(a){let n=new Set(a);if(n.size===a.length)return a;return Array.from(n)}var mx=function(){if(typeof window>"u")return function(a){return a()};return window.requestAnimationFrame}();function gx(a,n){let s=[],l=!1;return function(...r){if(s=r,!l)l=!0,mx.call(window,()=>{l=!1,a.apply(n,s)})}}function jw(a,n){let s;return function(...l){if(n)clearTimeout(s),s=setTimeout(a,n,l);else a.apply(this,l);return n}}var Dp=(a)=>a==="start"?"left":a==="end"?"right":"center",Ca=(a,n,s)=>a==="start"?n:a==="end"?s:(n+s)/2,Gw=(a,n,s,l)=>a===(l?"left":"right")?s:a==="center"?(n+s)/2:n;function Yw(a,n,s){let l=n.length,r=0,c=l;if(a._sorted){let{iScale:f,vScale:h,_parsed:p}=a,g=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null,x=f.axis,{min:y,max:S,minDefined:T,maxDefined:M}=f.getUserBounds();if(T){if(r=Math.min(Ri(p,x,y).lo,s?l:Ri(n,x,f.getPixelForValue(y)).lo),g){let k=p.slice(0,r+1).reverse().findIndex((w)=>!st(w[h.axis]));r-=Math.max(0,k)}r=to(r,0,l-1)}if(M){let k=Math.max(Ri(p,f.axis,S,!0).hi+1,s?0:Ri(n,x,f.getPixelForValue(S),!0).hi+1);if(g){let w=p.slice(k-1).findIndex((_)=>!st(_[h.axis]));k+=Math.max(0,w)}c=to(k,r,l)-r}else c=l-r}return{start:r,count:c}}function Xw(a){let{xScale:n,yScale:s,_scaleRanges:l}=a,r={xmin:n.min,xmax:n.max,ymin:s.min,ymax:s.max};if(!l)return a._scaleRanges=r,!0;let c=l.xmin!==n.min||l.xmax!==n.max||l.ymin!==s.min||l.ymax!==s.max;return Object.assign(l,r),c}var Lp=(a)=>a===0||a===1,Tw=(a,n,s)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-n)*eo/s)),ww=(a,n,s)=>Math.pow(2,-10*a)*Math.sin((a-n)*eo/s)+1,cu={linear:(a)=>a,easeInQuad:(a)=>a*a,easeOutQuad:(a)=>-a*(a-2),easeInOutQuad:(a)=>(a/=0.5)<1?0.5*a*a:-0.5*(--a*(a-2)-1),easeInCubic:(a)=>a*a*a,easeOutCubic:(a)=>(a-=1)*a*a+1,easeInOutCubic:(a)=>(a/=0.5)<1?0.5*a*a*a:0.5*((a-=2)*a*a+2),easeInQuart:(a)=>a*a*a*a,easeOutQuart:(a)=>-((a-=1)*a*a*a-1),easeInOutQuart:(a)=>(a/=0.5)<1?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2),easeInQuint:(a)=>a*a*a*a*a,easeOutQuint:(a)=>(a-=1)*a*a*a*a+1,easeInOutQuint:(a)=>(a/=0.5)<1?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2),easeInSine:(a)=>-Math.cos(a*Ja)+1,easeOutSine:(a)=>Math.sin(a*Ja),easeInOutSine:(a)=>-0.5*(Math.cos(Yt*a)-1),easeInExpo:(a)=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:(a)=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:(a)=>Lp(a)?a:a<0.5?0.5*Math.pow(2,10*(a*2-1)):0.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:(a)=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:(a)=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:(a)=>(a/=0.5)<1?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:(a)=>Lp(a)?a:Tw(a,0.075,0.3),easeOutElastic:(a)=>Lp(a)?a:ww(a,0.075,0.3),easeInOutElastic(a){return Lp(a)?a:a<0.5?0.5*Tw(a*2,0.1125,0.45):0.5+0.5*ww(a*2-1,0.1125,0.45)},easeInBack(a){return a*a*(2.70158*a-1.70158)},easeOutBack(a){return(a-=1)*a*(2.70158*a+1.70158)+1},easeInOutBack(a){let n=1.70158;if((a/=0.5)<1)return 0.5*(a*a*(((n*=1.525)+1)*a-n));return 0.5*((a-=2)*a*(((n*=1.525)+1)*a+n)+2)},easeInBounce:(a)=>1-cu.easeOutBounce(1-a),easeOutBounce(a){if(a<0.36363636363636365)return 7.5625*a*a;if(a<0.7272727272727273)return 7.5625*(a-=0.5454545454545454)*a+0.75;if(a<0.9090909090909091)return 7.5625*(a-=0.8181818181818182)*a+0.9375;return 7.5625*(a-=0.9545454545454546)*a+0.984375},easeInOutBounce:(a)=>a<0.5?cu.easeInBounce(a*2)*0.5:cu.easeOutBounce(a*2-1)*0.5+0.5};function yx(a){if(a&&typeof a==="object"){let n=a.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function bx(a){return yx(a)?a:new uu(a)}function ix(a){return yx(a)?a:new uu(a).saturate(0.5).darken(0.1).hexString()}var _2=["x","y","borderWidth","radius","tension"],D2=["color","borderColor","backgroundColor"];function E2(a){a.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(n)=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),a.set("animations",{colors:{type:"color",properties:D2},numbers:{type:"number",properties:_2}}),a.describe("animations",{_fallback:"animation"}),a.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(n)=>n|0}}}})}function O2(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Iw=new Map;function P2(a,n){n=n||{};let s=a+JSON.stringify(n),l=Iw.get(s);if(!l)l=new Intl.NumberFormat(a,n),Iw.set(s,l);return l}function Ep(a,n,s){return P2(n,s).format(a)}var $w={values(a){return At(a)?a:""+a},numeric(a,n,s){if(a===0)return"0";let l=this.chart.options.locale,r,c=a;if(s.length>1){let g=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));if(g<0.0001||g>1000000000000000)r="scientific";c=B2(a,s)}let f=Is(Math.abs(c)),h=isNaN(f)?1:Math.max(Math.min(-1*Math.floor(f),20),0),p={notation:r,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(p,this.options.ticks.format),Ep(a,l,p)},logarithmic(a,n,s){if(a===0)return"0";let l=s[n].significand||a/Math.pow(10,Math.floor(Is(a)));if([1,2,3,5,10,15].includes(l)||n>0.8*s.length)return $w.numeric.call(this,a,n,s);return""}};function B2(a,n){let s=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;if(Math.abs(s)>=1&&a!==Math.floor(a))s=a-Math.floor(a);return s}var cd={formatters:$w};function N2(a){a.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,s)=>s.lineWidth,tickColor:(n,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:cd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:(n)=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:(n)=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:(n)=>n!=="backdropPadding"&&n!=="callback",_indexable:(n)=>n!=="backdropPadding"})}var Di=Object.create(null),Op=Object.create(null);function ld(a,n){if(!n)return a;let s=n.split(".");for(let l=0,r=s.length;l<r;++l){let c=s[l];a=a[c]||(a[c]=Object.create(null))}return a}function lx(a,n,s){if(typeof n==="string")return du(ld(a,n),s);return du(ld(a,""),n)}class Ww{constructor(a,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(s)=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,l)=>ix(l.backgroundColor),this.hoverBorderColor=(s,l)=>ix(l.borderColor),this.hoverColor=(s,l)=>ix(l.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(a),this.apply(n)}set(a,n){return lx(this,a,n)}get(a){return ld(this,a)}describe(a,n){return lx(Op,a,n)}override(a,n){return lx(Di,a,n)}route(a,n,s,l){let r=ld(this,a),c=ld(this,s),f="_"+n;Object.defineProperties(r,{[f]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){let h=this[f],p=c[l];if(at(h))return Object.assign({},p,h);return We(h,p)},set(h){this[f]=h}}})}apply(a){a.forEach((n)=>n(this))}}var Ht=new Ww({_scriptable:(a)=>!a.startsWith("on"),_indexable:(a)=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[E2,O2,N2]);function z2(a){if(!a||st(a.size)||st(a.family))return null;return(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function rd(a,n,s,l,r){let c=n[r];if(!c)c=n[r]=a.measureText(r).width,s.push(r);if(c>l)l=c;return l}function Zw(a,n,s,l){l=l||{};let r=l.data=l.data||{},c=l.garbageCollect=l.garbageCollect||[];if(l.font!==n)r=l.data={},c=l.garbageCollect=[],l.font=n;a.save(),a.font=n;let f=0,h=s.length,p,g,x,y,S;for(p=0;p<h;p++)if(y=s[p],y!==void 0&&y!==null&&!At(y))f=rd(a,r,c,f,y);else if(At(y)){for(g=0,x=y.length;g<x;g++)if(S=y[g],S!==void 0&&S!==null&&!At(S))f=rd(a,r,c,f,S)}a.restore();let T=c.length/2;if(T>s.length){for(p=0;p<T;p++)delete r[c[p]];c.splice(0,T)}return f}function Ei(a,n,s){let l=a.currentDevicePixelRatio,r=s!==0?Math.max(s/2,0.5):0;return Math.round((n-r)*l)/l+r}function xx(a,n){if(!n&&!a)return;n=n||a.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,a.width,a.height),n.restore()}function Pp(a,n,s,l){vx(a,n,s,l,null)}function vx(a,n,s,l,r){let c,f,h,p,g,x,y,S,T=n.pointStyle,M=n.rotation,k=n.radius,w=(M||0)*A2;if(T&&typeof T==="object"){if(c=T.toString(),c==="[object HTMLImageElement]"||c==="[object HTMLCanvasElement]"){a.save(),a.translate(s,l),a.rotate(w),a.drawImage(T,-T.width/2,-T.height/2,T.width,T.height),a.restore();return}}if(isNaN(k)||k<=0)return;switch(a.beginPath(),T){default:if(r)a.ellipse(s,l,r/2,k,0,0,eo);else a.arc(s,l,k,0,eo);a.closePath();break;case"triangle":x=r?r/2:k,a.moveTo(s+Math.sin(w)*x,l-Math.cos(w)*k),w+=Cw,a.lineTo(s+Math.sin(w)*x,l-Math.cos(w)*k),w+=Cw,a.lineTo(s+Math.sin(w)*x,l-Math.cos(w)*k),a.closePath();break;case"rectRounded":g=k*0.516,p=k-g,f=Math.cos(w+Nl)*p,y=Math.cos(w+Nl)*(r?r/2-g:p),h=Math.sin(w+Nl)*p,S=Math.sin(w+Nl)*(r?r/2-g:p),a.arc(s-y,l-h,g,w-Yt,w-Ja),a.arc(s+S,l-f,g,w-Ja,w),a.arc(s+y,l+h,g,w,w+Ja),a.arc(s-S,l+f,g,w+Ja,w+Yt),a.closePath();break;case"rect":if(!M){p=Math.SQRT1_2*k,x=r?r/2:p,a.rect(s-x,l-p,2*x,2*p);break}w+=Nl;case"rectRot":y=Math.cos(w)*(r?r/2:k),f=Math.cos(w)*k,h=Math.sin(w)*k,S=Math.sin(w)*(r?r/2:k),a.moveTo(s-y,l-h),a.lineTo(s+S,l-f),a.lineTo(s+y,l+h),a.lineTo(s-S,l+f),a.closePath();break;case"crossRot":w+=Nl;case"cross":y=Math.cos(w)*(r?r/2:k),f=Math.cos(w)*k,h=Math.sin(w)*k,S=Math.sin(w)*(r?r/2:k),a.moveTo(s-y,l-h),a.lineTo(s+y,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f);break;case"star":y=Math.cos(w)*(r?r/2:k),f=Math.cos(w)*k,h=Math.sin(w)*k,S=Math.sin(w)*(r?r/2:k),a.moveTo(s-y,l-h),a.lineTo(s+y,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f),w+=Nl,y=Math.cos(w)*(r?r/2:k),f=Math.cos(w)*k,h=Math.sin(w)*k,S=Math.sin(w)*(r?r/2:k),a.moveTo(s-y,l-h),a.lineTo(s+y,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f);break;case"line":f=r?r/2:Math.cos(w)*k,h=Math.sin(w)*k,a.moveTo(s-f,l-h),a.lineTo(s+f,l+h);break;case"dash":a.moveTo(s,l),a.lineTo(s+Math.cos(w)*(r?r/2:k),l+Math.sin(w)*k);break;case!1:a.closePath();break}if(a.fill(),n.borderWidth>0)a.stroke()}function Gn(a,n,s){return s=s||0.5,!n||a&&a.x>n.left-s&&a.x<n.right+s&&a.y>n.top-s&&a.y<n.bottom+s}function dd(a,n){a.save(),a.beginPath(),a.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),a.clip()}function fd(a){a.restore()}function Qw(a,n,s,l,r){if(!n)return a.lineTo(s.x,s.y);if(r==="middle"){let c=(n.x+s.x)/2;a.lineTo(c,n.y),a.lineTo(c,s.y)}else if(r==="after"!==!!l)a.lineTo(n.x,s.y);else a.lineTo(s.x,n.y);a.lineTo(s.x,s.y)}function Kw(a,n,s,l){if(!n)return a.lineTo(s.x,s.y);a.bezierCurveTo(l?n.cp1x:n.cp2x,l?n.cp1y:n.cp2y,l?s.cp2x:s.cp1x,l?s.cp2y:s.cp1y,s.x,s.y)}function U2(a,n){if(n.translation)a.translate(n.translation[0],n.translation[1]);if(!st(n.rotation))a.rotate(n.rotation);if(n.color)a.fillStyle=n.color;if(n.textAlign)a.textAlign=n.textAlign;if(n.textBaseline)a.textBaseline=n.textBaseline}function H2(a,n,s,l,r){if(r.strikethrough||r.underline){let c=a.measureText(l),f=n-c.actualBoundingBoxLeft,h=n+c.actualBoundingBoxRight,p=s-c.actualBoundingBoxAscent,g=s+c.actualBoundingBoxDescent,x=r.strikethrough?(p+g)/2:g;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(f,x),a.lineTo(h,x),a.stroke()}}function F2(a,n){let s=a.fillStyle;a.fillStyle=n.color,a.fillRect(n.left,n.top,n.width,n.height),a.fillStyle=s}function Oi(a,n,s,l,r,c={}){let f=At(n)?n:[n],h=c.strokeWidth>0&&c.strokeColor!=="",p,g;a.save(),a.font=r.string,U2(a,c);for(p=0;p<f.length;++p){if(g=f[p],c.backdrop)F2(a,c.backdrop);if(h){if(c.strokeColor)a.strokeStyle=c.strokeColor;if(!st(c.strokeWidth))a.lineWidth=c.strokeWidth;a.strokeText(g,s,l,c.maxWidth)}a.fillText(g,s,l,c.maxWidth),H2(a,s,l,g,c),l+=Number(r.lineHeight)}a.restore()}function yu(a,n){let{x:s,y:l,w:r,h:c,radius:f}=n;a.arc(s+f.topLeft,l+f.topLeft,f.topLeft,1.5*Yt,Yt,!0),a.lineTo(s,l+c-f.bottomLeft),a.arc(s+f.bottomLeft,l+c-f.bottomLeft,f.bottomLeft,Yt,Ja,!0),a.lineTo(s+r-f.bottomRight,l+c),a.arc(s+r-f.bottomRight,l+c-f.bottomRight,f.bottomRight,Ja,0,!0),a.lineTo(s+r,l+f.topRight),a.arc(s+r-f.topRight,l+f.topRight,f.topRight,0,-Ja,!0),a.lineTo(s+f.topLeft,l)}var q2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,V2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function j2(a,n){let s=(""+a).match(q2);if(!s||s[1]==="normal")return n*1.2;switch(a=+s[2],s[3]){case"px":return a;case"%":a/=100;break}return n*a}var G2=(a)=>+a||0;function Sx(a,n){let s={},l=at(n),r=l?Object.keys(n):n,c=at(a)?l?(f)=>We(a[f],a[n[f]]):(f)=>a[f]:()=>a;for(let f of r)s[f]=G2(c(f));return s}function Lx(a){return Sx(a,{top:"y",right:"x",bottom:"y",left:"x"})}function Pi(a){return Sx(a,["topLeft","topRight","bottomLeft","bottomRight"])}function Ta(a){let n=Lx(a);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function oa(a,n){a=a||{},n=n||Ht.font;let s=We(a.size,n.size);if(typeof s==="string")s=parseInt(s,10);let l=We(a.style,n.style);if(l&&!(""+l).match(V2))console.warn('Invalid font style specified: "'+l+'"'),l=void 0;let r={family:We(a.family,n.family),lineHeight:j2(We(a.lineHeight,n.lineHeight),s),size:s,style:l,weight:We(a.weight,n.weight),string:""};return r.string=z2(r),r}function hd(a,n,s,l){let r=!0,c,f,h;for(c=0,f=a.length;c<f;++c){if(h=a[c],h===void 0)continue;if(n!==void 0&&typeof h==="function")h=h(n),r=!1;if(s!==void 0&&At(h))h=h[s%h.length],r=!1;if(h!==void 0){if(l&&!r)l.cacheable=!1;return h}}}function Jw(a,n,s){let{min:l,max:r}=a,c=Ew(n,(r-l)/2),f=(h,p)=>s&&h===0?0:h+p;return{min:f(l,-Math.abs(c)),max:f(r,c)}}function ks(a,n){return Object.assign(Object.create(a),n)}function Bp(a,n=[""],s,l,r=()=>a[0]){let c=s||a;if(typeof l>"u")l=aI("_fallback",a);let f={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:c,_fallback:l,_getTarget:r,override:(h)=>Bp([h,...a],n,c,l)};return new Proxy(f,{deleteProperty(h,p){return delete h[p],delete h._keys,delete a[0][p],!0},get(h,p){return eI(h,p,()=>J2(p,n,a,h))},getOwnPropertyDescriptor(h,p){return Reflect.getOwnPropertyDescriptor(h._scopes[0],p)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(h,p){return Aw(h).includes(p)},ownKeys(h){return Aw(h)},set(h,p,g){let x=h._storage||(h._storage=r());return h[p]=x[p]=g,delete h._keys,!0}})}function Ul(a,n,s,l){let r={_cacheable:!1,_proxy:a,_context:n,_subProxy:s,_stack:new Set,_descriptors:Cx(a,l),setContext:(c)=>Ul(a,c,s,l),override:(c)=>Ul(a.override(c),n,s,l)};return new Proxy(r,{deleteProperty(c,f){return delete c[f],delete a[f],!0},get(c,f,h){return eI(c,f,()=>X2(c,f,h))},getOwnPropertyDescriptor(c,f){return c._descriptors.allKeys?Reflect.has(a,f)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,f)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(c,f){return Reflect.has(a,f)},ownKeys(){return Reflect.ownKeys(a)},set(c,f,h){return a[f]=h,delete c[f],!0}})}function Cx(a,n={scriptable:!0,indexable:!0}){let{_scriptable:s=n.scriptable,_indexable:l=n.indexable,_allKeys:r=n.allKeys}=a;return{allKeys:r,scriptable:s,indexable:l,isScriptable:ws(s)?s:()=>s,isIndexable:ws(l)?l:()=>l}}var Y2=(a,n)=>a?a+kp(n):n,Tx=(a,n)=>at(n)&&a!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function eI(a,n,s){if(Object.prototype.hasOwnProperty.call(a,n)||n==="constructor")return a[n];let l=s();return a[n]=l,l}function X2(a,n,s){let{_proxy:l,_context:r,_subProxy:c,_descriptors:f}=a,h=l[n];if(ws(h)&&f.isScriptable(n))h=$2(n,h,a,s);if(At(h)&&h.length)h=W2(n,h,a,f.isIndexable);if(Tx(n,h))h=Ul(h,r,c&&c[n],f);return h}function $2(a,n,s,l){let{_proxy:r,_context:c,_subProxy:f,_stack:h}=s;if(h.has(a))throw Error("Recursion detected: "+Array.from(h).join("->")+"->"+a);h.add(a);let p=n(c,f||l);if(h.delete(a),Tx(a,p))p=wx(r._scopes,r,a,p);return p}function W2(a,n,s,l){let{_proxy:r,_context:c,_subProxy:f,_descriptors:h}=s;if(typeof c.index<"u"&&l(a))return n[c.index%n.length];else if(at(n[0])){let p=n,g=r._scopes.filter((x)=>x!==p);n=[];for(let x of p){let y=wx(g,r,a,x);n.push(Ul(y,c,f&&f[a],h))}}return n}function tI(a,n,s){return ws(a)?a(n,s):a}var Z2=(a,n)=>a===!0?n:typeof a==="string"?Hl(n,a):void 0;function Q2(a,n,s,l,r){for(let c of n){let f=Z2(s,c);if(f){a.add(f);let h=tI(f._fallback,s,r);if(typeof h<"u"&&h!==s&&h!==l)return h}else if(f===!1&&typeof l<"u"&&s!==l)return null}return!1}function wx(a,n,s,l){let r=n._rootScopes,c=tI(n._fallback,s,l),f=[...a,...r],h=new Set;h.add(l);let p=Mw(h,f,s,c||s,l);if(p===null)return!1;if(typeof c<"u"&&c!==s){if(p=Mw(h,f,c,p,l),p===null)return!1}return Bp(Array.from(h),[""],r,c,()=>K2(n,s,l))}function Mw(a,n,s,l,r){while(s)s=Q2(a,n,s,l,r);return s}function K2(a,n,s){let l=a._getTarget();if(!(n in l))l[n]={};let r=l[n];if(At(r)&&at(s))return s;return r||{}}function J2(a,n,s,l){let r;for(let c of n)if(r=aI(Y2(c,a),s),typeof r<"u")return Tx(a,r)?wx(s,l,a,r):r}function aI(a,n){for(let s of n){if(!s)continue;let l=s[a];if(typeof l<"u")return l}}function Aw(a){let n=a._keys;if(!n)n=a._keys=eE(a._scopes);return n}function eE(a){let n=new Set;for(let s of a)for(let l of Object.keys(s).filter((r)=>!r.startsWith("_")))n.add(l);return Array.from(n)}var tE=Number.EPSILON||0.00000000000001,fu=(a,n)=>n<a.length&&!a[n].skip&&a[n],oI=(a)=>a==="x"?"y":"x";function aE(a,n,s,l){let r=a.skip?n:a,c=n,f=s.skip?n:s,h=Mp(c,r),p=Mp(f,c),g=h/(h+p),x=p/(h+p);g=isNaN(g)?0:g,x=isNaN(x)?0:x;let y=l*g,S=l*x;return{previous:{x:c.x-y*(f.x-r.x),y:c.y-y*(f.y-r.y)},next:{x:c.x+S*(f.x-r.x),y:c.y+S*(f.y-r.y)}}}function oE(a,n,s){let l=a.length,r,c,f,h,p,g=fu(a,0);for(let x=0;x<l-1;++x){if(p=g,g=fu(a,x+1),!p||!g)continue;if(mu(n[x],0,tE)){s[x]=s[x+1]=0;continue}if(r=s[x]/n[x],c=s[x+1]/n[x],h=Math.pow(r,2)+Math.pow(c,2),h<=9)continue;f=3/Math.sqrt(h),s[x]=r*f*n[x],s[x+1]=c*f*n[x]}}function nE(a,n,s="x"){let l=oI(s),r=a.length,c,f,h,p=fu(a,0);for(let g=0;g<r;++g){if(f=h,h=p,p=fu(a,g+1),!h)continue;let x=h[s],y=h[l];if(f)c=(x-f[s])/3,h[`cp1${s}`]=x-c,h[`cp1${l}`]=y-c*n[g];if(p)c=(p[s]-x)/3,h[`cp2${s}`]=x+c,h[`cp2${l}`]=y+c*n[g]}}function sE(a,n="x"){let s=oI(n),l=a.length,r=Array(l).fill(0),c=Array(l),f,h,p,g=fu(a,0);for(f=0;f<l;++f){if(h=p,p=g,g=fu(a,f+1),!p)continue;if(g){let x=g[n]-p[n];r[f]=x!==0?(g[s]-p[s])/x:0}c[f]=!h?r[f]:!g?r[f-1]:hn(r[f-1])!==hn(r[f])?0:(r[f-1]+r[f])/2}oE(a,r,c),nE(a,c,n)}function Cp(a,n,s){return Math.max(Math.min(a,s),n)}function iE(a,n){let s,l,r,c,f,h=Gn(a[0],n);for(s=0,l=a.length;s<l;++s){if(f=c,c=h,h=s<l-1&&Gn(a[s+1],n),!c)continue;if(r=a[s],f)r.cp1x=Cp(r.cp1x,n.left,n.right),r.cp1y=Cp(r.cp1y,n.top,n.bottom);if(h)r.cp2x=Cp(r.cp2x,n.left,n.right),r.cp2y=Cp(r.cp2y,n.top,n.bottom)}}function nI(a,n,s,l,r){let c,f,h,p;if(n.spanGaps)a=a.filter((g)=>!g.skip);if(n.cubicInterpolationMode==="monotone")sE(a,r);else{let g=l?a[a.length-1]:a[0];for(c=0,f=a.length;c<f;++c)h=a[c],p=aE(g,h,a[Math.min(c+1,f-(l?0:1))%f],n.tension),h.cp1x=p.previous.x,h.cp1y=p.previous.y,h.cp2x=p.next.x,h.cp2y=p.next.y,g=h}if(n.capBezierPoints)iE(a,s)}function Np(){return typeof window<"u"&&typeof document<"u"}function zp(a){let n=a.parentNode;if(n&&n.toString()==="[object ShadowRoot]")n=n.host;return n}function Ap(a,n,s){let l;if(typeof a==="string"){if(l=parseInt(a,10),a.indexOf("%")!==-1)l=l/100*n.parentNode[s]}else l=a;return l}var Up=(a)=>a.ownerDocument.defaultView.getComputedStyle(a,null);function lE(a,n){return Up(a).getPropertyValue(n)}var rE=["top","right","bottom","left"];function zl(a,n,s){let l={};s=s?"-"+s:"";for(let r=0;r<4;r++){let c=rE[r];l[c]=parseFloat(a[n+"-"+c+s])||0}return l.width=l.left+l.right,l.height=l.top+l.bottom,l}var uE=(a,n,s)=>(a>0||n>0)&&(!s||!s.shadowRoot);function cE(a,n){let s=a.touches,l=s&&s.length?s[0]:a,{offsetX:r,offsetY:c}=l,f=!1,h,p;if(uE(r,c,a.target))h=r,p=c;else{let g=n.getBoundingClientRect();h=l.clientX-g.left,p=l.clientY-g.top,f=!0}return{x:h,y:p,box:f}}function Bi(a,n){if("native"in a)return a;let{canvas:s,currentDevicePixelRatio:l}=n,r=Up(s),c=r.boxSizing==="border-box",f=zl(r,"padding"),h=zl(r,"border","width"),{x:p,y:g,box:x}=cE(a,s),y=f.left+(x&&h.left),S=f.top+(x&&h.top),{width:T,height:M}=n;if(c)T-=f.width+h.width,M-=f.height+h.height;return{x:Math.round((p-y)/T*s.width/l),y:Math.round((g-S)/M*s.height/l)}}function dE(a,n,s){let l,r;if(n===void 0||s===void 0){let c=a&&zp(a);if(!c)n=a.clientWidth,s=a.clientHeight;else{let f=c.getBoundingClientRect(),h=Up(c),p=zl(h,"border","width"),g=zl(h,"padding");n=f.width-g.width-p.width,s=f.height-g.height-p.height,l=Ap(h.maxWidth,c,"clientWidth"),r=Ap(h.maxHeight,c,"clientHeight")}}return{width:n,height:s,maxWidth:l||Ip,maxHeight:r||Ip}}var _i=(a)=>Math.round(a*10)/10;function sI(a,n,s,l){let r=Up(a),c=zl(r,"margin"),f=Ap(r.maxWidth,a,"clientWidth")||Ip,h=Ap(r.maxHeight,a,"clientHeight")||Ip,p=dE(a,n,s),{width:g,height:x}=p;if(r.boxSizing==="content-box"){let S=zl(r,"border","width"),T=zl(r,"padding");g-=T.width+S.width,x-=T.height+S.height}if(g=Math.max(0,g-c.width),x=Math.max(0,l?g/l:x-c.height),g=_i(Math.min(g,f,p.maxWidth)),x=_i(Math.min(x,h,p.maxHeight)),g&&!x)x=_i(g/2);if((n!==void 0||s!==void 0)&&l&&p.height&&x>p.height)x=p.height,g=_i(Math.floor(x*l));return{width:g,height:x}}function Ix(a,n,s){let l=n||1,r=_i(a.height*l),c=_i(a.width*l);a.height=_i(a.height),a.width=_i(a.width);let f=a.canvas;if(f.style&&(s||!f.style.height&&!f.style.width))f.style.height=`${a.height}px`,f.style.width=`${a.width}px`;if(a.currentDevicePixelRatio!==l||f.height!==r||f.width!==c)return a.currentDevicePixelRatio=l,f.height=r,f.width=c,a.ctx.setTransform(l,0,0,l,0,0),!0;return!1}var iI=function(){let a=!1;try{let n={get passive(){return a=!0,!1}};if(Np())window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}return a}();function Mx(a,n){let s=lE(a,n),l=s&&s.match(/^(\d+)(\.\d+)?px$/);return l?+l[1]:void 0}function ki(a,n,s,l){return{x:a.x+s*(n.x-a.x),y:a.y+s*(n.y-a.y)}}function lI(a,n,s,l){return{x:a.x+s*(n.x-a.x),y:l==="middle"?s<0.5?a.y:n.y:l==="after"?s<1?a.y:n.y:s>0?n.y:a.y}}function rI(a,n,s,l){let r={x:a.cp2x,y:a.cp2y},c={x:n.cp1x,y:n.cp1y},f=ki(a,r,s),h=ki(r,c,s),p=ki(c,n,s),g=ki(f,h,s),x=ki(h,p,s);return ki(g,x,s)}var fE=function(a,n){return{x(s){return a+a+n-s},setWidth(s){n=s},textAlign(s){if(s==="center")return s;return s==="right"?"left":"right"},xPlus(s,l){return s-l},leftForLtr(s,l){return s-l}}},hE=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,n){return a+n},leftForLtr(a,n){return a}}};function Fl(a,n,s){return a?fE(n,s):hE()}function Ax(a,n){let s,l;if(n==="ltr"||n==="rtl")s=a.canvas.style,l=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",n,"important"),a.prevTextDirection=l}function kx(a,n){if(n!==void 0)delete a.prevTextDirection,a.canvas.style.setProperty("direction",n[0],n[1])}function uI(a){if(a==="angle")return{between:fx,compare:R2,normalize:Ka};return{between:As,compare:(n,s)=>n-s,normalize:(n)=>n}}function kw({start:a,end:n,count:s,loop:l,style:r}){return{start:a%s,end:n%s,loop:l&&(n-a+1)%s===0,style:r}}function pE(a,n,s){let{property:l,start:r,end:c}=s,{between:f,normalize:h}=uI(l),p=n.length,{start:g,end:x,loop:y}=a,S,T;if(y){g+=p,x+=p;for(S=0,T=p;S<T;++S){if(!f(h(n[g%p][l]),r,c))break;g--,x--}g%=p,x%=p}if(x<g)x+=p;return{start:g,end:x,loop:y,style:a.style}}function Rx(a,n,s){if(!s)return[a];let{property:l,start:r,end:c}=s,f=n.length,{compare:h,between:p,normalize:g}=uI(l),{start:x,end:y,loop:S,style:T}=pE(a,n,s),M=[],k=!1,w=null,_,U,q,W=()=>p(r,q,_)&&h(r,q)!==0,Q=()=>h(c,_)===0||p(c,q,_),ne=()=>k||W(),J=()=>!k||Q();for(let K=x,re=x;K<=y;++K){if(U=n[K%f],U.skip)continue;if(_=g(U[l]),_===q)continue;if(k=p(_,r,c),w===null&&ne())w=h(_,r)===0?K:re;if(w!==null&&J())M.push(kw({start:w,end:K,loop:S,count:f,style:T})),w=null;re=K,q=_}if(w!==null)M.push(kw({start:w,end:y,loop:S,count:f,style:T}));return M}function _x(a,n){let s=[],l=a.segments;for(let r=0;r<l.length;r++){let c=Rx(l[r],a.points,n);if(c.length)s.push(...c)}return s}function mE(a,n,s,l){let r=0,c=n-1;if(s&&!l)while(r<n&&!a[r].skip)r++;while(r<n&&a[r].skip)r++;if(r%=n,s)c+=r;while(c>r&&a[c%n].skip)c--;return c%=n,{start:r,end:c}}function gE(a,n,s,l){let r=a.length,c=[],f=n,h=a[n],p;for(p=n+1;p<=s;++p){let g=a[p%r];if(g.skip||g.stop){if(!h.skip)l=!1,c.push({start:n%r,end:(p-1)%r,loop:l}),n=f=g.stop?p:null}else if(f=p,h.skip)n=p;h=g}if(f!==null)c.push({start:n%r,end:f%r,loop:l});return c}function cI(a,n){let s=a.points,l=a.options.spanGaps,r=s.length;if(!r)return[];let c=!!a._loop,{start:f,end:h}=mE(s,r,c,l);if(l===!0)return Rw(a,[{start:f,end:h,loop:c}],s,n);let p=h<f?h+r:h,g=!!a._fullLoop&&f===0&&h===r-1;return Rw(a,gE(s,f,p,g),s,n)}function Rw(a,n,s,l){if(!l||!l.setContext||!s)return n;return yE(a,n,s,l)}function yE(a,n,s,l){let r=a._chart.getContext(),c=_w(a.options),{_datasetIndex:f,options:{spanGaps:h}}=a,p=s.length,g=[],x=c,y=n[0].start,S=y;function T(M,k,w,_){let U=h?-1:1;if(M===k)return;M+=p;while(s[M%p].skip)M-=U;while(s[k%p].skip)k+=U;if(M%p!==k%p)g.push({start:M%p,end:k%p,loop:w,style:_}),x=_,y=k%p}for(let M of n){y=h?y:M.start;let k=s[y%p],w;for(S=y+1;S<=M.end;S++){let _=s[S%p];if(w=_w(l.setContext(ks(r,{type:"segment",p0:k,p1:_,p0DataIndex:(S-1)%p,p1DataIndex:S%p,datasetIndex:f}))),bE(w,x))T(y,S-1,M.loop,x);k=_,x=w}if(y<S-1)T(y,S-1,M.loop,x)}return g}function _w(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function bE(a,n){if(!n)return!1;let s=[],l=function(r,c){if(!yx(c))return c;if(!s.includes(c))s.push(c);return s.indexOf(c)};return JSON.stringify(a,l)!==JSON.stringify(n,l)}function Tp(a,n,s){return a.options.clip?a[s]:n[s]}function xE(a,n){let{xScale:s,yScale:l}=a;if(s&&l)return{left:Tp(s,n,"left"),right:Tp(s,n,"right"),top:Tp(l,n,"top"),bottom:Tp(l,n,"bottom")};return n}function Dx(a,n){let s=n._clip;if(s.disabled)return!1;let l=xE(n,a.chartArea);return{left:s.left===!1?0:l.left-(s.left===!0?0:s.left),right:s.right===!1?a.width:l.right+(s.right===!0?0:s.right),top:s.top===!1?0:l.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?a.height:l.bottom+(s.bottom===!0?0:s.bottom)}}/*!
250
+ */function os(){}var uk=(()=>{let a=0;return()=>a++})();function ht(a){return a===null||a===void 0}function zt(a){if(Array.isArray&&Array.isArray(a))return!0;let n=Object.prototype.toString.call(a);if(n.slice(0,7)==="[object"&&n.slice(-6)==="Array]")return!0;return!1}function it(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function Kt(a){return(typeof a==="number"||a instanceof Number)&&isFinite(+a)}function go(a,n){return Kt(a)?a:n}function Ke(a,n){return typeof a>"u"?n:a}var ck=(a,n)=>typeof a==="string"&&a.endsWith("%")?parseFloat(a)/100*n:+a;function Ot(a,n,s){if(a&&typeof a.call==="function")return a.apply(s,n)}function Lt(a,n,s,i){let l,u,d;if(zt(a))if(u=a.length,i)for(l=u-1;l>=0;l--)n.call(s,a[l],l);else for(l=0;l<u;l++)n.call(s,a[l],l);else if(it(a)){d=Object.keys(a),u=d.length;for(l=0;l<u;l++)n.call(s,a[d[l]],d[l])}}function Od(a,n){let s,i,l,u;if(!a||!n||a.length!==n.length)return!1;for(s=0,i=a.length;s<i;++s)if(l=a[s],u=n[s],l.datasetIndex!==u.datasetIndex||l.index!==u.index)return!1;return!0}function Qh(a){if(zt(a))return a.map(Qh);if(it(a)){let n=Object.create(null),s=Object.keys(a),i=s.length,l=0;for(;l<i;++l)n[s[l]]=Qh(a[s[l]]);return n}return a}function dk(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function vE(a,n,s,i){if(!dk(a))return;let l=n[a],u=s[a];if(it(l)&&it(u))Du(l,u,i);else n[a]=Qh(u)}function Du(a,n,s){let i=zt(n)?n:[n],l=i.length;if(!it(a))return a;s=s||{};let u=s.merger||vE,d;for(let p=0;p<l;++p){if(d=i[p],!it(d))continue;let h=Object.keys(d);for(let g=0,b=h.length;g<b;++g)u(h[g],a,d,s)}return a}function Ou(a,n){return Du(a,n,{merger:SE})}function SE(a,n,s){if(!dk(a))return;let i=n[a],l=s[a];if(it(i)&&it(l))Ou(i,l);else if(!Object.prototype.hasOwnProperty.call(n,a))n[a]=Qh(l)}var Jw={"":(a)=>a,x:(a)=>a.x,y:(a)=>a.y};function LE(a){let n=a.split("."),s=[],i="";for(let l of n)if(i+=l,i.endsWith("\\"))i=i.slice(0,-1)+".";else s.push(i),i="";return s}function CE(a){let n=LE(a);return(s)=>{for(let i of n){if(i==="")break;s=s&&s[i]}return s}}function rl(a,n){return(Jw[n]||(Jw[n]=CE(n)))(a)}function tm(a){return a.charAt(0).toUpperCase()+a.slice(1)}var Pu=(a)=>typeof a<"u",Hs=(a)=>typeof a==="function",Bx=(a,n)=>{if(a.size!==n.size)return!1;for(let s of a)if(!n.has(s))return!1;return!0};function fk(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}var na=Math.PI,ho=2*na,TE=ho+na,Kh=Number.POSITIVE_INFINITY,wE=na/180,po=na/2,ol=na/4,ek=na*2/3,Us=Math.log10,Ln=Math.sign;function Bu(a,n,s){return Math.abs(a-n)<s}function Nx(a){let n=Math.round(a);a=Bu(a,n,a/1000)?n:a;let s=Math.pow(10,Math.floor(Us(a))),i=a/s;return(i<=1?1:i<=2?2:i<=5?5:10)*s}function pk(a){let n=[],s=Math.sqrt(a),i;for(i=1;i<s;i++)if(a%i===0)n.push(i),n.push(a/i);if(s===(s|0))n.push(s);return n.sort((l,u)=>l-u).pop(),n}function kE(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function Nu(a){return!kE(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function hk(a,n){let s=Math.round(a);return s-n<=a&&s+n>=a}function zx(a,n,s){let i,l,u;for(i=0,l=a.length;i<l;i++)if(u=a[i][s],!isNaN(u))n.min=Math.min(n.min,u),n.max=Math.max(n.max,u)}function Fs(a){return a*(na/180)}function am(a){return a*(180/na)}function Hx(a){if(!Kt(a))return;let n=1,s=0;while(Math.round(a*n)/n!==a)n*=10,s++;return s}function mk(a,n){let s=n.x-a.x,i=n.y-a.y,l=Math.sqrt(s*s+i*i),u=Math.atan2(i,s);if(u<-0.5*na)u+=ho;return{angle:u,distance:l}}function Jh(a,n){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))}function ME(a,n){return(a-n+TE)%ho-na}function fo(a){return(a%ho+ho)%ho}function Ux(a,n,s,i){let l=fo(a),u=fo(n),d=fo(s),p=fo(u-l),h=fo(d-l),g=fo(l-u),b=fo(l-d);return l===u||l===d||i&&u===d||p>h&&g<b}function mo(a,n,s){return Math.max(n,Math.min(s,a))}function gk(a){return mo(a,-32768,32767)}function qs(a,n,s,i=0.000001){return a>=Math.min(n,s)-i&&a<=Math.max(n,s)+i}function om(a,n,s){s=s||((d)=>a[d]<n);let i=a.length-1,l=0,u;while(i-l>1)if(u=l+i>>1,s(u))l=u;else i=u;return{lo:l,hi:i}}var Zr=(a,n,s,i)=>om(a,s,i?(l)=>{let u=a[l][n];return u<s||u===s&&a[l+1][n]===s}:(l)=>a[l][n]<s),yk=(a,n,s)=>om(a,s,(i)=>a[i][n]>=s);function bk(a,n,s){let i=0,l=a.length;while(i<l&&a[i]<n)i++;while(l>i&&a[l-1]>s)l--;return i>0||l<a.length?a.slice(i,l):a}var xk=["push","pop","shift","splice","unshift"];function vk(a,n){if(a._chartjs){a._chartjs.listeners.push(n);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),xk.forEach((s)=>{let i="_onData"+tm(s),l=a[s];Object.defineProperty(a,s,{configurable:!0,enumerable:!1,value(...u){let d=l.apply(this,u);return a._chartjs.listeners.forEach((p)=>{if(typeof p[i]==="function")p[i](...u)}),d}})})}function Fx(a,n){let s=a._chartjs;if(!s)return;let i=s.listeners,l=i.indexOf(n);if(l!==-1)i.splice(l,1);if(i.length>0)return;xk.forEach((u)=>{delete a[u]}),delete a._chartjs}function qx(a){let n=new Set(a);if(n.size===a.length)return a;return Array.from(n)}var Vx=function(){if(typeof window>"u")return function(a){return a()};return window.requestAnimationFrame}();function jx(a,n){let s=[],i=!1;return function(...l){if(s=l,!i)i=!0,Vx.call(window,()=>{i=!1,a.apply(n,s)})}}function Sk(a,n){let s;return function(...i){if(n)clearTimeout(s),s=setTimeout(a,n,i);else a.apply(this,i);return n}}var nm=(a)=>a==="start"?"left":a==="end"?"right":"center",Ba=(a,n,s)=>a==="start"?n:a==="end"?s:(n+s)/2,Lk=(a,n,s,i)=>a===(i?"left":"right")?s:a==="center"?(n+s)/2:n;function Ck(a,n,s){let i=n.length,l=0,u=i;if(a._sorted){let{iScale:d,vScale:p,_parsed:h}=a,g=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null,b=d.axis,{min:y,max:v,minDefined:T,maxDefined:M}=d.getUserBounds();if(T){if(l=Math.min(Zr(h,b,y).lo,s?i:Zr(n,b,d.getPixelForValue(y)).lo),g){let I=h.slice(0,l+1).reverse().findIndex((w)=>!ht(w[p.axis]));l-=Math.max(0,I)}l=mo(l,0,i-1)}if(M){let I=Math.max(Zr(h,d.axis,v,!0).hi+1,s?0:Zr(n,b,d.getPixelForValue(v),!0).hi+1);if(g){let w=h.slice(I-1).findIndex((A)=>!ht(A[p.axis]));I+=Math.max(0,w)}u=mo(I,l,i)-l}else u=i-l}return{start:l,count:u}}function Tk(a){let{xScale:n,yScale:s,_scaleRanges:i}=a,l={xmin:n.min,xmax:n.max,ymin:s.min,ymax:s.max};if(!i)return a._scaleRanges=l,!0;let u=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==s.min||i.ymax!==s.max;return Object.assign(i,l),u}var $h=(a)=>a===0||a===1,tk=(a,n,s)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-n)*ho/s)),ak=(a,n,s)=>Math.pow(2,-10*a)*Math.sin((a-n)*ho/s)+1,_u={linear:(a)=>a,easeInQuad:(a)=>a*a,easeOutQuad:(a)=>-a*(a-2),easeInOutQuad:(a)=>(a/=0.5)<1?0.5*a*a:-0.5*(--a*(a-2)-1),easeInCubic:(a)=>a*a*a,easeOutCubic:(a)=>(a-=1)*a*a+1,easeInOutCubic:(a)=>(a/=0.5)<1?0.5*a*a*a:0.5*((a-=2)*a*a+2),easeInQuart:(a)=>a*a*a*a,easeOutQuart:(a)=>-((a-=1)*a*a*a-1),easeInOutQuart:(a)=>(a/=0.5)<1?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2),easeInQuint:(a)=>a*a*a*a*a,easeOutQuint:(a)=>(a-=1)*a*a*a*a+1,easeInOutQuint:(a)=>(a/=0.5)<1?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2),easeInSine:(a)=>-Math.cos(a*po)+1,easeOutSine:(a)=>Math.sin(a*po),easeInOutSine:(a)=>-0.5*(Math.cos(na*a)-1),easeInExpo:(a)=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:(a)=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:(a)=>$h(a)?a:a<0.5?0.5*Math.pow(2,10*(a*2-1)):0.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:(a)=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:(a)=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:(a)=>(a/=0.5)<1?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:(a)=>$h(a)?a:tk(a,0.075,0.3),easeOutElastic:(a)=>$h(a)?a:ak(a,0.075,0.3),easeInOutElastic(a){return $h(a)?a:a<0.5?0.5*tk(a*2,0.1125,0.45):0.5+0.5*ak(a*2-1,0.1125,0.45)},easeInBack(a){return a*a*(2.70158*a-1.70158)},easeOutBack(a){return(a-=1)*a*(2.70158*a+1.70158)+1},easeInOutBack(a){let n=1.70158;if((a/=0.5)<1)return 0.5*(a*a*(((n*=1.525)+1)*a-n));return 0.5*((a-=2)*a*(((n*=1.525)+1)*a+n)+2)},easeInBounce:(a)=>1-_u.easeOutBounce(1-a),easeOutBounce(a){if(a<0.36363636363636365)return 7.5625*a*a;if(a<0.7272727272727273)return 7.5625*(a-=0.5454545454545454)*a+0.75;if(a<0.9090909090909091)return 7.5625*(a-=0.8181818181818182)*a+0.9375;return 7.5625*(a-=0.9545454545454546)*a+0.984375},easeInOutBounce:(a)=>a<0.5?_u.easeInBounce(a*2)*0.5:_u.easeOutBounce(a*2-1)*0.5+0.5};function Gx(a){if(a&&typeof a==="object"){let n=a.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function Xx(a){return Gx(a)?a:new Ru(a)}function Ox(a){return Gx(a)?a:new Ru(a).saturate(0.5).darken(0.1).hexString()}var IE=["x","y","borderWidth","radius","tension"],AE=["color","borderColor","backgroundColor"];function RE(a){a.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(n)=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),a.set("animations",{colors:{type:"color",properties:AE},numbers:{type:"number",properties:IE}}),a.describe("animations",{_fallback:"animation"}),a.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(n)=>n|0}}}})}function _E(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var ok=new Map;function DE(a,n){n=n||{};let s=a+JSON.stringify(n),i=ok.get(s);if(!i)i=new Intl.NumberFormat(a,n),ok.set(s,i);return i}function sm(a,n,s){return DE(n,s).format(a)}var wk={values(a){return zt(a)?a:""+a},numeric(a,n,s){if(a===0)return"0";let i=this.chart.options.locale,l,u=a;if(s.length>1){let g=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));if(g<0.0001||g>1000000000000000)l="scientific";u=EE(a,s)}let d=Us(Math.abs(u)),p=isNaN(d)?1:Math.max(Math.min(-1*Math.floor(d),20),0),h={notation:l,minimumFractionDigits:p,maximumFractionDigits:p};return Object.assign(h,this.options.ticks.format),sm(a,i,h)},logarithmic(a,n,s){if(a===0)return"0";let i=s[n].significand||a/Math.pow(10,Math.floor(Us(a)));if([1,2,3,5,10,15].includes(i)||n>0.8*s.length)return wk.numeric.call(this,a,n,s);return""}};function EE(a,n){let s=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;if(Math.abs(s)>=1&&a!==Math.floor(a))s=a-Math.floor(a);return s}var Pd={formatters:wk};function OE(a){a.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,s)=>s.lineWidth,tickColor:(n,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Pd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:(n)=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:(n)=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:(n)=>n!=="backdropPadding"&&n!=="callback",_indexable:(n)=>n!=="backdropPadding"})}var Kr=Object.create(null),rm=Object.create(null);function Dd(a,n){if(!n)return a;let s=n.split(".");for(let i=0,l=s.length;i<l;++i){let u=s[i];a=a[u]||(a[u]=Object.create(null))}return a}function Px(a,n,s){if(typeof n==="string")return Du(Dd(a,n),s);return Du(Dd(a,""),n)}class kk{constructor(a,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(s)=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,i)=>Ox(i.backgroundColor),this.hoverBorderColor=(s,i)=>Ox(i.borderColor),this.hoverColor=(s,i)=>Ox(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(a),this.apply(n)}set(a,n){return Px(this,a,n)}get(a){return Dd(this,a)}describe(a,n){return Px(rm,a,n)}override(a,n){return Px(Kr,a,n)}route(a,n,s,i){let l=Dd(this,a),u=Dd(this,s),d="_"+n;Object.defineProperties(l,{[d]:{value:l[n],writable:!0},[n]:{enumerable:!0,get(){let p=this[d],h=u[i];if(it(p))return Object.assign({},h,p);return Ke(p,h)},set(p){this[d]=p}}})}apply(a){a.forEach((n)=>n(this))}}var Jt=new kk({_scriptable:(a)=>!a.startsWith("on"),_indexable:(a)=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[RE,_E,OE]);function PE(a){if(!a||ht(a.size)||ht(a.family))return null;return(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function Ed(a,n,s,i,l){let u=n[l];if(!u)u=n[l]=a.measureText(l).width,s.push(l);if(u>i)i=u;return i}function Mk(a,n,s,i){i=i||{};let l=i.data=i.data||{},u=i.garbageCollect=i.garbageCollect||[];if(i.font!==n)l=i.data={},u=i.garbageCollect=[],i.font=n;a.save(),a.font=n;let d=0,p=s.length,h,g,b,y,v;for(h=0;h<p;h++)if(y=s[h],y!==void 0&&y!==null&&!zt(y))d=Ed(a,l,u,d,y);else if(zt(y)){for(g=0,b=y.length;g<b;g++)if(v=y[g],v!==void 0&&v!==null&&!zt(v))d=Ed(a,l,u,d,v)}a.restore();let T=u.length/2;if(T>s.length){for(h=0;h<T;h++)delete l[u[h]];u.splice(0,T)}return d}function Jr(a,n,s){let i=a.currentDevicePixelRatio,l=s!==0?Math.max(s/2,0.5):0;return Math.round((n-l)*i)/i+l}function Yx(a,n){if(!n&&!a)return;n=n||a.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,a.width,a.height),n.restore()}function im(a,n,s,i){$x(a,n,s,i,null)}function $x(a,n,s,i,l){let u,d,p,h,g,b,y,v,T=n.pointStyle,M=n.rotation,I=n.radius,w=(M||0)*wE;if(T&&typeof T==="object"){if(u=T.toString(),u==="[object HTMLImageElement]"||u==="[object HTMLCanvasElement]"){a.save(),a.translate(s,i),a.rotate(w),a.drawImage(T,-T.width/2,-T.height/2,T.width,T.height),a.restore();return}}if(isNaN(I)||I<=0)return;switch(a.beginPath(),T){default:if(l)a.ellipse(s,i,l/2,I,0,0,ho);else a.arc(s,i,I,0,ho);a.closePath();break;case"triangle":b=l?l/2:I,a.moveTo(s+Math.sin(w)*b,i-Math.cos(w)*I),w+=ek,a.lineTo(s+Math.sin(w)*b,i-Math.cos(w)*I),w+=ek,a.lineTo(s+Math.sin(w)*b,i-Math.cos(w)*I),a.closePath();break;case"rectRounded":g=I*0.516,h=I-g,d=Math.cos(w+ol)*h,y=Math.cos(w+ol)*(l?l/2-g:h),p=Math.sin(w+ol)*h,v=Math.sin(w+ol)*(l?l/2-g:h),a.arc(s-y,i-p,g,w-na,w-po),a.arc(s+v,i-d,g,w-po,w),a.arc(s+y,i+p,g,w,w+po),a.arc(s-v,i+d,g,w+po,w+na),a.closePath();break;case"rect":if(!M){h=Math.SQRT1_2*I,b=l?l/2:h,a.rect(s-b,i-h,2*b,2*h);break}w+=ol;case"rectRot":y=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-y,i-p),a.lineTo(s+v,i-d),a.lineTo(s+y,i+p),a.lineTo(s-v,i+d),a.closePath();break;case"crossRot":w+=ol;case"cross":y=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-y,i-p),a.lineTo(s+y,i+p),a.moveTo(s+v,i-d),a.lineTo(s-v,i+d);break;case"star":y=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-y,i-p),a.lineTo(s+y,i+p),a.moveTo(s+v,i-d),a.lineTo(s-v,i+d),w+=ol,y=Math.cos(w)*(l?l/2:I),d=Math.cos(w)*I,p=Math.sin(w)*I,v=Math.sin(w)*(l?l/2:I),a.moveTo(s-y,i-p),a.lineTo(s+y,i+p),a.moveTo(s+v,i-d),a.lineTo(s-v,i+d);break;case"line":d=l?l/2:Math.cos(w)*I,p=Math.sin(w)*I,a.moveTo(s-d,i-p),a.lineTo(s+d,i+p);break;case"dash":a.moveTo(s,i),a.lineTo(s+Math.cos(w)*(l?l/2:I),i+Math.sin(w)*I);break;case!1:a.closePath();break}if(a.fill(),n.borderWidth>0)a.stroke()}function as(a,n,s){return s=s||0.5,!n||a&&a.x>n.left-s&&a.x<n.right+s&&a.y>n.top-s&&a.y<n.bottom+s}function Bd(a,n){a.save(),a.beginPath(),a.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),a.clip()}function Nd(a){a.restore()}function Ik(a,n,s,i,l){if(!n)return a.lineTo(s.x,s.y);if(l==="middle"){let u=(n.x+s.x)/2;a.lineTo(u,n.y),a.lineTo(u,s.y)}else if(l==="after"!==!!i)a.lineTo(n.x,s.y);else a.lineTo(s.x,n.y);a.lineTo(s.x,s.y)}function Ak(a,n,s,i){if(!n)return a.lineTo(s.x,s.y);a.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?s.cp2x:s.cp1x,i?s.cp2y:s.cp1y,s.x,s.y)}function BE(a,n){if(n.translation)a.translate(n.translation[0],n.translation[1]);if(!ht(n.rotation))a.rotate(n.rotation);if(n.color)a.fillStyle=n.color;if(n.textAlign)a.textAlign=n.textAlign;if(n.textBaseline)a.textBaseline=n.textBaseline}function NE(a,n,s,i,l){if(l.strikethrough||l.underline){let u=a.measureText(i),d=n-u.actualBoundingBoxLeft,p=n+u.actualBoundingBoxRight,h=s-u.actualBoundingBoxAscent,g=s+u.actualBoundingBoxDescent,b=l.strikethrough?(h+g)/2:g;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=l.decorationWidth||2,a.moveTo(d,b),a.lineTo(p,b),a.stroke()}}function zE(a,n){let s=a.fillStyle;a.fillStyle=n.color,a.fillRect(n.left,n.top,n.width,n.height),a.fillStyle=s}function ei(a,n,s,i,l,u={}){let d=zt(n)?n:[n],p=u.strokeWidth>0&&u.strokeColor!=="",h,g;a.save(),a.font=l.string,BE(a,u);for(h=0;h<d.length;++h){if(g=d[h],u.backdrop)zE(a,u.backdrop);if(p){if(u.strokeColor)a.strokeStyle=u.strokeColor;if(!ht(u.strokeWidth))a.lineWidth=u.strokeWidth;a.strokeText(g,s,i,u.maxWidth)}a.fillText(g,s,i,u.maxWidth),NE(a,s,i,g,u),i+=Number(l.lineHeight)}a.restore()}function zu(a,n){let{x:s,y:i,w:l,h:u,radius:d}=n;a.arc(s+d.topLeft,i+d.topLeft,d.topLeft,1.5*na,na,!0),a.lineTo(s,i+u-d.bottomLeft),a.arc(s+d.bottomLeft,i+u-d.bottomLeft,d.bottomLeft,na,po,!0),a.lineTo(s+l-d.bottomRight,i+u),a.arc(s+l-d.bottomRight,i+u-d.bottomRight,d.bottomRight,po,0,!0),a.lineTo(s+l,i+d.topRight),a.arc(s+l-d.topRight,i+d.topRight,d.topRight,0,-po,!0),a.lineTo(s+d.topLeft,i)}var HE=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,UE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function FE(a,n){let s=(""+a).match(HE);if(!s||s[1]==="normal")return n*1.2;switch(a=+s[2],s[3]){case"px":return a;case"%":a/=100;break}return n*a}var qE=(a)=>+a||0;function Wx(a,n){let s={},i=it(n),l=i?Object.keys(n):n,u=it(a)?i?(d)=>Ke(a[d],a[n[d]]):(d)=>a[d]:()=>a;for(let d of l)s[d]=qE(u(d));return s}function Zx(a){return Wx(a,{top:"y",right:"x",bottom:"y",left:"x"})}function ti(a){return Wx(a,["topLeft","topRight","bottomLeft","bottomRight"])}function Na(a){let n=Zx(a);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pa(a,n){a=a||{},n=n||Jt.font;let s=Ke(a.size,n.size);if(typeof s==="string")s=parseInt(s,10);let i=Ke(a.style,n.style);if(i&&!(""+i).match(UE))console.warn('Invalid font style specified: "'+i+'"'),i=void 0;let l={family:Ke(a.family,n.family),lineHeight:FE(Ke(a.lineHeight,n.lineHeight),s),size:s,style:i,weight:Ke(a.weight,n.weight),string:""};return l.string=PE(l),l}function zd(a,n,s,i){let l=!0,u,d,p;for(u=0,d=a.length;u<d;++u){if(p=a[u],p===void 0)continue;if(n!==void 0&&typeof p==="function")p=p(n),l=!1;if(s!==void 0&&zt(p))p=p[s%p.length],l=!1;if(p!==void 0){if(i&&!l)i.cacheable=!1;return p}}}function Rk(a,n,s){let{min:i,max:l}=a,u=ck(n,(l-i)/2),d=(p,h)=>s&&p===0?0:p+h;return{min:d(i,-Math.abs(u)),max:d(l,u)}}function Vs(a,n){return Object.assign(Object.create(a),n)}function lm(a,n=[""],s,i,l=()=>a[0]){let u=s||a;if(typeof i>"u")i=Ek("_fallback",a);let d={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:u,_fallback:i,_getTarget:l,override:(p)=>lm([p,...a],n,u,i)};return new Proxy(d,{deleteProperty(p,h){return delete p[h],delete p._keys,delete a[0][h],!0},get(p,h){return _k(p,h,()=>ZE(h,n,a,p))},getOwnPropertyDescriptor(p,h){return Reflect.getOwnPropertyDescriptor(p._scopes[0],h)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(p,h){return sk(p).includes(h)},ownKeys(p){return sk(p)},set(p,h,g){let b=p._storage||(p._storage=l());return p[h]=b[h]=g,delete p._keys,!0}})}function sl(a,n,s,i){let l={_cacheable:!1,_proxy:a,_context:n,_subProxy:s,_stack:new Set,_descriptors:Qx(a,i),setContext:(u)=>sl(a,u,s,i),override:(u)=>sl(a.override(u),n,s,i)};return new Proxy(l,{deleteProperty(u,d){return delete u[d],delete a[d],!0},get(u,d,p){return _k(u,d,()=>jE(u,d,p))},getOwnPropertyDescriptor(u,d){return u._descriptors.allKeys?Reflect.has(a,d)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,d)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(u,d){return Reflect.has(a,d)},ownKeys(){return Reflect.ownKeys(a)},set(u,d,p){return a[d]=p,delete u[d],!0}})}function Qx(a,n={scriptable:!0,indexable:!0}){let{_scriptable:s=n.scriptable,_indexable:i=n.indexable,_allKeys:l=n.allKeys}=a;return{allKeys:l,scriptable:s,indexable:i,isScriptable:Hs(s)?s:()=>s,isIndexable:Hs(i)?i:()=>i}}var VE=(a,n)=>a?a+tm(n):n,Kx=(a,n)=>it(n)&&a!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function _k(a,n,s){if(Object.prototype.hasOwnProperty.call(a,n)||n==="constructor")return a[n];let i=s();return a[n]=i,i}function jE(a,n,s){let{_proxy:i,_context:l,_subProxy:u,_descriptors:d}=a,p=i[n];if(Hs(p)&&d.isScriptable(n))p=GE(n,p,a,s);if(zt(p)&&p.length)p=XE(n,p,a,d.isIndexable);if(Kx(n,p))p=sl(p,l,u&&u[n],d);return p}function GE(a,n,s,i){let{_proxy:l,_context:u,_subProxy:d,_stack:p}=s;if(p.has(a))throw Error("Recursion detected: "+Array.from(p).join("->")+"->"+a);p.add(a);let h=n(u,d||i);if(p.delete(a),Kx(a,h))h=Jx(l._scopes,l,a,h);return h}function XE(a,n,s,i){let{_proxy:l,_context:u,_subProxy:d,_descriptors:p}=s;if(typeof u.index<"u"&&i(a))return n[u.index%n.length];else if(it(n[0])){let h=n,g=l._scopes.filter((b)=>b!==h);n=[];for(let b of h){let y=Jx(g,l,a,b);n.push(sl(y,u,d&&d[a],p))}}return n}function Dk(a,n,s){return Hs(a)?a(n,s):a}var YE=(a,n)=>a===!0?n:typeof a==="string"?rl(n,a):void 0;function $E(a,n,s,i,l){for(let u of n){let d=YE(s,u);if(d){a.add(d);let p=Dk(d._fallback,s,l);if(typeof p<"u"&&p!==s&&p!==i)return p}else if(d===!1&&typeof i<"u"&&s!==i)return null}return!1}function Jx(a,n,s,i){let l=n._rootScopes,u=Dk(n._fallback,s,i),d=[...a,...l],p=new Set;p.add(i);let h=nk(p,d,s,u||s,i);if(h===null)return!1;if(typeof u<"u"&&u!==s){if(h=nk(p,d,u,h,i),h===null)return!1}return lm(Array.from(p),[""],l,u,()=>WE(n,s,i))}function nk(a,n,s,i,l){while(s)s=$E(a,n,s,i,l);return s}function WE(a,n,s){let i=a._getTarget();if(!(n in i))i[n]={};let l=i[n];if(zt(l)&&it(s))return s;return l||{}}function ZE(a,n,s,i){let l;for(let u of n)if(l=Ek(VE(u,a),s),typeof l<"u")return Kx(a,l)?Jx(s,i,a,l):l}function Ek(a,n){for(let s of n){if(!s)continue;let i=s[a];if(typeof i<"u")return i}}function sk(a){let n=a._keys;if(!n)n=a._keys=QE(a._scopes);return n}function QE(a){let n=new Set;for(let s of a)for(let i of Object.keys(s).filter((l)=>!l.startsWith("_")))n.add(i);return Array.from(n)}var KE=Number.EPSILON||0.00000000000001,Eu=(a,n)=>n<a.length&&!a[n].skip&&a[n],Ok=(a)=>a==="x"?"y":"x";function JE(a,n,s,i){let l=a.skip?n:a,u=n,d=s.skip?n:s,p=Jh(u,l),h=Jh(d,u),g=p/(p+h),b=h/(p+h);g=isNaN(g)?0:g,b=isNaN(b)?0:b;let y=i*g,v=i*b;return{previous:{x:u.x-y*(d.x-l.x),y:u.y-y*(d.y-l.y)},next:{x:u.x+v*(d.x-l.x),y:u.y+v*(d.y-l.y)}}}function eO(a,n,s){let i=a.length,l,u,d,p,h,g=Eu(a,0);for(let b=0;b<i-1;++b){if(h=g,g=Eu(a,b+1),!h||!g)continue;if(Bu(n[b],0,KE)){s[b]=s[b+1]=0;continue}if(l=s[b]/n[b],u=s[b+1]/n[b],p=Math.pow(l,2)+Math.pow(u,2),p<=9)continue;d=3/Math.sqrt(p),s[b]=l*d*n[b],s[b+1]=u*d*n[b]}}function tO(a,n,s="x"){let i=Ok(s),l=a.length,u,d,p,h=Eu(a,0);for(let g=0;g<l;++g){if(d=p,p=h,h=Eu(a,g+1),!p)continue;let b=p[s],y=p[i];if(d)u=(b-d[s])/3,p[`cp1${s}`]=b-u,p[`cp1${i}`]=y-u*n[g];if(h)u=(h[s]-b)/3,p[`cp2${s}`]=b+u,p[`cp2${i}`]=y+u*n[g]}}function aO(a,n="x"){let s=Ok(n),i=a.length,l=Array(i).fill(0),u=Array(i),d,p,h,g=Eu(a,0);for(d=0;d<i;++d){if(p=h,h=g,g=Eu(a,d+1),!h)continue;if(g){let b=g[n]-h[n];l[d]=b!==0?(g[s]-h[s])/b:0}u[d]=!p?l[d]:!g?l[d-1]:Ln(l[d-1])!==Ln(l[d])?0:(l[d-1]+l[d])/2}eO(a,l,u),tO(a,u,n)}function Wh(a,n,s){return Math.max(Math.min(a,s),n)}function oO(a,n){let s,i,l,u,d,p=as(a[0],n);for(s=0,i=a.length;s<i;++s){if(d=u,u=p,p=s<i-1&&as(a[s+1],n),!u)continue;if(l=a[s],d)l.cp1x=Wh(l.cp1x,n.left,n.right),l.cp1y=Wh(l.cp1y,n.top,n.bottom);if(p)l.cp2x=Wh(l.cp2x,n.left,n.right),l.cp2y=Wh(l.cp2y,n.top,n.bottom)}}function Pk(a,n,s,i,l){let u,d,p,h;if(n.spanGaps)a=a.filter((g)=>!g.skip);if(n.cubicInterpolationMode==="monotone")aO(a,l);else{let g=i?a[a.length-1]:a[0];for(u=0,d=a.length;u<d;++u)p=a[u],h=JE(g,p,a[Math.min(u+1,d-(i?0:1))%d],n.tension),p.cp1x=h.previous.x,p.cp1y=h.previous.y,p.cp2x=h.next.x,p.cp2y=h.next.y,g=p}if(n.capBezierPoints)oO(a,s)}function um(){return typeof window<"u"&&typeof document<"u"}function cm(a){let n=a.parentNode;if(n&&n.toString()==="[object ShadowRoot]")n=n.host;return n}function em(a,n,s){let i;if(typeof a==="string"){if(i=parseInt(a,10),a.indexOf("%")!==-1)i=i/100*n.parentNode[s]}else i=a;return i}var dm=(a)=>a.ownerDocument.defaultView.getComputedStyle(a,null);function nO(a,n){return dm(a).getPropertyValue(n)}var sO=["top","right","bottom","left"];function nl(a,n,s){let i={};s=s?"-"+s:"";for(let l=0;l<4;l++){let u=sO[l];i[u]=parseFloat(a[n+"-"+u+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var rO=(a,n,s)=>(a>0||n>0)&&(!s||!s.shadowRoot);function iO(a,n){let s=a.touches,i=s&&s.length?s[0]:a,{offsetX:l,offsetY:u}=i,d=!1,p,h;if(rO(l,u,a.target))p=l,h=u;else{let g=n.getBoundingClientRect();p=i.clientX-g.left,h=i.clientY-g.top,d=!0}return{x:p,y:h,box:d}}function ai(a,n){if("native"in a)return a;let{canvas:s,currentDevicePixelRatio:i}=n,l=dm(s),u=l.boxSizing==="border-box",d=nl(l,"padding"),p=nl(l,"border","width"),{x:h,y:g,box:b}=iO(a,s),y=d.left+(b&&p.left),v=d.top+(b&&p.top),{width:T,height:M}=n;if(u)T-=d.width+p.width,M-=d.height+p.height;return{x:Math.round((h-y)/T*s.width/i),y:Math.round((g-v)/M*s.height/i)}}function lO(a,n,s){let i,l;if(n===void 0||s===void 0){let u=a&&cm(a);if(!u)n=a.clientWidth,s=a.clientHeight;else{let d=u.getBoundingClientRect(),p=dm(u),h=nl(p,"border","width"),g=nl(p,"padding");n=d.width-g.width-h.width,s=d.height-g.height-h.height,i=em(p.maxWidth,u,"clientWidth"),l=em(p.maxHeight,u,"clientHeight")}}return{width:n,height:s,maxWidth:i||Kh,maxHeight:l||Kh}}var Qr=(a)=>Math.round(a*10)/10;function Bk(a,n,s,i){let l=dm(a),u=nl(l,"margin"),d=em(l.maxWidth,a,"clientWidth")||Kh,p=em(l.maxHeight,a,"clientHeight")||Kh,h=lO(a,n,s),{width:g,height:b}=h;if(l.boxSizing==="content-box"){let v=nl(l,"border","width"),T=nl(l,"padding");g-=T.width+v.width,b-=T.height+v.height}if(g=Math.max(0,g-u.width),b=Math.max(0,i?g/i:b-u.height),g=Qr(Math.min(g,d,h.maxWidth)),b=Qr(Math.min(b,p,h.maxHeight)),g&&!b)b=Qr(g/2);if((n!==void 0||s!==void 0)&&i&&h.height&&b>h.height)b=h.height,g=Qr(Math.floor(b*i));return{width:g,height:b}}function ev(a,n,s){let i=n||1,l=Qr(a.height*i),u=Qr(a.width*i);a.height=Qr(a.height),a.width=Qr(a.width);let d=a.canvas;if(d.style&&(s||!d.style.height&&!d.style.width))d.style.height=`${a.height}px`,d.style.width=`${a.width}px`;if(a.currentDevicePixelRatio!==i||d.height!==l||d.width!==u)return a.currentDevicePixelRatio=i,d.height=l,d.width=u,a.ctx.setTransform(i,0,0,i,0,0),!0;return!1}var Nk=function(){let a=!1;try{let n={get passive(){return a=!0,!1}};if(um())window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}return a}();function tv(a,n){let s=nO(a,n),i=s&&s.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Wr(a,n,s,i){return{x:a.x+s*(n.x-a.x),y:a.y+s*(n.y-a.y)}}function zk(a,n,s,i){return{x:a.x+s*(n.x-a.x),y:i==="middle"?s<0.5?a.y:n.y:i==="after"?s<1?a.y:n.y:s>0?n.y:a.y}}function Hk(a,n,s,i){let l={x:a.cp2x,y:a.cp2y},u={x:n.cp1x,y:n.cp1y},d=Wr(a,l,s),p=Wr(l,u,s),h=Wr(u,n,s),g=Wr(d,p,s),b=Wr(p,h,s);return Wr(g,b,s)}var uO=function(a,n){return{x(s){return a+a+n-s},setWidth(s){n=s},textAlign(s){if(s==="center")return s;return s==="right"?"left":"right"},xPlus(s,i){return s-i},leftForLtr(s,i){return s-i}}},cO=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,n){return a+n},leftForLtr(a,n){return a}}};function il(a,n,s){return a?uO(n,s):cO()}function av(a,n){let s,i;if(n==="ltr"||n==="rtl")s=a.canvas.style,i=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",n,"important"),a.prevTextDirection=i}function ov(a,n){if(n!==void 0)delete a.prevTextDirection,a.canvas.style.setProperty("direction",n[0],n[1])}function Uk(a){if(a==="angle")return{between:Ux,compare:ME,normalize:fo};return{between:qs,compare:(n,s)=>n-s,normalize:(n)=>n}}function rk({start:a,end:n,count:s,loop:i,style:l}){return{start:a%s,end:n%s,loop:i&&(n-a+1)%s===0,style:l}}function dO(a,n,s){let{property:i,start:l,end:u}=s,{between:d,normalize:p}=Uk(i),h=n.length,{start:g,end:b,loop:y}=a,v,T;if(y){g+=h,b+=h;for(v=0,T=h;v<T;++v){if(!d(p(n[g%h][i]),l,u))break;g--,b--}g%=h,b%=h}if(b<g)b+=h;return{start:g,end:b,loop:y,style:a.style}}function nv(a,n,s){if(!s)return[a];let{property:i,start:l,end:u}=s,d=n.length,{compare:p,between:h,normalize:g}=Uk(i),{start:b,end:y,loop:v,style:T}=dO(a,n,s),M=[],I=!1,w=null,A,B,z,H=()=>h(l,z,A)&&p(l,z)!==0,V=()=>p(u,A)===0||h(u,z,A),G=()=>I||H(),X=()=>!I||V();for(let Y=b,J=b;Y<=y;++Y){if(B=n[Y%d],B.skip)continue;if(A=g(B[i]),A===z)continue;if(I=h(A,l,u),w===null&&G())w=p(A,l)===0?Y:J;if(w!==null&&X())M.push(rk({start:w,end:Y,loop:v,count:d,style:T})),w=null;J=Y,z=A}if(w!==null)M.push(rk({start:w,end:y,loop:v,count:d,style:T}));return M}function sv(a,n){let s=[],i=a.segments;for(let l=0;l<i.length;l++){let u=nv(i[l],a.points,n);if(u.length)s.push(...u)}return s}function fO(a,n,s,i){let l=0,u=n-1;if(s&&!i)while(l<n&&!a[l].skip)l++;while(l<n&&a[l].skip)l++;if(l%=n,s)u+=l;while(u>l&&a[u%n].skip)u--;return u%=n,{start:l,end:u}}function pO(a,n,s,i){let l=a.length,u=[],d=n,p=a[n],h;for(h=n+1;h<=s;++h){let g=a[h%l];if(g.skip||g.stop){if(!p.skip)i=!1,u.push({start:n%l,end:(h-1)%l,loop:i}),n=d=g.stop?h:null}else if(d=h,p.skip)n=h;p=g}if(d!==null)u.push({start:n%l,end:d%l,loop:i});return u}function Fk(a,n){let s=a.points,i=a.options.spanGaps,l=s.length;if(!l)return[];let u=!!a._loop,{start:d,end:p}=fO(s,l,u,i);if(i===!0)return ik(a,[{start:d,end:p,loop:u}],s,n);let h=p<d?p+l:p,g=!!a._fullLoop&&d===0&&p===l-1;return ik(a,pO(s,d,h,g),s,n)}function ik(a,n,s,i){if(!i||!i.setContext||!s)return n;return hO(a,n,s,i)}function hO(a,n,s,i){let l=a._chart.getContext(),u=lk(a.options),{_datasetIndex:d,options:{spanGaps:p}}=a,h=s.length,g=[],b=u,y=n[0].start,v=y;function T(M,I,w,A){let B=p?-1:1;if(M===I)return;M+=h;while(s[M%h].skip)M-=B;while(s[I%h].skip)I+=B;if(M%h!==I%h)g.push({start:M%h,end:I%h,loop:w,style:A}),b=A,y=I%h}for(let M of n){y=p?y:M.start;let I=s[y%h],w;for(v=y+1;v<=M.end;v++){let A=s[v%h];if(w=lk(i.setContext(Vs(l,{type:"segment",p0:I,p1:A,p0DataIndex:(v-1)%h,p1DataIndex:v%h,datasetIndex:d}))),mO(w,b))T(y,v-1,M.loop,b);I=A,b=w}if(y<v-1)T(y,v-1,M.loop,b)}return g}function lk(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function mO(a,n){if(!n)return!1;let s=[],i=function(l,u){if(!Gx(u))return u;if(!s.includes(u))s.push(u);return s.indexOf(u)};return JSON.stringify(a,i)!==JSON.stringify(n,i)}function Zh(a,n,s){return a.options.clip?a[s]:n[s]}function gO(a,n){let{xScale:s,yScale:i}=a;if(s&&i)return{left:Zh(s,n,"left"),right:Zh(s,n,"right"),top:Zh(i,n,"top"),bottom:Zh(i,n,"bottom")};return n}function rv(a,n){let s=n._clip;if(s.disabled)return!1;let i=gO(n,a.chartArea);return{left:s.left===!1?0:i.left-(s.left===!0?0:s.left),right:s.right===!1?a.width:i.right+(s.right===!0?0:s.right),top:s.top===!1?0:i.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?a.height:i.bottom+(s.bottom===!0?0:s.bottom)}}/*!
251
251
  * Chart.js v4.5.1
252
252
  * https://www.chartjs.org
253
253
  * (c) 2025 Chart.js Contributors
254
254
  * Released under the MIT License
255
- */class lM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(a,n,s,l){let r=n.listeners[l],c=n.duration;r.forEach((f)=>f({chart:a,initial:n.initial,numSteps:c,currentStep:Math.min(s-n.start,c)}))}_refresh(){if(this._request)return;this._running=!0,this._request=mx.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(a=Date.now()){let n=0;if(this._charts.forEach((s,l)=>{if(!s.running||!s.items.length)return;let r=s.items,c=r.length-1,f=!1,h;for(;c>=0;--c)if(h=r[c],h._active){if(h._total>s.duration)s.duration=h._total;h.tick(a),f=!0}else r[c]=r[r.length-1],r.pop();if(f)l.draw(),this._notify(l,s,a,"progress");if(!r.length)s.running=!1,this._notify(l,s,a,"complete"),s.initial=!1;n+=r.length}),this._lastDate=a,n===0)this._running=!1}_getAnims(a){let n=this._charts,s=n.get(a);if(!s)s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(a,s);return s}listen(a,n,s){this._getAnims(a).listeners[n].push(s)}add(a,n){if(!n||!n.length)return;this._getAnims(a).items.push(...n)}has(a){return this._getAnims(a).items.length>0}start(a){let n=this._charts.get(a);if(!n)return;n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,l)=>Math.max(s,l._duration),0),this._refresh()}running(a){if(!this._running)return!1;let n=this._charts.get(a);if(!n||!n.running||!n.items.length)return!1;return!0}stop(a){let n=this._charts.get(a);if(!n||!n.items.length)return;let s=n.items,l=s.length-1;for(;l>=0;--l)s[l].cancel();n.items=[],this._notify(a,n,Date.now(),"complete")}remove(a){return this._charts.delete(a)}}var Rs=new lM,dI="transparent",vE={boolean(a,n,s){return s>0.5?n:a},color(a,n,s){let l=bx(a||dI),r=l.valid&&bx(n||dI);return r&&r.valid?r.mix(l,s).hexString():n},number(a,n,s){return a+(n-a)*s}};class rM{constructor(a,n,s,l){let r=n[s];l=hd([a.to,l,r,a.from]);let c=hd([a.from,r,l]);this._active=!0,this._fn=a.fn||vE[a.type||typeof c],this._easing=cu[a.easing]||cu.linear,this._start=Math.floor(Date.now()+(a.delay||0)),this._duration=this._total=Math.floor(a.duration),this._loop=!!a.loop,this._target=n,this._prop=s,this._from=c,this._to=l,this._promises=void 0}active(){return this._active}update(a,n,s){if(this._active){this._notify(!1);let l=this._target[this._prop],r=s-this._start,c=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(c,a.duration)),this._total+=r,this._loop=!!a.loop,this._to=hd([a.to,n,l,a.from]),this._from=hd([a.from,l,n])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(a){let n=a-this._start,s=this._duration,l=this._prop,r=this._from,c=this._loop,f=this._to,h;if(this._active=r!==f&&(c||n<s),!this._active){this._target[l]=f,this._notify(!0);return}if(n<0){this._target[l]=r;return}h=n/s%2,h=c&&h>1?2-h:h,h=this._easing(Math.min(1,Math.max(0,h))),this._target[l]=this._fn(r,f,h)}wait(){let a=this._promises||(this._promises=[]);return new Promise((n,s)=>{a.push({res:n,rej:s})})}_notify(a){let n=a?"res":"rej",s=this._promises||[];for(let l=0;l<s.length;l++)s[l][n]()}}class Kx{constructor(a,n){this._chart=a,this._properties=new Map,this.configure(n)}configure(a){if(!at(a))return;let n=Object.keys(Ht.animation),s=this._properties;Object.getOwnPropertyNames(a).forEach((l)=>{let r=a[l];if(!at(r))return;let c={};for(let f of n)c[f]=r[f];(At(r.properties)&&r.properties||[l]).forEach((f)=>{if(f===l||!s.has(f))s.set(f,c)})})}_animateOptions(a,n){let s=n.options,l=LE(a,s);if(!l)return[];let r=this._createAnimations(l,s);if(s.$shared)SE(a.options.$animations,s).then(()=>{a.options=s},()=>{});return r}_createAnimations(a,n){let s=this._properties,l=[],r=a.$animations||(a.$animations={}),c=Object.keys(n),f=Date.now(),h;for(h=c.length-1;h>=0;--h){let p=c[h];if(p.charAt(0)==="$")continue;if(p==="options"){l.push(...this._animateOptions(a,n));continue}let g=n[p],x=r[p],y=s.get(p);if(x)if(y&&x.active()){x.update(y,g,f);continue}else x.cancel();if(!y||!y.duration){a[p]=g;continue}r[p]=x=new rM(y,a,p,g),l.push(x)}return l}update(a,n){if(this._properties.size===0){Object.assign(a,n);return}let s=this._createAnimations(a,n);if(s.length)return Rs.add(this._chart,s),!0}}function SE(a,n){let s=[],l=Object.keys(n);for(let r=0;r<l.length;r++){let c=a[l[r]];if(c&&c.active())s.push(c.wait())}return Promise.all(s)}function LE(a,n){if(!n)return;let s=a.options;if(!s){a.options=n;return}if(s.$shared)a.options=s=Object.assign({},s,{$shared:!1,$animations:{}});return s}function fI(a,n){let s=a&&a.options||{},l=s.reverse,r=s.min===void 0?n:0,c=s.max===void 0?n:0;return{start:l?c:r,end:l?r:c}}function CE(a,n,s){if(s===!1)return!1;let l=fI(a,s),r=fI(n,s);return{top:r.end,right:l.end,bottom:r.start,left:l.start}}function TE(a){let n,s,l,r;if(at(a))n=a.top,s=a.right,l=a.bottom,r=a.left;else n=s=l=r=a;return{top:n,right:s,bottom:l,left:r,disabled:a===!1}}function uM(a,n){let s=[],l=a._getSortedDatasetMetas(n),r,c;for(r=0,c=l.length;r<c;++r)s.push(l[r].index);return s}function hI(a,n,s,l={}){let r=a.keys,c=l.mode==="single",f,h,p,g;if(n===null)return;let x=!1;for(f=0,h=r.length;f<h;++f){if(p=+r[f],p===s){if(x=!0,l.all)continue;break}if(g=a.values[p],Ut(g)&&(c||n===0||hn(n)===hn(g)))n+=g}if(!x&&!l.all)return 0;return n}function wE(a,n){let{iScale:s,vScale:l}=n,r=s.axis==="x"?"x":"y",c=l.axis==="x"?"x":"y",f=Object.keys(a),h=Array(f.length),p,g,x;for(p=0,g=f.length;p<g;++p)x=f[p],h[p]={[r]:x,[c]:a[x]};return h}function Ex(a,n){let s=a&&a.options.stacked;return s||s===void 0&&n.stack!==void 0}function IE(a,n,s){return`${a.id}.${n.id}.${s.stack||s.type}`}function ME(a){let{min:n,max:s,minDefined:l,maxDefined:r}=a.getUserBounds();return{min:l?n:Number.NEGATIVE_INFINITY,max:r?s:Number.POSITIVE_INFINITY}}function AE(a,n,s){let l=a[n]||(a[n]={});return l[s]||(l[s]={})}function pI(a,n,s,l){for(let r of n.getMatchingVisibleMetas(l).reverse()){let c=a[r.index];if(s&&c>0||!s&&c<0)return r.index}return null}function mI(a,n){let{chart:s,_cachedMeta:l}=a,r=s._stacks||(s._stacks={}),{iScale:c,vScale:f,index:h}=l,p=c.axis,g=f.axis,x=IE(c,f,l),y=n.length,S;for(let T=0;T<y;++T){let M=n[T],{[p]:k,[g]:w}=M,_=M._stacks||(M._stacks={});S=_[g]=AE(r,x,k),S[h]=w,S._top=pI(S,f,!0,l.type),S._bottom=pI(S,f,!1,l.type);let U=S._visualValues||(S._visualValues={});U[h]=w}}function Ox(a,n){let s=a.scales;return Object.keys(s).filter((l)=>s[l].axis===n).shift()}function kE(a,n){return ks(a,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function RE(a,n,s){return ks(a,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:s,index:n,mode:"default",type:"data"})}function pd(a,n){let s=a.controller.index,l=a.vScale&&a.vScale.axis;if(!l)return;n=n||a._parsed;for(let r of n){let c=r._stacks;if(!c||c[l]===void 0||c[l][s]===void 0)return;if(delete c[l][s],c[l]._visualValues!==void 0&&c[l]._visualValues[s]!==void 0)delete c[l]._visualValues[s]}}var Px=(a)=>a==="reset"||a==="none",gI=(a,n)=>n?a:Object.assign({},a),_E=(a,n,s)=>a&&!n.hidden&&n._stacked&&{keys:uM(s,!0),values:null};class $p{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(a,n){this.chart=a,this._ctx=a.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let a=this._cachedMeta;if(this.configure(),this.linkScales(),a._stacked=Ex(a.vScale,a),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(a){if(this.index!==a)pd(this._cachedMeta);this.index=a}linkScales(){let a=this.chart,n=this._cachedMeta,s=this.getDataset(),l=(x,y,S,T)=>x==="x"?y:x==="r"?T:S,r=n.xAxisID=We(s.xAxisID,Ox(a,"x")),c=n.yAxisID=We(s.yAxisID,Ox(a,"y")),f=n.rAxisID=We(s.rAxisID,Ox(a,"r")),h=n.indexAxis,p=n.iAxisID=l(h,r,c,f),g=n.vAxisID=l(h,c,r,f);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(c),n.rScale=this.getScaleForId(f),n.iScale=this.getScaleForId(p),n.vScale=this.getScaleForId(g)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(a){return this.chart.scales[a]}_getOtherScale(a){let n=this._cachedMeta;return a===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let a=this._cachedMeta;if(this._data)hx(this._data,this);if(a._stacked)pd(a)}_dataCheck(){let a=this.getDataset(),n=a.data||(a.data=[]),s=this._data;if(at(n)){let l=this._cachedMeta;this._data=wE(n,l)}else if(s!==n){if(s){hx(s,this);let l=this._cachedMeta;pd(l),l._parsed=[]}if(n&&Object.isExtensible(n))Vw(n,this);this._syncList=[],this._data=n}}addElements(){let a=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)a.dataset=new this.datasetElementType}buildOrUpdateElements(a){let n=this._cachedMeta,s=this.getDataset(),l=!1;this._dataCheck();let r=n._stacked;if(n._stacked=Ex(n.vScale,n),n.stack!==s.stack)l=!0,pd(n),n.stack=s.stack;if(this._resyncElements(a),l||r!==n._stacked)mI(this,n._parsed),n._stacked=Ex(n.vScale,n)}configure(){let a=this.chart.config,n=a.datasetScopeKeys(this._type),s=a.getOptionScopes(this.getDataset(),n,!0);this.options=a.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(a,n){let{_cachedMeta:s,_data:l}=this,{iScale:r,_stacked:c}=s,f=r.axis,h=a===0&&n===l.length?!0:s._sorted,p=a>0&&s._parsed[a-1],g,x,y;if(this._parsing===!1)s._parsed=l,s._sorted=!0,y=l;else{if(At(l[a]))y=this.parseArrayData(s,l,a,n);else if(at(l[a]))y=this.parseObjectData(s,l,a,n);else y=this.parsePrimitiveData(s,l,a,n);let S=()=>x[f]===null||p&&x[f]<p[f];for(g=0;g<n;++g)if(s._parsed[g+a]=x=y[g],h){if(S())h=!1;p=x}s._sorted=h}if(c)mI(this,y)}parsePrimitiveData(a,n,s,l){let{iScale:r,vScale:c}=a,f=r.axis,h=c.axis,p=r.getLabels(),g=r===c,x=Array(l),y,S,T;for(y=0,S=l;y<S;++y)T=y+s,x[y]={[f]:g||r.parse(p[T],T),[h]:c.parse(n[T],T)};return x}parseArrayData(a,n,s,l){let{xScale:r,yScale:c}=a,f=Array(l),h,p,g,x;for(h=0,p=l;h<p;++h)g=h+s,x=n[g],f[h]={x:r.parse(x[0],g),y:c.parse(x[1],g)};return f}parseObjectData(a,n,s,l){let{xScale:r,yScale:c}=a,{xAxisKey:f="x",yAxisKey:h="y"}=this._parsing,p=Array(l),g,x,y,S;for(g=0,x=l;g<x;++g)y=g+s,S=n[y],p[g]={x:r.parse(Hl(S,f),y),y:c.parse(Hl(S,h),y)};return p}getParsed(a){return this._cachedMeta._parsed[a]}getDataElement(a){return this._cachedMeta.data[a]}applyStack(a,n,s){let l=this.chart,r=this._cachedMeta,c=n[a.axis],f={keys:uM(l,!0),values:n._stacks[a.axis]._visualValues};return hI(f,c,r.index,{mode:s})}updateRangeFromParsed(a,n,s,l){let r=s[n.axis],c=r===null?NaN:r,f=l&&s._stacks[n.axis];if(l&&f)l.values=f,c=hI(l,r,this._cachedMeta.index);a.min=Math.min(a.min,c),a.max=Math.max(a.max,c)}getMinMax(a,n){let s=this._cachedMeta,l=s._parsed,r=s._sorted&&a===s.iScale,c=l.length,f=this._getOtherScale(a),h=_E(n,s,this.chart),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:x}=ME(f),y,S;function T(){S=l[y];let M=S[f.axis];return!Ut(S[a.axis])||g>M||x<M}for(y=0;y<c;++y){if(T())continue;if(this.updateRangeFromParsed(p,a,S,h),r)break}if(r)for(y=c-1;y>=0;--y){if(T())continue;this.updateRangeFromParsed(p,a,S,h);break}return p}getAllParsedValues(a){let n=this._cachedMeta._parsed,s=[],l,r,c;for(l=0,r=n.length;l<r;++l)if(c=n[l][a.axis],Ut(c))s.push(c);return s}getMaxOverflow(){return!1}getLabelAndValue(a){let n=this._cachedMeta,s=n.iScale,l=n.vScale,r=this.getParsed(a);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:l?""+l.getLabelForValue(r[l.axis]):""}}_update(a){let n=this._cachedMeta;this.update(a||"default"),n._clip=TE(We(this.options.clip,CE(n.xScale,n.yScale,this.getMaxOverflow())))}update(a){}draw(){let a=this._ctx,n=this.chart,s=this._cachedMeta,l=s.data||[],r=n.chartArea,c=[],f=this._drawStart||0,h=this._drawCount||l.length-f,p=this.options.drawActiveElementsOnTop,g;if(s.dataset)s.dataset.draw(a,r,f,h);for(g=f;g<f+h;++g){let x=l[g];if(x.hidden)continue;if(x.active&&p)c.push(x);else x.draw(a,r)}for(g=0;g<c.length;++g)c[g].draw(a,r)}getStyle(a,n){let s=n?"active":"default";return a===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(a||0,s)}getContext(a,n,s){let l=this.getDataset(),r;if(a>=0&&a<this._cachedMeta.data.length){let c=this._cachedMeta.data[a];r=c.$context||(c.$context=RE(this.getContext(),a,c)),r.parsed=this.getParsed(a),r.raw=l.data[a],r.index=r.dataIndex=a}else r=this.$context||(this.$context=kE(this.chart.getContext(),this.index)),r.dataset=l,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=s,r}resolveDatasetElementOptions(a){return this._resolveElementOptions(this.datasetElementType.id,a)}resolveDataElementOptions(a,n){return this._resolveElementOptions(this.dataElementType.id,n,a)}_resolveElementOptions(a,n="default",s){let l=n==="active",r=this._cachedDataOpts,c=a+"-"+n,f=r[c],h=this.enableOptionSharing&&pu(s);if(f)return gI(f,h);let p=this.chart.config,g=p.datasetElementScopeKeys(this._type,a),x=l?[`${a}Hover`,"hover",a,""]:[a,""],y=p.getOptionScopes(this.getDataset(),g),S=Object.keys(Ht.elements[a]),T=()=>this.getContext(s,l,n),M=p.resolveNamedOptions(y,S,T,x);if(M.$shared)M.$shared=h,r[c]=Object.freeze(gI(M,h));return M}_resolveAnimations(a,n,s){let l=this.chart,r=this._cachedDataOpts,c=`animation-${n}`,f=r[c];if(f)return f;let h;if(l.options.animation!==!1){let g=this.chart.config,x=g.datasetAnimationScopeKeys(this._type,n),y=g.getOptionScopes(this.getDataset(),x);h=g.createResolver(y,this.getContext(a,s,n))}let p=new Kx(l,h&&h.animations);if(h&&h._cacheable)r[c]=Object.freeze(p);return p}getSharedOptions(a){if(!a.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},a))}includeOptions(a,n){return!n||Px(a)||this.chart._animationsDisabled}_getSharedOptions(a,n){let s=this.resolveDataElementOptions(a,n),l=this._sharedOptions,r=this.getSharedOptions(s),c=this.includeOptions(n,r)||r!==l;return this.updateSharedOptions(r,n,s),{sharedOptions:r,includeOptions:c}}updateElement(a,n,s,l){if(Px(l))Object.assign(a,s);else this._resolveAnimations(n,l).update(a,s)}updateSharedOptions(a,n,s){if(a&&!Px(n))this._resolveAnimations(void 0,n).update(a,s)}_setStyle(a,n,s,l){a.active=l;let r=this.getStyle(n,l);this._resolveAnimations(n,s,l).update(a,{options:!l&&this.getSharedOptions(r)||r})}removeHoverStyle(a,n,s){this._setStyle(a,s,"active",!1)}setHoverStyle(a,n,s){this._setStyle(a,s,"active",!0)}_removeDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!1)}_setDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!0)}_resyncElements(a){let n=this._data,s=this._cachedMeta.data;for(let[f,h,p]of this._syncList)this[f](h,p);this._syncList=[];let l=s.length,r=n.length,c=Math.min(r,l);if(c)this.parse(0,c);if(r>l)this._insertElements(l,r-l,a);else if(r<l)this._removeElements(r,l-r)}_insertElements(a,n,s=!0){let l=this._cachedMeta,r=l.data,c=a+n,f,h=(p)=>{p.length+=n;for(f=p.length-1;f>=c;f--)p[f]=p[f-n]};h(r);for(f=a;f<c;++f)r[f]=new this.dataElementType;if(this._parsing)h(l._parsed);if(this.parse(a,n),s)this.updateElements(r,a,n,"reset")}updateElements(a,n,s,l){}_removeElements(a,n){let s=this._cachedMeta;if(this._parsing){let l=s._parsed.splice(a,n);if(s._stacked)pd(s,l)}s.data.splice(a,n)}_sync(a){if(this._parsing)this._syncList.push(a);else{let[n,s,l]=a;this[n](s,l)}this.chart._dataChanges.push([this.index,...a])}_onDataPush(){let a=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-a,a])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(a,n){if(n)this._sync(["_removeElements",a,n]);let s=arguments.length-2;if(s)this._sync(["_insertElements",a,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function DE(a,n){if(!a._cache.$bar){let s=a.getMatchingVisibleMetas(n),l=[];for(let r=0,c=s.length;r<c;r++)l=l.concat(s[r].controller.getAllParsedValues(a));a._cache.$bar=px(l.sort((r,c)=>r-c))}return a._cache.$bar}function EE(a){let n=a.iScale,s=DE(n,a.type),l=n._length,r,c,f,h,p=()=>{if(f===32767||f===-32768)return;if(pu(h))l=Math.min(l,Math.abs(f-h)||l);h=f};for(r=0,c=s.length;r<c;++r)f=n.getPixelForValue(s[r]),p();h=void 0;for(r=0,c=n.ticks.length;r<c;++r)f=n.getPixelForTick(r),p();return l}function OE(a,n,s,l){let r=s.barThickness,c,f;if(st(r))c=n.min*s.categoryPercentage,f=s.barPercentage;else c=r*l,f=1;return{chunk:c/l,ratio:f,start:n.pixels[a]-c/2}}function PE(a,n,s,l){let r=n.pixels,c=r[a],f=a>0?r[a-1]:null,h=a<r.length-1?r[a+1]:null,p=s.categoryPercentage;if(f===null)f=c-(h===null?n.end-n.start:h-c);if(h===null)h=c+c-f;let g=c-(c-Math.min(f,h))/2*p;return{chunk:Math.abs(h-f)/2*p/l,ratio:s.barPercentage,start:g}}function BE(a,n,s,l){let r=s.parse(a[0],l),c=s.parse(a[1],l),f=Math.min(r,c),h=Math.max(r,c),p=f,g=h;if(Math.abs(f)>Math.abs(h))p=h,g=f;n[s.axis]=g,n._custom={barStart:p,barEnd:g,start:r,end:c,min:f,max:h}}function cM(a,n,s,l){if(At(a))BE(a,n,s,l);else n[s.axis]=s.parse(a,l);return n}function yI(a,n,s,l){let{iScale:r,vScale:c}=a,f=r.getLabels(),h=r===c,p=[],g,x,y,S;for(g=s,x=s+l;g<x;++g)S=n[g],y={},y[r.axis]=h||r.parse(f[g],g),p.push(cM(S,y,c,g));return p}function Bx(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function NE(a,n,s){if(a!==0)return hn(a);return(n.isHorizontal()?1:-1)*(n.min>=s?1:-1)}function zE(a){let n,s,l,r,c;if(a.horizontal)n=a.base>a.x,s="left",l="right";else n=a.base<a.y,s="bottom",l="top";if(n)r="end",c="start";else r="start",c="end";return{start:s,end:l,reverse:n,top:r,bottom:c}}function UE(a,n,s,l){let r=n.borderSkipped,c={};if(!r){a.borderSkipped=c;return}if(r===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:f,end:h,reverse:p,top:g,bottom:x}=zE(a);if(r==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===l)r=g;else if((s._bottom||0)===l)r=x;else c[bI(x,f,h,p)]=!0,r=g;c[bI(r,f,h,p)]=!0,a.borderSkipped=c}function bI(a,n,s,l){if(l)a=HE(a,n,s),a=xI(a,s,n);else a=xI(a,n,s);return a}function HE(a,n,s){return a===n?s:a===s?n:a}function xI(a,n,s){return a==="start"?n:a==="end"?s:a}function FE(a,{inflateAmount:n},s){a.inflateAmount=n==="auto"?s===1?0.33:0:n}class Jx extends $p{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(a,n,s,l){return yI(a,n,s,l)}parseArrayData(a,n,s,l){return yI(a,n,s,l)}parseObjectData(a,n,s,l){let{iScale:r,vScale:c}=a,{xAxisKey:f="x",yAxisKey:h="y"}=this._parsing,p=r.axis==="x"?f:h,g=c.axis==="x"?f:h,x=[],y,S,T,M;for(y=s,S=s+l;y<S;++y)M=n[y],T={},T[r.axis]=r.parse(Hl(M,p),y),x.push(cM(Hl(M,g),T,c,y));return x}updateRangeFromParsed(a,n,s,l){super.updateRangeFromParsed(a,n,s,l);let r=s._custom;if(r&&n===this._cachedMeta.vScale)a.min=Math.min(a.min,r.min),a.max=Math.max(a.max,r.max)}getMaxOverflow(){return 0}getLabelAndValue(a){let n=this._cachedMeta,{iScale:s,vScale:l}=n,r=this.getParsed(a),c=r._custom,f=Bx(c)?"["+c.start+", "+c.end+"]":""+l.getLabelForValue(r[l.axis]);return{label:""+s.getLabelForValue(r[s.axis]),value:f}}initialize(){this.enableOptionSharing=!0,super.initialize();let a=this._cachedMeta;a.stack=this.getDataset().stack}update(a){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,a)}updateElements(a,n,s,l){let r=l==="reset",{index:c,_cachedMeta:{vScale:f}}=this,h=f.getBasePixel(),p=f.isHorizontal(),g=this._getRuler(),{sharedOptions:x,includeOptions:y}=this._getSharedOptions(n,l);for(let S=n;S<n+s;S++){let T=this.getParsed(S),M=r||st(T[f.axis])?{base:h,head:h}:this._calculateBarValuePixels(S),k=this._calculateBarIndexPixels(S,g),w=(T._stacks||{})[f.axis],_={horizontal:p,base:M.base,enableBorderRadius:!w||Bx(T._custom)||c===w._top||c===w._bottom,x:p?M.head:k.center,y:p?k.center:M.head,height:p?k.size:Math.abs(M.size),width:p?Math.abs(M.size):k.size};if(y)_.options=x||this.resolveDataElementOptions(S,a[S].active?"active":l);let U=_.options||a[S].options;UE(_,U,w,c),FE(_,U,g.ratio),this.updateElement(a[S],S,_,l)}}_getStacks(a,n){let{iScale:s}=this._cachedMeta,l=s.getMatchingVisibleMetas(this._type).filter((g)=>g.controller.options.grouped),r=s.options.stacked,c=[],f=this._cachedMeta.controller.getParsed(n),h=f&&f[s.axis],p=(g)=>{let x=g._parsed.find((S)=>S[s.axis]===h),y=x&&x[g.vScale.axis];if(st(y)||isNaN(y))return!0};for(let g of l){if(n!==void 0&&p(g))continue;if(r===!1||c.indexOf(g.stack)===-1||r===void 0&&g.stack===void 0)c.push(g.stack);if(g.index===a)break}if(!c.length)c.push(void 0);return c}_getStackCount(a){return this._getStacks(void 0,a).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let a=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(a).filter((s)=>a[s].axis===n).shift()}_getAxis(){let a={},n=this.getFirstScaleIdForIndexAxis();for(let s of this.chart.data.datasets)a[We(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,n)]=!0;return Object.keys(a)}_getStackIndex(a,n,s){let l=this._getStacks(a,s),r=n!==void 0?l.indexOf(n):-1;return r===-1?l.length-1:r}_getRuler(){let a=this.options,n=this._cachedMeta,s=n.iScale,l=[],r,c;for(r=0,c=n.data.length;r<c;++r)l.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));let f=a.barThickness;return{min:f||EE(n),pixels:l,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:a.grouped,ratio:f?1:a.categoryPercentage*a.barPercentage}}_calculateBarValuePixels(a){let{_cachedMeta:{vScale:n,_stacked:s,index:l},options:{base:r,minBarLength:c}}=this,f=r||0,h=this.getParsed(a),p=h._custom,g=Bx(p),x=h[n.axis],y=0,S=s?this.applyStack(n,h,s):x,T,M;if(S!==x)y=S-x,S=x;if(g){if(x=p.barStart,S=p.barEnd-p.barStart,x!==0&&hn(x)!==hn(p.barEnd))y=0;y+=x}let k=!st(r)&&!g?r:y,w=n.getPixelForValue(k);if(this.chart.getDataVisibility(a))T=n.getPixelForValue(y+S);else T=w;if(M=T-w,Math.abs(M)<c){if(M=NE(M,n,f)*c,x===f)w-=M/2;let _=n.getPixelForDecimal(0),U=n.getPixelForDecimal(1),q=Math.min(_,U),W=Math.max(_,U);if(w=Math.max(Math.min(w,W),q),T=w+M,s&&!g)h._stacks[n.axis]._visualValues[l]=n.getValueForPixel(T)-n.getValueForPixel(w)}if(w===n.getPixelForValue(f)){let _=hn(M)*n.getLineWidthForValue(f)/2;w+=_,M-=_}return{size:M,base:w,head:T,center:T+M/2}}_calculateBarIndexPixels(a,n){let s=n.scale,l=this.options,r=l.skipNull,c=We(l.maxBarThickness,1/0),f,h,p=this._getAxisCount();if(n.grouped){let g=r?this._getStackCount(a):n.stackCount,x=l.barThickness==="flex"?PE(a,n,l,g*p):OE(a,n,l,g*p),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,S=this._getAxis().indexOf(We(y,this.getFirstScaleIdForIndexAxis())),T=this._getStackIndex(this.index,this._cachedMeta.stack,r?a:void 0)+S;f=x.start+x.chunk*T+x.chunk/2,h=Math.min(c,x.chunk*x.ratio)}else f=s.getPixelForValue(this.getParsed(a)[s.axis],a),h=Math.min(c,n.min*n.ratio);return{base:f-h/2,head:f+h/2,center:f,size:h}}draw(){let a=this._cachedMeta,n=a.vScale,s=a.data,l=s.length,r=0;for(;r<l;++r)if(this.getParsed(r)[n.axis]!==null&&!s[r].hidden)s[r].draw(this._ctx)}}class ev extends $p{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(a){let n=this._cachedMeta,{dataset:s,data:l=[],_dataset:r}=n,c=this.chart._animationsDisabled,{start:f,count:h}=Yw(n,l,c);if(this._drawStart=f,this._drawCount=h,Xw(n))f=0,h=l.length;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=l;let p=this.resolveDatasetElementOptions(a);if(!this.options.showLine)p.borderWidth=0;p.segment=this.options.segment,this.updateElement(s,void 0,{animated:!c,options:p},a),this.updateElements(l,f,h,a)}updateElements(a,n,s,l){let r=l==="reset",{iScale:c,vScale:f,_stacked:h,_dataset:p}=this._cachedMeta,{sharedOptions:g,includeOptions:x}=this._getSharedOptions(n,l),y=c.axis,S=f.axis,{spanGaps:T,segment:M}=this.options,k=gu(T)?T:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||l==="none",_=n+s,U=a.length,q=n>0&&this.getParsed(n-1);for(let W=0;W<U;++W){let Q=a[W],ne=w?Q:{};if(W<n||W>=_){ne.skip=!0;continue}let J=this.getParsed(W),K=st(J[S]),re=ne[y]=c.getPixelForValue(J[y],W),V=ne[S]=r||K?f.getBasePixel():f.getPixelForValue(h?this.applyStack(f,J,h):J[S],W);if(ne.skip=isNaN(re)||isNaN(V)||K,ne.stop=W>0&&Math.abs(J[y]-q[y])>k,M)ne.parsed=J,ne.raw=p.data[W];if(x)ne.options=g||this.resolveDataElementOptions(W,Q.active?"active":l);if(!w)this.updateElement(Q,W,ne,l);q=J}}getMaxOverflow(){let a=this._cachedMeta,n=a.dataset,s=n.options&&n.options.borderWidth||0,l=a.data||[];if(!l.length)return s;let r=l[0].size(this.resolveDataElementOptions(0)),c=l[l.length-1].size(this.resolveDataElementOptions(l.length-1));return Math.max(s,r,c)/2}draw(){let a=this._cachedMeta;a.dataset.updateControlPoints(this.chart.chartArea,a.iScale.axis),super.draw()}}function ql(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class tv{static override(a){Object.assign(tv.prototype,a)}options;constructor(a){this.options=a||{}}init(){}formats(){return ql()}parse(){return ql()}format(){return ql()}add(){return ql()}diff(){return ql()}startOf(){return ql()}endOf(){return ql()}}var qE={_date:tv};function VE(a,n,s,l){let{controller:r,data:c,_sorted:f}=a,h=r._cachedMeta.iScale,p=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null;if(h&&n===h.axis&&n!=="r"&&f&&c.length){let g=h._reversePixels?Hw:Ri;if(!l){let x=g(c,n,s);if(p){let{vScale:y}=r._cachedMeta,{_parsed:S}=a,T=S.slice(0,x.lo+1).reverse().findIndex((k)=>!st(k[y.axis]));x.lo-=Math.max(0,T);let M=S.slice(x.hi).findIndex((k)=>!st(k[y.axis]));x.hi+=Math.max(0,M)}return x}else if(r._sharedOptions){let x=c[0],y=typeof x.getRange==="function"&&x.getRange(n);if(y){let S=g(c,n,s-y),T=g(c,n,s+y);return{lo:S.lo,hi:T.hi}}}}return{lo:0,hi:c.length-1}}function wd(a,n,s,l,r){let c=a.getSortedVisibleDatasetMetas(),f=s[n];for(let h=0,p=c.length;h<p;++h){let{index:g,data:x}=c[h],{lo:y,hi:S}=VE(c[h],n,f,r);for(let T=y;T<=S;++T){let M=x[T];if(!M.skip)l(M,g,T)}}}function jE(a){let n=a.indexOf("x")!==-1,s=a.indexOf("y")!==-1;return function(l,r){let c=n?Math.abs(l.x-r.x):0,f=s?Math.abs(l.y-r.y):0;return Math.sqrt(Math.pow(c,2)+Math.pow(f,2))}}function Nx(a,n,s,l,r){let c=[];if(!r&&!a.isPointInArea(n))return c;return wd(a,s,n,function(h,p,g){if(!r&&!Gn(h,a.chartArea,0))return;if(h.inRange(n.x,n.y,l))c.push({element:h,datasetIndex:p,index:g})},!0),c}function GE(a,n,s,l){let r=[];function c(f,h,p){let{startAngle:g,endAngle:x}=f.getProps(["startAngle","endAngle"],l),{angle:y}=zw(f,{x:n.x,y:n.y});if(fx(y,g,x))r.push({element:f,datasetIndex:h,index:p})}return wd(a,s,n,c),r}function YE(a,n,s,l,r,c){let f=[],h=jE(s),p=Number.POSITIVE_INFINITY;function g(x,y,S){let T=x.inRange(n.x,n.y,r);if(l&&!T)return;let M=x.getCenterPoint(r);if(!(!!c||a.isPointInArea(M))&&!T)return;let w=h(n,M);if(w<p)f=[{element:x,datasetIndex:y,index:S}],p=w;else if(w===p)f.push({element:x,datasetIndex:y,index:S})}return wd(a,s,n,g),f}function zx(a,n,s,l,r,c){if(!c&&!a.isPointInArea(n))return[];return s==="r"&&!l?GE(a,n,s,r):YE(a,n,s,l,r,c)}function vI(a,n,s,l,r){let c=[],f=s==="x"?"inXRange":"inYRange",h=!1;if(wd(a,s,n,(p,g,x)=>{if(p[f]&&p[f](n[s],r))c.push({element:p,datasetIndex:g,index:x}),h=h||p.inRange(n.x,n.y,r)}),l&&!h)return[];return c}var XE={evaluateInteractionItems:wd,modes:{index(a,n,s,l){let r=Bi(n,a),c=s.axis||"x",f=s.includeInvisible||!1,h=s.intersect?Nx(a,r,c,l,f):zx(a,r,c,!1,l,f),p=[];if(!h.length)return[];return a.getSortedVisibleDatasetMetas().forEach((g)=>{let x=h[0].index,y=g.data[x];if(y&&!y.skip)p.push({element:y,datasetIndex:g.index,index:x})}),p},dataset(a,n,s,l){let r=Bi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1,h=s.intersect?Nx(a,r,c,l,f):zx(a,r,c,!1,l,f);if(h.length>0){let p=h[0].datasetIndex,g=a.getDatasetMeta(p).data;h=[];for(let x=0;x<g.length;++x)h.push({element:g[x],datasetIndex:p,index:x})}return h},point(a,n,s,l){let r=Bi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return Nx(a,r,c,l,f)},nearest(a,n,s,l){let r=Bi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return zx(a,r,c,s.intersect,l,f)},x(a,n,s,l){let r=Bi(n,a);return vI(a,r,"x",s.intersect,l)},y(a,n,s,l){let r=Bi(n,a);return vI(a,r,"y",s.intersect,l)}}},dM=["left","top","right","bottom"];function md(a,n){return a.filter((s)=>s.pos===n)}function SI(a,n){return a.filter((s)=>dM.indexOf(s.pos)===-1&&s.box.axis===n)}function gd(a,n){return a.sort((s,l)=>{let r=n?l:s,c=n?s:l;return r.weight===c.weight?r.index-c.index:r.weight-c.weight})}function $E(a){let n=[],s,l,r,c,f,h;for(s=0,l=(a||[]).length;s<l;++s)r=a[s],{position:c,options:{stack:f,stackWeight:h=1}}=r,n.push({index:s,box:r,pos:c,horizontal:r.isHorizontal(),weight:r.weight,stack:f&&c+f,stackWeight:h});return n}function WE(a){let n={};for(let s of a){let{stack:l,pos:r,stackWeight:c}=s;if(!l||!dM.includes(r))continue;let f=n[l]||(n[l]={count:0,placed:0,weight:0,size:0});f.count++,f.weight+=c}return n}function ZE(a,n){let s=WE(a),{vBoxMaxWidth:l,hBoxMaxHeight:r}=n,c,f,h;for(c=0,f=a.length;c<f;++c){h=a[c];let{fullSize:p}=h.box,g=s[h.stack],x=g&&h.stackWeight/g.weight;if(h.horizontal)h.width=x?x*l:p&&n.availableWidth,h.height=r;else h.width=l,h.height=x?x*r:p&&n.availableHeight}return s}function QE(a){let n=$E(a),s=gd(n.filter((g)=>g.box.fullSize),!0),l=gd(md(n,"left"),!0),r=gd(md(n,"right")),c=gd(md(n,"top"),!0),f=gd(md(n,"bottom")),h=SI(n,"x"),p=SI(n,"y");return{fullSize:s,leftAndTop:l.concat(c),rightAndBottom:r.concat(p).concat(f).concat(h),chartArea:md(n,"chartArea"),vertical:l.concat(r).concat(p),horizontal:c.concat(f).concat(h)}}function LI(a,n,s,l){return Math.max(a[s],n[s])+Math.max(a[l],n[l])}function fM(a,n){a.top=Math.max(a.top,n.top),a.left=Math.max(a.left,n.left),a.bottom=Math.max(a.bottom,n.bottom),a.right=Math.max(a.right,n.right)}function KE(a,n,s,l){let{pos:r,box:c}=s,f=a.maxPadding;if(!at(r)){if(s.size)a[r]-=s.size;let y=l[s.stack]||{size:0,count:1};y.size=Math.max(y.size,s.horizontal?c.height:c.width),s.size=y.size/y.count,a[r]+=s.size}if(c.getPadding)fM(f,c.getPadding());let h=Math.max(0,n.outerWidth-LI(f,a,"left","right")),p=Math.max(0,n.outerHeight-LI(f,a,"top","bottom")),g=h!==a.w,x=p!==a.h;return a.w=h,a.h=p,s.horizontal?{same:g,other:x}:{same:x,other:g}}function JE(a){let n=a.maxPadding;function s(l){let r=Math.max(n[l]-a[l],0);return a[l]+=r,r}a.y+=s("top"),a.x+=s("left"),s("right"),s("bottom")}function eO(a,n){let s=n.maxPadding;function l(r){let c={left:0,top:0,right:0,bottom:0};return r.forEach((f)=>{c[f]=Math.max(n[f],s[f])}),c}return a?l(["left","right"]):l(["top","bottom"])}function xd(a,n,s,l){let r=[],c,f,h,p,g,x;for(c=0,f=a.length,g=0;c<f;++c){h=a[c],p=h.box,p.update(h.width||n.w,h.height||n.h,eO(h.horizontal,n));let{same:y,other:S}=KE(n,s,h,l);if(g|=y&&r.length,x=x||S,!p.fullSize)r.push(h)}return g&&xd(r,n,s,l)||x}function Hp(a,n,s,l,r){a.top=s,a.left=n,a.right=n+l,a.bottom=s+r,a.width=l,a.height=r}function CI(a,n,s,l){let r=s.padding,{x:c,y:f}=n;for(let h of a){let p=h.box,g=l[h.stack]||{count:1,placed:0,weight:1},x=h.stackWeight/g.weight||1;if(h.horizontal){let y=n.w*x,S=g.size||p.height;if(pu(g.start))f=g.start;if(p.fullSize)Hp(p,r.left,f,s.outerWidth-r.right-r.left,S);else Hp(p,n.left+g.placed,f,y,S);g.start=f,g.placed+=y,f=p.bottom}else{let y=n.h*x,S=g.size||p.width;if(pu(g.start))c=g.start;if(p.fullSize)Hp(p,c,r.top,S,s.outerHeight-r.bottom-r.top);else Hp(p,c,n.top+g.placed,S,y);g.start=c,g.placed+=y,c=p.right}}n.x=c,n.y=f}var Xo={addBox(a,n){if(!a.boxes)a.boxes=[];n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(s){n.draw(s)}}]},a.boxes.push(n)},removeBox(a,n){let s=a.boxes?a.boxes.indexOf(n):-1;if(s!==-1)a.boxes.splice(s,1)},configure(a,n,s){n.fullSize=s.fullSize,n.position=s.position,n.weight=s.weight},update(a,n,s,l){if(!a)return;let r=Ta(a.options.layout.padding),c=Math.max(n-r.width,0),f=Math.max(s-r.height,0),h=QE(a.boxes),p=h.vertical,g=h.horizontal;pt(a.boxes,(k)=>{if(typeof k.beforeLayout==="function")k.beforeLayout()});let x=p.reduce((k,w)=>w.box.options&&w.box.options.display===!1?k:k+1,0)||1,y=Object.freeze({outerWidth:n,outerHeight:s,padding:r,availableWidth:c,availableHeight:f,vBoxMaxWidth:c/2/x,hBoxMaxHeight:f/2}),S=Object.assign({},r);fM(S,Ta(l));let T=Object.assign({maxPadding:S,w:c,h:f,x:r.left,y:r.top},r),M=ZE(p.concat(g),y);if(xd(h.fullSize,T,y,M),xd(p,T,y,M),xd(g,T,y,M))xd(p,T,y,M);JE(T),CI(h.leftAndTop,T,y,M),T.x+=T.w,T.y+=T.h,CI(h.rightAndBottom,T,y,M),a.chartArea={left:T.left,top:T.top,right:T.left+T.w,bottom:T.top+T.h,height:T.h,width:T.w},pt(h.chartArea,(k)=>{let w=k.box;Object.assign(w,a.chartArea),w.update(T.w,T.h,{left:0,top:0,right:0,bottom:0})})}};class av{acquireContext(a,n){}releaseContext(a){return!1}addEventListener(a,n,s){}removeEventListener(a,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(a,n,s,l){return n=Math.max(0,n||a.width),s=s||a.height,{width:n,height:Math.max(0,l?Math.floor(n/l):s)}}isAttached(a){return!0}updateConfig(a){}}class hM extends av{acquireContext(a){return a&&a.getContext&&a.getContext("2d")||null}updateConfig(a){a.options.animation=!1}}var Gp="$chartjs",tO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},TI=(a)=>a===null||a==="";function aO(a,n){let s=a.style,l=a.getAttribute("height"),r=a.getAttribute("width");if(a[Gp]={initial:{height:l,width:r,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",TI(r)){let c=Mx(a,"width");if(c!==void 0)a.width=c}if(TI(l))if(a.style.height==="")a.height=a.width/(n||2);else{let c=Mx(a,"height");if(c!==void 0)a.height=c}return a}var pM=iI?{passive:!0}:!1;function oO(a,n,s){if(a)a.addEventListener(n,s,pM)}function nO(a,n,s){if(a&&a.canvas)a.canvas.removeEventListener(n,s,pM)}function sO(a,n){let s=tO[a.type]||a.type,{x:l,y:r}=Bi(a,n);return{type:s,chart:n,native:a,x:l!==void 0?l:null,y:r!==void 0?r:null}}function Xp(a,n){for(let s of a)if(s===n||s.contains(n))return!0}function iO(a,n,s){let l=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||Xp(h.addedNodes,l),f=f&&!Xp(h.removedNodes,l);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}function lO(a,n,s){let l=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||Xp(h.removedNodes,l),f=f&&!Xp(h.addedNodes,l);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}var Ld=new Map,wI=0;function mM(){let a=window.devicePixelRatio;if(a===wI)return;wI=a,Ld.forEach((n,s)=>{if(s.currentDevicePixelRatio!==a)n()})}function rO(a,n){if(!Ld.size)window.addEventListener("resize",mM);Ld.set(a,n)}function uO(a){if(Ld.delete(a),!Ld.size)window.removeEventListener("resize",mM)}function cO(a,n,s){let l=a.canvas,r=l&&zp(l);if(!r)return;let c=gx((h,p)=>{let g=r.clientWidth;if(s(h,p),g<r.clientWidth)s()},window),f=new ResizeObserver((h)=>{let p=h[0],g=p.contentRect.width,x=p.contentRect.height;if(g===0&&x===0)return;c(g,x)});return f.observe(r),rO(a,c),f}function Ux(a,n,s){if(s)s.disconnect();if(n==="resize")uO(a)}function dO(a,n,s){let l=a.canvas,r=gx((c)=>{if(a.ctx!==null)s(sO(c,a))},a);return oO(l,n,r),r}class gM extends av{acquireContext(a,n){let s=a&&a.getContext&&a.getContext("2d");if(s&&s.canvas===a)return aO(a,n),s;return null}releaseContext(a){let n=a.canvas;if(!n[Gp])return!1;let s=n[Gp].initial;["height","width"].forEach((r)=>{let c=s[r];if(st(c))n.removeAttribute(r);else n.setAttribute(r,c)});let l=s.style||{};return Object.keys(l).forEach((r)=>{n.style[r]=l[r]}),n.width=n.width,delete n[Gp],!0}addEventListener(a,n,s){this.removeEventListener(a,n);let l=a.$proxies||(a.$proxies={}),c={attach:iO,detach:lO,resize:cO}[n]||dO;l[n]=c(a,n,s)}removeEventListener(a,n){let s=a.$proxies||(a.$proxies={}),l=s[n];if(!l)return;({attach:Ux,detach:Ux,resize:Ux}[n]||nO)(a,n,l),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(a,n,s,l){return sI(a,n,s,l)}isAttached(a){let n=a&&zp(a);return!!(n&&n.isConnected)}}function fO(a){if(!Np()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return hM;return gM}class Ds{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}hasValue(){return gu(this.x)&&gu(this.y)}getProps(a,n){let s=this.$animations;if(!n||!s)return this;let l={};return a.forEach((r)=>{l[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),l}}function hO(a,n){let s=a.options.ticks,l=pO(a),r=Math.min(s.maxTicksLimit||l,l),c=s.major.enabled?gO(n):[],f=c.length,h=c[0],p=c[f-1],g=[];if(f>r)return yO(n,g,c,f/r),g;let x=mO(c,n,r);if(f>0){let y,S,T=f>1?Math.round((p-h)/(f-1)):null;Fp(n,g,x,st(T)?0:h-T,h);for(y=0,S=f-1;y<S;y++)Fp(n,g,x,c[y],c[y+1]);return Fp(n,g,x,p,st(T)?n.length:p+T),g}return Fp(n,g,x),g}function pO(a){let n=a.options.offset,s=a._tickSize(),l=a._length/s+(n?0:1),r=a._maxLength/s;return Math.floor(Math.min(l,r))}function mO(a,n,s){let l=bO(a),r=n.length/s;if(!l)return Math.max(r,1);let c=Bw(l);for(let f=0,h=c.length-1;f<h;f++){let p=c[f];if(p>r)return p}return Math.max(r,1)}function gO(a){let n=[],s,l;for(s=0,l=a.length;s<l;s++)if(a[s].major)n.push(s);return n}function yO(a,n,s,l){let r=0,c=s[0],f;l=Math.ceil(l);for(f=0;f<a.length;f++)if(f===c)n.push(a[f]),r++,c=s[r*l]}function Fp(a,n,s,l,r){let c=We(l,0),f=Math.min(We(r,a.length),a.length),h=0,p,g,x;if(s=Math.ceil(s),r)p=r-l,s=p/Math.floor(p/s);x=c;while(x<0)h++,x=Math.round(c+h*s);for(g=Math.max(c,0);g<f;g++)if(g===x)n.push(a[g]),h++,x=Math.round(c+h*s)}function bO(a){let n=a.length,s,l;if(n<2)return!1;for(l=a[0],s=1;s<n;++s)if(a[s]-a[s-1]!==l)return!1;return l}var xO=(a)=>a==="left"?"right":a==="right"?"left":a,II=(a,n,s)=>n==="top"||n==="left"?a[n]+s:a[n]-s,MI=(a,n)=>Math.min(n||a,a);function AI(a,n){let s=[],l=a.length/n,r=a.length,c=0;for(;c<r;c+=l)s.push(a[Math.floor(c)]);return s}function vO(a,n,s){let l=a.ticks.length,r=Math.min(n,l-1),c=a._startPixel,f=a._endPixel,h=0.000001,p=a.getPixelForTick(r),g;if(s){if(l===1)g=Math.max(p-c,f-p);else if(n===0)g=(a.getPixelForTick(1)-p)/2;else g=(p-a.getPixelForTick(r-1))/2;if(p+=r<n?g:-g,p<c-0.000001||p>f+0.000001)return}return p}function SO(a,n){pt(a,(s)=>{let l=s.gc,r=l.length/2,c;if(r>n){for(c=0;c<r;++c)delete s.data[l[c]];l.splice(0,r)}})}function yd(a){return a.drawTicks?a.tickLength:0}function kI(a,n){if(!a.display)return 0;let s=oa(a.font,n),l=Ta(a.padding);return(At(a.text)?a.text.length:1)*s.lineHeight+l.height}function LO(a,n){return ks(a,{scale:n,type:"scale"})}function CO(a,n,s){return ks(a,{tick:s,index:n,type:"tick"})}function TO(a,n,s){let l=Dp(a);if(s&&n!=="right"||!s&&n==="right")l=xO(l);return l}function wO(a,n,s,l){let{top:r,left:c,bottom:f,right:h,chart:p}=a,{chartArea:g,scales:x}=p,y=0,S,T,M,k=f-r,w=h-c;if(a.isHorizontal()){if(T=Ca(l,c,h),at(s)){let _=Object.keys(s)[0],U=s[_];M=x[_].getPixelForValue(U)+k-n}else if(s==="center")M=(g.bottom+g.top)/2+k-n;else M=II(a,s,n);S=h-c}else{if(at(s)){let _=Object.keys(s)[0],U=s[_];T=x[_].getPixelForValue(U)-w+n}else if(s==="center")T=(g.left+g.right)/2-w+n;else T=II(a,s,n);M=Ca(l,f,r),y=s==="left"?-Ja:Ja}return{titleX:T,titleY:M,maxWidth:S,rotation:y}}class jl extends Ds{constructor(a){super();this.id=a.id,this.type=a.type,this.options=void 0,this.ctx=a.ctx,this.chart=a.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(a){this.options=a.setContext(this.getContext()),this.axis=a.axis,this._userMin=this.parse(a.min),this._userMax=this.parse(a.max),this._suggestedMin=this.parse(a.suggestedMin),this._suggestedMax=this.parse(a.suggestedMax)}parse(a,n){return a}getUserBounds(){let{_userMin:a,_userMax:n,_suggestedMin:s,_suggestedMax:l}=this;return a=ao(a,Number.POSITIVE_INFINITY),n=ao(n,Number.NEGATIVE_INFINITY),s=ao(s,Number.POSITIVE_INFINITY),l=ao(l,Number.NEGATIVE_INFINITY),{min:ao(a,s),max:ao(n,l),minDefined:Ut(a),maxDefined:Ut(n)}}getMinMax(a){let{min:n,max:s,minDefined:l,maxDefined:r}=this.getUserBounds(),c;if(l&&r)return{min:n,max:s};let f=this.getMatchingVisibleMetas();for(let h=0,p=f.length;h<p;++h){if(c=f[h].controller.getMinMax(this,a),!l)n=Math.min(n,c.min);if(!r)s=Math.max(s,c.max)}return n=r&&n>s?s:n,s=l&&n>s?n:s,{min:ao(n,ao(s,n)),max:ao(s,ao(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let a=this.chart.data;return this.options.labels||(this.isHorizontal()?a.xLabels:a.yLabels)||a.labels||[]}getLabelItems(a=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(a))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Tt(this.options.beforeUpdate,[this])}update(a,n,s){let{beginAtZero:l,grace:r,ticks:c}=this.options,f=c.sampleSize;if(this.beforeUpdate(),this.maxWidth=a,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Jw(this,r,l),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let h=f<this.ticks.length;if(this._convertTicksToLabels(h?AI(this.ticks,f):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),c.display&&(c.autoSkip||c.source==="auto"))this.ticks=hO(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(h)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let a=this.options.reverse,n,s;if(this.isHorizontal())n=this.left,s=this.right;else n=this.top,s=this.bottom,a=!a;this._startPixel=n,this._endPixel=s,this._reversePixels=a,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Tt(this.options.afterUpdate,[this])}beforeSetDimensions(){Tt(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Tt(this.options.afterSetDimensions,[this])}_callHooks(a){this.chart.notifyPlugins(a,this.getContext()),Tt(this.options[a],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Tt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(a){let n=this.options.ticks,s,l,r;for(s=0,l=a.length;s<l;s++)r=a[s],r.label=Tt(n.callback,[r.value,s,a],this)}afterTickToLabelConversion(){Tt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Tt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let a=this.options,n=a.ticks,s=MI(this.ticks.length,a.ticks.maxTicksLimit),l=n.minRotation||0,r=n.maxRotation,c=l,f,h,p;if(!this._isVisible()||!n.display||l>=r||s<=1||!this.isHorizontal()){this.labelRotation=l;return}let g=this._getLabelSizes(),x=g.widest.width,y=g.highest.height,S=to(this.chart.width-x,0,this.maxWidth);if(f=a.offset?this.maxWidth/s:S/(s-1),x+6>f)f=S/(s-(a.offset?0.5:1)),h=this.maxHeight-yd(a.grid)-n.padding-kI(a.title,this.chart.options.font),p=Math.sqrt(x*x+y*y),c=Rp(Math.min(Math.asin(to((g.highest.height+6)/f,-1,1)),Math.asin(to(h/p,-1,1))-Math.asin(to(y/p,-1,1)))),c=Math.max(l,Math.min(r,c));this.labelRotation=c}afterCalculateLabelRotation(){Tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Tt(this.options.beforeFit,[this])}fit(){let a={width:0,height:0},{chart:n,options:{ticks:s,title:l,grid:r}}=this,c=this._isVisible(),f=this.isHorizontal();if(c){let h=kI(l,n.options.font);if(f)a.width=this.maxWidth,a.height=yd(r)+h;else a.height=this.maxHeight,a.width=yd(r)+h;if(s.display&&this.ticks.length){let{first:p,last:g,widest:x,highest:y}=this._getLabelSizes(),S=s.padding*2,T=Ms(this.labelRotation),M=Math.cos(T),k=Math.sin(T);if(f){let w=s.mirror?0:k*x.width+M*y.height;a.height=Math.min(this.maxHeight,a.height+w+S)}else{let w=s.mirror?0:M*x.width+k*y.height;a.width=Math.min(this.maxWidth,a.width+w+S)}this._calculatePadding(p,g,k,M)}}if(this._handleMargins(),f)this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=a.height;else this.width=a.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom}_calculatePadding(a,n,s,l){let{ticks:{align:r,padding:c},position:f}=this.options,h=this.labelRotation!==0,p=f!=="top"&&this.axis==="x";if(this.isHorizontal()){let g=this.getPixelForTick(0)-this.left,x=this.right-this.getPixelForTick(this.ticks.length-1),y=0,S=0;if(h)if(p)y=l*a.width,S=s*n.height;else y=s*a.height,S=l*n.width;else if(r==="start")S=n.width;else if(r==="end")y=a.width;else if(r!=="inner")y=a.width/2,S=n.width/2;this.paddingLeft=Math.max((y-g+c)*this.width/(this.width-g),0),this.paddingRight=Math.max((S-x+c)*this.width/(this.width-x),0)}else{let g=n.height/2,x=a.height/2;if(r==="start")g=0,x=a.height;else if(r==="end")g=n.height,x=0;this.paddingTop=g+c,this.paddingBottom=x+c}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){Tt(this.options.afterFit,[this])}isHorizontal(){let{axis:a,position:n}=this.options;return n==="top"||n==="bottom"||a==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(a){this.beforeTickToLabelConversion(),this.generateTickLabels(a);let n,s;for(n=0,s=a.length;n<s;n++)if(st(a[n].label))a.splice(n,1),s--,n--;this.afterTickToLabelConversion()}_getLabelSizes(){let a=this._labelSizes;if(!a){let n=this.options.ticks.sampleSize,s=this.ticks;if(n<s.length)s=AI(s,n);this._labelSizes=a=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return a}_computeLabelSizes(a,n,s){let{ctx:l,_longestTextCache:r}=this,c=[],f=[],h=Math.floor(n/MI(n,s)),p=0,g=0,x,y,S,T,M,k,w,_,U,q,W;for(x=0;x<n;x+=h){if(T=a[x].label,M=this._resolveTickFontOptions(x),l.font=k=M.string,w=r[k]=r[k]||{data:{},gc:[]},_=M.lineHeight,U=q=0,!st(T)&&!At(T))U=rd(l,w.data,w.gc,U,T),q=_;else if(At(T)){for(y=0,S=T.length;y<S;++y)if(W=T[y],!st(W)&&!At(W))U=rd(l,w.data,w.gc,U,W),q+=_}c.push(U),f.push(q),p=Math.max(U,p),g=Math.max(q,g)}SO(r,n);let Q=c.indexOf(p),ne=f.indexOf(g),J=(K)=>({width:c[K]||0,height:f[K]||0});return{first:J(0),last:J(n-1),widest:J(Q),highest:J(ne),widths:c,heights:f}}getLabelForValue(a){return a}getPixelForValue(a,n){return NaN}getValueForPixel(a){}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getPixelForDecimal(a){if(this._reversePixels)a=1-a;let n=this._startPixel+a*this._length;return Uw(this._alignToPixels?Ei(this.chart,n,0):n)}getDecimalForPixel(a){let n=(a-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:a,max:n}=this;return a<0&&n<0?n:a>0&&n>0?a:0}getContext(a){let n=this.ticks||[];if(a>=0&&a<n.length){let s=n[a];return s.$context||(s.$context=CO(this.getContext(),a,s))}return this.$context||(this.$context=LO(this.chart.getContext(),this))}_tickSize(){let a=this.options.ticks,n=Ms(this.labelRotation),s=Math.abs(Math.cos(n)),l=Math.abs(Math.sin(n)),r=this._getLabelSizes(),c=a.autoSkipPadding||0,f=r?r.widest.width+c:0,h=r?r.highest.height+c:0;return this.isHorizontal()?h*s>f*l?f/s:h/l:h*l<f*s?h/s:f/l}_isVisible(){let a=this.options.display;if(a!=="auto")return!!a;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(a){let n=this.axis,s=this.chart,l=this.options,{grid:r,position:c,border:f}=l,h=r.offset,p=this.isHorizontal(),x=this.ticks.length+(h?1:0),y=yd(r),S=[],T=f.setContext(this.getContext()),M=T.display?T.width:0,k=M/2,w=function(G){return Ei(s,G,M)},_,U,q,W,Q,ne,J,K,re,V,he,Le;if(c==="top")_=w(this.bottom),ne=this.bottom-y,K=_-k,V=w(a.top)+k,Le=a.bottom;else if(c==="bottom")_=w(this.top),V=a.top,Le=w(a.bottom)-k,ne=_+k,K=this.top+y;else if(c==="left")_=w(this.right),Q=this.right-y,J=_-k,re=w(a.left)+k,he=a.right;else if(c==="right")_=w(this.left),re=a.left,he=w(a.right)-k,Q=_+k,J=this.left+y;else if(n==="x"){if(c==="center")_=w((a.top+a.bottom)/2+0.5);else if(at(c)){let G=Object.keys(c)[0],le=c[G];_=w(this.chart.scales[G].getPixelForValue(le))}V=a.top,Le=a.bottom,ne=_+k,K=ne+y}else if(n==="y"){if(c==="center")_=w((a.left+a.right)/2);else if(at(c)){let G=Object.keys(c)[0],le=c[G];_=w(this.chart.scales[G].getPixelForValue(le))}Q=_-k,J=Q-y,re=a.left,he=a.right}let we=We(l.ticks.maxTicksLimit,x),Oe=Math.max(1,Math.ceil(x/we));for(U=0;U<x;U+=Oe){let G=this.getContext(U),le=r.setContext(G),pe=f.setContext(G),Qe=le.lineWidth,je=le.color,D=pe.dash||[],Z=pe.dashOffset,me=le.tickWidth,ge=le.tickColor,Ge=le.tickBorderDash||[],Ft=le.tickBorderDashOffset;if(q=vO(this,U,h),q===void 0)continue;if(W=Ei(s,q,Qe),p)Q=J=re=he=W;else ne=K=V=Le=W;S.push({tx1:Q,ty1:ne,tx2:J,ty2:K,x1:re,y1:V,x2:he,y2:Le,width:Qe,color:je,borderDash:D,borderDashOffset:Z,tickWidth:me,tickColor:ge,tickBorderDash:Ge,tickBorderDashOffset:Ft})}return this._ticksLength=x,this._borderValue=_,S}_computeLabelItems(a){let n=this.axis,s=this.options,{position:l,ticks:r}=s,c=this.isHorizontal(),f=this.ticks,{align:h,crossAlign:p,padding:g,mirror:x}=r,y=yd(s.grid),S=y+g,T=x?-g:S,M=-Ms(this.labelRotation),k=[],w,_,U,q,W,Q,ne,J,K,re,V,he,Le="middle";if(l==="top")Q=this.bottom-T,ne=this._getXAxisLabelAlignment();else if(l==="bottom")Q=this.top+T,ne=this._getXAxisLabelAlignment();else if(l==="left"){let Oe=this._getYAxisLabelAlignment(y);ne=Oe.textAlign,W=Oe.x}else if(l==="right"){let Oe=this._getYAxisLabelAlignment(y);ne=Oe.textAlign,W=Oe.x}else if(n==="x"){if(l==="center")Q=(a.top+a.bottom)/2+S;else if(at(l)){let Oe=Object.keys(l)[0],G=l[Oe];Q=this.chart.scales[Oe].getPixelForValue(G)+S}ne=this._getXAxisLabelAlignment()}else if(n==="y"){if(l==="center")W=(a.left+a.right)/2-S;else if(at(l)){let Oe=Object.keys(l)[0],G=l[Oe];W=this.chart.scales[Oe].getPixelForValue(G)}ne=this._getYAxisLabelAlignment(y).textAlign}if(n==="y"){if(h==="start")Le="top";else if(h==="end")Le="bottom"}let we=this._getLabelSizes();for(w=0,_=f.length;w<_;++w){U=f[w],q=U.label;let Oe=r.setContext(this.getContext(w));J=this.getPixelForTick(w)+r.labelOffset,K=this._resolveTickFontOptions(w),re=K.lineHeight,V=At(q)?q.length:1;let G=V/2,le=Oe.color,pe=Oe.textStrokeColor,Qe=Oe.textStrokeWidth,je=ne;if(c){if(W=J,ne==="inner")if(w===_-1)je=!this.options.reverse?"right":"left";else if(w===0)je=!this.options.reverse?"left":"right";else je="center";if(l==="top")if(p==="near"||M!==0)he=-V*re+re/2;else if(p==="center")he=-we.highest.height/2-G*re+re;else he=-we.highest.height+re/2;else if(p==="near"||M!==0)he=re/2;else if(p==="center")he=we.highest.height/2-G*re;else he=we.highest.height-V*re;if(x)he*=-1;if(M!==0&&!Oe.showLabelBackdrop)W+=re/2*Math.sin(M)}else Q=J,he=(1-V)*re/2;let D;if(Oe.showLabelBackdrop){let Z=Ta(Oe.backdropPadding),me=we.heights[w],ge=we.widths[w],Ge=he-Z.top,Ft=0-Z.left;switch(Le){case"middle":Ge-=me/2;break;case"bottom":Ge-=me;break}switch(ne){case"center":Ft-=ge/2;break;case"right":Ft-=ge;break;case"inner":if(w===_-1)Ft-=ge;else if(w>0)Ft-=ge/2;break}D={left:Ft,top:Ge,width:ge+Z.width,height:me+Z.height,color:Oe.backdropColor}}k.push({label:q,font:K,textOffset:he,options:{rotation:M,color:le,strokeColor:pe,strokeWidth:Qe,textAlign:je,textBaseline:Le,translation:[W,Q],backdrop:D}})}return k}_getXAxisLabelAlignment(){let{position:a,ticks:n}=this.options;if(-Ms(this.labelRotation))return a==="top"?"left":"right";let l="center";if(n.align==="start")l="left";else if(n.align==="end")l="right";else if(n.align==="inner")l="inner";return l}_getYAxisLabelAlignment(a){let{position:n,ticks:{crossAlign:s,mirror:l,padding:r}}=this.options,c=this._getLabelSizes(),f=a+r,h=c.widest.width,p,g;if(n==="left")if(l)if(g=this.right+r,s==="near")p="left";else if(s==="center")p="center",g+=h/2;else p="right",g+=h;else if(g=this.right-f,s==="near")p="right";else if(s==="center")p="center",g-=h/2;else p="left",g=this.left;else if(n==="right")if(l)if(g=this.left+r,s==="near")p="right";else if(s==="center")p="center",g-=h/2;else p="left",g-=h;else if(g=this.left+f,s==="near")p="left";else if(s==="center")p="center",g+=h/2;else p="right",g=this.right;else p="right";return{textAlign:p,x:g}}_computeLabelArea(){if(this.options.ticks.mirror)return;let a=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:a.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:a.width}}drawBackground(){let{ctx:a,options:{backgroundColor:n},left:s,top:l,width:r,height:c}=this;if(n)a.save(),a.fillStyle=n,a.fillRect(s,l,r,c),a.restore()}getLineWidthForValue(a){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let l=this.ticks.findIndex((r)=>r.value===a);if(l>=0)return n.setContext(this.getContext(l)).lineWidth;return 0}drawGrid(a){let n=this.options.grid,s=this.ctx,l=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(a)),r,c,f=(h,p,g)=>{if(!g.width||!g.color)return;s.save(),s.lineWidth=g.width,s.strokeStyle=g.color,s.setLineDash(g.borderDash||[]),s.lineDashOffset=g.borderDashOffset,s.beginPath(),s.moveTo(h.x,h.y),s.lineTo(p.x,p.y),s.stroke(),s.restore()};if(n.display)for(r=0,c=l.length;r<c;++r){let h=l[r];if(n.drawOnChartArea)f({x:h.x1,y:h.y1},{x:h.x2,y:h.y2},h);if(n.drawTicks)f({x:h.tx1,y:h.ty1},{x:h.tx2,y:h.ty2},{color:h.tickColor,width:h.tickWidth,borderDash:h.tickBorderDash,borderDashOffset:h.tickBorderDashOffset})}}drawBorder(){let{chart:a,ctx:n,options:{border:s,grid:l}}=this,r=s.setContext(this.getContext()),c=s.display?r.width:0;if(!c)return;let f=l.setContext(this.getContext(0)).lineWidth,h=this._borderValue,p,g,x,y;if(this.isHorizontal())p=Ei(a,this.left,c)-c/2,g=Ei(a,this.right,f)+f/2,x=y=h;else x=Ei(a,this.top,c)-c/2,y=Ei(a,this.bottom,f)+f/2,p=g=h;n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(p,x),n.lineTo(g,y),n.stroke(),n.restore()}drawLabels(a){if(!this.options.ticks.display)return;let s=this.ctx,l=this._computeLabelArea();if(l)dd(s,l);let r=this.getLabelItems(a);for(let c of r){let{options:f,font:h,label:p,textOffset:g}=c;Oi(s,p,0,g,h,f)}if(l)fd(s)}drawTitle(){let{ctx:a,options:{position:n,title:s,reverse:l}}=this;if(!s.display)return;let r=oa(s.font),c=Ta(s.padding),f=s.align,h=r.lineHeight/2;if(n==="bottom"||n==="center"||at(n)){if(h+=c.bottom,At(s.text))h+=r.lineHeight*(s.text.length-1)}else h+=c.top;let{titleX:p,titleY:g,maxWidth:x,rotation:y}=wO(this,h,n,f);Oi(a,s.text,0,0,r,{color:s.color,maxWidth:x,rotation:y,textAlign:TO(f,n,l),textBaseline:"middle",translation:[p,g]})}draw(a){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(a),this.drawBorder(),this.drawTitle(),this.drawLabels(a)}_layers(){let a=this.options,n=a.ticks&&a.ticks.z||0,s=We(a.grid&&a.grid.z,-1),l=We(a.border&&a.border.z,0);if(!this._isVisible()||this.draw!==jl.prototype.draw)return[{z:n,draw:(r)=>{this.draw(r)}}];return[{z:s,draw:(r)=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:l,draw:()=>{this.drawBorder()}},{z:n,draw:(r)=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(a){let n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",l=[],r,c;for(r=0,c=n.length;r<c;++r){let f=n[r];if(f[s]===this.id&&(!a||f.type===a))l.push(f)}return l}_resolveTickFontOptions(a){let n=this.options.ticks.setContext(this.getContext(a));return oa(n.font)}_maxDigits(){let a=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/a}}class vd{constructor(a,n,s){this.type=a,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(a){return Object.prototype.isPrototypeOf.call(this.type.prototype,a.prototype)}register(a){let n=Object.getPrototypeOf(a),s;if(AO(n))s=this.register(n);let l=this.items,r=a.id,c=this.scope+"."+r;if(!r)throw Error("class does not have id: "+a);if(r in l)return c;if(l[r]=a,IO(a,c,s),this.override)Ht.override(a.id,a.overrides);return c}get(a){return this.items[a]}unregister(a){let n=this.items,s=a.id,l=this.scope;if(s in n)delete n[s];if(l&&s in Ht[l]){if(delete Ht[l][s],this.override)delete Di[s]}}}function IO(a,n,s){let l=du(Object.create(null),[s?Ht.get(s):{},Ht.get(n),a.defaults]);if(Ht.set(n,l),a.defaultRoutes)MO(n,a.defaultRoutes);if(a.descriptors)Ht.describe(n,a.descriptors)}function MO(a,n){Object.keys(n).forEach((s)=>{let l=s.split("."),r=l.pop(),c=[a].concat(l).join("."),f=n[s].split("."),h=f.pop(),p=f.join(".");Ht.route(c,r,p,h)})}function AO(a){return"id"in a&&"defaults"in a}class yM{constructor(){this.controllers=new vd($p,"datasets",!0),this.elements=new vd(Ds,"elements"),this.plugins=new vd(Object,"plugins"),this.scales=new vd(jl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...a){this._each("register",a)}remove(...a){this._each("unregister",a)}addControllers(...a){this._each("register",a,this.controllers)}addElements(...a){this._each("register",a,this.elements)}addPlugins(...a){this._each("register",a,this.plugins)}addScales(...a){this._each("register",a,this.scales)}getController(a){return this._get(a,this.controllers,"controller")}getElement(a){return this._get(a,this.elements,"element")}getPlugin(a){return this._get(a,this.plugins,"plugin")}getScale(a){return this._get(a,this.scales,"scale")}removeControllers(...a){this._each("unregister",a,this.controllers)}removeElements(...a){this._each("unregister",a,this.elements)}removePlugins(...a){this._each("unregister",a,this.plugins)}removeScales(...a){this._each("unregister",a,this.scales)}_each(a,n,s){[...n].forEach((l)=>{let r=s||this._getRegistryForType(l);if(s||r.isForType(l)||r===this.plugins&&l.id)this._exec(a,r,l);else pt(l,(c)=>{let f=s||this._getRegistryForType(c);this._exec(a,f,c)})})}_exec(a,n,s){let l=kp(a);Tt(s["before"+l],[],s),n[a](s),Tt(s["after"+l],[],s)}_getRegistryForType(a){for(let n=0;n<this._typedRegistries.length;n++){let s=this._typedRegistries[n];if(s.isForType(a))return s}return this.plugins}_get(a,n,s){let l=n.get(a);if(l===void 0)throw Error('"'+a+'" is not a registered '+s+".");return l}}var $n=new yM;class bM{constructor(){this._init=void 0}notify(a,n,s,l){if(n==="beforeInit")this._init=this._createDescriptors(a,!0),this._notify(this._init,a,"install");if(this._init===void 0)return;let r=l?this._descriptors(a).filter(l):this._descriptors(a),c=this._notify(r,a,n,s);if(n==="afterDestroy")this._notify(r,a,"stop"),this._notify(this._init,a,"uninstall"),this._init=void 0;return c}_notify(a,n,s,l){l=l||{};for(let r of a){let c=r.plugin,f=c[s],h=[n,l,r.options];if(Tt(f,h,c)===!1&&l.cancelable)return!1}return!0}invalidate(){if(!st(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(a){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(a);return this._notifyStateChanges(a),n}_createDescriptors(a,n){let s=a&&a.config,l=We(s.options&&s.options.plugins,{}),r=kO(s);return l===!1&&!n?[]:_O(a,r,l,n)}_notifyStateChanges(a){let n=this._oldCache||[],s=this._cache,l=(r,c)=>r.filter((f)=>!c.some((h)=>f.plugin.id===h.plugin.id));this._notify(l(n,s),a,"stop"),this._notify(l(s,n),a,"start")}}function kO(a){let n={},s=[],l=Object.keys($n.plugins.items);for(let c=0;c<l.length;c++)s.push($n.getPlugin(l[c]));let r=a.plugins||[];for(let c=0;c<r.length;c++){let f=r[c];if(s.indexOf(f)===-1)s.push(f),n[f.id]=!0}return{plugins:s,localIds:n}}function RO(a,n){if(!n&&a===!1)return null;if(a===!0)return{};return a}function _O(a,{plugins:n,localIds:s},l,r){let c=[],f=a.getContext();for(let h of n){let p=h.id,g=RO(l[p],r);if(g===null)continue;c.push({plugin:h,options:DO(a.config,{plugin:h,local:s[p]},g,f)})}return c}function DO(a,{plugin:n,local:s},l,r){let c=a.pluginScopeKeys(n),f=a.getOptionScopes(l,c);if(s&&n.defaults)f.push(n.defaults);return a.createResolver(f,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function jx(a,n){let s=Ht.datasets[a]||{};return((n.datasets||{})[a]||{}).indexAxis||n.indexAxis||s.indexAxis||"x"}function EO(a,n){let s=a;if(a==="_index_")s=n;else if(a==="_value_")s=n==="x"?"y":"x";return s}function OO(a,n){return a===n?"_index_":"_value_"}function RI(a){if(a==="x"||a==="y"||a==="r")return a}function PO(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function Gx(a,...n){if(RI(a))return a;for(let s of n){let l=s.axis||PO(s.position)||a.length>1&&RI(a[0].toLowerCase());if(l)return l}throw Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function _I(a,n,s){if(s[n+"AxisID"]===a)return{axis:n}}function BO(a,n){if(n.data&&n.data.datasets){let s=n.data.datasets.filter((l)=>l.xAxisID===a||l.yAxisID===a);if(s.length)return _I(a,"x",s[0])||_I(a,"y",s[0])}return{}}function NO(a,n){let s=Di[a.type]||{scales:{}},l=n.scales||{},r=jx(a.type,n),c=Object.create(null);return Object.keys(l).forEach((f)=>{let h=l[f];if(!at(h))return console.error(`Invalid scale configuration for scale: ${f}`);if(h._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${f}`);let p=Gx(f,h,BO(f,a),Ht.scales[h.type]),g=OO(p,r),x=s.scales||{};c[f]=hu(Object.create(null),[{axis:p},h,x[p],x[g]])}),a.data.datasets.forEach((f)=>{let h=f.type||a.type,p=f.indexAxis||jx(h,n),x=(Di[h]||{}).scales||{};Object.keys(x).forEach((y)=>{let S=EO(y,p),T=f[S+"AxisID"]||S;c[T]=c[T]||Object.create(null),hu(c[T],[{axis:S},l[T],x[y]])})}),Object.keys(c).forEach((f)=>{let h=c[f];hu(h,[Ht.scales[h.type],Ht.scale])}),c}function xM(a){let n=a.options||(a.options={});n.plugins=We(n.plugins,{}),n.scales=NO(a,n)}function vM(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function zO(a){return a=a||{},a.data=vM(a.data),xM(a),a}var DI=new Map,SM=new Set;function qp(a,n){let s=DI.get(a);if(!s)s=n(),DI.set(a,s),SM.add(s);return s}var bd=(a,n,s)=>{let l=Hl(n,s);if(l!==void 0)a.add(l)};class LM{constructor(a){this._config=zO(a),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(a){this._config.type=a}get data(){return this._config.data}set data(a){this._config.data=vM(a)}get options(){return this._config.options}set options(a){this._config.options=a}get plugins(){return this._config.plugins}update(){let a=this._config;this.clearCache(),xM(a)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(a){return qp(a,()=>[[`datasets.${a}`,""]])}datasetAnimationScopeKeys(a,n){return qp(`${a}.transition.${n}`,()=>[[`datasets.${a}.transitions.${n}`,`transitions.${n}`],[`datasets.${a}`,""]])}datasetElementScopeKeys(a,n){return qp(`${a}-${n}`,()=>[[`datasets.${a}.elements.${n}`,`datasets.${a}`,`elements.${n}`,""]])}pluginScopeKeys(a){let n=a.id,s=this.type;return qp(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...a.additionalOptionScopes||[]]])}_cachedScopes(a,n){let s=this._scopeCache,l=s.get(a);if(!l||n)l=new Map,s.set(a,l);return l}getOptionScopes(a,n,s){let{options:l,type:r}=this,c=this._cachedScopes(a,s),f=c.get(n);if(f)return f;let h=new Set;n.forEach((g)=>{if(a)h.add(a),g.forEach((x)=>bd(h,a,x));g.forEach((x)=>bd(h,l,x)),g.forEach((x)=>bd(h,Di[r]||{},x)),g.forEach((x)=>bd(h,Ht,x)),g.forEach((x)=>bd(h,Op,x))});let p=Array.from(h);if(p.length===0)p.push(Object.create(null));if(SM.has(n))c.set(n,p);return p}chartOptionScopes(){let{options:a,type:n}=this;return[a,Di[n]||{},Ht.datasets[n]||{},{type:n},Ht,Op]}resolveNamedOptions(a,n,s,l=[""]){let r={$shared:!0},{resolver:c,subPrefixes:f}=EI(this._resolverCache,a,l),h=c;if(HO(c,n)){r.$shared=!1,s=ws(s)?s():s;let p=this.createResolver(a,s,f);h=Ul(c,s,p)}for(let p of n)r[p]=h[p];return r}createResolver(a,n,s=[""],l){let{resolver:r}=EI(this._resolverCache,a,s);return at(n)?Ul(r,n,void 0,l):r}}function EI(a,n,s){let l=a.get(n);if(!l)l=new Map,a.set(n,l);let r=s.join(),c=l.get(r);if(!c)c={resolver:Bp(n,s),subPrefixes:s.filter((h)=>!h.toLowerCase().includes("hover"))},l.set(r,c);return c}var UO=(a)=>at(a)&&Object.getOwnPropertyNames(a).some((n)=>ws(a[n]));function HO(a,n){let{isScriptable:s,isIndexable:l}=Cx(a);for(let r of n){let c=s(r),f=l(r),h=(f||c)&&a[r];if(c&&(ws(h)||UO(h))||f&&At(h))return!0}return!1}var FO="4.5.1",qO=["top","bottom","left","right","chartArea"];function OI(a,n){return a==="top"||a==="bottom"||qO.indexOf(a)===-1&&n==="x"}function PI(a,n){return function(s,l){return s[a]===l[a]?s[n]-l[n]:s[a]-l[a]}}function BI(a){let n=a.chart,s=n.options.animation;n.notifyPlugins("afterRender"),Tt(s&&s.onComplete,[a],n)}function VO(a){let n=a.chart,s=n.options.animation;Tt(s&&s.onProgress,[a],n)}function CM(a){if(Np()&&typeof a==="string")a=document.getElementById(a);else if(a&&a.length)a=a[0];if(a&&a.canvas)a=a.canvas;return a}var Yp={},NI=(a)=>{let n=CM(a);return Object.values(Yp).filter((s)=>s.canvas===n).pop()};function jO(a,n,s){let l=Object.keys(a);for(let r of l){let c=+r;if(c>=n){let f=a[r];if(delete a[r],s>0||c>n)a[c+s]=f}}}function GO(a,n,s,l){if(!s||a.type==="mouseout")return null;if(l)return n;return a}class Gl{static defaults=Ht;static instances=Yp;static overrides=Di;static registry=$n;static version=FO;static getChart=NI;static register(...a){$n.add(...a),zI()}static unregister(...a){$n.remove(...a),zI()}constructor(a,n){let s=this.config=new LM(n),l=CM(a),r=NI(l);if(r)throw Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let c=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||fO(l)),this.platform.updateConfig(s);let f=this.platform.acquireContext(l,c.aspectRatio),h=f&&f.canvas,p=h&&h.height,g=h&&h.width;if(this.id=Dw(),this.ctx=f,this.canvas=h,this.width=g,this.height=p,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new bM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=jw((x)=>this.update(x),c.resizeDelay||0),this._dataChanges=[],Yp[this.id]=this,!f||!h){console.error("Failed to create chart: can't acquire context from the given item");return}if(Rs.listen(this,"complete",BI),Rs.listen(this,"progress",VO),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:a,maintainAspectRatio:n},width:s,height:l,_aspectRatio:r}=this;if(!st(a))return a;if(n&&r)return r;return l?s/l:null}get data(){return this.config.data}set data(a){this.config.data=a}get options(){return this._options}set options(a){this.config.options=a}get registry(){return $n}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else Ix(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return xx(this.canvas,this.ctx),this}stop(){return Rs.stop(this),this}resize(a,n){if(!Rs.running(this))this._resize(a,n);else this._resizeBeforeDraw={width:a,height:n}}_resize(a,n){let s=this.options,l=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,c=this.platform.getMaximumSize(l,a,n,r),f=s.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";if(this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,!Ix(this,f,!0))return;if(this.notifyPlugins("resize",{size:c}),Tt(s.onResize,[this,c],this),this.attached){if(this._doResize(h))this.render()}}ensureScalesHaveIDs(){let n=this.options.scales||{};pt(n,(s,l)=>{s.id=l})}buildOrUpdateScales(){let a=this.options,n=a.scales,s=this.scales,l=Object.keys(s).reduce((c,f)=>(c[f]=!1,c),{}),r=[];if(n)r=r.concat(Object.keys(n).map((c)=>{let f=n[c],h=Gx(c,f),p=h==="r",g=h==="x";return{options:f,dposition:p?"chartArea":g?"bottom":"left",dtype:p?"radialLinear":g?"category":"linear"}}));pt(r,(c)=>{let f=c.options,h=f.id,p=Gx(h,f),g=We(f.type,c.dtype);if(f.position===void 0||OI(f.position,p)!==OI(c.dposition))f.position=c.dposition;l[h]=!0;let x=null;if(h in s&&s[h].type===g)x=s[h];else x=new($n.getScale(g))({id:h,type:g,ctx:this.ctx,chart:this}),s[x.id]=x;x.init(f,a)}),pt(l,(c,f)=>{if(!c)delete s[f]}),pt(s,(c)=>{Xo.configure(this,c,c.options),Xo.addBox(this,c)})}_updateMetasets(){let a=this._metasets,n=this.data.datasets.length,s=a.length;if(a.sort((l,r)=>l.index-r.index),s>n){for(let l=n;l<s;++l)this._destroyDatasetMeta(l);a.splice(n,s-n)}this._sortedMetasets=a.slice(0).sort(PI("order","index"))}_removeUnreferencedMetasets(){let{_metasets:a,data:{datasets:n}}=this;if(a.length>n.length)delete this._stacks;a.forEach((s,l)=>{if(n.filter((r)=>r===s._dataset).length===0)this._destroyDatasetMeta(l)})}buildOrUpdateControllers(){let a=[],n=this.data.datasets,s,l;this._removeUnreferencedMetasets();for(s=0,l=n.length;s<l;s++){let r=n[s],c=this.getDatasetMeta(s),f=r.type||this.config.type;if(c.type&&c.type!==f)this._destroyDatasetMeta(s),c=this.getDatasetMeta(s);if(c.type=f,c.indexAxis=r.indexAxis||jx(f,this.options),c.order=r.order||0,c.index=s,c.label=""+r.label,c.visible=this.isDatasetVisible(s),c.controller)c.controller.updateIndex(s),c.controller.linkScales();else{let h=$n.getController(f),{datasetElementType:p,dataElementType:g}=Ht.datasets[f];Object.assign(h,{dataElementType:$n.getElement(g),datasetElementType:p&&$n.getElement(p)}),c.controller=new h(this,s),a.push(c.controller)}}return this._updateMetasets(),a}_resetElements(){pt(this.data.datasets,(a,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(a){let n=this.config;n.update();let s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),l=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:a,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let p=0,g=this.data.datasets.length;p<g;p++){let{controller:x}=this.getDatasetMeta(p),y=!l&&r.indexOf(x)===-1;x.buildOrUpdateElements(y),c=Math.max(+x.getMaxOverflow(),c)}if(c=this._minPadding=s.layout.autoPadding?c:0,this._updateLayout(c),!l)pt(r,(p)=>{p.reset()});this._updateDatasets(a),this.notifyPlugins("afterUpdate",{mode:a}),this._layers.sort(PI("z","_idx"));let{_active:f,_lastEvent:h}=this;if(h)this._eventHandler(h,!0);else if(f.length)this._updateHoverStyles(f,f,!0);this.render()}_updateScales(){pt(this.scales,(a)=>{Xo.removeBox(this,a)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let a=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(a.events);if(!rx(n,s)||!!this._responsiveListeners!==a.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:a}=this,n=this._getUniformDataChanges()||[];for(let{method:s,start:l,count:r}of n){let c=s==="_removeElements"?-r:r;jO(a,l,c)}}_getUniformDataChanges(){let a=this._dataChanges;if(!a||!a.length)return;this._dataChanges=[];let n=this.data.datasets.length,s=(r)=>new Set(a.filter((c)=>c[0]===r).map((c,f)=>f+","+c.splice(1).join(","))),l=s(0);for(let r=1;r<n;r++)if(!rx(l,s(r)))return;return Array.from(l).map((r)=>r.split(",")).map((r)=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(a){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Xo.update(this,this.width,this.height,a);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],pt(this.boxes,(l)=>{if(s&&l.position==="chartArea")return;if(l.configure)l.configure();this._layers.push(...l._layers())},this),this._layers.forEach((l,r)=>{l._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(a){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:a,cancelable:!0})===!1)return;for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,ws(a)?a({datasetIndex:n}):a);this.notifyPlugins("afterDatasetsUpdate",{mode:a})}_updateDataset(a,n){let s=this.getDatasetMeta(a),l={meta:s,index:a,mode:n,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",l)===!1)return;s.controller._update(n),l.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",l)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(Rs.has(this)){if(this.attached&&!Rs.running(this))Rs.start(this)}else this.draw(),BI({chart:this})}draw(){let a;if(this._resizeBeforeDraw){let{width:s,height:l}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,l)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(a=0;a<n.length&&n[a].z<=0;++a)n[a].draw(this.chartArea);this._drawDatasets();for(;a<n.length;++a)n[a].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(a){let n=this._sortedMetasets,s=[],l,r;for(l=0,r=n.length;l<r;++l){let c=n[l];if(!a||c.visible)s.push(c)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let a=this.getSortedVisibleDatasetMetas();for(let n=a.length-1;n>=0;--n)this._drawDataset(a[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(a){let n=this.ctx,s={meta:a,index:a.index,cancelable:!0},l=Dx(this,a);if(this.notifyPlugins("beforeDatasetDraw",s)===!1)return;if(l)dd(n,l);if(a.controller.draw(),l)fd(n);s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s)}isPointInArea(a){return Gn(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,n,s,l){let r=XE.modes[n];if(typeof r==="function")return r(this,a,s,l);return[]}getDatasetMeta(a){let n=this.data.datasets[a],s=this._metasets,l=s.filter((r)=>r&&r._dataset===n).pop();if(!l)l={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:a,_dataset:n,_parsed:[],_sorted:!1},s.push(l);return l}getContext(){return this.$context||(this.$context=ks(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(a){let n=this.data.datasets[a];if(!n)return!1;let s=this.getDatasetMeta(a);return typeof s.hidden==="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(a,n){let s=this.getDatasetMeta(a);s.hidden=!n}toggleDataVisibility(a){this._hiddenIndices[a]=!this._hiddenIndices[a]}getDataVisibility(a){return!this._hiddenIndices[a]}_updateVisibility(a,n,s){let l=s?"show":"hide",r=this.getDatasetMeta(a),c=r.controller._resolveAnimations(void 0,l);if(pu(n))r.data[n].hidden=!s,this.update();else this.setDatasetVisibility(a,s),c.update(r,{visible:s}),this.update((f)=>f.datasetIndex===a?l:void 0)}hide(a,n){this._updateVisibility(a,n,!1)}show(a,n){this._updateVisibility(a,n,!0)}_destroyDatasetMeta(a){let n=this._metasets[a];if(n&&n.controller)n.controller._destroy();delete this._metasets[a]}_stop(){let a,n;this.stop(),Rs.remove(this);for(a=0,n=this.data.datasets.length;a<n;++a)this._destroyDatasetMeta(a)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:a,ctx:n}=this;if(this._stop(),this.config.clearCache(),a)this.unbindEvents(),xx(a,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null;delete Yp[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...a){return this.canvas.toDataURL(...a)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let a=this._listeners,n=this.platform,s=(r,c)=>{n.addEventListener(this,r,c),a[r]=c},l=(r,c,f)=>{r.offsetX=c,r.offsetY=f,this._eventHandler(r)};pt(this.options.events,(r)=>s(r,l))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let a=this._responsiveListeners,n=this.platform,s=(h,p)=>{n.addEventListener(this,h,p),a[h]=p},l=(h,p)=>{if(a[h])n.removeEventListener(this,h,p),delete a[h]},r=(h,p)=>{if(this.canvas)this.resize(h,p)},c,f=()=>{l("attach",f),this.attached=!0,this.resize(),s("resize",r),s("detach",c)};if(c=()=>{this.attached=!1,l("resize",r),this._stop(),this._resize(0,0),s("attach",f)},n.isAttached(this.canvas))f();else c()}unbindEvents(){pt(this._listeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._listeners={},pt(this._responsiveListeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._responsiveListeners=void 0}updateHoverStyle(a,n,s){let l=s?"set":"remove",r,c,f,h;if(n==="dataset")r=this.getDatasetMeta(a[0].datasetIndex),r.controller["_"+l+"DatasetHoverStyle"]();for(f=0,h=a.length;f<h;++f){c=a[f];let p=c&&this.getDatasetMeta(c.datasetIndex).controller;if(p)p[l+"HoverStyle"](c.element,c.datasetIndex,c.index)}}getActiveElements(){return this._active||[]}setActiveElements(a){let n=this._active||[],s=a.map(({datasetIndex:r,index:c})=>{let f=this.getDatasetMeta(r);if(!f)throw Error("No dataset found at index "+r);return{datasetIndex:r,element:f.data[c],index:c}});if(!ud(s,n))this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n)}notifyPlugins(a,n,s){return this._plugins.notify(this,a,n,s)}isPluginEnabled(a){return this._plugins._cache.filter((n)=>n.plugin.id===a).length===1}_updateHoverStyles(a,n,s){let l=this.options.hover,r=(h,p)=>h.filter((g)=>!p.some((x)=>g.datasetIndex===x.datasetIndex&&g.index===x.index)),c=r(n,a),f=s?a:r(a,n);if(c.length)this.updateHoverStyle(c,l.mode,!1);if(f.length&&l.mode)this.updateHoverStyle(f,l.mode,!0)}_eventHandler(a,n){let s={event:a,replay:n,cancelable:!0,inChartArea:this.isPointInArea(a)},l=(c)=>(c.options.events||this.options.events).includes(a.native.type);if(this.notifyPlugins("beforeEvent",s,l)===!1)return;let r=this._handleEvent(a,n,s.inChartArea);if(s.cancelable=!1,this.notifyPlugins("afterEvent",s,l),r||s.changed)this.render();return this}_handleEvent(a,n,s){let{_active:l=[],options:r}=this,c=n,f=this._getActiveElements(a,l,s,c),h=Pw(a),p=GO(a,this._lastEvent,s,h);if(s){if(this._lastEvent=null,Tt(r.onHover,[a,f,this],this),h)Tt(r.onClick,[a,f,this],this)}let g=!ud(f,l);if(g||n)this._active=f,this._updateHoverStyles(f,l,n);return this._lastEvent=p,g}_getActiveElements(a,n,s,l){if(a.type==="mouseout")return[];if(!s)return n;let r=this.options.hover;return this.getElementsAtEventForMode(a,r.mode,r,l)}}function zI(){return pt(Gl.instances,(a)=>a._plugins.invalidate())}function TM(a,n,s=n){a.lineCap=We(s.borderCapStyle,n.borderCapStyle),a.setLineDash(We(s.borderDash,n.borderDash)),a.lineDashOffset=We(s.borderDashOffset,n.borderDashOffset),a.lineJoin=We(s.borderJoinStyle,n.borderJoinStyle),a.lineWidth=We(s.borderWidth,n.borderWidth),a.strokeStyle=We(s.borderColor,n.borderColor)}function YO(a,n,s){a.lineTo(s.x,s.y)}function XO(a){if(a.stepped)return Qw;if(a.tension||a.cubicInterpolationMode==="monotone")return Kw;return YO}function wM(a,n,s={}){let l=a.length,{start:r=0,end:c=l-1}=s,{start:f,end:h}=n,p=Math.max(r,f),g=Math.min(c,h),x=r<f&&c<f||r>h&&c>h;return{count:l,start:p,loop:n.loop,ilen:g<p&&!x?l+g-p:g-p}}function $O(a,n,s,l){let{points:r,options:c}=n,{count:f,start:h,loop:p,ilen:g}=wM(r,s,l),x=XO(c),{move:y=!0,reverse:S}=l||{},T,M,k;for(T=0;T<=g;++T){if(M=r[(h+(S?g-T:T))%f],M.skip)continue;else if(y)a.moveTo(M.x,M.y),y=!1;else x(a,k,M,S,c.stepped);k=M}if(p)M=r[(h+(S?g:0))%f],x(a,k,M,S,c.stepped);return!!p}function WO(a,n,s,l){let r=n.points,{count:c,start:f,ilen:h}=wM(r,s,l),{move:p=!0,reverse:g}=l||{},x=0,y=0,S,T,M,k,w,_,U=(W)=>(f+(g?h-W:W))%c,q=()=>{if(k!==w)a.lineTo(x,w),a.lineTo(x,k),a.lineTo(x,_)};if(p)T=r[U(0)],a.moveTo(T.x,T.y);for(S=0;S<=h;++S){if(T=r[U(S)],T.skip)continue;let{x:W,y:Q}=T,ne=W|0;if(ne===M){if(Q<k)k=Q;else if(Q>w)w=Q;x=(y*x+W)/++y}else q(),a.lineTo(W,Q),M=ne,y=0,k=w=Q;_=Q}q()}function Yx(a){let n=a.options,s=n.borderDash&&n.borderDash.length;return!a._decimated&&!a._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!s?WO:$O}function ZO(a){if(a.stepped)return lI;if(a.tension||a.cubicInterpolationMode==="monotone")return rI;return ki}function QO(a,n,s,l){let r=n._path;if(!r){if(r=n._path=new Path2D,n.path(r,s,l))r.closePath()}TM(a,n.options),a.stroke(r)}function KO(a,n,s,l){let{segments:r,options:c}=n,f=Yx(n);for(let h of r){if(TM(a,c,h.style),a.beginPath(),f(a,n,h,{start:s,end:s+l-1}))a.closePath();a.stroke()}}var JO=typeof Path2D==="function";function eP(a,n,s,l){if(JO&&!n.options.segment)QO(a,n,s,l);else KO(a,n,s,l)}class bu extends Ds{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(a)=>a!=="borderDash"&&a!=="fill"};constructor(a){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,a)Object.assign(this,a)}updateControlPoints(a,n){let s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){let l=s.spanGaps?this._loop:this._fullLoop;nI(this._points,s,a,l,n),this._pointsUpdated=!0}}set points(a){this._points=a,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=cI(this,this.options.segment))}first(){let a=this.segments,n=this.points;return a.length&&n[a[0].start]}last(){let a=this.segments,n=this.points,s=a.length;return s&&n[a[s-1].end]}interpolate(a,n){let s=this.options,l=a[n],r=this.points,c=_x(this,{property:n,start:l,end:l});if(!c.length)return;let f=[],h=ZO(s),p,g;for(p=0,g=c.length;p<g;++p){let{start:x,end:y}=c[p],S=r[x],T=r[y];if(S===T){f.push(S);continue}let M=Math.abs((l-S[n])/(T[n]-S[n])),k=h(S,T,M,s.stepped);k[n]=a[n],f.push(k)}return f.length===1?f[0]:f}pathSegment(a,n,s){return Yx(this)(a,this,n,s)}path(a,n,s){let l=this.segments,r=Yx(this),c=this._loop;n=n||0,s=s||this.points.length-n;for(let f of l)c&=r(a,this,f,{start:n,end:n+s-1});return!!c}draw(a,n,s,l){let r=this.options||{};if((this.points||[]).length&&r.borderWidth)a.save(),eP(a,this,s,l),a.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function UI(a,n,s,l){let r=a.options,{[s]:c}=a.getProps([s],l);return Math.abs(n-c)<r.radius+r.hitRadius}class ov extends Ds{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a)Object.assign(this,a)}inRange(a,n,s){let l=this.options,{x:r,y:c}=this.getProps(["x","y"],s);return Math.pow(a-r,2)+Math.pow(n-c,2)<Math.pow(l.hitRadius+l.radius,2)}inXRange(a,n){return UI(this,a,"x",n)}inYRange(a,n){return UI(this,a,"y",n)}getCenterPoint(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}size(a){a=a||this.options||{};let n=a.radius||0;n=Math.max(n,n&&a.hoverRadius||0);let s=n&&a.borderWidth||0;return(n+s)*2}draw(a,n){let s=this.options;if(this.skip||s.radius<0.1||!Gn(this,n,this.size(s)/2))return;a.strokeStyle=s.borderColor,a.lineWidth=s.borderWidth,a.fillStyle=s.backgroundColor,Pp(a,s,this.x,this.y)}getRange(){let a=this.options||{};return a.radius+a.hitRadius}}function IM(a,n){let{x:s,y:l,base:r,width:c,height:f}=a.getProps(["x","y","base","width","height"],n),h,p,g,x,y;if(a.horizontal)y=f/2,h=Math.min(s,r),p=Math.max(s,r),g=l-y,x=l+y;else y=c/2,h=s-y,p=s+y,g=Math.min(l,r),x=Math.max(l,r);return{left:h,top:g,right:p,bottom:x}}function Ni(a,n,s,l){return a?0:to(n,s,l)}function tP(a,n,s){let l=a.options.borderWidth,r=a.borderSkipped,c=Lx(l);return{t:Ni(r.top,c.top,0,s),r:Ni(r.right,c.right,0,n),b:Ni(r.bottom,c.bottom,0,s),l:Ni(r.left,c.left,0,n)}}function aP(a,n,s){let{enableBorderRadius:l}=a.getProps(["enableBorderRadius"]),r=a.options.borderRadius,c=Pi(r),f=Math.min(n,s),h=a.borderSkipped,p=l||at(r);return{topLeft:Ni(!p||h.top||h.left,c.topLeft,0,f),topRight:Ni(!p||h.top||h.right,c.topRight,0,f),bottomLeft:Ni(!p||h.bottom||h.left,c.bottomLeft,0,f),bottomRight:Ni(!p||h.bottom||h.right,c.bottomRight,0,f)}}function oP(a){let n=IM(a),s=n.right-n.left,l=n.bottom-n.top,r=tP(a,s/2,l/2),c=aP(a,s/2,l/2);return{outer:{x:n.left,y:n.top,w:s,h:l,radius:c},inner:{x:n.left+r.l,y:n.top+r.t,w:s-r.l-r.r,h:l-r.t-r.b,radius:{topLeft:Math.max(0,c.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,c.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,c.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,c.bottomRight-Math.max(r.b,r.r))}}}}function Hx(a,n,s,l){let r=n===null,c=s===null,h=a&&!(r&&c)&&IM(a,l);return h&&(r||As(n,h.left,h.right))&&(c||As(s,h.top,h.bottom))}function nP(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function sP(a,n){a.rect(n.x,n.y,n.w,n.h)}function Fx(a,n,s={}){let l=a.x!==s.x?-n:0,r=a.y!==s.y?-n:0,c=(a.x+a.w!==s.x+s.w?n:0)-l,f=(a.y+a.h!==s.y+s.h?n:0)-r;return{x:a.x+l,y:a.y+r,w:a.w+c,h:a.h+f,radius:a.radius}}class nv extends Ds{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,a)Object.assign(this,a)}draw(a){let{inflateAmount:n,options:{borderColor:s,backgroundColor:l}}=this,{inner:r,outer:c}=oP(this),f=nP(c.radius)?yu:sP;if(a.save(),c.w!==r.w||c.h!==r.h)a.beginPath(),f(a,Fx(c,n,r)),a.clip(),f(a,Fx(r,-n,c)),a.fillStyle=s,a.fill("evenodd");a.beginPath(),f(a,Fx(r,n)),a.fillStyle=l,a.fill(),a.restore()}inRange(a,n,s){return Hx(this,a,n,s)}inXRange(a,n){return Hx(this,a,null,n)}inYRange(a,n){return Hx(this,null,a,n)}getCenterPoint(a){let{x:n,y:s,base:l,horizontal:r}=this.getProps(["x","y","base","horizontal"],a);return{x:r?(n+l)/2:n,y:r?s:(s+l)/2}}getRange(a){return a==="x"?this.width/2:this.height/2}}function iP(a,n,s){let{segments:l,points:r}=a,c=n.points,f=[];for(let h of l){let{start:p,end:g}=h;g=Wp(p,g,r);let x=Xx(s,r[p],r[g],h.loop);if(!n.segments){f.push({source:h,target:x,start:r[p],end:r[g]});continue}let y=_x(n,x);for(let S of y){let T=Xx(s,c[S.start],c[S.end],S.loop),M=Rx(h,r,T);for(let k of M)f.push({source:k,target:S,start:{[s]:HI(x,T,"start",Math.max)},end:{[s]:HI(x,T,"end",Math.min)}})}}return f}function Xx(a,n,s,l){if(l)return;let r=n[a],c=s[a];if(a==="angle")r=Ka(r),c=Ka(c);return{property:a,start:r,end:c}}function lP(a,n){let{x:s=null,y:l=null}=a||{},r=n.points,c=[];return n.segments.forEach(({start:f,end:h})=>{h=Wp(f,h,r);let p=r[f],g=r[h];if(l!==null)c.push({x:p.x,y:l}),c.push({x:g.x,y:l});else if(s!==null)c.push({x:s,y:p.y}),c.push({x:s,y:g.y})}),c}function Wp(a,n,s){for(;n>a;n--){let l=s[n];if(!isNaN(l.x)&&!isNaN(l.y))break}return n}function HI(a,n,s,l){if(a&&n)return l(a[s],n[s]);return a?a[s]:n?n[s]:0}function MM(a,n){let s=[],l=!1;if(At(a))l=!0,s=a;else s=lP(a,n);return s.length?new bu({points:s,options:{tension:0},_loop:l,_fullLoop:l}):null}function FI(a){return a&&a.fill!==!1}function rP(a,n,s){let r=a[n].fill,c=[n],f;if(!s)return r;while(r!==!1&&c.indexOf(r)===-1){if(!Ut(r))return r;if(f=a[r],!f)return!1;if(f.visible)return r;c.push(r),r=f.fill}return!1}function uP(a,n,s){let l=hP(a);if(at(l))return isNaN(l.value)?!1:l;let r=parseFloat(l);if(Ut(r)&&Math.floor(r)===r)return cP(l[0],n,r,s);return["origin","start","end","stack","shape"].indexOf(l)>=0&&l}function cP(a,n,s,l){if(a==="-"||a==="+")s=n+s;if(s===n||s<0||s>=l)return!1;return s}function dP(a,n){let s=null;if(a==="start")s=n.bottom;else if(a==="end")s=n.top;else if(at(a))s=n.getPixelForValue(a.value);else if(n.getBasePixel)s=n.getBasePixel();return s}function fP(a,n,s){let l;if(a==="start")l=s;else if(a==="end")l=n.options.reverse?n.min:n.max;else if(at(a))l=a.value;else l=n.getBaseValue();return l}function hP(a){let n=a.options,s=n.fill,l=We(s&&s.target,s);if(l===void 0)l=!!n.backgroundColor;if(l===!1||l===null)return!1;if(l===!0)return"origin";return l}function pP(a){let{scale:n,index:s,line:l}=a,r=[],c=l.segments,f=l.points,h=mP(n,s);h.push(MM({x:null,y:n.bottom},l));for(let p=0;p<c.length;p++){let g=c[p];for(let x=g.start;x<=g.end;x++)gP(r,f[x],h)}return new bu({points:r,options:{}})}function mP(a,n){let s=[],l=a.getMatchingVisibleMetas("line");for(let r=0;r<l.length;r++){let c=l[r];if(c.index===n)break;if(!c.hidden)s.unshift(c.dataset)}return s}function gP(a,n,s){let l=[];for(let r=0;r<s.length;r++){let c=s[r],{first:f,last:h,point:p}=yP(c,n,"x");if(!p||f&&h)continue;if(f)l.unshift(p);else if(a.push(p),!h)break}a.push(...l)}function yP(a,n,s){let l=a.interpolate(n,s);if(!l)return{};let r=l[s],c=a.segments,f=a.points,h=!1,p=!1;for(let g=0;g<c.length;g++){let x=c[g],y=f[x.start][s],S=f[x.end][s];if(As(r,y,S)){h=r===y,p=r===S;break}}return{first:h,last:p,point:l}}class sv{constructor(a){this.x=a.x,this.y=a.y,this.radius=a.radius}pathSegment(a,n,s){let{x:l,y:r,radius:c}=this;return n=n||{start:0,end:eo},a.arc(l,r,c,n.end,n.start,!0),!s.bounds}interpolate(a){let{x:n,y:s,radius:l}=this,r=a.angle;return{x:n+Math.cos(r)*l,y:s+Math.sin(r)*l,angle:r}}}function bP(a){let{chart:n,fill:s,line:l}=a;if(Ut(s))return xP(n,s);if(s==="stack")return pP(a);if(s==="shape")return!0;let r=vP(a);if(r instanceof sv)return r;return MM(r,l)}function xP(a,n){let s=a.getDatasetMeta(n);return s&&a.isDatasetVisible(n)?s.dataset:null}function vP(a){if((a.scale||{}).getPointPositionForValue)return LP(a);return SP(a)}function SP(a){let{scale:n={},fill:s}=a,l=dP(s,n);if(Ut(l)){let r=n.isHorizontal();return{x:r?l:null,y:r?null:l}}return null}function LP(a){let{scale:n,fill:s}=a,l=n.options,r=n.getLabels().length,c=l.reverse?n.max:n.min,f=fP(s,n,c),h=[];if(l.grid.circular){let p=n.getPointPositionForValue(0,c);return new sv({x:p.x,y:p.y,radius:n.getDistanceFromCenterForValue(f)})}for(let p=0;p<r;++p)h.push(n.getPointPositionForValue(p,f));return h}function qx(a,n,s){let l=bP(n),{chart:r,index:c,line:f,scale:h,axis:p}=n,g=f.options,x=g.fill,y=g.backgroundColor,{above:S=y,below:T=y}=x||{},M=r.getDatasetMeta(c),k=Dx(r,M);if(l&&f.points.length)dd(a,s),CP(a,{line:f,target:l,above:S,below:T,area:s,scale:h,axis:p,clip:k}),fd(a)}function CP(a,n){let{line:s,target:l,above:r,below:c,area:f,scale:h,clip:p}=n,g=s._loop?"angle":n.axis;a.save();let x=c;if(c!==r){if(g==="x")qI(a,l,f.top),Vx(a,{line:s,target:l,color:r,scale:h,property:g,clip:p}),a.restore(),a.save(),qI(a,l,f.bottom);else if(g==="y")VI(a,l,f.left),Vx(a,{line:s,target:l,color:c,scale:h,property:g,clip:p}),a.restore(),a.save(),VI(a,l,f.right),x=r}Vx(a,{line:s,target:l,color:x,scale:h,property:g,clip:p}),a.restore()}function qI(a,n,s){let{segments:l,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of l){let{start:p,end:g}=h,x=r[p],y=r[Wp(p,g,r)];if(c)a.moveTo(x.x,x.y),c=!1;else a.lineTo(x.x,s),a.lineTo(x.x,x.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(y.x,s)}a.lineTo(n.first().x,s),a.closePath(),a.clip()}function VI(a,n,s){let{segments:l,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of l){let{start:p,end:g}=h,x=r[p],y=r[Wp(p,g,r)];if(c)a.moveTo(x.x,x.y),c=!1;else a.lineTo(s,x.y),a.lineTo(x.x,x.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(s,y.y)}a.lineTo(s,n.first().y),a.closePath(),a.clip()}function Vx(a,n){let{line:s,target:l,property:r,color:c,scale:f,clip:h}=n,p=iP(s,l,r);for(let{source:g,target:x,start:y,end:S}of p){let{style:{backgroundColor:T=c}={}}=g,M=l!==!0;a.save(),a.fillStyle=T,TP(a,f,h,M&&Xx(r,y,S)),a.beginPath();let k=!!s.pathSegment(a,g),w;if(M){if(k)a.closePath();else jI(a,l,S,r);let _=!!l.pathSegment(a,x,{move:k,reverse:!0});if(w=k&&_,!w)jI(a,l,y,r)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function TP(a,n,s,l){let r=n.chart.chartArea,{property:c,start:f,end:h}=l||{};if(c==="x"||c==="y"){let p,g,x,y;if(c==="x")p=f,g=r.top,x=h,y=r.bottom;else p=r.left,g=f,x=r.right,y=h;if(a.beginPath(),s)p=Math.max(p,s.left),x=Math.min(x,s.right),g=Math.max(g,s.top),y=Math.min(y,s.bottom);a.rect(p,g,x-p,y-g),a.clip()}}function jI(a,n,s,l){let r=n.interpolate(s,l);if(r)a.lineTo(r.x,r.y)}var AM={id:"filler",afterDatasetsUpdate(a,n,s){let l=(a.data.datasets||[]).length,r=[],c,f,h,p;for(f=0;f<l;++f){if(c=a.getDatasetMeta(f),h=c.dataset,p=null,h&&h.options&&h instanceof bu)p={visible:a.isDatasetVisible(f),index:f,fill:uP(h,f,l),chart:a,axis:c.controller.options.indexAxis,scale:c.vScale,line:h};c.$filler=p,r.push(p)}for(f=0;f<l;++f){if(p=r[f],!p||p.fill===!1)continue;p.fill=rP(r,f,s.propagate)}},beforeDraw(a,n,s){let l=s.drawTime==="beforeDraw",r=a.getSortedVisibleDatasetMetas(),c=a.chartArea;for(let f=r.length-1;f>=0;--f){let h=r[f].$filler;if(!h)continue;if(h.line.updateControlPoints(c,h.axis),l&&h.fill)qx(a.ctx,h,c)}},beforeDatasetsDraw(a,n,s){if(s.drawTime!=="beforeDatasetsDraw")return;let l=a.getSortedVisibleDatasetMetas();for(let r=l.length-1;r>=0;--r){let c=l[r].$filler;if(FI(c))qx(a.ctx,c,a.chartArea)}},beforeDatasetDraw(a,n,s){let l=n.meta.$filler;if(!FI(l)||s.drawTime!=="beforeDatasetDraw")return;qx(a.ctx,l,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},GI=(a,n)=>{let{boxHeight:s=n,boxWidth:l=n}=a;if(a.usePointStyle)s=Math.min(s,n),l=a.pointStyleWidth||Math.min(l,n);return{boxWidth:l,boxHeight:s,itemHeight:Math.max(n,s)}},wP=(a,n)=>a!==null&&n!==null&&a.datasetIndex===n.datasetIndex&&a.index===n.index;class $x extends Ds{constructor(a){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,n,s){this.maxWidth=a,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let a=this.options.labels||{},n=Tt(a.generateLabels,[this.chart],this)||[];if(a.filter)n=n.filter((s)=>a.filter(s,this.chart.data));if(a.sort)n=n.sort((s,l)=>a.sort(s,l,this.chart.data));if(this.options.reverse)n.reverse();this.legendItems=n}fit(){let{options:a,ctx:n}=this;if(!a.display){this.width=this.height=0;return}let s=a.labels,l=oa(s.font),r=l.size,c=this._computeTitleHeight(),{boxWidth:f,itemHeight:h}=GI(s,r),p,g;if(n.font=l.string,this.isHorizontal())p=this.maxWidth,g=this._fitRows(c,r,f,h)+10;else g=this.maxHeight,p=this._fitCols(c,l,f,h)+10;this.width=Math.min(p,a.maxWidth||this.maxWidth),this.height=Math.min(g,a.maxHeight||this.maxHeight)}_fitRows(a,n,s,l){let{ctx:r,maxWidth:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.lineWidths=[0],g=l+f,x=a;r.textAlign="left",r.textBaseline="middle";let y=-1,S=-g;return this.legendItems.forEach((T,M)=>{let k=s+n/2+r.measureText(T.text).width;if(M===0||p[p.length-1]+k+2*f>c)x+=g,p[p.length-(M>0?0:1)]=0,S+=g,y++;h[M]={left:0,top:S,row:y,width:k,height:l},p[p.length-1]+=k+f}),x}_fitCols(a,n,s,l){let{ctx:r,maxHeight:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.columnSizes=[],g=c-a,x=f,y=0,S=0,T=0,M=0;return this.legendItems.forEach((k,w)=>{let{itemWidth:_,itemHeight:U}=IP(s,n,r,k,l);if(w>0&&S+U+2*f>g)x+=y+f,p.push({width:y,height:S}),T+=y+f,M++,y=S=0;h[w]={left:T,top:S,col:M,width:_,height:U},y=Math.max(y,_),S+=U+f}),x+=y,p.push({width:y,height:S}),x}adjustHitBoxes(){if(!this.options.display)return;let a=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:l},rtl:r}}=this,c=Fl(r,this.left,this.width);if(this.isHorizontal()){let f=0,h=Ca(s,this.left+l,this.right-this.lineWidths[f]);for(let p of n){if(f!==p.row)f=p.row,h=Ca(s,this.left+l,this.right-this.lineWidths[f]);p.top+=this.top+a+l,p.left=c.leftForLtr(c.x(h),p.width),h+=p.width+l}}else{let f=0,h=Ca(s,this.top+a+l,this.bottom-this.columnSizes[f].height);for(let p of n){if(p.col!==f)f=p.col,h=Ca(s,this.top+a+l,this.bottom-this.columnSizes[f].height);p.top=h,p.left+=this.left+l,p.left=c.leftForLtr(c.x(p.left),p.width),h+=p.height+l}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let a=this.ctx;dd(a,this),this._draw(),fd(a)}}_draw(){let{options:a,columnSizes:n,lineWidths:s,ctx:l}=this,{align:r,labels:c}=a,f=Ht.color,h=Fl(a.rtl,this.left,this.width),p=oa(c.font),{padding:g}=c,x=p.size,y=x/2,S;this.drawTitle(),l.textAlign=h.textAlign("left"),l.textBaseline="middle",l.lineWidth=0.5,l.font=p.string;let{boxWidth:T,boxHeight:M,itemHeight:k}=GI(c,x),w=function(Q,ne,J){if(isNaN(T)||T<=0||isNaN(M)||M<0)return;l.save();let K=We(J.lineWidth,1);if(l.fillStyle=We(J.fillStyle,f),l.lineCap=We(J.lineCap,"butt"),l.lineDashOffset=We(J.lineDashOffset,0),l.lineJoin=We(J.lineJoin,"miter"),l.lineWidth=K,l.strokeStyle=We(J.strokeStyle,f),l.setLineDash(We(J.lineDash,[])),c.usePointStyle){let re={radius:M*Math.SQRT2/2,pointStyle:J.pointStyle,rotation:J.rotation,borderWidth:K},V=h.xPlus(Q,T/2),he=ne+y;vx(l,re,V,he,c.pointStyleWidth&&T)}else{let re=ne+Math.max((x-M)/2,0),V=h.leftForLtr(Q,T),he=Pi(J.borderRadius);if(l.beginPath(),Object.values(he).some((Le)=>Le!==0))yu(l,{x:V,y:re,w:T,h:M,radius:he});else l.rect(V,re,T,M);if(l.fill(),K!==0)l.stroke()}l.restore()},_=function(Q,ne,J){Oi(l,J.text,Q,ne+k/2,p,{strikethrough:J.hidden,textAlign:h.textAlign(J.textAlign)})},U=this.isHorizontal(),q=this._computeTitleHeight();if(U)S={x:Ca(r,this.left+g,this.right-s[0]),y:this.top+g+q,line:0};else S={x:this.left+g,y:Ca(r,this.top+q+g,this.bottom-n[0].height),line:0};Ax(this.ctx,a.textDirection);let W=k+g;this.legendItems.forEach((Q,ne)=>{l.strokeStyle=Q.fontColor,l.fillStyle=Q.fontColor;let J=l.measureText(Q.text).width,K=h.textAlign(Q.textAlign||(Q.textAlign=c.textAlign)),re=T+y+J,V=S.x,he=S.y;if(h.setWidth(this.width),U){if(ne>0&&V+re+g>this.right)he=S.y+=W,S.line++,V=S.x=Ca(r,this.left+g,this.right-s[S.line])}else if(ne>0&&he+W>this.bottom)V=S.x=V+n[S.line].width+g,S.line++,he=S.y=Ca(r,this.top+q+g,this.bottom-n[S.line].height);let Le=h.x(V);if(w(Le,he,Q),V=Gw(K,V+T+y,U?V+re:this.right,a.rtl),_(h.x(V),he,Q),U)S.x+=re+g;else if(typeof Q.text!=="string"){let we=p.lineHeight;S.y+=kM(Q,we)+g}else S.y+=W}),kx(this.ctx,a.textDirection)}drawTitle(){let a=this.options,n=a.title,s=oa(n.font),l=Ta(n.padding);if(!n.display)return;let r=Fl(a.rtl,this.left,this.width),c=this.ctx,f=n.position,h=s.size/2,p=l.top+h,g,x=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),g=this.top+p,x=Ca(a.align,x,this.right-y);else{let T=this.columnSizes.reduce((M,k)=>Math.max(M,k.height),0);g=p+Ca(a.align,this.top,this.bottom-T-a.labels.padding-this._computeTitleHeight())}let S=Ca(f,x,x+y);c.textAlign=r.textAlign(Dp(f)),c.textBaseline="middle",c.strokeStyle=n.color,c.fillStyle=n.color,c.font=s.string,Oi(c,n.text,S,g,s)}_computeTitleHeight(){let a=this.options.title,n=oa(a.font),s=Ta(a.padding);return a.display?n.lineHeight+s.height:0}_getLegendItemAt(a,n){let s,l,r;if(As(a,this.left,this.right)&&As(n,this.top,this.bottom)){r=this.legendHitBoxes;for(s=0;s<r.length;++s)if(l=r[s],As(a,l.left,l.left+l.width)&&As(n,l.top,l.top+l.height))return this.legendItems[s]}return null}handleEvent(a){let n=this.options;if(!kP(a.type,n))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let l=this._hoveredItem,r=wP(l,s);if(l&&!r)Tt(n.onLeave,[a,l,this],this);if(this._hoveredItem=s,s&&!r)Tt(n.onHover,[a,s,this],this)}else if(s)Tt(n.onClick,[a,s,this],this)}}function IP(a,n,s,l,r){let c=MP(l,a,n,s),f=AP(r,l,n.lineHeight);return{itemWidth:c,itemHeight:f}}function MP(a,n,s,l){let r=a.text;if(r&&typeof r!=="string")r=r.reduce((c,f)=>c.length>f.length?c:f);return n+s.size/2+l.measureText(r).width}function AP(a,n,s){let l=a;if(typeof n.text!=="string")l=kM(n,s);return l}function kM(a,n){let s=a.text?a.text.length:0;return n*s}function kP(a,n){if((a==="mousemove"||a==="mouseout")&&(n.onHover||n.onLeave))return!0;if(n.onClick&&(a==="click"||a==="mouseup"))return!0;return!1}var RM={id:"legend",_element:$x,start(a,n,s){let l=a.legend=new $x({ctx:a.ctx,options:s,chart:a});Xo.configure(a,l,s),Xo.addBox(a,l)},stop(a){Xo.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,n,s){let l=a.legend;Xo.configure(a,l,s),l.options=s},afterUpdate(a){let n=a.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(a,n){if(!n.replay)a.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(a,n,s){let l=n.datasetIndex,r=s.chart;if(r.isDatasetVisible(l))r.hide(l),n.hidden=!0;else r.show(l),n.hidden=!1},onHover:null,onLeave:null,labels:{color:(a)=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){let n=a.data.datasets,{labels:{usePointStyle:s,pointStyle:l,textAlign:r,color:c,useBorderRadius:f,borderRadius:h}}=a.legend.options;return a._getSortedDatasetMetas().map((p)=>{let g=p.controller.getStyle(s?0:void 0),x=Ta(g.borderWidth);return{text:n[p.index].label,fillStyle:g.backgroundColor,fontColor:c,hidden:!p.visible,lineCap:g.borderCapStyle,lineDash:g.borderDash,lineDashOffset:g.borderDashOffset,lineJoin:g.borderJoinStyle,lineWidth:(x.width+x.height)/4,strokeStyle:g.borderColor,pointStyle:l||g.pointStyle,rotation:g.rotation,textAlign:r||g.textAlign,borderRadius:f&&(h||g.borderRadius),datasetIndex:p.index}},this)}},title:{color:(a)=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(a)=>!a.startsWith("on"),labels:{_scriptable:(a)=>!["generateLabels","filter","sort"].includes(a)}}};class iv extends Ds{constructor(a){super();this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,n){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=a,this.height=this.bottom=n;let l=At(s.text)?s.text.length:1;this._padding=Ta(s.padding);let r=l*oa(s.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=r;else this.width=r}isHorizontal(){let a=this.options.position;return a==="top"||a==="bottom"}_drawArgs(a){let{top:n,left:s,bottom:l,right:r,options:c}=this,f=c.align,h=0,p,g,x;if(this.isHorizontal())g=Ca(f,s,r),x=n+a,p=r-s;else{if(c.position==="left")g=s+a,x=Ca(f,l,n),h=Yt*-0.5;else g=r-a,x=Ca(f,n,l),h=Yt*0.5;p=l-n}return{titleX:g,titleY:x,maxWidth:p,rotation:h}}draw(){let a=this.ctx,n=this.options;if(!n.display)return;let s=oa(n.font),r=s.lineHeight/2+this._padding.top,{titleX:c,titleY:f,maxWidth:h,rotation:p}=this._drawArgs(r);Oi(a,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:p,textAlign:Dp(n.align),textBaseline:"middle",translation:[c,f]})}}function RP(a,n){let s=new iv({ctx:a.ctx,options:n,chart:a});Xo.configure(a,s,n),Xo.addBox(a,s),a.titleBlock=s}var _M={id:"title",_element:iv,start(a,n,s){RP(a,s)},stop(a){let n=a.titleBlock;Xo.removeBox(a,n),delete a.titleBlock},beforeUpdate(a,n,s){let l=a.titleBlock;Xo.configure(a,l,s),l.options=s},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var Sd={average(a){if(!a.length)return!1;let n,s,l=new Set,r=0,c=0;for(n=0,s=a.length;n<s;++n){let h=a[n].element;if(h&&h.hasValue()){let p=h.tooltipPosition();l.add(p.x),r+=p.y,++c}}if(c===0||l.size===0)return!1;return{x:[...l].reduce((h,p)=>h+p)/l.size,y:r/c}},nearest(a,n){if(!a.length)return!1;let{x:s,y:l}=n,r=Number.POSITIVE_INFINITY,c,f,h;for(c=0,f=a.length;c<f;++c){let p=a[c].element;if(p&&p.hasValue()){let g=p.getCenterPoint(),x=Mp(n,g);if(x<r)r=x,h=p}}if(h){let p=h.tooltipPosition();s=p.x,l=p.y}return{x:s,y:l}}};function Xn(a,n){if(n)if(At(n))Array.prototype.push.apply(a,n);else a.push(n);return a}function _s(a){if((typeof a==="string"||a instanceof String)&&a.indexOf(`
255
+ */class zM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(a,n,s,i){let l=n.listeners[i],u=n.duration;l.forEach((d)=>d({chart:a,initial:n.initial,numSteps:u,currentStep:Math.min(s-n.start,u)}))}_refresh(){if(this._request)return;this._running=!0,this._request=Vx.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(a=Date.now()){let n=0;if(this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;let l=s.items,u=l.length-1,d=!1,p;for(;u>=0;--u)if(p=l[u],p._active){if(p._total>s.duration)s.duration=p._total;p.tick(a),d=!0}else l[u]=l[l.length-1],l.pop();if(d)i.draw(),this._notify(i,s,a,"progress");if(!l.length)s.running=!1,this._notify(i,s,a,"complete"),s.initial=!1;n+=l.length}),this._lastDate=a,n===0)this._running=!1}_getAnims(a){let n=this._charts,s=n.get(a);if(!s)s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(a,s);return s}listen(a,n,s){this._getAnims(a).listeners[n].push(s)}add(a,n){if(!n||!n.length)return;this._getAnims(a).items.push(...n)}has(a){return this._getAnims(a).items.length>0}start(a){let n=this._charts.get(a);if(!n)return;n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh()}running(a){if(!this._running)return!1;let n=this._charts.get(a);if(!n||!n.running||!n.items.length)return!1;return!0}stop(a){let n=this._charts.get(a);if(!n||!n.items.length)return;let s=n.items,i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(a,n,Date.now(),"complete")}remove(a){return this._charts.delete(a)}}var js=new zM,qk="transparent",yO={boolean(a,n,s){return s>0.5?n:a},color(a,n,s){let i=Xx(a||qk),l=i.valid&&Xx(n||qk);return l&&l.valid?l.mix(i,s).hexString():n},number(a,n,s){return a+(n-a)*s}};class HM{constructor(a,n,s,i){let l=n[s];i=zd([a.to,i,l,a.from]);let u=zd([a.from,l,i]);this._active=!0,this._fn=a.fn||yO[a.type||typeof u],this._easing=_u[a.easing]||_u.linear,this._start=Math.floor(Date.now()+(a.delay||0)),this._duration=this._total=Math.floor(a.duration),this._loop=!!a.loop,this._target=n,this._prop=s,this._from=u,this._to=i,this._promises=void 0}active(){return this._active}update(a,n,s){if(this._active){this._notify(!1);let i=this._target[this._prop],l=s-this._start,u=this._duration-l;this._start=s,this._duration=Math.floor(Math.max(u,a.duration)),this._total+=l,this._loop=!!a.loop,this._to=zd([a.to,n,i,a.from]),this._from=zd([a.from,i,n])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(a){let n=a-this._start,s=this._duration,i=this._prop,l=this._from,u=this._loop,d=this._to,p;if(this._active=l!==d&&(u||n<s),!this._active){this._target[i]=d,this._notify(!0);return}if(n<0){this._target[i]=l;return}p=n/s%2,p=u&&p>1?2-p:p,p=this._easing(Math.min(1,Math.max(0,p))),this._target[i]=this._fn(l,d,p)}wait(){let a=this._promises||(this._promises=[]);return new Promise((n,s)=>{a.push({res:n,rej:s})})}_notify(a){let n=a?"res":"rej",s=this._promises||[];for(let i=0;i<s.length;i++)s[i][n]()}}class kv{constructor(a,n){this._chart=a,this._properties=new Map,this.configure(n)}configure(a){if(!it(a))return;let n=Object.keys(Jt.animation),s=this._properties;Object.getOwnPropertyNames(a).forEach((i)=>{let l=a[i];if(!it(l))return;let u={};for(let d of n)u[d]=l[d];(zt(l.properties)&&l.properties||[i]).forEach((d)=>{if(d===i||!s.has(d))s.set(d,u)})})}_animateOptions(a,n){let s=n.options,i=xO(a,s);if(!i)return[];let l=this._createAnimations(i,s);if(s.$shared)bO(a.options.$animations,s).then(()=>{a.options=s},()=>{});return l}_createAnimations(a,n){let s=this._properties,i=[],l=a.$animations||(a.$animations={}),u=Object.keys(n),d=Date.now(),p;for(p=u.length-1;p>=0;--p){let h=u[p];if(h.charAt(0)==="$")continue;if(h==="options"){i.push(...this._animateOptions(a,n));continue}let g=n[h],b=l[h],y=s.get(h);if(b)if(y&&b.active()){b.update(y,g,d);continue}else b.cancel();if(!y||!y.duration){a[h]=g;continue}l[h]=b=new HM(y,a,h,g),i.push(b)}return i}update(a,n){if(this._properties.size===0){Object.assign(a,n);return}let s=this._createAnimations(a,n);if(s.length)return js.add(this._chart,s),!0}}function bO(a,n){let s=[],i=Object.keys(n);for(let l=0;l<i.length;l++){let u=a[i[l]];if(u&&u.active())s.push(u.wait())}return Promise.all(s)}function xO(a,n){if(!n)return;let s=a.options;if(!s){a.options=n;return}if(s.$shared)a.options=s=Object.assign({},s,{$shared:!1,$animations:{}});return s}function Vk(a,n){let s=a&&a.options||{},i=s.reverse,l=s.min===void 0?n:0,u=s.max===void 0?n:0;return{start:i?u:l,end:i?l:u}}function vO(a,n,s){if(s===!1)return!1;let i=Vk(a,s),l=Vk(n,s);return{top:l.end,right:i.end,bottom:l.start,left:i.start}}function SO(a){let n,s,i,l;if(it(a))n=a.top,s=a.right,i=a.bottom,l=a.left;else n=s=i=l=a;return{top:n,right:s,bottom:i,left:l,disabled:a===!1}}function UM(a,n){let s=[],i=a._getSortedDatasetMetas(n),l,u;for(l=0,u=i.length;l<u;++l)s.push(i[l].index);return s}function jk(a,n,s,i={}){let l=a.keys,u=i.mode==="single",d,p,h,g;if(n===null)return;let b=!1;for(d=0,p=l.length;d<p;++d){if(h=+l[d],h===s){if(b=!0,i.all)continue;break}if(g=a.values[h],Kt(g)&&(u||n===0||Ln(n)===Ln(g)))n+=g}if(!b&&!i.all)return 0;return n}function LO(a,n){let{iScale:s,vScale:i}=n,l=s.axis==="x"?"x":"y",u=i.axis==="x"?"x":"y",d=Object.keys(a),p=Array(d.length),h,g,b;for(h=0,g=d.length;h<g;++h)b=d[h],p[h]={[l]:b,[u]:a[b]};return p}function iv(a,n){let s=a&&a.options.stacked;return s||s===void 0&&n.stack!==void 0}function CO(a,n,s){return`${a.id}.${n.id}.${s.stack||s.type}`}function TO(a){let{min:n,max:s,minDefined:i,maxDefined:l}=a.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:l?s:Number.POSITIVE_INFINITY}}function wO(a,n,s){let i=a[n]||(a[n]={});return i[s]||(i[s]={})}function Gk(a,n,s,i){for(let l of n.getMatchingVisibleMetas(i).reverse()){let u=a[l.index];if(s&&u>0||!s&&u<0)return l.index}return null}function Xk(a,n){let{chart:s,_cachedMeta:i}=a,l=s._stacks||(s._stacks={}),{iScale:u,vScale:d,index:p}=i,h=u.axis,g=d.axis,b=CO(u,d,i),y=n.length,v;for(let T=0;T<y;++T){let M=n[T],{[h]:I,[g]:w}=M,A=M._stacks||(M._stacks={});v=A[g]=wO(l,b,I),v[p]=w,v._top=Gk(v,d,!0,i.type),v._bottom=Gk(v,d,!1,i.type);let B=v._visualValues||(v._visualValues={});B[p]=w}}function lv(a,n){let s=a.scales;return Object.keys(s).filter((i)=>s[i].axis===n).shift()}function kO(a,n){return Vs(a,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function MO(a,n,s){return Vs(a,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:s,index:n,mode:"default",type:"data"})}function Hd(a,n){let s=a.controller.index,i=a.vScale&&a.vScale.axis;if(!i)return;n=n||a._parsed;for(let l of n){let u=l._stacks;if(!u||u[i]===void 0||u[i][s]===void 0)return;if(delete u[i][s],u[i]._visualValues!==void 0&&u[i]._visualValues[s]!==void 0)delete u[i]._visualValues[s]}}var uv=(a)=>a==="reset"||a==="none",Yk=(a,n)=>n?a:Object.assign({},a),IO=(a,n,s)=>a&&!n.hidden&&n._stacked&&{keys:UM(s,!0),values:null};class vm{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(a,n){this.chart=a,this._ctx=a.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let a=this._cachedMeta;if(this.configure(),this.linkScales(),a._stacked=iv(a.vScale,a),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(a){if(this.index!==a)Hd(this._cachedMeta);this.index=a}linkScales(){let a=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(b,y,v,T)=>b==="x"?y:b==="r"?T:v,l=n.xAxisID=Ke(s.xAxisID,lv(a,"x")),u=n.yAxisID=Ke(s.yAxisID,lv(a,"y")),d=n.rAxisID=Ke(s.rAxisID,lv(a,"r")),p=n.indexAxis,h=n.iAxisID=i(p,l,u,d),g=n.vAxisID=i(p,u,l,d);n.xScale=this.getScaleForId(l),n.yScale=this.getScaleForId(u),n.rScale=this.getScaleForId(d),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(g)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(a){return this.chart.scales[a]}_getOtherScale(a){let n=this._cachedMeta;return a===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let a=this._cachedMeta;if(this._data)Fx(this._data,this);if(a._stacked)Hd(a)}_dataCheck(){let a=this.getDataset(),n=a.data||(a.data=[]),s=this._data;if(it(n)){let i=this._cachedMeta;this._data=LO(n,i)}else if(s!==n){if(s){Fx(s,this);let i=this._cachedMeta;Hd(i),i._parsed=[]}if(n&&Object.isExtensible(n))vk(n,this);this._syncList=[],this._data=n}}addElements(){let a=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)a.dataset=new this.datasetElementType}buildOrUpdateElements(a){let n=this._cachedMeta,s=this.getDataset(),i=!1;this._dataCheck();let l=n._stacked;if(n._stacked=iv(n.vScale,n),n.stack!==s.stack)i=!0,Hd(n),n.stack=s.stack;if(this._resyncElements(a),i||l!==n._stacked)Xk(this,n._parsed),n._stacked=iv(n.vScale,n)}configure(){let a=this.chart.config,n=a.datasetScopeKeys(this._type),s=a.getOptionScopes(this.getDataset(),n,!0);this.options=a.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(a,n){let{_cachedMeta:s,_data:i}=this,{iScale:l,_stacked:u}=s,d=l.axis,p=a===0&&n===i.length?!0:s._sorted,h=a>0&&s._parsed[a-1],g,b,y;if(this._parsing===!1)s._parsed=i,s._sorted=!0,y=i;else{if(zt(i[a]))y=this.parseArrayData(s,i,a,n);else if(it(i[a]))y=this.parseObjectData(s,i,a,n);else y=this.parsePrimitiveData(s,i,a,n);let v=()=>b[d]===null||h&&b[d]<h[d];for(g=0;g<n;++g)if(s._parsed[g+a]=b=y[g],p){if(v())p=!1;h=b}s._sorted=p}if(u)Xk(this,y)}parsePrimitiveData(a,n,s,i){let{iScale:l,vScale:u}=a,d=l.axis,p=u.axis,h=l.getLabels(),g=l===u,b=Array(i),y,v,T;for(y=0,v=i;y<v;++y)T=y+s,b[y]={[d]:g||l.parse(h[T],T),[p]:u.parse(n[T],T)};return b}parseArrayData(a,n,s,i){let{xScale:l,yScale:u}=a,d=Array(i),p,h,g,b;for(p=0,h=i;p<h;++p)g=p+s,b=n[g],d[p]={x:l.parse(b[0],g),y:u.parse(b[1],g)};return d}parseObjectData(a,n,s,i){let{xScale:l,yScale:u}=a,{xAxisKey:d="x",yAxisKey:p="y"}=this._parsing,h=Array(i),g,b,y,v;for(g=0,b=i;g<b;++g)y=g+s,v=n[y],h[g]={x:l.parse(rl(v,d),y),y:u.parse(rl(v,p),y)};return h}getParsed(a){return this._cachedMeta._parsed[a]}getDataElement(a){return this._cachedMeta.data[a]}applyStack(a,n,s){let i=this.chart,l=this._cachedMeta,u=n[a.axis],d={keys:UM(i,!0),values:n._stacks[a.axis]._visualValues};return jk(d,u,l.index,{mode:s})}updateRangeFromParsed(a,n,s,i){let l=s[n.axis],u=l===null?NaN:l,d=i&&s._stacks[n.axis];if(i&&d)i.values=d,u=jk(i,l,this._cachedMeta.index);a.min=Math.min(a.min,u),a.max=Math.max(a.max,u)}getMinMax(a,n){let s=this._cachedMeta,i=s._parsed,l=s._sorted&&a===s.iScale,u=i.length,d=this._getOtherScale(a),p=IO(n,s,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:b}=TO(d),y,v;function T(){v=i[y];let M=v[d.axis];return!Kt(v[a.axis])||g>M||b<M}for(y=0;y<u;++y){if(T())continue;if(this.updateRangeFromParsed(h,a,v,p),l)break}if(l)for(y=u-1;y>=0;--y){if(T())continue;this.updateRangeFromParsed(h,a,v,p);break}return h}getAllParsedValues(a){let n=this._cachedMeta._parsed,s=[],i,l,u;for(i=0,l=n.length;i<l;++i)if(u=n[i][a.axis],Kt(u))s.push(u);return s}getMaxOverflow(){return!1}getLabelAndValue(a){let n=this._cachedMeta,s=n.iScale,i=n.vScale,l=this.getParsed(a);return{label:s?""+s.getLabelForValue(l[s.axis]):"",value:i?""+i.getLabelForValue(l[i.axis]):""}}_update(a){let n=this._cachedMeta;this.update(a||"default"),n._clip=SO(Ke(this.options.clip,vO(n.xScale,n.yScale,this.getMaxOverflow())))}update(a){}draw(){let a=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],l=n.chartArea,u=[],d=this._drawStart||0,p=this._drawCount||i.length-d,h=this.options.drawActiveElementsOnTop,g;if(s.dataset)s.dataset.draw(a,l,d,p);for(g=d;g<d+p;++g){let b=i[g];if(b.hidden)continue;if(b.active&&h)u.push(b);else b.draw(a,l)}for(g=0;g<u.length;++g)u[g].draw(a,l)}getStyle(a,n){let s=n?"active":"default";return a===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(a||0,s)}getContext(a,n,s){let i=this.getDataset(),l;if(a>=0&&a<this._cachedMeta.data.length){let u=this._cachedMeta.data[a];l=u.$context||(u.$context=MO(this.getContext(),a,u)),l.parsed=this.getParsed(a),l.raw=i.data[a],l.index=l.dataIndex=a}else l=this.$context||(this.$context=kO(this.chart.getContext(),this.index)),l.dataset=i,l.index=l.datasetIndex=this.index;return l.active=!!n,l.mode=s,l}resolveDatasetElementOptions(a){return this._resolveElementOptions(this.datasetElementType.id,a)}resolveDataElementOptions(a,n){return this._resolveElementOptions(this.dataElementType.id,n,a)}_resolveElementOptions(a,n="default",s){let i=n==="active",l=this._cachedDataOpts,u=a+"-"+n,d=l[u],p=this.enableOptionSharing&&Pu(s);if(d)return Yk(d,p);let h=this.chart.config,g=h.datasetElementScopeKeys(this._type,a),b=i?[`${a}Hover`,"hover",a,""]:[a,""],y=h.getOptionScopes(this.getDataset(),g),v=Object.keys(Jt.elements[a]),T=()=>this.getContext(s,i,n),M=h.resolveNamedOptions(y,v,T,b);if(M.$shared)M.$shared=p,l[u]=Object.freeze(Yk(M,p));return M}_resolveAnimations(a,n,s){let i=this.chart,l=this._cachedDataOpts,u=`animation-${n}`,d=l[u];if(d)return d;let p;if(i.options.animation!==!1){let g=this.chart.config,b=g.datasetAnimationScopeKeys(this._type,n),y=g.getOptionScopes(this.getDataset(),b);p=g.createResolver(y,this.getContext(a,s,n))}let h=new kv(i,p&&p.animations);if(p&&p._cacheable)l[u]=Object.freeze(h);return h}getSharedOptions(a){if(!a.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},a))}includeOptions(a,n){return!n||uv(a)||this.chart._animationsDisabled}_getSharedOptions(a,n){let s=this.resolveDataElementOptions(a,n),i=this._sharedOptions,l=this.getSharedOptions(s),u=this.includeOptions(n,l)||l!==i;return this.updateSharedOptions(l,n,s),{sharedOptions:l,includeOptions:u}}updateElement(a,n,s,i){if(uv(i))Object.assign(a,s);else this._resolveAnimations(n,i).update(a,s)}updateSharedOptions(a,n,s){if(a&&!uv(n))this._resolveAnimations(void 0,n).update(a,s)}_setStyle(a,n,s,i){a.active=i;let l=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(a,{options:!i&&this.getSharedOptions(l)||l})}removeHoverStyle(a,n,s){this._setStyle(a,s,"active",!1)}setHoverStyle(a,n,s){this._setStyle(a,s,"active",!0)}_removeDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!1)}_setDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!0)}_resyncElements(a){let n=this._data,s=this._cachedMeta.data;for(let[d,p,h]of this._syncList)this[d](p,h);this._syncList=[];let i=s.length,l=n.length,u=Math.min(l,i);if(u)this.parse(0,u);if(l>i)this._insertElements(i,l-i,a);else if(l<i)this._removeElements(l,i-l)}_insertElements(a,n,s=!0){let i=this._cachedMeta,l=i.data,u=a+n,d,p=(h)=>{h.length+=n;for(d=h.length-1;d>=u;d--)h[d]=h[d-n]};p(l);for(d=a;d<u;++d)l[d]=new this.dataElementType;if(this._parsing)p(i._parsed);if(this.parse(a,n),s)this.updateElements(l,a,n,"reset")}updateElements(a,n,s,i){}_removeElements(a,n){let s=this._cachedMeta;if(this._parsing){let i=s._parsed.splice(a,n);if(s._stacked)Hd(s,i)}s.data.splice(a,n)}_sync(a){if(this._parsing)this._syncList.push(a);else{let[n,s,i]=a;this[n](s,i)}this.chart._dataChanges.push([this.index,...a])}_onDataPush(){let a=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-a,a])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(a,n){if(n)this._sync(["_removeElements",a,n]);let s=arguments.length-2;if(s)this._sync(["_insertElements",a,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function AO(a,n){if(!a._cache.$bar){let s=a.getMatchingVisibleMetas(n),i=[];for(let l=0,u=s.length;l<u;l++)i=i.concat(s[l].controller.getAllParsedValues(a));a._cache.$bar=qx(i.sort((l,u)=>l-u))}return a._cache.$bar}function RO(a){let n=a.iScale,s=AO(n,a.type),i=n._length,l,u,d,p,h=()=>{if(d===32767||d===-32768)return;if(Pu(p))i=Math.min(i,Math.abs(d-p)||i);p=d};for(l=0,u=s.length;l<u;++l)d=n.getPixelForValue(s[l]),h();p=void 0;for(l=0,u=n.ticks.length;l<u;++l)d=n.getPixelForTick(l),h();return i}function _O(a,n,s,i){let l=s.barThickness,u,d;if(ht(l))u=n.min*s.categoryPercentage,d=s.barPercentage;else u=l*i,d=1;return{chunk:u/i,ratio:d,start:n.pixels[a]-u/2}}function DO(a,n,s,i){let l=n.pixels,u=l[a],d=a>0?l[a-1]:null,p=a<l.length-1?l[a+1]:null,h=s.categoryPercentage;if(d===null)d=u-(p===null?n.end-n.start:p-u);if(p===null)p=u+u-d;let g=u-(u-Math.min(d,p))/2*h;return{chunk:Math.abs(p-d)/2*h/i,ratio:s.barPercentage,start:g}}function EO(a,n,s,i){let l=s.parse(a[0],i),u=s.parse(a[1],i),d=Math.min(l,u),p=Math.max(l,u),h=d,g=p;if(Math.abs(d)>Math.abs(p))h=p,g=d;n[s.axis]=g,n._custom={barStart:h,barEnd:g,start:l,end:u,min:d,max:p}}function FM(a,n,s,i){if(zt(a))EO(a,n,s,i);else n[s.axis]=s.parse(a,i);return n}function $k(a,n,s,i){let{iScale:l,vScale:u}=a,d=l.getLabels(),p=l===u,h=[],g,b,y,v;for(g=s,b=s+i;g<b;++g)v=n[g],y={},y[l.axis]=p||l.parse(d[g],g),h.push(FM(v,y,u,g));return h}function cv(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function OO(a,n,s){if(a!==0)return Ln(a);return(n.isHorizontal()?1:-1)*(n.min>=s?1:-1)}function PO(a){let n,s,i,l,u;if(a.horizontal)n=a.base>a.x,s="left",i="right";else n=a.base<a.y,s="bottom",i="top";if(n)l="end",u="start";else l="start",u="end";return{start:s,end:i,reverse:n,top:l,bottom:u}}function BO(a,n,s,i){let l=n.borderSkipped,u={};if(!l){a.borderSkipped=u;return}if(l===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:d,end:p,reverse:h,top:g,bottom:b}=PO(a);if(l==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===i)l=g;else if((s._bottom||0)===i)l=b;else u[Wk(b,d,p,h)]=!0,l=g;u[Wk(l,d,p,h)]=!0,a.borderSkipped=u}function Wk(a,n,s,i){if(i)a=NO(a,n,s),a=Zk(a,s,n);else a=Zk(a,n,s);return a}function NO(a,n,s){return a===n?s:a===s?n:a}function Zk(a,n,s){return a==="start"?n:a==="end"?s:a}function zO(a,{inflateAmount:n},s){a.inflateAmount=n==="auto"?s===1?0.33:0:n}class Mv extends vm{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(a,n,s,i){return $k(a,n,s,i)}parseArrayData(a,n,s,i){return $k(a,n,s,i)}parseObjectData(a,n,s,i){let{iScale:l,vScale:u}=a,{xAxisKey:d="x",yAxisKey:p="y"}=this._parsing,h=l.axis==="x"?d:p,g=u.axis==="x"?d:p,b=[],y,v,T,M;for(y=s,v=s+i;y<v;++y)M=n[y],T={},T[l.axis]=l.parse(rl(M,h),y),b.push(FM(rl(M,g),T,u,y));return b}updateRangeFromParsed(a,n,s,i){super.updateRangeFromParsed(a,n,s,i);let l=s._custom;if(l&&n===this._cachedMeta.vScale)a.min=Math.min(a.min,l.min),a.max=Math.max(a.max,l.max)}getMaxOverflow(){return 0}getLabelAndValue(a){let n=this._cachedMeta,{iScale:s,vScale:i}=n,l=this.getParsed(a),u=l._custom,d=cv(u)?"["+u.start+", "+u.end+"]":""+i.getLabelForValue(l[i.axis]);return{label:""+s.getLabelForValue(l[s.axis]),value:d}}initialize(){this.enableOptionSharing=!0,super.initialize();let a=this._cachedMeta;a.stack=this.getDataset().stack}update(a){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,a)}updateElements(a,n,s,i){let l=i==="reset",{index:u,_cachedMeta:{vScale:d}}=this,p=d.getBasePixel(),h=d.isHorizontal(),g=this._getRuler(),{sharedOptions:b,includeOptions:y}=this._getSharedOptions(n,i);for(let v=n;v<n+s;v++){let T=this.getParsed(v),M=l||ht(T[d.axis])?{base:p,head:p}:this._calculateBarValuePixels(v),I=this._calculateBarIndexPixels(v,g),w=(T._stacks||{})[d.axis],A={horizontal:h,base:M.base,enableBorderRadius:!w||cv(T._custom)||u===w._top||u===w._bottom,x:h?M.head:I.center,y:h?I.center:M.head,height:h?I.size:Math.abs(M.size),width:h?Math.abs(M.size):I.size};if(y)A.options=b||this.resolveDataElementOptions(v,a[v].active?"active":i);let B=A.options||a[v].options;BO(A,B,w,u),zO(A,B,g.ratio),this.updateElement(a[v],v,A,i)}}_getStacks(a,n){let{iScale:s}=this._cachedMeta,i=s.getMatchingVisibleMetas(this._type).filter((g)=>g.controller.options.grouped),l=s.options.stacked,u=[],d=this._cachedMeta.controller.getParsed(n),p=d&&d[s.axis],h=(g)=>{let b=g._parsed.find((v)=>v[s.axis]===p),y=b&&b[g.vScale.axis];if(ht(y)||isNaN(y))return!0};for(let g of i){if(n!==void 0&&h(g))continue;if(l===!1||u.indexOf(g.stack)===-1||l===void 0&&g.stack===void 0)u.push(g.stack);if(g.index===a)break}if(!u.length)u.push(void 0);return u}_getStackCount(a){return this._getStacks(void 0,a).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let a=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(a).filter((s)=>a[s].axis===n).shift()}_getAxis(){let a={},n=this.getFirstScaleIdForIndexAxis();for(let s of this.chart.data.datasets)a[Ke(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,n)]=!0;return Object.keys(a)}_getStackIndex(a,n,s){let i=this._getStacks(a,s),l=n!==void 0?i.indexOf(n):-1;return l===-1?i.length-1:l}_getRuler(){let a=this.options,n=this._cachedMeta,s=n.iScale,i=[],l,u;for(l=0,u=n.data.length;l<u;++l)i.push(s.getPixelForValue(this.getParsed(l)[s.axis],l));let d=a.barThickness;return{min:d||RO(n),pixels:i,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:a.grouped,ratio:d?1:a.categoryPercentage*a.barPercentage}}_calculateBarValuePixels(a){let{_cachedMeta:{vScale:n,_stacked:s,index:i},options:{base:l,minBarLength:u}}=this,d=l||0,p=this.getParsed(a),h=p._custom,g=cv(h),b=p[n.axis],y=0,v=s?this.applyStack(n,p,s):b,T,M;if(v!==b)y=v-b,v=b;if(g){if(b=h.barStart,v=h.barEnd-h.barStart,b!==0&&Ln(b)!==Ln(h.barEnd))y=0;y+=b}let I=!ht(l)&&!g?l:y,w=n.getPixelForValue(I);if(this.chart.getDataVisibility(a))T=n.getPixelForValue(y+v);else T=w;if(M=T-w,Math.abs(M)<u){if(M=OO(M,n,d)*u,b===d)w-=M/2;let A=n.getPixelForDecimal(0),B=n.getPixelForDecimal(1),z=Math.min(A,B),H=Math.max(A,B);if(w=Math.max(Math.min(w,H),z),T=w+M,s&&!g)p._stacks[n.axis]._visualValues[i]=n.getValueForPixel(T)-n.getValueForPixel(w)}if(w===n.getPixelForValue(d)){let A=Ln(M)*n.getLineWidthForValue(d)/2;w+=A,M-=A}return{size:M,base:w,head:T,center:T+M/2}}_calculateBarIndexPixels(a,n){let s=n.scale,i=this.options,l=i.skipNull,u=Ke(i.maxBarThickness,1/0),d,p,h=this._getAxisCount();if(n.grouped){let g=l?this._getStackCount(a):n.stackCount,b=i.barThickness==="flex"?DO(a,n,i,g*h):_O(a,n,i,g*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,v=this._getAxis().indexOf(Ke(y,this.getFirstScaleIdForIndexAxis())),T=this._getStackIndex(this.index,this._cachedMeta.stack,l?a:void 0)+v;d=b.start+b.chunk*T+b.chunk/2,p=Math.min(u,b.chunk*b.ratio)}else d=s.getPixelForValue(this.getParsed(a)[s.axis],a),p=Math.min(u,n.min*n.ratio);return{base:d-p/2,head:d+p/2,center:d,size:p}}draw(){let a=this._cachedMeta,n=a.vScale,s=a.data,i=s.length,l=0;for(;l<i;++l)if(this.getParsed(l)[n.axis]!==null&&!s[l].hidden)s[l].draw(this._ctx)}}class Iv extends vm{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(a){let n=this._cachedMeta,{dataset:s,data:i=[],_dataset:l}=n,u=this.chart._animationsDisabled,{start:d,count:p}=Ck(n,i,u);if(this._drawStart=d,this._drawCount=p,Tk(n))d=0,p=i.length;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=i;let h=this.resolveDatasetElementOptions(a);if(!this.options.showLine)h.borderWidth=0;h.segment=this.options.segment,this.updateElement(s,void 0,{animated:!u,options:h},a),this.updateElements(i,d,p,a)}updateElements(a,n,s,i){let l=i==="reset",{iScale:u,vScale:d,_stacked:p,_dataset:h}=this._cachedMeta,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i),y=u.axis,v=d.axis,{spanGaps:T,segment:M}=this.options,I=Nu(T)?T:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||l||i==="none",A=n+s,B=a.length,z=n>0&&this.getParsed(n-1);for(let H=0;H<B;++H){let V=a[H],G=w?V:{};if(H<n||H>=A){G.skip=!0;continue}let X=this.getParsed(H),Y=ht(X[v]),J=G[y]=u.getPixelForValue(X[y],H),j=G[v]=l||Y?d.getBasePixel():d.getPixelForValue(p?this.applyStack(d,X,p):X[v],H);if(G.skip=isNaN(J)||isNaN(j)||Y,G.stop=H>0&&Math.abs(X[y]-z[y])>I,M)G.parsed=X,G.raw=h.data[H];if(b)G.options=g||this.resolveDataElementOptions(H,V.active?"active":i);if(!w)this.updateElement(V,H,G,i);z=X}}getMaxOverflow(){let a=this._cachedMeta,n=a.dataset,s=n.options&&n.options.borderWidth||0,i=a.data||[];if(!i.length)return s;let l=i[0].size(this.resolveDataElementOptions(0)),u=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,l,u)/2}draw(){let a=this._cachedMeta;a.dataset.updateControlPoints(this.chart.chartArea,a.iScale.axis),super.draw()}}function ll(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class Av{static override(a){Object.assign(Av.prototype,a)}options;constructor(a){this.options=a||{}}init(){}formats(){return ll()}parse(){return ll()}format(){return ll()}add(){return ll()}diff(){return ll()}startOf(){return ll()}endOf(){return ll()}}var HO={_date:Av};function UO(a,n,s,i){let{controller:l,data:u,_sorted:d}=a,p=l._cachedMeta.iScale,h=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null;if(p&&n===p.axis&&n!=="r"&&d&&u.length){let g=p._reversePixels?yk:Zr;if(!i){let b=g(u,n,s);if(h){let{vScale:y}=l._cachedMeta,{_parsed:v}=a,T=v.slice(0,b.lo+1).reverse().findIndex((I)=>!ht(I[y.axis]));b.lo-=Math.max(0,T);let M=v.slice(b.hi).findIndex((I)=>!ht(I[y.axis]));b.hi+=Math.max(0,M)}return b}else if(l._sharedOptions){let b=u[0],y=typeof b.getRange==="function"&&b.getRange(n);if(y){let v=g(u,n,s-y),T=g(u,n,s+y);return{lo:v.lo,hi:T.hi}}}}return{lo:0,hi:u.length-1}}function Zd(a,n,s,i,l){let u=a.getSortedVisibleDatasetMetas(),d=s[n];for(let p=0,h=u.length;p<h;++p){let{index:g,data:b}=u[p],{lo:y,hi:v}=UO(u[p],n,d,l);for(let T=y;T<=v;++T){let M=b[T];if(!M.skip)i(M,g,T)}}}function FO(a){let n=a.indexOf("x")!==-1,s=a.indexOf("y")!==-1;return function(i,l){let u=n?Math.abs(i.x-l.x):0,d=s?Math.abs(i.y-l.y):0;return Math.sqrt(Math.pow(u,2)+Math.pow(d,2))}}function dv(a,n,s,i,l){let u=[];if(!l&&!a.isPointInArea(n))return u;return Zd(a,s,n,function(p,h,g){if(!l&&!as(p,a.chartArea,0))return;if(p.inRange(n.x,n.y,i))u.push({element:p,datasetIndex:h,index:g})},!0),u}function qO(a,n,s,i){let l=[];function u(d,p,h){let{startAngle:g,endAngle:b}=d.getProps(["startAngle","endAngle"],i),{angle:y}=mk(d,{x:n.x,y:n.y});if(Ux(y,g,b))l.push({element:d,datasetIndex:p,index:h})}return Zd(a,s,n,u),l}function VO(a,n,s,i,l,u){let d=[],p=FO(s),h=Number.POSITIVE_INFINITY;function g(b,y,v){let T=b.inRange(n.x,n.y,l);if(i&&!T)return;let M=b.getCenterPoint(l);if(!(!!u||a.isPointInArea(M))&&!T)return;let w=p(n,M);if(w<h)d=[{element:b,datasetIndex:y,index:v}],h=w;else if(w===h)d.push({element:b,datasetIndex:y,index:v})}return Zd(a,s,n,g),d}function fv(a,n,s,i,l,u){if(!u&&!a.isPointInArea(n))return[];return s==="r"&&!i?qO(a,n,s,l):VO(a,n,s,i,l,u)}function Qk(a,n,s,i,l){let u=[],d=s==="x"?"inXRange":"inYRange",p=!1;if(Zd(a,s,n,(h,g,b)=>{if(h[d]&&h[d](n[s],l))u.push({element:h,datasetIndex:g,index:b}),p=p||h.inRange(n.x,n.y,l)}),i&&!p)return[];return u}var jO={evaluateInteractionItems:Zd,modes:{index(a,n,s,i){let l=ai(n,a),u=s.axis||"x",d=s.includeInvisible||!1,p=s.intersect?dv(a,l,u,i,d):fv(a,l,u,!1,i,d),h=[];if(!p.length)return[];return a.getSortedVisibleDatasetMetas().forEach((g)=>{let b=p[0].index,y=g.data[b];if(y&&!y.skip)h.push({element:y,datasetIndex:g.index,index:b})}),h},dataset(a,n,s,i){let l=ai(n,a),u=s.axis||"xy",d=s.includeInvisible||!1,p=s.intersect?dv(a,l,u,i,d):fv(a,l,u,!1,i,d);if(p.length>0){let h=p[0].datasetIndex,g=a.getDatasetMeta(h).data;p=[];for(let b=0;b<g.length;++b)p.push({element:g[b],datasetIndex:h,index:b})}return p},point(a,n,s,i){let l=ai(n,a),u=s.axis||"xy",d=s.includeInvisible||!1;return dv(a,l,u,i,d)},nearest(a,n,s,i){let l=ai(n,a),u=s.axis||"xy",d=s.includeInvisible||!1;return fv(a,l,u,s.intersect,i,d)},x(a,n,s,i){let l=ai(n,a);return Qk(a,l,"x",s.intersect,i)},y(a,n,s,i){let l=ai(n,a);return Qk(a,l,"y",s.intersect,i)}}},qM=["left","top","right","bottom"];function Ud(a,n){return a.filter((s)=>s.pos===n)}function Kk(a,n){return a.filter((s)=>qM.indexOf(s.pos)===-1&&s.box.axis===n)}function Fd(a,n){return a.sort((s,i)=>{let l=n?i:s,u=n?s:i;return l.weight===u.weight?l.index-u.index:l.weight-u.weight})}function GO(a){let n=[],s,i,l,u,d,p;for(s=0,i=(a||[]).length;s<i;++s)l=a[s],{position:u,options:{stack:d,stackWeight:p=1}}=l,n.push({index:s,box:l,pos:u,horizontal:l.isHorizontal(),weight:l.weight,stack:d&&u+d,stackWeight:p});return n}function XO(a){let n={};for(let s of a){let{stack:i,pos:l,stackWeight:u}=s;if(!i||!qM.includes(l))continue;let d=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});d.count++,d.weight+=u}return n}function YO(a,n){let s=XO(a),{vBoxMaxWidth:i,hBoxMaxHeight:l}=n,u,d,p;for(u=0,d=a.length;u<d;++u){p=a[u];let{fullSize:h}=p.box,g=s[p.stack],b=g&&p.stackWeight/g.weight;if(p.horizontal)p.width=b?b*i:h&&n.availableWidth,p.height=l;else p.width=i,p.height=b?b*l:h&&n.availableHeight}return s}function $O(a){let n=GO(a),s=Fd(n.filter((g)=>g.box.fullSize),!0),i=Fd(Ud(n,"left"),!0),l=Fd(Ud(n,"right")),u=Fd(Ud(n,"top"),!0),d=Fd(Ud(n,"bottom")),p=Kk(n,"x"),h=Kk(n,"y");return{fullSize:s,leftAndTop:i.concat(u),rightAndBottom:l.concat(h).concat(d).concat(p),chartArea:Ud(n,"chartArea"),vertical:i.concat(l).concat(h),horizontal:u.concat(d).concat(p)}}function Jk(a,n,s,i){return Math.max(a[s],n[s])+Math.max(a[i],n[i])}function VM(a,n){a.top=Math.max(a.top,n.top),a.left=Math.max(a.left,n.left),a.bottom=Math.max(a.bottom,n.bottom),a.right=Math.max(a.right,n.right)}function WO(a,n,s,i){let{pos:l,box:u}=s,d=a.maxPadding;if(!it(l)){if(s.size)a[l]-=s.size;let y=i[s.stack]||{size:0,count:1};y.size=Math.max(y.size,s.horizontal?u.height:u.width),s.size=y.size/y.count,a[l]+=s.size}if(u.getPadding)VM(d,u.getPadding());let p=Math.max(0,n.outerWidth-Jk(d,a,"left","right")),h=Math.max(0,n.outerHeight-Jk(d,a,"top","bottom")),g=p!==a.w,b=h!==a.h;return a.w=p,a.h=h,s.horizontal?{same:g,other:b}:{same:b,other:g}}function ZO(a){let n=a.maxPadding;function s(i){let l=Math.max(n[i]-a[i],0);return a[i]+=l,l}a.y+=s("top"),a.x+=s("left"),s("right"),s("bottom")}function QO(a,n){let s=n.maxPadding;function i(l){let u={left:0,top:0,right:0,bottom:0};return l.forEach((d)=>{u[d]=Math.max(n[d],s[d])}),u}return a?i(["left","right"]):i(["top","bottom"])}function jd(a,n,s,i){let l=[],u,d,p,h,g,b;for(u=0,d=a.length,g=0;u<d;++u){p=a[u],h=p.box,h.update(p.width||n.w,p.height||n.h,QO(p.horizontal,n));let{same:y,other:v}=WO(n,s,p,i);if(g|=y&&l.length,b=b||v,!h.fullSize)l.push(p)}return g&&jd(l,n,s,i)||b}function fm(a,n,s,i,l){a.top=s,a.left=n,a.right=n+i,a.bottom=s+l,a.width=i,a.height=l}function eM(a,n,s,i){let l=s.padding,{x:u,y:d}=n;for(let p of a){let h=p.box,g=i[p.stack]||{count:1,placed:0,weight:1},b=p.stackWeight/g.weight||1;if(p.horizontal){let y=n.w*b,v=g.size||h.height;if(Pu(g.start))d=g.start;if(h.fullSize)fm(h,l.left,d,s.outerWidth-l.right-l.left,v);else fm(h,n.left+g.placed,d,y,v);g.start=d,g.placed+=y,d=h.bottom}else{let y=n.h*b,v=g.size||h.width;if(Pu(g.start))u=g.start;if(h.fullSize)fm(h,u,l.top,v,s.outerHeight-l.bottom-l.top);else fm(h,u,n.top+g.placed,v,y);g.start=u,g.placed+=y,u=h.right}}n.x=u,n.y=d}var nn={addBox(a,n){if(!a.boxes)a.boxes=[];n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(s){n.draw(s)}}]},a.boxes.push(n)},removeBox(a,n){let s=a.boxes?a.boxes.indexOf(n):-1;if(s!==-1)a.boxes.splice(s,1)},configure(a,n,s){n.fullSize=s.fullSize,n.position=s.position,n.weight=s.weight},update(a,n,s,i){if(!a)return;let l=Na(a.options.layout.padding),u=Math.max(n-l.width,0),d=Math.max(s-l.height,0),p=$O(a.boxes),h=p.vertical,g=p.horizontal;Lt(a.boxes,(I)=>{if(typeof I.beforeLayout==="function")I.beforeLayout()});let b=h.reduce((I,w)=>w.box.options&&w.box.options.display===!1?I:I+1,0)||1,y=Object.freeze({outerWidth:n,outerHeight:s,padding:l,availableWidth:u,availableHeight:d,vBoxMaxWidth:u/2/b,hBoxMaxHeight:d/2}),v=Object.assign({},l);VM(v,Na(i));let T=Object.assign({maxPadding:v,w:u,h:d,x:l.left,y:l.top},l),M=YO(h.concat(g),y);if(jd(p.fullSize,T,y,M),jd(h,T,y,M),jd(g,T,y,M))jd(h,T,y,M);ZO(T),eM(p.leftAndTop,T,y,M),T.x+=T.w,T.y+=T.h,eM(p.rightAndBottom,T,y,M),a.chartArea={left:T.left,top:T.top,right:T.left+T.w,bottom:T.top+T.h,height:T.h,width:T.w},Lt(p.chartArea,(I)=>{let w=I.box;Object.assign(w,a.chartArea),w.update(T.w,T.h,{left:0,top:0,right:0,bottom:0})})}};class Rv{acquireContext(a,n){}releaseContext(a){return!1}addEventListener(a,n,s){}removeEventListener(a,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(a,n,s,i){return n=Math.max(0,n||a.width),s=s||a.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(a){return!0}updateConfig(a){}}class jM extends Rv{acquireContext(a){return a&&a.getContext&&a.getContext("2d")||null}updateConfig(a){a.options.animation=!1}}var ym="$chartjs",KO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},tM=(a)=>a===null||a==="";function JO(a,n){let s=a.style,i=a.getAttribute("height"),l=a.getAttribute("width");if(a[ym]={initial:{height:i,width:l,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",tM(l)){let u=tv(a,"width");if(u!==void 0)a.width=u}if(tM(i))if(a.style.height==="")a.height=a.width/(n||2);else{let u=tv(a,"height");if(u!==void 0)a.height=u}return a}var GM=Nk?{passive:!0}:!1;function eP(a,n,s){if(a)a.addEventListener(n,s,GM)}function tP(a,n,s){if(a&&a.canvas)a.canvas.removeEventListener(n,s,GM)}function aP(a,n){let s=KO[a.type]||a.type,{x:i,y:l}=ai(a,n);return{type:s,chart:n,native:a,x:i!==void 0?i:null,y:l!==void 0?l:null}}function xm(a,n){for(let s of a)if(s===n||s.contains(n))return!0}function oP(a,n,s){let i=a.canvas,l=new MutationObserver((u)=>{let d=!1;for(let p of u)d=d||xm(p.addedNodes,i),d=d&&!xm(p.removedNodes,i);if(d)s()});return l.observe(document,{childList:!0,subtree:!0}),l}function nP(a,n,s){let i=a.canvas,l=new MutationObserver((u)=>{let d=!1;for(let p of u)d=d||xm(p.removedNodes,i),d=d&&!xm(p.addedNodes,i);if(d)s()});return l.observe(document,{childList:!0,subtree:!0}),l}var Yd=new Map,aM=0;function XM(){let a=window.devicePixelRatio;if(a===aM)return;aM=a,Yd.forEach((n,s)=>{if(s.currentDevicePixelRatio!==a)n()})}function sP(a,n){if(!Yd.size)window.addEventListener("resize",XM);Yd.set(a,n)}function rP(a){if(Yd.delete(a),!Yd.size)window.removeEventListener("resize",XM)}function iP(a,n,s){let i=a.canvas,l=i&&cm(i);if(!l)return;let u=jx((p,h)=>{let g=l.clientWidth;if(s(p,h),g<l.clientWidth)s()},window),d=new ResizeObserver((p)=>{let h=p[0],g=h.contentRect.width,b=h.contentRect.height;if(g===0&&b===0)return;u(g,b)});return d.observe(l),sP(a,u),d}function pv(a,n,s){if(s)s.disconnect();if(n==="resize")rP(a)}function lP(a,n,s){let i=a.canvas,l=jx((u)=>{if(a.ctx!==null)s(aP(u,a))},a);return eP(i,n,l),l}class YM extends Rv{acquireContext(a,n){let s=a&&a.getContext&&a.getContext("2d");if(s&&s.canvas===a)return JO(a,n),s;return null}releaseContext(a){let n=a.canvas;if(!n[ym])return!1;let s=n[ym].initial;["height","width"].forEach((l)=>{let u=s[l];if(ht(u))n.removeAttribute(l);else n.setAttribute(l,u)});let i=s.style||{};return Object.keys(i).forEach((l)=>{n.style[l]=i[l]}),n.width=n.width,delete n[ym],!0}addEventListener(a,n,s){this.removeEventListener(a,n);let i=a.$proxies||(a.$proxies={}),u={attach:oP,detach:nP,resize:iP}[n]||lP;i[n]=u(a,n,s)}removeEventListener(a,n){let s=a.$proxies||(a.$proxies={}),i=s[n];if(!i)return;({attach:pv,detach:pv,resize:pv}[n]||tP)(a,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(a,n,s,i){return Bk(a,n,s,i)}isAttached(a){let n=a&&cm(a);return!!(n&&n.isConnected)}}function uP(a){if(!um()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return jM;return YM}class Xs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}hasValue(){return Nu(this.x)&&Nu(this.y)}getProps(a,n){let s=this.$animations;if(!n||!s)return this;let i={};return a.forEach((l)=>{i[l]=s[l]&&s[l].active()?s[l]._to:this[l]}),i}}function cP(a,n){let s=a.options.ticks,i=dP(a),l=Math.min(s.maxTicksLimit||i,i),u=s.major.enabled?pP(n):[],d=u.length,p=u[0],h=u[d-1],g=[];if(d>l)return hP(n,g,u,d/l),g;let b=fP(u,n,l);if(d>0){let y,v,T=d>1?Math.round((h-p)/(d-1)):null;pm(n,g,b,ht(T)?0:p-T,p);for(y=0,v=d-1;y<v;y++)pm(n,g,b,u[y],u[y+1]);return pm(n,g,b,h,ht(T)?n.length:h+T),g}return pm(n,g,b),g}function dP(a){let n=a.options.offset,s=a._tickSize(),i=a._length/s+(n?0:1),l=a._maxLength/s;return Math.floor(Math.min(i,l))}function fP(a,n,s){let i=mP(a),l=n.length/s;if(!i)return Math.max(l,1);let u=pk(i);for(let d=0,p=u.length-1;d<p;d++){let h=u[d];if(h>l)return h}return Math.max(l,1)}function pP(a){let n=[],s,i;for(s=0,i=a.length;s<i;s++)if(a[s].major)n.push(s);return n}function hP(a,n,s,i){let l=0,u=s[0],d;i=Math.ceil(i);for(d=0;d<a.length;d++)if(d===u)n.push(a[d]),l++,u=s[l*i]}function pm(a,n,s,i,l){let u=Ke(i,0),d=Math.min(Ke(l,a.length),a.length),p=0,h,g,b;if(s=Math.ceil(s),l)h=l-i,s=h/Math.floor(h/s);b=u;while(b<0)p++,b=Math.round(u+p*s);for(g=Math.max(u,0);g<d;g++)if(g===b)n.push(a[g]),p++,b=Math.round(u+p*s)}function mP(a){let n=a.length,s,i;if(n<2)return!1;for(i=a[0],s=1;s<n;++s)if(a[s]-a[s-1]!==i)return!1;return i}var gP=(a)=>a==="left"?"right":a==="right"?"left":a,oM=(a,n,s)=>n==="top"||n==="left"?a[n]+s:a[n]-s,nM=(a,n)=>Math.min(n||a,a);function sM(a,n){let s=[],i=a.length/n,l=a.length,u=0;for(;u<l;u+=i)s.push(a[Math.floor(u)]);return s}function yP(a,n,s){let i=a.ticks.length,l=Math.min(n,i-1),u=a._startPixel,d=a._endPixel,p=0.000001,h=a.getPixelForTick(l),g;if(s){if(i===1)g=Math.max(h-u,d-h);else if(n===0)g=(a.getPixelForTick(1)-h)/2;else g=(h-a.getPixelForTick(l-1))/2;if(h+=l<n?g:-g,h<u-0.000001||h>d+0.000001)return}return h}function bP(a,n){Lt(a,(s)=>{let i=s.gc,l=i.length/2,u;if(l>n){for(u=0;u<l;++u)delete s.data[i[u]];i.splice(0,l)}})}function qd(a){return a.drawTicks?a.tickLength:0}function rM(a,n){if(!a.display)return 0;let s=pa(a.font,n),i=Na(a.padding);return(zt(a.text)?a.text.length:1)*s.lineHeight+i.height}function xP(a,n){return Vs(a,{scale:n,type:"scale"})}function vP(a,n,s){return Vs(a,{tick:s,index:n,type:"tick"})}function SP(a,n,s){let i=nm(a);if(s&&n!=="right"||!s&&n==="right")i=gP(i);return i}function LP(a,n,s,i){let{top:l,left:u,bottom:d,right:p,chart:h}=a,{chartArea:g,scales:b}=h,y=0,v,T,M,I=d-l,w=p-u;if(a.isHorizontal()){if(T=Ba(i,u,p),it(s)){let A=Object.keys(s)[0],B=s[A];M=b[A].getPixelForValue(B)+I-n}else if(s==="center")M=(g.bottom+g.top)/2+I-n;else M=oM(a,s,n);v=p-u}else{if(it(s)){let A=Object.keys(s)[0],B=s[A];T=b[A].getPixelForValue(B)-w+n}else if(s==="center")T=(g.left+g.right)/2-w+n;else T=oM(a,s,n);M=Ba(i,d,l),y=s==="left"?-po:po}return{titleX:T,titleY:M,maxWidth:v,rotation:y}}class cl extends Xs{constructor(a){super();this.id=a.id,this.type=a.type,this.options=void 0,this.ctx=a.ctx,this.chart=a.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(a){this.options=a.setContext(this.getContext()),this.axis=a.axis,this._userMin=this.parse(a.min),this._userMax=this.parse(a.max),this._suggestedMin=this.parse(a.suggestedMin),this._suggestedMax=this.parse(a.suggestedMax)}parse(a,n){return a}getUserBounds(){let{_userMin:a,_userMax:n,_suggestedMin:s,_suggestedMax:i}=this;return a=go(a,Number.POSITIVE_INFINITY),n=go(n,Number.NEGATIVE_INFINITY),s=go(s,Number.POSITIVE_INFINITY),i=go(i,Number.NEGATIVE_INFINITY),{min:go(a,s),max:go(n,i),minDefined:Kt(a),maxDefined:Kt(n)}}getMinMax(a){let{min:n,max:s,minDefined:i,maxDefined:l}=this.getUserBounds(),u;if(i&&l)return{min:n,max:s};let d=this.getMatchingVisibleMetas();for(let p=0,h=d.length;p<h;++p){if(u=d[p].controller.getMinMax(this,a),!i)n=Math.min(n,u.min);if(!l)s=Math.max(s,u.max)}return n=l&&n>s?s:n,s=i&&n>s?n:s,{min:go(n,go(s,n)),max:go(s,go(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let a=this.chart.data;return this.options.labels||(this.isHorizontal()?a.xLabels:a.yLabels)||a.labels||[]}getLabelItems(a=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(a))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ot(this.options.beforeUpdate,[this])}update(a,n,s){let{beginAtZero:i,grace:l,ticks:u}=this.options,d=u.sampleSize;if(this.beforeUpdate(),this.maxWidth=a,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Rk(this,l,i),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let p=d<this.ticks.length;if(this._convertTicksToLabels(p?sM(this.ticks,d):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),u.display&&(u.autoSkip||u.source==="auto"))this.ticks=cP(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(p)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let a=this.options.reverse,n,s;if(this.isHorizontal())n=this.left,s=this.right;else n=this.top,s=this.bottom,a=!a;this._startPixel=n,this._endPixel=s,this._reversePixels=a,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ot(this.options.afterUpdate,[this])}beforeSetDimensions(){Ot(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ot(this.options.afterSetDimensions,[this])}_callHooks(a){this.chart.notifyPlugins(a,this.getContext()),Ot(this.options[a],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ot(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(a){let n=this.options.ticks,s,i,l;for(s=0,i=a.length;s<i;s++)l=a[s],l.label=Ot(n.callback,[l.value,s,a],this)}afterTickToLabelConversion(){Ot(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ot(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let a=this.options,n=a.ticks,s=nM(this.ticks.length,a.ticks.maxTicksLimit),i=n.minRotation||0,l=n.maxRotation,u=i,d,p,h;if(!this._isVisible()||!n.display||i>=l||s<=1||!this.isHorizontal()){this.labelRotation=i;return}let g=this._getLabelSizes(),b=g.widest.width,y=g.highest.height,v=mo(this.chart.width-b,0,this.maxWidth);if(d=a.offset?this.maxWidth/s:v/(s-1),b+6>d)d=v/(s-(a.offset?0.5:1)),p=this.maxHeight-qd(a.grid)-n.padding-rM(a.title,this.chart.options.font),h=Math.sqrt(b*b+y*y),u=am(Math.min(Math.asin(mo((g.highest.height+6)/d,-1,1)),Math.asin(mo(p/h,-1,1))-Math.asin(mo(y/h,-1,1)))),u=Math.max(i,Math.min(l,u));this.labelRotation=u}afterCalculateLabelRotation(){Ot(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ot(this.options.beforeFit,[this])}fit(){let a={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:l}}=this,u=this._isVisible(),d=this.isHorizontal();if(u){let p=rM(i,n.options.font);if(d)a.width=this.maxWidth,a.height=qd(l)+p;else a.height=this.maxHeight,a.width=qd(l)+p;if(s.display&&this.ticks.length){let{first:h,last:g,widest:b,highest:y}=this._getLabelSizes(),v=s.padding*2,T=Fs(this.labelRotation),M=Math.cos(T),I=Math.sin(T);if(d){let w=s.mirror?0:I*b.width+M*y.height;a.height=Math.min(this.maxHeight,a.height+w+v)}else{let w=s.mirror?0:M*b.width+I*y.height;a.width=Math.min(this.maxWidth,a.width+w+v)}this._calculatePadding(h,g,I,M)}}if(this._handleMargins(),d)this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=a.height;else this.width=a.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom}_calculatePadding(a,n,s,i){let{ticks:{align:l,padding:u},position:d}=this.options,p=this.labelRotation!==0,h=d!=="top"&&this.axis==="x";if(this.isHorizontal()){let g=this.getPixelForTick(0)-this.left,b=this.right-this.getPixelForTick(this.ticks.length-1),y=0,v=0;if(p)if(h)y=i*a.width,v=s*n.height;else y=s*a.height,v=i*n.width;else if(l==="start")v=n.width;else if(l==="end")y=a.width;else if(l!=="inner")y=a.width/2,v=n.width/2;this.paddingLeft=Math.max((y-g+u)*this.width/(this.width-g),0),this.paddingRight=Math.max((v-b+u)*this.width/(this.width-b),0)}else{let g=n.height/2,b=a.height/2;if(l==="start")g=0,b=a.height;else if(l==="end")g=n.height,b=0;this.paddingTop=g+u,this.paddingBottom=b+u}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){Ot(this.options.afterFit,[this])}isHorizontal(){let{axis:a,position:n}=this.options;return n==="top"||n==="bottom"||a==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(a){this.beforeTickToLabelConversion(),this.generateTickLabels(a);let n,s;for(n=0,s=a.length;n<s;n++)if(ht(a[n].label))a.splice(n,1),s--,n--;this.afterTickToLabelConversion()}_getLabelSizes(){let a=this._labelSizes;if(!a){let n=this.options.ticks.sampleSize,s=this.ticks;if(n<s.length)s=sM(s,n);this._labelSizes=a=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return a}_computeLabelSizes(a,n,s){let{ctx:i,_longestTextCache:l}=this,u=[],d=[],p=Math.floor(n/nM(n,s)),h=0,g=0,b,y,v,T,M,I,w,A,B,z,H;for(b=0;b<n;b+=p){if(T=a[b].label,M=this._resolveTickFontOptions(b),i.font=I=M.string,w=l[I]=l[I]||{data:{},gc:[]},A=M.lineHeight,B=z=0,!ht(T)&&!zt(T))B=Ed(i,w.data,w.gc,B,T),z=A;else if(zt(T)){for(y=0,v=T.length;y<v;++y)if(H=T[y],!ht(H)&&!zt(H))B=Ed(i,w.data,w.gc,B,H),z+=A}u.push(B),d.push(z),h=Math.max(B,h),g=Math.max(z,g)}bP(l,n);let V=u.indexOf(h),G=d.indexOf(g),X=(Y)=>({width:u[Y]||0,height:d[Y]||0});return{first:X(0),last:X(n-1),widest:X(V),highest:X(G),widths:u,heights:d}}getLabelForValue(a){return a}getPixelForValue(a,n){return NaN}getValueForPixel(a){}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getPixelForDecimal(a){if(this._reversePixels)a=1-a;let n=this._startPixel+a*this._length;return gk(this._alignToPixels?Jr(this.chart,n,0):n)}getDecimalForPixel(a){let n=(a-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:a,max:n}=this;return a<0&&n<0?n:a>0&&n>0?a:0}getContext(a){let n=this.ticks||[];if(a>=0&&a<n.length){let s=n[a];return s.$context||(s.$context=vP(this.getContext(),a,s))}return this.$context||(this.$context=xP(this.chart.getContext(),this))}_tickSize(){let a=this.options.ticks,n=Fs(this.labelRotation),s=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),l=this._getLabelSizes(),u=a.autoSkipPadding||0,d=l?l.widest.width+u:0,p=l?l.highest.height+u:0;return this.isHorizontal()?p*s>d*i?d/s:p/i:p*i<d*s?p/s:d/i}_isVisible(){let a=this.options.display;if(a!=="auto")return!!a;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(a){let n=this.axis,s=this.chart,i=this.options,{grid:l,position:u,border:d}=i,p=l.offset,h=this.isHorizontal(),b=this.ticks.length+(p?1:0),y=qd(l),v=[],T=d.setContext(this.getContext()),M=T.display?T.width:0,I=M/2,w=function(K){return Jr(s,K,M)},A,B,z,H,V,G,X,Y,J,j,se,ge;if(u==="top")A=w(this.bottom),G=this.bottom-y,Y=A-I,j=w(a.top)+I,ge=a.bottom;else if(u==="bottom")A=w(this.top),j=a.top,ge=w(a.bottom)-I,G=A+I,Y=this.top+y;else if(u==="left")A=w(this.right),V=this.right-y,X=A-I,J=w(a.left)+I,se=a.right;else if(u==="right")A=w(this.left),J=a.left,se=w(a.right)-I,V=A+I,X=this.left+y;else if(n==="x"){if(u==="center")A=w((a.top+a.bottom)/2+0.5);else if(it(u)){let K=Object.keys(u)[0],pe=u[K];A=w(this.chart.scales[K].getPixelForValue(pe))}j=a.top,ge=a.bottom,G=A+I,Y=G+y}else if(n==="y"){if(u==="center")A=w((a.left+a.right)/2);else if(it(u)){let K=Object.keys(u)[0],pe=u[K];A=w(this.chart.scales[K].getPixelForValue(pe))}V=A-I,X=V-y,J=a.left,se=a.right}let ye=Ke(i.ticks.maxTicksLimit,b),Se=Math.max(1,Math.ceil(b/ye));for(B=0;B<b;B+=Se){let K=this.getContext(B),pe=l.setContext(K),be=d.setContext(K),Ue=pe.lineWidth,He=pe.color,k=be.dash||[],W=be.dashOffset,ee=pe.tickWidth,ne=pe.tickColor,te=pe.tickBorderDash||[],le=pe.tickBorderDashOffset;if(z=yP(this,B,p),z===void 0)continue;if(H=Jr(s,z,Ue),h)V=X=J=se=H;else G=Y=j=ge=H;v.push({tx1:V,ty1:G,tx2:X,ty2:Y,x1:J,y1:j,x2:se,y2:ge,width:Ue,color:He,borderDash:k,borderDashOffset:W,tickWidth:ee,tickColor:ne,tickBorderDash:te,tickBorderDashOffset:le})}return this._ticksLength=b,this._borderValue=A,v}_computeLabelItems(a){let n=this.axis,s=this.options,{position:i,ticks:l}=s,u=this.isHorizontal(),d=this.ticks,{align:p,crossAlign:h,padding:g,mirror:b}=l,y=qd(s.grid),v=y+g,T=b?-g:v,M=-Fs(this.labelRotation),I=[],w,A,B,z,H,V,G,X,Y,J,j,se,ge="middle";if(i==="top")V=this.bottom-T,G=this._getXAxisLabelAlignment();else if(i==="bottom")V=this.top+T,G=this._getXAxisLabelAlignment();else if(i==="left"){let Se=this._getYAxisLabelAlignment(y);G=Se.textAlign,H=Se.x}else if(i==="right"){let Se=this._getYAxisLabelAlignment(y);G=Se.textAlign,H=Se.x}else if(n==="x"){if(i==="center")V=(a.top+a.bottom)/2+v;else if(it(i)){let Se=Object.keys(i)[0],K=i[Se];V=this.chart.scales[Se].getPixelForValue(K)+v}G=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")H=(a.left+a.right)/2-v;else if(it(i)){let Se=Object.keys(i)[0],K=i[Se];H=this.chart.scales[Se].getPixelForValue(K)}G=this._getYAxisLabelAlignment(y).textAlign}if(n==="y"){if(p==="start")ge="top";else if(p==="end")ge="bottom"}let ye=this._getLabelSizes();for(w=0,A=d.length;w<A;++w){B=d[w],z=B.label;let Se=l.setContext(this.getContext(w));X=this.getPixelForTick(w)+l.labelOffset,Y=this._resolveTickFontOptions(w),J=Y.lineHeight,j=zt(z)?z.length:1;let K=j/2,pe=Se.color,be=Se.textStrokeColor,Ue=Se.textStrokeWidth,He=G;if(u){if(H=X,G==="inner")if(w===A-1)He=!this.options.reverse?"right":"left";else if(w===0)He=!this.options.reverse?"left":"right";else He="center";if(i==="top")if(h==="near"||M!==0)se=-j*J+J/2;else if(h==="center")se=-ye.highest.height/2-K*J+J;else se=-ye.highest.height+J/2;else if(h==="near"||M!==0)se=J/2;else if(h==="center")se=ye.highest.height/2-K*J;else se=ye.highest.height-j*J;if(b)se*=-1;if(M!==0&&!Se.showLabelBackdrop)H+=J/2*Math.sin(M)}else V=X,se=(1-j)*J/2;let k;if(Se.showLabelBackdrop){let W=Na(Se.backdropPadding),ee=ye.heights[w],ne=ye.widths[w],te=se-W.top,le=0-W.left;switch(ge){case"middle":te-=ee/2;break;case"bottom":te-=ee;break}switch(G){case"center":le-=ne/2;break;case"right":le-=ne;break;case"inner":if(w===A-1)le-=ne;else if(w>0)le-=ne/2;break}k={left:le,top:te,width:ne+W.width,height:ee+W.height,color:Se.backdropColor}}I.push({label:z,font:Y,textOffset:se,options:{rotation:M,color:pe,strokeColor:be,strokeWidth:Ue,textAlign:He,textBaseline:ge,translation:[H,V],backdrop:k}})}return I}_getXAxisLabelAlignment(){let{position:a,ticks:n}=this.options;if(-Fs(this.labelRotation))return a==="top"?"left":"right";let i="center";if(n.align==="start")i="left";else if(n.align==="end")i="right";else if(n.align==="inner")i="inner";return i}_getYAxisLabelAlignment(a){let{position:n,ticks:{crossAlign:s,mirror:i,padding:l}}=this.options,u=this._getLabelSizes(),d=a+l,p=u.widest.width,h,g;if(n==="left")if(i)if(g=this.right+l,s==="near")h="left";else if(s==="center")h="center",g+=p/2;else h="right",g+=p;else if(g=this.right-d,s==="near")h="right";else if(s==="center")h="center",g-=p/2;else h="left",g=this.left;else if(n==="right")if(i)if(g=this.left+l,s==="near")h="right";else if(s==="center")h="center",g-=p/2;else h="left",g-=p;else if(g=this.left+d,s==="near")h="left";else if(s==="center")h="center",g+=p/2;else h="right",g=this.right;else h="right";return{textAlign:h,x:g}}_computeLabelArea(){if(this.options.ticks.mirror)return;let a=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:a.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:a.width}}drawBackground(){let{ctx:a,options:{backgroundColor:n},left:s,top:i,width:l,height:u}=this;if(n)a.save(),a.fillStyle=n,a.fillRect(s,i,l,u),a.restore()}getLineWidthForValue(a){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let i=this.ticks.findIndex((l)=>l.value===a);if(i>=0)return n.setContext(this.getContext(i)).lineWidth;return 0}drawGrid(a){let n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(a)),l,u,d=(p,h,g)=>{if(!g.width||!g.color)return;s.save(),s.lineWidth=g.width,s.strokeStyle=g.color,s.setLineDash(g.borderDash||[]),s.lineDashOffset=g.borderDashOffset,s.beginPath(),s.moveTo(p.x,p.y),s.lineTo(h.x,h.y),s.stroke(),s.restore()};if(n.display)for(l=0,u=i.length;l<u;++l){let p=i[l];if(n.drawOnChartArea)d({x:p.x1,y:p.y1},{x:p.x2,y:p.y2},p);if(n.drawTicks)d({x:p.tx1,y:p.ty1},{x:p.tx2,y:p.ty2},{color:p.tickColor,width:p.tickWidth,borderDash:p.tickBorderDash,borderDashOffset:p.tickBorderDashOffset})}}drawBorder(){let{chart:a,ctx:n,options:{border:s,grid:i}}=this,l=s.setContext(this.getContext()),u=s.display?l.width:0;if(!u)return;let d=i.setContext(this.getContext(0)).lineWidth,p=this._borderValue,h,g,b,y;if(this.isHorizontal())h=Jr(a,this.left,u)-u/2,g=Jr(a,this.right,d)+d/2,b=y=p;else b=Jr(a,this.top,u)-u/2,y=Jr(a,this.bottom,d)+d/2,h=g=p;n.save(),n.lineWidth=l.width,n.strokeStyle=l.color,n.beginPath(),n.moveTo(h,b),n.lineTo(g,y),n.stroke(),n.restore()}drawLabels(a){if(!this.options.ticks.display)return;let s=this.ctx,i=this._computeLabelArea();if(i)Bd(s,i);let l=this.getLabelItems(a);for(let u of l){let{options:d,font:p,label:h,textOffset:g}=u;ei(s,h,0,g,p,d)}if(i)Nd(s)}drawTitle(){let{ctx:a,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;let l=pa(s.font),u=Na(s.padding),d=s.align,p=l.lineHeight/2;if(n==="bottom"||n==="center"||it(n)){if(p+=u.bottom,zt(s.text))p+=l.lineHeight*(s.text.length-1)}else p+=u.top;let{titleX:h,titleY:g,maxWidth:b,rotation:y}=LP(this,p,n,d);ei(a,s.text,0,0,l,{color:s.color,maxWidth:b,rotation:y,textAlign:SP(d,n,i),textBaseline:"middle",translation:[h,g]})}draw(a){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(a),this.drawBorder(),this.drawTitle(),this.drawLabels(a)}_layers(){let a=this.options,n=a.ticks&&a.ticks.z||0,s=Ke(a.grid&&a.grid.z,-1),i=Ke(a.border&&a.border.z,0);if(!this._isVisible()||this.draw!==cl.prototype.draw)return[{z:n,draw:(l)=>{this.draw(l)}}];return[{z:s,draw:(l)=>{this.drawBackground(),this.drawGrid(l),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:(l)=>{this.drawLabels(l)}}]}getMatchingVisibleMetas(a){let n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[],l,u;for(l=0,u=n.length;l<u;++l){let d=n[l];if(d[s]===this.id&&(!a||d.type===a))i.push(d)}return i}_resolveTickFontOptions(a){let n=this.options.ticks.setContext(this.getContext(a));return pa(n.font)}_maxDigits(){let a=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/a}}class Gd{constructor(a,n,s){this.type=a,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(a){return Object.prototype.isPrototypeOf.call(this.type.prototype,a.prototype)}register(a){let n=Object.getPrototypeOf(a),s;if(wP(n))s=this.register(n);let i=this.items,l=a.id,u=this.scope+"."+l;if(!l)throw Error("class does not have id: "+a);if(l in i)return u;if(i[l]=a,CP(a,u,s),this.override)Jt.override(a.id,a.overrides);return u}get(a){return this.items[a]}unregister(a){let n=this.items,s=a.id,i=this.scope;if(s in n)delete n[s];if(i&&s in Jt[i]){if(delete Jt[i][s],this.override)delete Kr[s]}}}function CP(a,n,s){let i=Du(Object.create(null),[s?Jt.get(s):{},Jt.get(n),a.defaults]);if(Jt.set(n,i),a.defaultRoutes)TP(n,a.defaultRoutes);if(a.descriptors)Jt.describe(n,a.descriptors)}function TP(a,n){Object.keys(n).forEach((s)=>{let i=s.split("."),l=i.pop(),u=[a].concat(i).join("."),d=n[s].split("."),p=d.pop(),h=d.join(".");Jt.route(u,l,h,p)})}function wP(a){return"id"in a&&"defaults"in a}class $M{constructor(){this.controllers=new Gd(vm,"datasets",!0),this.elements=new Gd(Xs,"elements"),this.plugins=new Gd(Object,"plugins"),this.scales=new Gd(cl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...a){this._each("register",a)}remove(...a){this._each("unregister",a)}addControllers(...a){this._each("register",a,this.controllers)}addElements(...a){this._each("register",a,this.elements)}addPlugins(...a){this._each("register",a,this.plugins)}addScales(...a){this._each("register",a,this.scales)}getController(a){return this._get(a,this.controllers,"controller")}getElement(a){return this._get(a,this.elements,"element")}getPlugin(a){return this._get(a,this.plugins,"plugin")}getScale(a){return this._get(a,this.scales,"scale")}removeControllers(...a){this._each("unregister",a,this.controllers)}removeElements(...a){this._each("unregister",a,this.elements)}removePlugins(...a){this._each("unregister",a,this.plugins)}removeScales(...a){this._each("unregister",a,this.scales)}_each(a,n,s){[...n].forEach((i)=>{let l=s||this._getRegistryForType(i);if(s||l.isForType(i)||l===this.plugins&&i.id)this._exec(a,l,i);else Lt(i,(u)=>{let d=s||this._getRegistryForType(u);this._exec(a,d,u)})})}_exec(a,n,s){let i=tm(a);Ot(s["before"+i],[],s),n[a](s),Ot(s["after"+i],[],s)}_getRegistryForType(a){for(let n=0;n<this._typedRegistries.length;n++){let s=this._typedRegistries[n];if(s.isForType(a))return s}return this.plugins}_get(a,n,s){let i=n.get(a);if(i===void 0)throw Error('"'+a+'" is not a registered '+s+".");return i}}var ss=new $M;class WM{constructor(){this._init=void 0}notify(a,n,s,i){if(n==="beforeInit")this._init=this._createDescriptors(a,!0),this._notify(this._init,a,"install");if(this._init===void 0)return;let l=i?this._descriptors(a).filter(i):this._descriptors(a),u=this._notify(l,a,n,s);if(n==="afterDestroy")this._notify(l,a,"stop"),this._notify(this._init,a,"uninstall"),this._init=void 0;return u}_notify(a,n,s,i){i=i||{};for(let l of a){let u=l.plugin,d=u[s],p=[n,i,l.options];if(Ot(d,p,u)===!1&&i.cancelable)return!1}return!0}invalidate(){if(!ht(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(a){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(a);return this._notifyStateChanges(a),n}_createDescriptors(a,n){let s=a&&a.config,i=Ke(s.options&&s.options.plugins,{}),l=kP(s);return i===!1&&!n?[]:IP(a,l,i,n)}_notifyStateChanges(a){let n=this._oldCache||[],s=this._cache,i=(l,u)=>l.filter((d)=>!u.some((p)=>d.plugin.id===p.plugin.id));this._notify(i(n,s),a,"stop"),this._notify(i(s,n),a,"start")}}function kP(a){let n={},s=[],i=Object.keys(ss.plugins.items);for(let u=0;u<i.length;u++)s.push(ss.getPlugin(i[u]));let l=a.plugins||[];for(let u=0;u<l.length;u++){let d=l[u];if(s.indexOf(d)===-1)s.push(d),n[d.id]=!0}return{plugins:s,localIds:n}}function MP(a,n){if(!n&&a===!1)return null;if(a===!0)return{};return a}function IP(a,{plugins:n,localIds:s},i,l){let u=[],d=a.getContext();for(let p of n){let h=p.id,g=MP(i[h],l);if(g===null)continue;u.push({plugin:p,options:AP(a.config,{plugin:p,local:s[h]},g,d)})}return u}function AP(a,{plugin:n,local:s},i,l){let u=a.pluginScopeKeys(n),d=a.getOptionScopes(i,u);if(s&&n.defaults)d.push(n.defaults);return a.createResolver(d,l,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function bv(a,n){let s=Jt.datasets[a]||{};return((n.datasets||{})[a]||{}).indexAxis||n.indexAxis||s.indexAxis||"x"}function RP(a,n){let s=a;if(a==="_index_")s=n;else if(a==="_value_")s=n==="x"?"y":"x";return s}function _P(a,n){return a===n?"_index_":"_value_"}function iM(a){if(a==="x"||a==="y"||a==="r")return a}function DP(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function xv(a,...n){if(iM(a))return a;for(let s of n){let i=s.axis||DP(s.position)||a.length>1&&iM(a[0].toLowerCase());if(i)return i}throw Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function lM(a,n,s){if(s[n+"AxisID"]===a)return{axis:n}}function EP(a,n){if(n.data&&n.data.datasets){let s=n.data.datasets.filter((i)=>i.xAxisID===a||i.yAxisID===a);if(s.length)return lM(a,"x",s[0])||lM(a,"y",s[0])}return{}}function OP(a,n){let s=Kr[a.type]||{scales:{}},i=n.scales||{},l=bv(a.type,n),u=Object.create(null);return Object.keys(i).forEach((d)=>{let p=i[d];if(!it(p))return console.error(`Invalid scale configuration for scale: ${d}`);if(p._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${d}`);let h=xv(d,p,EP(d,a),Jt.scales[p.type]),g=_P(h,l),b=s.scales||{};u[d]=Ou(Object.create(null),[{axis:h},p,b[h],b[g]])}),a.data.datasets.forEach((d)=>{let p=d.type||a.type,h=d.indexAxis||bv(p,n),b=(Kr[p]||{}).scales||{};Object.keys(b).forEach((y)=>{let v=RP(y,h),T=d[v+"AxisID"]||v;u[T]=u[T]||Object.create(null),Ou(u[T],[{axis:v},i[T],b[y]])})}),Object.keys(u).forEach((d)=>{let p=u[d];Ou(p,[Jt.scales[p.type],Jt.scale])}),u}function ZM(a){let n=a.options||(a.options={});n.plugins=Ke(n.plugins,{}),n.scales=OP(a,n)}function QM(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function PP(a){return a=a||{},a.data=QM(a.data),ZM(a),a}var uM=new Map,KM=new Set;function hm(a,n){let s=uM.get(a);if(!s)s=n(),uM.set(a,s),KM.add(s);return s}var Vd=(a,n,s)=>{let i=rl(n,s);if(i!==void 0)a.add(i)};class JM{constructor(a){this._config=PP(a),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(a){this._config.type=a}get data(){return this._config.data}set data(a){this._config.data=QM(a)}get options(){return this._config.options}set options(a){this._config.options=a}get plugins(){return this._config.plugins}update(){let a=this._config;this.clearCache(),ZM(a)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(a){return hm(a,()=>[[`datasets.${a}`,""]])}datasetAnimationScopeKeys(a,n){return hm(`${a}.transition.${n}`,()=>[[`datasets.${a}.transitions.${n}`,`transitions.${n}`],[`datasets.${a}`,""]])}datasetElementScopeKeys(a,n){return hm(`${a}-${n}`,()=>[[`datasets.${a}.elements.${n}`,`datasets.${a}`,`elements.${n}`,""]])}pluginScopeKeys(a){let n=a.id,s=this.type;return hm(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...a.additionalOptionScopes||[]]])}_cachedScopes(a,n){let s=this._scopeCache,i=s.get(a);if(!i||n)i=new Map,s.set(a,i);return i}getOptionScopes(a,n,s){let{options:i,type:l}=this,u=this._cachedScopes(a,s),d=u.get(n);if(d)return d;let p=new Set;n.forEach((g)=>{if(a)p.add(a),g.forEach((b)=>Vd(p,a,b));g.forEach((b)=>Vd(p,i,b)),g.forEach((b)=>Vd(p,Kr[l]||{},b)),g.forEach((b)=>Vd(p,Jt,b)),g.forEach((b)=>Vd(p,rm,b))});let h=Array.from(p);if(h.length===0)h.push(Object.create(null));if(KM.has(n))u.set(n,h);return h}chartOptionScopes(){let{options:a,type:n}=this;return[a,Kr[n]||{},Jt.datasets[n]||{},{type:n},Jt,rm]}resolveNamedOptions(a,n,s,i=[""]){let l={$shared:!0},{resolver:u,subPrefixes:d}=cM(this._resolverCache,a,i),p=u;if(NP(u,n)){l.$shared=!1,s=Hs(s)?s():s;let h=this.createResolver(a,s,d);p=sl(u,s,h)}for(let h of n)l[h]=p[h];return l}createResolver(a,n,s=[""],i){let{resolver:l}=cM(this._resolverCache,a,s);return it(n)?sl(l,n,void 0,i):l}}function cM(a,n,s){let i=a.get(n);if(!i)i=new Map,a.set(n,i);let l=s.join(),u=i.get(l);if(!u)u={resolver:lm(n,s),subPrefixes:s.filter((p)=>!p.toLowerCase().includes("hover"))},i.set(l,u);return u}var BP=(a)=>it(a)&&Object.getOwnPropertyNames(a).some((n)=>Hs(a[n]));function NP(a,n){let{isScriptable:s,isIndexable:i}=Qx(a);for(let l of n){let u=s(l),d=i(l),p=(d||u)&&a[l];if(u&&(Hs(p)||BP(p))||d&&zt(p))return!0}return!1}var zP="4.5.1",HP=["top","bottom","left","right","chartArea"];function dM(a,n){return a==="top"||a==="bottom"||HP.indexOf(a)===-1&&n==="x"}function fM(a,n){return function(s,i){return s[a]===i[a]?s[n]-i[n]:s[a]-i[a]}}function pM(a){let n=a.chart,s=n.options.animation;n.notifyPlugins("afterRender"),Ot(s&&s.onComplete,[a],n)}function UP(a){let n=a.chart,s=n.options.animation;Ot(s&&s.onProgress,[a],n)}function eI(a){if(um()&&typeof a==="string")a=document.getElementById(a);else if(a&&a.length)a=a[0];if(a&&a.canvas)a=a.canvas;return a}var bm={},hM=(a)=>{let n=eI(a);return Object.values(bm).filter((s)=>s.canvas===n).pop()};function FP(a,n,s){let i=Object.keys(a);for(let l of i){let u=+l;if(u>=n){let d=a[l];if(delete a[l],s>0||u>n)a[u+s]=d}}}function qP(a,n,s,i){if(!s||a.type==="mouseout")return null;if(i)return n;return a}class dl{static defaults=Jt;static instances=bm;static overrides=Kr;static registry=ss;static version=zP;static getChart=hM;static register(...a){ss.add(...a),mM()}static unregister(...a){ss.remove(...a),mM()}constructor(a,n){let s=this.config=new JM(n),i=eI(a),l=hM(i);if(l)throw Error("Canvas is already in use. Chart with ID '"+l.id+"' must be destroyed before the canvas with ID '"+l.canvas.id+"' can be reused.");let u=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||uP(i)),this.platform.updateConfig(s);let d=this.platform.acquireContext(i,u.aspectRatio),p=d&&d.canvas,h=p&&p.height,g=p&&p.width;if(this.id=uk(),this.ctx=d,this.canvas=p,this.width=g,this.height=h,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new WM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Sk((b)=>this.update(b),u.resizeDelay||0),this._dataChanges=[],bm[this.id]=this,!d||!p){console.error("Failed to create chart: can't acquire context from the given item");return}if(js.listen(this,"complete",pM),js.listen(this,"progress",UP),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:a,maintainAspectRatio:n},width:s,height:i,_aspectRatio:l}=this;if(!ht(a))return a;if(n&&l)return l;return i?s/i:null}get data(){return this.config.data}set data(a){this.config.data=a}get options(){return this._options}set options(a){this.config.options=a}get registry(){return ss}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else ev(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Yx(this.canvas,this.ctx),this}stop(){return js.stop(this),this}resize(a,n){if(!js.running(this))this._resize(a,n);else this._resizeBeforeDraw={width:a,height:n}}_resize(a,n){let s=this.options,i=this.canvas,l=s.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(i,a,n,l),d=s.devicePixelRatio||this.platform.getDevicePixelRatio(),p=this.width?"resize":"attach";if(this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,!ev(this,d,!0))return;if(this.notifyPlugins("resize",{size:u}),Ot(s.onResize,[this,u],this),this.attached){if(this._doResize(p))this.render()}}ensureScalesHaveIDs(){let n=this.options.scales||{};Lt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){let a=this.options,n=a.scales,s=this.scales,i=Object.keys(s).reduce((u,d)=>(u[d]=!1,u),{}),l=[];if(n)l=l.concat(Object.keys(n).map((u)=>{let d=n[u],p=xv(u,d),h=p==="r",g=p==="x";return{options:d,dposition:h?"chartArea":g?"bottom":"left",dtype:h?"radialLinear":g?"category":"linear"}}));Lt(l,(u)=>{let d=u.options,p=d.id,h=xv(p,d),g=Ke(d.type,u.dtype);if(d.position===void 0||dM(d.position,h)!==dM(u.dposition))d.position=u.dposition;i[p]=!0;let b=null;if(p in s&&s[p].type===g)b=s[p];else b=new(ss.getScale(g))({id:p,type:g,ctx:this.ctx,chart:this}),s[b.id]=b;b.init(d,a)}),Lt(i,(u,d)=>{if(!u)delete s[d]}),Lt(s,(u)=>{nn.configure(this,u,u.options),nn.addBox(this,u)})}_updateMetasets(){let a=this._metasets,n=this.data.datasets.length,s=a.length;if(a.sort((i,l)=>i.index-l.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);a.splice(n,s-n)}this._sortedMetasets=a.slice(0).sort(fM("order","index"))}_removeUnreferencedMetasets(){let{_metasets:a,data:{datasets:n}}=this;if(a.length>n.length)delete this._stacks;a.forEach((s,i)=>{if(n.filter((l)=>l===s._dataset).length===0)this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let a=[],n=this.data.datasets,s,i;this._removeUnreferencedMetasets();for(s=0,i=n.length;s<i;s++){let l=n[s],u=this.getDatasetMeta(s),d=l.type||this.config.type;if(u.type&&u.type!==d)this._destroyDatasetMeta(s),u=this.getDatasetMeta(s);if(u.type=d,u.indexAxis=l.indexAxis||bv(d,this.options),u.order=l.order||0,u.index=s,u.label=""+l.label,u.visible=this.isDatasetVisible(s),u.controller)u.controller.updateIndex(s),u.controller.linkScales();else{let p=ss.getController(d),{datasetElementType:h,dataElementType:g}=Jt.datasets[d];Object.assign(p,{dataElementType:ss.getElement(g),datasetElementType:h&&ss.getElement(h)}),u.controller=new p(this,s),a.push(u.controller)}}return this._updateMetasets(),a}_resetElements(){Lt(this.data.datasets,(a,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(a){let n=this.config;n.update();let s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:a,cancelable:!0})===!1)return;let l=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let h=0,g=this.data.datasets.length;h<g;h++){let{controller:b}=this.getDatasetMeta(h),y=!i&&l.indexOf(b)===-1;b.buildOrUpdateElements(y),u=Math.max(+b.getMaxOverflow(),u)}if(u=this._minPadding=s.layout.autoPadding?u:0,this._updateLayout(u),!i)Lt(l,(h)=>{h.reset()});this._updateDatasets(a),this.notifyPlugins("afterUpdate",{mode:a}),this._layers.sort(fM("z","_idx"));let{_active:d,_lastEvent:p}=this;if(p)this._eventHandler(p,!0);else if(d.length)this._updateHoverStyles(d,d,!0);this.render()}_updateScales(){Lt(this.scales,(a)=>{nn.removeBox(this,a)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let a=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(a.events);if(!Bx(n,s)||!!this._responsiveListeners!==a.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:a}=this,n=this._getUniformDataChanges()||[];for(let{method:s,start:i,count:l}of n){let u=s==="_removeElements"?-l:l;FP(a,i,u)}}_getUniformDataChanges(){let a=this._dataChanges;if(!a||!a.length)return;this._dataChanges=[];let n=this.data.datasets.length,s=(l)=>new Set(a.filter((u)=>u[0]===l).map((u,d)=>d+","+u.splice(1).join(","))),i=s(0);for(let l=1;l<n;l++)if(!Bx(i,s(l)))return;return Array.from(i).map((l)=>l.split(",")).map((l)=>({method:l[1],start:+l[2],count:+l[3]}))}_updateLayout(a){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;nn.update(this,this.width,this.height,a);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Lt(this.boxes,(i)=>{if(s&&i.position==="chartArea")return;if(i.configure)i.configure();this._layers.push(...i._layers())},this),this._layers.forEach((i,l)=>{i._idx=l}),this.notifyPlugins("afterLayout")}_updateDatasets(a){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:a,cancelable:!0})===!1)return;for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,Hs(a)?a({datasetIndex:n}):a);this.notifyPlugins("afterDatasetsUpdate",{mode:a})}_updateDataset(a,n){let s=this.getDatasetMeta(a),i={meta:s,index:a,mode:n,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",i)===!1)return;s.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(js.has(this)){if(this.attached&&!js.running(this))js.start(this)}else this.draw(),pM({chart:this})}draw(){let a;if(this._resizeBeforeDraw){let{width:s,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,i)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(a=0;a<n.length&&n[a].z<=0;++a)n[a].draw(this.chartArea);this._drawDatasets();for(;a<n.length;++a)n[a].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(a){let n=this._sortedMetasets,s=[],i,l;for(i=0,l=n.length;i<l;++i){let u=n[i];if(!a||u.visible)s.push(u)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let a=this.getSortedVisibleDatasetMetas();for(let n=a.length-1;n>=0;--n)this._drawDataset(a[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(a){let n=this.ctx,s={meta:a,index:a.index,cancelable:!0},i=rv(this,a);if(this.notifyPlugins("beforeDatasetDraw",s)===!1)return;if(i)Bd(n,i);if(a.controller.draw(),i)Nd(n);s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s)}isPointInArea(a){return as(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,n,s,i){let l=jO.modes[n];if(typeof l==="function")return l(this,a,s,i);return[]}getDatasetMeta(a){let n=this.data.datasets[a],s=this._metasets,i=s.filter((l)=>l&&l._dataset===n).pop();if(!i)i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:a,_dataset:n,_parsed:[],_sorted:!1},s.push(i);return i}getContext(){return this.$context||(this.$context=Vs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(a){let n=this.data.datasets[a];if(!n)return!1;let s=this.getDatasetMeta(a);return typeof s.hidden==="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(a,n){let s=this.getDatasetMeta(a);s.hidden=!n}toggleDataVisibility(a){this._hiddenIndices[a]=!this._hiddenIndices[a]}getDataVisibility(a){return!this._hiddenIndices[a]}_updateVisibility(a,n,s){let i=s?"show":"hide",l=this.getDatasetMeta(a),u=l.controller._resolveAnimations(void 0,i);if(Pu(n))l.data[n].hidden=!s,this.update();else this.setDatasetVisibility(a,s),u.update(l,{visible:s}),this.update((d)=>d.datasetIndex===a?i:void 0)}hide(a,n){this._updateVisibility(a,n,!1)}show(a,n){this._updateVisibility(a,n,!0)}_destroyDatasetMeta(a){let n=this._metasets[a];if(n&&n.controller)n.controller._destroy();delete this._metasets[a]}_stop(){let a,n;this.stop(),js.remove(this);for(a=0,n=this.data.datasets.length;a<n;++a)this._destroyDatasetMeta(a)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:a,ctx:n}=this;if(this._stop(),this.config.clearCache(),a)this.unbindEvents(),Yx(a,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null;delete bm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...a){return this.canvas.toDataURL(...a)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let a=this._listeners,n=this.platform,s=(l,u)=>{n.addEventListener(this,l,u),a[l]=u},i=(l,u,d)=>{l.offsetX=u,l.offsetY=d,this._eventHandler(l)};Lt(this.options.events,(l)=>s(l,i))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let a=this._responsiveListeners,n=this.platform,s=(p,h)=>{n.addEventListener(this,p,h),a[p]=h},i=(p,h)=>{if(a[p])n.removeEventListener(this,p,h),delete a[p]},l=(p,h)=>{if(this.canvas)this.resize(p,h)},u,d=()=>{i("attach",d),this.attached=!0,this.resize(),s("resize",l),s("detach",u)};if(u=()=>{this.attached=!1,i("resize",l),this._stop(),this._resize(0,0),s("attach",d)},n.isAttached(this.canvas))d();else u()}unbindEvents(){Lt(this._listeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._listeners={},Lt(this._responsiveListeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._responsiveListeners=void 0}updateHoverStyle(a,n,s){let i=s?"set":"remove",l,u,d,p;if(n==="dataset")l=this.getDatasetMeta(a[0].datasetIndex),l.controller["_"+i+"DatasetHoverStyle"]();for(d=0,p=a.length;d<p;++d){u=a[d];let h=u&&this.getDatasetMeta(u.datasetIndex).controller;if(h)h[i+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(a){let n=this._active||[],s=a.map(({datasetIndex:l,index:u})=>{let d=this.getDatasetMeta(l);if(!d)throw Error("No dataset found at index "+l);return{datasetIndex:l,element:d.data[u],index:u}});if(!Od(s,n))this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n)}notifyPlugins(a,n,s){return this._plugins.notify(this,a,n,s)}isPluginEnabled(a){return this._plugins._cache.filter((n)=>n.plugin.id===a).length===1}_updateHoverStyles(a,n,s){let i=this.options.hover,l=(p,h)=>p.filter((g)=>!h.some((b)=>g.datasetIndex===b.datasetIndex&&g.index===b.index)),u=l(n,a),d=s?a:l(a,n);if(u.length)this.updateHoverStyle(u,i.mode,!1);if(d.length&&i.mode)this.updateHoverStyle(d,i.mode,!0)}_eventHandler(a,n){let s={event:a,replay:n,cancelable:!0,inChartArea:this.isPointInArea(a)},i=(u)=>(u.options.events||this.options.events).includes(a.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;let l=this._handleEvent(a,n,s.inChartArea);if(s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),l||s.changed)this.render();return this}_handleEvent(a,n,s){let{_active:i=[],options:l}=this,u=n,d=this._getActiveElements(a,i,s,u),p=fk(a),h=qP(a,this._lastEvent,s,p);if(s){if(this._lastEvent=null,Ot(l.onHover,[a,d,this],this),p)Ot(l.onClick,[a,d,this],this)}let g=!Od(d,i);if(g||n)this._active=d,this._updateHoverStyles(d,i,n);return this._lastEvent=h,g}_getActiveElements(a,n,s,i){if(a.type==="mouseout")return[];if(!s)return n;let l=this.options.hover;return this.getElementsAtEventForMode(a,l.mode,l,i)}}function mM(){return Lt(dl.instances,(a)=>a._plugins.invalidate())}function tI(a,n,s=n){a.lineCap=Ke(s.borderCapStyle,n.borderCapStyle),a.setLineDash(Ke(s.borderDash,n.borderDash)),a.lineDashOffset=Ke(s.borderDashOffset,n.borderDashOffset),a.lineJoin=Ke(s.borderJoinStyle,n.borderJoinStyle),a.lineWidth=Ke(s.borderWidth,n.borderWidth),a.strokeStyle=Ke(s.borderColor,n.borderColor)}function VP(a,n,s){a.lineTo(s.x,s.y)}function jP(a){if(a.stepped)return Ik;if(a.tension||a.cubicInterpolationMode==="monotone")return Ak;return VP}function aI(a,n,s={}){let i=a.length,{start:l=0,end:u=i-1}=s,{start:d,end:p}=n,h=Math.max(l,d),g=Math.min(u,p),b=l<d&&u<d||l>p&&u>p;return{count:i,start:h,loop:n.loop,ilen:g<h&&!b?i+g-h:g-h}}function GP(a,n,s,i){let{points:l,options:u}=n,{count:d,start:p,loop:h,ilen:g}=aI(l,s,i),b=jP(u),{move:y=!0,reverse:v}=i||{},T,M,I;for(T=0;T<=g;++T){if(M=l[(p+(v?g-T:T))%d],M.skip)continue;else if(y)a.moveTo(M.x,M.y),y=!1;else b(a,I,M,v,u.stepped);I=M}if(h)M=l[(p+(v?g:0))%d],b(a,I,M,v,u.stepped);return!!h}function XP(a,n,s,i){let l=n.points,{count:u,start:d,ilen:p}=aI(l,s,i),{move:h=!0,reverse:g}=i||{},b=0,y=0,v,T,M,I,w,A,B=(H)=>(d+(g?p-H:H))%u,z=()=>{if(I!==w)a.lineTo(b,w),a.lineTo(b,I),a.lineTo(b,A)};if(h)T=l[B(0)],a.moveTo(T.x,T.y);for(v=0;v<=p;++v){if(T=l[B(v)],T.skip)continue;let{x:H,y:V}=T,G=H|0;if(G===M){if(V<I)I=V;else if(V>w)w=V;b=(y*b+H)/++y}else z(),a.lineTo(H,V),M=G,y=0,I=w=V;A=V}z()}function vv(a){let n=a.options,s=n.borderDash&&n.borderDash.length;return!a._decimated&&!a._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!s?XP:GP}function YP(a){if(a.stepped)return zk;if(a.tension||a.cubicInterpolationMode==="monotone")return Hk;return Wr}function $P(a,n,s,i){let l=n._path;if(!l){if(l=n._path=new Path2D,n.path(l,s,i))l.closePath()}tI(a,n.options),a.stroke(l)}function WP(a,n,s,i){let{segments:l,options:u}=n,d=vv(n);for(let p of l){if(tI(a,u,p.style),a.beginPath(),d(a,n,p,{start:s,end:s+i-1}))a.closePath();a.stroke()}}var ZP=typeof Path2D==="function";function QP(a,n,s,i){if(ZP&&!n.options.segment)$P(a,n,s,i);else WP(a,n,s,i)}class Hu extends Xs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(a)=>a!=="borderDash"&&a!=="fill"};constructor(a){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,a)Object.assign(this,a)}updateControlPoints(a,n){let s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){let i=s.spanGaps?this._loop:this._fullLoop;Pk(this._points,s,a,i,n),this._pointsUpdated=!0}}set points(a){this._points=a,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Fk(this,this.options.segment))}first(){let a=this.segments,n=this.points;return a.length&&n[a[0].start]}last(){let a=this.segments,n=this.points,s=a.length;return s&&n[a[s-1].end]}interpolate(a,n){let s=this.options,i=a[n],l=this.points,u=sv(this,{property:n,start:i,end:i});if(!u.length)return;let d=[],p=YP(s),h,g;for(h=0,g=u.length;h<g;++h){let{start:b,end:y}=u[h],v=l[b],T=l[y];if(v===T){d.push(v);continue}let M=Math.abs((i-v[n])/(T[n]-v[n])),I=p(v,T,M,s.stepped);I[n]=a[n],d.push(I)}return d.length===1?d[0]:d}pathSegment(a,n,s){return vv(this)(a,this,n,s)}path(a,n,s){let i=this.segments,l=vv(this),u=this._loop;n=n||0,s=s||this.points.length-n;for(let d of i)u&=l(a,this,d,{start:n,end:n+s-1});return!!u}draw(a,n,s,i){let l=this.options||{};if((this.points||[]).length&&l.borderWidth)a.save(),QP(a,this,s,i),a.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function gM(a,n,s,i){let l=a.options,{[s]:u}=a.getProps([s],i);return Math.abs(n-u)<l.radius+l.hitRadius}class _v extends Xs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a)Object.assign(this,a)}inRange(a,n,s){let i=this.options,{x:l,y:u}=this.getProps(["x","y"],s);return Math.pow(a-l,2)+Math.pow(n-u,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(a,n){return gM(this,a,"x",n)}inYRange(a,n){return gM(this,a,"y",n)}getCenterPoint(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}size(a){a=a||this.options||{};let n=a.radius||0;n=Math.max(n,n&&a.hoverRadius||0);let s=n&&a.borderWidth||0;return(n+s)*2}draw(a,n){let s=this.options;if(this.skip||s.radius<0.1||!as(this,n,this.size(s)/2))return;a.strokeStyle=s.borderColor,a.lineWidth=s.borderWidth,a.fillStyle=s.backgroundColor,im(a,s,this.x,this.y)}getRange(){let a=this.options||{};return a.radius+a.hitRadius}}function oI(a,n){let{x:s,y:i,base:l,width:u,height:d}=a.getProps(["x","y","base","width","height"],n),p,h,g,b,y;if(a.horizontal)y=d/2,p=Math.min(s,l),h=Math.max(s,l),g=i-y,b=i+y;else y=u/2,p=s-y,h=s+y,g=Math.min(i,l),b=Math.max(i,l);return{left:p,top:g,right:h,bottom:b}}function oi(a,n,s,i){return a?0:mo(n,s,i)}function KP(a,n,s){let i=a.options.borderWidth,l=a.borderSkipped,u=Zx(i);return{t:oi(l.top,u.top,0,s),r:oi(l.right,u.right,0,n),b:oi(l.bottom,u.bottom,0,s),l:oi(l.left,u.left,0,n)}}function JP(a,n,s){let{enableBorderRadius:i}=a.getProps(["enableBorderRadius"]),l=a.options.borderRadius,u=ti(l),d=Math.min(n,s),p=a.borderSkipped,h=i||it(l);return{topLeft:oi(!h||p.top||p.left,u.topLeft,0,d),topRight:oi(!h||p.top||p.right,u.topRight,0,d),bottomLeft:oi(!h||p.bottom||p.left,u.bottomLeft,0,d),bottomRight:oi(!h||p.bottom||p.right,u.bottomRight,0,d)}}function eB(a){let n=oI(a),s=n.right-n.left,i=n.bottom-n.top,l=KP(a,s/2,i/2),u=JP(a,s/2,i/2);return{outer:{x:n.left,y:n.top,w:s,h:i,radius:u},inner:{x:n.left+l.l,y:n.top+l.t,w:s-l.l-l.r,h:i-l.t-l.b,radius:{topLeft:Math.max(0,u.topLeft-Math.max(l.t,l.l)),topRight:Math.max(0,u.topRight-Math.max(l.t,l.r)),bottomLeft:Math.max(0,u.bottomLeft-Math.max(l.b,l.l)),bottomRight:Math.max(0,u.bottomRight-Math.max(l.b,l.r))}}}}function hv(a,n,s,i){let l=n===null,u=s===null,p=a&&!(l&&u)&&oI(a,i);return p&&(l||qs(n,p.left,p.right))&&(u||qs(s,p.top,p.bottom))}function tB(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function aB(a,n){a.rect(n.x,n.y,n.w,n.h)}function mv(a,n,s={}){let i=a.x!==s.x?-n:0,l=a.y!==s.y?-n:0,u=(a.x+a.w!==s.x+s.w?n:0)-i,d=(a.y+a.h!==s.y+s.h?n:0)-l;return{x:a.x+i,y:a.y+l,w:a.w+u,h:a.h+d,radius:a.radius}}class Dv extends Xs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,a)Object.assign(this,a)}draw(a){let{inflateAmount:n,options:{borderColor:s,backgroundColor:i}}=this,{inner:l,outer:u}=eB(this),d=tB(u.radius)?zu:aB;if(a.save(),u.w!==l.w||u.h!==l.h)a.beginPath(),d(a,mv(u,n,l)),a.clip(),d(a,mv(l,-n,u)),a.fillStyle=s,a.fill("evenodd");a.beginPath(),d(a,mv(l,n)),a.fillStyle=i,a.fill(),a.restore()}inRange(a,n,s){return hv(this,a,n,s)}inXRange(a,n){return hv(this,a,null,n)}inYRange(a,n){return hv(this,null,a,n)}getCenterPoint(a){let{x:n,y:s,base:i,horizontal:l}=this.getProps(["x","y","base","horizontal"],a);return{x:l?(n+i)/2:n,y:l?s:(s+i)/2}}getRange(a){return a==="x"?this.width/2:this.height/2}}function oB(a,n,s){let{segments:i,points:l}=a,u=n.points,d=[];for(let p of i){let{start:h,end:g}=p;g=Sm(h,g,l);let b=Sv(s,l[h],l[g],p.loop);if(!n.segments){d.push({source:p,target:b,start:l[h],end:l[g]});continue}let y=sv(n,b);for(let v of y){let T=Sv(s,u[v.start],u[v.end],v.loop),M=nv(p,l,T);for(let I of M)d.push({source:I,target:v,start:{[s]:yM(b,T,"start",Math.max)},end:{[s]:yM(b,T,"end",Math.min)}})}}return d}function Sv(a,n,s,i){if(i)return;let l=n[a],u=s[a];if(a==="angle")l=fo(l),u=fo(u);return{property:a,start:l,end:u}}function nB(a,n){let{x:s=null,y:i=null}=a||{},l=n.points,u=[];return n.segments.forEach(({start:d,end:p})=>{p=Sm(d,p,l);let h=l[d],g=l[p];if(i!==null)u.push({x:h.x,y:i}),u.push({x:g.x,y:i});else if(s!==null)u.push({x:s,y:h.y}),u.push({x:s,y:g.y})}),u}function Sm(a,n,s){for(;n>a;n--){let i=s[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function yM(a,n,s,i){if(a&&n)return i(a[s],n[s]);return a?a[s]:n?n[s]:0}function nI(a,n){let s=[],i=!1;if(zt(a))i=!0,s=a;else s=nB(a,n);return s.length?new Hu({points:s,options:{tension:0},_loop:i,_fullLoop:i}):null}function bM(a){return a&&a.fill!==!1}function sB(a,n,s){let l=a[n].fill,u=[n],d;if(!s)return l;while(l!==!1&&u.indexOf(l)===-1){if(!Kt(l))return l;if(d=a[l],!d)return!1;if(d.visible)return l;u.push(l),l=d.fill}return!1}function rB(a,n,s){let i=cB(a);if(it(i))return isNaN(i.value)?!1:i;let l=parseFloat(i);if(Kt(l)&&Math.floor(l)===l)return iB(i[0],n,l,s);return["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function iB(a,n,s,i){if(a==="-"||a==="+")s=n+s;if(s===n||s<0||s>=i)return!1;return s}function lB(a,n){let s=null;if(a==="start")s=n.bottom;else if(a==="end")s=n.top;else if(it(a))s=n.getPixelForValue(a.value);else if(n.getBasePixel)s=n.getBasePixel();return s}function uB(a,n,s){let i;if(a==="start")i=s;else if(a==="end")i=n.options.reverse?n.min:n.max;else if(it(a))i=a.value;else i=n.getBaseValue();return i}function cB(a){let n=a.options,s=n.fill,i=Ke(s&&s.target,s);if(i===void 0)i=!!n.backgroundColor;if(i===!1||i===null)return!1;if(i===!0)return"origin";return i}function dB(a){let{scale:n,index:s,line:i}=a,l=[],u=i.segments,d=i.points,p=fB(n,s);p.push(nI({x:null,y:n.bottom},i));for(let h=0;h<u.length;h++){let g=u[h];for(let b=g.start;b<=g.end;b++)pB(l,d[b],p)}return new Hu({points:l,options:{}})}function fB(a,n){let s=[],i=a.getMatchingVisibleMetas("line");for(let l=0;l<i.length;l++){let u=i[l];if(u.index===n)break;if(!u.hidden)s.unshift(u.dataset)}return s}function pB(a,n,s){let i=[];for(let l=0;l<s.length;l++){let u=s[l],{first:d,last:p,point:h}=hB(u,n,"x");if(!h||d&&p)continue;if(d)i.unshift(h);else if(a.push(h),!p)break}a.push(...i)}function hB(a,n,s){let i=a.interpolate(n,s);if(!i)return{};let l=i[s],u=a.segments,d=a.points,p=!1,h=!1;for(let g=0;g<u.length;g++){let b=u[g],y=d[b.start][s],v=d[b.end][s];if(qs(l,y,v)){p=l===y,h=l===v;break}}return{first:p,last:h,point:i}}class Ev{constructor(a){this.x=a.x,this.y=a.y,this.radius=a.radius}pathSegment(a,n,s){let{x:i,y:l,radius:u}=this;return n=n||{start:0,end:ho},a.arc(i,l,u,n.end,n.start,!0),!s.bounds}interpolate(a){let{x:n,y:s,radius:i}=this,l=a.angle;return{x:n+Math.cos(l)*i,y:s+Math.sin(l)*i,angle:l}}}function mB(a){let{chart:n,fill:s,line:i}=a;if(Kt(s))return gB(n,s);if(s==="stack")return dB(a);if(s==="shape")return!0;let l=yB(a);if(l instanceof Ev)return l;return nI(l,i)}function gB(a,n){let s=a.getDatasetMeta(n);return s&&a.isDatasetVisible(n)?s.dataset:null}function yB(a){if((a.scale||{}).getPointPositionForValue)return xB(a);return bB(a)}function bB(a){let{scale:n={},fill:s}=a,i=lB(s,n);if(Kt(i)){let l=n.isHorizontal();return{x:l?i:null,y:l?null:i}}return null}function xB(a){let{scale:n,fill:s}=a,i=n.options,l=n.getLabels().length,u=i.reverse?n.max:n.min,d=uB(s,n,u),p=[];if(i.grid.circular){let h=n.getPointPositionForValue(0,u);return new Ev({x:h.x,y:h.y,radius:n.getDistanceFromCenterForValue(d)})}for(let h=0;h<l;++h)p.push(n.getPointPositionForValue(h,d));return p}function gv(a,n,s){let i=mB(n),{chart:l,index:u,line:d,scale:p,axis:h}=n,g=d.options,b=g.fill,y=g.backgroundColor,{above:v=y,below:T=y}=b||{},M=l.getDatasetMeta(u),I=rv(l,M);if(i&&d.points.length)Bd(a,s),vB(a,{line:d,target:i,above:v,below:T,area:s,scale:p,axis:h,clip:I}),Nd(a)}function vB(a,n){let{line:s,target:i,above:l,below:u,area:d,scale:p,clip:h}=n,g=s._loop?"angle":n.axis;a.save();let b=u;if(u!==l){if(g==="x")xM(a,i,d.top),yv(a,{line:s,target:i,color:l,scale:p,property:g,clip:h}),a.restore(),a.save(),xM(a,i,d.bottom);else if(g==="y")vM(a,i,d.left),yv(a,{line:s,target:i,color:u,scale:p,property:g,clip:h}),a.restore(),a.save(),vM(a,i,d.right),b=l}yv(a,{line:s,target:i,color:b,scale:p,property:g,clip:h}),a.restore()}function xM(a,n,s){let{segments:i,points:l}=n,u=!0,d=!1;a.beginPath();for(let p of i){let{start:h,end:g}=p,b=l[h],y=l[Sm(h,g,l)];if(u)a.moveTo(b.x,b.y),u=!1;else a.lineTo(b.x,s),a.lineTo(b.x,b.y);if(d=!!n.pathSegment(a,p,{move:d}),d)a.closePath();else a.lineTo(y.x,s)}a.lineTo(n.first().x,s),a.closePath(),a.clip()}function vM(a,n,s){let{segments:i,points:l}=n,u=!0,d=!1;a.beginPath();for(let p of i){let{start:h,end:g}=p,b=l[h],y=l[Sm(h,g,l)];if(u)a.moveTo(b.x,b.y),u=!1;else a.lineTo(s,b.y),a.lineTo(b.x,b.y);if(d=!!n.pathSegment(a,p,{move:d}),d)a.closePath();else a.lineTo(s,y.y)}a.lineTo(s,n.first().y),a.closePath(),a.clip()}function yv(a,n){let{line:s,target:i,property:l,color:u,scale:d,clip:p}=n,h=oB(s,i,l);for(let{source:g,target:b,start:y,end:v}of h){let{style:{backgroundColor:T=u}={}}=g,M=i!==!0;a.save(),a.fillStyle=T,SB(a,d,p,M&&Sv(l,y,v)),a.beginPath();let I=!!s.pathSegment(a,g),w;if(M){if(I)a.closePath();else SM(a,i,v,l);let A=!!i.pathSegment(a,b,{move:I,reverse:!0});if(w=I&&A,!w)SM(a,i,y,l)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function SB(a,n,s,i){let l=n.chart.chartArea,{property:u,start:d,end:p}=i||{};if(u==="x"||u==="y"){let h,g,b,y;if(u==="x")h=d,g=l.top,b=p,y=l.bottom;else h=l.left,g=d,b=l.right,y=p;if(a.beginPath(),s)h=Math.max(h,s.left),b=Math.min(b,s.right),g=Math.max(g,s.top),y=Math.min(y,s.bottom);a.rect(h,g,b-h,y-g),a.clip()}}function SM(a,n,s,i){let l=n.interpolate(s,i);if(l)a.lineTo(l.x,l.y)}var sI={id:"filler",afterDatasetsUpdate(a,n,s){let i=(a.data.datasets||[]).length,l=[],u,d,p,h;for(d=0;d<i;++d){if(u=a.getDatasetMeta(d),p=u.dataset,h=null,p&&p.options&&p instanceof Hu)h={visible:a.isDatasetVisible(d),index:d,fill:rB(p,d,i),chart:a,axis:u.controller.options.indexAxis,scale:u.vScale,line:p};u.$filler=h,l.push(h)}for(d=0;d<i;++d){if(h=l[d],!h||h.fill===!1)continue;h.fill=sB(l,d,s.propagate)}},beforeDraw(a,n,s){let i=s.drawTime==="beforeDraw",l=a.getSortedVisibleDatasetMetas(),u=a.chartArea;for(let d=l.length-1;d>=0;--d){let p=l[d].$filler;if(!p)continue;if(p.line.updateControlPoints(u,p.axis),i&&p.fill)gv(a.ctx,p,u)}},beforeDatasetsDraw(a,n,s){if(s.drawTime!=="beforeDatasetsDraw")return;let i=a.getSortedVisibleDatasetMetas();for(let l=i.length-1;l>=0;--l){let u=i[l].$filler;if(bM(u))gv(a.ctx,u,a.chartArea)}},beforeDatasetDraw(a,n,s){let i=n.meta.$filler;if(!bM(i)||s.drawTime!=="beforeDatasetDraw")return;gv(a.ctx,i,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},LM=(a,n)=>{let{boxHeight:s=n,boxWidth:i=n}=a;if(a.usePointStyle)s=Math.min(s,n),i=a.pointStyleWidth||Math.min(i,n);return{boxWidth:i,boxHeight:s,itemHeight:Math.max(n,s)}},LB=(a,n)=>a!==null&&n!==null&&a.datasetIndex===n.datasetIndex&&a.index===n.index;class Lv extends Xs{constructor(a){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,n,s){this.maxWidth=a,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let a=this.options.labels||{},n=Ot(a.generateLabels,[this.chart],this)||[];if(a.filter)n=n.filter((s)=>a.filter(s,this.chart.data));if(a.sort)n=n.sort((s,i)=>a.sort(s,i,this.chart.data));if(this.options.reverse)n.reverse();this.legendItems=n}fit(){let{options:a,ctx:n}=this;if(!a.display){this.width=this.height=0;return}let s=a.labels,i=pa(s.font),l=i.size,u=this._computeTitleHeight(),{boxWidth:d,itemHeight:p}=LM(s,l),h,g;if(n.font=i.string,this.isHorizontal())h=this.maxWidth,g=this._fitRows(u,l,d,p)+10;else g=this.maxHeight,h=this._fitCols(u,i,d,p)+10;this.width=Math.min(h,a.maxWidth||this.maxWidth),this.height=Math.min(g,a.maxHeight||this.maxHeight)}_fitRows(a,n,s,i){let{ctx:l,maxWidth:u,options:{labels:{padding:d}}}=this,p=this.legendHitBoxes=[],h=this.lineWidths=[0],g=i+d,b=a;l.textAlign="left",l.textBaseline="middle";let y=-1,v=-g;return this.legendItems.forEach((T,M)=>{let I=s+n/2+l.measureText(T.text).width;if(M===0||h[h.length-1]+I+2*d>u)b+=g,h[h.length-(M>0?0:1)]=0,v+=g,y++;p[M]={left:0,top:v,row:y,width:I,height:i},h[h.length-1]+=I+d}),b}_fitCols(a,n,s,i){let{ctx:l,maxHeight:u,options:{labels:{padding:d}}}=this,p=this.legendHitBoxes=[],h=this.columnSizes=[],g=u-a,b=d,y=0,v=0,T=0,M=0;return this.legendItems.forEach((I,w)=>{let{itemWidth:A,itemHeight:B}=CB(s,n,l,I,i);if(w>0&&v+B+2*d>g)b+=y+d,h.push({width:y,height:v}),T+=y+d,M++,y=v=0;p[w]={left:T,top:v,col:M,width:A,height:B},y=Math.max(y,A),v+=B+d}),b+=y,h.push({width:y,height:v}),b}adjustHitBoxes(){if(!this.options.display)return;let a=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:l}}=this,u=il(l,this.left,this.width);if(this.isHorizontal()){let d=0,p=Ba(s,this.left+i,this.right-this.lineWidths[d]);for(let h of n){if(d!==h.row)d=h.row,p=Ba(s,this.left+i,this.right-this.lineWidths[d]);h.top+=this.top+a+i,h.left=u.leftForLtr(u.x(p),h.width),p+=h.width+i}}else{let d=0,p=Ba(s,this.top+a+i,this.bottom-this.columnSizes[d].height);for(let h of n){if(h.col!==d)d=h.col,p=Ba(s,this.top+a+i,this.bottom-this.columnSizes[d].height);h.top=p,h.left+=this.left+i,h.left=u.leftForLtr(u.x(h.left),h.width),p+=h.height+i}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let a=this.ctx;Bd(a,this),this._draw(),Nd(a)}}_draw(){let{options:a,columnSizes:n,lineWidths:s,ctx:i}=this,{align:l,labels:u}=a,d=Jt.color,p=il(a.rtl,this.left,this.width),h=pa(u.font),{padding:g}=u,b=h.size,y=b/2,v;this.drawTitle(),i.textAlign=p.textAlign("left"),i.textBaseline="middle",i.lineWidth=0.5,i.font=h.string;let{boxWidth:T,boxHeight:M,itemHeight:I}=LM(u,b),w=function(V,G,X){if(isNaN(T)||T<=0||isNaN(M)||M<0)return;i.save();let Y=Ke(X.lineWidth,1);if(i.fillStyle=Ke(X.fillStyle,d),i.lineCap=Ke(X.lineCap,"butt"),i.lineDashOffset=Ke(X.lineDashOffset,0),i.lineJoin=Ke(X.lineJoin,"miter"),i.lineWidth=Y,i.strokeStyle=Ke(X.strokeStyle,d),i.setLineDash(Ke(X.lineDash,[])),u.usePointStyle){let J={radius:M*Math.SQRT2/2,pointStyle:X.pointStyle,rotation:X.rotation,borderWidth:Y},j=p.xPlus(V,T/2),se=G+y;$x(i,J,j,se,u.pointStyleWidth&&T)}else{let J=G+Math.max((b-M)/2,0),j=p.leftForLtr(V,T),se=ti(X.borderRadius);if(i.beginPath(),Object.values(se).some((ge)=>ge!==0))zu(i,{x:j,y:J,w:T,h:M,radius:se});else i.rect(j,J,T,M);if(i.fill(),Y!==0)i.stroke()}i.restore()},A=function(V,G,X){ei(i,X.text,V,G+I/2,h,{strikethrough:X.hidden,textAlign:p.textAlign(X.textAlign)})},B=this.isHorizontal(),z=this._computeTitleHeight();if(B)v={x:Ba(l,this.left+g,this.right-s[0]),y:this.top+g+z,line:0};else v={x:this.left+g,y:Ba(l,this.top+z+g,this.bottom-n[0].height),line:0};av(this.ctx,a.textDirection);let H=I+g;this.legendItems.forEach((V,G)=>{i.strokeStyle=V.fontColor,i.fillStyle=V.fontColor;let X=i.measureText(V.text).width,Y=p.textAlign(V.textAlign||(V.textAlign=u.textAlign)),J=T+y+X,j=v.x,se=v.y;if(p.setWidth(this.width),B){if(G>0&&j+J+g>this.right)se=v.y+=H,v.line++,j=v.x=Ba(l,this.left+g,this.right-s[v.line])}else if(G>0&&se+H>this.bottom)j=v.x=j+n[v.line].width+g,v.line++,se=v.y=Ba(l,this.top+z+g,this.bottom-n[v.line].height);let ge=p.x(j);if(w(ge,se,V),j=Lk(Y,j+T+y,B?j+J:this.right,a.rtl),A(p.x(j),se,V),B)v.x+=J+g;else if(typeof V.text!=="string"){let ye=h.lineHeight;v.y+=rI(V,ye)+g}else v.y+=H}),ov(this.ctx,a.textDirection)}drawTitle(){let a=this.options,n=a.title,s=pa(n.font),i=Na(n.padding);if(!n.display)return;let l=il(a.rtl,this.left,this.width),u=this.ctx,d=n.position,p=s.size/2,h=i.top+p,g,b=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),g=this.top+h,b=Ba(a.align,b,this.right-y);else{let T=this.columnSizes.reduce((M,I)=>Math.max(M,I.height),0);g=h+Ba(a.align,this.top,this.bottom-T-a.labels.padding-this._computeTitleHeight())}let v=Ba(d,b,b+y);u.textAlign=l.textAlign(nm(d)),u.textBaseline="middle",u.strokeStyle=n.color,u.fillStyle=n.color,u.font=s.string,ei(u,n.text,v,g,s)}_computeTitleHeight(){let a=this.options.title,n=pa(a.font),s=Na(a.padding);return a.display?n.lineHeight+s.height:0}_getLegendItemAt(a,n){let s,i,l;if(qs(a,this.left,this.right)&&qs(n,this.top,this.bottom)){l=this.legendHitBoxes;for(s=0;s<l.length;++s)if(i=l[s],qs(a,i.left,i.left+i.width)&&qs(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(a){let n=this.options;if(!kB(a.type,n))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let i=this._hoveredItem,l=LB(i,s);if(i&&!l)Ot(n.onLeave,[a,i,this],this);if(this._hoveredItem=s,s&&!l)Ot(n.onHover,[a,s,this],this)}else if(s)Ot(n.onClick,[a,s,this],this)}}function CB(a,n,s,i,l){let u=TB(i,a,n,s),d=wB(l,i,n.lineHeight);return{itemWidth:u,itemHeight:d}}function TB(a,n,s,i){let l=a.text;if(l&&typeof l!=="string")l=l.reduce((u,d)=>u.length>d.length?u:d);return n+s.size/2+i.measureText(l).width}function wB(a,n,s){let i=a;if(typeof n.text!=="string")i=rI(n,s);return i}function rI(a,n){let s=a.text?a.text.length:0;return n*s}function kB(a,n){if((a==="mousemove"||a==="mouseout")&&(n.onHover||n.onLeave))return!0;if(n.onClick&&(a==="click"||a==="mouseup"))return!0;return!1}var iI={id:"legend",_element:Lv,start(a,n,s){let i=a.legend=new Lv({ctx:a.ctx,options:s,chart:a});nn.configure(a,i,s),nn.addBox(a,i)},stop(a){nn.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,n,s){let i=a.legend;nn.configure(a,i,s),i.options=s},afterUpdate(a){let n=a.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(a,n){if(!n.replay)a.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(a,n,s){let i=n.datasetIndex,l=s.chart;if(l.isDatasetVisible(i))l.hide(i),n.hidden=!0;else l.show(i),n.hidden=!1},onHover:null,onLeave:null,labels:{color:(a)=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){let n=a.data.datasets,{labels:{usePointStyle:s,pointStyle:i,textAlign:l,color:u,useBorderRadius:d,borderRadius:p}}=a.legend.options;return a._getSortedDatasetMetas().map((h)=>{let g=h.controller.getStyle(s?0:void 0),b=Na(g.borderWidth);return{text:n[h.index].label,fillStyle:g.backgroundColor,fontColor:u,hidden:!h.visible,lineCap:g.borderCapStyle,lineDash:g.borderDash,lineDashOffset:g.borderDashOffset,lineJoin:g.borderJoinStyle,lineWidth:(b.width+b.height)/4,strokeStyle:g.borderColor,pointStyle:i||g.pointStyle,rotation:g.rotation,textAlign:l||g.textAlign,borderRadius:d&&(p||g.borderRadius),datasetIndex:h.index}},this)}},title:{color:(a)=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(a)=>!a.startsWith("on"),labels:{_scriptable:(a)=>!["generateLabels","filter","sort"].includes(a)}}};class Ov extends Xs{constructor(a){super();this.chart=a.chart,this.options=a.options,this.ctx=a.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(a,n){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=a,this.height=this.bottom=n;let i=zt(s.text)?s.text.length:1;this._padding=Na(s.padding);let l=i*pa(s.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=l;else this.width=l}isHorizontal(){let a=this.options.position;return a==="top"||a==="bottom"}_drawArgs(a){let{top:n,left:s,bottom:i,right:l,options:u}=this,d=u.align,p=0,h,g,b;if(this.isHorizontal())g=Ba(d,s,l),b=n+a,h=l-s;else{if(u.position==="left")g=s+a,b=Ba(d,i,n),p=na*-0.5;else g=l-a,b=Ba(d,n,i),p=na*0.5;h=i-n}return{titleX:g,titleY:b,maxWidth:h,rotation:p}}draw(){let a=this.ctx,n=this.options;if(!n.display)return;let s=pa(n.font),l=s.lineHeight/2+this._padding.top,{titleX:u,titleY:d,maxWidth:p,rotation:h}=this._drawArgs(l);ei(a,n.text,0,0,s,{color:n.color,maxWidth:p,rotation:h,textAlign:nm(n.align),textBaseline:"middle",translation:[u,d]})}}function MB(a,n){let s=new Ov({ctx:a.ctx,options:n,chart:a});nn.configure(a,s,n),nn.addBox(a,s),a.titleBlock=s}var lI={id:"title",_element:Ov,start(a,n,s){MB(a,s)},stop(a){let n=a.titleBlock;nn.removeBox(a,n),delete a.titleBlock},beforeUpdate(a,n,s){let i=a.titleBlock;nn.configure(a,i,s),i.options=s},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var Xd={average(a){if(!a.length)return!1;let n,s,i=new Set,l=0,u=0;for(n=0,s=a.length;n<s;++n){let p=a[n].element;if(p&&p.hasValue()){let h=p.tooltipPosition();i.add(h.x),l+=h.y,++u}}if(u===0||i.size===0)return!1;return{x:[...i].reduce((p,h)=>p+h)/i.size,y:l/u}},nearest(a,n){if(!a.length)return!1;let{x:s,y:i}=n,l=Number.POSITIVE_INFINITY,u,d,p;for(u=0,d=a.length;u<d;++u){let h=a[u].element;if(h&&h.hasValue()){let g=h.getCenterPoint(),b=Jh(n,g);if(b<l)l=b,p=h}}if(p){let h=p.tooltipPosition();s=h.x,i=h.y}return{x:s,y:i}}};function ns(a,n){if(n)if(zt(n))Array.prototype.push.apply(a,n);else a.push(n);return a}function Gs(a){if((typeof a==="string"||a instanceof String)&&a.indexOf(`
256
256
  `)>-1)return a.split(`
257
- `);return a}function _P(a,n){let{element:s,datasetIndex:l,index:r}=n,c=a.getDatasetMeta(l).controller,{label:f,value:h}=c.getLabelAndValue(r);return{chart:a,label:f,parsed:c.getParsed(r),raw:a.data.datasets[l].data[r],formattedValue:h,dataset:c.getDataset(),dataIndex:r,datasetIndex:l,element:s}}function YI(a,n){let s=a.chart.ctx,{body:l,footer:r,title:c}=a,{boxWidth:f,boxHeight:h}=n,p=oa(n.bodyFont),g=oa(n.titleFont),x=oa(n.footerFont),y=c.length,S=r.length,T=l.length,M=Ta(n.padding),k=M.height,w=0,_=l.reduce((W,Q)=>W+Q.before.length+Q.lines.length+Q.after.length,0);if(_+=a.beforeBody.length+a.afterBody.length,y)k+=y*g.lineHeight+(y-1)*n.titleSpacing+n.titleMarginBottom;if(_){let W=n.displayColors?Math.max(h,p.lineHeight):p.lineHeight;k+=T*W+(_-T)*p.lineHeight+(_-1)*n.bodySpacing}if(S)k+=n.footerMarginTop+S*x.lineHeight+(S-1)*n.footerSpacing;let U=0,q=function(W){w=Math.max(w,s.measureText(W).width+U)};return s.save(),s.font=g.string,pt(a.title,q),s.font=p.string,pt(a.beforeBody.concat(a.afterBody),q),U=n.displayColors?f+2+n.boxPadding:0,pt(l,(W)=>{pt(W.before,q),pt(W.lines,q),pt(W.after,q)}),U=0,s.font=x.string,pt(a.footer,q),s.restore(),w+=M.width,{width:w,height:k}}function DP(a,n){let{y:s,height:l}=n;if(s<l/2)return"top";else if(s>a.height-l/2)return"bottom";return"center"}function EP(a,n,s,l){let{x:r,width:c}=l,f=s.caretSize+s.caretPadding;if(a==="left"&&r+c+f>n.width)return!0;if(a==="right"&&r-c-f<0)return!0}function OP(a,n,s,l){let{x:r,width:c}=s,{width:f,chartArea:{left:h,right:p}}=a,g="center";if(l==="center")g=r<=(h+p)/2?"left":"right";else if(r<=c/2)g="left";else if(r>=f-c/2)g="right";if(EP(g,a,n,s))g="center";return g}function XI(a,n,s){let l=s.yAlign||n.yAlign||DP(a,s);return{xAlign:s.xAlign||n.xAlign||OP(a,n,s,l),yAlign:l}}function PP(a,n){let{x:s,width:l}=a;if(n==="right")s-=l;else if(n==="center")s-=l/2;return s}function BP(a,n,s){let{y:l,height:r}=a;if(n==="top")l+=s;else if(n==="bottom")l-=r+s;else l-=r/2;return l}function $I(a,n,s,l){let{caretSize:r,caretPadding:c,cornerRadius:f}=a,{xAlign:h,yAlign:p}=s,g=r+c,{topLeft:x,topRight:y,bottomLeft:S,bottomRight:T}=Pi(f),M=PP(n,h),k=BP(n,p,g);if(p==="center"){if(h==="left")M+=g;else if(h==="right")M-=g}else if(h==="left")M-=Math.max(x,S)+r;else if(h==="right")M+=Math.max(y,T)+r;return{x:to(M,0,l.width-n.width),y:to(k,0,l.height-n.height)}}function Vp(a,n,s){let l=Ta(s.padding);return n==="center"?a.x+a.width/2:n==="right"?a.x+a.width-l.right:a.x+l.left}function WI(a){return Xn([],_s(a))}function NP(a,n,s){return ks(a,{tooltip:n,tooltipItems:s,type:"tooltip"})}function ZI(a,n){let s=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return s?a.override(s):a}var DM={beforeTitle:Yn,title(a){if(a.length>0){let n=a[0],s=n.chart.data.labels,l=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";else if(n.label)return n.label;else if(l>0&&n.dataIndex<l)return s[n.dataIndex]}return""},afterTitle:Yn,beforeBody:Yn,beforeLabel:Yn,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let n=a.dataset.label||"";if(n)n+=": ";let s=a.formattedValue;if(!st(s))n+=s;return n},labelColor(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:Yn,afterBody:Yn,beforeFooter:Yn,footer:Yn,afterFooter:Yn};function oo(a,n,s,l){let r=a[n].call(s,l);if(typeof r>"u")return DM[n].call(s,l);return r}class Wx extends Ds{static positioners=Sd;constructor(a){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=a.chart,this.options=a.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(a){this.options=a,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let a=this._cachedAnimations;if(a)return a;let n=this.chart,s=this.options.setContext(this.getContext()),l=s.enabled&&n.options.animation&&s.animations,r=new Kx(this.chart,l);if(l._cacheable)this._cachedAnimations=Object.freeze(r);return r}getContext(){return this.$context||(this.$context=NP(this.chart.getContext(),this,this._tooltipItems))}getTitle(a,n){let{callbacks:s}=n,l=oo(s,"beforeTitle",this,a),r=oo(s,"title",this,a),c=oo(s,"afterTitle",this,a),f=[];return f=Xn(f,_s(l)),f=Xn(f,_s(r)),f=Xn(f,_s(c)),f}getBeforeBody(a,n){return WI(oo(n.callbacks,"beforeBody",this,a))}getBody(a,n){let{callbacks:s}=n,l=[];return pt(a,(r)=>{let c={before:[],lines:[],after:[]},f=ZI(s,r);Xn(c.before,_s(oo(f,"beforeLabel",this,r))),Xn(c.lines,oo(f,"label",this,r)),Xn(c.after,_s(oo(f,"afterLabel",this,r))),l.push(c)}),l}getAfterBody(a,n){return WI(oo(n.callbacks,"afterBody",this,a))}getFooter(a,n){let{callbacks:s}=n,l=oo(s,"beforeFooter",this,a),r=oo(s,"footer",this,a),c=oo(s,"afterFooter",this,a),f=[];return f=Xn(f,_s(l)),f=Xn(f,_s(r)),f=Xn(f,_s(c)),f}_createItems(a){let n=this._active,s=this.chart.data,l=[],r=[],c=[],f=[],h,p;for(h=0,p=n.length;h<p;++h)f.push(_P(this.chart,n[h]));if(a.filter)f=f.filter((g,x,y)=>a.filter(g,x,y,s));if(a.itemSort)f=f.sort((g,x)=>a.itemSort(g,x,s));return pt(f,(g)=>{let x=ZI(a.callbacks,g);l.push(oo(x,"labelColor",this,g)),r.push(oo(x,"labelPointStyle",this,g)),c.push(oo(x,"labelTextColor",this,g))}),this.labelColors=l,this.labelPointStyles=r,this.labelTextColors=c,this.dataPoints=f,f}update(a,n){let s=this.options.setContext(this.getContext()),l=this._active,r,c=[];if(!l.length){if(this.opacity!==0)r={opacity:0}}else{let f=Sd[s.position].call(this,l,this._eventPosition);c=this._createItems(s),this.title=this.getTitle(c,s),this.beforeBody=this.getBeforeBody(c,s),this.body=this.getBody(c,s),this.afterBody=this.getAfterBody(c,s),this.footer=this.getFooter(c,s);let h=this._size=YI(this,s),p=Object.assign({},f,h),g=XI(this.chart,s,p),x=$I(s,p,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,r={opacity:1,x:x.x,y:x.y,width:h.width,height:h.height,caretX:f.x,caretY:f.y}}if(this._tooltipItems=c,this.$context=void 0,r)this._resolveAnimations().update(this,r);if(a&&s.external)s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(a,n,s,l){let r=this.getCaretPosition(a,s,l);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(a,n,s){let{xAlign:l,yAlign:r}=this,{caretSize:c,cornerRadius:f}=s,{topLeft:h,topRight:p,bottomLeft:g,bottomRight:x}=Pi(f),{x:y,y:S}=a,{width:T,height:M}=n,k,w,_,U,q,W;if(r==="center"){if(q=S+M/2,l==="left")k=y,w=k-c,U=q+c,W=q-c;else k=y+T,w=k+c,U=q-c,W=q+c;_=k}else{if(l==="left")w=y+Math.max(h,g)+c;else if(l==="right")w=y+T-Math.max(p,x)-c;else w=this.caretX;if(r==="top")U=S,q=U-c,k=w-c,_=w+c;else U=S+M,q=U+c,k=w+c,_=w-c;W=U}return{x1:k,x2:w,x3:_,y1:U,y2:q,y3:W}}drawTitle(a,n,s){let l=this.title,r=l.length,c,f,h;if(r){let p=Fl(s.rtl,this.x,this.width);a.x=Vp(this,s.titleAlign,s),n.textAlign=p.textAlign(s.titleAlign),n.textBaseline="middle",c=oa(s.titleFont),f=s.titleSpacing,n.fillStyle=s.titleColor,n.font=c.string;for(h=0;h<r;++h)if(n.fillText(l[h],p.x(a.x),a.y+c.lineHeight/2),a.y+=c.lineHeight+f,h+1===r)a.y+=s.titleMarginBottom-f}}_drawColorBox(a,n,s,l,r){let c=this.labelColors[s],f=this.labelPointStyles[s],{boxHeight:h,boxWidth:p}=r,g=oa(r.bodyFont),x=Vp(this,"left",r),y=l.x(x),S=h<g.lineHeight?(g.lineHeight-h)/2:0,T=n.y+S;if(r.usePointStyle){let M={radius:Math.min(p,h)/2,pointStyle:f.pointStyle,rotation:f.rotation,borderWidth:1},k=l.leftForLtr(y,p)+p/2,w=T+h/2;a.strokeStyle=r.multiKeyBackground,a.fillStyle=r.multiKeyBackground,Pp(a,M,k,w),a.strokeStyle=c.borderColor,a.fillStyle=c.backgroundColor,Pp(a,M,k,w)}else{a.lineWidth=at(c.borderWidth)?Math.max(...Object.values(c.borderWidth)):c.borderWidth||1,a.strokeStyle=c.borderColor,a.setLineDash(c.borderDash||[]),a.lineDashOffset=c.borderDashOffset||0;let M=l.leftForLtr(y,p),k=l.leftForLtr(l.xPlus(y,1),p-2),w=Pi(c.borderRadius);if(Object.values(w).some((_)=>_!==0))a.beginPath(),a.fillStyle=r.multiKeyBackground,yu(a,{x:M,y:T,w:p,h,radius:w}),a.fill(),a.stroke(),a.fillStyle=c.backgroundColor,a.beginPath(),yu(a,{x:k,y:T+1,w:p-2,h:h-2,radius:w}),a.fill();else a.fillStyle=r.multiKeyBackground,a.fillRect(M,T,p,h),a.strokeRect(M,T,p,h),a.fillStyle=c.backgroundColor,a.fillRect(k,T+1,p-2,h-2)}a.fillStyle=this.labelTextColors[s]}drawBody(a,n,s){let{body:l}=this,{bodySpacing:r,bodyAlign:c,displayColors:f,boxHeight:h,boxWidth:p,boxPadding:g}=s,x=oa(s.bodyFont),y=x.lineHeight,S=0,T=Fl(s.rtl,this.x,this.width),M=function(J){n.fillText(J,T.x(a.x+S),a.y+y/2),a.y+=y+r},k=T.textAlign(c),w,_,U,q,W,Q,ne;n.textAlign=c,n.textBaseline="middle",n.font=x.string,a.x=Vp(this,k,s),n.fillStyle=s.bodyColor,pt(this.beforeBody,M),S=f&&k!=="right"?c==="center"?p/2+g:p+2+g:0;for(q=0,Q=l.length;q<Q;++q){if(w=l[q],_=this.labelTextColors[q],n.fillStyle=_,pt(w.before,M),U=w.lines,f&&U.length)this._drawColorBox(n,a,q,T,s),y=Math.max(x.lineHeight,h);for(W=0,ne=U.length;W<ne;++W)M(U[W]),y=x.lineHeight;pt(w.after,M)}S=0,y=x.lineHeight,pt(this.afterBody,M),a.y-=r}drawFooter(a,n,s){let l=this.footer,r=l.length,c,f;if(r){let h=Fl(s.rtl,this.x,this.width);a.x=Vp(this,s.footerAlign,s),a.y+=s.footerMarginTop,n.textAlign=h.textAlign(s.footerAlign),n.textBaseline="middle",c=oa(s.footerFont),n.fillStyle=s.footerColor,n.font=c.string;for(f=0;f<r;++f)n.fillText(l[f],h.x(a.x),a.y+c.lineHeight/2),a.y+=c.lineHeight+s.footerSpacing}}drawBackground(a,n,s,l){let{xAlign:r,yAlign:c}=this,{x:f,y:h}=a,{width:p,height:g}=s,{topLeft:x,topRight:y,bottomLeft:S,bottomRight:T}=Pi(l.cornerRadius);if(n.fillStyle=l.backgroundColor,n.strokeStyle=l.borderColor,n.lineWidth=l.borderWidth,n.beginPath(),n.moveTo(f+x,h),c==="top")this.drawCaret(a,n,s,l);if(n.lineTo(f+p-y,h),n.quadraticCurveTo(f+p,h,f+p,h+y),c==="center"&&r==="right")this.drawCaret(a,n,s,l);if(n.lineTo(f+p,h+g-T),n.quadraticCurveTo(f+p,h+g,f+p-T,h+g),c==="bottom")this.drawCaret(a,n,s,l);if(n.lineTo(f+S,h+g),n.quadraticCurveTo(f,h+g,f,h+g-S),c==="center"&&r==="left")this.drawCaret(a,n,s,l);if(n.lineTo(f,h+x),n.quadraticCurveTo(f,h,f+x,h),n.closePath(),n.fill(),l.borderWidth>0)n.stroke()}_updateAnimationTarget(a){let n=this.chart,s=this.$animations,l=s&&s.x,r=s&&s.y;if(l||r){let c=Sd[a.position].call(this,this._active,this._eventPosition);if(!c)return;let f=this._size=YI(this,a),h=Object.assign({},c,this._size),p=XI(n,a,h),g=$I(a,h,p,n);if(l._to!==g.x||r._to!==g.y)this.xAlign=p.xAlign,this.yAlign=p.yAlign,this.width=f.width,this.height=f.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,g)}}_willRender(){return!!this.opacity}draw(a){let n=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(n);let l={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<0.001?0:s;let c=Ta(n.padding),f=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(n.enabled&&f)a.save(),a.globalAlpha=s,this.drawBackground(r,a,l,n),Ax(a,n.textDirection),r.y+=c.top,this.drawTitle(r,a,n),this.drawBody(r,a,n),this.drawFooter(r,a,n),kx(a,n.textDirection),a.restore()}getActiveElements(){return this._active||[]}setActiveElements(a,n){let s=this._active,l=a.map(({datasetIndex:f,index:h})=>{let p=this.chart.getDatasetMeta(f);if(!p)throw Error("Cannot find a dataset at index "+f);return{datasetIndex:f,element:p.data[h],index:h}}),r=!ud(s,l),c=this._positionChanged(l,n);if(r||c)this._active=l,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(a,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let l=this.options,r=this._active||[],c=this._getActiveElements(a,r,n,s),f=this._positionChanged(c,a),h=n||!ud(c,r)||f;if(h){if(this._active=c,l.enabled||l.external)this._eventPosition={x:a.x,y:a.y},this.update(!0,n)}return h}_getActiveElements(a,n,s,l){let r=this.options;if(a.type==="mouseout")return[];if(!l)return n.filter((f)=>this.chart.data.datasets[f.datasetIndex]&&this.chart.getDatasetMeta(f.datasetIndex).controller.getParsed(f.index)!==void 0);let c=this.chart.getElementsAtEventForMode(a,r.mode,r,s);if(r.reverse)c.reverse();return c}_positionChanged(a,n){let{caretX:s,caretY:l,options:r}=this,c=Sd[r.position].call(this,a,n);return c!==!1&&(s!==c.x||l!==c.y)}}var EM={id:"tooltip",_element:Wx,positioners:Sd,afterInit(a,n,s){if(s)a.tooltip=new Wx({chart:a,options:s})},beforeUpdate(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},reset(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},afterDraw(a){let n=a.tooltip;if(n&&n._willRender()){let s={tooltip:n};if(a.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;n.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",s)}},afterEvent(a,n){if(a.tooltip){let s=n.replay;if(a.tooltip.handleEvent(n.event,s,n.inChartArea))n.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(a,n)=>n.bodyFont.size,boxWidth:(a,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:DM},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(a)=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var zP=(a,n,s,l)=>{if(typeof n==="string")s=a.push(n)-1,l.unshift({index:s,label:n});else if(isNaN(n))s=null;return s};function UP(a,n,s,l){let r=a.indexOf(n);if(r===-1)return zP(a,n,s,l);let c=a.lastIndexOf(n);return r!==c?s:r}var HP=(a,n)=>a===null?null:to(Math.round(a),0,n);function QI(a){let n=this.getLabels();if(a>=0&&a<n.length)return n[a];return a}class lv extends jl{static id="category";static defaults={ticks:{callback:QI}};constructor(a){super(a);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(a){let n=this._addedLabels;if(n.length){let s=this.getLabels();for(let{index:l,label:r}of n)if(s[l]===r)s.splice(l,1);this._addedLabels=[]}super.init(a)}parse(a,n){if(st(a))return null;let s=this.getLabels();return n=isFinite(n)&&s[n]===a?n:UP(s,a,We(n,a),this._addedLabels),HP(n,s.length-1)}determineDataLimits(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),{min:s,max:l}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!a)s=0;if(!n)l=this.getLabels().length-1}this.min=s,this.max=l}buildTicks(){let a=this.min,n=this.max,s=this.options.offset,l=[],r=this.getLabels();r=a===0&&n===r.length-1?r:r.slice(a,n+1),this._valueRange=Math.max(r.length-(s?0:1),1),this._startValue=this.min-(s?0.5:0);for(let c=a;c<=n;c++)l.push({value:c});return l}getLabelForValue(a){return QI.call(this,a)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(a){if(typeof a!=="number")a=this.parse(a);return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getValueForPixel(a){return Math.round(this._startValue+this.getDecimalForPixel(a)*this._valueRange)}getBasePixel(){return this.bottom}}function FP(a,n){let s=[],l=0.00000000000001,{bounds:r,step:c,min:f,max:h,precision:p,count:g,maxTicks:x,maxDigits:y,includeBounds:S}=a,T=c||1,M=x-1,{min:k,max:w}=n,_=!st(f),U=!st(h),q=!st(g),W=(w-k)/(y+1),Q=ux((w-k)/M/T)*T,ne,J,K,re;if(Q<0.00000000000001&&!_&&!U)return[{value:k},{value:w}];if(re=Math.ceil(w/Q)-Math.floor(k/Q),re>M)Q=ux(re*Q/M/T)*T;if(!st(p))ne=Math.pow(10,p),Q=Math.ceil(Q*ne)/ne;if(r==="ticks")J=Math.floor(k/Q)*Q,K=Math.ceil(w/Q)*Q;else J=k,K=w;if(_&&U&&c&&Nw((h-f)/c,Q/1000))re=Math.round(Math.min((h-f)/Q,x)),Q=(h-f)/re,J=f,K=h;else if(q)J=_?f:J,K=U?h:K,re=g-1,Q=(K-J)/re;else if(re=(K-J)/Q,mu(re,Math.round(re),Q/1000))re=Math.round(re);else re=Math.ceil(re);let V=Math.max(dx(Q),dx(J));ne=Math.pow(10,st(p)?V:p),J=Math.round(J*ne)/ne,K=Math.round(K*ne)/ne;let he=0;if(_){if(S&&J!==f){if(s.push({value:f}),J<f)he++;if(mu(Math.round((J+he*Q)*ne)/ne,f,KI(f,W,a)))he++}else if(J<f)he++}for(;he<re;++he){let Le=Math.round((J+he*Q)*ne)/ne;if(U&&Le>h)break;s.push({value:Le})}if(U&&S&&K!==h)if(s.length&&mu(s[s.length-1].value,h,KI(h,W,a)))s[s.length-1].value=h;else s.push({value:h});else if(!U||K===h)s.push({value:K});return s}function KI(a,n,{horizontal:s,minRotation:l}){let r=Ms(l),c=(s?Math.sin(r):Math.cos(r))||0.001,f=0.75*n*(""+a).length;return Math.min(n/c,f)}class Cd extends jl{constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(a,n){if(st(a))return null;if((typeof a==="number"||a instanceof Number)&&!isFinite(+a))return null;return+a}handleTickRangeOptions(){let{beginAtZero:a}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds(),{min:l,max:r}=this,c=(h)=>l=n?l:h,f=(h)=>r=s?r:h;if(a){let h=hn(l),p=hn(r);if(h<0&&p<0)f(0);else if(h>0&&p>0)c(0)}if(l===r){let h=r===0?1:Math.abs(r*0.05);if(f(r+h),!a)c(l-h)}this.min=l,this.max=r}getTickLimit(){let a=this.options.ticks,{maxTicksLimit:n,stepSize:s}=a,l;if(s){if(l=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,l>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${l} ticks. Limiting to 1000.`),l=1000}else l=this.computeTickLimit(),n=n||11;if(n)l=Math.min(n,l);return l}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let a=this.options,n=a.ticks,s=this.getTickLimit();s=Math.max(2,s);let l={maxTicks:s,bounds:a.bounds,min:a.min,max:a.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,c=FP(l,r);if(a.bounds==="ticks")cx(c,this,"value");if(a.reverse)c.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return c}configure(){let a=this.ticks,n=this.min,s=this.max;if(super.configure(),this.options.offset&&a.length){let l=(s-n)/Math.max(a.length-1,1)/2;n-=l,s+=l}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(a){return Ep(a,this.chart.options.locale,this.options.ticks.format)}}class rv extends Cd{static id="linear";static defaults={ticks:{callback:cd.formatters.numeric}};determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);this.min=Ut(a)?a:0,this.max=Ut(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let a=this.isHorizontal(),n=a?this.width:this.height,s=Ms(this.options.ticks.minRotation),l=(a?Math.sin(s):Math.cos(s))||0.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/l))}getPixelForValue(a){return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getValueForPixel(a){return this._startValue+this.getDecimalForPixel(a)*this._valueRange}}var Td=(a)=>Math.floor(Is(a)),Vl=(a,n)=>Math.pow(10,Td(a)+n);function JI(a){return a/Math.pow(10,Td(a))===1}function eM(a,n,s){let l=Math.pow(10,s),r=Math.floor(a/l);return Math.ceil(n/l)-r}function qP(a,n){let s=n-a,l=Td(s);while(eM(a,n,l)>10)l++;while(eM(a,n,l)<10)l--;return Math.min(l,Td(a))}function VP(a,{min:n,max:s}){n=ao(a.min,n);let l=[],r=Td(n),c=qP(n,s),f=c<0?Math.pow(10,Math.abs(c)):1,h=Math.pow(10,c),p=r>c?Math.pow(10,r):0,g=Math.round((n-p)*f)/f,x=Math.floor((n-p)/h/10)*h*10,y=Math.floor((g-x)/Math.pow(10,c)),S=ao(a.min,Math.round((p+x+y*Math.pow(10,c))*f)/f);while(S<s){if(l.push({value:S,major:JI(S),significand:y}),y>=10)y=y<15?15:20;else y++;if(y>=20)c++,y=2,f=c>=0?1:f;S=Math.round((p+x+y*Math.pow(10,c))*f)/f}let T=ao(a.max,S);return l.push({value:T,major:JI(T),significand:y}),l}class jP extends jl{static id="logarithmic";static defaults={ticks:{callback:cd.formatters.logarithmic,major:{enabled:!0}}};constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(a,n){let s=Cd.prototype.parse.apply(this,[a,n]);if(s===0){this._zero=!0;return}return Ut(s)&&s>0?s:null}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);if(this.min=Ut(a)?Math.max(0,a):null,this.max=Ut(n)?Math.max(0,n):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!Ut(this._userMin))this.min=a===Vl(this.min,0)?Vl(this.min,-1):Vl(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),s=this.min,l=this.max,r=(f)=>s=a?s:f,c=(f)=>l=n?l:f;if(s===l)if(s<=0)r(1),c(10);else r(Vl(s,-1)),c(Vl(l,1));if(s<=0)r(Vl(l,-1));if(l<=0)c(Vl(s,1));this.min=s,this.max=l}buildTicks(){let a=this.options,n={min:this._userMin,max:this._userMax},s=VP(n,this);if(a.bounds==="ticks")cx(s,this,"value");if(a.reverse)s.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return s}getLabelForValue(a){return a===void 0?"0":Ep(a,this.chart.options.locale,this.options.ticks.format)}configure(){let a=this.min;super.configure(),this._startValue=Is(a),this._valueRange=Is(this.max)-Is(a)}getPixelForValue(a){if(a===void 0||a===0)a=this.min;if(a===null||isNaN(a))return NaN;return this.getPixelForDecimal(a===this.min?0:(Is(a)-this._startValue)/this._valueRange)}getValueForPixel(a){let n=this.getDecimalForPixel(a);return Math.pow(10,this._startValue+n*this._valueRange)}}function Zx(a){let n=a.ticks;if(n.display&&a.display){let s=Ta(n.backdropPadding);return We(n.font&&n.font.size,Ht.font.size)+s.height}return 0}function GP(a,n,s){return s=At(s)?s:[s],{w:Zw(a,n.string,s),h:s.length*n.lineHeight}}function tM(a,n,s,l,r){if(a===l||a===r)return{start:n-s/2,end:n+s/2};else if(a<l||a>r)return{start:n-s,end:n};return{start:n,end:n+s}}function YP(a){let n={l:a.left+a._padding.left,r:a.right-a._padding.right,t:a.top+a._padding.top,b:a.bottom-a._padding.bottom},s=Object.assign({},n),l=[],r=[],c=a._pointLabels.length,f=a.options.pointLabels,h=f.centerPointLabels?Yt/c:0;for(let p=0;p<c;p++){let g=f.setContext(a.getPointLabelContext(p));r[p]=g.padding;let x=a.getPointPosition(p,a.drawingArea+r[p],h),y=oa(g.font),S=GP(a.ctx,y,a._pointLabels[p]);l[p]=S;let T=Ka(a.getIndexAngle(p)+h),M=Math.round(Rp(T)),k=tM(M,x.x,S.w,0,180),w=tM(M,x.y,S.h,90,270);XP(s,n,T,k,w)}a.setCenterPoint(n.l-s.l,s.r-n.r,n.t-s.t,s.b-n.b),a._pointLabelItems=ZP(a,l,r)}function XP(a,n,s,l,r){let c=Math.abs(Math.sin(s)),f=Math.abs(Math.cos(s)),h=0,p=0;if(l.start<n.l)h=(n.l-l.start)/c,a.l=Math.min(a.l,n.l-h);else if(l.end>n.r)h=(l.end-n.r)/c,a.r=Math.max(a.r,n.r+h);if(r.start<n.t)p=(n.t-r.start)/f,a.t=Math.min(a.t,n.t-p);else if(r.end>n.b)p=(r.end-n.b)/f,a.b=Math.max(a.b,n.b+p)}function $P(a,n,s){let l=a.drawingArea,{extra:r,additionalAngle:c,padding:f,size:h}=s,p=a.getPointPosition(n,l+r+f,c),g=Math.round(Rp(Ka(p.angle+Ja))),x=JP(p.y,h.h,g),y=QP(g),S=KP(p.x,h.w,y);return{visible:!0,x:p.x,y:x,textAlign:y,left:S,top:x,right:S+h.w,bottom:x+h.h}}function WP(a,n){if(!n)return!0;let{left:s,top:l,right:r,bottom:c}=a;return!(Gn({x:s,y:l},n)||Gn({x:s,y:c},n)||Gn({x:r,y:l},n)||Gn({x:r,y:c},n))}function ZP(a,n,s){let l=[],r=a._pointLabels.length,c=a.options,{centerPointLabels:f,display:h}=c.pointLabels,p={extra:Zx(c)/2,additionalAngle:f?Yt/r:0},g;for(let x=0;x<r;x++){p.padding=s[x],p.size=n[x];let y=$P(a,x,p);if(l.push(y),h==="auto"){if(y.visible=WP(y,g),y.visible)g=y}}return l}function QP(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function KP(a,n,s){if(s==="right")a-=n;else if(s==="center")a-=n/2;return a}function JP(a,n,s){if(s===90||s===270)a-=n/2;else if(s>270||s<90)a-=n;return a}function eB(a,n,s){let{left:l,top:r,right:c,bottom:f}=s,{backdropColor:h}=n;if(!st(h)){let p=Pi(n.borderRadius),g=Ta(n.backdropPadding);a.fillStyle=h;let x=l-g.left,y=r-g.top,S=c-l+g.width,T=f-r+g.height;if(Object.values(p).some((M)=>M!==0))a.beginPath(),yu(a,{x,y,w:S,h:T,radius:p}),a.fill();else a.fillRect(x,y,S,T)}}function tB(a,n){let{ctx:s,options:{pointLabels:l}}=a;for(let r=n-1;r>=0;r--){let c=a._pointLabelItems[r];if(!c.visible)continue;let f=l.setContext(a.getPointLabelContext(r));eB(s,f,c);let h=oa(f.font),{x:p,y:g,textAlign:x}=c;Oi(s,a._pointLabels[r],p,g+h.lineHeight/2,h,{color:f.color,textAlign:x,textBaseline:"middle"})}}function OM(a,n,s,l){let{ctx:r}=a;if(s)r.arc(a.xCenter,a.yCenter,n,0,eo);else{let c=a.getPointPosition(0,n);r.moveTo(c.x,c.y);for(let f=1;f<l;f++)c=a.getPointPosition(f,n),r.lineTo(c.x,c.y)}}function aB(a,n,s,l,r){let c=a.ctx,f=n.circular,{color:h,lineWidth:p}=n;if(!f&&!l||!h||!p||s<0)return;c.save(),c.strokeStyle=h,c.lineWidth=p,c.setLineDash(r.dash||[]),c.lineDashOffset=r.dashOffset,c.beginPath(),OM(a,s,f,l),c.closePath(),c.stroke(),c.restore()}function oB(a,n,s){return ks(a,{label:s,index:n,type:"pointLabel"})}class nB extends Cd{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:cd.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(a){return a},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(a){super(a);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let a=this._padding=Ta(Zx(this.options)/2),n=this.width=this.maxWidth-a.width,s=this.height=this.maxHeight-a.height;this.xCenter=Math.floor(this.left+n/2+a.left),this.yCenter=Math.floor(this.top+s/2+a.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!1);this.min=Ut(a)&&!isNaN(a)?a:0,this.max=Ut(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Zx(this.options))}generateTickLabels(a){Cd.prototype.generateTickLabels.call(this,a),this._pointLabels=this.getLabels().map((n,s)=>{let l=Tt(this.options.pointLabels.callback,[n,s],this);return l||l===0?l:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){let a=this.options;if(a.display&&a.pointLabels.display)YP(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(a,n,s,l){this.xCenter+=Math.floor((a-n)/2),this.yCenter+=Math.floor((s-l)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(a,n,s,l))}getIndexAngle(a){let n=eo/(this._pointLabels.length||1),s=this.options.startAngle||0;return Ka(a*n+Ms(s))}getDistanceFromCenterForValue(a){if(st(a))return NaN;let n=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-a)*n;return(a-this.min)*n}getValueForDistanceFromCenter(a){if(st(a))return NaN;let n=a/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(a){let n=this._pointLabels||[];if(a>=0&&a<n.length){let s=n[a];return oB(this.getContext(),a,s)}}getPointPosition(a,n,s=0){let l=this.getIndexAngle(a)-Ja+s;return{x:Math.cos(l)*n+this.xCenter,y:Math.sin(l)*n+this.yCenter,angle:l}}getPointPositionForValue(a,n){return this.getPointPosition(a,this.getDistanceFromCenterForValue(n))}getBasePosition(a){return this.getPointPositionForValue(a||0,this.getBaseValue())}getPointLabelPosition(a){let{left:n,top:s,right:l,bottom:r}=this._pointLabelItems[a];return{left:n,top:s,right:l,bottom:r}}drawBackground(){let{backgroundColor:a,grid:{circular:n}}=this.options;if(a){let s=this.ctx;s.save(),s.beginPath(),OM(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=a,s.fill(),s.restore()}}drawGrid(){let a=this.ctx,n=this.options,{angleLines:s,grid:l,border:r}=n,c=this._pointLabels.length,f,h,p;if(n.pointLabels.display)tB(this,c);if(l.display)this.ticks.forEach((g,x)=>{if(x!==0||x===0&&this.min<0){h=this.getDistanceFromCenterForValue(g.value);let y=this.getContext(x),S=l.setContext(y),T=r.setContext(y);aB(this,S,h,c,T)}});if(s.display){a.save();for(f=c-1;f>=0;f--){let g=s.setContext(this.getPointLabelContext(f)),{color:x,lineWidth:y}=g;if(!y||!x)continue;a.lineWidth=y,a.strokeStyle=x,a.setLineDash(g.borderDash),a.lineDashOffset=g.borderDashOffset,h=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),p=this.getPointPosition(f,h),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(p.x,p.y),a.stroke()}a.restore()}}drawBorder(){}drawLabels(){let a=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;let l=this.getIndexAngle(0),r,c;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(l),a.textAlign="center",a.textBaseline="middle",this.ticks.forEach((f,h)=>{if(h===0&&this.min>=0&&!n.reverse)return;let p=s.setContext(this.getContext(h)),g=oa(p.font);if(r=this.getDistanceFromCenterForValue(this.ticks[h].value),p.showLabelBackdrop){a.font=g.string,c=a.measureText(f.label).width,a.fillStyle=p.backdropColor;let x=Ta(p.backdropPadding);a.fillRect(-c/2-x.left,-r-g.size/2-x.top,c+x.width,g.size+x.height)}Oi(a,f.label,0,-r,g,{color:p.color,strokeColor:p.textStrokeColor,strokeWidth:p.textStrokeWidth})}),a.restore()}drawTitle(){}}var Zp={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},no=Object.keys(Zp);function aM(a,n){return a-n}function oM(a,n){if(st(n))return null;let s=a._adapter,{parser:l,round:r,isoWeekday:c}=a._parseOpts,f=n;if(typeof l==="function")f=l(f);if(!Ut(f))f=typeof l==="string"?s.parse(f,l):s.parse(f);if(f===null)return null;if(r)f=r==="week"&&(gu(c)||c===!0)?s.startOf(f,"isoWeek",c):s.startOf(f,r);return+f}function nM(a,n,s,l){let r=no.length;for(let c=no.indexOf(a);c<r-1;++c){let f=Zp[no[c]],h=f.steps?f.steps:Number.MAX_SAFE_INTEGER;if(f.common&&Math.ceil((s-n)/(h*f.size))<=l)return no[c]}return no[r-1]}function sB(a,n,s,l,r){for(let c=no.length-1;c>=no.indexOf(s);c--){let f=no[c];if(Zp[f].common&&a._adapter.diff(r,l,f)>=n-1)return f}return no[s?no.indexOf(s):0]}function iB(a){for(let n=no.indexOf(a)+1,s=no.length;n<s;++n)if(Zp[no[n]].common)return no[n]}function sM(a,n,s){if(!s)a[n]=!0;else if(s.length){let{lo:l,hi:r}=_p(s,n),c=s[l]>=n?s[l]:s[r];a[c]=!0}}function lB(a,n,s,l){let r=a._adapter,c=+r.startOf(n[0].value,l),f=n[n.length-1].value,h,p;for(h=c;h<=f;h=+r.add(h,1,l))if(p=s[h],p>=0)n[p].major=!0;return n}function iM(a,n,s){let l=[],r={},c=n.length,f,h;for(f=0;f<c;++f)h=n[f],r[h]=f,l.push({value:h,major:!1});return c===0||!s?l:lB(a,l,r,s)}class Qx extends jl{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(a){super(a);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(a,n={}){let s=a.time||(a.time={}),l=this._adapter=new qE._date(a.adapters.date);l.init(n),hu(s.displayFormats,l.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(a),this._normalized=n.normalized}parse(a,n){if(a===void 0)return null;return oM(this,a)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let a=this.options,n=this._adapter,s=a.time.unit||"day",{min:l,max:r,minDefined:c,maxDefined:f}=this.getUserBounds();function h(p){if(!c&&!isNaN(p.min))l=Math.min(l,p.min);if(!f&&!isNaN(p.max))r=Math.max(r,p.max)}if(!c||!f){if(h(this._getLabelBounds()),a.bounds!=="ticks"||a.ticks.source!=="labels")h(this.getMinMax(!1))}l=Ut(l)&&!isNaN(l)?l:+n.startOf(Date.now(),s),r=Ut(r)&&!isNaN(r)?r:+n.endOf(Date.now(),s)+1,this.min=Math.min(l,r-1),this.max=Math.max(l+1,r)}_getLabelBounds(){let a=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;if(a.length)n=a[0],s=a[a.length-1];return{min:n,max:s}}buildTicks(){let a=this.options,n=a.time,s=a.ticks,l=s.source==="labels"?this.getLabelTimestamps():this._generate();if(a.bounds==="ticks"&&l.length)this.min=this._userMin||l[0],this.max=this._userMax||l[l.length-1];let r=this.min,c=this.max,f=Fw(l,r,c);if(this._unit=n.unit||(s.autoSkip?nM(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):sB(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:iB(this._unit),this.initOffsets(l),a.reverse)f.reverse();return iM(this,f,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((a)=>+a.value))}initOffsets(a=[]){let n=0,s=0,l,r;if(this.options.offset&&a.length){if(l=this.getDecimalForValue(a[0]),a.length===1)n=1-l;else n=(this.getDecimalForValue(a[1])-l)/2;if(r=this.getDecimalForValue(a[a.length-1]),a.length===1)s=r;else s=(r-this.getDecimalForValue(a[a.length-2]))/2}let c=a.length<3?0.5:0.25;n=to(n,0,c),s=to(s,0,c),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let a=this._adapter,n=this.min,s=this.max,l=this.options,r=l.time,c=r.unit||nM(r.minUnit,n,s,this._getLabelCapacity(n)),f=We(l.ticks.stepSize,1),h=c==="week"?r.isoWeekday:!1,p=gu(h)||h===!0,g={},x=n,y,S;if(p)x=+a.startOf(x,"isoWeek",h);if(x=+a.startOf(x,p?"day":c),a.diff(s,n,c)>1e5*f)throw Error(n+" and "+s+" are too far apart with stepSize of "+f+" "+c);let T=l.ticks.source==="data"&&this.getDataTimestamps();for(y=x,S=0;y<s;y=+a.add(y,f,c),S++)sM(g,y,T);if(y===s||l.bounds==="ticks"||S===1)sM(g,y,T);return Object.keys(g).sort(aM).map((M)=>+M)}getLabelForValue(a){let n=this._adapter,s=this.options.time;if(s.tooltipFormat)return n.format(a,s.tooltipFormat);return n.format(a,s.displayFormats.datetime)}format(a,n){let l=this.options.time.displayFormats,r=this._unit,c=n||l[r];return this._adapter.format(a,c)}_tickFormatFunction(a,n,s,l){let r=this.options,c=r.ticks.callback;if(c)return Tt(c,[a,n,s],this);let f=r.time.displayFormats,h=this._unit,p=this._majorUnit,g=h&&f[h],x=p&&f[p],y=s[n],S=p&&x&&y&&y.major;return this._adapter.format(a,l||(S?x:g))}generateTickLabels(a){let n,s,l;for(n=0,s=a.length;n<s;++n)l=a[n],l.label=this._tickFormatFunction(l.value,n,a)}getDecimalForValue(a){return a===null?NaN:(a-this.min)/(this.max-this.min)}getPixelForValue(a){let n=this._offsets,s=this.getDecimalForValue(a);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(a){let n=this.options.ticks,s=this.ctx.measureText(a).width,l=Ms(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(l),c=Math.sin(l),f=this._resolveTickFontOptions(0).size;return{w:s*r+f*c,h:s*c+f*r}}_getLabelCapacity(a){let n=this.options.time,s=n.displayFormats,l=s[n.unit]||s.millisecond,r=this._tickFormatFunction(a,0,iM(this,[a],this._majorUnit),l),c=this._getLabelSize(r),f=Math.floor(this.isHorizontal()?this.width/c.w:this.height/c.h)-1;return f>0?f:1}getDataTimestamps(){let a=this._cache.data||[],n,s;if(a.length)return a;let l=this.getMatchingVisibleMetas();if(this._normalized&&l.length)return this._cache.data=l[0].controller.getAllParsedValues(this);for(n=0,s=l.length;n<s;++n)a=a.concat(l[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(a)}getLabelTimestamps(){let a=this._cache.labels||[],n,s;if(a.length)return a;let l=this.getLabels();for(n=0,s=l.length;n<s;++n)a.push(oM(this,l[n]));return this._cache.labels=this._normalized?a:this.normalize(a)}normalize(a){return px(a.sort(aM))}}function jp(a,n,s){let l=0,r=a.length-1,c,f,h,p;if(s){if(n>=a[l].pos&&n<=a[r].pos)({lo:l,hi:r}=Ri(a,"pos",n));({pos:c,time:h}=a[l]),{pos:f,time:p}=a[r]}else{if(n>=a[l].time&&n<=a[r].time)({lo:l,hi:r}=Ri(a,"time",n));({time:c,pos:h}=a[l]),{time:f,pos:p}=a[r]}let g=f-c;return g?h+(p-h)*(n-c)/g:h}class rB extends Qx{static id="timeseries";static defaults=Qx.defaults;constructor(a){super(a);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let a=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(a);this._minPos=jp(n,this.min),this._tableRange=jp(n,this.max)-this._minPos,super.initOffsets(a)}buildLookupTable(a){let{min:n,max:s}=this,l=[],r=[],c,f,h,p,g;for(c=0,f=a.length;c<f;++c)if(p=a[c],p>=n&&p<=s)l.push(p);if(l.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(c=0,f=l.length;c<f;++c)if(g=l[c+1],h=l[c-1],p=l[c],Math.round((g+h)/2)!==p)r.push({time:p,pos:c/(f-1)});return r}_generate(){let a=this.min,n=this.max,s=super.getDataTimestamps();if(!s.includes(a)||!s.length)s.splice(0,0,a);if(!s.includes(n)||s.length===1)s.push(n);return s.sort((l,r)=>l-r)}_getTimestampsForTable(){let a=this._cache.all||[];if(a.length)return a;let n=this.getDataTimestamps(),s=this.getLabelTimestamps();if(n.length&&s.length)a=this.normalize(n.concat(s));else a=n.length?n:s;return a=this._cache.all=a,a}getDecimalForValue(a){return(jp(this._table,a)-this._minPos)/this._tableRange}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return jp(this._table,s*this._tableRange+this._minPos,!0)}}Gl.register(lv,rv,nv,bu,ov,_M,EM,RM,AM);var fk=X(FM(),1);var Ps=X(vt(),1);var em=X(vt(),1);var Kp=(...a)=>a.filter((n,s,l)=>Boolean(n)&&n.trim()!==""&&l.indexOf(n)===s).join(" ").trim();var qM=(a)=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var VM=(a)=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,l)=>l?l.toUpperCase():s.toLowerCase());var dv=(a)=>{let n=VM(a);return n.charAt(0).toUpperCase()+n.slice(1)};var Id=X(vt(),1);var Jp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var jM=(a)=>{for(let n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};var vu=X(vt(),1),mB=vu.createContext({});var GM=()=>vu.useContext(mB);var YM=Id.forwardRef(({color:a,size:n,strokeWidth:s,absoluteStrokeWidth:l,className:r="",children:c,iconNode:f,...h},p)=>{let{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:T=""}=GM()??{},M=l??y?Number(s??x)*24/Number(n??g):s??x;return Id.createElement("svg",{ref:p,...Jp,width:n??g??Jp.width,height:n??g??Jp.height,stroke:a??S,strokeWidth:M,className:Kp("lucide",T,r),...!c&&!jM(h)&&{"aria-hidden":"true"},...h},[...f.map(([k,w])=>Id.createElement(k,w)),...Array.isArray(c)?c:[c]])});var Te=(a,n)=>{let s=em.forwardRef(({className:l,...r},c)=>em.createElement(YM,{ref:c,iconNode:n,className:Kp(`lucide-${qM(dv(a))}`,`lucide-${a}`,l),...r}));return s.displayName=dv(a),s};var gB=[["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"}]],zi=Te("circle-alert",gB);var yB=[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ui=Te("face-slightly-smiling",yB);var bB=[["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"}]],Md=Te("activity",bB);var xB=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ad=Te("check",xB);var vB=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kd=Te("chevron-down",vB);var SB=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Rd=Te("chevron-up",SB);var LB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],_d=Te("clock",LB);var CB=[["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"}]],Xl=Te("coins",CB);var TB=[["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"}]],Dd=Te("copy",TB);var wB=[["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"}]],Ed=Te("cpu",wB);var IB=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Od=Te("folder",IB);var MB=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Pd=Te("gauge",MB);var AB=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Bd=Te("hash",AB);var kB=[["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"}]],Nd=Te("inbox",kB);var RB=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],zd=Te("layout-dashboard",RB);var _B=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ud=Te("menu",_B);var DB=[["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"}]],Hd=Te("monitor",DB);var EB=[["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"}]],Fd=Te("moon",EB);var OB=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],qd=Te("plug",OB);var PB=[["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"}]],Vd=Te("refresh-cw",PB);var BB=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],jd=Te("star",BB);var NB=[["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"}]],Gd=Te("sun",NB);var zB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Yd=Te("trending-up",zB);var UB=[["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"}]],Xd=Te("wrench",UB);var HB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$l=Te("x",HB);var FB=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],$d=Te("zap",FB);var mA=X(vt(),1);var Wd=[{id:"overview",label:"Overview",icon:zd},{id:"requests",label:"Requests",icon:Md},{id:"errors",label:"Errors",icon:zi},{id:"models",label:"Models",icon:Ed},{id:"providers",label:"Providers",icon:qd},{id:"tools",label:"Tools",icon:Xd},{id:"costs",label:"Costs",icon:Xl},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:Ui},{id:"projects",label:"Projects",icon:Od},{id:"gain",label:"Gain",icon:Yd}];var $o=X(ce(),1);function fv({activeSection:a,onSectionChange:n,className:s=""}){return $o.jsxDEV("aside",{className:`stats-nav-rail ${s}`,children:[$o.jsxDEV("div",{className:"stats-nav-rail-header",children:$o.jsxDEV("div",{className:"stats-logo-container",children:[$o.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),$o.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$o.jsxDEV("nav",{className:"stats-nav-rail-menu",children:Wd.map((l)=>{let r=l.id===a,c=l.icon;return $o.jsxDEV("button",{type:"button",onClick:()=>n(l.id),className:"stats-nav-rail-item","data-active":r?"true":"false","aria-current":r?"page":void 0,children:[$o.jsxDEV(c,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),$o.jsxDEV("span",{className:"stats-nav-rail-item-label",children:l.label},void 0,!1,void 0,this)]},l.id,!0,void 0,this)})},void 0,!1,void 0,this),$o.jsxDEV("div",{className:"stats-nav-rail-footer",children:$o.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var hv=X(ce(),1),VB=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function XM({value:a,onChange:n,className:s=""}){return hv.jsxDEV("div",{className:`stats-range-control ${s}`,role:"radiogroup","aria-label":"Select time range",children:VB.map((l)=>{let r=l.value===a;return hv.jsxDEV("button",{type:"button",role:"radio","aria-checked":r,"data-active":r?"true":"false",className:"stats-range-control-btn",onClick:()=>n(l.value),children:l.label},l.value,!1,void 0,this)})},void 0,!1,void 0,this)}var pv=X(vt(),1);class $M extends Error{status;endpoint;constructor(a,n,s){super(s);this.name="ApiError",this.status=a,this.endpoint=n}}async function Wo(a,n){let s=await fetch(a,n);if(!s.ok)throw new $M(s.status,a,`HTTP error ${s.status} on ${a}`);return s.json()}async function WM(a="24h",n){return Wo(`/api/stats/overview?range=${encodeURIComponent(a)}`,{signal:n})}async function ZM(a="24h",n){return Wo(`/api/stats/model-dashboard?range=${encodeURIComponent(a)}`,{signal:n})}async function QM(a="24h",n){return Wo(`/api/stats/costs?range=${encodeURIComponent(a)}`,{signal:n})}async function tm(a=50,n){return Wo(`/api/stats/recent?limit=${a}`,{signal:n})}async function KM(a="24h",n=50,s){return Wo(`/api/stats/errors?range=${encodeURIComponent(a)}&limit=${n}`,{signal:s})}async function JM(a,n){return Wo(`/api/request/${a}`,{signal:n})}async function eA(a){return Wo("/api/sync",{signal:a})}async function tA(a="24h",n){return Wo(`/api/stats/behavior?range=${encodeURIComponent(a)}`,{signal:n})}async function aA(a="24h",n){return Wo(`/api/stats/folders?range=${encodeURIComponent(a)}`,{signal:n})}async function oA(a="24h",n,s){let l=new URLSearchParams({range:a});if(n)l.set("project",n);return Wo(`/api/stats/gain?${l}`,{signal:s})}async function nA(a="24h",n){return Wo(`/api/stats/tools?range=${encodeURIComponent(a)}`,{signal:n})}async function sA(a="24h",n){return Wo(`/api/stats/providers?range=${encodeURIComponent(a)}`,{signal:n})}var Zd=X(ce(),1);function iA({onSyncStart:a,onSyncComplete:n,className:s=""}){let[l,r]=pv.useState(!1),[c,f]=pv.useState(null),h=async()=>{if(l)return;if(r(!0),f(null),a)a();try{let p=await eA(),g={processed:typeof p?.processed==="number"?p.processed:0,files:typeof p?.files==="number"?p.files:0,totalMessages:typeof p?.totalMessages==="number"?p.totalMessages:0};if(f({type:"success",message:`Synced: ${g.processed} new request${g.processed===1?"":"s"} found.`}),n)n({success:!0,data:g})}catch(p){let g=p instanceof Error?p.message:String(p);if(f({type:"error",message:`Sync failed: ${g}`}),n)n({success:!1,error:g})}finally{r(!1)}};return Zd.jsxDEV("div",{className:`stats-sync-container ${s}`,children:[c&&Zd.jsxDEV("span",{className:"stats-sync-status-msg","data-type":c.type,children:c.message},void 0,!1,void 0,this),Zd.jsxDEV("button",{type:"button",onClick:h,disabled:l,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":l,children:[Zd.jsxDEV(Vd,{size:14,className:`stats-sync-icon ${l?"stats-spin":""}`},void 0,!1,void 0,this),l?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var am=X(vt(),1),lA="omp-stats-theme",rA="(prefers-color-scheme: dark)";function jB(){if(typeof localStorage>"u")return"system";let a=localStorage.getItem(lA);return a==="light"||a==="dark"||a==="system"?a:"system"}function uA(){if(typeof window>"u")return"dark";return window.matchMedia(rA).matches?"dark":"light"}var Zl=jB(),Qd=Zl==="system"?uA():Zl,mv=new Set;function cA(){for(let a of mv)a()}function gv(){if(Qd=Zl==="system"?uA():Zl,typeof document<"u")document.documentElement.dataset.theme=Qd,document.documentElement.style.colorScheme=Qd}if(typeof window<"u")gv(),window.matchMedia(rA).addEventListener("change",()=>{if(Zl==="system")gv(),cA()});function GB(a){if(Zl=a,typeof localStorage<"u")localStorage.setItem(lA,a);gv(),cA()}function yv(a){return mv.add(a),()=>mv.delete(a)}function ma(){return am.useSyncExternalStore(yv,()=>Qd,()=>"dark")}function dA(){let a=am.useSyncExternalStore(yv,()=>Zl,()=>"system"),n=am.useSyncExternalStore(yv,()=>Qd,()=>"dark");return{preference:a,resolved:n,setPreference:GB}}var bv=X(ce(),1),YB={system:"light",light:"dark",dark:"system"},XB={system:Hd,light:Gd,dark:Fd},fA={system:"System theme",light:"Light theme",dark:"Dark theme"};function hA(){let{preference:a,setPreference:n}=dA(),s=XB[a];return bv.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>n(YB[a]),"aria-label":`${fA[a]} (click to switch)`,title:`${fA[a]} — click to switch`,children:bv.jsxDEV(s,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Zo=X(ce(),1);function pA({activeSection:a,range:n,onRangeChange:s,updatedAt:l,onSyncStart:r,onSyncComplete:c,onMenuToggle:f,className:h=""}){let g=Wd.find((y)=>y.id===a)?.label||"Observability",x=(y)=>{if(!y)return"Not updated";return`Updated ${new Date(y).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return Zo.jsxDEV("header",{className:`stats-top-bar ${h}`,children:[Zo.jsxDEV("div",{className:"stats-top-bar-left",children:[f&&Zo.jsxDEV("button",{type:"button",onClick:f,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:Zo.jsxDEV(Ud,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zo.jsxDEV("h1",{className:"stats-page-title",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Zo.jsxDEV("div",{className:"stats-top-bar-right",children:[Zo.jsxDEV("div",{className:"stats-top-bar-meta",children:Zo.jsxDEV("span",{className:"stats-last-updated",title:l?new Date(l).toLocaleString():void 0,children:x(l)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zo.jsxDEV(XM,{value:n,onChange:s},void 0,!1,void 0,this),Zo.jsxDEV(hA,{},void 0,!1,void 0,this),Zo.jsxDEV(iA,{onSyncStart:r,onSyncComplete:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ea=X(ce(),1);function gA({activeSection:a,onSectionChange:n,range:s,onRangeChange:l,updatedAt:r,onSyncStart:c,onSyncComplete:f,children:h}){let[p,g]=mA.useState(!1),x=(y)=>{n(y),g(!1)};return Ea.jsxDEV("div",{className:"stats-app-container",children:[Ea.jsxDEV(fv,{activeSection:a,onSectionChange:x,className:"stats-desktop-nav"},void 0,!1,void 0,this),p&&Ea.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>g(!1),role:"presentation",children:Ea.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(y)=>y.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[Ea.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[Ea.jsxDEV("div",{className:"stats-logo-container",children:[Ea.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),Ea.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV("button",{type:"button",onClick:()=>g(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:Ea.jsxDEV($l,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ea.jsxDEV(fv,{activeSection:a,onSectionChange:x,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ea.jsxDEV("div",{className:"stats-main-pane",children:[Ea.jsxDEV(pA,{activeSection:a,range:s,onRangeChange:l,updatedAt:r,onSyncStart:c,onSyncComplete:f,onMenuToggle:()=>g(!0)},void 0,!1,void 0,this),Ea.jsxDEV("main",{className:"stats-content-area",children:Ea.jsxDEV("div",{className:"stats-content-inner",children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Es=X(vt(),1),$B=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],yA=["1h","24h","7d","30d","90d","all"];function xv(a){let n=a.replace(/^#\/?/,""),[s,l]=n.split("?"),r=$B.includes(s)?s:"overview",c="24h";if(l){let h=new URLSearchParams(l).get("range");if(yA.includes(h))c=h}return{section:r,range:c}}function bA(){let[a,n]=Es.useState(()=>xv(window.location.hash));Es.useEffect(()=>{let c=()=>{n(xv(window.location.hash))};return window.addEventListener("hashchange",c),()=>{window.removeEventListener("hashchange",c)}},[]);let s=Es.useCallback((c,f)=>{window.location.hash=`/${c}?range=${f}`},[]),l=Es.useCallback((c)=>{s(c,a.range)},[a.range,s]),r=Es.useCallback((c)=>{let f=yA.includes(c)?c:"24h";s(a.section,f)},[a.section,s]);return Es.useEffect(()=>{let c=window.location.hash,f=xv(c),h=`#/${f.section}?range=${f.range}`;if(c!==h)window.location.hash=`/${f.section}?range=${f.range}`},[]),{section:a.section,setSection:l,range:a.range,setRange:r}}var xA=["January","February","March","April","May","June","July","August","September","October","November","December"],vA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],WB=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Hi(a,n=2){return String(a).padStart(n,"0")}function ZB(a,n){let s=a.getMonth(),l=a.getDay(),r=a.getHours(),c=r%12||12;switch(n){case"yyyy":return Hi(a.getFullYear(),4);case"yy":return Hi(a.getFullYear()%100);case"MMMM":return xA[s];case"MMM":return xA[s].slice(0,3);case"MM":return Hi(s+1);case"M":return String(s+1);case"dd":return Hi(a.getDate());case"d":return String(a.getDate());case"EEEE":return vA[l];case"EEE":return vA[l].slice(0,3);case"HH":return Hi(r);case"H":return String(r);case"hh":return Hi(c);case"h":return String(c);case"mm":return Hi(a.getMinutes());case"m":return String(a.getMinutes());case"ss":return Hi(a.getSeconds());case"s":return String(a.getSeconds());case"a":return r<12?"AM":"PM"}}function LA(a){let n=a instanceof Date?new Date(a.getTime()):new Date(a);if(Number.isNaN(n.getTime()))throw RangeError("Invalid time value");return n}function pn(a,n){let s=LA(a),l="";for(let r=0;r<n.length;){if(n[r]==="'"){if(n[r+1]==="'"){l+="'",r+=2;continue}r++;while(r<n.length){if(n[r]!=="'"){l+=n[r++];continue}if(n[r+1]==="'"){l+="'",r+=2;continue}r++;break}continue}let c=n.slice(r),f=WB.find((p)=>c.startsWith(p));if(f){l+=ZB(s,f),r+=f.length;continue}let h=n[r++];if(/[A-Za-z]/.test(h))throw RangeError(`Format string contains an unescaped latin alphabet character \`${h}\``);l+=h}return l}function Fi(a,n){return`${a} ${a===1?n:`${n}s`}`}function QB(a,n){let s=(n.getFullYear()-a.getFullYear())*12+n.getMonth()-a.getMonth();if(s===0)return 0;let l=new Date(a);l.setDate(1),l.setFullYear(a.getFullYear(),a.getMonth()+s,1);let r=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();if(l.setDate(Math.min(a.getDate(),r)),l.getTime()>n.getTime())s--;return s}function SA(a,n){let s=(n.getTime()-a.getTime())/1000,l=(n.getTimezoneOffset()-a.getTimezoneOffset())*60,r=Math.round((s-l)/60);if(r<2)return r===0?"less than a minute":"1 minute";if(r<45)return Fi(r,"minute");if(r<90)return"about 1 hour";if(r<1440)return`about ${Fi(Math.round(r/60),"hour")}`;if(r<2520)return"1 day";if(r<43200)return Fi(Math.round(r/1440),"day");if(r<86400)return`about ${Fi(Math.round(r/43200),"month")}`;let c=QB(a,n);if(c<12)return Fi(Math.round(r/43200),"month");let f=Math.trunc(c/12),h=c%12;if(h<3)return`about ${Fi(f,"year")}`;if(h<9)return`over ${Fi(f,"year")}`;return`almost ${Fi(f+1,"year")}`}function CA(a,n={}){let s=LA(a),l=new Date(Date.now()),r=s.getTime()>l.getTime(),c=r?SA(l,s):SA(s,l);if(!n.addSuffix)return c;return r?`in ${c}`:`${c} ago`}var la=X(vt(),1);var vv=X(TA(),1),Ao=X(vt(),1);var IA="label";function wA(a,n){if(typeof a==="function")a(n);else if(a)a.current=n}function JB(a,n){let s=a.options;if(s&&n)Object.assign(s,n)}function MA(a,n){a.labels=n}function AA(a,n,s=IA){let l=[];a.datasets=n.map((r)=>{let c=a.datasets.find((f)=>f[s]===r[s]);if(!c||!r.data||l.includes(c))return{...r};return l.push(c),Object.assign(c,r),c})}function eN(a,n=IA){let s={labels:[],datasets:[]};return MA(s,a.labels),AA(s,a.datasets,n),s}function tN(a,n){let{height:s=150,width:l=300,redraw:r=!1,datasetIdKey:c,type:f,data:h,options:p,plugins:g=[],fallbackContent:x,updateMode:y,...S}=a,T=Ao.useRef(null),M=Ao.useRef(null),k=()=>{if(!T.current)return;M.current=new Gl(T.current,{type:f,data:eN(h,c),options:p&&{...p},plugins:g}),wA(n,M.current)},w=()=>{if(wA(n,null),M.current)M.current.destroy(),M.current=null};return Ao.useEffect(()=>{if(!r&&M.current&&p)JB(M.current,p)},[r,p]),Ao.useEffect(()=>{if(!r&&M.current)MA(M.current.config.data,h.labels)},[r,h.labels]),Ao.useEffect(()=>{if(!r&&M.current&&h.datasets)AA(M.current.config.data,h.datasets,c)},[r,h.datasets]),Ao.useEffect(()=>{if(!M.current)return;if(r)w(),setTimeout(k);else M.current.update(y)},[r,p,h.labels,h.datasets,y]),Ao.useEffect(()=>{if(!M.current)return;w(),setTimeout(k)},[f]),Ao.useEffect(()=>(k(),()=>w()),[]),vv.jsx("canvas",{ref:T,role:"img",height:s,width:l,...S,children:x})}var aN=Ao.forwardRef(tN);function kA(a,n){return Gl.register(n),Ao.forwardRef((s,l)=>vv.jsx(aN,{...s,ref:l,type:a}))}var Oa=kA("line",ev),qi=kA("bar",Jx);var dt=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"];function RA(a){let n=[...a].sort((s,l)=>l.totalRequests-s.totalRequests||`${s.model}::${s.provider}`.localeCompare(`${l.model}::${l.provider}`));return new Map(n.map((s,l)=>[`${s.model}::${s.provider}`,dt[l%dt.length]]))}var Xt={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function Wn(a){let{chartTheme:n,showLegend:s,defaultLabel:l,formatValue:r,footer:c}=a;return{legend:{display:s,position:"top",align:"start",labels:{color:n.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:n.tooltipBackground,titleColor:n.tooltipTitle,bodyColor:n.tooltipBody,borderColor:n.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(f)=>{let h=f.dataset.label??l,p=f.parsed.y??0;return`${h}: ${r(p)}`},...c?{footer:c}:{}}}}}function Zn(a){let{chartTheme:n,formatY:s}=a,l={grid:{color:n.grid,drawBorder:!1},ticks:{color:n.tick,font:{size:11}}},r={...l,ticks:{...l.ticks,callback:(c)=>s(Number(c))},min:0};return{sharedScaleBase:l,yScale:r}}function Su(a){return{borderColor:a,backgroundColor:`${a}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Kl(a){return{backgroundColor:a,borderColor:a,borderWidth:0,borderRadius:4,maxBarThickness:56}}function Vi(a,n){return a.datasets.map((s,l)=>({label:s.label,data:s.data,...n(l)}))}function om(a,n,s){if(a.length===0)return{labels:[],datasets:[]};let{initBucket:l,accumulate:r,bucketToValue:c}=s,f=new Map;for(let p of a){let g=f.get(p.timestamp)??l();r(g,p),f.set(p.timestamp,g)}let h=[...f.entries()].sort((p,g)=>p[0]-g[0]);return{labels:h.map(([p])=>pn(new Date(p),"MMM d")),datasets:[{label:n,data:h.map(([,p])=>c(p))}]}}function Lu(a,n){if(a.length===0)return{labels:[],datasets:[]};let{topN:s=5,rankWeight:l,initBucket:r,accumulate:c,bucketToValue:f}=n,h=new Map;for(let _ of a){let U=`${_.model}::${_.provider}`,q=h.get(U);if(q)q.weight+=l(_);else h.set(U,{model:_.model,provider:_.provider,weight:l(_)})}let g=[...h.entries()].sort((_,U)=>U[1].weight-_[1].weight).slice(0,s),x=new Set(g.map(([_])=>_)),y=new Map;for(let[,{model:_}]of g)y.set(_,(y.get(_)??0)+1);let S=new Map;for(let[_,{model:U,provider:q}]of g)S.set(_,(y.get(U)??0)>1?`${U} (${q})`:U);let T=[...new Set(a.map((_)=>_.timestamp))].sort((_,U)=>_-U),M=g.map(([_])=>S.get(_)??_);if(a.some((_)=>!x.has(`${_.model}::${_.provider}`)))M.push("Other");let w=new Map;for(let _ of T)w.set(_,{});for(let _ of a){let U=`${_.model}::${_.provider}`,q=x.has(U)?S.get(U)??_.model:"Other",W=w.get(_.timestamp);if(!W)continue;let Q=W[q]??r();c(Q,_),W[q]=Q}return{labels:T.map((_)=>pn(new Date(_),"MMM d")),datasets:M.map((_)=>({label:_,data:T.map((U)=>{let q=w.get(U)?.[_];return q?f(q):0})}))}}var Pt=X(ce(),1);function Os(a){return{borderColor:a,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function nm({timestamps:a,values:n,color:s}){let l={labels:a.map((c)=>pn(new Date(c),"MMM d")),datasets:[{data:n,...Os(s)}]};return Pt.jsxDEV(Oa,{data:l,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function sm(a){return{legend:{display:!0,position:"top",labels:{color:a.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:a.tooltipBackground,titleColor:a.tooltipTitle,bodyColor:a.tooltipBody,borderColor:a.tooltipBorder,borderWidth:1,cornerRadius:8}}}function _A(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}},min:0}}}function DA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:a.tick,font:{size:11}}}}}function im({title:a,subtitle:n,children:s}){return Pt.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[Pt.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[Pt.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),n?Pt.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:n},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),Pt.jsxDEV("div",{className:"overflow-x-auto",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oN(a){if(a==="right")return"text-right";if(a==="center")return"text-center";return""}function lm({columns:a,gridTemplate:n}){return Pt.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:n},children:[a.map((s)=>Pt.jsxDEV("div",{className:oN(s.align),children:s.label},s.label,!1,void 0,this)),Pt.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rm({children:a}){return Pt.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:a},void 0,!1,void 0,this)}function um({model:a,provider:n}){return Pt.jsxDEV("div",{children:[Pt.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),Pt.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function cm({gridTemplate:a,cells:n,trendCell:s,isExpanded:l,onToggle:r,expandedContent:c}){return Pt.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[Pt.jsxDEV("button",{type:"button",onClick:r,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:Pt.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:a},children:[n,Pt.jsxDEV("div",{className:"h-10",children:s},void 0,!1,void 0,this),Pt.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:l?Pt.jsxDEV(Rd,{size:16},void 0,!1,void 0,this):Pt.jsxDEV(kd,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l?Pt.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:c},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function dm(){return Pt.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function fm({message:a="No data available"}){return Pt.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:a},void 0,!1,void 0,this)}function _e(a){return a.toLocaleString()}function rt(a){return a.toLocaleString(void 0,{notation:"compact"})}function Kd(a,n){if(a===0)return"$0";let s=n!==void 0?n:a>0&&a<0.01?4:2;return`$${a.toLocaleString(void 0,{minimumFractionDigits:s,maximumFractionDigits:s})}`}function ga(a,n,s){return a===0&&n>0?"N/A":Kd(a,s)}function Qo(a,n){let s=a.provider==="xai-oauth"&&a.usage.totalTokens>0&&a.usage.cost.total===0?1:0;return ga(a.usage.cost.total,s,n)}function kt(a,n=1){return`${(a*100).toFixed(n)}%`}function Pa(a,n){if(a===null)return"-";let s=a/1000,l=n!==void 0?n:s<1?2:1;return`${s.toFixed(l)}s`}function hm(a){if(a===null)return"-";return a.toFixed(1)}function so(a){return CA(new Date(a),{addSuffix:!0})}function Sv(a){if(a>=1e9)return`${(a/1e9).toFixed(1)} GB`;if(a>=1e6)return`${(a/1e6).toFixed(1)} MB`;if(a>=1000)return`${(a/1000).toFixed(1)} KB`;return`${a} B`}var wa=X(vt(),1),ji=new Map,nN=64;function $t(a,n,s){let l=JSON.stringify(a),[r,c]=wa.useState(()=>ji.get(l)?.data??null),[f,h]=wa.useState(null),[p,g]=wa.useState(()=>!ji.has(l)),[x,y]=wa.useState(!1),[S,T]=wa.useState(()=>ji.get(l)?.updatedAt??null),M=wa.useRef(n);M.current=n;let k=wa.useRef(l);k.current=l;let w=s?.enabled??!0,_=s?.pollMs,U=wa.useRef(null),q=wa.useRef(!1);q.current=r!==null;let W=wa.useCallback(async(ne)=>{if(U.current)U.current.abort();let J=new AbortController;if(U.current=J,ne)y(!0);else g(!0),c(null);h(null);try{let K=await M.current(J.signal);if(J.signal.aborted)return;if(ji.set(k.current,{data:K,updatedAt:Date.now()}),ji.size>nN){let re=ji.keys().next().value;if(re!==void 0)ji.delete(re)}c(K),T(Date.now()),h(null)}catch(K){if(J.signal.aborted)return;h(K instanceof Error?K:Error(String(K)))}finally{if(!J.signal.aborted){if(g(!1),y(!1),U.current===J)U.current=null}}},[]);wa.useEffect(()=>{if(!w){g(!1),y(!1);return}let ne=ji.get(l);if(ne)c(ne.data),T(ne.updatedAt),g(!1),W(!0);else W(q.current);return()=>{if(U.current)U.current.abort(),U.current=null}},[l,w,W]),wa.useEffect(()=>{if(!w||!_)return;let ne=setInterval(()=>{if(document.hidden)return;W(!0)},_);return()=>{clearInterval(ne)}},[w,_,W]);let Q=wa.useCallback(async()=>{await W(!0)},[W]);return{data:r,error:f,loading:p,refreshing:x,refetch:Q,updatedAt:S}}var EA=3600000,pm=24*EA,sN=300000,OA={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:sN,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:EA,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:pm,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:pm,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:pm,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:pm,bucketCount:0,tickFormat:"MMM d"}};function Jl(a){return OA[a]}function Jd(a,n){return pn(new Date(a),OA[n].tickFormat)}var iN=["main","subagent","advisor"];function mm(a){return a.totalInputTokens+a.totalOutputTokens+a.totalCacheReadTokens+a.totalCacheWriteTokens}function PA(a){let n=new Map;for(let f of a)n.set(f.agentType,f);let s=iN.map((f)=>n.get(f)).filter((f)=>f!==void 0),l=s.reduce((f,h)=>f+mm(h),0),r=s.reduce((f,h)=>f+h.totalCost,0),c=s.map((f)=>{let h=mm(f);return{agentType:f.agentType,tokens:h,requests:f.totalRequests,cost:f.totalCost,share:l>0?h/l:0}});return{totalTokens:l,totalCost:r,segments:c}}function BA(a){let n=a.reduce((p,g)=>p+g.cost,0),s=a.reduce((p,g)=>p+g.unpricedRequests,0),l=new Set(a.map((p)=>p.timestamp)).size,r=l>0?n/l:0,c=new Map;for(let p of a)c.set(p.model,(c.get(p.model)??0)+p.cost);let f="",h=0;for(let[p,g]of c)if(g>h)f=p,h=g;return{totalCost:n,unpricedRequests:s,avgDailyCost:r,topModelName:f,topModelCost:h}}function NA(a,n){if(a.length===0)return new Map;let s=Jl(n),l=s.bucketMs,r=s.bucketCount,c=r>0?(()=>{let p=a.reduce((y,S)=>Math.max(y,S.timestamp),0),x=(p>0?p:Math.floor(Date.now()/l)*l)-(r-1)*l;return Array.from({length:r},(y,S)=>x+S*l)})():Array.from(new Set(a.map((p)=>p.timestamp))).sort((p,g)=>p-g),f=new Map(c.map((p,g)=>[p,g])),h=new Map;for(let p of a){let g=`${p.model}::${p.provider}`,x=h.get(g);if(!x)x={label:`${p.model} (${p.provider})`,data:c.map((S)=>({timestamp:S,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},h.set(g,x);let y=f.get(p.timestamp);if(y===void 0)continue;x.data[y]={timestamp:p.timestamp,avgTtftSeconds:p.avgTtft!==null?p.avgTtft/1000:null,avgTokensPerSecond:p.avgTokensPerSecond,requests:p.requests}}return h}function zA(a,n){let s=a.totalNegation+a.totalRepetition+a.totalBlame,l=new Map;for(let c of n){let f=`${c.model}::${c.provider}`,h=l.get(f),p=c.yelling+c.profanity+c.anguish+c.negation+c.repetition+c.blame;if(h)h.score+=p;else l.set(f,{model:c.model,provider:c.provider,score:p})}let r=null;for(let c of l.values())if(!r||c.score>r.score)r=c;return{totalMessages:a.totalMessages,totalYelling:a.totalYelling,totalProfanity:a.totalProfanity,totalAnguish:a.totalAnguish,totalFrustration:s,highestFrictionModel:r}}function UA(a){let n=[...a].sort((r,c)=>{if(c.totalCost!==r.totalCost)return c.totalCost-r.totalCost;return c.totalRequests-r.totalRequests}),s=n.reduce((r,c)=>Math.max(r,c.totalCost),0),l=n.reduce((r,c)=>Math.max(r,c.totalRequests),0);return n.map((r)=>({...r,costPercentage:s>0?r.totalCost/s*100:0,requestsPercentage:l>0?r.totalRequests/l*100:0}))}function HA(a){let n=a.reduce((s,l)=>Math.max(s,l.calls),0);return a.map((s)=>({...s,errorRate:s.calls>0?s.errors/s.calls:0,callsPercentage:n>0?s.calls/n*100:0}))}var gm=X(ce(),1);function Cu({message:a="No data available",icon:n=Nd,className:s=""}){return gm.jsxDEV("div",{className:`stats-empty-state ${s}`,children:[gm.jsxDEV(n,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),gm.jsxDEV("p",{className:"stats-empty-state-message",children:a},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Tu=X(ce(),1);function FA({error:a,onRetry:n,className:s=""}){return Tu.jsxDEV("div",{className:`stats-error-state ${s}`,children:Tu.jsxDEV("div",{className:"stats-error-state-content",children:[Tu.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),a&&Tu.jsxDEV("p",{className:"stats-error-state-message",children:a.message},void 0,!1,void 0,this),n&&Tu.jsxDEV("button",{type:"button",onClick:n,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var qA=X(ce(),1);function io({variant:a="text",width:n,height:s,className:l=""}){let r={width:n!==void 0?typeof n==="number"?`${n}px`:n:void 0,height:s!==void 0?typeof s==="number"?`${s}px`:s:void 0};return qA.jsxDEV("div",{className:`stats-skeleton ${l}`,"data-variant":a,style:r},void 0,!1,void 0,this)}var ko=X(ce(),1);function Bt({loading:a,error:n,data:s,empty:l=!1,emptyText:r="No data available",fallback:c,onRetry:f,children:h}){if(n&&s===null)return ko.jsxDEV(FA,{error:n,onRetry:f},void 0,!1,void 0,this);if(a&&s===null){if(c)return ko.jsxDEV(ko.Fragment,{children:c},void 0,!1,void 0,this);return ko.jsxDEV("div",{className:"stats-boundary-skeleton",children:[ko.jsxDEV(io,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ko.jsxDEV(io,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),ko.jsxDEV(io,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),ko.jsxDEV(io,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!a&&(l||s===null))return ko.jsxDEV(Cu,{message:r},void 0,!1,void 0,this);return ko.jsxDEV(ko.Fragment,{children:h},void 0,!1,void 0,this)}var lo=X(ce(),1);function ro({columns:a,data:n,keyExtractor:s,onRowClick:l,renderMobileCard:r,emptyText:c="No data available"}){let f=(h,p)=>{if(l&&(h.key==="Enter"||h.key===" "))h.preventDefault(),l(p)};if(n.length===0)return lo.jsxDEV("div",{className:"stats-table-empty",children:c},void 0,!1,void 0,this);return lo.jsxDEV("div",{className:"stats-table-wrapper",children:[r&&lo.jsxDEV("div",{className:"stats-table-mobile-only",children:lo.jsxDEV("div",{className:"stats-table-mobile-list",children:n.map((h)=>{let p=String(s(h));return lo.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:r(h,l?()=>l(h):void 0)},p,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),lo.jsxDEV("div",{className:r?"stats-table-desktop-only":"stats-table-container",children:lo.jsxDEV("table",{className:"stats-table",children:[lo.jsxDEV("thead",{children:lo.jsxDEV("tr",{children:a.map((h)=>{let p=["stats-table-th",h.numeric?"stats-text-right":"stats-text-left",h.className||""].filter(Boolean).join(" ");return lo.jsxDEV("th",{className:p,children:h.header},h.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),lo.jsxDEV("tbody",{children:n.map((h)=>{let p=String(s(h)),g=typeof l==="function",x=["stats-table-tr",g?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return lo.jsxDEV("tr",{className:x,onClick:g?()=>l(h):void 0,onKeyDown:g?(y)=>f(y,h):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:a.map((y)=>{let S=["stats-table-td",y.numeric?"stats-text-right":"stats-text-left",y.className||""].filter(Boolean).join(" ");return lo.jsxDEV("td",{className:S,children:y.render?y.render(h):h[y.key]},y.key,!1,void 0,this)})},p,!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 er=X(vt(),1),Ko=X(ce(),1);function Lv({data:a,title:n,initialCollapsed:s=!1}){let[l,r]=er.useState(s),[c,f]=er.useState(!1),h=er.useRef(0),p=JSON.stringify(a,null,2);return er.useEffect(()=>()=>window.clearTimeout(h.current),[]),Ko.jsxDEV("div",{className:"stats-json-block",children:[Ko.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>r(!l),onKeyDown:(y)=>{if(y.key==="Enter"||y.key===" ")y.preventDefault(),r(!l)},tabIndex:0,role:"button","aria-expanded":!l,children:[Ko.jsxDEV("span",{className:"stats-json-block-title",children:n||"JSON"},void 0,!1,void 0,this),Ko.jsxDEV("div",{className:"stats-json-actions",children:[Ko.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(y)=>{y.stopPropagation();try{await navigator.clipboard.writeText(p),f(!0),window.clearTimeout(h.current),h.current=window.setTimeout(()=>f(!1),1500)}catch{}},"aria-label":c?"Copied to clipboard":"Copy JSON to clipboard",children:[c?Ko.jsxDEV(Ad,{size:13},void 0,!1,void 0,this):Ko.jsxDEV(Dd,{size:13},void 0,!1,void 0,this),c?"Copied":"Copy"]},void 0,!0,void 0,this),Ko.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":l,children:l?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!l&&Ko.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:Ko.jsxDEV("pre",{className:"stats-json-block-content",children:Ko.jsxDEV("code",{children:p},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 Ne=X(ce(),1);function VA({stats:a}){let n=mm(a);return Ne.jsxDEV("div",{className:"stats-metric-cluster",children:[Ne.jsxDEV("div",{className:"stats-metric-primary-grid",children:[Ne.jsxDEV("div",{className:"stats-metric-card primary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:ga(a.totalCost,a.unpricedRequests,a.totalCost>0&&a.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card primary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:_e(a.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt-input cost saved versus billing the same tokens uncached; cache writes can make this negative",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Cache Savings"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:kt(a.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt input served from cache: cache reads / (uncached input + cache reads)",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:kt(a.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card primary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:kt(a.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[Ne.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:rt(a.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:rt(a.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:rt(a.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:rt(n)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:_e(a.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:hm(a.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:Pa(a.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-card secondary",children:[Ne.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:Pa(a.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Gi=X(ce(),1);function lt({title:a,subtitle:n,actions:s,children:l,className:r="",...c}){return Gi.jsxDEV("div",{className:`stats-panel ${r}`,...c,children:[(a||n||s)&&Gi.jsxDEV("div",{className:"stats-panel-header",children:[Gi.jsxDEV("div",{className:"stats-panel-header-titles",children:[a&&Gi.jsxDEV("h3",{className:"stats-panel-title",children:a},void 0,!1,void 0,this),n&&Gi.jsxDEV("p",{className:"stats-panel-subtitle",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&Gi.jsxDEV("div",{className:"stats-panel-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Gi.jsxDEV("div",{className:"stats-panel-body",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qn=X(vt(),1);var jA=X(ce(),1);function Ia({variant:a,children:n,className:s=""}){return jA.jsxDEV("span",{className:`stats-status-pill ${s}`,"data-variant":a,children:n},void 0,!1,void 0,this)}var ye=X(ce(),1);function GA({id:a,onClose:n}){let[s,l]=Qn.useState(null),[r,c]=Qn.useState(!1),[f,h]=Qn.useState(null),p=Qn.useRef(null),g=Qn.useRef(null);if(Qn.useEffect(()=>{if(a===null){l(null);return}p.current=document.activeElement,c(!0),h(null),l(null);let y=new AbortController;return JM(a,y.signal).then((S)=>{if(y.signal.aborted)return;l(S),setTimeout(()=>g.current?.focus(),50)}).catch((S)=>{if(y.signal.aborted)return;h(S instanceof Error?S:Error(String(S)))}).finally(()=>{if(!y.signal.aborted)c(!1)}),()=>y.abort()},[a]),Qn.useEffect(()=>{if(a===null)return;let y=(S)=>{if(S.key==="Escape")n()};return window.addEventListener("keydown",y),()=>{if(window.removeEventListener("keydown",y),p.current)p.current.focus()}},[a,n]),a===null)return null;return ye.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(y)=>{if(y.target===y.currentTarget)n()},role:"presentation",children:ye.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[ye.jsxDEV("div",{className:"stats-drawer-header",children:[ye.jsxDEV("div",{className:"stats-drawer-header-left",children:[ye.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),s&&ye.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",a]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("button",{ref:g,type:"button",onClick:n,className:"stats-drawer-close-btn","aria-label":"Close request details",children:ye.jsxDEV($l,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-body",children:[r&&ye.jsxDEV("div",{className:"stats-drawer-loading",children:[ye.jsxDEV(io,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(io,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(io,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(io,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&ye.jsxDEV("div",{className:"stats-drawer-error",children:[ye.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),ye.jsxDEV("p",{className:"stats-drawer-error-message",children:f.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&ye.jsxDEV("div",{className:"stats-drawer-content",children:[ye.jsxDEV("div",{className:"stats-drawer-status-card",children:[ye.jsxDEV("div",{className:"stats-drawer-status-row",children:[ye.jsxDEV("div",{children:[ye.jsxDEV("div",{className:"stats-drawer-model",children:s.model},void 0,!1,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-provider",children:s.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV(Ia,{variant:s.errorMessage?"danger":"success",children:s.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.errorMessage&&ye.jsxDEV("div",{className:"stats-drawer-error-block",children:[ye.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-error-text",children:s.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV(Xl,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"API-equivalent estimate"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:Qo(s,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV(jd,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:_e(s.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV(Bd,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:_e(s.usage.totalTokens)},void 0,!1,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[_e(s.usage.input)," in · ",_e(s.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV(_d,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:Pa(s.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV($d,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:Pa(s.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.duration&&s.usage.output>0&&ye.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ye.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ye.jsxDEV(Pd,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:(s.usage.output*1000/s.duration).toFixed(1)},void 0,!1,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[ye.jsxDEV(Lv,{data:s.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),ye.jsxDEV(Lv,{data:s,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Cv=X(ce(),1);function tr({options:a,value:n,onChange:s,className:l=""}){return Cv.jsxDEV("div",{className:`stats-segmented-control ${l}`,role:"radiogroup",children:a.map((r)=>{let c=r.value===n;return Cv.jsxDEV("button",{type:"button",role:"radio","aria-checked":c,"data-active":c?"true":"false",className:"stats-segmented-control-btn",title:r.title,onClick:()=>s(r.value),children:r.label},String(r.value),!1,void 0,this)})},void 0,!1,void 0,this)}var be=X(ce(),1);function QA({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["behavior",n,s],(f)=>tA(n,f),{pollMs:30000,enabled:a});return be.jsxDEV("div",{className:"stats-route-container space-y-6",children:be.jsxDEV(Bt,{loading:c,error:r,data:l,children:l&&be.jsxDEV(be.Fragment,{children:[be.jsxDEV(lN,{overall:l.overall,behaviorSeries:l.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(rN,{behaviorSeries:l.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(uN,{models:l.byModel,behaviorSeries:l.behaviorSeries},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 ym(a,n){if(n<=0)return;return`${(a/n).toFixed(2)} / msg`}function lN({overall:a,behaviorSeries:n}){let s=la.useMemo(()=>zA(a,n),[a,n]),l=a.totalMessages,r=[{label:"User Messages",value:_e(a.totalMessages),sub:l>0?"in range":void 0},{label:"Yelling (CAPS)",value:_e(a.totalYelling),sub:ym(a.totalYelling,l)},{label:"Profanity Hits",value:_e(a.totalProfanity),sub:ym(a.totalProfanity,l)},{label:"Anguish Signals",value:_e(a.totalAnguish),sub:ym(a.totalAnguish,l)},{label:"Friction Signals",value:_e(s.totalFrustration),sub:ym(s.totalFrustration,l)},{label:"Highest Friction Model",value:s.highestFrictionModel?.model??"—",sub:s.highestFrictionModel?`${_e(s.highestFrictionModel.score)} hits`:void 0}];return be.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:r.map((c)=>be.jsxDEV(lt,{className:"stats-behavior-summary-card py-3 px-4",children:[be.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:c.label},void 0,!1,void 0,this),be.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:c.value,children:c.value},void 0,!1,void 0,this),c.sub&&be.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:c.sub},void 0,!1,void 0,this)]},c.label,!0,void 0,this))},void 0,!1,void 0,this)}var Tv=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function YA(a){if(!Number.isFinite(a))return"-";if(a===0)return"0%";if(Math.abs(a)<1)return`${a.toFixed(1)}%`;return`${a.toFixed(0)}%`}function XA(a,n){if(n==="frustration")return a.negation+a.repetition+a.blame;if(n==="total")return a.yelling+a.profanity+a.anguish+a.negation+a.repetition+a.blame;return a[n]}function $A(a,n){if(n<=0)return 0;return a/n*100}function rN({behaviorSeries:a}){let[n,s]=la.useState(!1),[l,r]=la.useState("total"),c=ma(),f=Xt[c],h=la.useMemo(()=>{if(n)return Lu(a,{rankWeight:(U)=>U.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(U,q)=>{U.hits+=XA(q,l),U.messages+=q.messages},bucketToValue:(U)=>$A(U.hits,U.messages)});let _=Tv.find((U)=>U.value===l)?.title??"Hits";return om(a,_,{initBucket:()=>({hits:0,messages:0}),accumulate:(U,q)=>{U.hits+=XA(q,l),U.messages+=q.messages},bucketToValue:(U)=>$A(U.hits,U.messages)})},[a,n,l]),p=la.useMemo(()=>Wn({chartTheme:f,showLegend:n,defaultLabel:"Hits",formatValue:YA}),[f,n]),{sharedScaleBase:g,yScale:x}=la.useMemo(()=>Zn({chartTheme:f,formatY:YA}),[f]),y=la.useMemo(()=>Tv.find((_)=>_.value===l)?.title??"",[l]),S=la.useMemo(()=>{if(!n)return null;return{labels:h.labels,datasets:Vi(h,(_)=>Su(dt[_%dt.length]))}},[h,n]),T=la.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:g,y:x}}),[p,g,x]),M=la.useMemo(()=>{if(n)return null;return{labels:h.labels,datasets:Vi(h,(_)=>Kl(dt[_%dt.length]))}},[h,n]),k=la.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:{...g,stacked:!0},y:{...x,stacked:!0}},layout:{padding:{top:8}}}),[p,g,x]),w=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return be.jsxDEV(lt,{title:"User Friction Signals",subtitle:`${y} as % of user messages per day`,actions:be.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[be.jsxDEV(tr,{options:Tv.map((_)=>({value:_.value,label:_.label,title:_.title})),value:l,onChange:r},void 0,!1,void 0,this),be.jsxDEV(tr,{options:w,value:n,onChange:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV("div",{className:"h-[300px]",children:h.labels.length===0?be.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):n&&S?be.jsxDEV(Oa,{data:S,options:T},void 0,!1,void 0,this):M?be.jsxDEV(qi,{data:M,options:k},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var WA="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function ZA(a){if(a.totalMessages===0)return 0;return(a.totalYelling+a.totalProfanity+a.totalAnguish+a.totalNegation+a.totalRepetition+a.totalBlame)/a.totalMessages}function wu(a,n){if(n===0)return"-";let s=a/n*100;if(s===0)return"0%";if(s<1)return`${s.toFixed(1)}%`;return`${s.toFixed(0)}%`}function uN({models:a,behaviorSeries:n}){let[s,l]=la.useState(null),r=ma(),c=Xt[r],f=la.useMemo(()=>dN(n),[n]),h=la.useMemo(()=>[...a].sort((p,g)=>{if(g.totalMessages!==p.totalMessages)return g.totalMessages-p.totalMessages;return ZA(g)-ZA(p)}),[a]);return be.jsxDEV(im,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[be.jsxDEV(lm,{gridTemplate:WA,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),be.jsxDEV(rm,{children:[h.map((p,g)=>{let x=`${p.model}::${p.provider}`,y=f.get(x)?.data??[],S=dt[g%dt.length],T=s===x,M=p.totalNegation+p.totalRepetition+p.totalBlame,k=p.totalYelling+p.totalProfanity+p.totalAnguish+M;return be.jsxDEV(cm,{gridTemplate:WA,isExpanded:T,onToggle:()=>l(T?null:x),cells:[be.jsxDEV(um,{model:p.model,provider:p.provider},"name",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_e(p.totalMessages)},"messages",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:wu(p.totalYelling,p.totalMessages)},"caps",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:wu(p.totalProfanity,p.totalMessages)},"profanity",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:wu(p.totalAnguish,p.totalMessages)},"anguish",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:wu(M,p.totalMessages)},"frustration",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:wu(k,p.totalMessages)},"hits",!1,void 0,this)],trendCell:y.length===0?be.jsxDEV(dm,{},void 0,!1,void 0,this):be.jsxDEV(nm,{timestamps:y.map((w)=>w.timestamp),values:y.map((w)=>w.total),color:S},void 0,!1,void 0,this),expandedContent:be.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[be.jsxDEV("div",{className:"space-y-4 text-sm",children:[be.jsxDEV(ar,{label:"Yelling (CAPS)",total:p.totalYelling,messages:p.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Profanity",total:p.totalProfanity,messages:p.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Anguish (!!!, nooo, dude, ..)",total:p.totalAnguish,messages:p.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Negation (no/nope/wrong)",total:p.totalNegation,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Repetition (i meant, still doesnt)",total:p.totalRepetition,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Blame (you didnt, stop X-ing)",total:p.totalBlame,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(ar,{label:"Avg chars / msg",total:p.totalChars,messages:p.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"h-[200px]",children:y.length===0?be.jsxDEV(fm,{},void 0,!1,void 0,this):be.jsxDEV(cN,{data:y,chartTheme:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},x,!1,void 0,this)}),h.length===0?be.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ar({label:a,total:n,messages:s,valueClass:l,mode:r="rate"}){let c=r==="rate"?"% of msgs":"Per msg",f=la.useMemo(()=>{if(s===0)return"-";return r==="rate"?wu(n,s):(n/s).toFixed(0)},[n,s,r]);return be.jsxDEV("div",{children:[be.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:a},void 0,!1,void 0,this),be.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[be.jsxDEV("div",{className:"flex items-center justify-between",children:[be.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),be.jsxDEV("span",{className:`font-mono text-xs ${l}`,children:_e(n)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"flex items-center justify-between",children:[be.jsxDEV("span",{className:"stats-text-muted text-xs",children:c},void 0,!1,void 0,this),be.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var bm={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function cN({data:a,chartTheme:n}){let s=la.useMemo(()=>({labels:a.map((r)=>pn(new Date(r.timestamp),"MMM d")),datasets:[{label:"CAPS",data:a.map((r)=>r.yelling),...Os(bm.yelling)},{label:"Profanity",data:a.map((r)=>r.profanity),...Os(bm.profanity)},{label:"Anguish",data:a.map((r)=>r.anguish),...Os(bm.anguish)},{label:"Frustration",data:a.map((r)=>r.frustration),...Os(bm.frustration)}]}),[a]),l=la.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:sm(n),scales:_A(n)}),[n]);return be.jsxDEV(Oa,{data:s,options:l},void 0,!1,void 0,this)}function dN(a){if(a.length===0)return new Map;let n=[...new Set(a.map((r)=>r.timestamp))].sort((r,c)=>r-c),s=new Map;for(let r of a){let c=`${r.model}::${r.provider}`,f=s.get(c);if(!f)f=new Map,s.set(c,f);let h=f.get(r.timestamp)??{timestamp:r.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};h.yelling+=r.yelling,h.profanity+=r.profanity,h.anguish+=r.anguish,h.frustration+=r.negation+r.repetition+r.blame,h.total=h.yelling+h.profanity+h.anguish+h.frustration,f.set(r.timestamp,h)}let l=new Map;for(let[r,c]of s){let f=n.map((h)=>c.get(h)??{timestamp:h,yelling:0,profanity:0,anguish:0,frustration:0,total:0});l.set(r,{data:f})}return l}var Ro=X(vt(),1);var ra=X(ce(),1);function KA({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["costs",n,s],(f)=>QM(n,f),{pollMs:30000,enabled:a});return ra.jsxDEV("div",{className:"stats-route-container space-y-6",children:ra.jsxDEV(Bt,{loading:c,error:r,data:l,children:l&&ra.jsxDEV(ra.Fragment,{children:[ra.jsxDEV(fN,{costSeries:l.costSeries},void 0,!1,void 0,this),ra.jsxDEV(mN,{costSeries:l.costSeries},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 fN({costSeries:a}){let n=Ro.useMemo(()=>BA(a),[a]),s=[{label:"API-equivalent estimate",value:ga(n.totalCost,n.unpricedRequests),sub:n.unpricedRequests>0?`Excludes ${n.unpricedRequests.toLocaleString()} unpriced subscription request${n.unpricedRequests===1?"":"s"}`:void 0},{label:"Average estimate / Day",value:ga(n.avgDailyCost,n.unpricedRequests)},{label:"Top Model",value:n.topModelName||"—",sub:n.topModelName?`API-equivalent estimate: ${Kd(n.topModelCost)}`:void 0}];return ra.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:s.map((l)=>ra.jsxDEV(lt,{className:"stats-cost-overview-card py-4 px-5",children:[ra.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:l.label},void 0,!1,void 0,this),ra.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:l.value,children:l.value},void 0,!1,void 0,this),l.sub&&ra.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:l.sub},void 0,!1,void 0,this)]},l.label,!0,void 0,this))},void 0,!1,void 0,this)}var hN={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function pN(a){return{id:"costBarLabels",afterDatasetsDraw(n){let{ctx:s}=n;if(!n.data.datasets[0])return;let r=n.getDatasetMeta(0);s.save(),s.font="11px system-ui, sans-serif",s.fillStyle=a,s.textAlign="center",s.textBaseline="bottom";for(let c of r.data){let f=c.$context.parsed.y;if(!f)continue;let h=`$${Math.round(f)}`,{x:p,y:g}=c.getProps(["x","y"],!0);s.fillText(h,p,g-3)}s.restore()}}}function mN({costSeries:a}){let[n,s]=Ro.useState(!1),l=ma(),r=Xt[l],c=Ro.useMemo(()=>a.reduce((w,_)=>w+_.unpricedRequests,0),[a]),f=Ro.useMemo(()=>{if(n)return Lu(a,{rankWeight:(w)=>w.cost,initBucket:()=>({total:0}),accumulate:(w,_)=>{w.total+=_.cost},bucketToValue:(w)=>w.total});return om(a,"API-equivalent estimate",{initBucket:()=>({total:0}),accumulate:(w,_)=>{w.total+=_.cost},bucketToValue:(w)=>w.total})},[a,n]),h=Ro.useMemo(()=>Wn({chartTheme:r,showLegend:n,defaultLabel:"API-equivalent estimate",formatValue:(w)=>`$${w.toFixed(2)}`,footer:(w)=>{if(!n||w.length<2)return;return`Total: $${w.reduce((U,q)=>U+(q.parsed.y??0),0).toFixed(2)}`}}),[r,n]),{sharedScaleBase:p,yScale:g}=Ro.useMemo(()=>Zn({chartTheme:r,formatY:(w)=>`$${Math.round(w)}`}),[r]),x=Ro.useMemo(()=>pN(hN[l]),[l]),y=Ro.useMemo(()=>{if(!n)return null;return{labels:f.labels,datasets:Vi(f,(w)=>Su(dt[w%dt.length]))}},[f,n]),S=Ro.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:h,scales:{x:p,y:g}}),[h,p,g]),T=Ro.useMemo(()=>{if(n)return null;return{labels:f.labels,datasets:Vi(f,(w)=>Kl(dt[w%dt.length]))}},[f,n]),M=Ro.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...h,costBarLabels:{}},scales:{x:{...p,stacked:!0},y:{...g,stacked:!0}},layout:{padding:{top:24}}}),[h,p,g]),k=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return ra.jsxDEV(lt,{title:"Daily API-equivalent estimate",subtitle:c>0?`Public API rate-card value over time; excludes ${c.toLocaleString()} unpriced subscription request${c===1?"":"s"}`:"Public API rate-card value over time",actions:ra.jsxDEV(tr,{options:k,value:n,onChange:s},void 0,!1,void 0,this),children:ra.jsxDEV("div",{className:"h-[300px]",children:f.labels.length===0?ra.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No API-equivalent estimate data available"},void 0,!1,void 0,this):n&&y?ra.jsxDEV(Oa,{data:y,options:S},void 0,!1,void 0,this):T?ra.jsxDEV(qi,{data:T,options:M,plugins:[x]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JA=X(vt(),1);var Rt=X(ce(),1);function ek({active:a,range:n,refreshTrigger:s,onRequestClick:l}){let{data:r,error:c,loading:f}=$t(["recent-errors-dense",n,s],(g)=>KM(n,50,g),{pollMs:30000,enabled:a}),h=JA.useMemo(()=>[{key:"model",header:"Model",render:(g)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:g.model},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(g)=>so(g.timestamp)},{key:"errorMessage",header:"Error Message",render:(g)=>Rt.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:g.errorMessage||"",children:g.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(g)=>_e(g.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(g)=>Qo(g,4)}],[]);return Rt.jsxDEV("div",{className:"stats-route-container",children:Rt.jsxDEV(lt,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:Rt.jsxDEV(Bt,{loading:f,error:c,data:r,emptyText:"No recent failures in the local stats database",children:Rt.jsxDEV(ro,{columns:h,data:r||[],keyExtractor:(g)=>g.id||`${g.sessionFile}-${g.entryId}`,onRowClick:(g)=>g.id&&l(g.id),renderMobileCard:(g,x)=>Rt.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:x,children:[Rt.jsxDEV("div",{className:"stats-mobile-card-header",children:[Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.model},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Rt.jsxDEV(Ia,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Rt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"stats-mobile-card-value",children:so(g.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"stats-mobile-card-value",children:Qo(g,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"stats-mobile-card-value",children:_e(g.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g.errorMessage&&Rt.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:g.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var xm=X(vt(),1);var Ie=X(ce(),1);function tk({active:a,range:n,refreshTrigger:s}){let[l,r]=xm.useState(null),{data:c,error:f,loading:h}=$t(["gain",n,s,l],(p)=>oA(n,l,p),{pollMs:30000,enabled:a});return Ie.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ie.jsxDEV(Bt,{loading:h,error:f,data:c,children:c&&Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(gN,{projects:c.projects,selected:l,onChange:r},void 0,!1,void 0,this),Ie.jsxDEV(yN,{overall:c.overall},void 0,!1,void 0,this),Ie.jsxDEV(xN,{bySource:c.bySource},void 0,!1,void 0,this),Ie.jsxDEV(SN,{timeSeries:c.timeSeries},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 gN({projects:a,selected:n,onChange:s}){if(a.length===0)return null;return Ie.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[Ie.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),Ie.jsxDEV("select",{className:"stats-select",value:n??"",onChange:(l)=>s(l.target.value||null),style:{maxWidth:"480px",flex:1},children:[Ie.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),a.map((l)=>Ie.jsxDEV("option",{value:l,children:l},l,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yN({overall:a}){return Ie.jsxDEV(lt,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:Ie.jsxDEV("div",{className:"stats-metric-primary-grid",children:[Ie.jsxDEV("div",{className:"stats-metric-card primary",children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",children:rt(a.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-card primary",children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",children:Sv(a.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-card primary",children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",children:a.reductionPercent!==null?kt(a.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-card primary",children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",children:_e(a.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bN({title:a,totals:n}){return Ie.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[Ie.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:a},void 0,!1,void 0,this),Ie.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:rt(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Sv(n.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:_e(n.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:n.reductionPercent!==null?kt(n.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xN({bySource:a}){return Ie.jsxDEV(lt,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:Ie.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:Ie.jsxDEV(bN,{title:"Snapcompact",totals:a.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var vN={snapcompact:"rgb(34, 197, 94)"};function SN({timeSeries:a}){let n=ma(),s=Xt[n],{data:l,options:r}=xm.useMemo(()=>{let c=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),h={labels:a.map((y)=>c.format(new Date(`${y.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:a.map((y)=>y.snapcompact),...Su(vN.snapcompact)}]},{sharedScaleBase:p,yScale:g}=Zn({chartTheme:s,formatY:(y)=>rt(y)}),x={responsive:!0,maintainAspectRatio:!1,plugins:Wn({chartTheme:s,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:rt}),scales:{x:{...p,stacked:!0},y:{...g,stacked:!0}}};return{data:h,options:x}},[a,s]);return Ie.jsxDEV(lt,{title:"Savings Over Time",subtitle:"Daily token savings",children:Ie.jsxDEV("div",{style:{height:240},children:a.length===0?Ie.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):Ie.jsxDEV(Oa,{data:l,options:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var mn=X(vt(),1);var Me=X(ce(),1);function ok({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["models",n,s],(h)=>ZM(n,h),{pollMs:30000,enabled:a}),f=mn.useMemo(()=>RA(l?.byModel??[]),[l?.byModel]);return Me.jsxDEV("div",{className:"stats-route-container space-y-6",children:Me.jsxDEV(Bt,{loading:c,error:r,data:l,children:l&&Me.jsxDEV(Me.Fragment,{children:[Me.jsxDEV(LN,{modelSeries:l.modelSeries,timeRange:n,colorLookup:f},void 0,!1,void 0,this),Me.jsxDEV(TN,{models:l.byModel,performanceSeries:l.modelPerformanceSeries,timeRange:n,colorLookup:f},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 LN({modelSeries:a,timeRange:n,colorLookup:s}){let l=ma(),r=Xt[l],c=Jl(n),f=mn.useMemo(()=>CN(a),[a]),h=mn.useMemo(()=>({labels:f.data.map((g)=>Jd(g.timestamp,n)),datasets:f.series.map((g,x)=>{let y=dt[x%dt.length],S=g.key?s.get(g.key)??y:y,T=g.key??g.label;return{label:g.label,data:f.data.map((M)=>M[T]??0),borderColor:S,backgroundColor:`${S}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}})}),[f,s,n]),p=mn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:r.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:r.tooltipBackground,titleColor:r.tooltipTitle,bodyColor:r.tooltipBody,borderColor:r.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(g)=>{let x=g.dataset.label??"",y=g.parsed.y;return`${x}: ${(y??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11}}},y:{grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11},callback:(g)=>`${g}%`},min:0,max:100}}}),[r]);return Me.jsxDEV(lt,{title:"Model Preference",subtitle:`Share of requests over ${c.windowLabel}`,children:Me.jsxDEV("div",{className:"h-[280px]",children:f.data.length===0?Me.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):Me.jsxDEV(Oa,{data:h,options:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function CN(a,n=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let y of a){let S=`${y.model}::${y.provider}`,T=s.get(S);if(T)T.total+=y.requests;else s.set(S,{model:y.model,provider:y.provider,total:y.requests})}let r=[...s.entries()].map(([y,S])=>({key:y,...S})).sort((y,S)=>S.total-y.total).slice(0,n),c=new Set(r.map((y)=>y.key)),f=new Map;for(let y of r)f.set(y.model,(f.get(y.model)??0)+1);let h=new Map;for(let y of r){let S=(f.get(y.model)??0)>1;h.set(y.key,S?`${y.model} (${y.provider})`:y.model)}let p=new Map;for(let y of a){let S=`${y.model}::${y.provider}`,T=p.get(y.timestamp)??{timestamp:y.timestamp,total:0};T.total+=y.requests;let M=c.has(S)?S:"Other";T[M]=(T[M]??0)+y.requests,p.set(y.timestamp,T)}let g=r.map((y)=>({key:y.key,label:h.get(y.key)??y.model}));if([...p.values()].some((y)=>(y.Other??0)>0))g.push({label:"Other"});return{data:[...p.values()].sort((y,S)=>(y.timestamp??0)-(S.timestamp??0)).map((y)=>{let S=y.total??0;for(let T of g){let M=T.key??T.label;y[M]=S>0?(y[M]??0)/S*100:0}return y}),series:g}}var ak="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function TN({models:a,performanceSeries:n,timeRange:s,colorLookup:l}){let[r,c]=mn.useState(null),f=Jl(s),h=mn.useMemo(()=>NA(n,s),[n,s]),p=ma(),g=Xt[p],x=mn.useMemo(()=>[...a].sort((y,S)=>S.totalInputTokens+S.totalOutputTokens-(y.totalInputTokens+y.totalOutputTokens)),[a]);return Me.jsxDEV(im,{title:"Model Statistics",children:[Me.jsxDEV(lm,{gridTemplate:ak,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"API-equivalent estimate",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:f.trendLabel,align:"center"}]},void 0,!1,void 0,this),Me.jsxDEV(rm,{children:x.map((y,S)=>{let T=`${y.model}::${y.provider}`,k=h.get(T)?.data??[],w=l.get(T)??dt[S%dt.length],_=r===T,U=y.errorRate*100;return Me.jsxDEV(cm,{gridTemplate:ak,isExpanded:_,onToggle:()=>c(_?null:T),cells:[Me.jsxDEV(um,{model:y.model,provider:y.provider},"name",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.totalRequests.toLocaleString()},"requests",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:ga(y.totalCost,y.unpricedRequests)},"cost",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(y.totalInputTokens+y.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.avgTtft?`${(y.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:k.length===0?Me.jsxDEV(dm,{},void 0,!1,void 0,this):Me.jsxDEV(nm,{timestamps:k.map((q)=>q.timestamp),values:k.map((q)=>q.avgTokensPerSecond??0),color:w},void 0,!1,void 0,this),expandedContent:Me.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[Me.jsxDEV("div",{className:"space-y-4 text-sm",children:[Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Efficiency"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:U>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[U.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"font-mono",children:[(y.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{children:"Cache savings"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:y.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(y.cacheSavings*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"font-mono",children:y.avgDuration?`${(y.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"font-mono",children:y.avgTtft?`${(y.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"h-[200px]",children:k.length===0?Me.jsxDEV(fm,{},void 0,!1,void 0,this):Me.jsxDEV(wN,{data:k,color:w,chartTheme:g,timeRange:s},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wN({data:a,color:n,chartTheme:s,timeRange:l}){let r=mn.useMemo(()=>({labels:a.map((f)=>Jd(f.timestamp,l)),datasets:[{label:"TTFT",data:a.map((f)=>f.avgTtftSeconds??null),...Os("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:a.map((f)=>f.avgTokensPerSecond??null),...Os(n),yAxisID:"y1"}]}),[a,n,l]),c=mn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:sm(s),scales:DA(s)}),[s]);return Me.jsxDEV(Oa,{data:r,options:c},void 0,!1,void 0,this)}var ef=X(vt(),1);var nk=X(vt(),1);var uo=X(ce(),1),vm={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function sk({stats:a}){let n=nk.useMemo(()=>PA(a),[a]);if(n.totalTokens===0)return uo.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return uo.jsxDEV("div",{className:"space-y-4",children:[uo.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:n.segments.map((s)=>s.share>0&&uo.jsxDEV("div",{className:"h-full",style:{width:`${s.share*100}%`,background:vm[s.agentType].color},title:`${vm[s.agentType].label}: ${kt(s.share)}`},s.agentType,!1,void 0,this))},void 0,!1,void 0,this),uo.jsxDEV("div",{className:"space-y-2",children:n.segments.map((s)=>uo.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[uo.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[uo.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:vm[s.agentType].color}},void 0,!1,void 0,this),uo.jsxDEV("span",{className:"stats-text-primary truncate",children:vm[s.agentType].label},void 0,!1,void 0,this),uo.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[_e(s.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),uo.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[uo.jsxDEV("span",{className:"stats-text-secondary",children:[rt(s.tokens)," tok"]},void 0,!0,void 0,this),uo.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:kt(s.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},s.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var de=X(ce(),1);function ik({active:a,range:n,refreshTrigger:s,onRequestClick:l}){let{data:r,error:c,loading:f}=$t(["overview",n,s],(_)=>WM(n,_),{pollMs:30000,enabled:a}),{data:h,error:p,loading:g}=$t(["recent-requests",s],(_)=>tm(50,_),{pollMs:30000,enabled:a}),x=ma(),y=Xt[x],S=ef.useMemo(()=>{if(!r?.timeSeries)return{labels:[],datasets:[]};let _=r.timeSeries.map((q)=>pn(new Date(q.timestamp),n==="1h"||n==="24h"?"HH:mm":"MMM d")),U=r.timeSeries.length<=2?3:0;return{labels:_,datasets:[{label:"Requests",data:r.timeSeries.map((q)=>q.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:U,pointHoverRadius:4,fill:!0},{label:"Errors",data:r.timeSeries.map((q)=>q.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:U,pointHoverRadius:4,fill:!0}]}},[r?.timeSeries,n]),T=ef.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:y.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:y.tooltipBackground,titleColor:y.tooltipTitle,bodyColor:y.tooltipBody,borderColor:y.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:y.grid,drawBorder:!1},ticks:{color:y.tick,font:{size:10}}},y:{grid:{color:y.grid,drawBorder:!1},ticks:{color:y.tick,font:{size:10}},min:0}}}),[y]),M=ef.useMemo(()=>[{key:"model",header:"Model",render:(_)=>de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:_.model},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:_.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(_)=>so(_.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(_)=>_e(_.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(_)=>Qo(_,4)},{key:"duration",header:"Duration",numeric:!0,render:(_)=>Pa(_.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(_)=>de.jsxDEV(Ia,{variant:_.errorMessage?"danger":"success",children:_.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),k=(_,U)=>de.jsxDEV("div",{className:"stats-mobile-card",onClick:U,children:[de.jsxDEV("div",{className:"stats-mobile-card-header",children:[de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:_.model},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:_.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV(Ia,{variant:_.errorMessage?"danger":"success",children:_.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-grid",children:[de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-value",children:so(_.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-value",children:Qo(_,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-value",children:_e(_.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-value",children:Pa(_.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_.errorMessage&&de.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:_.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w=ef.useMemo(()=>{if(!h)return[];return h.slice(0,10)},[h]);return de.jsxDEV("div",{className:"stats-route-container space-y-6",children:[de.jsxDEV(Bt,{loading:f,error:c,data:r,children:r&&de.jsxDEV(VA,{stats:r.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV(lt,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:de.jsxDEV(Bt,{loading:f,error:c,data:r,children:r&&de.jsxDEV(sk,{stats:r.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[de.jsxDEV("div",{className:"lg:col-span-2",children:de.jsxDEV(lt,{title:"System Throughput",subtitle:"Request volume and errors over time",children:de.jsxDEV(Bt,{loading:f,error:c,data:r,children:de.jsxDEV("div",{className:"h-[280px]",children:r?.timeSeries&&r.timeSeries.length>0?de.jsxDEV(Oa,{data:S,options:T},void 0,!1,void 0,this):de.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},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,!1,void 0,this),de.jsxDEV("div",{children:de.jsxDEV(lt,{title:"Operational Feed",subtitle:"Real-time request log",children:de.jsxDEV(Bt,{loading:g,error:p,data:h,fallback:de.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((_,U)=>de.jsxDEV("div",{className:"flex items-center gap-3",children:[de.jsxDEV(io,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),de.jsxDEV("div",{className:"flex-1",children:[de.jsxDEV(io,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),de.jsxDEV(io,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},U,!0,void 0,this))},void 0,!1,void 0,this),children:de.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[w.map((_)=>{let U=!!_.errorMessage;return de.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>_.id&&l(_.id),children:[de.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${U?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),de.jsxDEV("div",{className:"flex-1 min-w-0",children:[de.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[de.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:_.model},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:so(_.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[de.jsxDEV("div",{children:_.provider},void 0,!1,void 0,this),de.jsxDEV("div",{children:[_.duration?Pa(_.duration):""," ",_.usage.totalTokens>0?`· ${Qo(_,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U&&de.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:_.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},_.id||`${_.sessionFile}-${_.entryId}`,!0,void 0,this)}),w.length===0&&de.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,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),de.jsxDEV(lt,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:de.jsxDEV("a",{href:`#/requests?range=${n}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:de.jsxDEV(Bt,{loading:g,error:p,data:h,children:de.jsxDEV(ro,{columns:M,data:w,keyExtractor:(_)=>_.id||`${_.sessionFile}-${_.entryId}`,onRowClick:(_)=>_.id&&l(_.id),renderMobileCard:k,emptyText:"No recent requests found"},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 wv=X(vt(),1);var Je=X(ce(),1);function lk({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["projects",n,s],(g)=>aA(n,g),{pollMs:30000,enabled:a}),f=wv.useMemo(()=>{if(!l)return[];return UA(l)},[l]),h=wv.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(g)=>Je.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:g.folder||"(root)",children:g.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(g)=>Je.jsxDEV("div",{className:"stats-text-right",children:[Je.jsxDEV("div",{className:"font-mono",children:_e(g.totalRequests)},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Je.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${g.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"API-equivalent estimate",numeric:!0,render:(g)=>Je.jsxDEV("div",{className:"stats-text-right",children:[Je.jsxDEV("div",{className:"font-mono",children:ga(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Je.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${g.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(g)=>Je.jsxDEV("div",{className:"font-mono",children:_e(g.totalInputTokens+g.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(g)=>Je.jsxDEV("span",{className:"font-mono",children:kt(g.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache Savings",numeric:!0,render:(g)=>Je.jsxDEV("span",{className:`${g.cacheSavings<0?"stats-text-danger":"stats-text-success"} font-medium`,children:kt(g.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(g)=>Je.jsxDEV(Ia,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:kt(g.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(g)=>Pa(g.avgDuration)}],[]);return Je.jsxDEV("div",{className:"stats-route-container",children:Je.jsxDEV(lt,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Je.jsxDEV(Bt,{loading:c,error:r,data:l,emptyText:"No project folders recorded for this range.",children:Je.jsxDEV(ro,{columns:h,data:f,keyExtractor:(g)=>g.folder,renderMobileCard:(g)=>Je.jsxDEV("div",{className:"stats-mobile-card",children:[Je.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Je.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.folder||"(root)"},void 0,!1,void 0,this),Je.jsxDEV(Ia,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:[kt(g.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Je.jsxDEV("div",{children:[Je.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:_e(g.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ga(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Rate"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value",children:kt(g.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Savings"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value",children:kt(g.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value",children:Pa(g.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ya=X(vt(),1);var Ve=X(ce(),1);function rk({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["providers",n,s],(f)=>sA(n,f),{pollMs:30000,enabled:a});return Ve.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ve.jsxDEV(Bt,{loading:c,error:r,data:l,children:l&&Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV(IN,{providers:l.providers},void 0,!1,void 0,this),Ve.jsxDEV(MN,{stats:l},void 0,!1,void 0,this),Ve.jsxDEV(AN,{hourly:l.hourly,providers:l.providers},void 0,!1,void 0,this),Ve.jsxDEV(kN,{insights:l.windowInsights},void 0,!1,void 0,this),Ve.jsxDEV(RN,{usageSeries:l.usageSeries},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 IN({providers:a}){let n=ya.useMemo(()=>a.reduce((r,c)=>r+c.totalTokens,0),[a]),s=ya.useMemo(()=>a.reduce((r,c)=>r+c.unpricedRequests,0),[a]),l=[{key:"provider",header:"Provider",render:(r)=>Ve.jsxDEV("span",{className:"font-medium",children:r.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(r)=>_e(r.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(r)=>kt(r.totalRequests>0?r.failedRequests/r.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(r)=>_e(r.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(r)=>Ve.jsxDEV("span",{title:`Input ${rt(r.totalInputTokens)} · Output ${rt(r.totalOutputTokens)} · Cache read ${rt(r.totalCacheReadTokens)} · Cache write ${rt(r.totalCacheWriteTokens)}`,children:rt(r.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(r)=>kt(n>0?r.totalTokens/n:0)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(r)=>ga(r.totalCost,r.unpricedRequests)},{key:"tps",header:"Tok/s",numeric:!0,render:(r)=>hm(r.avgTokensPerSecond)}];return Ve.jsxDEV(lt,{title:"Provider Totals",subtitle:s>0?`Token, request, and API-equivalent estimates; excludes ${s.toLocaleString()} unpriced subscription request${s===1?"":"s"}`:"Token, request, and API-equivalent estimates over the active range",children:Ve.jsxDEV(ro,{columns:l,data:a,keyExtractor:(r)=>r.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MN({stats:a}){let[n,s]=ya.useState("tokens"),l=ma(),r=Xt[l],c=ya.useMemo(()=>a.providers.reduce((x,y)=>x+y.unpricedRequests,0),[a.providers]),f=ya.useMemo(()=>{let x=a.series.map((y)=>({...y,model:y.provider}));return Lu(x,{topN:6,rankWeight:(y)=>n==="tokens"?y.totalTokens:y.cost,initBucket:()=>({total:0}),accumulate:(y,S)=>{y.total+=n==="tokens"?S.totalTokens:S.cost},bucketToValue:(y)=>y.total})},[a.series,n]),h=n==="tokens"?rt:(x)=>Kd(x),p=ya.useMemo(()=>{let{sharedScaleBase:x,yScale:y}=Zn({chartTheme:r,formatY:h});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:Wn({chartTheme:r,showLegend:!0,defaultLabel:n==="tokens"?"Tokens":"API-equivalent estimate",formatValue:h,footer:(S)=>{if(S.length<2)return;let T=S.reduce((M,k)=>M+(k.parsed.y??0),0);return`Total: ${h(T)}`}}),scales:{x:{...x,stacked:!0},y:{...y,stacked:!0}}}},[r,n,h]),g=ya.useMemo(()=>({labels:f.labels,datasets:Vi(f,(x)=>Kl(dt[x%dt.length]))}),[f]);return Ve.jsxDEV(lt,{title:"Burn by Provider",subtitle:n==="cost"&&c>0?`API-equivalent estimates over time; excludes ${c.toLocaleString()} unpriced subscription request${c===1?"":"s"}`:"Stacked token or API-equivalent estimate burn over time",actions:Ve.jsxDEV(tr,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"API-equivalent estimate"}],value:n,onChange:s},void 0,!1,void 0,this),children:Ve.jsxDEV("div",{className:"h-[300px]",children:f.labels.length===0?Ve.jsxDEV(Cu,{message:"No provider activity in this range"},void 0,!1,void 0,this):Ve.jsxDEV(qi,{data:g,options:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Iv="__all__";function AN({hourly:a,providers:n}){let[s,l]=ya.useState(Iv),r=ma(),c=Xt[r],{tokensByHour:f,peakHour:h}=ya.useMemo(()=>{let y=Array(24).fill(0);for(let T of a){if(s!==Iv&&T.provider!==s)continue;y[T.hour]+=T.totalTokens}let S=0;for(let T=1;T<24;T++)if(y[T]>y[S])S=T;return{tokensByHour:y,peakHour:S}},[a,s]),p=f.some((y)=>y>0),g=ya.useMemo(()=>({labels:Array.from({length:24},(y,S)=>`${String(S).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:f,...Kl(dt[2]),backgroundColor:f.map((y,S)=>S===h?dt[0]:dt[2])}]}),[f,h]),x=ya.useMemo(()=>{let{sharedScaleBase:y,yScale:S}=Zn({chartTheme:c,formatY:rt});return{responsive:!0,maintainAspectRatio:!1,plugins:Wn({chartTheme:c,showLegend:!1,defaultLabel:"Tokens",formatValue:rt}),scales:{x:y,y:S}}},[c]);return Ve.jsxDEV(lt,{title:"Peak Burn Hours",subtitle:p?`Token burn by local hour of day — peak at ${String(h).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:Ve.jsxDEV("select",{className:"stats-select",value:s,onChange:(y)=>l(y.target.value),"aria-label":"Provider",children:[Ve.jsxDEV("option",{value:Iv,children:"All providers"},void 0,!1,void 0,this),n.map((y)=>Ve.jsxDEV("option",{value:y.provider,children:y.provider},y.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:Ve.jsxDEV("div",{className:"h-[260px]",children:p?Ve.jsxDEV(qi,{data:g,options:x},void 0,!1,void 0,this):Ve.jsxDEV(Cu,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function kN({insights:a}){return Ve.jsxDEV(lt,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:Ve.jsxDEV(ro,{columns:[{key:"provider",header:"Provider",render:(s)=>Ve.jsxDEV("span",{className:"font-medium",children:s.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(s)=>s.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(s)=>_e(s.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(s)=>Ve.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:s.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(s)=>Ve.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:s.estTokensPerWindow!==null?rt(s.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(s)=>Ve.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:kt(s.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(s)=>Ve.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:s.idealAccounts>s.accounts?"stats-text-warning font-semibold":void 0,children:[_e(s.idealAccounts),s.idealAccounts>s.accounts?` (have ${s.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(s)=>Ve.jsxDEV("span",{className:s.exhaustedEvents>0?"stats-text-warning":void 0,children:_e(s.exhaustedEvents)},void 0,!1,void 0,this)}],data:a,keyExtractor:(s)=>`${s.provider}::${s.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Mv={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function RN({usageSeries:a}){let n=ya.useMemo(()=>[...new Set(a.map((x)=>x.provider))],[a]),[s,l]=ya.useState(null),r=s!==null&&n.includes(s)?s:n[0]??null,c=ma(),f=Xt[c],h=ya.useMemo(()=>a.filter((x)=>x.provider===r).map((x)=>{let y=[...x.points].reverse().find((S)=>S.usedFraction!==null);return y?{label:`${x.windowLabel} · ${x.accountLabel}`,fraction:y.usedFraction??0,exhausted:y.exhausted,recordedAt:y.timestamp}:null}).filter((x)=>x!==null).sort((x,y)=>y.fraction-x.fraction),[a,r]),p=ya.useMemo(()=>({labels:h.map((x)=>x.label),datasets:[{label:"Used",data:h.map((x)=>x.fraction*100),backgroundColor:h.map((x)=>x.exhausted?Mv.exhausted:x.fraction>=0.8?Mv.warning:Mv.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[h]),g=ya.useMemo(()=>{let{sharedScaleBase:x,yScale:y}=Zn({chartTheme:f,formatY:(M)=>`${Math.round(M)}%`}),S=Math.max(100,...h.map((M)=>M.fraction*100)),T=Wn({chartTheme:f,showLegend:!1,defaultLabel:"Used",formatValue:(M)=>`${M.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...T,tooltip:{...T.tooltip,callbacks:{label:(M)=>{let k=h[M.dataIndex],w=`${(M.parsed.x??0).toFixed(1)}% used`;return k?`${w} · recorded ${so(k.recordedAt)}`:w}}}},scales:{x:{...y,max:S},y:{...x,grid:{display:!1}}}}},[f,h]);return Ve.jsxDEV(lt,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:n.length>1?Ve.jsxDEV("select",{className:"stats-select",value:r??"",onChange:(x)=>l(x.target.value),"aria-label":"Provider",children:n.map((x)=>Ve.jsxDEV("option",{value:x,children:x},x,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:Ve.jsxDEV("div",{style:{height:Math.max(160,h.length*34+60)},children:h.length===0?Ve.jsxDEV(Cu,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):Ve.jsxDEV(qi,{data:p,options:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var uk=X(vt(),1);var gt=X(ce(),1);function ck({active:a,refreshTrigger:n,onRequestClick:s}){let{data:l,error:r,loading:c}=$t(["recent-requests-dense",n],(p)=>tm(50,p),{pollMs:30000,enabled:a}),f=uk.useMemo(()=>[{key:"model",header:"Model",render:(p)=>gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:p.model},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:p.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(p)=>so(p.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(p)=>_e(p.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(p)=>Qo(p,4)},{key:"duration",header:"Duration",numeric:!0,render:(p)=>Pa(p.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(p)=>gt.jsxDEV(Ia,{variant:p.errorMessage?"danger":"success",children:p.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return gt.jsxDEV("div",{className:"stats-route-container",children:gt.jsxDEV(lt,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:gt.jsxDEV(Bt,{loading:c,error:r,data:l,children:gt.jsxDEV(ro,{columns:f,data:l||[],keyExtractor:(p)=>p.id||`${p.sessionFile}-${p.entryId}`,onRowClick:(p)=>p.id&&s(p.id),renderMobileCard:(p,g)=>gt.jsxDEV("div",{className:"stats-mobile-card",onClick:g,children:[gt.jsxDEV("div",{className:"stats-mobile-card-header",children:[gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:p.model},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:p.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV(Ia,{variant:p.errorMessage?"danger":"success",children:p.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-mobile-card-value",children:so(p.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-mobile-card-value",children:Qo(p,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-mobile-card-value",children:_e(p.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV("div",{children:[gt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"stats-mobile-card-value",children:Pa(p.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.errorMessage&&gt.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:p.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Jo=X(vt(),1);var ee=X(ce(),1);function dk({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["tools",n,s],(f)=>nA(n,f),{pollMs:30000,enabled:a});return ee.jsxDEV("div",{className:"stats-route-container space-y-6",children:ee.jsxDEV(Bt,{loading:c,error:r,data:l,emptyText:"No tool calls recorded for this range.",children:l&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV(_N,{byTool:l.byTool},void 0,!1,void 0,this),ee.jsxDEV(ON,{series:l.series,timeRange:n},void 0,!1,void 0,this),ee.jsxDEV(PN,{byTool:l.byTool},void 0,!1,void 0,this),ee.jsxDEV(BN,{byToolModel:l.byToolModel},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 _N({byTool:a}){let n=Jo.useMemo(()=>{let s=0,l=0,r=0,c=0,f=0,h=0,p=0,g=0;for(let x of a)s+=x.calls,l+=x.errors,r+=x.totalTokensShare,c+=x.outputTokensShare,f+=x.costShare,h+=x.unpricedRequestsShare,p+=x.resultChars,g+=x.argsChars;return{calls:s,errors:l,tokens:r,output:c,cost:f,unpricedRequests:h,resultChars:p,argsChars:g,tools:a.length}},[a]);return ee.jsxDEV(lt,{title:"Tool Usage",subtitle:"Tokens and API-equivalent estimates are split from invoking turns across each turn's tool calls",children:ee.jsxDEV("div",{className:"stats-metric-cluster",children:[ee.jsxDEV("div",{className:"stats-metric-primary-grid",children:[ee.jsxDEV("div",{className:"stats-metric-card primary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:_e(n.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card primary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:_e(n.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card primary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:kt(n.calls>0?n.errors/n.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card primary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Attributed API-equivalent estimate"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:ga(n.cost,n.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[ee.jsxDEV("div",{className:"stats-metric-card secondary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:rt(Math.round(n.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card secondary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:rt(Math.round(n.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card secondary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:[rt(n.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-metric-card secondary",children:[ee.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:[rt(n.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var DN=6;function EN(a){let n=new Map;for(let g of a)n.set(g.tool,(n.get(g.tool)??0)+g.calls);let s=[...n.entries()].sort((g,x)=>x[1]-g[1]),l=s.slice(0,DN).map(([g])=>g),r=new Set(l),f=s.length>l.length?[...l,"Other"]:l,h=[...new Set(a.map((g)=>g.timestamp))].sort((g,x)=>g-x),p=new Map;for(let g of h)p.set(g,{});for(let g of a){let x=r.has(g.tool)?g.tool:"Other",y=p.get(g.timestamp);if(y)y[x]=(y[x]??0)+g.calls}return{buckets:h,tools:f,data:p}}function ON({series:a,timeRange:n}){let s=ma(),l=Xt[s],r=Jl(n),c=Jo.useMemo(()=>EN(a),[a]),f=Jo.useMemo(()=>({labels:c.buckets.map((p)=>Jd(p,n)),datasets:c.tools.map((p,g)=>({label:p,data:c.buckets.map((x)=>c.data.get(x)?.[p]??0),borderColor:dt[g%dt.length],backgroundColor:`${dt[g%dt.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[c,n]),h=Jo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:l.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:l.tooltipBackground,titleColor:l.tooltipTitle,bodyColor:l.tooltipBody,borderColor:l.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(p)=>`${p.dataset.label??""}: ${_e(p.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11}}},y:{stacked:!0,grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11},precision:0},min:0}}}),[l]);return ee.jsxDEV(lt,{title:"Calls Over Time",subtitle:`Tool calls over ${r.windowLabel}, stacked by tool`,children:ee.jsxDEV("div",{className:"h-[280px]",children:c.buckets.length===0?ee.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):ee.jsxDEV(Oa,{data:f,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Av(a){return a>0.1?"danger":a>0?"warning":"success"}function PN({byTool:a}){let n=Jo.useMemo(()=>HA(a),[a]),s=Jo.useMemo(()=>[{key:"tool",header:"Tool",render:(r)=>ee.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:r.tool,children:r.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(r)=>ee.jsxDEV("div",{className:"stats-text-right",children:[ee.jsxDEV("div",{className:"font-mono",children:_e(r.calls)},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:ee.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${r.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(r)=>ee.jsxDEV(Ia,{variant:Av(r.errorRate),children:kt(r.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(r)=>ee.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:rt(Math.round(r.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(r)=>ee.jsxDEV("span",{className:"font-mono",children:ga(r.costShare,r.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(r)=>ee.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:rt(r.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(r)=>ee.jsxDEV("span",{className:"stats-text-secondary",children:so(r.lastUsed)},void 0,!1,void 0,this)}],[]);return ee.jsxDEV(lt,{title:"By Tool",subtitle:"Usage per tool, most called first",children:ee.jsxDEV(ro,{columns:s,data:n,keyExtractor:(r)=>r.tool,renderMobileCard:(r)=>ee.jsxDEV("div",{className:"stats-mobile-card",children:[ee.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[ee.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:r.tool},void 0,!1,void 0,this),ee.jsxDEV(Ia,{variant:Av(r.errorRate),children:[kt(r.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-grid",children:[ee.jsxDEV("div",{children:[ee.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:_e(r.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{children:[ee.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:rt(Math.round(r.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{children:[ee.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. API-equivalent estimate"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ga(r.costShare,r.unpricedRequestsShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{children:[ee.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:rt(r.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function BN({byToolModel:a}){let[n,s]=Jo.useState(null),l=Jo.useMemo(()=>[...new Set(a.map((f)=>f.tool))].sort(),[a]),r=Jo.useMemo(()=>(n?a.filter((h)=>h.tool===n):a).map((h)=>({...h,errorRate:h.calls>0?h.errors/h.calls:0})),[a,n]),c=Jo.useMemo(()=>[{key:"tool",header:"Tool",render:(f)=>ee.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:f.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(f)=>ee.jsxDEV("div",{children:[ee.jsxDEV("div",{className:"stats-text-primary",children:f.model||"(unknown)"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-text-secondary text-xs",children:f.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(f)=>ee.jsxDEV("span",{className:"font-mono",children:_e(f.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(f)=>ee.jsxDEV(Ia,{variant:Av(f.errorRate),children:kt(f.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(f)=>ee.jsxDEV("span",{className:"font-mono",children:rt(Math.round(f.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(f)=>ee.jsxDEV("span",{className:"font-mono",children:ga(f.costShare,f.unpricedRequestsShare)},void 0,!1,void 0,this)}],[]);return ee.jsxDEV(lt,{title:"By Model",subtitle:"Which models call which tools",children:[ee.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[ee.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),ee.jsxDEV("select",{className:"stats-select",value:n??"",onChange:(f)=>s(f.target.value||null),style:{maxWidth:"320px",flex:1},children:[ee.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),l.map((f)=>ee.jsxDEV("option",{value:f,children:f},f,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV(ro,{columns:c,data:r,keyExtractor:(f)=>`${f.tool}::${f.model}::${f.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ma=X(ce(),1);function kv(){let{section:a,setSection:n,range:s,setRange:l}=bA(),[r,c]=Ps.useState(0),[f,h]=Ps.useState(null),[p,g]=Ps.useState(()=>Date.now()),x=Ps.useCallback((k)=>{if(k.success)c((w)=>w+1),g(Date.now())},[]),y=Ps.useCallback(()=>h(null),[]),S=a,T=Ps.useRef(new Set);T.current.add(S);let M=(k)=>{let w=k===S;switch(k){case"overview":return Ma.jsxDEV(ik,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"requests":return Ma.jsxDEV(ck,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"errors":return Ma.jsxDEV(ek,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"models":return Ma.jsxDEV(ok,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"providers":return Ma.jsxDEV(rk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"tools":return Ma.jsxDEV(dk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"costs":return Ma.jsxDEV(KA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"behavior":return Ma.jsxDEV(QA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"projects":return Ma.jsxDEV(lk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"gain":return Ma.jsxDEV(tk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this)}};return Ma.jsxDEV(Ma.Fragment,{children:[Ma.jsxDEV(gA,{activeSection:S,onSectionChange:n,range:s,onRangeChange:l,updatedAt:p,onSyncComplete:x,children:[...T.current].map((k)=>Ma.jsxDEV("div",{hidden:k!==S,children:M(k)},k,!1,void 0,this))},void 0,!1,void 0,this),Ma.jsxDEV(GA,{id:f,onClose:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var hk=X(ce(),1),NN=fk.createRoot(document.getElementById("root"));NN.render(hk.jsxDEV(kv,{},void 0,!1,void 0,this));
257
+ `);return a}function IB(a,n){let{element:s,datasetIndex:i,index:l}=n,u=a.getDatasetMeta(i).controller,{label:d,value:p}=u.getLabelAndValue(l);return{chart:a,label:d,parsed:u.getParsed(l),raw:a.data.datasets[i].data[l],formattedValue:p,dataset:u.getDataset(),dataIndex:l,datasetIndex:i,element:s}}function CM(a,n){let s=a.chart.ctx,{body:i,footer:l,title:u}=a,{boxWidth:d,boxHeight:p}=n,h=pa(n.bodyFont),g=pa(n.titleFont),b=pa(n.footerFont),y=u.length,v=l.length,T=i.length,M=Na(n.padding),I=M.height,w=0,A=i.reduce((H,V)=>H+V.before.length+V.lines.length+V.after.length,0);if(A+=a.beforeBody.length+a.afterBody.length,y)I+=y*g.lineHeight+(y-1)*n.titleSpacing+n.titleMarginBottom;if(A){let H=n.displayColors?Math.max(p,h.lineHeight):h.lineHeight;I+=T*H+(A-T)*h.lineHeight+(A-1)*n.bodySpacing}if(v)I+=n.footerMarginTop+v*b.lineHeight+(v-1)*n.footerSpacing;let B=0,z=function(H){w=Math.max(w,s.measureText(H).width+B)};return s.save(),s.font=g.string,Lt(a.title,z),s.font=h.string,Lt(a.beforeBody.concat(a.afterBody),z),B=n.displayColors?d+2+n.boxPadding:0,Lt(i,(H)=>{Lt(H.before,z),Lt(H.lines,z),Lt(H.after,z)}),B=0,s.font=b.string,Lt(a.footer,z),s.restore(),w+=M.width,{width:w,height:I}}function AB(a,n){let{y:s,height:i}=n;if(s<i/2)return"top";else if(s>a.height-i/2)return"bottom";return"center"}function RB(a,n,s,i){let{x:l,width:u}=i,d=s.caretSize+s.caretPadding;if(a==="left"&&l+u+d>n.width)return!0;if(a==="right"&&l-u-d<0)return!0}function _B(a,n,s,i){let{x:l,width:u}=s,{width:d,chartArea:{left:p,right:h}}=a,g="center";if(i==="center")g=l<=(p+h)/2?"left":"right";else if(l<=u/2)g="left";else if(l>=d-u/2)g="right";if(RB(g,a,n,s))g="center";return g}function TM(a,n,s){let i=s.yAlign||n.yAlign||AB(a,s);return{xAlign:s.xAlign||n.xAlign||_B(a,n,s,i),yAlign:i}}function DB(a,n){let{x:s,width:i}=a;if(n==="right")s-=i;else if(n==="center")s-=i/2;return s}function EB(a,n,s){let{y:i,height:l}=a;if(n==="top")i+=s;else if(n==="bottom")i-=l+s;else i-=l/2;return i}function wM(a,n,s,i){let{caretSize:l,caretPadding:u,cornerRadius:d}=a,{xAlign:p,yAlign:h}=s,g=l+u,{topLeft:b,topRight:y,bottomLeft:v,bottomRight:T}=ti(d),M=DB(n,p),I=EB(n,h,g);if(h==="center"){if(p==="left")M+=g;else if(p==="right")M-=g}else if(p==="left")M-=Math.max(b,v)+l;else if(p==="right")M+=Math.max(y,T)+l;return{x:mo(M,0,i.width-n.width),y:mo(I,0,i.height-n.height)}}function mm(a,n,s){let i=Na(s.padding);return n==="center"?a.x+a.width/2:n==="right"?a.x+a.width-i.right:a.x+i.left}function kM(a){return ns([],Gs(a))}function OB(a,n,s){return Vs(a,{tooltip:n,tooltipItems:s,type:"tooltip"})}function MM(a,n){let s=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return s?a.override(s):a}var uI={beforeTitle:os,title(a){if(a.length>0){let n=a[0],s=n.chart.data.labels,i=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";else if(n.label)return n.label;else if(i>0&&n.dataIndex<i)return s[n.dataIndex]}return""},afterTitle:os,beforeBody:os,beforeLabel:os,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let n=a.dataset.label||"";if(n)n+=": ";let s=a.formattedValue;if(!ht(s))n+=s;return n},labelColor(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:os,afterBody:os,beforeFooter:os,footer:os,afterFooter:os};function yo(a,n,s,i){let l=a[n].call(s,i);if(typeof l>"u")return uI[n].call(s,i);return l}class Cv extends Xs{static positioners=Xd;constructor(a){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=a.chart,this.options=a.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(a){this.options=a,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let a=this._cachedAnimations;if(a)return a;let n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,l=new kv(this.chart,i);if(i._cacheable)this._cachedAnimations=Object.freeze(l);return l}getContext(){return this.$context||(this.$context=OB(this.chart.getContext(),this,this._tooltipItems))}getTitle(a,n){let{callbacks:s}=n,i=yo(s,"beforeTitle",this,a),l=yo(s,"title",this,a),u=yo(s,"afterTitle",this,a),d=[];return d=ns(d,Gs(i)),d=ns(d,Gs(l)),d=ns(d,Gs(u)),d}getBeforeBody(a,n){return kM(yo(n.callbacks,"beforeBody",this,a))}getBody(a,n){let{callbacks:s}=n,i=[];return Lt(a,(l)=>{let u={before:[],lines:[],after:[]},d=MM(s,l);ns(u.before,Gs(yo(d,"beforeLabel",this,l))),ns(u.lines,yo(d,"label",this,l)),ns(u.after,Gs(yo(d,"afterLabel",this,l))),i.push(u)}),i}getAfterBody(a,n){return kM(yo(n.callbacks,"afterBody",this,a))}getFooter(a,n){let{callbacks:s}=n,i=yo(s,"beforeFooter",this,a),l=yo(s,"footer",this,a),u=yo(s,"afterFooter",this,a),d=[];return d=ns(d,Gs(i)),d=ns(d,Gs(l)),d=ns(d,Gs(u)),d}_createItems(a){let n=this._active,s=this.chart.data,i=[],l=[],u=[],d=[],p,h;for(p=0,h=n.length;p<h;++p)d.push(IB(this.chart,n[p]));if(a.filter)d=d.filter((g,b,y)=>a.filter(g,b,y,s));if(a.itemSort)d=d.sort((g,b)=>a.itemSort(g,b,s));return Lt(d,(g)=>{let b=MM(a.callbacks,g);i.push(yo(b,"labelColor",this,g)),l.push(yo(b,"labelPointStyle",this,g)),u.push(yo(b,"labelTextColor",this,g))}),this.labelColors=i,this.labelPointStyles=l,this.labelTextColors=u,this.dataPoints=d,d}update(a,n){let s=this.options.setContext(this.getContext()),i=this._active,l,u=[];if(!i.length){if(this.opacity!==0)l={opacity:0}}else{let d=Xd[s.position].call(this,i,this._eventPosition);u=this._createItems(s),this.title=this.getTitle(u,s),this.beforeBody=this.getBeforeBody(u,s),this.body=this.getBody(u,s),this.afterBody=this.getAfterBody(u,s),this.footer=this.getFooter(u,s);let p=this._size=CM(this,s),h=Object.assign({},d,p),g=TM(this.chart,s,h),b=wM(s,h,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,l={opacity:1,x:b.x,y:b.y,width:p.width,height:p.height,caretX:d.x,caretY:d.y}}if(this._tooltipItems=u,this.$context=void 0,l)this._resolveAnimations().update(this,l);if(a&&s.external)s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(a,n,s,i){let l=this.getCaretPosition(a,s,i);n.lineTo(l.x1,l.y1),n.lineTo(l.x2,l.y2),n.lineTo(l.x3,l.y3)}getCaretPosition(a,n,s){let{xAlign:i,yAlign:l}=this,{caretSize:u,cornerRadius:d}=s,{topLeft:p,topRight:h,bottomLeft:g,bottomRight:b}=ti(d),{x:y,y:v}=a,{width:T,height:M}=n,I,w,A,B,z,H;if(l==="center"){if(z=v+M/2,i==="left")I=y,w=I-u,B=z+u,H=z-u;else I=y+T,w=I+u,B=z-u,H=z+u;A=I}else{if(i==="left")w=y+Math.max(p,g)+u;else if(i==="right")w=y+T-Math.max(h,b)-u;else w=this.caretX;if(l==="top")B=v,z=B-u,I=w-u,A=w+u;else B=v+M,z=B+u,I=w+u,A=w-u;H=B}return{x1:I,x2:w,x3:A,y1:B,y2:z,y3:H}}drawTitle(a,n,s){let i=this.title,l=i.length,u,d,p;if(l){let h=il(s.rtl,this.x,this.width);a.x=mm(this,s.titleAlign,s),n.textAlign=h.textAlign(s.titleAlign),n.textBaseline="middle",u=pa(s.titleFont),d=s.titleSpacing,n.fillStyle=s.titleColor,n.font=u.string;for(p=0;p<l;++p)if(n.fillText(i[p],h.x(a.x),a.y+u.lineHeight/2),a.y+=u.lineHeight+d,p+1===l)a.y+=s.titleMarginBottom-d}}_drawColorBox(a,n,s,i,l){let u=this.labelColors[s],d=this.labelPointStyles[s],{boxHeight:p,boxWidth:h}=l,g=pa(l.bodyFont),b=mm(this,"left",l),y=i.x(b),v=p<g.lineHeight?(g.lineHeight-p)/2:0,T=n.y+v;if(l.usePointStyle){let M={radius:Math.min(h,p)/2,pointStyle:d.pointStyle,rotation:d.rotation,borderWidth:1},I=i.leftForLtr(y,h)+h/2,w=T+p/2;a.strokeStyle=l.multiKeyBackground,a.fillStyle=l.multiKeyBackground,im(a,M,I,w),a.strokeStyle=u.borderColor,a.fillStyle=u.backgroundColor,im(a,M,I,w)}else{a.lineWidth=it(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,a.strokeStyle=u.borderColor,a.setLineDash(u.borderDash||[]),a.lineDashOffset=u.borderDashOffset||0;let M=i.leftForLtr(y,h),I=i.leftForLtr(i.xPlus(y,1),h-2),w=ti(u.borderRadius);if(Object.values(w).some((A)=>A!==0))a.beginPath(),a.fillStyle=l.multiKeyBackground,zu(a,{x:M,y:T,w:h,h:p,radius:w}),a.fill(),a.stroke(),a.fillStyle=u.backgroundColor,a.beginPath(),zu(a,{x:I,y:T+1,w:h-2,h:p-2,radius:w}),a.fill();else a.fillStyle=l.multiKeyBackground,a.fillRect(M,T,h,p),a.strokeRect(M,T,h,p),a.fillStyle=u.backgroundColor,a.fillRect(I,T+1,h-2,p-2)}a.fillStyle=this.labelTextColors[s]}drawBody(a,n,s){let{body:i}=this,{bodySpacing:l,bodyAlign:u,displayColors:d,boxHeight:p,boxWidth:h,boxPadding:g}=s,b=pa(s.bodyFont),y=b.lineHeight,v=0,T=il(s.rtl,this.x,this.width),M=function(X){n.fillText(X,T.x(a.x+v),a.y+y/2),a.y+=y+l},I=T.textAlign(u),w,A,B,z,H,V,G;n.textAlign=u,n.textBaseline="middle",n.font=b.string,a.x=mm(this,I,s),n.fillStyle=s.bodyColor,Lt(this.beforeBody,M),v=d&&I!=="right"?u==="center"?h/2+g:h+2+g:0;for(z=0,V=i.length;z<V;++z){if(w=i[z],A=this.labelTextColors[z],n.fillStyle=A,Lt(w.before,M),B=w.lines,d&&B.length)this._drawColorBox(n,a,z,T,s),y=Math.max(b.lineHeight,p);for(H=0,G=B.length;H<G;++H)M(B[H]),y=b.lineHeight;Lt(w.after,M)}v=0,y=b.lineHeight,Lt(this.afterBody,M),a.y-=l}drawFooter(a,n,s){let i=this.footer,l=i.length,u,d;if(l){let p=il(s.rtl,this.x,this.width);a.x=mm(this,s.footerAlign,s),a.y+=s.footerMarginTop,n.textAlign=p.textAlign(s.footerAlign),n.textBaseline="middle",u=pa(s.footerFont),n.fillStyle=s.footerColor,n.font=u.string;for(d=0;d<l;++d)n.fillText(i[d],p.x(a.x),a.y+u.lineHeight/2),a.y+=u.lineHeight+s.footerSpacing}}drawBackground(a,n,s,i){let{xAlign:l,yAlign:u}=this,{x:d,y:p}=a,{width:h,height:g}=s,{topLeft:b,topRight:y,bottomLeft:v,bottomRight:T}=ti(i.cornerRadius);if(n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(d+b,p),u==="top")this.drawCaret(a,n,s,i);if(n.lineTo(d+h-y,p),n.quadraticCurveTo(d+h,p,d+h,p+y),u==="center"&&l==="right")this.drawCaret(a,n,s,i);if(n.lineTo(d+h,p+g-T),n.quadraticCurveTo(d+h,p+g,d+h-T,p+g),u==="bottom")this.drawCaret(a,n,s,i);if(n.lineTo(d+v,p+g),n.quadraticCurveTo(d,p+g,d,p+g-v),u==="center"&&l==="left")this.drawCaret(a,n,s,i);if(n.lineTo(d,p+b),n.quadraticCurveTo(d,p,d+b,p),n.closePath(),n.fill(),i.borderWidth>0)n.stroke()}_updateAnimationTarget(a){let n=this.chart,s=this.$animations,i=s&&s.x,l=s&&s.y;if(i||l){let u=Xd[a.position].call(this,this._active,this._eventPosition);if(!u)return;let d=this._size=CM(this,a),p=Object.assign({},u,this._size),h=TM(n,a,p),g=wM(a,p,h,n);if(i._to!==g.x||l._to!==g.y)this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=d.width,this.height=d.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,g)}}_willRender(){return!!this.opacity}draw(a){let n=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(n);let i={width:this.width,height:this.height},l={x:this.x,y:this.y};s=Math.abs(s)<0.001?0:s;let u=Na(n.padding),d=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(n.enabled&&d)a.save(),a.globalAlpha=s,this.drawBackground(l,a,i,n),av(a,n.textDirection),l.y+=u.top,this.drawTitle(l,a,n),this.drawBody(l,a,n),this.drawFooter(l,a,n),ov(a,n.textDirection),a.restore()}getActiveElements(){return this._active||[]}setActiveElements(a,n){let s=this._active,i=a.map(({datasetIndex:d,index:p})=>{let h=this.chart.getDatasetMeta(d);if(!h)throw Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:h.data[p],index:p}}),l=!Od(s,i),u=this._positionChanged(i,n);if(l||u)this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(a,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let i=this.options,l=this._active||[],u=this._getActiveElements(a,l,n,s),d=this._positionChanged(u,a),p=n||!Od(u,l)||d;if(p){if(this._active=u,i.enabled||i.external)this._eventPosition={x:a.x,y:a.y},this.update(!0,n)}return p}_getActiveElements(a,n,s,i){let l=this.options;if(a.type==="mouseout")return[];if(!i)return n.filter((d)=>this.chart.data.datasets[d.datasetIndex]&&this.chart.getDatasetMeta(d.datasetIndex).controller.getParsed(d.index)!==void 0);let u=this.chart.getElementsAtEventForMode(a,l.mode,l,s);if(l.reverse)u.reverse();return u}_positionChanged(a,n){let{caretX:s,caretY:i,options:l}=this,u=Xd[l.position].call(this,a,n);return u!==!1&&(s!==u.x||i!==u.y)}}var cI={id:"tooltip",_element:Cv,positioners:Xd,afterInit(a,n,s){if(s)a.tooltip=new Cv({chart:a,options:s})},beforeUpdate(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},reset(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},afterDraw(a){let n=a.tooltip;if(n&&n._willRender()){let s={tooltip:n};if(a.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;n.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",s)}},afterEvent(a,n){if(a.tooltip){let s=n.replay;if(a.tooltip.handleEvent(n.event,s,n.inChartArea))n.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(a,n)=>n.bodyFont.size,boxWidth:(a,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:uI},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(a)=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var PB=(a,n,s,i)=>{if(typeof n==="string")s=a.push(n)-1,i.unshift({index:s,label:n});else if(isNaN(n))s=null;return s};function BB(a,n,s,i){let l=a.indexOf(n);if(l===-1)return PB(a,n,s,i);let u=a.lastIndexOf(n);return l!==u?s:l}var NB=(a,n)=>a===null?null:mo(Math.round(a),0,n);function IM(a){let n=this.getLabels();if(a>=0&&a<n.length)return n[a];return a}class Pv extends cl{static id="category";static defaults={ticks:{callback:IM}};constructor(a){super(a);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(a){let n=this._addedLabels;if(n.length){let s=this.getLabels();for(let{index:i,label:l}of n)if(s[i]===l)s.splice(i,1);this._addedLabels=[]}super.init(a)}parse(a,n){if(ht(a))return null;let s=this.getLabels();return n=isFinite(n)&&s[n]===a?n:BB(s,a,Ke(n,a),this._addedLabels),NB(n,s.length-1)}determineDataLimits(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),{min:s,max:i}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!a)s=0;if(!n)i=this.getLabels().length-1}this.min=s,this.max=i}buildTicks(){let a=this.min,n=this.max,s=this.options.offset,i=[],l=this.getLabels();l=a===0&&n===l.length-1?l:l.slice(a,n+1),this._valueRange=Math.max(l.length-(s?0:1),1),this._startValue=this.min-(s?0.5:0);for(let u=a;u<=n;u++)i.push({value:u});return i}getLabelForValue(a){return IM.call(this,a)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(a){if(typeof a!=="number")a=this.parse(a);return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getValueForPixel(a){return Math.round(this._startValue+this.getDecimalForPixel(a)*this._valueRange)}getBasePixel(){return this.bottom}}function zB(a,n){let s=[],i=0.00000000000001,{bounds:l,step:u,min:d,max:p,precision:h,count:g,maxTicks:b,maxDigits:y,includeBounds:v}=a,T=u||1,M=b-1,{min:I,max:w}=n,A=!ht(d),B=!ht(p),z=!ht(g),H=(w-I)/(y+1),V=Nx((w-I)/M/T)*T,G,X,Y,J;if(V<0.00000000000001&&!A&&!B)return[{value:I},{value:w}];if(J=Math.ceil(w/V)-Math.floor(I/V),J>M)V=Nx(J*V/M/T)*T;if(!ht(h))G=Math.pow(10,h),V=Math.ceil(V*G)/G;if(l==="ticks")X=Math.floor(I/V)*V,Y=Math.ceil(w/V)*V;else X=I,Y=w;if(A&&B&&u&&hk((p-d)/u,V/1000))J=Math.round(Math.min((p-d)/V,b)),V=(p-d)/J,X=d,Y=p;else if(z)X=A?d:X,Y=B?p:Y,J=g-1,V=(Y-X)/J;else if(J=(Y-X)/V,Bu(J,Math.round(J),V/1000))J=Math.round(J);else J=Math.ceil(J);let j=Math.max(Hx(V),Hx(X));G=Math.pow(10,ht(h)?j:h),X=Math.round(X*G)/G,Y=Math.round(Y*G)/G;let se=0;if(A){if(v&&X!==d){if(s.push({value:d}),X<d)se++;if(Bu(Math.round((X+se*V)*G)/G,d,AM(d,H,a)))se++}else if(X<d)se++}for(;se<J;++se){let ge=Math.round((X+se*V)*G)/G;if(B&&ge>p)break;s.push({value:ge})}if(B&&v&&Y!==p)if(s.length&&Bu(s[s.length-1].value,p,AM(p,H,a)))s[s.length-1].value=p;else s.push({value:p});else if(!B||Y===p)s.push({value:Y});return s}function AM(a,n,{horizontal:s,minRotation:i}){let l=Fs(i),u=(s?Math.sin(l):Math.cos(l))||0.001,d=0.75*n*(""+a).length;return Math.min(n/u,d)}class $d extends cl{constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(a,n){if(ht(a))return null;if((typeof a==="number"||a instanceof Number)&&!isFinite(+a))return null;return+a}handleTickRangeOptions(){let{beginAtZero:a}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds(),{min:i,max:l}=this,u=(p)=>i=n?i:p,d=(p)=>l=s?l:p;if(a){let p=Ln(i),h=Ln(l);if(p<0&&h<0)d(0);else if(p>0&&h>0)u(0)}if(i===l){let p=l===0?1:Math.abs(l*0.05);if(d(l+p),!a)u(i-p)}this.min=i,this.max=l}getTickLimit(){let a=this.options.ticks,{maxTicksLimit:n,stepSize:s}=a,i;if(s){if(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1000}else i=this.computeTickLimit(),n=n||11;if(n)i=Math.min(n,i);return i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let a=this.options,n=a.ticks,s=this.getTickLimit();s=Math.max(2,s);let i={maxTicks:s,bounds:a.bounds,min:a.min,max:a.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},l=this._range||this,u=zB(i,l);if(a.bounds==="ticks")zx(u,this,"value");if(a.reverse)u.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return u}configure(){let a=this.ticks,n=this.min,s=this.max;if(super.configure(),this.options.offset&&a.length){let i=(s-n)/Math.max(a.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(a){return sm(a,this.chart.options.locale,this.options.ticks.format)}}class Bv extends $d{static id="linear";static defaults={ticks:{callback:Pd.formatters.numeric}};determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);this.min=Kt(a)?a:0,this.max=Kt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let a=this.isHorizontal(),n=a?this.width:this.height,s=Fs(this.options.ticks.minRotation),i=(a?Math.sin(s):Math.cos(s))||0.001,l=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,l.lineHeight/i))}getPixelForValue(a){return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getValueForPixel(a){return this._startValue+this.getDecimalForPixel(a)*this._valueRange}}var Wd=(a)=>Math.floor(Us(a)),ul=(a,n)=>Math.pow(10,Wd(a)+n);function RM(a){return a/Math.pow(10,Wd(a))===1}function _M(a,n,s){let i=Math.pow(10,s),l=Math.floor(a/i);return Math.ceil(n/i)-l}function HB(a,n){let s=n-a,i=Wd(s);while(_M(a,n,i)>10)i++;while(_M(a,n,i)<10)i--;return Math.min(i,Wd(a))}function UB(a,{min:n,max:s}){n=go(a.min,n);let i=[],l=Wd(n),u=HB(n,s),d=u<0?Math.pow(10,Math.abs(u)):1,p=Math.pow(10,u),h=l>u?Math.pow(10,l):0,g=Math.round((n-h)*d)/d,b=Math.floor((n-h)/p/10)*p*10,y=Math.floor((g-b)/Math.pow(10,u)),v=go(a.min,Math.round((h+b+y*Math.pow(10,u))*d)/d);while(v<s){if(i.push({value:v,major:RM(v),significand:y}),y>=10)y=y<15?15:20;else y++;if(y>=20)u++,y=2,d=u>=0?1:d;v=Math.round((h+b+y*Math.pow(10,u))*d)/d}let T=go(a.max,v);return i.push({value:T,major:RM(T),significand:y}),i}class FB extends cl{static id="logarithmic";static defaults={ticks:{callback:Pd.formatters.logarithmic,major:{enabled:!0}}};constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(a,n){let s=$d.prototype.parse.apply(this,[a,n]);if(s===0){this._zero=!0;return}return Kt(s)&&s>0?s:null}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);if(this.min=Kt(a)?Math.max(0,a):null,this.max=Kt(n)?Math.max(0,n):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!Kt(this._userMin))this.min=a===ul(this.min,0)?ul(this.min,-1):ul(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),s=this.min,i=this.max,l=(d)=>s=a?s:d,u=(d)=>i=n?i:d;if(s===i)if(s<=0)l(1),u(10);else l(ul(s,-1)),u(ul(i,1));if(s<=0)l(ul(i,-1));if(i<=0)u(ul(s,1));this.min=s,this.max=i}buildTicks(){let a=this.options,n={min:this._userMin,max:this._userMax},s=UB(n,this);if(a.bounds==="ticks")zx(s,this,"value");if(a.reverse)s.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return s}getLabelForValue(a){return a===void 0?"0":sm(a,this.chart.options.locale,this.options.ticks.format)}configure(){let a=this.min;super.configure(),this._startValue=Us(a),this._valueRange=Us(this.max)-Us(a)}getPixelForValue(a){if(a===void 0||a===0)a=this.min;if(a===null||isNaN(a))return NaN;return this.getPixelForDecimal(a===this.min?0:(Us(a)-this._startValue)/this._valueRange)}getValueForPixel(a){let n=this.getDecimalForPixel(a);return Math.pow(10,this._startValue+n*this._valueRange)}}function Tv(a){let n=a.ticks;if(n.display&&a.display){let s=Na(n.backdropPadding);return Ke(n.font&&n.font.size,Jt.font.size)+s.height}return 0}function qB(a,n,s){return s=zt(s)?s:[s],{w:Mk(a,n.string,s),h:s.length*n.lineHeight}}function DM(a,n,s,i,l){if(a===i||a===l)return{start:n-s/2,end:n+s/2};else if(a<i||a>l)return{start:n-s,end:n};return{start:n,end:n+s}}function VB(a){let n={l:a.left+a._padding.left,r:a.right-a._padding.right,t:a.top+a._padding.top,b:a.bottom-a._padding.bottom},s=Object.assign({},n),i=[],l=[],u=a._pointLabels.length,d=a.options.pointLabels,p=d.centerPointLabels?na/u:0;for(let h=0;h<u;h++){let g=d.setContext(a.getPointLabelContext(h));l[h]=g.padding;let b=a.getPointPosition(h,a.drawingArea+l[h],p),y=pa(g.font),v=qB(a.ctx,y,a._pointLabels[h]);i[h]=v;let T=fo(a.getIndexAngle(h)+p),M=Math.round(am(T)),I=DM(M,b.x,v.w,0,180),w=DM(M,b.y,v.h,90,270);jB(s,n,T,I,w)}a.setCenterPoint(n.l-s.l,s.r-n.r,n.t-s.t,s.b-n.b),a._pointLabelItems=YB(a,i,l)}function jB(a,n,s,i,l){let u=Math.abs(Math.sin(s)),d=Math.abs(Math.cos(s)),p=0,h=0;if(i.start<n.l)p=(n.l-i.start)/u,a.l=Math.min(a.l,n.l-p);else if(i.end>n.r)p=(i.end-n.r)/u,a.r=Math.max(a.r,n.r+p);if(l.start<n.t)h=(n.t-l.start)/d,a.t=Math.min(a.t,n.t-h);else if(l.end>n.b)h=(l.end-n.b)/d,a.b=Math.max(a.b,n.b+h)}function GB(a,n,s){let i=a.drawingArea,{extra:l,additionalAngle:u,padding:d,size:p}=s,h=a.getPointPosition(n,i+l+d,u),g=Math.round(am(fo(h.angle+po))),b=ZB(h.y,p.h,g),y=$B(g),v=WB(h.x,p.w,y);return{visible:!0,x:h.x,y:b,textAlign:y,left:v,top:b,right:v+p.w,bottom:b+p.h}}function XB(a,n){if(!n)return!0;let{left:s,top:i,right:l,bottom:u}=a;return!(as({x:s,y:i},n)||as({x:s,y:u},n)||as({x:l,y:i},n)||as({x:l,y:u},n))}function YB(a,n,s){let i=[],l=a._pointLabels.length,u=a.options,{centerPointLabels:d,display:p}=u.pointLabels,h={extra:Tv(u)/2,additionalAngle:d?na/l:0},g;for(let b=0;b<l;b++){h.padding=s[b],h.size=n[b];let y=GB(a,b,h);if(i.push(y),p==="auto"){if(y.visible=XB(y,g),y.visible)g=y}}return i}function $B(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function WB(a,n,s){if(s==="right")a-=n;else if(s==="center")a-=n/2;return a}function ZB(a,n,s){if(s===90||s===270)a-=n/2;else if(s>270||s<90)a-=n;return a}function QB(a,n,s){let{left:i,top:l,right:u,bottom:d}=s,{backdropColor:p}=n;if(!ht(p)){let h=ti(n.borderRadius),g=Na(n.backdropPadding);a.fillStyle=p;let b=i-g.left,y=l-g.top,v=u-i+g.width,T=d-l+g.height;if(Object.values(h).some((M)=>M!==0))a.beginPath(),zu(a,{x:b,y,w:v,h:T,radius:h}),a.fill();else a.fillRect(b,y,v,T)}}function KB(a,n){let{ctx:s,options:{pointLabels:i}}=a;for(let l=n-1;l>=0;l--){let u=a._pointLabelItems[l];if(!u.visible)continue;let d=i.setContext(a.getPointLabelContext(l));QB(s,d,u);let p=pa(d.font),{x:h,y:g,textAlign:b}=u;ei(s,a._pointLabels[l],h,g+p.lineHeight/2,p,{color:d.color,textAlign:b,textBaseline:"middle"})}}function dI(a,n,s,i){let{ctx:l}=a;if(s)l.arc(a.xCenter,a.yCenter,n,0,ho);else{let u=a.getPointPosition(0,n);l.moveTo(u.x,u.y);for(let d=1;d<i;d++)u=a.getPointPosition(d,n),l.lineTo(u.x,u.y)}}function JB(a,n,s,i,l){let u=a.ctx,d=n.circular,{color:p,lineWidth:h}=n;if(!d&&!i||!p||!h||s<0)return;u.save(),u.strokeStyle=p,u.lineWidth=h,u.setLineDash(l.dash||[]),u.lineDashOffset=l.dashOffset,u.beginPath(),dI(a,s,d,i),u.closePath(),u.stroke(),u.restore()}function eN(a,n,s){return Vs(a,{label:s,index:n,type:"pointLabel"})}class tN extends $d{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pd.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(a){return a},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(a){super(a);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let a=this._padding=Na(Tv(this.options)/2),n=this.width=this.maxWidth-a.width,s=this.height=this.maxHeight-a.height;this.xCenter=Math.floor(this.left+n/2+a.left),this.yCenter=Math.floor(this.top+s/2+a.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!1);this.min=Kt(a)&&!isNaN(a)?a:0,this.max=Kt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Tv(this.options))}generateTickLabels(a){$d.prototype.generateTickLabels.call(this,a),this._pointLabels=this.getLabels().map((n,s)=>{let i=Ot(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){let a=this.options;if(a.display&&a.pointLabels.display)VB(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(a,n,s,i){this.xCenter+=Math.floor((a-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(a,n,s,i))}getIndexAngle(a){let n=ho/(this._pointLabels.length||1),s=this.options.startAngle||0;return fo(a*n+Fs(s))}getDistanceFromCenterForValue(a){if(ht(a))return NaN;let n=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-a)*n;return(a-this.min)*n}getValueForDistanceFromCenter(a){if(ht(a))return NaN;let n=a/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(a){let n=this._pointLabels||[];if(a>=0&&a<n.length){let s=n[a];return eN(this.getContext(),a,s)}}getPointPosition(a,n,s=0){let i=this.getIndexAngle(a)-po+s;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(a,n){return this.getPointPosition(a,this.getDistanceFromCenterForValue(n))}getBasePosition(a){return this.getPointPositionForValue(a||0,this.getBaseValue())}getPointLabelPosition(a){let{left:n,top:s,right:i,bottom:l}=this._pointLabelItems[a];return{left:n,top:s,right:i,bottom:l}}drawBackground(){let{backgroundColor:a,grid:{circular:n}}=this.options;if(a){let s=this.ctx;s.save(),s.beginPath(),dI(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=a,s.fill(),s.restore()}}drawGrid(){let a=this.ctx,n=this.options,{angleLines:s,grid:i,border:l}=n,u=this._pointLabels.length,d,p,h;if(n.pointLabels.display)KB(this,u);if(i.display)this.ticks.forEach((g,b)=>{if(b!==0||b===0&&this.min<0){p=this.getDistanceFromCenterForValue(g.value);let y=this.getContext(b),v=i.setContext(y),T=l.setContext(y);JB(this,v,p,u,T)}});if(s.display){a.save();for(d=u-1;d>=0;d--){let g=s.setContext(this.getPointLabelContext(d)),{color:b,lineWidth:y}=g;if(!y||!b)continue;a.lineWidth=y,a.strokeStyle=b,a.setLineDash(g.borderDash),a.lineDashOffset=g.borderDashOffset,p=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),h=this.getPointPosition(d,p),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(h.x,h.y),a.stroke()}a.restore()}}drawBorder(){}drawLabels(){let a=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;let i=this.getIndexAngle(0),l,u;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(i),a.textAlign="center",a.textBaseline="middle",this.ticks.forEach((d,p)=>{if(p===0&&this.min>=0&&!n.reverse)return;let h=s.setContext(this.getContext(p)),g=pa(h.font);if(l=this.getDistanceFromCenterForValue(this.ticks[p].value),h.showLabelBackdrop){a.font=g.string,u=a.measureText(d.label).width,a.fillStyle=h.backdropColor;let b=Na(h.backdropPadding);a.fillRect(-u/2-b.left,-l-g.size/2-b.top,u+b.width,g.size+b.height)}ei(a,d.label,0,-l,g,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),a.restore()}drawTitle(){}}var Lm={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},bo=Object.keys(Lm);function EM(a,n){return a-n}function OM(a,n){if(ht(n))return null;let s=a._adapter,{parser:i,round:l,isoWeekday:u}=a._parseOpts,d=n;if(typeof i==="function")d=i(d);if(!Kt(d))d=typeof i==="string"?s.parse(d,i):s.parse(d);if(d===null)return null;if(l)d=l==="week"&&(Nu(u)||u===!0)?s.startOf(d,"isoWeek",u):s.startOf(d,l);return+d}function PM(a,n,s,i){let l=bo.length;for(let u=bo.indexOf(a);u<l-1;++u){let d=Lm[bo[u]],p=d.steps?d.steps:Number.MAX_SAFE_INTEGER;if(d.common&&Math.ceil((s-n)/(p*d.size))<=i)return bo[u]}return bo[l-1]}function aN(a,n,s,i,l){for(let u=bo.length-1;u>=bo.indexOf(s);u--){let d=bo[u];if(Lm[d].common&&a._adapter.diff(l,i,d)>=n-1)return d}return bo[s?bo.indexOf(s):0]}function oN(a){for(let n=bo.indexOf(a)+1,s=bo.length;n<s;++n)if(Lm[bo[n]].common)return bo[n]}function BM(a,n,s){if(!s)a[n]=!0;else if(s.length){let{lo:i,hi:l}=om(s,n),u=s[i]>=n?s[i]:s[l];a[u]=!0}}function nN(a,n,s,i){let l=a._adapter,u=+l.startOf(n[0].value,i),d=n[n.length-1].value,p,h;for(p=u;p<=d;p=+l.add(p,1,i))if(h=s[p],h>=0)n[h].major=!0;return n}function NM(a,n,s){let i=[],l={},u=n.length,d,p;for(d=0;d<u;++d)p=n[d],l[p]=d,i.push({value:p,major:!1});return u===0||!s?i:nN(a,i,l,s)}class wv extends cl{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(a){super(a);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(a,n={}){let s=a.time||(a.time={}),i=this._adapter=new HO._date(a.adapters.date);i.init(n),Ou(s.displayFormats,i.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(a),this._normalized=n.normalized}parse(a,n){if(a===void 0)return null;return OM(this,a)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let a=this.options,n=this._adapter,s=a.time.unit||"day",{min:i,max:l,minDefined:u,maxDefined:d}=this.getUserBounds();function p(h){if(!u&&!isNaN(h.min))i=Math.min(i,h.min);if(!d&&!isNaN(h.max))l=Math.max(l,h.max)}if(!u||!d){if(p(this._getLabelBounds()),a.bounds!=="ticks"||a.ticks.source!=="labels")p(this.getMinMax(!1))}i=Kt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),l=Kt(l)&&!isNaN(l)?l:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,l-1),this.max=Math.max(i+1,l)}_getLabelBounds(){let a=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;if(a.length)n=a[0],s=a[a.length-1];return{min:n,max:s}}buildTicks(){let a=this.options,n=a.time,s=a.ticks,i=s.source==="labels"?this.getLabelTimestamps():this._generate();if(a.bounds==="ticks"&&i.length)this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1];let l=this.min,u=this.max,d=bk(i,l,u);if(this._unit=n.unit||(s.autoSkip?PM(n.minUnit,this.min,this.max,this._getLabelCapacity(l)):aN(this,d.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:oN(this._unit),this.initOffsets(i),a.reverse)d.reverse();return NM(this,d,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((a)=>+a.value))}initOffsets(a=[]){let n=0,s=0,i,l;if(this.options.offset&&a.length){if(i=this.getDecimalForValue(a[0]),a.length===1)n=1-i;else n=(this.getDecimalForValue(a[1])-i)/2;if(l=this.getDecimalForValue(a[a.length-1]),a.length===1)s=l;else s=(l-this.getDecimalForValue(a[a.length-2]))/2}let u=a.length<3?0.5:0.25;n=mo(n,0,u),s=mo(s,0,u),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let a=this._adapter,n=this.min,s=this.max,i=this.options,l=i.time,u=l.unit||PM(l.minUnit,n,s,this._getLabelCapacity(n)),d=Ke(i.ticks.stepSize,1),p=u==="week"?l.isoWeekday:!1,h=Nu(p)||p===!0,g={},b=n,y,v;if(h)b=+a.startOf(b,"isoWeek",p);if(b=+a.startOf(b,h?"day":u),a.diff(s,n,u)>1e5*d)throw Error(n+" and "+s+" are too far apart with stepSize of "+d+" "+u);let T=i.ticks.source==="data"&&this.getDataTimestamps();for(y=b,v=0;y<s;y=+a.add(y,d,u),v++)BM(g,y,T);if(y===s||i.bounds==="ticks"||v===1)BM(g,y,T);return Object.keys(g).sort(EM).map((M)=>+M)}getLabelForValue(a){let n=this._adapter,s=this.options.time;if(s.tooltipFormat)return n.format(a,s.tooltipFormat);return n.format(a,s.displayFormats.datetime)}format(a,n){let i=this.options.time.displayFormats,l=this._unit,u=n||i[l];return this._adapter.format(a,u)}_tickFormatFunction(a,n,s,i){let l=this.options,u=l.ticks.callback;if(u)return Ot(u,[a,n,s],this);let d=l.time.displayFormats,p=this._unit,h=this._majorUnit,g=p&&d[p],b=h&&d[h],y=s[n],v=h&&b&&y&&y.major;return this._adapter.format(a,i||(v?b:g))}generateTickLabels(a){let n,s,i;for(n=0,s=a.length;n<s;++n)i=a[n],i.label=this._tickFormatFunction(i.value,n,a)}getDecimalForValue(a){return a===null?NaN:(a-this.min)/(this.max-this.min)}getPixelForValue(a){let n=this._offsets,s=this.getDecimalForValue(a);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(a){let n=this.options.ticks,s=this.ctx.measureText(a).width,i=Fs(this.isHorizontal()?n.maxRotation:n.minRotation),l=Math.cos(i),u=Math.sin(i),d=this._resolveTickFontOptions(0).size;return{w:s*l+d*u,h:s*u+d*l}}_getLabelCapacity(a){let n=this.options.time,s=n.displayFormats,i=s[n.unit]||s.millisecond,l=this._tickFormatFunction(a,0,NM(this,[a],this._majorUnit),i),u=this._getLabelSize(l),d=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return d>0?d:1}getDataTimestamps(){let a=this._cache.data||[],n,s;if(a.length)return a;let i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n<s;++n)a=a.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(a)}getLabelTimestamps(){let a=this._cache.labels||[],n,s;if(a.length)return a;let i=this.getLabels();for(n=0,s=i.length;n<s;++n)a.push(OM(this,i[n]));return this._cache.labels=this._normalized?a:this.normalize(a)}normalize(a){return qx(a.sort(EM))}}function gm(a,n,s){let i=0,l=a.length-1,u,d,p,h;if(s){if(n>=a[i].pos&&n<=a[l].pos)({lo:i,hi:l}=Zr(a,"pos",n));({pos:u,time:p}=a[i]),{pos:d,time:h}=a[l]}else{if(n>=a[i].time&&n<=a[l].time)({lo:i,hi:l}=Zr(a,"time",n));({time:u,pos:p}=a[i]),{time:d,pos:h}=a[l]}let g=d-u;return g?p+(h-p)*(n-u)/g:p}class sN extends wv{static id="timeseries";static defaults=wv.defaults;constructor(a){super(a);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let a=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(a);this._minPos=gm(n,this.min),this._tableRange=gm(n,this.max)-this._minPos,super.initOffsets(a)}buildLookupTable(a){let{min:n,max:s}=this,i=[],l=[],u,d,p,h,g;for(u=0,d=a.length;u<d;++u)if(h=a[u],h>=n&&h<=s)i.push(h);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(u=0,d=i.length;u<d;++u)if(g=i[u+1],p=i[u-1],h=i[u],Math.round((g+p)/2)!==h)l.push({time:h,pos:u/(d-1)});return l}_generate(){let a=this.min,n=this.max,s=super.getDataTimestamps();if(!s.includes(a)||!s.length)s.splice(0,0,a);if(!s.includes(n)||s.length===1)s.push(n);return s.sort((i,l)=>i-l)}_getTimestampsForTable(){let a=this._cache.all||[];if(a.length)return a;let n=this.getDataTimestamps(),s=this.getLabelTimestamps();if(n.length&&s.length)a=this.normalize(n.concat(s));else a=n.length?n:s;return a=this._cache.all=a,a}getDecimalForValue(a){return(gm(this._table,a)-this._minPos)/this._tableRange}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return gm(this._table,s*this._tableRange+this._minPos,!0)}}dl.register(Pv,Bv,Dv,Hu,_v,lI,cI,iI,sI);var uR=Q(bI(),1);var er=Q(dt(),1);var km=Q(dt(),1);var Tm=(...a)=>a.filter((n,s,i)=>Boolean(n)&&n.trim()!==""&&i.indexOf(n)===s).join(" ").trim();var xI=(a)=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var vI=(a)=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,i)=>i?i.toUpperCase():s.toLowerCase());var Hv=(a)=>{let n=vI(a);return n.charAt(0).toUpperCase()+n.slice(1)};var Qd=Q(dt(),1);var wm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var SI=(a)=>{for(let n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};var Fu=Q(dt(),1),fN=Fu.createContext({});var LI=()=>Fu.useContext(fN);var CI=Qd.forwardRef(({color:a,size:n,strokeWidth:s,absoluteStrokeWidth:i,className:l="",children:u,iconNode:d,...p},h)=>{let{size:g=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:v="currentColor",className:T=""}=LI()??{},M=i??y?Number(s??b)*24/Number(n??g):s??b;return Qd.createElement("svg",{ref:h,...wm,width:n??g??wm.width,height:n??g??wm.height,stroke:a??v,strokeWidth:M,className:Tm("lucide",T,l),...!u&&!SI(p)&&{"aria-hidden":"true"},...p},[...d.map(([I,w])=>Qd.createElement(I,w)),...Array.isArray(u)?u:[u]])});var we=(a,n)=>{let s=km.forwardRef(({className:i,...l},u)=>km.createElement(CI,{ref:u,iconNode:n,className:Tm(`lucide-${xI(Hv(a))}`,`lucide-${a}`,i),...l}));return s.displayName=Hv(a),s};var pN=[["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"}]],ni=we("circle-alert",pN);var hN=[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],si=we("face-slightly-smiling",hN);var mN=[["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"}]],Kd=we("activity",mN);var gN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Jd=we("arrow-left",gN);var yN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pl=we("check",yN);var bN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ys=we("chevron-down",bN);var xN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hl=we("chevron-right",xN);var vN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ef=we("chevron-up",vN);var SN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],tf=we("clock",SN);var LN=[["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"}]],ml=we("coins",LN);var CN=[["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"}]],gl=we("copy",CN);var TN=[["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"}]],af=we("cpu",TN);var wN=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],of=we("folder",wN);var kN=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],nf=we("gauge",kN);var MN=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],sf=we("hash",MN);var IN=[["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"}]],rf=we("inbox",IN);var AN=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],lf=we("layout-dashboard",AN);var RN=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],uf=we("list-tree",RN);var _N=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],cf=we("menu",_N);var DN=[["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"}]],df=we("monitor",DN);var EN=[["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"}]],ff=we("moon",EN);var ON=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],pf=we("plug",ON);var PN=[["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"}]],yl=we("refresh-cw",PN);var BN=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],hf=we("star",BN);var NN=[["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"}]],mf=we("sun",NN);var zN=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],gf=we("trending-up",zN);var HN=[["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"}]],yf=we("wrench",HN);var UN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$s=we("x",UN);var FN=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],bf=we("zap",FN);var WI=Q(dt(),1);var xf=[{id:"overview",label:"Overview",icon:lf},{id:"requests",label:"Requests",icon:Kd},{id:"traces",label:"Traces",icon:uf},{id:"errors",label:"Errors",icon:ni},{id:"models",label:"Models",icon:af},{id:"providers",label:"Providers",icon:pf},{id:"tools",label:"Tools",icon:yf},{id:"costs",label:"Costs",icon:ml},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:si},{id:"projects",label:"Projects",icon:of},{id:"gain",label:"Gain",icon:gf}];var sn=Q(de(),1);function Uv({activeSection:a,onSectionChange:n,className:s=""}){return sn.jsxDEV("aside",{className:`stats-nav-rail ${s}`,children:[sn.jsxDEV("div",{className:"stats-nav-rail-header",children:sn.jsxDEV("div",{className:"stats-logo-container",children:[sn.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),sn.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),sn.jsxDEV("nav",{className:"stats-nav-rail-menu",children:xf.map((i)=>{let l=i.id===a,u=i.icon;return sn.jsxDEV("button",{type:"button",onClick:()=>n(i.id),className:"stats-nav-rail-item","data-active":l?"true":"false","aria-current":l?"page":void 0,children:[sn.jsxDEV(u,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),sn.jsxDEV("span",{className:"stats-nav-rail-item-label",children:i.label},void 0,!1,void 0,this)]},i.id,!0,void 0,this)})},void 0,!1,void 0,this),sn.jsxDEV("div",{className:"stats-nav-rail-footer",children:sn.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Fv=Q(de(),1),VN=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function TI({value:a,onChange:n,className:s=""}){return Fv.jsxDEV("div",{className:`stats-range-control ${s}`,role:"radiogroup","aria-label":"Select time range",children:VN.map((i)=>{let l=i.value===a;return Fv.jsxDEV("button",{type:"button",role:"radio","aria-checked":l,"data-active":l?"true":"false",className:"stats-range-control-btn",onClick:()=>n(i.value),children:i.label},i.value,!1,void 0,this)})},void 0,!1,void 0,this)}var qv=Q(dt(),1);class wI extends Error{status;endpoint;constructor(a,n,s){super(s);this.name="ApiError",this.status=a,this.endpoint=n}}async function ao(a,n){let s=await fetch(a,n);if(!s.ok)throw new wI(s.status,a,`HTTP error ${s.status} on ${a}`);return s.json()}async function kI(a="24h",n){return ao(`/api/stats/overview?range=${encodeURIComponent(a)}`,{signal:n})}async function MI(a="24h",n){return ao(`/api/stats/model-dashboard?range=${encodeURIComponent(a)}`,{signal:n})}async function II(a="24h",n){return ao(`/api/stats/costs?range=${encodeURIComponent(a)}`,{signal:n})}async function Mm(a=50,n){return ao(`/api/stats/recent?limit=${a}`,{signal:n})}async function AI(a="24h",n=50,s){return ao(`/api/stats/errors?range=${encodeURIComponent(a)}&limit=${n}`,{signal:s})}async function RI(a,n){return ao(`/api/request/${a}`,{signal:n})}async function _I(a){return ao("/api/sync",{signal:a})}async function DI(a="24h",n){return ao(`/api/stats/behavior?range=${encodeURIComponent(a)}`,{signal:n})}async function EI(a="24h",n){return ao(`/api/stats/folders?range=${encodeURIComponent(a)}`,{signal:n})}async function OI(a="24h",n,s){let i=new URLSearchParams({range:a});if(n)i.set("project",n);return ao(`/api/stats/gain?${i}`,{signal:s})}async function PI(a="24h",n){return ao(`/api/stats/tools?range=${encodeURIComponent(a)}`,{signal:n})}async function BI(a="24h",n){return ao(`/api/stats/providers?range=${encodeURIComponent(a)}`,{signal:n})}async function NI(a=100,n,s){let i=new URLSearchParams({limit:String(a)});if(n)i.set("q",n);return ao(`/api/sessions?${i}`,{signal:s})}async function zI(a,n){return ao(`/api/session/trace?file=${encodeURIComponent(a)}`,{signal:n})}async function HI(a,n,s){return ao(`/api/session/entry?file=${encodeURIComponent(a)}&id=${encodeURIComponent(n)}`,{signal:s})}var vf=Q(de(),1);function UI({onSyncStart:a,onSyncComplete:n,className:s=""}){let[i,l]=qv.useState(!1),[u,d]=qv.useState(null),p=async()=>{if(i)return;if(l(!0),d(null),a)a();try{let h=await _I(),g={processed:typeof h?.processed==="number"?h.processed:0,files:typeof h?.files==="number"?h.files:0,totalMessages:typeof h?.totalMessages==="number"?h.totalMessages:0};if(d({type:"success",message:`Synced: ${g.processed} new request${g.processed===1?"":"s"} found.`}),n)n({success:!0,data:g})}catch(h){let g=h instanceof Error?h.message:String(h);if(d({type:"error",message:`Sync failed: ${g}`}),n)n({success:!1,error:g})}finally{l(!1)}};return vf.jsxDEV("div",{className:`stats-sync-container ${s}`,children:[u&&vf.jsxDEV("span",{className:"stats-sync-status-msg","data-type":u.type,children:u.message},void 0,!1,void 0,this),vf.jsxDEV("button",{type:"button",onClick:p,disabled:i,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":i,children:[vf.jsxDEV(yl,{size:14,className:`stats-sync-icon ${i?"stats-spin":""}`},void 0,!1,void 0,this),i?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Im=Q(dt(),1),FI="omp-stats-theme",qI="(prefers-color-scheme: dark)";function jN(){if(typeof localStorage>"u")return"system";let a=localStorage.getItem(FI);return a==="light"||a==="dark"||a==="system"?a:"system"}function VI(){if(typeof window>"u")return"dark";return window.matchMedia(qI).matches?"dark":"light"}var xl=jN(),Sf=xl==="system"?VI():xl,Vv=new Set;function jI(){for(let a of Vv)a()}function jv(){if(Sf=xl==="system"?VI():xl,typeof document<"u")document.documentElement.dataset.theme=Sf,document.documentElement.style.colorScheme=Sf}if(typeof window<"u")jv(),window.matchMedia(qI).addEventListener("change",()=>{if(xl==="system")jv(),jI()});function GN(a){if(xl=a,typeof localStorage<"u")localStorage.setItem(FI,a);jv(),jI()}function Gv(a){return Vv.add(a),()=>Vv.delete(a)}function $t(){return Im.useSyncExternalStore(Gv,()=>Sf,()=>"dark")}function GI(){let a=Im.useSyncExternalStore(Gv,()=>xl,()=>"system"),n=Im.useSyncExternalStore(Gv,()=>Sf,()=>"dark");return{preference:a,resolved:n,setPreference:GN}}var Xv=Q(de(),1),XN={system:"light",light:"dark",dark:"system"},YN={system:df,light:mf,dark:ff},XI={system:"System theme",light:"Light theme",dark:"Dark theme"};function YI(){let{preference:a,setPreference:n}=GI(),s=YN[a];return Xv.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>n(XN[a]),"aria-label":`${XI[a]} (click to switch)`,title:`${XI[a]} — click to switch`,children:Xv.jsxDEV(s,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rn=Q(de(),1);function $I({activeSection:a,range:n,onRangeChange:s,updatedAt:i,onSyncStart:l,onSyncComplete:u,onMenuToggle:d,className:p=""}){let g=xf.find((y)=>y.id===a)?.label||"Observability",b=(y)=>{if(!y)return"Not updated";return`Updated ${new Date(y).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return rn.jsxDEV("header",{className:`stats-top-bar ${p}`,children:[rn.jsxDEV("div",{className:"stats-top-bar-left",children:[d&&rn.jsxDEV("button",{type:"button",onClick:d,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:rn.jsxDEV(cf,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),rn.jsxDEV("h1",{className:"stats-page-title",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rn.jsxDEV("div",{className:"stats-top-bar-right",children:[rn.jsxDEV("div",{className:"stats-top-bar-meta",children:rn.jsxDEV("span",{className:"stats-last-updated",title:i?new Date(i).toLocaleString():void 0,children:b(i)},void 0,!1,void 0,this)},void 0,!1,void 0,this),rn.jsxDEV(TI,{value:n,onChange:s},void 0,!1,void 0,this),rn.jsxDEV(YI,{},void 0,!1,void 0,this),rn.jsxDEV(UI,{onSyncStart:l,onSyncComplete:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ga=Q(de(),1);function ZI({activeSection:a,onSectionChange:n,range:s,onRangeChange:i,updatedAt:l,onSyncStart:u,onSyncComplete:d,children:p}){let[h,g]=WI.useState(!1),b=(y)=>{n(y),g(!1)};return Ga.jsxDEV("div",{className:"stats-app-container",children:[Ga.jsxDEV(Uv,{activeSection:a,onSectionChange:b,className:"stats-desktop-nav"},void 0,!1,void 0,this),h&&Ga.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>g(!1),role:"presentation",children:Ga.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(y)=>y.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[Ga.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[Ga.jsxDEV("div",{className:"stats-logo-container",children:[Ga.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),Ga.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ga.jsxDEV("button",{type:"button",onClick:()=>g(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:Ga.jsxDEV($s,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ga.jsxDEV(Uv,{activeSection:a,onSectionChange:b,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ga.jsxDEV("div",{className:"stats-main-pane",children:[Ga.jsxDEV($I,{activeSection:a,range:s,onRangeChange:i,updatedAt:l,onSyncStart:u,onSyncComplete:d,onMenuToggle:()=>g(!0)},void 0,!1,void 0,this),Ga.jsxDEV("main",{className:"stats-content-area",children:Ga.jsxDEV("div",{className:"stats-content-inner",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var rs=Q(dt(),1),$N=["overview","requests","traces","errors","models","providers","tools","costs","behavior","projects","gain"],QI=["1h","24h","7d","30d","90d","all"];function Yv(a){let n=a.replace(/^#\/?/,""),[s,i]=n.split("?"),l=$N.includes(s)?s:"overview",u="24h",d=null;if(i){let p=new URLSearchParams(i),h=p.get("range");if(QI.includes(h))u=h;d=p.get("s")}return{section:l,range:u,session:d}}function $v(a,n,s){let i=s?`&s=${encodeURIComponent(s)}`:"";return`/${a}?range=${n}${i}`}function KI(){let[a,n]=rs.useState(()=>Yv(window.location.hash));rs.useEffect(()=>{let d=()=>{n(Yv(window.location.hash))};return window.addEventListener("hashchange",d),()=>{window.removeEventListener("hashchange",d)}},[]);let s=rs.useCallback((d,p,h)=>{window.location.hash=$v(d,p,h)},[]),i=rs.useCallback((d)=>{s(d,a.range,d==="traces"?a.session:null)},[a.range,a.session,s]),l=rs.useCallback((d)=>{let p=QI.includes(d)?d:"24h";s(a.section,p,a.session)},[a.section,a.session,s]),u=rs.useCallback((d)=>{s(a.section,a.range,d)},[a.section,a.range,s]);return rs.useEffect(()=>{let d=window.location.hash,p=Yv(d),h=`#${$v(p.section,p.range,p.session)}`;if(d!==h)window.location.hash=$v(p.section,p.range,p.session)},[]),{section:a.section,setSection:i,range:a.range,setRange:l,session:a.session,setSession:u}}var JI=["January","February","March","April","May","June","July","August","September","October","November","December"],eA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],WN=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function ri(a,n=2){return String(a).padStart(n,"0")}function ZN(a,n){let s=a.getMonth(),i=a.getDay(),l=a.getHours(),u=l%12||12;switch(n){case"yyyy":return ri(a.getFullYear(),4);case"yy":return ri(a.getFullYear()%100);case"MMMM":return JI[s];case"MMM":return JI[s].slice(0,3);case"MM":return ri(s+1);case"M":return String(s+1);case"dd":return ri(a.getDate());case"d":return String(a.getDate());case"EEEE":return eA[i];case"EEE":return eA[i].slice(0,3);case"HH":return ri(l);case"H":return String(l);case"hh":return ri(u);case"h":return String(u);case"mm":return ri(a.getMinutes());case"m":return String(a.getMinutes());case"ss":return ri(a.getSeconds());case"s":return String(a.getSeconds());case"a":return l<12?"AM":"PM"}}function aA(a){let n=a instanceof Date?new Date(a.getTime()):new Date(a);if(Number.isNaN(n.getTime()))throw RangeError("Invalid time value");return n}function Cn(a,n){let s=aA(a),i="";for(let l=0;l<n.length;){if(n[l]==="'"){if(n[l+1]==="'"){i+="'",l+=2;continue}l++;while(l<n.length){if(n[l]!=="'"){i+=n[l++];continue}if(n[l+1]==="'"){i+="'",l+=2;continue}l++;break}continue}let u=n.slice(l),d=WN.find((h)=>u.startsWith(h));if(d){i+=ZN(s,d),l+=d.length;continue}let p=n[l++];if(/[A-Za-z]/.test(p))throw RangeError(`Format string contains an unescaped latin alphabet character \`${p}\``);i+=p}return i}function ii(a,n){return`${a} ${a===1?n:`${n}s`}`}function QN(a,n){let s=(n.getFullYear()-a.getFullYear())*12+n.getMonth()-a.getMonth();if(s===0)return 0;let i=new Date(a);i.setDate(1),i.setFullYear(a.getFullYear(),a.getMonth()+s,1);let l=new Date(i.getFullYear(),i.getMonth()+1,0).getDate();if(i.setDate(Math.min(a.getDate(),l)),i.getTime()>n.getTime())s--;return s}function tA(a,n){let s=(n.getTime()-a.getTime())/1000,i=(n.getTimezoneOffset()-a.getTimezoneOffset())*60,l=Math.round((s-i)/60);if(l<2)return l===0?"less than a minute":"1 minute";if(l<45)return ii(l,"minute");if(l<90)return"about 1 hour";if(l<1440)return`about ${ii(Math.round(l/60),"hour")}`;if(l<2520)return"1 day";if(l<43200)return ii(Math.round(l/1440),"day");if(l<86400)return`about ${ii(Math.round(l/43200),"month")}`;let u=QN(a,n);if(u<12)return ii(Math.round(l/43200),"month");let d=Math.trunc(u/12),p=u%12;if(p<3)return`about ${ii(d,"year")}`;if(p<9)return`over ${ii(d,"year")}`;return`almost ${ii(d+1,"year")}`}function oA(a,n={}){let s=aA(a),i=new Date(Date.now()),l=s.getTime()>i.getTime(),u=l?tA(i,s):tA(s,i);if(!n.addSuffix)return u;return l?`in ${u}`:`${u} ago`}var ba=Q(dt(),1);var Wv=Q(nA(),1),Ho=Q(dt(),1);var rA="label";function sA(a,n){if(typeof a==="function")a(n);else if(a)a.current=n}function JN(a,n){let s=a.options;if(s&&n)Object.assign(s,n)}function iA(a,n){a.labels=n}function lA(a,n,s=rA){let i=[];a.datasets=n.map((l)=>{let u=a.datasets.find((d)=>d[s]===l[s]);if(!u||!l.data||i.includes(u))return{...l};return i.push(u),Object.assign(u,l),u})}function ez(a,n=rA){let s={labels:[],datasets:[]};return iA(s,a.labels),lA(s,a.datasets,n),s}function tz(a,n){let{height:s=150,width:i=300,redraw:l=!1,datasetIdKey:u,type:d,data:p,options:h,plugins:g=[],fallbackContent:b,updateMode:y,...v}=a,T=Ho.useRef(null),M=Ho.useRef(null),I=()=>{if(!T.current)return;M.current=new dl(T.current,{type:d,data:ez(p,u),options:h&&{...h},plugins:g}),sA(n,M.current)},w=()=>{if(sA(n,null),M.current)M.current.destroy(),M.current=null};return Ho.useEffect(()=>{if(!l&&M.current&&h)JN(M.current,h)},[l,h]),Ho.useEffect(()=>{if(!l&&M.current)iA(M.current.config.data,p.labels)},[l,p.labels]),Ho.useEffect(()=>{if(!l&&M.current&&p.datasets)lA(M.current.config.data,p.datasets,u)},[l,p.datasets]),Ho.useEffect(()=>{if(!M.current)return;if(l)w(),setTimeout(I);else M.current.update(y)},[l,h,p.labels,p.datasets,y]),Ho.useEffect(()=>{if(!M.current)return;w(),setTimeout(I)},[d]),Ho.useEffect(()=>(I(),()=>w()),[]),Wv.jsx("canvas",{ref:T,role:"img",height:s,width:i,...v,children:b})}var az=Ho.forwardRef(tz);function uA(a,n){return dl.register(n),Ho.forwardRef((s,i)=>Wv.jsx(az,{...s,ref:i,type:a}))}var Xa=uA("line",Iv),li=uA("bar",Mv);var bt=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"];function cA(a){let n=[...a].sort((s,i)=>i.totalRequests-s.totalRequests||`${s.model}::${s.provider}`.localeCompare(`${i.model}::${i.provider}`));return new Map(n.map((s,i)=>[`${s.model}::${s.provider}`,bt[i%bt.length]]))}var sa={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function is(a){let{chartTheme:n,showLegend:s,defaultLabel:i,formatValue:l,footer:u}=a;return{legend:{display:s,position:"top",align:"start",labels:{color:n.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:n.tooltipBackground,titleColor:n.tooltipTitle,bodyColor:n.tooltipBody,borderColor:n.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(d)=>{let p=d.dataset.label??i,h=d.parsed.y??0;return`${p}: ${l(h)}`},...u?{footer:u}:{}}}}}function ls(a){let{chartTheme:n,formatY:s}=a,i={grid:{color:n.grid,drawBorder:!1},ticks:{color:n.tick,font:{size:11}}},l={...i,ticks:{...i.ticks,callback:(u)=>s(Number(u))},min:0};return{sharedScaleBase:i,yScale:l}}function qu(a){return{borderColor:a,backgroundColor:`${a}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Sl(a){return{backgroundColor:a,borderColor:a,borderWidth:0,borderRadius:4,maxBarThickness:56}}function ui(a,n){return a.datasets.map((s,i)=>({label:s.label,data:s.data,...n(i)}))}function Am(a,n,s){if(a.length===0)return{labels:[],datasets:[]};let{initBucket:i,accumulate:l,bucketToValue:u}=s,d=new Map;for(let h of a){let g=d.get(h.timestamp)??i();l(g,h),d.set(h.timestamp,g)}let p=[...d.entries()].sort((h,g)=>h[0]-g[0]);return{labels:p.map(([h])=>Cn(new Date(h),"MMM d")),datasets:[{label:n,data:p.map(([,h])=>u(h))}]}}function Vu(a,n){if(a.length===0)return{labels:[],datasets:[]};let{topN:s=5,rankWeight:i,initBucket:l,accumulate:u,bucketToValue:d}=n,p=new Map;for(let A of a){let B=`${A.model}::${A.provider}`,z=p.get(B);if(z)z.weight+=i(A);else p.set(B,{model:A.model,provider:A.provider,weight:i(A)})}let g=[...p.entries()].sort((A,B)=>B[1].weight-A[1].weight).slice(0,s),b=new Set(g.map(([A])=>A)),y=new Map;for(let[,{model:A}]of g)y.set(A,(y.get(A)??0)+1);let v=new Map;for(let[A,{model:B,provider:z}]of g)v.set(A,(y.get(B)??0)>1?`${B} (${z})`:B);let T=[...new Set(a.map((A)=>A.timestamp))].sort((A,B)=>A-B),M=g.map(([A])=>v.get(A)??A);if(a.some((A)=>!b.has(`${A.model}::${A.provider}`)))M.push("Other");let w=new Map;for(let A of T)w.set(A,{});for(let A of a){let B=`${A.model}::${A.provider}`,z=b.has(B)?v.get(B)??A.model:"Other",H=w.get(A.timestamp);if(!H)continue;let V=H[z]??l();u(V,A),H[z]=V}return{labels:T.map((A)=>Cn(new Date(A),"MMM d")),datasets:M.map((A)=>({label:A,data:T.map((B)=>{let z=w.get(B)?.[A];return z?d(z):0})}))}}var Wt=Q(de(),1);function Ws(a){return{borderColor:a,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function Rm({timestamps:a,values:n,color:s}){let i={labels:a.map((u)=>Cn(new Date(u),"MMM d")),datasets:[{data:n,...Ws(s)}]};return Wt.jsxDEV(Xa,{data:i,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function _m(a){return{legend:{display:!0,position:"top",labels:{color:a.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:a.tooltipBackground,titleColor:a.tooltipTitle,bodyColor:a.tooltipBody,borderColor:a.tooltipBorder,borderWidth:1,cornerRadius:8}}}function dA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}},min:0}}}function fA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:a.tick,font:{size:11}}}}}function Dm({title:a,subtitle:n,children:s}){return Wt.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[Wt.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[Wt.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),n?Wt.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:n},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),Wt.jsxDEV("div",{className:"overflow-x-auto",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oz(a){if(a==="right")return"text-right";if(a==="center")return"text-center";return""}function Em({columns:a,gridTemplate:n}){return Wt.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:n},children:[a.map((s)=>Wt.jsxDEV("div",{className:oz(s.align),children:s.label},s.label,!1,void 0,this)),Wt.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Om({children:a}){return Wt.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:a},void 0,!1,void 0,this)}function Pm({model:a,provider:n}){return Wt.jsxDEV("div",{children:[Wt.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),Wt.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Bm({gridTemplate:a,cells:n,trendCell:s,isExpanded:i,onToggle:l,expandedContent:u}){return Wt.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[Wt.jsxDEV("button",{type:"button",onClick:l,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:Wt.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:a},children:[n,Wt.jsxDEV("div",{className:"h-10",children:s},void 0,!1,void 0,this),Wt.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:i?Wt.jsxDEV(ef,{size:16},void 0,!1,void 0,this):Wt.jsxDEV(Ys,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i?Wt.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:u},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Nm(){return Wt.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function zm({message:a="No data available"}){return Wt.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:a},void 0,!1,void 0,this)}function Ce(a){return a.toLocaleString()}function lt(a){return a.toLocaleString(void 0,{notation:"compact"})}function us(a,n){if(a===0)return"$0";let s=n!==void 0?n:a>0&&a<0.01?4:2;return`$${a.toLocaleString(void 0,{minimumFractionDigits:s,maximumFractionDigits:s})}`}function ka(a,n,s){return a===0&&n>0?"N/A":us(a,s)}function ln(a,n){let s=a.provider==="xai-oauth"&&a.usage.totalTokens>0&&a.usage.cost.total===0?1:0;return ka(a.usage.cost.total,s,n)}function Ht(a,n=1){return`${(a*100).toFixed(n)}%`}function rt(a,n){if(a===null)return"-";let s=a/1000,i=n!==void 0?n:s<1?2:1;return`${s.toFixed(i)}s`}function Hm(a){if(a===null)return"-";return a.toFixed(1)}function za(a){return oA(new Date(a),{addSuffix:!0})}function Zv(a){if(a>=1e9)return`${(a/1e9).toFixed(1)} GB`;if(a>=1e6)return`${(a/1e6).toFixed(1)} MB`;if(a>=1000)return`${(a/1000).toFixed(1)} KB`;return`${a} B`}var Ha=Q(dt(),1),ci=new Map,nz=64;function Vt(a,n,s){let i=JSON.stringify(a),[l,u]=Ha.useState(()=>ci.get(i)?.data??null),[d,p]=Ha.useState(null),[h,g]=Ha.useState(()=>!ci.has(i)),[b,y]=Ha.useState(!1),[v,T]=Ha.useState(()=>ci.get(i)?.updatedAt??null),M=Ha.useRef(n);M.current=n;let I=Ha.useRef(i);I.current=i;let w=s?.enabled??!0,A=s?.pollMs,B=Ha.useRef(null),z=Ha.useRef(!1);z.current=l!==null;let H=Ha.useCallback(async(G)=>{if(B.current)B.current.abort();let X=new AbortController;if(B.current=X,G)y(!0);else g(!0),u(null);p(null);try{let Y=await M.current(X.signal);if(X.signal.aborted)return;if(ci.set(I.current,{data:Y,updatedAt:Date.now()}),ci.size>nz){let J=ci.keys().next().value;if(J!==void 0)ci.delete(J)}u(Y),T(Date.now()),p(null)}catch(Y){if(X.signal.aborted)return;p(Y instanceof Error?Y:Error(String(Y)))}finally{if(!X.signal.aborted){if(g(!1),y(!1),B.current===X)B.current=null}}},[]);Ha.useEffect(()=>{if(!w){g(!1),y(!1);return}let G=ci.get(i);if(G)u(G.data),T(G.updatedAt),g(!1),H(!0);else H(z.current);return()=>{if(B.current)B.current.abort(),B.current=null}},[i,w,H]),Ha.useEffect(()=>{if(!w||!A)return;let G=setInterval(()=>{if(document.hidden)return;H(!0)},A);return()=>{clearInterval(G)}},[w,A,H]);let V=Ha.useCallback(async()=>{await H(!0)},[H]);return{data:l,error:d,loading:h,refreshing:b,refetch:V,updatedAt:v}}var pA=3600000,Um=24*pA,sz=300000,hA={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:sz,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:pA,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Um,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Um,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Um,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Um,bucketCount:0,tickFormat:"MMM d"}};function Ll(a){return hA[a]}function Lf(a,n){return Cn(new Date(a),hA[n].tickFormat)}var rz=["main","subagent","advisor"];function Fm(a){return a.totalInputTokens+a.totalOutputTokens+a.totalCacheReadTokens+a.totalCacheWriteTokens}function mA(a){let n=new Map;for(let d of a)n.set(d.agentType,d);let s=rz.map((d)=>n.get(d)).filter((d)=>d!==void 0),i=s.reduce((d,p)=>d+Fm(p),0),l=s.reduce((d,p)=>d+p.totalCost,0),u=s.map((d)=>{let p=Fm(d);return{agentType:d.agentType,tokens:p,requests:d.totalRequests,cost:d.totalCost,share:i>0?p/i:0}});return{totalTokens:i,totalCost:l,segments:u}}function gA(a){let n=a.reduce((h,g)=>h+g.cost,0),s=a.reduce((h,g)=>h+g.unpricedRequests,0),i=new Set(a.map((h)=>h.timestamp)).size,l=i>0?n/i:0,u=new Map;for(let h of a)u.set(h.model,(u.get(h.model)??0)+h.cost);let d="",p=0;for(let[h,g]of u)if(g>p)d=h,p=g;return{totalCost:n,unpricedRequests:s,avgDailyCost:l,topModelName:d,topModelCost:p}}function yA(a,n){if(a.length===0)return new Map;let s=Ll(n),i=s.bucketMs,l=s.bucketCount,u=l>0?(()=>{let h=a.reduce((y,v)=>Math.max(y,v.timestamp),0),b=(h>0?h:Math.floor(Date.now()/i)*i)-(l-1)*i;return Array.from({length:l},(y,v)=>b+v*i)})():Array.from(new Set(a.map((h)=>h.timestamp))).sort((h,g)=>h-g),d=new Map(u.map((h,g)=>[h,g])),p=new Map;for(let h of a){let g=`${h.model}::${h.provider}`,b=p.get(g);if(!b)b={label:`${h.model} (${h.provider})`,data:u.map((v)=>({timestamp:v,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},p.set(g,b);let y=d.get(h.timestamp);if(y===void 0)continue;b.data[y]={timestamp:h.timestamp,avgTtftSeconds:h.avgTtft!==null?h.avgTtft/1000:null,avgTokensPerSecond:h.avgTokensPerSecond,requests:h.requests}}return p}function bA(a,n){let s=a.totalNegation+a.totalRepetition+a.totalBlame,i=new Map;for(let u of n){let d=`${u.model}::${u.provider}`,p=i.get(d),h=u.yelling+u.profanity+u.anguish+u.negation+u.repetition+u.blame;if(p)p.score+=h;else i.set(d,{model:u.model,provider:u.provider,score:h})}let l=null;for(let u of i.values())if(!l||u.score>l.score)l=u;return{totalMessages:a.totalMessages,totalYelling:a.totalYelling,totalProfanity:a.totalProfanity,totalAnguish:a.totalAnguish,totalFrustration:s,highestFrictionModel:l}}function xA(a){let n=[...a].sort((l,u)=>{if(u.totalCost!==l.totalCost)return u.totalCost-l.totalCost;return u.totalRequests-l.totalRequests}),s=n.reduce((l,u)=>Math.max(l,u.totalCost),0),i=n.reduce((l,u)=>Math.max(l,u.totalRequests),0);return n.map((l)=>({...l,costPercentage:s>0?l.totalCost/s*100:0,requestsPercentage:i>0?l.totalRequests/i*100:0}))}function vA(a){let n=a.reduce((s,i)=>Math.max(s,i.calls),0);return a.map((s)=>({...s,errorRate:s.calls>0?s.errors/s.calls:0,callsPercentage:n>0?s.calls/n*100:0}))}var qm=Q(de(),1);function ju({message:a="No data available",icon:n=rf,className:s=""}){return qm.jsxDEV("div",{className:`stats-empty-state ${s}`,children:[qm.jsxDEV(n,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),qm.jsxDEV("p",{className:"stats-empty-state-message",children:a},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Gu=Q(de(),1);function SA({error:a,onRetry:n,className:s=""}){return Gu.jsxDEV("div",{className:`stats-error-state ${s}`,children:Gu.jsxDEV("div",{className:"stats-error-state-content",children:[Gu.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),a&&Gu.jsxDEV("p",{className:"stats-error-state-message",children:a.message},void 0,!1,void 0,this),n&&Gu.jsxDEV("button",{type:"button",onClick:n,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var LA=Q(de(),1);function Ua({variant:a="text",width:n,height:s,className:i=""}){let l={width:n!==void 0?typeof n==="number"?`${n}px`:n:void 0,height:s!==void 0?typeof s==="number"?`${s}px`:s:void 0};return LA.jsxDEV("div",{className:`stats-skeleton ${i}`,"data-variant":a,style:l},void 0,!1,void 0,this)}var Uo=Q(de(),1);function Rt({loading:a,error:n,data:s,empty:i=!1,emptyText:l="No data available",fallback:u,onRetry:d,children:p}){if(n&&s===null)return Uo.jsxDEV(SA,{error:n,onRetry:d},void 0,!1,void 0,this);if(a&&s===null){if(u)return Uo.jsxDEV(Uo.Fragment,{children:u},void 0,!1,void 0,this);return Uo.jsxDEV("div",{className:"stats-boundary-skeleton",children:[Uo.jsxDEV(Ua,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),Uo.jsxDEV(Ua,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!a&&(i||s===null))return Uo.jsxDEV(ju,{message:l},void 0,!1,void 0,this);return Uo.jsxDEV(Uo.Fragment,{children:p},void 0,!1,void 0,this)}var xo=Q(de(),1);function Ma({columns:a,data:n,keyExtractor:s,onRowClick:i,renderMobileCard:l,emptyText:u="No data available"}){let d=(p,h)=>{if(i&&(p.key==="Enter"||p.key===" "))p.preventDefault(),i(h)};if(n.length===0)return xo.jsxDEV("div",{className:"stats-table-empty",children:u},void 0,!1,void 0,this);return xo.jsxDEV("div",{className:"stats-table-wrapper",children:[l&&xo.jsxDEV("div",{className:"stats-table-mobile-only",children:xo.jsxDEV("div",{className:"stats-table-mobile-list",children:n.map((p)=>{let h=String(s(p));return xo.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:l(p,i?()=>i(p):void 0)},h,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),xo.jsxDEV("div",{className:l?"stats-table-desktop-only":"stats-table-container",children:xo.jsxDEV("table",{className:"stats-table",children:[xo.jsxDEV("thead",{children:xo.jsxDEV("tr",{children:a.map((p)=>{let h=["stats-table-th",p.numeric?"stats-text-right":"stats-text-left",p.className||""].filter(Boolean).join(" ");return xo.jsxDEV("th",{className:h,children:p.header},p.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),xo.jsxDEV("tbody",{children:n.map((p)=>{let h=String(s(p)),g=typeof i==="function",b=["stats-table-tr",g?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return xo.jsxDEV("tr",{className:b,onClick:g?()=>i(p):void 0,onKeyDown:g?(y)=>d(y,p):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:a.map((y)=>{let v=["stats-table-td",y.numeric?"stats-text-right":"stats-text-left",y.className||""].filter(Boolean).join(" ");return xo.jsxDEV("td",{className:v,children:y.render?y.render(p):p[y.key]},y.key,!1,void 0,this)})},h,!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 Cl=Q(dt(),1),un=Q(de(),1);function Cf({data:a,title:n,initialCollapsed:s=!1}){let[i,l]=Cl.useState(s),[u,d]=Cl.useState(!1),p=Cl.useRef(0),h=JSON.stringify(a,null,2);return Cl.useEffect(()=>()=>window.clearTimeout(p.current),[]),un.jsxDEV("div",{className:"stats-json-block",children:[un.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>l(!i),onKeyDown:(y)=>{if(y.key==="Enter"||y.key===" ")y.preventDefault(),l(!i)},tabIndex:0,role:"button","aria-expanded":!i,children:[un.jsxDEV("span",{className:"stats-json-block-title",children:n||"JSON"},void 0,!1,void 0,this),un.jsxDEV("div",{className:"stats-json-actions",children:[un.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(y)=>{y.stopPropagation();try{await navigator.clipboard.writeText(h),d(!0),window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!1),1500)}catch{}},"aria-label":u?"Copied to clipboard":"Copy JSON to clipboard",children:[u?un.jsxDEV(pl,{size:13},void 0,!1,void 0,this):un.jsxDEV(gl,{size:13},void 0,!1,void 0,this),u?"Copied":"Copy"]},void 0,!0,void 0,this),un.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":i,children:i?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!i&&un.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:un.jsxDEV("pre",{className:"stats-json-block-content",children:un.jsxDEV("code",{children:h},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 qe=Q(de(),1);function CA({stats:a}){let n=Fm(a);return qe.jsxDEV("div",{className:"stats-metric-cluster",children:[qe.jsxDEV("div",{className:"stats-metric-primary-grid",children:[qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:ka(a.totalCost,a.unpricedRequests,a.totalCost>0&&a.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt-input cost saved versus billing the same tokens uncached; cache writes can make this negative",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Savings"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt input served from cache: cache reads / (uncached input + cache reads)",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card primary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ht(a.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(a.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:lt(n)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:Hm(a.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:rt(a.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qe.jsxDEV("div",{className:"stats-metric-card secondary",children:[qe.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"stats-metric-value",children:rt(a.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var di=Q(de(),1);function ut({title:a,subtitle:n,actions:s,children:i,className:l="",...u}){return di.jsxDEV("div",{className:`stats-panel ${l}`,...u,children:[(a||n||s)&&di.jsxDEV("div",{className:"stats-panel-header",children:[di.jsxDEV("div",{className:"stats-panel-header-titles",children:[a&&di.jsxDEV("h3",{className:"stats-panel-title",children:a},void 0,!1,void 0,this),n&&di.jsxDEV("p",{className:"stats-panel-subtitle",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&di.jsxDEV("div",{className:"stats-panel-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),di.jsxDEV("div",{className:"stats-panel-body",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var cs=Q(dt(),1);var TA=Q(de(),1);function ya({variant:a,children:n,className:s=""}){return TA.jsxDEV("span",{className:`stats-status-pill ${s}`,"data-variant":a,children:n},void 0,!1,void 0,this)}var ke=Q(de(),1);function wA({id:a,onClose:n}){let[s,i]=cs.useState(null),[l,u]=cs.useState(!1),[d,p]=cs.useState(null),h=cs.useRef(null),g=cs.useRef(null);if(cs.useEffect(()=>{if(a===null){i(null);return}h.current=document.activeElement,u(!0),p(null),i(null);let y=new AbortController;return RI(a,y.signal).then((v)=>{if(y.signal.aborted)return;i(v),setTimeout(()=>g.current?.focus(),50)}).catch((v)=>{if(y.signal.aborted)return;p(v instanceof Error?v:Error(String(v)))}).finally(()=>{if(!y.signal.aborted)u(!1)}),()=>y.abort()},[a]),cs.useEffect(()=>{if(a===null)return;let y=(v)=>{if(v.key==="Escape")n()};return window.addEventListener("keydown",y),()=>{if(window.removeEventListener("keydown",y),h.current)h.current.focus()}},[a,n]),a===null)return null;return ke.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(y)=>{if(y.target===y.currentTarget)n()},role:"presentation",children:ke.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[ke.jsxDEV("div",{className:"stats-drawer-header",children:[ke.jsxDEV("div",{className:"stats-drawer-header-left",children:[ke.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),s&&ke.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",a]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("button",{ref:g,type:"button",onClick:n,className:"stats-drawer-close-btn","aria-label":"Close request details",children:ke.jsxDEV($s,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-body",children:[l&&ke.jsxDEV("div",{className:"stats-drawer-loading",children:[ke.jsxDEV(Ua,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),ke.jsxDEV(Ua,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d&&ke.jsxDEV("div",{className:"stats-drawer-error",children:[ke.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),ke.jsxDEV("p",{className:"stats-drawer-error-message",children:d.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&ke.jsxDEV("div",{className:"stats-drawer-content",children:[ke.jsxDEV("div",{className:"stats-drawer-status-card",children:[ke.jsxDEV("div",{className:"stats-drawer-status-row",children:[ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"stats-drawer-model",children:s.model},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-provider",children:s.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV(ya,{variant:s.errorMessage?"danger":"success",children:s.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.errorMessage&&ke.jsxDEV("div",{className:"stats-drawer-error-block",children:[ke.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-error-text",children:s.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(ml,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"API-equivalent estimate"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:ln(s,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(hf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(s.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(sf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(s.usage.totalTokens)},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[Ce(s.usage.input)," in · ",Ce(s.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(tf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(s.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(bf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(s.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.duration&&s.usage.output>0&&ke.jsxDEV("div",{className:"stats-drawer-metric-card",children:[ke.jsxDEV("div",{className:"stats-drawer-metric-label",children:[ke.jsxDEV(nf,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-value",children:(s.usage.output*1000/s.duration).toFixed(1)},void 0,!1,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[ke.jsxDEV(Cf,{data:s.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),ke.jsxDEV(Cf,{data:s,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Qv=Q(de(),1);function Zs({options:a,value:n,onChange:s,className:i=""}){return Qv.jsxDEV("div",{className:`stats-segmented-control ${i}`,role:"radiogroup",children:a.map((l)=>{let u=l.value===n;return Qv.jsxDEV("button",{type:"button",role:"radio","aria-checked":u,"data-active":u?"true":"false",className:"stats-segmented-control-btn",title:l.title,onClick:()=>s(l.value),children:l.label},String(l.value),!1,void 0,this)})},void 0,!1,void 0,this)}var Me=Q(de(),1);function _A({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["behavior",n,s],(d)=>DI(n,d),{pollMs:30000,enabled:a});return Me.jsxDEV("div",{className:"stats-route-container space-y-6",children:Me.jsxDEV(Rt,{loading:u,error:l,data:i,children:i&&Me.jsxDEV(Me.Fragment,{children:[Me.jsxDEV(iz,{overall:i.overall,behaviorSeries:i.behaviorSeries},void 0,!1,void 0,this),Me.jsxDEV(lz,{behaviorSeries:i.behaviorSeries},void 0,!1,void 0,this),Me.jsxDEV(uz,{models:i.byModel,behaviorSeries:i.behaviorSeries},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 Vm(a,n){if(n<=0)return;return`${(a/n).toFixed(2)} / msg`}function iz({overall:a,behaviorSeries:n}){let s=ba.useMemo(()=>bA(a,n),[a,n]),i=a.totalMessages,l=[{label:"User Messages",value:Ce(a.totalMessages),sub:i>0?"in range":void 0},{label:"Yelling (CAPS)",value:Ce(a.totalYelling),sub:Vm(a.totalYelling,i)},{label:"Profanity Hits",value:Ce(a.totalProfanity),sub:Vm(a.totalProfanity,i)},{label:"Anguish Signals",value:Ce(a.totalAnguish),sub:Vm(a.totalAnguish,i)},{label:"Friction Signals",value:Ce(s.totalFrustration),sub:Vm(s.totalFrustration,i)},{label:"Highest Friction Model",value:s.highestFrictionModel?.model??"—",sub:s.highestFrictionModel?`${Ce(s.highestFrictionModel.score)} hits`:void 0}];return Me.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:l.map((u)=>Me.jsxDEV(ut,{className:"stats-behavior-summary-card py-3 px-4",children:[Me.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:u.label},void 0,!1,void 0,this),Me.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:u.value,children:u.value},void 0,!1,void 0,this),u.sub&&Me.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:u.sub},void 0,!1,void 0,this)]},u.label,!0,void 0,this))},void 0,!1,void 0,this)}var Kv=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function kA(a){if(!Number.isFinite(a))return"-";if(a===0)return"0%";if(Math.abs(a)<1)return`${a.toFixed(1)}%`;return`${a.toFixed(0)}%`}function MA(a,n){if(n==="frustration")return a.negation+a.repetition+a.blame;if(n==="total")return a.yelling+a.profanity+a.anguish+a.negation+a.repetition+a.blame;return a[n]}function IA(a,n){if(n<=0)return 0;return a/n*100}function lz({behaviorSeries:a}){let[n,s]=ba.useState(!1),[i,l]=ba.useState("total"),u=$t(),d=sa[u],p=ba.useMemo(()=>{if(n)return Vu(a,{rankWeight:(B)=>B.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(B,z)=>{B.hits+=MA(z,i),B.messages+=z.messages},bucketToValue:(B)=>IA(B.hits,B.messages)});let A=Kv.find((B)=>B.value===i)?.title??"Hits";return Am(a,A,{initBucket:()=>({hits:0,messages:0}),accumulate:(B,z)=>{B.hits+=MA(z,i),B.messages+=z.messages},bucketToValue:(B)=>IA(B.hits,B.messages)})},[a,n,i]),h=ba.useMemo(()=>is({chartTheme:d,showLegend:n,defaultLabel:"Hits",formatValue:kA}),[d,n]),{sharedScaleBase:g,yScale:b}=ba.useMemo(()=>ls({chartTheme:d,formatY:kA}),[d]),y=ba.useMemo(()=>Kv.find((A)=>A.value===i)?.title??"",[i]),v=ba.useMemo(()=>{if(!n)return null;return{labels:p.labels,datasets:ui(p,(A)=>qu(bt[A%bt.length]))}},[p,n]),T=ba.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:h,scales:{x:g,y:b}}),[h,g,b]),M=ba.useMemo(()=>{if(n)return null;return{labels:p.labels,datasets:ui(p,(A)=>Sl(bt[A%bt.length]))}},[p,n]),I=ba.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:h,scales:{x:{...g,stacked:!0},y:{...b,stacked:!0}},layout:{padding:{top:8}}}),[h,g,b]),w=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return Me.jsxDEV(ut,{title:"User Friction Signals",subtitle:`${y} as % of user messages per day`,actions:Me.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[Me.jsxDEV(Zs,{options:Kv.map((A)=>({value:A.value,label:A.label,title:A.title})),value:i,onChange:l},void 0,!1,void 0,this),Me.jsxDEV(Zs,{options:w,value:n,onChange:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Me.jsxDEV("div",{className:"h-[300px]",children:p.labels.length===0?Me.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):n&&v?Me.jsxDEV(Xa,{data:v,options:T},void 0,!1,void 0,this):M?Me.jsxDEV(li,{data:M,options:I},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var AA="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function RA(a){if(a.totalMessages===0)return 0;return(a.totalYelling+a.totalProfanity+a.totalAnguish+a.totalNegation+a.totalRepetition+a.totalBlame)/a.totalMessages}function Xu(a,n){if(n===0)return"-";let s=a/n*100;if(s===0)return"0%";if(s<1)return`${s.toFixed(1)}%`;return`${s.toFixed(0)}%`}function uz({models:a,behaviorSeries:n}){let[s,i]=ba.useState(null),l=$t(),u=sa[l],d=ba.useMemo(()=>dz(n),[n]),p=ba.useMemo(()=>[...a].sort((h,g)=>{if(g.totalMessages!==h.totalMessages)return g.totalMessages-h.totalMessages;return RA(g)-RA(h)}),[a]);return Me.jsxDEV(Dm,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[Me.jsxDEV(Em,{gridTemplate:AA,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),Me.jsxDEV(Om,{children:[p.map((h,g)=>{let b=`${h.model}::${h.provider}`,y=d.get(b)?.data??[],v=bt[g%bt.length],T=s===b,M=h.totalNegation+h.totalRepetition+h.totalBlame,I=h.totalYelling+h.totalProfanity+h.totalAnguish+M;return Me.jsxDEV(Bm,{gridTemplate:AA,isExpanded:T,onToggle:()=>i(T?null:b),cells:[Me.jsxDEV(Pm,{model:h.model,provider:h.provider},"name",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Ce(h.totalMessages)},"messages",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Xu(h.totalYelling,h.totalMessages)},"caps",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Xu(h.totalProfanity,h.totalMessages)},"profanity",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Xu(h.totalAnguish,h.totalMessages)},"anguish",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Xu(M,h.totalMessages)},"frustration",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Xu(I,h.totalMessages)},"hits",!1,void 0,this)],trendCell:y.length===0?Me.jsxDEV(Nm,{},void 0,!1,void 0,this):Me.jsxDEV(Rm,{timestamps:y.map((w)=>w.timestamp),values:y.map((w)=>w.total),color:v},void 0,!1,void 0,this),expandedContent:Me.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[Me.jsxDEV("div",{className:"space-y-4 text-sm",children:[Me.jsxDEV(Tl,{label:"Yelling (CAPS)",total:h.totalYelling,messages:h.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Profanity",total:h.totalProfanity,messages:h.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Anguish (!!!, nooo, dude, ..)",total:h.totalAnguish,messages:h.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Negation (no/nope/wrong)",total:h.totalNegation,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Repetition (i meant, still doesnt)",total:h.totalRepetition,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Blame (you didnt, stop X-ing)",total:h.totalBlame,messages:h.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),Me.jsxDEV(Tl,{label:"Avg chars / msg",total:h.totalChars,messages:h.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"h-[200px]",children:y.length===0?Me.jsxDEV(zm,{},void 0,!1,void 0,this):Me.jsxDEV(cz,{data:y,chartTheme:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},b,!1,void 0,this)}),p.length===0?Me.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Tl({label:a,total:n,messages:s,valueClass:i,mode:l="rate"}){let u=l==="rate"?"% of msgs":"Per msg",d=ba.useMemo(()=>{if(s===0)return"-";return l==="rate"?Xu(n,s):(n/s).toFixed(0)},[n,s,l]);return Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:a},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:`font-mono text-xs ${i}`,children:Ce(n)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"flex items-center justify-between",children:[Me.jsxDEV("span",{className:"stats-text-muted text-xs",children:u},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var jm={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function cz({data:a,chartTheme:n}){let s=ba.useMemo(()=>({labels:a.map((l)=>Cn(new Date(l.timestamp),"MMM d")),datasets:[{label:"CAPS",data:a.map((l)=>l.yelling),...Ws(jm.yelling)},{label:"Profanity",data:a.map((l)=>l.profanity),...Ws(jm.profanity)},{label:"Anguish",data:a.map((l)=>l.anguish),...Ws(jm.anguish)},{label:"Frustration",data:a.map((l)=>l.frustration),...Ws(jm.frustration)}]}),[a]),i=ba.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:_m(n),scales:dA(n)}),[n]);return Me.jsxDEV(Xa,{data:s,options:i},void 0,!1,void 0,this)}function dz(a){if(a.length===0)return new Map;let n=[...new Set(a.map((l)=>l.timestamp))].sort((l,u)=>l-u),s=new Map;for(let l of a){let u=`${l.model}::${l.provider}`,d=s.get(u);if(!d)d=new Map,s.set(u,d);let p=d.get(l.timestamp)??{timestamp:l.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};p.yelling+=l.yelling,p.profanity+=l.profanity,p.anguish+=l.anguish,p.frustration+=l.negation+l.repetition+l.blame,p.total=p.yelling+p.profanity+p.anguish+p.frustration,d.set(l.timestamp,p)}let i=new Map;for(let[l,u]of s){let d=n.map((p)=>u.get(p)??{timestamp:p,yelling:0,profanity:0,anguish:0,frustration:0,total:0});i.set(l,{data:d})}return i}var Fo=Q(dt(),1);var xa=Q(de(),1);function DA({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["costs",n,s],(d)=>II(n,d),{pollMs:30000,enabled:a});return xa.jsxDEV("div",{className:"stats-route-container space-y-6",children:xa.jsxDEV(Rt,{loading:u,error:l,data:i,children:i&&xa.jsxDEV(xa.Fragment,{children:[xa.jsxDEV(fz,{costSeries:i.costSeries},void 0,!1,void 0,this),xa.jsxDEV(mz,{costSeries:i.costSeries},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 fz({costSeries:a}){let n=Fo.useMemo(()=>gA(a),[a]),s=[{label:"API-equivalent estimate",value:ka(n.totalCost,n.unpricedRequests),sub:n.unpricedRequests>0?`Excludes ${n.unpricedRequests.toLocaleString()} unpriced subscription request${n.unpricedRequests===1?"":"s"}`:void 0},{label:"Average estimate / Day",value:ka(n.avgDailyCost,n.unpricedRequests)},{label:"Top Model",value:n.topModelName||"—",sub:n.topModelName?`API-equivalent estimate: ${us(n.topModelCost)}`:void 0}];return xa.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:s.map((i)=>xa.jsxDEV(ut,{className:"stats-cost-overview-card py-4 px-5",children:[xa.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:i.label},void 0,!1,void 0,this),xa.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:i.value,children:i.value},void 0,!1,void 0,this),i.sub&&xa.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:i.sub},void 0,!1,void 0,this)]},i.label,!0,void 0,this))},void 0,!1,void 0,this)}var pz={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function hz(a){return{id:"costBarLabels",afterDatasetsDraw(n){let{ctx:s}=n;if(!n.data.datasets[0])return;let l=n.getDatasetMeta(0);s.save(),s.font="11px system-ui, sans-serif",s.fillStyle=a,s.textAlign="center",s.textBaseline="bottom";for(let u of l.data){let d=u.$context.parsed.y;if(!d)continue;let p=`$${Math.round(d)}`,{x:h,y:g}=u.getProps(["x","y"],!0);s.fillText(p,h,g-3)}s.restore()}}}function mz({costSeries:a}){let[n,s]=Fo.useState(!1),i=$t(),l=sa[i],u=Fo.useMemo(()=>a.reduce((w,A)=>w+A.unpricedRequests,0),[a]),d=Fo.useMemo(()=>{if(n)return Vu(a,{rankWeight:(w)=>w.cost,initBucket:()=>({total:0}),accumulate:(w,A)=>{w.total+=A.cost},bucketToValue:(w)=>w.total});return Am(a,"API-equivalent estimate",{initBucket:()=>({total:0}),accumulate:(w,A)=>{w.total+=A.cost},bucketToValue:(w)=>w.total})},[a,n]),p=Fo.useMemo(()=>is({chartTheme:l,showLegend:n,defaultLabel:"API-equivalent estimate",formatValue:(w)=>`$${w.toFixed(2)}`,footer:(w)=>{if(!n||w.length<2)return;return`Total: $${w.reduce((B,z)=>B+(z.parsed.y??0),0).toFixed(2)}`}}),[l,n]),{sharedScaleBase:h,yScale:g}=Fo.useMemo(()=>ls({chartTheme:l,formatY:(w)=>`$${Math.round(w)}`}),[l]),b=Fo.useMemo(()=>hz(pz[i]),[i]),y=Fo.useMemo(()=>{if(!n)return null;return{labels:d.labels,datasets:ui(d,(w)=>qu(bt[w%bt.length]))}},[d,n]),v=Fo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:h,y:g}}),[p,h,g]),T=Fo.useMemo(()=>{if(n)return null;return{labels:d.labels,datasets:ui(d,(w)=>Sl(bt[w%bt.length]))}},[d,n]),M=Fo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...p,costBarLabels:{}},scales:{x:{...h,stacked:!0},y:{...g,stacked:!0}},layout:{padding:{top:24}}}),[p,h,g]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return xa.jsxDEV(ut,{title:"Daily API-equivalent estimate",subtitle:u>0?`Public API rate-card value over time; excludes ${u.toLocaleString()} unpriced subscription request${u===1?"":"s"}`:"Public API rate-card value over time",actions:xa.jsxDEV(Zs,{options:I,value:n,onChange:s},void 0,!1,void 0,this),children:xa.jsxDEV("div",{className:"h-[300px]",children:d.labels.length===0?xa.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No API-equivalent estimate data available"},void 0,!1,void 0,this):n&&y?xa.jsxDEV(Xa,{data:y,options:v},void 0,!1,void 0,this):T?xa.jsxDEV(li,{data:T,options:M,plugins:[b]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var EA=Q(dt(),1);var Ut=Q(de(),1);function OA({active:a,range:n,refreshTrigger:s,onRequestClick:i}){let{data:l,error:u,loading:d}=Vt(["recent-errors-dense",n,s],(g)=>AI(n,50,g),{pollMs:30000,enabled:a}),p=EA.useMemo(()=>[{key:"model",header:"Model",render:(g)=>Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:g.model},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(g)=>za(g.timestamp)},{key:"errorMessage",header:"Error Message",render:(g)=>Ut.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:g.errorMessage||"",children:g.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(g)=>Ce(g.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(g)=>ln(g,4)}],[]);return Ut.jsxDEV("div",{className:"stats-route-container",children:Ut.jsxDEV(ut,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:Ut.jsxDEV(Rt,{loading:d,error:u,data:l,emptyText:"No recent failures in the local stats database",children:Ut.jsxDEV(Ma,{columns:p,data:l||[],keyExtractor:(g)=>g.id||`${g.sessionFile}-${g.entryId}`,onRowClick:(g)=>g.id&&i(g.id),renderMobileCard:(g,b)=>Ut.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:b,children:[Ut.jsxDEV("div",{className:"stats-mobile-card-header",children:[Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.model},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV(ya,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:za(g.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(g,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ut.jsxDEV("div",{children:[Ut.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(g.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g.errorMessage&&Ut.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:g.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Gm=Q(dt(),1);var De=Q(de(),1);function PA({active:a,range:n,refreshTrigger:s}){let[i,l]=Gm.useState(null),{data:u,error:d,loading:p}=Vt(["gain",n,s,i],(h)=>OI(n,i,h),{pollMs:30000,enabled:a});return De.jsxDEV("div",{className:"stats-route-container space-y-6",children:De.jsxDEV(Rt,{loading:p,error:d,data:u,children:u&&De.jsxDEV(De.Fragment,{children:[De.jsxDEV(gz,{projects:u.projects,selected:i,onChange:l},void 0,!1,void 0,this),De.jsxDEV(yz,{overall:u.overall},void 0,!1,void 0,this),De.jsxDEV(xz,{bySource:u.bySource},void 0,!1,void 0,this),De.jsxDEV(Sz,{timeSeries:u.timeSeries},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 gz({projects:a,selected:n,onChange:s}){if(a.length===0)return null;return De.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[De.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),De.jsxDEV("select",{className:"stats-select",value:n??"",onChange:(i)=>s(i.target.value||null),style:{maxWidth:"480px",flex:1},children:[De.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),a.map((i)=>De.jsxDEV("option",{value:i,children:i},i,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yz({overall:a}){return De.jsxDEV(ut,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:De.jsxDEV("div",{className:"stats-metric-primary-grid",children:[De.jsxDEV("div",{className:"stats-metric-card primary",children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",children:lt(a.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{className:"stats-metric-card primary",children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",children:Zv(a.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{className:"stats-metric-card primary",children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",children:a.reductionPercent!==null?Ht(a.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{className:"stats-metric-card primary",children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",children:Ce(a.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bz({title:a,totals:n}){return De.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[De.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:a},void 0,!1,void 0,this),De.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[De.jsxDEV("div",{children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:lt(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Zv(n.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Ce(n.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{children:[De.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),De.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:n.reductionPercent!==null?Ht(n.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xz({bySource:a}){return De.jsxDEV(ut,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:De.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:De.jsxDEV(bz,{title:"Snapcompact",totals:a.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var vz={snapcompact:"rgb(34, 197, 94)"};function Sz({timeSeries:a}){let n=$t(),s=sa[n],{data:i,options:l}=Gm.useMemo(()=>{let u=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),p={labels:a.map((y)=>u.format(new Date(`${y.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:a.map((y)=>y.snapcompact),...qu(vz.snapcompact)}]},{sharedScaleBase:h,yScale:g}=ls({chartTheme:s,formatY:(y)=>lt(y)}),b={responsive:!0,maintainAspectRatio:!1,plugins:is({chartTheme:s,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:lt}),scales:{x:{...h,stacked:!0},y:{...g,stacked:!0}}};return{data:p,options:b}},[a,s]);return De.jsxDEV(ut,{title:"Savings Over Time",subtitle:"Daily token savings",children:De.jsxDEV("div",{style:{height:240},children:a.length===0?De.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):De.jsxDEV(Xa,{data:i,options:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tn=Q(dt(),1);var Ee=Q(de(),1);function NA({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["models",n,s],(p)=>MI(n,p),{pollMs:30000,enabled:a}),d=Tn.useMemo(()=>cA(i?.byModel??[]),[i?.byModel]);return Ee.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ee.jsxDEV(Rt,{loading:u,error:l,data:i,children:i&&Ee.jsxDEV(Ee.Fragment,{children:[Ee.jsxDEV(Lz,{modelSeries:i.modelSeries,timeRange:n,colorLookup:d},void 0,!1,void 0,this),Ee.jsxDEV(Tz,{models:i.byModel,performanceSeries:i.modelPerformanceSeries,timeRange:n,colorLookup:d},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 Lz({modelSeries:a,timeRange:n,colorLookup:s}){let i=$t(),l=sa[i],u=Ll(n),d=Tn.useMemo(()=>Cz(a),[a]),p=Tn.useMemo(()=>({labels:d.data.map((g)=>Lf(g.timestamp,n)),datasets:d.series.map((g,b)=>{let y=bt[b%bt.length],v=g.key?s.get(g.key)??y:y,T=g.key??g.label;return{label:g.label,data:d.data.map((M)=>M[T]??0),borderColor:v,backgroundColor:`${v}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}})}),[d,s,n]),h=Tn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:l.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:l.tooltipBackground,titleColor:l.tooltipTitle,bodyColor:l.tooltipBody,borderColor:l.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(g)=>{let b=g.dataset.label??"",y=g.parsed.y;return`${b}: ${(y??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11}}},y:{grid:{color:l.grid,drawBorder:!1},ticks:{color:l.tick,font:{size:11},callback:(g)=>`${g}%`},min:0,max:100}}}),[l]);return Ee.jsxDEV(ut,{title:"Model Preference",subtitle:`Share of requests over ${u.windowLabel}`,children:Ee.jsxDEV("div",{className:"h-[280px]",children:d.data.length===0?Ee.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):Ee.jsxDEV(Xa,{data:p,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Cz(a,n=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let y of a){let v=`${y.model}::${y.provider}`,T=s.get(v);if(T)T.total+=y.requests;else s.set(v,{model:y.model,provider:y.provider,total:y.requests})}let l=[...s.entries()].map(([y,v])=>({key:y,...v})).sort((y,v)=>v.total-y.total).slice(0,n),u=new Set(l.map((y)=>y.key)),d=new Map;for(let y of l)d.set(y.model,(d.get(y.model)??0)+1);let p=new Map;for(let y of l){let v=(d.get(y.model)??0)>1;p.set(y.key,v?`${y.model} (${y.provider})`:y.model)}let h=new Map;for(let y of a){let v=`${y.model}::${y.provider}`,T=h.get(y.timestamp)??{timestamp:y.timestamp,total:0};T.total+=y.requests;let M=u.has(v)?v:"Other";T[M]=(T[M]??0)+y.requests,h.set(y.timestamp,T)}let g=l.map((y)=>({key:y.key,label:p.get(y.key)??y.model}));if([...h.values()].some((y)=>(y.Other??0)>0))g.push({label:"Other"});return{data:[...h.values()].sort((y,v)=>(y.timestamp??0)-(v.timestamp??0)).map((y)=>{let v=y.total??0;for(let T of g){let M=T.key??T.label;y[M]=v>0?(y[M]??0)/v*100:0}return y}),series:g}}var BA="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function Tz({models:a,performanceSeries:n,timeRange:s,colorLookup:i}){let[l,u]=Tn.useState(null),d=Ll(s),p=Tn.useMemo(()=>yA(n,s),[n,s]),h=$t(),g=sa[h],b=Tn.useMemo(()=>[...a].sort((y,v)=>v.totalInputTokens+v.totalOutputTokens-(y.totalInputTokens+y.totalOutputTokens)),[a]);return Ee.jsxDEV(Dm,{title:"Model Statistics",children:[Ee.jsxDEV(Em,{gridTemplate:BA,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"API-equivalent estimate",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:d.trendLabel,align:"center"}]},void 0,!1,void 0,this),Ee.jsxDEV(Om,{children:b.map((y,v)=>{let T=`${y.model}::${y.provider}`,I=p.get(T)?.data??[],w=i.get(T)??bt[v%bt.length],A=l===T,B=y.errorRate*100;return Ee.jsxDEV(Bm,{gridTemplate:BA,isExpanded:A,onToggle:()=>u(A?null:T),cells:[Ee.jsxDEV(Pm,{model:y.model,provider:y.provider},"name",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.totalRequests.toLocaleString()},"requests",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:ka(y.totalCost,y.unpricedRequests)},"cost",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(y.totalInputTokens+y.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),Ee.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:y.avgTtft?`${(y.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:I.length===0?Ee.jsxDEV(Nm,{},void 0,!1,void 0,this):Ee.jsxDEV(Rm,{timestamps:I.map((z)=>z.timestamp),values:I.map((z)=>z.avgTokensPerSecond??0),color:w},void 0,!1,void 0,this),expandedContent:Ee.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[Ee.jsxDEV("div",{className:"space-y-4 text-sm",children:[Ee.jsxDEV("div",{children:[Ee.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Efficiency"},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:B>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[B.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:[(y.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Cache savings"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:y.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(y.cacheSavings*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{children:[Ee.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:y.avgDuration?`${(y.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"flex items-center justify-between",children:[Ee.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"font-mono",children:y.avgTtft?`${(y.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"h-[200px]",children:I.length===0?Ee.jsxDEV(zm,{},void 0,!1,void 0,this):Ee.jsxDEV(wz,{data:I,color:w,chartTheme:g,timeRange:s},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wz({data:a,color:n,chartTheme:s,timeRange:i}){let l=Tn.useMemo(()=>({labels:a.map((d)=>Lf(d.timestamp,i)),datasets:[{label:"TTFT",data:a.map((d)=>d.avgTtftSeconds??null),...Ws("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:a.map((d)=>d.avgTokensPerSecond??null),...Ws(n),yAxisID:"y1"}]}),[a,n,i]),u=Tn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:_m(s),scales:fA(s)}),[s]);return Ee.jsxDEV(Xa,{data:l,options:u},void 0,!1,void 0,this)}var Tf=Q(dt(),1);var zA=Q(dt(),1);var vo=Q(de(),1),Xm={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function HA({stats:a}){let n=zA.useMemo(()=>mA(a),[a]);if(n.totalTokens===0)return vo.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return vo.jsxDEV("div",{className:"space-y-4",children:[vo.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:n.segments.map((s)=>s.share>0&&vo.jsxDEV("div",{className:"h-full",style:{width:`${s.share*100}%`,background:Xm[s.agentType].color},title:`${Xm[s.agentType].label}: ${Ht(s.share)}`},s.agentType,!1,void 0,this))},void 0,!1,void 0,this),vo.jsxDEV("div",{className:"space-y-2",children:n.segments.map((s)=>vo.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[vo.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[vo.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Xm[s.agentType].color}},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"stats-text-primary truncate",children:Xm[s.agentType].label},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[Ce(s.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[vo.jsxDEV("span",{className:"stats-text-secondary",children:[lt(s.tokens)," tok"]},void 0,!0,void 0,this),vo.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:Ht(s.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},s.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ve=Q(de(),1);function UA({active:a,range:n,refreshTrigger:s,onRequestClick:i}){let{data:l,error:u,loading:d}=Vt(["overview",n,s],(A)=>kI(n,A),{pollMs:30000,enabled:a}),{data:p,error:h,loading:g}=Vt(["recent-requests",s],(A)=>Mm(50,A),{pollMs:30000,enabled:a}),b=$t(),y=sa[b],v=Tf.useMemo(()=>{if(!l?.timeSeries)return{labels:[],datasets:[]};let A=l.timeSeries.map((z)=>Cn(new Date(z.timestamp),n==="1h"||n==="24h"?"HH:mm":"MMM d")),B=l.timeSeries.length<=2?3:0;return{labels:A,datasets:[{label:"Requests",data:l.timeSeries.map((z)=>z.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:B,pointHoverRadius:4,fill:!0},{label:"Errors",data:l.timeSeries.map((z)=>z.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:B,pointHoverRadius:4,fill:!0}]}},[l?.timeSeries,n]),T=Tf.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:y.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:y.tooltipBackground,titleColor:y.tooltipTitle,bodyColor:y.tooltipBody,borderColor:y.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:y.grid,drawBorder:!1},ticks:{color:y.tick,font:{size:10}}},y:{grid:{color:y.grid,drawBorder:!1},ticks:{color:y.tick,font:{size:10}},min:0}}}),[y]),M=Tf.useMemo(()=>[{key:"model",header:"Model",render:(A)=>ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:A.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(A)=>za(A.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(A)=>Ce(A.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(A)=>ln(A,4)},{key:"duration",header:"Duration",numeric:!0,render:(A)=>rt(A.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(A)=>ve.jsxDEV(ya,{variant:A.errorMessage?"danger":"success",children:A.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),I=(A,B)=>ve.jsxDEV("div",{className:"stats-mobile-card",onClick:B,children:[ve.jsxDEV("div",{className:"stats-mobile-card-header",children:[ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:A.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV(ya,{variant:A.errorMessage?"danger":"success",children:A.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-grid",children:[ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:za(A.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(A,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(A.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{children:[ve.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(A.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.errorMessage&&ve.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w=Tf.useMemo(()=>{if(!p)return[];return p.slice(0,10)},[p]);return ve.jsxDEV("div",{className:"stats-route-container space-y-6",children:[ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:l&&ve.jsxDEV(CA,{stats:l.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV(ut,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:l&&ve.jsxDEV(HA,{stats:l.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[ve.jsxDEV("div",{className:"lg:col-span-2",children:ve.jsxDEV(ut,{title:"System Throughput",subtitle:"Request volume and errors over time",children:ve.jsxDEV(Rt,{loading:d,error:u,data:l,children:ve.jsxDEV("div",{className:"h-[280px]",children:l?.timeSeries&&l.timeSeries.length>0?ve.jsxDEV(Xa,{data:v,options:T},void 0,!1,void 0,this):ve.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},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,!1,void 0,this),ve.jsxDEV("div",{children:ve.jsxDEV(ut,{title:"Operational Feed",subtitle:"Real-time request log",children:ve.jsxDEV(Rt,{loading:g,error:h,data:p,fallback:ve.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((A,B)=>ve.jsxDEV("div",{className:"flex items-center gap-3",children:[ve.jsxDEV(Ua,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"flex-1",children:[ve.jsxDEV(Ua,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),ve.jsxDEV(Ua,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},B,!0,void 0,this))},void 0,!1,void 0,this),children:ve.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[w.map((A)=>{let B=!!A.errorMessage;return ve.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>A.id&&i(A.id),children:[ve.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${B?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"flex-1 min-w-0",children:[ve.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[ve.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:A.model},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:za(A.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[ve.jsxDEV("div",{children:A.provider},void 0,!1,void 0,this),ve.jsxDEV("div",{children:[A.duration?rt(A.duration):""," ",A.usage.totalTokens>0?`· ${ln(A,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B&&ve.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},A.id||`${A.sessionFile}-${A.entryId}`,!0,void 0,this)}),w.length===0&&ve.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,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),ve.jsxDEV(ut,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:ve.jsxDEV("a",{href:`#/requests?range=${n}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:ve.jsxDEV(Rt,{loading:g,error:h,data:p,children:ve.jsxDEV(Ma,{columns:M,data:w,keyExtractor:(A)=>A.id||`${A.sessionFile}-${A.entryId}`,onRowClick:(A)=>A.id&&i(A.id),renderMobileCard:I,emptyText:"No recent requests found"},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 Jv=Q(dt(),1);var ot=Q(de(),1);function FA({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["projects",n,s],(g)=>EI(n,g),{pollMs:30000,enabled:a}),d=Jv.useMemo(()=>{if(!i)return[];return xA(i)},[i]),p=Jv.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(g)=>ot.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:g.folder||"(root)",children:g.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"stats-text-right",children:[ot.jsxDEV("div",{className:"font-mono",children:Ce(g.totalRequests)},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:ot.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${g.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"API-equivalent estimate",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"stats-text-right",children:[ot.jsxDEV("div",{className:"font-mono",children:ka(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:ot.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${g.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(g)=>ot.jsxDEV("div",{className:"font-mono",children:Ce(g.totalInputTokens+g.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(g)=>ot.jsxDEV("span",{className:"font-mono",children:Ht(g.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache Savings",numeric:!0,render:(g)=>ot.jsxDEV("span",{className:`${g.cacheSavings<0?"stats-text-danger":"stats-text-success"} font-medium`,children:Ht(g.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(g)=>ot.jsxDEV(ya,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:Ht(g.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(g)=>rt(g.avgDuration)}],[]);return ot.jsxDEV("div",{className:"stats-route-container",children:ot.jsxDEV(ut,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:ot.jsxDEV(Rt,{loading:u,error:l,data:i,emptyText:"No project folders recorded for this range.",children:ot.jsxDEV(Ma,{columns:p,data:d,keyExtractor:(g)=>g.folder,renderMobileCard:(g)=>ot.jsxDEV("div",{className:"stats-mobile-card",children:[ot.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[ot.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.folder||"(root)"},void 0,!1,void 0,this),ot.jsxDEV(ya,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:[Ht(g.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-grid",children:[ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Ce(g.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ka(g.totalCost,g.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Rate"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:Ht(g.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Savings"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:Ht(g.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("div",{children:[ot.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(g.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ia=Q(dt(),1);var $e=Q(de(),1);function qA({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["providers",n,s],(d)=>BI(n,d),{pollMs:30000,enabled:a});return $e.jsxDEV("div",{className:"stats-route-container space-y-6",children:$e.jsxDEV(Rt,{loading:u,error:l,data:i,children:i&&$e.jsxDEV($e.Fragment,{children:[$e.jsxDEV(kz,{providers:i.providers},void 0,!1,void 0,this),$e.jsxDEV(Mz,{stats:i},void 0,!1,void 0,this),$e.jsxDEV(Iz,{hourly:i.hourly,providers:i.providers},void 0,!1,void 0,this),$e.jsxDEV(Az,{insights:i.windowInsights},void 0,!1,void 0,this),$e.jsxDEV(Rz,{usageSeries:i.usageSeries},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 kz({providers:a}){let n=Ia.useMemo(()=>a.reduce((l,u)=>l+u.totalTokens,0),[a]),s=Ia.useMemo(()=>a.reduce((l,u)=>l+u.unpricedRequests,0),[a]),i=[{key:"provider",header:"Provider",render:(l)=>$e.jsxDEV("span",{className:"font-medium",children:l.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(l)=>Ce(l.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(l)=>Ht(l.totalRequests>0?l.failedRequests/l.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(l)=>Ce(l.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(l)=>$e.jsxDEV("span",{title:`Input ${lt(l.totalInputTokens)} · Output ${lt(l.totalOutputTokens)} · Cache read ${lt(l.totalCacheReadTokens)} · Cache write ${lt(l.totalCacheWriteTokens)}`,children:lt(l.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(l)=>Ht(n>0?l.totalTokens/n:0)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(l)=>ka(l.totalCost,l.unpricedRequests)},{key:"tps",header:"Tok/s",numeric:!0,render:(l)=>Hm(l.avgTokensPerSecond)}];return $e.jsxDEV(ut,{title:"Provider Totals",subtitle:s>0?`Token, request, and API-equivalent estimates; excludes ${s.toLocaleString()} unpriced subscription request${s===1?"":"s"}`:"Token, request, and API-equivalent estimates over the active range",children:$e.jsxDEV(Ma,{columns:i,data:a,keyExtractor:(l)=>l.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Mz({stats:a}){let[n,s]=Ia.useState("tokens"),i=$t(),l=sa[i],u=Ia.useMemo(()=>a.providers.reduce((b,y)=>b+y.unpricedRequests,0),[a.providers]),d=Ia.useMemo(()=>{let b=a.series.map((y)=>({...y,model:y.provider}));return Vu(b,{topN:6,rankWeight:(y)=>n==="tokens"?y.totalTokens:y.cost,initBucket:()=>({total:0}),accumulate:(y,v)=>{y.total+=n==="tokens"?v.totalTokens:v.cost},bucketToValue:(y)=>y.total})},[a.series,n]),p=n==="tokens"?lt:(b)=>us(b),h=Ia.useMemo(()=>{let{sharedScaleBase:b,yScale:y}=ls({chartTheme:l,formatY:p});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:is({chartTheme:l,showLegend:!0,defaultLabel:n==="tokens"?"Tokens":"API-equivalent estimate",formatValue:p,footer:(v)=>{if(v.length<2)return;let T=v.reduce((M,I)=>M+(I.parsed.y??0),0);return`Total: ${p(T)}`}}),scales:{x:{...b,stacked:!0},y:{...y,stacked:!0}}}},[l,n,p]),g=Ia.useMemo(()=>({labels:d.labels,datasets:ui(d,(b)=>Sl(bt[b%bt.length]))}),[d]);return $e.jsxDEV(ut,{title:"Burn by Provider",subtitle:n==="cost"&&u>0?`API-equivalent estimates over time; excludes ${u.toLocaleString()} unpriced subscription request${u===1?"":"s"}`:"Stacked token or API-equivalent estimate burn over time",actions:$e.jsxDEV(Zs,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"API-equivalent estimate"}],value:n,onChange:s},void 0,!1,void 0,this),children:$e.jsxDEV("div",{className:"h-[300px]",children:d.labels.length===0?$e.jsxDEV(ju,{message:"No provider activity in this range"},void 0,!1,void 0,this):$e.jsxDEV(li,{data:g,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var e0="__all__";function Iz({hourly:a,providers:n}){let[s,i]=Ia.useState(e0),l=$t(),u=sa[l],{tokensByHour:d,peakHour:p}=Ia.useMemo(()=>{let y=Array(24).fill(0);for(let T of a){if(s!==e0&&T.provider!==s)continue;y[T.hour]+=T.totalTokens}let v=0;for(let T=1;T<24;T++)if(y[T]>y[v])v=T;return{tokensByHour:y,peakHour:v}},[a,s]),h=d.some((y)=>y>0),g=Ia.useMemo(()=>({labels:Array.from({length:24},(y,v)=>`${String(v).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:d,...Sl(bt[2]),backgroundColor:d.map((y,v)=>v===p?bt[0]:bt[2])}]}),[d,p]),b=Ia.useMemo(()=>{let{sharedScaleBase:y,yScale:v}=ls({chartTheme:u,formatY:lt});return{responsive:!0,maintainAspectRatio:!1,plugins:is({chartTheme:u,showLegend:!1,defaultLabel:"Tokens",formatValue:lt}),scales:{x:y,y:v}}},[u]);return $e.jsxDEV(ut,{title:"Peak Burn Hours",subtitle:h?`Token burn by local hour of day — peak at ${String(p).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:$e.jsxDEV("select",{className:"stats-select",value:s,onChange:(y)=>i(y.target.value),"aria-label":"Provider",children:[$e.jsxDEV("option",{value:e0,children:"All providers"},void 0,!1,void 0,this),n.map((y)=>$e.jsxDEV("option",{value:y.provider,children:y.provider},y.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:$e.jsxDEV("div",{className:"h-[260px]",children:h?$e.jsxDEV(li,{data:g,options:b},void 0,!1,void 0,this):$e.jsxDEV(ju,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Az({insights:a}){return $e.jsxDEV(ut,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:$e.jsxDEV(Ma,{columns:[{key:"provider",header:"Provider",render:(s)=>$e.jsxDEV("span",{className:"font-medium",children:s.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(s)=>s.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(s)=>Ce(s.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:s.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:s.estTokensPerWindow!==null?lt(s.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:Ht(s.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(s)=>$e.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:s.idealAccounts>s.accounts?"stats-text-warning font-semibold":void 0,children:[Ce(s.idealAccounts),s.idealAccounts>s.accounts?` (have ${s.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(s)=>$e.jsxDEV("span",{className:s.exhaustedEvents>0?"stats-text-warning":void 0,children:Ce(s.exhaustedEvents)},void 0,!1,void 0,this)}],data:a,keyExtractor:(s)=>`${s.provider}::${s.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var t0={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function Rz({usageSeries:a}){let n=Ia.useMemo(()=>[...new Set(a.map((b)=>b.provider))],[a]),[s,i]=Ia.useState(null),l=s!==null&&n.includes(s)?s:n[0]??null,u=$t(),d=sa[u],p=Ia.useMemo(()=>a.filter((b)=>b.provider===l).map((b)=>{let y=[...b.points].reverse().find((v)=>v.usedFraction!==null);return y?{label:`${b.windowLabel} · ${b.accountLabel}`,fraction:y.usedFraction??0,exhausted:y.exhausted,recordedAt:y.timestamp}:null}).filter((b)=>b!==null).sort((b,y)=>y.fraction-b.fraction),[a,l]),h=Ia.useMemo(()=>({labels:p.map((b)=>b.label),datasets:[{label:"Used",data:p.map((b)=>b.fraction*100),backgroundColor:p.map((b)=>b.exhausted?t0.exhausted:b.fraction>=0.8?t0.warning:t0.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[p]),g=Ia.useMemo(()=>{let{sharedScaleBase:b,yScale:y}=ls({chartTheme:d,formatY:(M)=>`${Math.round(M)}%`}),v=Math.max(100,...p.map((M)=>M.fraction*100)),T=is({chartTheme:d,showLegend:!1,defaultLabel:"Used",formatValue:(M)=>`${M.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...T,tooltip:{...T.tooltip,callbacks:{label:(M)=>{let I=p[M.dataIndex],w=`${(M.parsed.x??0).toFixed(1)}% used`;return I?`${w} · recorded ${za(I.recordedAt)}`:w}}}},scales:{x:{...y,max:v},y:{...b,grid:{display:!1}}}}},[d,p]);return $e.jsxDEV(ut,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:n.length>1?$e.jsxDEV("select",{className:"stats-select",value:l??"",onChange:(b)=>i(b.target.value),"aria-label":"Provider",children:n.map((b)=>$e.jsxDEV("option",{value:b,children:b},b,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:$e.jsxDEV("div",{style:{height:Math.max(160,p.length*34+60)},children:p.length===0?$e.jsxDEV(ju,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):$e.jsxDEV(li,{data:h,options:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var VA=Q(dt(),1);var Tt=Q(de(),1);function jA({active:a,refreshTrigger:n,onRequestClick:s}){let{data:i,error:l,loading:u}=Vt(["recent-requests-dense",n],(h)=>Mm(50,h),{pollMs:30000,enabled:a}),d=VA.useMemo(()=>[{key:"model",header:"Model",render:(h)=>Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:h.model},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(h)=>za(h.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(h)=>Ce(h.usage.totalTokens)},{key:"cost",header:"API-equivalent estimate",numeric:!0,render:(h)=>ln(h,4)},{key:"duration",header:"Duration",numeric:!0,render:(h)=>rt(h.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(h)=>Tt.jsxDEV(ya,{variant:h.errorMessage?"danger":"success",children:h.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return Tt.jsxDEV("div",{className:"stats-route-container",children:Tt.jsxDEV(ut,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:Tt.jsxDEV(Rt,{loading:u,error:l,data:i,children:Tt.jsxDEV(Ma,{columns:d,data:i||[],keyExtractor:(h)=>h.id||`${h.sessionFile}-${h.entryId}`,onRowClick:(h)=>h.id&&s(h.id),renderMobileCard:(h,g)=>Tt.jsxDEV("div",{className:"stats-mobile-card",onClick:g,children:[Tt.jsxDEV("div",{className:"stats-mobile-card-header",children:[Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:h.model},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV(ya,{variant:h.errorMessage?"danger":"success",children:h.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:za(h.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"API-equivalent estimate"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:ln(h,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:Ce(h.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tt.jsxDEV("div",{children:[Tt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Tt.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(h.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h.errorMessage&&Tt.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:h.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cn=Q(dt(),1);var re=Q(de(),1);function GA({active:a,range:n,refreshTrigger:s}){let{data:i,error:l,loading:u}=Vt(["tools",n,s],(d)=>PI(n,d),{pollMs:30000,enabled:a});return re.jsxDEV("div",{className:"stats-route-container space-y-6",children:re.jsxDEV(Rt,{loading:u,error:l,data:i,emptyText:"No tool calls recorded for this range.",children:i&&re.jsxDEV(re.Fragment,{children:[re.jsxDEV(_z,{byTool:i.byTool},void 0,!1,void 0,this),re.jsxDEV(Oz,{series:i.series,timeRange:n},void 0,!1,void 0,this),re.jsxDEV(Pz,{byTool:i.byTool},void 0,!1,void 0,this),re.jsxDEV(Bz,{byToolModel:i.byToolModel},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 _z({byTool:a}){let n=cn.useMemo(()=>{let s=0,i=0,l=0,u=0,d=0,p=0,h=0,g=0;for(let b of a)s+=b.calls,i+=b.errors,l+=b.totalTokensShare,u+=b.outputTokensShare,d+=b.costShare,p+=b.unpricedRequestsShare,h+=b.resultChars,g+=b.argsChars;return{calls:s,errors:i,tokens:l,output:u,cost:d,unpricedRequests:p,resultChars:h,argsChars:g,tools:a.length}},[a]);return re.jsxDEV(ut,{title:"Tool Usage",subtitle:"Tokens and API-equivalent estimates are split from invoking turns across each turn's tool calls",children:re.jsxDEV("div",{className:"stats-metric-cluster",children:[re.jsxDEV("div",{className:"stats-metric-primary-grid",children:[re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ce(n.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ce(n.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:Ht(n.calls>0?n.errors/n.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card primary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed API-equivalent estimate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:ka(n.cost,n.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:lt(Math.round(n.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:lt(Math.round(n.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:[lt(n.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-metric-card secondary",children:[re.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-metric-value",children:[lt(n.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Dz=6;function Ez(a){let n=new Map;for(let g of a)n.set(g.tool,(n.get(g.tool)??0)+g.calls);let s=[...n.entries()].sort((g,b)=>b[1]-g[1]),i=s.slice(0,Dz).map(([g])=>g),l=new Set(i),d=s.length>i.length?[...i,"Other"]:i,p=[...new Set(a.map((g)=>g.timestamp))].sort((g,b)=>g-b),h=new Map;for(let g of p)h.set(g,{});for(let g of a){let b=l.has(g.tool)?g.tool:"Other",y=h.get(g.timestamp);if(y)y[b]=(y[b]??0)+g.calls}return{buckets:p,tools:d,data:h}}function Oz({series:a,timeRange:n}){let s=$t(),i=sa[s],l=Ll(n),u=cn.useMemo(()=>Ez(a),[a]),d=cn.useMemo(()=>({labels:u.buckets.map((h)=>Lf(h,n)),datasets:u.tools.map((h,g)=>({label:h,data:u.buckets.map((b)=>u.data.get(b)?.[h]??0),borderColor:bt[g%bt.length],backgroundColor:`${bt[g%bt.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[u,n]),p=cn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:i.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:i.tooltipBackground,titleColor:i.tooltipTitle,bodyColor:i.tooltipBody,borderColor:i.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(h)=>`${h.dataset.label??""}: ${Ce(h.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:i.grid,drawBorder:!1},ticks:{color:i.tick,font:{size:11}}},y:{stacked:!0,grid:{color:i.grid,drawBorder:!1},ticks:{color:i.tick,font:{size:11},precision:0},min:0}}}),[i]);return re.jsxDEV(ut,{title:"Calls Over Time",subtitle:`Tool calls over ${l.windowLabel}, stacked by tool`,children:re.jsxDEV("div",{className:"h-[280px]",children:u.buckets.length===0?re.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):re.jsxDEV(Xa,{data:d,options:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function a0(a){return a>0.1?"danger":a>0?"warning":"success"}function Pz({byTool:a}){let n=cn.useMemo(()=>vA(a),[a]),s=cn.useMemo(()=>[{key:"tool",header:"Tool",render:(l)=>re.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:l.tool,children:l.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(l)=>re.jsxDEV("div",{className:"stats-text-right",children:[re.jsxDEV("div",{className:"font-mono",children:Ce(l.calls)},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:re.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${l.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(l)=>re.jsxDEV(ya,{variant:a0(l.errorRate),children:Ht(l.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:lt(Math.round(l.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",children:ka(l.costShare,l.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:lt(l.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(l)=>re.jsxDEV("span",{className:"stats-text-secondary",children:za(l.lastUsed)},void 0,!1,void 0,this)}],[]);return re.jsxDEV(ut,{title:"By Tool",subtitle:"Usage per tool, most called first",children:re.jsxDEV(Ma,{columns:s,data:n,keyExtractor:(l)=>l.tool,renderMobileCard:(l)=>re.jsxDEV("div",{className:"stats-mobile-card",children:[re.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[re.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:l.tool},void 0,!1,void 0,this),re.jsxDEV(ya,{variant:a0(l.errorRate),children:[Ht(l.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-grid",children:[re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Ce(l.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:lt(Math.round(l.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. API-equivalent estimate"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:ka(l.costShare,l.unpricedRequestsShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:lt(l.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Bz({byToolModel:a}){let[n,s]=cn.useState(null),i=cn.useMemo(()=>[...new Set(a.map((d)=>d.tool))].sort(),[a]),l=cn.useMemo(()=>(n?a.filter((p)=>p.tool===n):a).map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0})),[a,n]),u=cn.useMemo(()=>[{key:"tool",header:"Tool",render:(d)=>re.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:d.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(d)=>re.jsxDEV("div",{children:[re.jsxDEV("div",{className:"stats-text-primary",children:d.model||"(unknown)"},void 0,!1,void 0,this),re.jsxDEV("div",{className:"stats-text-secondary text-xs",children:d.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:Ce(d.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(d)=>re.jsxDEV(ya,{variant:a0(d.errorRate),children:Ht(d.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:lt(Math.round(d.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. API-equivalent estimate",numeric:!0,render:(d)=>re.jsxDEV("span",{className:"font-mono",children:ka(d.costShare,d.unpricedRequestsShare)},void 0,!1,void 0,this)}],[]);return re.jsxDEV(ut,{title:"By Model",subtitle:"Which models call which tools",children:[re.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[re.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),re.jsxDEV("select",{className:"stats-select",value:n??"",onChange:(d)=>s(d.target.value||null),style:{maxWidth:"320px",flex:1},children:[re.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),i.map((d)=>re.jsxDEV("option",{value:d,children:d},d,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),re.jsxDEV(Ma,{columns:u,data:l,keyExtractor:(d)=>`${d.tool}::${d.model}::${d.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var If=Q(dt(),1);var wt=Q(dt(),1);var Ym=Q(dt(),1);var Qs=Q(de(),1);function XA({toolStats:a}){let[n,s]=Ym.useState(!1),i=Ym.useMemo(()=>[{key:"tool",header:"Tool",render:(l)=>l.tool},{key:"calls",header:"Calls",numeric:!0,render:(l)=>Ce(l.calls)},{key:"errors",header:"Errors",numeric:!0,render:(l)=>Ce(l.errors)},{key:"total",header:"Total",numeric:!0,render:(l)=>rt(l.totalMs)},{key:"avg",header:"Avg",numeric:!0,render:(l)=>rt(l.calls>0?l.totalMs/l.calls:0)},{key:"max",header:"Max",numeric:!0,render:(l)=>rt(l.maxMs)}],[]);if(a.length===0)return null;return Qs.jsxDEV("div",{className:"stats-panel",children:[Qs.jsxDEV("button",{type:"button",onClick:()=>s((l)=>!l),"aria-expanded":n,style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"none",border:"none",padding:"10px 14px",cursor:"pointer",textAlign:"left"},children:[n?Qs.jsxDEV(Ys,{size:14,className:"stats-text-muted","aria-hidden":"true"},void 0,!1,void 0,this):Qs.jsxDEV(hl,{size:14,className:"stats-text-muted","aria-hidden":"true"},void 0,!1,void 0,this),Qs.jsxDEV("span",{className:"stats-panel-title",children:"Tool Aggregates"},void 0,!1,void 0,this),Qs.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:11},children:[a.length," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n&&Qs.jsxDEV("div",{className:"stats-panel-body",children:Qs.jsxDEV(Ma,{columns:i,data:a,keyExtractor:(l)=>l.tool,emptyText:"No tool calls"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wn=Q(dt(),1);var Yu={dark:{category:{turn:"#34d399",model:"#a78bfa",tool:"#fbbf24",subagent:"#38bdf8",background:"#94a3b8"},error:"#f87171",marker:"#facc15",turnBand:"rgba(255, 255, 255, 0.035)",surface:"transparent",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93",spanText:"#16121c",selection:"#5ad8e6",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)"},light:{category:{turn:"#059669",model:"#7c3aed",tool:"#d97706",subagent:"#0284c7",background:"#64748b"},error:"#ef4444",marker:"#ca8a04",turnBand:"rgba(0, 0, 0, 0.04)",surface:"transparent",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275",spanText:"#ffffff",selection:"#0e7490",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)"}};var WA=Q(de(),1),fi=44,o0=["turn","model","tool","subagent"],YA=6,$u=10;function $A({tracks:a,scale:n,viewport:s,onViewportChange:i}){let l=$t(),u=Yu[l],d=wn.useRef(null),[p,h]=wn.useState(800),g=wn.useRef(null);wn.useEffect(()=>{let B=d.current;if(!B)return;let z=new ResizeObserver((H)=>{h(Math.max(100,Math.floor(H[0].contentRect.width)))});return z.observe(B),()=>z.disconnect()},[]);let[b,y]=n.domain,v=Math.max(y-b,0.000000001),T=wn.useCallback((B)=>(B-b)/v*p,[b,v,p]),M=wn.useCallback((B)=>b+B/Math.max(p,1)*v,[b,v,p]);wn.useEffect(()=>{let B=d.current;if(!B)return;let z=B.getContext("2d");if(!z)return;let H=devicePixelRatio;z.setTransform(H,0,0,H,0,0),z.clearRect(0,0,p,fi);let V=fi/o0.length;for(let Y=0;Y<o0.length;Y++){let J=o0[Y],j=new Float32Array(p);for(let se of a)for(let ge of se.spans){if(ge.kind!==J)continue;let ye=Math.max(0,Math.floor(T(n.toU(ge.start)))),Se=Math.min(p-1,Math.ceil(T(n.toU(ge.end))));for(let K=ye;K<=Se;K++)j[K]=Math.min(1,j[K]+0.34)}z.fillStyle=u.category[J];for(let se=0;se<p;se++){if(j[se]<=0)continue;z.globalAlpha=0.25+j[se]*0.75,z.fillRect(se,Y*V+1,1,V-2)}z.globalAlpha=1}let G=T(s.u0),X=T(s.u1);z.fillStyle=l==="dark"?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)",z.fillRect(G,0,X-G,fi),z.strokeStyle=u.selection,z.strokeRect(G+0.5,0.5,X-G-1,fi-1),z.fillStyle=u.selection,z.fillRect(G,0,2,fi),z.fillRect(X-2,0,2,fi)},[a,n,s,u,l,p,T]);let I=(B)=>{let z=B.currentTarget.getBoundingClientRect(),H=B.clientX-z.left,V=T(s.u0),G=T(s.u1),X;if(Math.abs(H-V)<=YA)X="left";else if(Math.abs(H-G)<=YA)X="right";else if(H>V&&H<G)X="move";else{X="create";let Y=M(H);i(wf({u0:Y,u1:Y+$u},b,y))}g.current={mode:X,startX:H,startViewport:s},B.currentTarget.setPointerCapture(B.pointerId)},w=(B)=>{let z=g.current;if(!z)return;let H=B.currentTarget.getBoundingClientRect(),V=B.clientX-H.left,G=M(V)-M(z.startX),{u0:X,u1:Y}=z.startViewport;if(z.mode==="move")i(wf({u0:X+G,u1:Y+G},b,y));else if(z.mode==="left")i(wf({u0:Math.min(X+G,Y-$u),u1:Y},b,y));else if(z.mode==="right")i(wf({u0:X,u1:Math.max(Y+G,X+$u)},b,y));else{let J=M(z.startX),j=M(V);i(wf({u0:Math.min(J,j),u1:Math.max(J,j,Math.min(J,j)+$u)},b,y))}},A=()=>{g.current=null};return WA.jsxDEV("canvas",{ref:d,width:Math.floor(p*devicePixelRatio),height:Math.floor(fi*devicePixelRatio),style:{width:"100%",height:fi,display:"block",cursor:"crosshair",borderRadius:4,border:"1px solid var(--border)",touchAction:"none"},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((s.u0-b)/v*100),tabIndex:-1,onPointerDown:I,onPointerMove:w,onPointerUp:A},void 0,!1,void 0,this)}function wf(a,n,s){let i=Math.max($u,a.u1-a.u0);i=Math.min(i,s-n||$u);let l=a.u0;if(l<n)l=n;if(l+i>s)l=s-i;return{u0:l,u1:l+i}}var kn=Q(dt(),1);var Te=Q(de(),1);function Nz(a){let n=[];if(typeof a==="string"){if(a.trim())n.push({kind:"text",text:a});return n}if(!Array.isArray(a))return n;for(let s of a){if(!s||typeof s!=="object"||!("type"in s))continue;if((s.type==="text"||s.type==="thinking")&&"text"in s&&typeof s.text==="string")n.push({kind:String(s.type),text:s.text})}return n}function ZA({span:a,track:n,onClose:s,onOpenChildTrack:i}){let[l,u]=kn.useState(null),[d,p]=kn.useState(!1),[h,g]=kn.useState(null),[b,y]=kn.useState(!1),v=kn.useRef(null),T=kn.useRef(null);if(kn.useEffect(()=>{if(u(null),g(null),y(!1),!a||!n||!a.entryId)return;T.current=document.activeElement instanceof HTMLElement?document.activeElement:null,p(!0);let z=new AbortController;return HI(n.file,a.entryId,z.signal).then((H)=>{if(z.signal.aborted)return;u(H.entry),setTimeout(()=>v.current?.focus(),50)}).catch((H)=>{if(z.signal.aborted)return;g(H instanceof Error?H:Error(String(H)))}).finally(()=>{if(!z.signal.aborted)p(!1)}),()=>z.abort()},[a,n]),kn.useEffect(()=>{if(!a)return;let z=(H)=>{if(H.key==="Escape")s()};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z),T.current?.focus()}},[a,s]),!a)return null;let M=(z)=>{if(z.target===z.currentTarget)s()},I=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(l??a,null,2)),y(!0),setTimeout(()=>y(!1),1500)}catch{}},A=(l&&typeof l==="object"?l:{}).message,B=A?.usage;return Te.jsxDEV("div",{className:"stats-drawer-overlay",onClick:M,role:"presentation",children:Te.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Span details",children:[Te.jsxDEV("div",{className:"stats-drawer-header",children:[Te.jsxDEV("div",{className:"stats-drawer-header-left",children:[Te.jsxDEV("h2",{className:"stats-drawer-title truncate",style:{maxWidth:320},children:a.label},void 0,!1,void 0,this),Te.jsxDEV(ya,{variant:a.isError?"danger":"success",children:a.kind},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{style:{display:"flex",gap:8},children:[Te.jsxDEV("button",{type:"button",onClick:I,className:"stats-drawer-close-btn","aria-label":"Copy raw JSON",title:"Copy raw JSON",children:b?Te.jsxDEV(pl,{size:16},void 0,!1,void 0,this):Te.jsxDEV(gl,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Te.jsxDEV("button",{ref:v,type:"button",onClick:s,className:"stats-drawer-close-btn","aria-label":"Close span details",children:Te.jsxDEV($s,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-body",children:Te.jsxDEV("div",{className:"stats-drawer-content",children:[Te.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Duration"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(a.end-a.start)},void 0,!1,void 0,this),a.unterminated&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Start"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",style:{fontSize:13},children:new Date(a.start).toLocaleTimeString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a.kind==="model"&&Te.jsxDEV(Te.Fragment,{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Tokens"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:Ce(a.tokens??0)},void 0,!1,void 0,this),B&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[Ce(B.input??0)," in · ",Ce(B.output??0)," out ·"," ",Ce(B.cacheRead??0)," cached"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Cost"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:["$",(a.cost??0).toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"TTFT"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",children:rt(a.ttft??null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-card",children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Model"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-metric-value",style:{fontSize:12},children:A?.model??a.model??"-"},void 0,!1,void 0,this),A?.provider&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:A.provider},void 0,!1,void 0,this),A?.stopReason&&Te.jsxDEV("div",{className:"stats-drawer-metric-sub",children:["stop: ",A.stopReason]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A?.errorMessage&&Te.jsxDEV("div",{className:"stats-drawer-error-block",children:[Te.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),Te.jsxDEV("div",{className:"stats-drawer-error-text",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a.kind==="subagent"&&Te.jsxDEV("div",{children:[a.detail&&Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10},children:a.detail},void 0,!1,void 0,this),a.childTrackId&&i&&Te.jsxDEV("button",{type:"button",className:"stats-segmented-control-btn",style:{marginTop:8,border:"1px solid var(--border)",borderRadius:6},onClick:()=>i(a.childTrackId??""),children:["Open child track ",a.childTrackId]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),a.kind==="tool"&&a.detail&&Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",children:"Args"},void 0,!1,void 0,this),Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10},children:a.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d&&Te.jsxDEV("div",{children:[Te.jsxDEV(Ua,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),Te.jsxDEV(Ua,{variant:"rect",width:"100%",height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h&&Te.jsxDEV("div",{className:"stats-drawer-error",children:[Te.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load entry"},void 0,!1,void 0,this),Te.jsxDEV("p",{className:"stats-drawer-error-message",children:h.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!d&&l!==null&&Nz(A?.content).map((z,H)=>Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"stats-drawer-metric-label",style:{textTransform:"capitalize"},children:z.kind},void 0,!1,void 0,this),Te.jsxDEV("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,background:"var(--surface-2)",borderRadius:6,padding:10,maxHeight:360,overflowY:"auto"},children:z.text},void 0,!1,void 0,this)]},`${z.kind}-${H}`,!0,void 0,this)),!d&&l!==null&&Te.jsxDEV("div",{className:"stats-drawer-json-blocks",children:Te.jsxDEV(Cf,{data:l,title:"Raw Entry",initialCollapsed:!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,!0,void 0,this)},void 0,!1,void 0,this)}var kf=Q(de(),1);function QA({summary:a}){let n=[{label:"Wall",value:rt(a.wallMs)},{label:"Model",value:rt(a.modelMs)},{label:"Tools",value:rt(a.toolMs)},{label:"Idle",value:rt(a.idleMs)},{label:"Turns",value:Ce(a.turns)},{label:"Requests",value:Ce(a.requests)},{label:"Tool Calls",value:Ce(a.toolCalls)},{label:"Agents",value:Ce(a.subagents)},{label:"Tokens",value:lt(a.totalTokens)},{label:"Cost",value:us(a.costTotal)}];return kf.jsxDEV("div",{className:"stats-trace-summary",children:n.map((s)=>kf.jsxDEV("div",{className:"stats-trace-summary-cell",children:[kf.jsxDEV("span",{className:"stats-trace-summary-label",children:s.label},void 0,!1,void 0,this),kf.jsxDEV("span",{className:"stats-trace-summary-value",children:s.value},void 0,!1,void 0,this)]},s.label,!0,void 0,this))},void 0,!1,void 0,this)}var jt=Q(dt(),1);function $m(a,n){let s=a.length,i=[n[0],n[s-1]],l=(u,d)=>{let p=0,h=s-1;while(p<h){let g=p+h+1>>1;if(u[g]<=d)p=g;else h=g-1}return Math.min(p,s-2)};return{toU(u){if(u<=a[0])return n[0];if(u>=a[s-1])return n[s-1];let d=l(a,u),p=a[d+1]-a[d];if(p<=0)return n[d];return n[d]+(u-a[d])/p*(n[d+1]-n[d])},toT(u){if(u<=n[0])return a[0];if(u>=n[s-1])return a[s-1];let d=l(n,u),p=n[d+1]-n[d];if(p<=0)return a[d];return a[d]+(u-n[d])/p*(a[d+1]-a[d])},domain:i,gaps:[]}}function zz(a){let n=[];for(let s of a)for(let i of s.spans)n.push([i.start,i.end]);return n.sort((s,i)=>s[0]-i[0]),n}function Hz(a){let{POSITIVE_INFINITY:n,NEGATIVE_INFINITY:s}=Number;for(let i of a)for(let l of i.spans){if(l.start<n)n=l.start;if(l.end>s)s=l.end}if(!Number.isFinite(n))return[0,1];return[n,Math.max(s,n+1)]}function KA(a,n,s){let i=[...new Set(a.filter((p)=>p>=n&&p<=s))].sort((p,h)=>p-h);if(i[0]!==n)i.unshift(n);if(i[i.length-1]!==s)i.push(s);if(i.length<2)return $m([n,s],[n,s]);let u=(s-n)/(i.length-1),d=i.map((p,h)=>n+h*u);return $m(i,d)}function Uz(a,n,s){let i=zz(a),l=[];for(let[b,y]of i){let v=b-2000,T=y+2000,M=l[l.length-1];if(M&&v<=M[1]){if(T>M[1])M[1]=T}else l.push([v,T])}if(l.length===0)l.push([n,s]);l[0][0]=Math.max(l[0][0],n),l[l.length-1][1]=Math.min(Math.max(l[l.length-1][1],l[l.length-1][0]),s);let u=[],d=[],p=[],h=l[0][0];for(let b=0;b<l.length;b++){let[y,v]=l[b];if(b===0)u.push(y),d.push(h);else{let T=l[b-1][1],M=y-T;if(M>30000)h+=8000,p.push({t0:T,t1:y,uMid:h-4000});else h+=M;u.push(y),d.push(h)}h+=Math.max(0,v-y),u.push(v),d.push(h)}return{...$m(u,d),gaps:p}}function JA(a,n,s){let[i,l]=Hz(a);if(n==="turns"){let d=(a.find((p)=>p.id==="main")?.spans??[]).filter((p)=>p.kind==="turn").map((p)=>p.start);return KA(d,i,l)}if(n==="calls"){let u=[];for(let d of a)for(let p of d.spans)if(p.kind==="model"||p.kind==="tool"||p.kind==="background")u.push(p.start,p.end);return KA(u,i,l)}if(s)return Uz(a,i,l);return $m([i,l],[i,l])}var Fz=90;function qz(a){let n=10**Math.floor(Math.log10(Math.max(a,1)));for(let s of[1,2,5,10])if(n*s>=a)return n*s;return n*10}function Vz(a){let n=new Date(a),s=String(n.getHours()).padStart(2,"0"),i=String(n.getMinutes()).padStart(2,"0"),l=String(n.getSeconds()).padStart(2,"0");return`${s}:${i}:${l}`}function Wu(a){let n=a<0?"-":"+",s=Math.abs(a),i=Math.floor(s/3600000),l=Math.floor(s%3600000/60000),u=Math.floor(s%60000/1000),d=Math.floor(s%1000),p=s%1000!==0,h=`${String(l).padStart(2,"0")}:${String(u).padStart(2,"0")}${p?".":""}${p?String(d).padStart(3,"0"):""}`;return i>0?`${n}${i}:${h}`:`${n}${h}`}function eR(a,n,s,i){let l=s-n;if(l<=0||i<=0)return[];let u=[],d=a.domain[0],p=qz(l*Fz/i),h=d+Math.ceil((n-d)/p)*p,g=0;for(let b=h;b<=s&&g<200;b+=p,g++){let y=a.toT(b),v=Math.round((b-d)/p)%5===0;u.push({u:b,label:v?Vz(y):Wu(b-d),major:v})}return u}var xt=Q(de(),1),Ks=28,s0=22,So=18,tR=3,jz=14,aR=200,n0=10,Gz=2,Xz=4,Yz=56,oR=3,$z=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function Wz(a,n){let s=new Map(a.map((h)=>[h.id,h])),i=new Set;for(let h of a)if(h.parentId)i.add(h.parentId);let l=(h)=>{let g=h.parentId;while(g){if(n.has(g))return!0;g=s.get(g)?.parentId??null}return!1},u=[],d=[],p=Ks+6;for(let h of a){if(l(h))continue;let g=h.id==="main"?0:h.id.split("/").length,b={track:h,depth:g,hasChildren:i.has(h.id),headerY:p,lanes:[],y0:p,y1:p};p+=s0;for(let{kind:y,label:v}of $z){let T=h.spans.filter((w)=>w.kind===y),M=y==="turn"||y==="model"||y==="tool";if(T.length===0&&!(h.id==="main"&&M))continue;let I={track:h,kind:y,label:v,y:p,spans:T};b.lanes.push(I),d.push(I),p+=So+tR}b.y1=p-tR,u.push(b),p+=jz}return{blocks:u,lanes:d,totalHeight:Math.max(p,Ks+48)}}function nR({tracks:a,scale:n,viewport:s,onViewportChange:i,selection:l,onSelect:u,search:d,collapsed:p,onToggleCollapse:h,traceStart:g}){let b=$t(),y=Yu[b],v=jt.useRef(null),T=jt.useRef(null),[M,I]=jt.useState(800),[w,A]=jt.useState(null),B=jt.useRef([]),z=jt.useRef(null),H=jt.useRef(null),V=jt.useRef(s);V.current=s;let G=jt.useMemo(()=>Wz(a,p),[a,p]);jt.useEffect(()=>{let k=v.current;if(!k)return;let W=new ResizeObserver((ee)=>{let ne=Math.max(100,Math.floor(ee[0].contentRect.width-aR));I(ne)});return W.observe(k),()=>W.disconnect()},[]);let X=jt.useCallback((k,W)=>{let[ee,ne]=n.domain,te=Math.max(n0,W-k);te=Math.min(te,ne-ee||n0);let le=k;if(le<ee)le=ee;if(le+te>ne)le=ne-te;return{u0:le,u1:le+te}},[n]),Y=jt.useCallback((k)=>{V.current=k,i(k)},[i]),J=jt.useCallback((k,W)=>{let ee=M,{u0:ne,u1:te}=V.current,le=te-ne,fe=W===null?0.5:Math.min(1,Math.max(0,W/ee)),et=ne+le*fe,tt=le*k;Y(X(et-tt*fe,et+tt*(1-fe)))},[M,Y,X]),j=jt.useCallback((k)=>{let{u0:W,u1:ee}=V.current;Y(X(W+k,ee+k))},[Y,X]),se=jt.useCallback((k)=>{let W=n.toU(k.start),ee=n.toU(k.end),ne=Math.max((ee-W)*0.1,n0/2);Y(X(W-ne,ee+ne))},[n,Y,X]);jt.useEffect(()=>{let k=T.current;if(!k)return;let W=(ee)=>{ee.preventDefault();let ne=k.getBoundingClientRect(),te=ee.clientX-ne.left;H.current=te,A(null);let le=k.clientWidth||1,fe=()=>V.current.u1-V.current.u0;if(ee.shiftKey){let et=Math.abs(ee.deltaY)>=Math.abs(ee.deltaX)?ee.deltaY:ee.deltaX;j(et/le*fe());return}if(ee.deltaX!==0)j(ee.deltaX/le*fe());if(ee.deltaY!==0)J(1.0015**ee.deltaY,te)};return k.addEventListener("wheel",W,{passive:!1}),()=>k.removeEventListener("wheel",W)},[J,j]);let ge=jt.useCallback((k,W)=>{let ee=T.current;if(!ee)return null;let ne=ee.getBoundingClientRect(),te=k-ne.left,le=W-ne.top,fe=B.current;for(let et=fe.length-1;et>=0;et--){let tt=fe[et];if(te>=tt.x&&te<=tt.x+tt.w&&le>=tt.y&&le<=tt.y+tt.h)return tt}return null},[]),ye=(k)=>{k.currentTarget.setPointerCapture(k.pointerId),z.current={pointerId:k.pointerId,lastX:k.clientX,moved:!1},k.currentTarget.focus()},Se=(k)=>{let W=k.currentTarget.getBoundingClientRect();H.current=k.clientX-W.left;let ee=z.current;if(ee&&ee.pointerId===k.pointerId){let te=k.clientX-ee.lastX;if(Math.abs(te)>0){if(Math.abs(te)>2)ee.moved=!0;ee.lastX=k.clientX;let le=V.current.u1-V.current.u0;j(-te/(M||1)*le)}A(null);return}let ne=ge(k.clientX,k.clientY);A(ne?{hit:ne,clientX:k.clientX,clientY:k.clientY}:null)},K=(k)=>{let W=z.current;if(z.current=null,W?.moved)return;let ee=ge(k.clientX,k.clientY);if(ee?.kind==="span")u(ee.span.id);else u(null)},pe=(k)=>{let W=ge(k.clientX,k.clientY);if(W?.kind==="span")se(W.span)},be=jt.useCallback((k)=>{if(!l)return;for(let W of G.lanes){let ee=W.spans.findIndex((le)=>le.id===l);if(ee===-1)continue;let ne=W.spans[ee+k];if(!ne)return;u(ne.id);let te=n.toU(ne.start);if(te<s.u0||te>s.u1){let le=s.u1-s.u0;i(X(te-le/2,te+le/2))}return}},[l,G,u,n,s,i,X]),Ue=(k)=>{let W=s.u1-s.u0;switch(k.key){case"w":case"W":J(0.7692307692307692,H.current);break;case"s":case"S":J(1.3,H.current);break;case"a":case"A":j(-W*0.2);break;case"d":case"D":j(W*0.2);break;case"0":i({u0:n.domain[0],u1:n.domain[1]});break;case"f":case"F":{if(!l)break;let ee=a.flatMap((ne)=>ne.spans).find((ne)=>ne.id===l);if(ee)se(ee);break}case"Escape":u(null);break;case",":be(-1);break;case".":be(1);break;default:return}k.preventDefault()};jt.useEffect(()=>{T.current?.focus({preventScroll:!0})},[]),jt.useEffect(()=>{let k=T.current;if(!k)return;let W=requestAnimationFrame(()=>{Zz(k,G,n,s,y,{width:M,selection:l,hoverId:w?.hit.kind==="span"?w.hit.span.id:null,search:d,hits:B})});return()=>cancelAnimationFrame(W)},[G,n,s,y,M,l,w,d]);let He=w?Qz(w,g):null;return xt.jsxDEV("div",{ref:v,className:"stats-trace-timeline",children:[xt.jsxDEV("div",{style:{width:aR,flexShrink:0,position:"relative",height:G.totalHeight},children:G.blocks.map((k)=>xt.jsxDEV("div",{children:[xt.jsxDEV("div",{style:{position:"absolute",top:k.headerY,left:4+k.depth*14,right:8,height:s0,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[k.hasChildren?xt.jsxDEV("button",{type:"button",onClick:()=>h(k.track.id),"aria-label":p.has(k.track.id)?`Expand ${k.track.label}`:`Collapse ${k.track.label}`,className:"stats-trace-chevron",children:p.has(k.track.id)?xt.jsxDEV(hl,{size:12},void 0,!1,void 0,this):xt.jsxDEV(Ys,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):xt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"stats-trace-gutter-track truncate",style:{minWidth:0},children:k.track.label},void 0,!1,void 0,this),k.track.model&&xt.jsxDEV("span",{className:"stats-trace-gutter-model truncate",style:{flexShrink:1,minWidth:0},children:k.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.lanes.map((W)=>xt.jsxDEV("div",{className:"stats-trace-gutter-lane",style:{top:W.y,left:20+k.depth*14,lineHeight:`${So}px`},children:W.label},`${W.track.id}:${W.kind}`,!1,void 0,this))]},k.track.id,!0,void 0,this))},void 0,!1,void 0,this),xt.jsxDEV("canvas",{ref:T,className:"stats-trace-canvas",width:Math.floor(M*devicePixelRatio),height:Math.floor(G.totalHeight*devicePixelRatio),style:{width:M,height:G.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:ye,onPointerMove:Se,onPointerUp:K,onPointerLeave:()=>{H.current=null,A(null)},onDoubleClick:pe,onKeyDown:Ue},void 0,!1,void 0,this),He]},void 0,!0,void 0,this)}function Mf(a,n,s,i,l){if(a.beginPath(),i>=oR*2+1)a.roundRect(n,s,i,l,oR);else a.rect(n,s,i,l)}function Zz(a,n,s,i,l,u){let d=a.getContext("2d");if(!d)return;let{width:p,selection:h,hoverId:g,search:b,hits:y}=u,v=n.totalHeight,T=devicePixelRatio;d.setTransform(T,0,0,T,0,0),d.clearRect(0,0,p,v);let{u0:M,u1:I}=i,w=Math.max(I-M,0.000000001),A=(H)=>(H-M)/w*p,B=b.trim().toLowerCase(),z=[];for(let H of n.blocks){let V=H.track.spans.filter((G)=>G.kind==="turn");for(let G=0;G<V.length;G++){let X=A(s.toU(V[G].start)),Y=G+1<V.length?A(s.toU(V[G+1].start)):p;if(Y<0||X>p)continue;if(G%2===1)d.fillStyle=l.turnBand,d.fillRect(Math.max(0,X),H.y0,Math.min(p,Y)-Math.max(0,X),H.y1-H.y0);if(X>=0&&X<=p)d.strokeStyle=l.grid,d.beginPath(),d.moveTo(Math.round(X)+0.5,H.y0),d.lineTo(Math.round(X)+0.5,H.y1),d.stroke()}}for(let H of s.gaps){let V=A(H.uMid);if(V<-24||V>p+24)continue;d.save(),d.strokeStyle=l.grid,d.setLineDash([2,4]),d.beginPath(),d.moveTo(V,Ks),d.lineTo(V,v),d.stroke(),d.restore(),d.fillStyle=l.tick,d.font="9px system-ui, sans-serif",d.textAlign="center",d.fillText(`⋯ ${rt(H.t1-H.t0)}`,V,Ks-4),d.textAlign="left"}d.font="9px system-ui, sans-serif";for(let H of eR(s,M,I,p)){let V=Math.round(A(H.u))+0.5;if(d.strokeStyle=l.grid,d.beginPath(),H.major)d.moveTo(V,4),d.lineTo(V,v);else d.moveTo(V,Ks-8),d.lineTo(V,Ks);if(d.stroke(),d.fillStyle=l.tick,H.major)d.fillText(H.label,V+4,11);else d.globalAlpha=0.75,d.fillText(H.label,V+3,Ks-10),d.globalAlpha=1}d.strokeStyle=l.grid,d.beginPath(),d.moveTo(0,Ks+0.5),d.lineTo(p,Ks+0.5),d.stroke();for(let H of n.lanes){let V=H.kind==="turn";for(let G of H.spans){let X=s.toU(G.start);if(X>I)break;let Y=s.toU(G.end);if(Y<M)continue;let J=A(X),j=Math.max(Gz,A(Y)-J),se=H.y,ge=B===""||`${G.label} ${G.detail??""}`.toLowerCase().includes(B),ye=l.category[G.kind];if(d.globalAlpha=ge?1:0.3,V)d.fillStyle=`${ye}3a`,Mf(d,J,se,j,So),d.fill(),d.fillStyle=ye,d.fillRect(J,se,2,So);else d.fillStyle=ye,Mf(d,J,se,j,So),d.fill();if(G.isError)d.fillStyle=`${l.error}55`,Mf(d,J,se,j,So),d.fill(),d.fillStyle=l.error,d.fillRect(J,se,2,So);if(G.kind==="model"&&typeof G.ttft==="number"&&G.ttft>0&&j>20){let K=A(s.toU(G.start+G.ttft));if(K>J+1&&K<J+j-1)d.fillStyle="rgba(0,0,0,0.5)",d.fillRect(K,se+3,1,So-6)}if(G.unterminated)d.save(),d.strokeStyle=l.tick,d.setLineDash([2,2]),d.beginPath(),d.moveTo(J+j-0.5,se),d.lineTo(J+j-0.5,se+So),d.stroke(),d.restore();if(g===G.id)d.fillStyle="rgba(255,255,255,0.16)",Mf(d,J,se,j,So),d.fill();if(h===G.id)d.strokeStyle=l.selection,d.lineWidth=1.5,Mf(d,J-1,se-1,j+2,So+2),d.stroke(),d.lineWidth=1;if(j>Yz)d.save(),d.beginPath(),d.rect(J+3,se,j-6,So),d.clip(),d.fillStyle=V?l.tick:l.spanText,d.font="10px system-ui, sans-serif",d.fillText(G.label,J+5,se+So-5),d.restore();d.globalAlpha=1;let Se=Math.max(j,Xz);z.push({kind:"span",x:J-(Se-j)/2,y:se,w:Se,h:So,span:G,track:H.track})}}for(let H of n.blocks)for(let V of H.track.markers){let G=A(s.toU(V.time));if(G<-6||G>p+6)continue;let X=H.headerY+s0/2;d.fillStyle=l.marker,d.beginPath(),d.moveTo(G,X-4),d.lineTo(G+4,X),d.lineTo(G,X+4),d.lineTo(G-4,X),d.closePath(),d.fill(),z.push({kind:"marker",x:G-5,y:X-5,w:10,h:10,marker:V,track:H.track})}y.current=z}function Qz(a,n){let s=Math.min(a.clientX+14,window.innerWidth-320),i=a.clientY+16>window.innerHeight-140?a.clientY-120:a.clientY+16,l={position:"fixed",left:s,top:i,zIndex:60,maxWidth:300,pointerEvents:"none",background:"var(--surface-2)",border:"1px solid var(--border-strong)",borderRadius:6,padding:"7px 10px",fontSize:11,lineHeight:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.25)"};if(a.hit.kind==="marker"){let{marker:d}=a.hit;return xt.jsxDEV("div",{style:l,children:[xt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:d.label},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"stats-text-muted",children:[new Date(d.time).toLocaleTimeString()," (",Wu(d.time-n),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:u}=a.hit;return xt.jsxDEV("div",{style:l,children:[xt.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate",children:u.label},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"stats-text-muted",children:[rt(u.end-u.start)," · ",new Date(u.start).toLocaleTimeString()," (",Wu(u.start-n),")",u.unterminated?" · unterminated":""]},void 0,!0,void 0,this),u.kind==="model"&&xt.jsxDEV("div",{className:"stats-text-muted",children:[u.tokens!==void 0&&xt.jsxDEV(xt.Fragment,{children:[u.tokens.toLocaleString()," tok"]},void 0,!0,void 0,this),u.cost!==void 0&&xt.jsxDEV(xt.Fragment,{children:[" · $",u.cost.toFixed(4)]},void 0,!0,void 0,this),u.ttft!==void 0&&xt.jsxDEV(xt.Fragment,{children:[" · TTFT ",rt(u.ttft)]},void 0,!0,void 0,this),u.isError&&xt.jsxDEV(xt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.kind==="subagent"&&u.model&&xt.jsxDEV("div",{className:"stats-text-muted",children:u.model},void 0,!1,void 0,this),u.detail&&xt.jsxDEV("div",{className:"stats-text-secondary",style:{wordBreak:"break-word"},children:u.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Js=Q(dt(),1);var Aa=Q(de(),1),Zu=28,sR=20,Kz=340;function Jz(a){let n=[];for(let s of a){let i=s.id==="main"?0:s.id.split("/").length;for(let l of s.spans)n.push({key:l.id,time:l.start,span:l,track:s,depth:i});for(let l=0;l<s.markers.length;l++){let u=s.markers[l];n.push({key:`${s.id}:marker:${l}`,time:u.time,marker:u,track:s,depth:i})}}return n.sort((s,i)=>s.time-i.time),n}function rR({tracks:a,selection:n,onSelect:s,search:i,traceStart:l}){let u=$t(),d=Yu[u],p=Js.useRef(null),[h,g]=Js.useState(0),b=Js.useMemo(()=>Jz(a),[a]),y=Js.useMemo(()=>{let I=i.trim().toLowerCase();if(!I)return b;return b.filter((w)=>(w.span?`${w.span.label} ${w.span.detail??""}`:w.marker?.label??"").toLowerCase().includes(I))},[b,i]);Js.useEffect(()=>{if(!n)return;let I=p.current;if(!I)return;let w=y.findIndex((B)=>B.span?.id===n);if(w===-1)return;let A=w*Zu;if(A<I.scrollTop||A+Zu>I.scrollTop+I.clientHeight)I.scrollTop=Math.max(0,A-I.clientHeight/2)},[n,y]);let v=Math.max(0,Math.floor(h/Zu)-sR),T=Math.min(y.length,Math.ceil((h+Kz)/Zu)+sR),M=y.slice(v,T);return Aa.jsxDEV("div",{ref:p,onScroll:(I)=>g(I.currentTarget.scrollTop),className:"stats-trace-list",children:[Aa.jsxDEV("div",{style:{height:y.length*Zu,position:"relative"},children:Aa.jsxDEV("div",{style:{position:"absolute",top:v*Zu,left:0,right:0},children:M.map((I)=>{let w=I.span,A=w!==void 0&&w.id===n,B=I.span?d.category[I.span.kind]:d.marker,z=I.span?.label??I.marker?.label??"",H=I.span?.detail,V=I.span?rt(I.span.end-I.span.start):"",G=I.span?.kind??I.marker?.kind??"",X=Aa.jsxDEV(Aa.Fragment,{children:[Aa.jsxDEV("span",{className:"stats-trace-kind",style:{color:B,background:`${B}1c`},children:G},void 0,!1,void 0,this),I.depth>0&&Aa.jsxDEV("span",{className:"stats-text-muted truncate",style:{flexShrink:0,maxWidth:90,fontSize:9},title:I.track.label,children:I.track.id},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"stats-text-primary truncate",style:{fontSize:11,minWidth:0,flexShrink:1},children:z},void 0,!1,void 0,this),H&&Aa.jsxDEV("span",{className:"stats-text-muted truncate",style:{fontSize:10,minWidth:0,flex:1},children:H},void 0,!1,void 0,this),Aa.jsxDEV("span",{className:"stats-trace-row-meta",children:[I.span?.isError&&Aa.jsxDEV("span",{style:{color:d.error},children:"error"},void 0,!1,void 0,this),Aa.jsxDEV("span",{children:V},void 0,!1,void 0,this),Aa.jsxDEV("span",{children:Wu(I.time-l)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y={paddingLeft:12+I.depth*12};return w?Aa.jsxDEV("button",{type:"button",onClick:()=>s(w.id),className:"stats-trace-row","data-selected":A?"true":"false",style:Y,children:X},I.key,!1,void 0,this):Aa.jsxDEV("div",{className:"stats-trace-row stats-trace-row-static",style:Y,children:X},I.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),y.length===0&&Aa.jsxDEV("div",{className:"stats-text-muted",style:{padding:16,fontSize:12},children:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ft=Q(de(),1),eH=[{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"}];function iR({file:a,active:n,onBack:s}){let{data:i,error:l,loading:u,refetch:d,refreshing:p}=Vt(["trace",a],(te)=>zI(a,te),{pollMs:15000,enabled:n}),[h,g]=wt.useState("time"),[b,y]=wt.useState(!0),[v,T]=wt.useState(null),[M,I]=wt.useState(!1),[w,A]=wt.useState(""),[B,z]=wt.useState(0),[H,V]=wt.useState(new Set),[G,X]=wt.useState(null),Y=wt.useMemo(()=>i?.tracks??[],[i]),J=wt.useMemo(()=>JA(Y,h,b),[Y,h,b]),j=wt.useRef(J),se=wt.useRef(null);wt.useEffect(()=>{if(!i)return;if(se.current===i.file)return;se.current=i.file,T(null),A(""),X(null);let te=new Set;for(let le of i.tracks)if((le.id==="main"?0:le.id.split("/").length)>=1)te.add(le.id);V(te)},[i]),wt.useEffect(()=>{let te=j.current;j.current=J,X((le)=>{if(!le)return le;let fe=te.toT(le.u0),et=te.toT(le.u1),tt=J.toU(fe),Gt=J.toU(et);return Gt-tt>0?{u0:tt,u1:Gt}:null})},[J]);let ge=G??{u0:J.domain[0],u1:J.domain[1]},ye=wt.useMemo(()=>{let te=[];for(let le of Y)for(let fe of le.spans)te.push({span:fe,track:le});return te.sort((le,fe)=>le.span.start-fe.span.start),te},[Y]),Se=wt.useMemo(()=>{let te=w.trim().toLowerCase();if(!te)return[];return ye.filter(({span:le})=>`${le.label} ${le.detail??""}`.toLowerCase().includes(te))},[ye,w]),K=wt.useCallback((te)=>{let le=J.toU(te.start),fe=J.toU(te.end);X((et)=>{let tt=et??{u0:J.domain[0],u1:J.domain[1]};if(le>=tt.u0&&fe<=tt.u1)return et;let Gt=tt.u1-tt.u0,tr=(le+fe)/2,[me,ds]=J.domain,oo=tr-Gt/2;if(oo<me)oo=me;if(oo+Gt>ds)oo=Math.max(me,ds-Gt);return{u0:oo,u1:oo+Gt}})},[J]),pe=wt.useCallback((te)=>{T(te);let le=ye.find(({span:fe})=>fe.id===te);if(le)K(le.span)},[ye,K]),be=wt.useCallback((te)=>{T(te),I(te!==null)},[]),Ue=wt.useCallback((te)=>{if(Se.length===0)return;let le=((B+te)%Se.length+Se.length)%Se.length;z(le),pe(Se[le].span.id)},[Se,B,pe]),He=wt.useCallback((te)=>{V((le)=>{let fe=new Set(le);if(fe.has(te))fe.delete(te);else fe.add(te);return fe})},[]),k=wt.useMemo(()=>{if(!v)return null;return ye.find(({span:te})=>te.id===v)??null},[v,ye]),W=wt.useCallback((te)=>{let le=Y.find((et)=>et.id===te),fe=le?.spans[0];if(V((et)=>{let tt=new Set(et),Gt=le;while(Gt?.parentId)tt.delete(Gt.parentId),Gt=Y.find((tr)=>tr.id===Gt?.parentId);return tt}),fe)pe(fe.id)},[Y,pe]),ee=wt.useCallback((te)=>{if(!te){V(new Set);return}let le=new Set;for(let fe of Y)if(fe.id!=="main")le.add(fe.id);V(le)},[Y]),ne=i?.startedAt??0;return ft.jsxDEV("div",{className:"stats-trace-view",children:[ft.jsxDEV("div",{className:"stats-trace-header",children:[ft.jsxDEV("button",{type:"button",onClick:s,className:"stats-trace-back",children:[ft.jsxDEV(Jd,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this),ft.jsxDEV("h2",{className:"stats-trace-title",style:{maxWidth:480,margin:0},children:i?.title??a.split("/").pop()},void 0,!1,void 0,this),i?.cwd&&ft.jsxDEV("span",{className:"stats-trace-cwd",children:i.cwd},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>void d(),className:"stats-trace-icon-btn","aria-label":"Refresh trace",title:"Refresh trace",style:{marginLeft:"auto"},children:ft.jsxDEV(yl,{size:14,className:p?"stats-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV(Rt,{loading:u,error:l,data:i,children:i&&ft.jsxDEV(ft.Fragment,{children:[ft.jsxDEV(QA,{summary:i.summary},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"stats-trace-toolbar",children:[ft.jsxDEV(Zs,{options:eH,value:h,onChange:g},void 0,!1,void 0,this),h==="time"&&ft.jsxDEV("label",{className:"stats-trace-check",children:[ft.jsxDEV("input",{type:"checkbox",checked:b,onChange:(te)=>y(te.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),ft.jsxDEV("div",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[ft.jsxDEV("input",{type:"search",value:w,onChange:(te)=>{A(te.target.value),z(0)},placeholder:"Search spans…","aria-label":"Search spans",spellCheck:!1,className:"stats-trace-input",style:{width:190}},void 0,!1,void 0,this),w.trim()&&ft.jsxDEV(ft.Fragment,{children:[ft.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:11,fontVariantNumeric:"tabular-nums"},children:Se.length===0?"0":`${B%Math.max(Se.length,1)+1}/${Se.length}`},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>Ue(-1),className:"stats-trace-icon-btn","aria-label":"Previous match",disabled:Se.length===0,children:"‹"},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>Ue(1),className:"stats-trace-icon-btn","aria-label":"Next match",disabled:Se.length===0,children:"›"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV("div",{style:{marginLeft:"auto",display:"inline-flex",gap:6},children:[ft.jsxDEV("button",{type:"button",onClick:()=>ee(!1),className:"stats-trace-back",children:"Expand all"},void 0,!1,void 0,this),ft.jsxDEV("button",{type:"button",onClick:()=>ee(!0),className:"stats-trace-back",children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV("div",{className:"stats-trace-timeline-card",children:[ft.jsxDEV($A,{tracks:Y,scale:J,viewport:ge,onViewportChange:X},void 0,!1,void 0,this),ft.jsxDEV(nR,{tracks:Y,scale:J,viewport:ge,onViewportChange:X,selection:v,onSelect:be,search:w,collapsed:H,onToggleCollapse:He,traceStart:ne},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"stats-trace-toolbar-hint",style:{marginLeft:0},children:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV(rR,{tracks:Y,selection:v,onSelect:(te)=>{pe(te),I(!0)},search:w,traceStart:ne},void 0,!1,void 0,this),ft.jsxDEV(XA,{toolStats:i.summary.toolStats},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ft.jsxDEV(ZA,{span:M?k?.span??null:null,track:k?.track??null,onClose:()=>I(!1),onOpenChildTrack:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kt=Q(de(),1);function tH({models:a}){let n=a.slice(0,3);return kt.jsxDEV("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[n.map((s)=>kt.jsxDEV("span",{className:"stats-text-muted truncate",style:{fontSize:10,border:"1px solid var(--border)",borderRadius:999,padding:"1px 6px",maxWidth:140},children:s},s,!1,void 0,this)),a.length>3&&kt.jsxDEV("span",{className:"stats-text-muted",style:{fontSize:10},children:["+",a.length-3]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lR({active:a,session:n,onOpenSession:s,refreshTrigger:i}){let[l,u]=If.useState(""),{data:d,error:p,loading:h}=Vt(["sessions",i],(v)=>NI(200,void 0,v),{pollMs:30000,enabled:a&&n===null}),g=If.useMemo(()=>{if(!d)return[];let v=l.trim().toLowerCase();if(!v)return d;return d.filter((T)=>(T.title??"").toLowerCase().includes(v)||T.folder.toLowerCase().includes(v)||T.models.some((M)=>M.toLowerCase().includes(v)))},[d,l]),b=If.useMemo(()=>[{key:"title",header:"Title",render:(v)=>kt.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate",style:{maxWidth:280},children:v.title??v.file.split("/").pop()},void 0,!1,void 0,this)},{key:"folder",header:"Project",render:(v)=>kt.jsxDEV("span",{className:"stats-text-muted truncate",style:{maxWidth:160,display:"inline-block"},children:v.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},{key:"started",header:"Started",render:(v)=>za(v.startedAt)},{key:"duration",header:"Duration",numeric:!0,render:(v)=>rt(v.endedAt-v.startedAt)},{key:"requests",header:"Requests",numeric:!0,render:(v)=>v.requests},{key:"toolCalls",header:"Tools",numeric:!0,render:(v)=>v.toolCalls},{key:"subagents",header:"Agents",numeric:!0,render:(v)=>v.subagents},{key:"tokens",header:"Tokens",numeric:!0,render:(v)=>lt(v.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(v)=>us(v.costTotal)},{key:"models",header:"Models",render:(v)=>kt.jsxDEV(tH,{models:v.models},void 0,!1,void 0,this)}],[]),y=(v,T)=>kt.jsxDEV("div",{className:"stats-mobile-card",onClick:T,children:[kt.jsxDEV("div",{className:"stats-mobile-card-header",children:kt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary truncate",children:v.title??v.file.split("/").pop()},void 0,!1,void 0,this)},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Started"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:za(v.startedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:rt(v.endedAt-v.startedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:v.requests},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kt.jsxDEV("div",{children:[kt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),kt.jsxDEV("div",{className:"stats-mobile-card-value",children:us(v.costTotal)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(n!==null)return kt.jsxDEV(iR,{file:n,active:a,onBack:()=>s(null)},void 0,!1,void 0,this);return kt.jsxDEV("div",{className:"stats-route-container",children:kt.jsxDEV(ut,{title:"Sessions",subtitle:"Recent sessions with subagent activity folded in — click one to open its trace",actions:kt.jsxDEV("input",{type:"search",value:l,onChange:(v)=>u(v.target.value),placeholder:"Filter by title, project, model…","aria-label":"Filter sessions",spellCheck:!1,className:"stats-trace-input",style:{width:220}},void 0,!1,void 0,this),children:kt.jsxDEV(Rt,{loading:h,error:p,data:d,children:kt.jsxDEV(Ma,{columns:b,data:g,keyExtractor:(v)=>v.file,onRowClick:(v)=>s(v.file),renderMobileCard:y,emptyText:"No sessions found — run a Sync to index recent activity"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ra=Q(de(),1);function r0(){let{section:a,setSection:n,range:s,setRange:i,session:l,setSession:u}=KI(),[d,p]=er.useState(0),[h,g]=er.useState(null),[b,y]=er.useState(()=>Date.now()),v=er.useCallback((A)=>{if(A.success)p((B)=>B+1),y(Date.now())},[]),T=er.useCallback(()=>g(null),[]),M=a,I=er.useRef(new Set);I.current.add(M);let w=(A)=>{let B=A===M;switch(A){case"overview":return Ra.jsxDEV(UA,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"requests":return Ra.jsxDEV(jA,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"traces":return Ra.jsxDEV(lR,{active:B,session:l,onOpenSession:u,refreshTrigger:d},void 0,!1,void 0,this);case"errors":return Ra.jsxDEV(OA,{active:B,range:s,refreshTrigger:d,onRequestClick:g},void 0,!1,void 0,this);case"models":return Ra.jsxDEV(NA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"providers":return Ra.jsxDEV(qA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"tools":return Ra.jsxDEV(GA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"costs":return Ra.jsxDEV(DA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"behavior":return Ra.jsxDEV(_A,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"projects":return Ra.jsxDEV(FA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this);case"gain":return Ra.jsxDEV(PA,{active:B,range:s,refreshTrigger:d},void 0,!1,void 0,this)}};return Ra.jsxDEV(Ra.Fragment,{children:[Ra.jsxDEV(ZI,{activeSection:M,onSectionChange:n,range:s,onRangeChange:i,updatedAt:b,onSyncComplete:v,children:[...I.current].map((A)=>Ra.jsxDEV("div",{hidden:A!==M,children:w(A)},A,!1,void 0,this))},void 0,!1,void 0,this),Ra.jsxDEV(wA,{id:h,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var cR=Q(de(),1),aH=uR.createRoot(document.getElementById("root"));aH.render(cR.jsxDEV(r0,{},void 0,!1,void 0,this));