@oh-my-pi/omp-stats 18.0.3 → 18.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +4 -2
- package/dist/client/index.js +84 -84
- package/dist/types/client/data/formatters.d.ts +5 -0
- package/dist/types/client/data/view-models.d.ts +1 -0
- package/dist/types/db.d.ts +3 -2
- package/dist/types/shared-types.d.ts +10 -0
- package/package.json +4 -4
- package/src/client/data/formatters.ts +13 -0
- package/src/client/data/view-models.ts +3 -0
- package/src/client/routes/CostsRoute.tsx +28 -10
- package/src/client/routes/ErrorsRoute.tsx +5 -5
- package/src/client/routes/ModelsRoute.tsx +3 -2
- package/src/client/routes/OverviewRoute.tsx +6 -6
- package/src/client/routes/ProjectsRoute.tsx +7 -5
- package/src/client/routes/ProvidersRoute.tsx +30 -5
- package/src/client/routes/RequestsRoute.tsx +5 -5
- package/src/client/routes/ToolsRoute.tsx +23 -11
- package/src/client/ui/MetricCluster.tsx +7 -3
- package/src/client/ui/RequestDrawer.tsx +3 -3
- package/src/db.ts +107 -29
- package/src/index.ts +10 -9
- package/src/shared-types.ts +10 -0
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var GD=Object.create;var{getPrototypeOf:YD,defineProperty:fw,getOwnPropertyNames:XD}=Object;var $D=Object.prototype.hasOwnProperty;function WD(a){return this[a]}var ZD,QD,X=(a,n,s)=>{var i=a!=null&&typeof a==="object";if(i){var r=n?ZD??=new WeakMap:QD??=new WeakMap,c=r.get(a);if(c)return c}s=a!=null?GD(YD(a)):{};let f=n||!a||!a.__esModule?fw(s,"default",{value:a,enumerable:!0}):s;if(a&&typeof a==="object"||typeof a==="function"){for(let h of XD(a))if(!$D.call(f,h))fw(f,h,{get:WD.bind(a,h),enumerable:!0})}if(i)r.set(a,f);return f};var wl=(a,n)=>()=>(n||a((n={exports:{}}).exports,n),n.exports);var EI=wl(function(lB){(function(){function a(){if(W=!1,K){var G=lB.unstable_now();he=G;var ie=!0;try{e:{z=!1,V&&(V=!1,ne(re),re=-1),_=!0;var pe=w;try{t:{c(G);for(M=s(S);M!==null&&!(M.expirationTime>G&&h());){var Qe=M.callback;if(typeof Qe==="function"){M.callback=null,w=M.priorityLevel;var je=Qe(M.expirationTime<=G);if(G=lB.unstable_now(),typeof je==="function"){M.callback=je,c(G),ie=!0;break t}M===s(S)&&i(S),c(G)}else i(S);M=s(S)}if(M!==null)ie=!0;else{var D=s(T);D!==null&&p(f,D.startTime-G),ie=!1}}break e}finally{M=null,w=pe,_=!1}ie=void 0}}finally{ie?Le():K=!1}}}function n(G,ie){var pe=G.length;G.push(ie);e:for(;0<pe;){var Qe=pe-1>>>1,je=G[Qe];if(0<r(je,ie))G[Qe]=ie,G[pe]=je,pe=Qe;else break e}}function s(G){return G.length===0?null:G[0]}function i(G){if(G.length===0)return null;var ie=G[0],pe=G.pop();if(pe!==ie){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 ie}function r(G,ie){var pe=G.sortIndex-ie.sortIndex;return pe!==0?pe:G.id-ie.id}function c(G){for(var ie=s(T);ie!==null;){if(ie.callback===null)i(T);else if(ie.startTime<=G)i(T),ie.sortIndex=ie.expirationTime,n(S,ie);else break;ie=s(T)}}function f(G){if(V=!1,c(G),!z)if(s(S)!==null)z=!0,K||(K=!0,Le());else{var ie=s(T);ie!==null&&p(f,ie.startTime-G)}}function h(){return W?!0:lB.unstable_now()-he<q?!1:!0}function p(G,ie){re=Q(function(){G(lB.unstable_now())},ie)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),lB.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var g=performance;lB.unstable_now=function(){return g.now()}}else{var b=Date,x=b.now();lB.unstable_now=function(){return b.now()-x}}var S=[],T=[],A=1,M=null,w=3,_=!1,z=!1,V=!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,q=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)};lB.unstable_IdlePriority=5,lB.unstable_ImmediatePriority=1,lB.unstable_LowPriority=4,lB.unstable_NormalPriority=3,lB.unstable_Profiling=null,lB.unstable_UserBlockingPriority=2,lB.unstable_cancelCallback=function(G){G.callback=null},lB.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"):q=0<G?Math.floor(1000/G):5},lB.unstable_getCurrentPriorityLevel=function(){return w},lB.unstable_next=function(G){switch(w){case 1:case 2:case 3:var ie=3;break;default:ie=w}var pe=w;w=ie;try{return G()}finally{w=pe}},lB.unstable_requestPaint=function(){W=!0},lB.unstable_runWithPriority=function(G,ie){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var pe=w;w=G;try{return ie()}finally{w=pe}},lB.unstable_scheduleCallback=function(G,ie,pe){var Qe=lB.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:A++,callback:ie,priorityLevel:G,startTime:pe,expirationTime:je,sortIndex:-1},pe>Qe?(G.sortIndex=pe,n(T,G),s(S)===null&&G===s(T)&&(V?(ne(re),re=-1):V=!0,p(f,pe-Qe))):(G.sortIndex=je,n(S,G),z||_||(z=!0,K||(K=!0,Le()))),G},lB.unstable_shouldYield=h,lB.unstable_wrapCallback=function(G){var ie=w;return function(){var pe=w;w=ie;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 St=wl(function(iB,Wp){(function(){function a(C,B){Object.defineProperty(i.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=Jd&&C[Jd]||C["@@iterator"],typeof C==="function"?C:null}function s(C,B){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var Y=C+"."+B;le[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),le[Y]=!0)}function i(C,B,Y){this.props=C,this.context=B,this.refs=Ps,this.updater=Y||ar}function r(){}function c(C,B,Y){this.props=C,this.context=B,this.refs=Ps,this.updater=Y||ar}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===wu?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 qt:return"Suspense";case Pe:return"SuspenseList";case Jo: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 Zt:return B=C.displayName||null,B!==null?B:g(C.type)||"Memo";case Ia:B=C._payload,C=C._init;try{return g(C(B))}catch(Y){}}return null}function b(C){if(C===je)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===Ia)return"<...>";try{var B=g(C);return B?"<"+B+">":"<...>"}catch(Y){return"<...>"}}function x(){var C=ze.A;return C===null?null:C.getOwner()}function S(){return Error("react-stack-top-frame")}function T(C){if(or.call(C,"key")){var B=Object.getOwnPropertyDescriptor(C,"key").get;if(B&&B.isReactWarning)return!1}return C.key!==void 0}function A(C,B){function Y(){ef||(ef=!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 M(){var C=g(this.type);return Yl[C]||(Yl[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:M}):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 z(C){V(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===Ia&&(C._payload.status==="fulfilled"?V(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function V(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 Ia: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(sr,"$&/")+"/"),J(ue,B,Y,"",function(Aa){return Aa})):ue!=null&&(V(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(sr,"$&/")+"/")+nt),ae!==""&&Ee!=null&&V(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&&(nr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nr=!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 XD=Object.create;var{getPrototypeOf:$D,defineProperty:pw,getOwnPropertyNames:WD}=Object;var ZD=Object.prototype.hasOwnProperty;function QD(a){return this[a]}var KD,JD,X=(a,n,s)=>{var l=a!=null&&typeof a==="object";if(l){var r=n?KD??=new WeakMap:JD??=new WeakMap,c=r.get(a);if(c)return c}s=a!=null?XD($D(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 WD(a))if(!ZD.call(f,h))pw(f,h,{get:QD.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(rB){(function(){function a(){if(W=!1,K){var G=rB.unstable_now();he=G;var le=!0;try{e:{z=!1,V&&(V=!1,ne(re),re=-1),_=!0;var pe=w;try{t:{c(G);for(R=s(S);R!==null&&!(R.expirationTime>G&&h());){var Qe=R.callback;if(typeof Qe==="function"){R.callback=null,w=R.priorityLevel;var je=Qe(R.expirationTime<=G);if(G=rB.unstable_now(),typeof je==="function"){R.callback=je,c(G),le=!0;break t}R===s(S)&&l(S),c(G)}else l(S);R=s(S)}if(R!==null)le=!0;else{var D=s(T);D!==null&&p(f,D.startTime-G),le=!1}}break e}finally{R=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(V=!1,c(G),!z)if(s(S)!==null)z=!0,K||(K=!0,Le());else{var le=s(T);le!==null&&p(f,le.startTime-G)}}function h(){return W?!0:rB.unstable_now()-he<q?!1:!0}function p(G,le){re=Q(function(){G(rB.unstable_now())},le)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),rB.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var g=performance;rB.unstable_now=function(){return g.now()}}else{var b=Date,x=b.now();rB.unstable_now=function(){return b.now()-x}}var S=[],T=[],M=1,R=null,w=3,_=!1,z=!1,V=!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,q=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)};rB.unstable_IdlePriority=5,rB.unstable_ImmediatePriority=1,rB.unstable_LowPriority=4,rB.unstable_NormalPriority=3,rB.unstable_Profiling=null,rB.unstable_UserBlockingPriority=2,rB.unstable_cancelCallback=function(G){G.callback=null},rB.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"):q=0<G?Math.floor(1000/G):5},rB.unstable_getCurrentPriorityLevel=function(){return w},rB.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}},rB.unstable_requestPaint=function(){W=!0},rB.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}},rB.unstable_scheduleCallback=function(G,le,pe){var Qe=rB.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)&&(V?(ne(re),re=-1):V=!0,p(f,pe-Qe))):(G.sortIndex=je,n(S,G),z||_||(z=!0,K||(K=!0,Le()))),G},rB.unstable_shouldYield=h,rB.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(uB,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 b(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 x(){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 R(){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:R}):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 z(C){V(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===Aa&&(C._payload.status==="fulfilled"?V(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function V(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&&(V(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&&V(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
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,67 +10,67 @@ Your code should look like:
|
|
|
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($l===null)try{var B=("require"+Math.random()).slice(0,7);$l=(Wp&&Wp[B]).call(Wp,"timers").setImmediate}catch(Y){$l=function(ae){tf===!1&&(tf=!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 $l(C)}function we(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function Oe(C,B){B!==Wl-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. "),Wl=B}function G(C,B,Y){var ae=ze.actQueue;if(ae!==null)if(ae.length!==0)try{ie(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 ie(C){if(!Ql){Ql=!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{Ql=!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"),qt=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Zt=Symbol.for("react.memo"),Ia=Symbol.for("react.lazy"),Jo=Symbol.for("react.activity"),Jd=Symbol.iterator,le={},ar={isMounted:function(){return!1},enqueueForceUpdate:function(C){s(C,"forceUpdate")},enqueueReplaceState:function(C){s(C,"replaceState")},enqueueSetState:function(C){s(C,"setState")}},Gl=Object.assign,Ps={};Object.freeze(Ps),i.prototype.isReactComponent={},i.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")},i.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var ca={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(Ns in ca)ca.hasOwnProperty(Ns)&&a(Ns,ca[Ns]);r.prototype=i.prototype,ca=c.prototype=new r,ca.constructor=c,Gl(ca,i.prototype),ca.isPureReactComponent=!0;var mt=Array.isArray,wu=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},or=Object.prototype.hasOwnProperty,Lt=console.createTask?console.createTask:function(){return null};ca={react_stack_bottom_frame:function(C){return C()}};var ef,pn,Yl={},Xl=ca.react_stack_bottom_frame.bind(ca,S)(),xm=Lt(b(S)),nr=!1,sr=/\/+/g,Bs=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)},tf=!1,$l=null,Wl=0,Zl=!1,Ql=!1,Mu=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:Le;ca=Object.freeze({__proto__:null,c:function(C){return q().useMemoCache(C)}});var Ns={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(!V(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};iB.Activity=Jo,iB.Children=Ns,iB.Component=i,iB.Fragment=je,iB.Profiler=Z,iB.PureComponent=c,iB.StrictMode=D,iB.Suspense=qt,iB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze,iB.__COMPILER_RUNTIME=ca,iB.act=function(C){var B=ze.actQueue,Y=Wl;Wl++;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||Zl||(Zl=!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,Aa){ue=!0,Ee.then(function(co){if(Oe(B,Y),Y===0){try{ie(ae),Le(function(){return G(co,ve,Aa)})}catch(Iu){ze.thrownErrors.push(Iu)}if(0<ze.thrownErrors.length){var zs=we(ze.thrownErrors);ze.thrownErrors.length=0,Aa(zs)}}else ve(co)},function(co){Oe(B,Y),0<ze.thrownErrors.length?(co=we(ze.thrownErrors),ze.thrownErrors.length=0,Aa(co)):Aa(co)})}}}var nt=De;if(Oe(B,Y),Y===0&&(ie(ae),ae.length!==0&&Mu(function(){ue||Zl||(Zl=!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,Aa){ue=!0,Y===0?(ze.actQueue=ae,Le(function(){return G(nt,ve,Aa)})):ve(nt)}}},iB.cache=function(C){return function(){return C.apply(null,arguments)}},iB.cacheSignal=function(){return null},iB.captureOwnerStack=function(){var C=ze.getCurrentStack;return C===null?null:C()},iB.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=Gl({},C.props),ue=C.key,De=C._owner;if(B!=null){var Ee;e:{if(or.call(B,"ref")&&(Ee=Object.getOwnPropertyDescriptor(B,"ref").get)&&Ee.isReactWarning){Ee=!1;break e}Ee=B.ref!==void 0}Ee&&(De=x()),T(B)&&(p(B.key),ue=""+B.key);for(nt in B)!or.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++)z(arguments[ue]);return ae},iB.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},iB.createElement=function(C,B,Y){for(var ae=2;ae<arguments.length;ae++)z(arguments[ae]);ae={};var ue=null;if(B!=null)for(ve in pn||!("__self"in B)||"key"in B||(pn=!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)or.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&&A(ae,typeof C==="function"?C.displayName||C.name||"Unknown":C);var ve=1e4>ze.recentlyCreatedOwnerStacks++;return w(C,ue,ae,x(),ve?Error("react-stack-top-frame"):Xl,ve?Lt(b(C)):xm)},iB.createRef=function(){var C={current:null};return Object.seal(C),C},iB.forwardRef=function(C){C!=null&&C.$$typeof===Zt?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},iB.isValidElement=V,iB.lazy=function(C){C={_status:-1,_result:C};var B={$$typeof:Ia,_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},iB.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:Zt,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},iB.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,Bs))}catch(De){Bs(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}},iB.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},iB.use=function(C){return q().use(C)},iB.useActionState=function(C,B,Y){return q().useActionState(C,B,Y)},iB.useCallback=function(C,B){return q().useCallback(C,B)},iB.useContext=function(C){var B=q();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)},iB.useDebugValue=function(C,B){return q().useDebugValue(C,B)},iB.useDeferredValue=function(C,B){return q().useDeferredValue(C,B)},iB.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?"),q().useEffect(C,B)},iB.useEffectEvent=function(C){return q().useEffectEvent(C)},iB.useId=function(){return q().useId()},iB.useImperativeHandle=function(C,B,Y){return q().useImperativeHandle(C,B,Y)},iB.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?"),q().useInsertionEffect(C,B)},iB.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?"),q().useLayoutEffect(C,B)},iB.useMemo=function(C,B){return q().useMemo(C,B)},iB.useOptimistic=function(C,B){return q().useOptimistic(C,B)},iB.useReducer=function(C,B,Y){return q().useReducer(C,B,Y)},iB.useRef=function(C){return q().useRef(C)},iB.useState=function(C){return q().useState(C)},iB.useSyncExternalStore=function(C,B,Y){return q().useSyncExternalStore(C,B,Y)},iB.useTransition=function(){return q().useTransition()},iB.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OI=wl(function(rB){var iv=X(St());(function(){function a(){}function n(b){return""+b}function s(b,x,S){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(T);var A=!1}catch(M){A=!0}return A&&(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:b,containerInfo:x,implementation:S}}function i(b,x){if(b==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function r(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":'something with type "'+typeof b+'"'}function c(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 f(){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:
|
|
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,mn,Xi={},$i=ua.react_stack_bottom_frame.bind(ua,S)(),Sm=St(b(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 q().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(!V(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};uB.Activity=en,uB.Children=zs,uB.Component=l,uB.Fragment=je,uB.Profiler=Z,uB.PureComponent=c,uB.StrictMode=D,uB.Suspense=Ft,uB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze,uB.__COMPILER_RUNTIME=ua,uB.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)}}},uB.cache=function(C){return function(){return C.apply(null,arguments)}},uB.cacheSignal=function(){return null},uB.captureOwnerStack=function(){var C=ze.getCurrentStack;return C===null?null:C()},uB.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=x()),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++)z(arguments[ue]);return ae},uB.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},uB.createElement=function(C,B,Y){for(var ae=2;ae<arguments.length;ae++)z(arguments[ae]);ae={};var ue=null;if(B!=null)for(ve in mn||!("__self"in B)||"key"in B||(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(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,x(),ve?Error("react-stack-top-frame"):$i,ve?St(b(C)):Sm)},uB.createRef=function(){var C={current:null};return Object.seal(C),C},uB.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},uB.isValidElement=V,uB.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},uB.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},uB.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}},uB.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},uB.use=function(C){return q().use(C)},uB.useActionState=function(C,B,Y){return q().useActionState(C,B,Y)},uB.useCallback=function(C,B){return q().useCallback(C,B)},uB.useContext=function(C){var B=q();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)},uB.useDebugValue=function(C,B){return q().useDebugValue(C,B)},uB.useDeferredValue=function(C,B){return q().useDeferredValue(C,B)},uB.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?"),q().useEffect(C,B)},uB.useEffectEvent=function(C){return q().useEffectEvent(C)},uB.useId=function(){return q().useId()},uB.useImperativeHandle=function(C,B,Y){return q().useImperativeHandle(C,B,Y)},uB.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?"),q().useInsertionEffect(C,B)},uB.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?"),q().useLayoutEffect(C,B)},uB.useMemo=function(C,B){return q().useMemo(C,B)},uB.useOptimistic=function(C,B){return q().useOptimistic(C,B)},uB.useReducer=function(C,B,Y){return q().useReducer(C,B,Y)},uB.useRef=function(C){return q().useRef(C)},uB.useState=function(C){return q().useState(C)},uB.useSyncExternalStore=function(C,B,Y){return q().useSyncExternalStore(C,B,Y)},uB.useTransition=function(){return q().useTransition()},uB.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(cB){var uv=X(vt());(function(){function a(){}function n(b){return""+b}function s(b,x,S){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(T);var M=!1}catch(R){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:b,containerInfo:x,implementation:S}}function l(b,x){if(b==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function r(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":'something with type "'+typeof b+'"'}function c(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 f(){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.`),b}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=iv.__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"),rB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,rB.createPortal=function(b,x){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return s(b,x,null,S)},rB.flushSync=function(b){var x=g.T,S=h.p;try{if(g.T=null,h.p=2,b)return b()}finally{g.T=x,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.")}},rB.preconnect=function(b,x){typeof b==="string"&&b?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",c(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",r(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,h.d.C(b,x))},rB.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.",r(b));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(x))}typeof b==="string"&&h.d.D(b)},rB.preinit=function(b,x){if(typeof b==="string"&&b?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",c(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',c(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&x&&typeof x.as==="string"){var S=x.as,T=i(S,x.crossOrigin),A=typeof x.integrity==="string"?x.integrity:void 0,M=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;S==="style"?h.d.S(b,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:T,integrity:A,fetchPriority:M}):S==="script"&&h.d.X(b,{crossOrigin:T,integrity:A,fetchPriority:M,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},rB.preinitModule=function(b,x){var S="";if(typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&x.as!=="script"&&(S+=" The `as` option encountered was "+c(x.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=x&&typeof x.as==="string"?x.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,b)}if(typeof b==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")S=i(x.as,x.crossOrigin),h.d.M(b,{crossOrigin:S,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&h.d.M(b)},rB.preload=function(b,x){var S="";if(typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x==null||typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":typeof x.as==="string"&&x.as||(S+=" The `as` option encountered was "+r(x.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 b==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){S=x.as;var T=i(S,x.crossOrigin);h.d.L(b,S,{crossOrigin:T,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},rB.preloadModule=function(b,x){var S="";typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(S+=" The `as` option encountered was "+r(x.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 b==="string"&&(x?(S=i(x.as,x.crossOrigin),h.d.m(b,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:S,integrity:typeof x.integrity==="string"?x.integrity:void 0})):h.d.m(b))},rB.requestFormReset=function(b){h.d.r(b)},rB.unstable_batchedUpdates=function(b,x){return b(x)},rB.useFormState=function(b,x,S){return f().useFormState(b,x,S)},rB.useFormStatus=function(){return f().useHostTransitionStatus()},rB.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=wl(function(pU,PI){var uB=X(OI());PI.exports=uB});var NI=wl(function(cB){var lt=X(EI()),bu=X(St()),rv=X(BI());(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,o,l){if(o>=t.length)return l;var u=t[o],d=sa(e)?e.slice():Xe({},e);return d[u]=n(e[u],t,o+1,l),d}function s(e,t,o){if(t.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<o.length-1;l++)if(t[l]!==o[l]){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,l){var u=t[l],d=sa(e)?e.slice():Xe({},e);return l+1===t.length?(d[o[l]]=d[u],sa(d)?d.splice(u,1):delete d[u]):d[u]=i(e[u],t,o,l+1),d}function r(e,t,o){var l=t[o],u=sa(e)?e.slice():Xe({},e);if(o+1===t.length)return sa(u)?u.splice(l,1):delete u[l],u;return u[l]=r(e[l],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 b(){}function x(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")}function S(e,t,o,l){return new Ok(e,t,o,l)}function T(e,t){e.context===nl&&(xy(e.current,2,t,e,null,null),br())}function A(e,t){if(Po!==null){var o=t.staleFamilies;t=t.updatedFamilies,Ju(),b0(e.current,t,o),br()}}function M(e){Po=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 z(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 V(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,l=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(l=u.return,l!==null){o=l;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return W(u),e;if(d===l)return W(u),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==l.return)o=u,l=d;else{for(var m=!1,y=u.child;y;){if(y===o){m=!0,o=u,l=d;break}if(y===l){m=!0,l=u,o=d;break}y=y.sibling}if(!m){for(y=d.child;y;){if(y===o){m=!0,o=d,l=u;break}if(y===l){m=!0,l=d,o=u;break}y=y.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!==l)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=wC&&e[wC]||e["@@iterator"],typeof e==="function"?e:null}function K(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===t_?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case wr:return"Fragment";case wy:return"Profiler";case dh:return"StrictMode";case Iy:return"Suspense";case Ay:return"SuspenseList";case ky: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 Tr:return"Portal";case Dn:return e.displayName||"Context";case My:return(e._context.displayName||"Context")+".Consumer";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fh: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"?q(e):typeof e.name==="string"?e.name:null}function q(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===dh?"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 q(e.return)}return null}function he(e){return{current:e}}function Le(e,t){0>ls?console.error("Unexpected pop."):(t!==_y[ls]&&console.error("Unexpected Fiber popped."),e.current=Ry[ls],Ry[ls]=null,_y[ls]=null,ls--)}function we(e,t,o){ls++,Ry[ls]=e.current,_y[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(Ks,t,e),we(cc,e,e),we(Qs,null,e);var o=t.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?WL(t):vs:vs;break;default:if(o=t.tagName,t=t.namespaceURI)t=WL(t),t=ZL(t,o);else switch(o){case"svg":t=su;break;case"math":t=cp;break;default:t=vs}}o=o.toLowerCase(),o=Vv(null,o),o={context:t,ancestorInfo:o},Le(Qs,e),we(Qs,o,e)}function ie(e){Le(Qs,e),Le(cc,e),Le(Ks,e)}function pe(){return Oe(Qs.current)}function Qe(e){e.memoizedState!==null&&we(hh,e,e);var t=Oe(Qs.current),o=e.type,l=ZL(t.context,o);o=Vv(t.ancestorInfo,o),l={context:l,ancestorInfo:o},t!==l&&(we(cc,e,e),we(Qs,l,e))}function je(e){cc.current===e&&(Le(Qs,e),Le(cc,e)),hh.current===e&&(Le(hh,e),td._currentValue=Pi)}function D(){}function Z(){if(dc===0){MC=console.log,IC=console.info,AC=console.warn,kC=console.error,RC=console.group,_C=console.groupCollapsed,DC=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})}dc++}function me(){if(dc--,dc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xe({},e,{value:MC}),info:Xe({},e,{value:IC}),warn:Xe({},e,{value:AC}),error:Xe({},e,{value:kC}),group:Xe({},e,{value:RC}),groupCollapsed:Xe({},e,{value:_C}),groupEnd:Xe({},e,{value:DC})})}0>dc&&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 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"),cB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,cB.createPortal=function(b,x){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return s(b,x,null,S)},cB.flushSync=function(b){var x=g.T,S=h.p;try{if(g.T=null,h.p=2,b)return b()}finally{g.T=x,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.")}},cB.preconnect=function(b,x){typeof b==="string"&&b?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",c(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",r(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,h.d.C(b,x))},cB.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.",r(b));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(x))}typeof b==="string"&&h.d.D(b)},cB.preinit=function(b,x){if(typeof b==="string"&&b?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",c(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',c(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&x&&typeof x.as==="string"){var S=x.as,T=l(S,x.crossOrigin),M=typeof x.integrity==="string"?x.integrity:void 0,R=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;S==="style"?h.d.S(b,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:T,integrity:M,fetchPriority:R}):S==="script"&&h.d.X(b,{crossOrigin:T,integrity:M,fetchPriority:R,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},cB.preinitModule=function(b,x){var S="";if(typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&x.as!=="script"&&(S+=" The `as` option encountered was "+c(x.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=x&&typeof x.as==="string"?x.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,b)}if(typeof b==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")S=l(x.as,x.crossOrigin),h.d.M(b,{crossOrigin:S,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&h.d.M(b)},cB.preload=function(b,x){var S="";if(typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x==null||typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":typeof x.as==="string"&&x.as||(S+=" The `as` option encountered was "+r(x.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 b==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){S=x.as;var T=l(S,x.crossOrigin);h.d.L(b,S,{crossOrigin:T,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},cB.preloadModule=function(b,x){var S="";typeof b==="string"&&b||(S+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?S+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(S+=" The `as` option encountered was "+r(x.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 b==="string"&&(x?(S=l(x.as,x.crossOrigin),h.d.m(b,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:S,integrity:typeof x.integrity==="string"?x.integrity:void 0})):h.d.m(b))},cB.requestFormReset=function(b){h.d.r(b)},cB.unstable_batchedUpdates=function(b,x){return b(x)},cB.useFormState=function(b,x,S){return f().useFormState(b,x,S)},cB.useFormStatus=function(){return f().useHostTransitionStatus()},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 zM=Ii(function(gU,NM){var dB=X(BM());NM.exports=dB});var UM=Ii(function(fB){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 b(){}function x(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")}function S(e,t,o,i){return new Bk(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 R(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 z(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 V(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,y=u.child;y;){if(y===o){m=!0,o=u,i=d;break}if(y===i){m=!0,i=u,o=d;break}y=y.sibling}if(!m){for(y=d.child;y;){if(y===o){m=!0,o=d,i=u;break}if(y===i){m=!0,i=d,o=u;break}y=y.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===o_?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 En: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"?q(e):typeof e.name==="string"?e.name:null}function q(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 q(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
|
|
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(
|
|
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(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
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(),y=m[0],v=m[1];if(y&&v){var L=y.split(`
|
|
23
23
|
`),O=v.split(`
|
|
24
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"&&
|
|
26
|
-
`),
|
|
27
|
-
`+
|
|
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:y,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(y)!==-1){var N=`
|
|
27
|
+
`+A;break e}}N=Ge(y+(v?" ["+v+"]":""))}t=m+N}}o=e,e=e.return}while(e);return t}catch(te){return`
|
|
28
28
|
Error generating stack: `+te.message+`
|
|
29
|
-
`+te.stack}}function
|
|
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
30
|
`+u)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
|
|
31
31
|
`+ge(d))}else break;var m=t}catch(y){m=`
|
|
32
32
|
Error generating stack: `+y.message+`
|
|
33
|
-
`+y.stack}return m}function le(e,t,o,l,u,d,m){var y=So;ar(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,o,l,u,d,m)):t(o,l,u,d,m)}finally{ar(y)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ar(e){H.getCurrentStack=e===null?null:Jd,En=!1,So=e}function Gl(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ps(e){try{return ca(e),!1}catch(t){return!0}}function ca(e){return""+e}function mt(e,t){if(Ps(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,Gl(e)),ca(e)}function wu(e,t){if(Ps(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,Gl(e)),ca(e)}function ze(e){if(Ps(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.",Gl(e)),ca(e)}function or(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{Ir=t.inject(e),Ra=t}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return t.checkDCE?!0:!1}function Lt(e){if(typeof r_==="function"&&u_(e),Ra&&typeof Ra.setStrictMode==="function")try{Ra.setStrictMode(Ir,e)}catch(t){On||(On=!0,console.error("React instrumentation encountered an error: %o",t))}}function ef(e){return e>>>=0,e===0?32:31-(c_(e)/d_|0)|0}function pn(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 Yl(e,t,o){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~d,l!==0?u=pn(l):(m&=y,m!==0?u=pn(m):o||(o=y&~e,o!==0&&(u=pn(o))))):(y=l&~d,y!==0?u=pn(y):m!==0?u=pn(m):o||(o=l&~e,o!==0&&(u=pn(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 Xl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xm(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 nr(){var e=gh;return gh<<=1,(gh&62914560)===0&&(gh=4194304),e}function sr(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Bs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tf(e,t,o,l,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:y,expirationTimes:v,hiddenUpdates:L}=e;for(o=m&~o;0<o;){var O=31-Na(o),P=1<<O;y[O]=0,v[O]=-1;var k=L[O];if(k!==null)for(L[O]=null,O=0;O<k.length;O++){var N=k[O];N!==null&&(N.lane&=-536870913)}o&=~P}l!==0&&$l(e,l,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(m&~t))}function $l(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Na(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|o&261930}function Wl(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var l=31-Na(o),u=1<<l;u&t|e[l]&t&&(e[l]|=t),o&=~u}}function Zl(e,t){var o=t&-t;return o=(o&42)!==0?1:Ql(o),(o&(e.suspendedLanes|t))!==0?0:o}function Ql(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(Pn)for(e=e.pendingUpdatersLaneMap;0<o;){var l=31-Na(o),u=1<<l;e[l].add(t),o&=~u}}function Ns(e,t){if(Pn)for(var{pendingUpdatersLaneMap:o,memoizedUpdaters:l}=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&&l.has(m)||l.add(d)}),u.clear()),t&=~e}}function C(e){return e&=-e,Lo!==0&&Lo<e?nn!==0&&nn<e?(e&134217727)!==0?Bn:yh:nn:Lo}function B(){var e=ct.p;if(e!==0)return e;return e=window.event,e===void 0?Bn:bC(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[va],delete e[za],delete e[Uy],delete e[f_],delete e[h_]}function ue(e){var t=e[va];if(t)return t;for(var o=e.parentNode;o;){if(t=o[el]||o[va]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=nC(e);e!==null;){if(o=e[va])return o;e=nC(e)}return t}e=o,o=e.parentNode}return null}function De(e){if(e=e[va]||e[el]){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[OC];return t||(t=e[OC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[fc]=!0}function Aa(e,t){co(e,t),co(e+"Capture",t)}function co(e,t){hi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),hi[e]=t;var o=e.toLowerCase();Hy[o]=e,e==="onDoubleClick"&&(Hy.ondblclick=e);for(e=0;e<t.length;e++)PC.add(t[e])}function zs(e,t){p_[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 Iu(e){if(on.call(NC,e))return!0;if(on.call(BC,e))return!1;if(m_.test(e))return NC[e]=!0;return BC[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Av(e,t,o){if(Iu(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 af(e,t,o){if(Iu(t))if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}mt(o,t),e.setAttribute(t,""+o)}}function of(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 Qn(e,t,o,l){if(l===null)e.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}mt(l,o),e.setAttributeNS(t,o,""+l)}}function Ro(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 kv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dk(e,t,o){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get==="function"&&typeof l.set==="function"){var{get:u,set:d}=l;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:l.enumerable}),{getValue:function(){return o},setValue:function(m){ze(m),o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){if(!e._valueTracker){var t=kv(e)?"checked":"value";e._valueTracker=dk(e,t,""+e[t])}}function Rv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),l="";return e&&(l=kv(e)?e.checked?"true":"false":e.value),e=l,e!==o?(t.setValue(e),!0):!1}function nf(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 _o(e){return e.replace(g_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _v(e,t){t.checked===void 0||t.defaultChecked===void 0||UC||(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",Jo()||"A component",t.type),UC=!0),t.value===void 0||t.defaultValue===void 0||zC||(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",Jo()||"A component",t.type),zC=!0)}function Sm(e,t,o,l,u,d,m,y){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=""+Ro(t)}else e.value!==""+Ro(t)&&(e.value=""+Ro(t));else m!=="submit"&&m!=="reset"||e.removeAttribute("value");t!=null?Lm(e,m,Ro(t)):o!=null?Lm(e,m,Ro(o)):l!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!=="function"&&typeof u!=="symbol"),y!=null&&typeof y!=="function"&&typeof y!=="symbol"&&typeof y!=="boolean"?(mt(y,"name"),e.name=""+Ro(y)):e.removeAttribute("name")}function Dv(e,t,o,l,u,d,m,y){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)){vm(e);return}o=o!=null?""+Ro(o):"",t=t!=null?""+Ro(t):o,y||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:u,l=typeof l!=="function"&&typeof l!=="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"&&(mt(m,"name"),e.name=m),vm(e)}function Lm(e,t,o){t==="number"&&nf(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Ev(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?bu.Children.forEach(t.children,function(o){o==null||typeof o==="string"||typeof o==="number"||typeof o==="bigint"||FC||(FC=!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||qC||(qC=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||HC||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),HC=!0)}function Ov(){var e=Jo();return e?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`.":""}function lr(e,t,o,
|
|
36
|
-
`;if(typeof t==="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>
|
|
37
|
-
`+
|
|
38
|
-
`}return fo(o)+
|
|
39
|
-
`}function
|
|
40
|
-
`:0<
|
|
33
|
+
`+y.stack}return m}function ie(e,t,o,i,u,d,m){var y=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(y)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function or(e){H.getCurrentStack=e===null?null:tf,On=!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 c_==="function"&&d_(e),_a&&typeof _a.setStrictMode==="function")try{_a.setStrictMode(Ar,e)}catch(t){Pn||(Pn=!0,console.error("React instrumentation encountered an error: %o",t))}}function af(e){return e>>>=0,e===0?32:31-(f_(e)/h_|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 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 y=i&134217727;return y!==0?(i=y&~d,i!==0?u=mn(i):(m&=y,m!==0?u=mn(m):o||(o=y&~e,o!==0&&(u=mn(o))))):(y=i&~d,y!==0?u=mn(y):m!==0?u=mn(m):o||(o=i&~e,o!==0&&(u=mn(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:y,expirationTimes:v,hiddenUpdates:L}=e;for(o=m&~o;0<o;){var O=31-Na(o),P=1<<O;y[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(Bn)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(Bn)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?Nn:xh:sn:Lo}function B(){var e=ct.p;if(e!==0)return e;return e=window.event,e===void 0?Nn: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[p_],delete e[m_]}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){g_[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(y_.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 hk(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=hk(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(b_,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,y){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"),y!=null&&typeof y!=="function"&&typeof y!=="symbol"&&typeof y!=="boolean"?(mt(y,"name"),e.name=""+_o(y)):e.removeAttribute("name")}function Ov(e,t,o,i,u,d,m,y){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,y||t===e.value||(e.value=t),e.defaultValue=t}i=i!=null?i:u,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=y?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===Dn)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(" ")+`>
|
|
41
41
|
`:o+"<"+e+`
|
|
42
42
|
`+o+" "+u.join(`
|
|
43
43
|
`+o+" ")+`
|
|
44
44
|
`+o+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,
|
|
47
|
-
`):
|
|
48
|
-
`}for(var v in u)u.hasOwnProperty(v)&&(e=
|
|
49
|
-
`);return
|
|
50
|
-
`+
|
|
51
|
-
`:(u+=
|
|
52
|
-
`,u+=
|
|
53
|
-
`)}else u+=fo(
|
|
54
|
-
`}d.forEach(function(P){if(P!=="children"){var
|
|
55
|
-
`}}),u=u===""?fo(
|
|
56
|
-
`:fo(
|
|
57
|
-
`+u+fo(
|
|
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+=
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,t++)}if(
|
|
62
|
-
`,t++}else e.serverProps===null?(
|
|
63
|
-
`),u=e.serverTail,e.serverProps===null&&t--;for(e=0;e<u.length;e++)d=u[e],L=typeof d==="string"?L+(
|
|
64
|
-
`):L+
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,m,
|
|
68
|
-
This will cause a hydration error.%s`,m,
|
|
69
|
-
See this log for the ancestor stack trace.`,
|
|
45
|
+
`}function pk(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,y=Ru(e[d],m);t.hasOwnProperty(d)?(m=Ru(t[d],m),i+=rr(o)+d+": "+y+`
|
|
46
|
+
`,i+=Ji(o)+d+": "+m+`
|
|
47
|
+
`):i+=rr(o)+d+": "+y+`
|
|
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 mk(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 y=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,y);y=ur(v,y),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<y.indexOf("..."))?u+=fo(i+1)+m+`={{
|
|
50
|
+
`+pk(L,v,i+2)+fo(i+1)+`}}
|
|
51
|
+
`:(u+=rr(i+1)+m+"="+O+`
|
|
52
|
+
`,u+=Ji(i+1)+m+"="+y+`
|
|
53
|
+
`)}else u+=fo(i+1)+m+"="+ur(t[m],y)+`
|
|
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,y="";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){y+=" ...";break}y+=" "+L+"="+v}i=fo(i)+"<"+d+y+`>
|
|
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=mk(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),v_.indexOf(t)!==-1&&(o.pTagInButtonScope=null),x_.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 S_.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 gk(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:gk(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>.
|
|
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 Ru(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}function mk(e){return e.replace(L_,function(t,o){return o.toUpperCase()})}function Yv(e,t,o){var l=t.indexOf("--")===0;l||(-1<t.indexOf("-")?Ar.hasOwnProperty(t)&&Ar[t]||(Ar[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,mk(t.replace(S_,"ms-")))):v_.test(t)?Ar.hasOwnProperty(t)&&Ar[t]||(Ar[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!QC.test(o)||qy.hasOwnProperty(o)&&qy[o]||(qy[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,o.replace(QC,""))),typeof o==="number"&&(isNaN(o)?KC||(KC=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(o)||JC||(JC=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),o==null||typeof o==="boolean"||o===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,o):typeof o!=="number"||o===0||e1.has(t)?t==="float"?e.cssFloat=o:(wu(o,t),e[t]=(""+o).trim()):e[t]=o+"px"}function Xv(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 l={};if(o){for(var u in o)if(o.hasOwnProperty(u)&&!t.hasOwnProperty(u))for(var d=Fy[u]||[u],m=0;m<d.length;m++)l[d[m]]=u}for(var y in t)if(t.hasOwnProperty(y)&&(!o||o[y]!==t[y]))for(u=Fy[y]||[y],d=0;d<u.length;d++)l[u[d]]=y;y={};for(var v in t)for(u=Fy[v]||[v],d=0;d<u.length;d++)y[u[d]]=v;v={};for(var L in l)if(u=l[L],(d=y[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 k in t)L=t[k],t.hasOwnProperty(k)&&o[k]!==L&&Yv(e,k,L)}else for(l in t)t.hasOwnProperty(l)&&Yv(e,l,t[l])}function _u(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 $v(e){return C_.get(e)||e}function gk(e,t){if(on.call(Rr,t)&&Rr[t])return!0;if(w_.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=t1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Rr[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Rr[t]=!0}if(T_.test(t)){if(e=t.toLowerCase(),e=t1.hasOwnProperty(e)?e:null,e==null)return Rr[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Rr[t]=!0)}return!0}function yk(e,t){var o=[],l;for(l in t)gk(e,l)||o.push(l);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 bk(e,t,o,l){if(on.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(l!=null){if(e=l.possibleRegistrationNames,l.registrationNameDependencies.hasOwnProperty(t))return!0;if(l=e.hasOwnProperty(u)?e[u]:null,l!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,l),Ua[t]=!0;if(o1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ua[t]=!0}else if(o1.test(t))return M_.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ua[t]=!0;if(I_.test(t)||A_.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(vh.hasOwnProperty(u)){if(u=vh[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 xk(e,t,o){var l=[],u;for(u in t)bk(e,u,t[u],o)||l.push(u);t=l.map(function(d){return"`"+d+"`"}).join(", "),l.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<l.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 Du(e){return k_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kn(){}function Am(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Wv(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(Sm(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="'+_o(""+t)+'"][type="radio"]');for(t=0;t<o.length;t++){var l=o[t];if(l!==e&&l.form===e.form){var u=l[za]||null;if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Sm(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<o.length;t++)l=o[t],l.form===e.form&&Rv(l)}break e;case"textarea":Nv(e,o.value,o.defaultValue);break e;case"select":t=o.value,t!=null&&lr(e,!!o.multiple,t,!1)}}}function Zv(e,t,o){if(Vy)return e(t,o);Vy=!0;try{var l=e(t);return l}finally{if(Vy=!1,_r!==null||Dr!==null){if(br(),_r&&(t=_r,e=Dr,Dr=_r=null,Wv(t),e))for(t=0;t<e.length;t++)Wv(e[t])}}}function Eu(e,t){var o=e.stateNode;if(o===null)return null;var l=o[za]||null;if(l===null)return null;o=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function Qv(){if(Sh)return Sh;var e,t=Gy,o=t.length,l,u="value"in tl?tl.value:tl.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var m=o-e;for(l=1;l<=m&&t[o-l]===u[d-l];l++);return Sh=u.slice(e,1<l?1-l:void 0)}function rf(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 uf(){return!0}function Kv(){return!1}function Ga(e){function t(o,l,u,d,m){this._reactName=o,this._targetInst=u,this.type=l,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?uf:Kv,this.isPropagationStopped=Kv,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=uf)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!=="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=uf)},persist:function(){},isPersistent:uf}),t}function vk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q_[e])?!!t[e]:!1}function km(){return vk}function Jv(e,t){switch(e){case"keyup":return eD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==i1;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 Sk(e,t){switch(e){case"compositionend":return e0(t);case"keypress":if(t.which!==u1)return null;return d1=!0,c1;case"textInput":return e=t.data,e===c1&&d1?null:e;default:return null}}function Lk(e,t){if(Er)return e==="compositionend"||!Wy&&Jv(e,t)?(e=Qv(),Sh=Gy=tl=null,Er=!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 r1&&t.locale!=="ko"?null:t.data;default:return null}}function t0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aD[e.type]:t==="textarea"?!0:!1}function Ck(e){if(!Nn)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 a0(e,t,o,l){_r?Dr?Dr.push(l):Dr=[l]:_r=l,t=th(t,"onChange"),0<t.length&&(o=new Lh("onChange","change",null,o,l),e.push({event:o,listeners:t}))}function Tk(e){zL(e,0)}function cf(e){var t=Ee(e);if(Rv(t))return e}function o0(e,t){if(e==="change")return t}function n0(){bc&&(bc.detachEvent("onpropertychange",s0),xc=bc=null)}function s0(e){if(e.propertyName==="value"&&cf(xc)){var t=[];a0(t,xc,e,Am(e)),Zv(Tk,t)}}function wk(e,t,o){e==="focusin"?(n0(),bc=t,xc=o,bc.attachEvent("onpropertychange",s0)):e==="focusout"&&n0()}function Mk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cf(xc)}function Ik(e,t){if(e==="click")return cf(t)}function Ak(e,t){if(e==="input"||e==="change")return cf(t)}function kk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ou(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),l=Object.keys(t);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var u=o[l];if(!on.call(t,u)||!Ha(e[u],t[u]))return!1}return!0}function l0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function i0(e,t){var o=l0(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=t&&l>=t)return{node:o,offset:t-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=l0(o)}}function r0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?r0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function u0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=nf(e.document);t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href==="string"}catch(l){o=!1}if(o)e=t.contentWindow;else break;t=nf(e.document)}return t}function Rm(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 c0(e,t,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qy||Or==null||Or!==nf(l)||(l=Or,("selectionStart"in l)&&Rm(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vc&&Ou(vc,l)||(vc=l,l=th(Zy,"onSelect"),0<l.length&&(t=new Lh("onSelect","select",null,t,o),e.push({event:t,listeners:l}),t.target=Or)))}function Jl(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}function ei(e){if(Ky[e])return Ky[e];if(!Pr[e])return e;var t=Pr[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in h1)return Ky[e]=t[o];return e}function en(e,t){b1.set(e,t),Aa(t,[e])}function Rk(e){for(var t=Th,o=0;o<e.length;o++){var l=e[o];if(typeof l==="object"&&l!==null)if(sa(l)&&l.length===2&&typeof l[0]==="string"){if(t!==Th&&t!==ob)return tb;t=ob}else return tb;else{if(typeof l==="function"||typeof l==="string"&&50<l.length||t!==Th&&t!==ab)return tb;t=ab}}return t}function _m(e,t,o,l){for(var u in e)on.call(e,u)&&u[0]!=="_"&&mn(u,e[u],t,o,l)}function mn(e,t,o,l,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===_n){var d=K(t.type)||"…",m=t.key;t=t.props;var y=Object.keys(t),v=y.length;if(m==null&&v===0){t="<"+d+" />";break}if(3>l||v===1&&y[0]==="children"&&m==null){t="<"+d+" … />";break}o.push([u+" ".repeat(l)+e,"<"+d]),m!==null&&mn("key",m,o,l+1,u),e=!1;for(var L in t)L==="children"?t.children!=null&&(!sa(t.children)||0<t.children.length)&&(e=!0):on.call(t,L)&&L[0]!=="_"&&mn(L,t[L],o,l+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=Rk(t),L===ab||L===Th){t=JSON.stringify(t);break}else if(L===ob){o.push([u+" ".repeat(l)+e,""]);for(e=0;e<t.length;e++)d=t[e],mn(d[0],d[1],o,l+1,u);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=o.length,mn(e,t.value,o,l,u),o.length>d){o=o[d],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=o.length,mn(e,t.reason,o,l,u),o.length>d)){o=o[d],o[1]="Rejected Promise<"+o[1]+">";return}o.push([" ".repeat(l)+e,"Promise"]);return}d==="Object"&&(L=Object.getPrototypeOf(t))&&typeof L.constructor==="function"&&(d=L.constructor.name),o.push([u+" ".repeat(l)+e,d==="Object"?3>l?"":"…":d]),3>l&&_m(t,o,l+1,u);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([u+" ".repeat(l)+e,t])}function d0(e,t,o,l){var u=!0;for(m in e)m in t||(o.push([wh+" ".repeat(l)+m,"…"]),u=!1);for(var d in t)if(d in e){var m=e[d],y=t[d];if(m!==y){if(l===0&&d==="children")u=" ".repeat(l)+d,o.push([wh+u,"…"],[Mh+u,"…"]);else{if(!(3<=l)){if(typeof m==="object"&&typeof y==="object"&&m!==null&&y!==null&&m.$$typeof===y.$$typeof)if(y.$$typeof===_n){if(m.type===y.type&&m.key===y.key){m=K(y.type)||"…",u=" ".repeat(l)+d,m="<"+m+" … />",o.push([wh+u,m],[Mh+u,m]),u=!1;continue}}else{var v=Object.prototype.toString.call(m),L=Object.prototype.toString.call(y);if(v===L&&(L==="[object Object]"||L==="[object Array]")){v=[S1+" ".repeat(l)+d,L==="[object Array]"?"Array":""],o.push(v),L=o.length,d0(m,y,o,l+1)?L===o.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):u=!1;continue}}else if(typeof m==="function"&&typeof y==="function"&&m.name===y.name&&m.length===y.length&&(v=Function.prototype.toString.call(m),L=Function.prototype.toString.call(y),v===L)){m=y.name===""?"() => {}":y.name+"() {}",o.push([S1+" ".repeat(l)+d,m+" Referentially unequal function closure. Consider memoization."]);continue}}mn(d,m,o,l,wh),mn(d,y,o,l,Mh)}u=!1}}else o.push([Mh+" ".repeat(l)+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 gn(e,t,o,l){Mt&&(ol.start=t,ol.end=o,is.color="warning",is.tooltipText=l,is.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,l,ol)):performance.measure(l,ol))}function df(e,t,o){gn(e,t,o,"Reconnect")}function ff(e,t,o,l,u){var d=q(e);if(d!==null&&Mt){var{alternate:m,actualDuration:y}=e;if(m===null||m.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)y-=v.actualDuration;l=0.5>y?l?"tertiary-light":"primary-light":10>y?l?"tertiary":"primary":100>y?l?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;y=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(v=[cD],L=d0(m.memoizedProps,L,v,0),1<v.length&&(L&&!al&&(m.lanes&u)===0&&100<e.actualDuration?(al=!0,v[0]=dD,is.color="warning",is.tooltipText=L1):(is.color=l,is.tooltipText=d),is.properties=v,ol.start=t,ol.end=o,y!=null?y.run(performance.measure.bind(performance,""+d,ol)):performance.measure(""+d,ol))):y!=null?y.run(console.timeStamp.bind(console,d,t,o,Eo,void 0,l)):console.timeStamp(d,t,o,Eo,void 0,l)}}function Dm(e,t,o,l){if(Mt){var u=q(e);if(u!==null){for(var d=null,m=[],y=0;y<l.length;y++){var v=l[y];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&&mn("key",e.key,m,0,""),e.memoizedProps!==null&&_m(e.memoizedProps,m,0,""),d==null&&(d=e._debugTask),e={start:t,end:o,detail:{devtools:{color:"error",track:Eo,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 yn(e,t,o,l,u){if(u!==null){if(Mt){var d=q(e);if(d!==null){l=[];for(var m=0;m<u.length;m++){var y=u[m].value;l.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}e.key!==null&&mn("key",e.key,l,0,""),e.memoizedProps!==null&&_m(e.memoizedProps,l,0,""),t={start:t,end:o,detail:{devtools:{color:"error",track:Eo,tooltipText:"A lifecycle or effect errored",properties:l}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+d,t)):performance.measure(""+d,t)}}}else d=q(e),d!==null&&Mt&&(u=1>l?"secondary-light":100>l?"secondary":500>l?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,o,Eo,void 0,u)):console.timeStamp(d,t,o,Eo,void 0,u))}function _k(e,t,o,l){if(Mt&&!(t<=e)){var u=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",l?l.run(console.timeStamp.bind(console,o,e,t,Ze,$e,u)):console.timeStamp(o,e,t,Ze,$e,u)}}function f0(e,t,o,l){!Mt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Prewarm",e,t,Ze,$e,o)):console.timeStamp("Prewarm",e,t,Ze,$e,o))}function h0(e,t,o,l){!Mt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Suspended",e,t,Ze,$e,o)):console.timeStamp("Suspended",e,t,Ze,$e,o))}function Dk(e,t,o,l,u,d){if(Mt&&!(t<=e)){o=[];for(var m=0;m<l.length;m++){var y=l[m].value;o.push(["Recoverable Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}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 Em(e,t,o,l){!Mt||t<=e||(l?l.run(console.timeStamp.bind(console,"Errored",e,t,Ze,$e,"error")):console.timeStamp("Errored",e,t,Ze,$e,"error"))}function Ek(e,t,o,l){!Mt||t<=e||(l?l.run(console.timeStamp.bind(console,o,e,t,Ze,$e,"secondary-light")):console.timeStamp(o,e,t,Ze,$e,"secondary-light"))}function p0(e,t,o,l,u){if(Mt&&!(t<=e)){for(var d=[],m=0;m<o.length;m++){var y=o[m].value;d.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ze,trackGroup:$e,tooltipText:l?"Remaining Effects Errored":"Commit Errored",properties:d}}},u?u.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Pu(e,t,o){!Mt||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 hf(){for(var e=Br,t=nb=Br=0;t<e;){var o=Oo[t];Oo[t++]=null;var l=Oo[t];Oo[t++]=null;var u=Oo[t];Oo[t++]=null;var d=Oo[t];if(Oo[t++]=null,l!==null&&u!==null){var m=l.pending;m===null?u.next=u:(u.next=m.next,m.next=u),l.pending=u}d!==0&&m0(o,u,d)}}function pf(e,t,o,l){Oo[Br++]=e,Oo[Br++]=t,Oo[Br++]=o,Oo[Br++]=l,nb|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Om(e,t,o,l){return pf(e,t,o,l),mf(e)}function ka(e,t){return pf(e,null,null,t),mf(e)}function m0(e,t,o){e.lanes|=o;var l=e.alternate;l!==null&&(l.lanes|=o);for(var u=!1,d=e.return;d!==null;)d.childLanes|=o,l=d.alternate,l!==null&&(l.childLanes|=o),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Sc||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Na(o),e=d.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=o|536870912),d):null}function mf(e){if($c>MD)throw ki=$c=0,Wc=Nb=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.");ki>ID&&(ki=0,Wc=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&&_L(e);for(var t=e,o=t.return;o!==null;)t.alternate===null&&(t.flags&4098)!==0&&_L(e),t=o,o=t.return;return t.tag===3?t.stateNode:null}function ti(e){if(Po===null)return e;var t=Po(e);return t===void 0?e:t.current}function Pm(e){if(Po===null)return e;var t=Po(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ti(e.render),e.render!==t)?(t={$$typeof:uc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function g0(e,t){if(Po===null)return!1;var o=e.elementType;t=t.type;var l=!1,u=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(l=!0);break;case 0:typeof t==="function"?l=!0:u===vo&&(l=!0);break;case 11:u===uc?l=!0:u===vo&&(l=!0);break;case 14:case 15:u===fh?l=!0:u===vo&&(l=!0);break;default:return!1}return l&&(e=Po(o),e!==void 0&&e===Po(t))?!0:!1}function y0(e){Po!==null&&typeof WeakSet==="function"&&(Nr===null&&(Nr=new WeakSet),Nr.add(e))}function b0(e,t,o){do{var l=e,u=l.alternate,d=l.child,m=l.sibling,y=l.tag;l=l.type;var v=null;switch(y){case 0:case 15:case 1:v=l;break;case 11:v=l.render}if(Po===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(l=!1,v!==null&&(v=Po(v),v!==void 0&&(o.has(v)?l=!0:t.has(v)&&(y===1?l=!0:L=!0))),Nr!==null&&(Nr.has(e)||u!==null&&Nr.has(u))&&(l=!0),l&&(e._debugNeedsRemount=!0),l||L)u=ka(e,2),u!==null&&zt(u,e,2);if(d===null||l||b0(d,t,o),m===null)break;e=m}while(1)}function Ok(e,t,o,l){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=l,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,C1||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(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=ti(e.type);break;case 1:o.type=ti(e.type);break;case 11:o.type=Pm(e.type)}return o}function x0(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 Nm(e,t,o,l,u,d){var m=0,y=e;if(typeof e==="function")Bm(e)&&(m=1),y=ti(y);else if(typeof e==="string")m=pe(),m=VR(e,o,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ky:return t=S(31,o,t,u),t.elementType=ky,t.lanes=d,t;case wr:return ai(o.children,u,d,t);case dh:m=8,u|=_a,u|=sn;break;case wy:return e=o,l=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,l|Ue),t.elementType=wy,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Iy:return t=S(13,o,t,u),t.elementType=Iy,t.lanes=d,t;case Ay:return t=S(19,o,t,u),t.elementType=Ay,t.lanes=d,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Dn:m=10;break e;case My:m=9;break e;case uc:m=11,y=Pm(y);break e;case fh:m=14;break e;case vo:m=16,y=null;break e}if(y="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)y+=" 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":sa(e)?o="array":e!==void 0&&e.$$typeof===_n?(o="<"+(K(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(m=l?re(l):null)&&(y+=`
|
|
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 yk(e){return e.replace(T_,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,yk(t.replace(C_,"ms-")))):L_.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 y in t)if(t.hasOwnProperty(y)&&(!o||o[y]!==t[y]))for(u=Vy[y]||[y],d=0;d<u.length;d++)i[u[d]]=y;y={};for(var v in t)for(u=Vy[v]||[v],d=0;d<u.length;d++)y[u[d]]=v;v={};for(var L in i)if(u=i[L],(d=y[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 w_.get(e)||e}function bk(e,t){if(nn.call(_r,t)&&_r[t])return!0;if(M_.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(I_.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 xk(e,t){var o=[],i;for(i in t)bk(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 vk(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 A_.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ua[t]=!0;if(k_.test(t)||R_.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 Sk(e,t,o){var i=[],u;for(u in t)vk(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 __.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 y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(d):d[y]);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 Lk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j_[e])?!!t[e]:!1}function _m(){return Lk}function t0(e,t){switch(e){case"keyup":return aD.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 Ck(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 Tk(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"?!!nD[e.type]:t==="textarea"?!0:!1}function wk(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 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 Ik(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(Ik,t)}}function Mk(e,t,o){e==="focusin"?(i0(),xc=t,vc=o,xc.attachEvent("onpropertychange",l0)):e==="focusout"&&i0()}function Ak(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ff(vc)}function kk(e,t){if(e==="click")return ff(t)}function Rk(e,t){if(e==="input"||e==="change")return ff(t)}function _k(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 Dk(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]!=="_"&&gn(u,e[u],t,o,i)}function gn(e,t,o,i,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Dn){var d=K(t.type)||"…",m=t.key;t=t.props;var y=Object.keys(t),v=y.length;if(m==null&&v===0){t="<"+d+" />";break}if(3>i||v===1&&y[0]==="children"&&m==null){t="<"+d+" … />";break}o.push([u+" ".repeat(i)+e,"<"+d]),m!==null&&gn("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]!=="_"&&gn(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=Dk(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],gn(d[0],d[1],o,i+1,u);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=o.length,gn(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,gn(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===dD?"…":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],y=t[d];if(m!==y){if(i===0&&d==="children")u=" ".repeat(i)+d,o.push([Mh+u,"…"],[Ah+u,"…"]);else{if(!(3<=i)){if(typeof m==="object"&&typeof y==="object"&&m!==null&&y!==null&&m.$$typeof===y.$$typeof)if(y.$$typeof===Dn){if(m.type===y.type&&m.key===y.key){m=K(y.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(y);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,y,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 y==="function"&&m.name===y.name&&m.length===y.length&&(v=Function.prototype.toString.call(m),L=Function.prototype.toString.call(y),v===L)){m=y.name===""?"() => {}":y.name+"() {}",o.push([C1+" ".repeat(i)+d,m+" Referentially unequal function closure. Consider memoization."]);continue}}gn(d,m,o,i,Mh),gn(d,y,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 yn(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){yn(e,t,o,"Reconnect")}function pf(e,t,o,i,u){var d=q(e);if(d!==null&&wt){var{alternate:m,actualDuration:y}=e;if(m===null||m.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)y-=v.actualDuration;i=0.5>y?i?"tertiary-light":"primary-light":10>y?i?"tertiary":"primary":100>y?i?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;y=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(v=[fD],L=h0(m.memoizedProps,L,v,0),1<v.length&&(L&&!oi&&(m.lanes&u)===0&&100<e.actualDuration?(oi=!0,v[0]=hD,rs.color="warning",rs.tooltipText=T1):(rs.color=i,rs.tooltipText=d),rs.properties=v,ni.start=t,ni.end=o,y!=null?y.run(performance.measure.bind(performance,""+d,ni)):performance.measure(""+d,ni))):y!=null?y.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=q(e);if(u!==null){for(var d=null,m=[],y=0;y<i.length;y++){var v=i[y];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&&gn("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 bn(e,t,o,i,u){if(u!==null){if(wt){var d=q(e);if(d!==null){i=[];for(var m=0;m<u.length;m++){var y=u[m].value;i.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}e.key!==null&&gn("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=q(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 Ek(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 Ok(e,t,o,i,u,d){if(wt&&!(t<=e)){o=[];for(var m=0;m<i.length;m++){var y=i[m].value;o.push(["Recoverable Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}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 Pk(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 y=o[m].value;d.push(["Error",typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y)])}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>AD)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>kD&&(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,y=i.tag;i=i.type;var v=null;switch(y){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)&&(y===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 Bk(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,y=e;if(typeof e==="function")zm(e)&&(m=1),y=al(y);else if(typeof e==="string")m=pe(),m=GR(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 En:m=10;break e;case Ay:m=9;break e;case cc:m=11,y=Nm(y);break e;case ph:m=14;break e;case vo:m=16,y=null;break e}if(y="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)y+=" 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===Dn?(o="<"+(K(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(m=i?re(i):null)&&(y+=`
|
|
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+"."+y)),y=null}return t=S(m,o,t,u),t.elementType=e,t.type=y,t.lanes=d,t._debugOwner=
|
|
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+"."+y)),y=null}return t=S(m,o,t,u),t.elementType=e,t.type=y,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){Un||(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:
|
|
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)),
|
|
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,Un=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:
|
|
84
84
|
|
|
85
85
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
86
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -90,45 +90,45 @@ https://react.dev/link/hydration-mismatch`+o),e)),lb}function w0(e){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function 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 y=d;d=u;for(var v=0;v<t.length;v++)if(y.context===t[v]){d.lanes|=o,y=d.alternate,y!==null&&(y.lanes|=o),Ym(d.return,o,e),i||(m=null);break e}d=y.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 y=u.type;Ha(u.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}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 gD,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&&yD(bD,function(){e.controller.abort()})}function xn(e,t,o){if((e&127)!==0)0>Hn&&(Hn=Qt(),wc=_h(t),db=t,o!=null&&(fb=q(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=q(o)),0>ps)){if(e=sc(),t=nc(),e!==di||t!==xl)di=-1.1;ci=e,xl=t}}function Nk(e){if(0>Hn){Hn=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 vn(){var e=Et;return Et=-0,e}function Sn(e){0<=e&&(Et=e)}function Ln(){var e=Dt;return Dt=null,e}function Cn(){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 Tn(){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 wn(){Fa=Qt(),0>Se&&(Se=Fa)}function Hu(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function zk(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 Uk(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 LD(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===t_)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function Af(e,t){var o=Km();o!==null?o.run(U0.bind(null,e,t)):U0(e,t)}function H0(e,t){var o=q(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.
|
|
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
|
|
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=q(e)||"Component";Z1[o]||(Z1[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 Af(e,t){var o=Zm();o!==null?o.run(U0.bind(null,e,t)):U0(e,t)}function H0(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 l(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=Jn(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 y(I,R,E,F){if(R===null||R.tag!==6)return R=zm(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===wr)return R=O(I,R,E.props.children,F,E.key),Tf(E,R,I),R;if(R!==null&&(R.elementType===oe||g0(R,E)||typeof oe==="object"&&oe!==null&&oe.$$typeof===vo&&qs(oe)===R.type))return R=u(R,E.props),Hu(R,E),R.return=I,R._debugOwner=E._owner,R._debugInfo=He,R;return R=gf(E,I.mode,F),Hu(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=Um(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=ai(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=zm(""+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 _n:return E=gf(R,I.mode,E),Hu(E,R),E.return=I,I=ya(R._debugInfo),E._debugInfo=He,He=I,E;case Tr:return R=Um(R,I.mode,E),R.return=I,R._debugInfo=He,R;case vo:var F=ya(R._debugInfo);return R=qs(R),I=P(I,R,E),He=F,I}if(sa(R)||J(R))return E=ai(R,I.mode,E,null),E.return=I,E._debugOwner=I,E._debugTask=I._debugTask,I=ya(R._debugInfo),E._debugInfo=He,He=I,E;if(typeof R.then==="function")return F=ya(R._debugInfo),I=P(I,wf(R),E),He=F,I;if(R.$$typeof===Dn)return P(I,vf(I,R),E);Mf(I,R)}return typeof R==="function"&&If(I,R),typeof R==="symbol"&&Af(I,R),null}function k(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:y(I,R,""+E,F);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case _n:return E.key===oe?(oe=ya(E._debugInfo),I=v(I,R,E,F),He=oe,I):null;case Tr:return E.key===oe?L(I,R,E,F):null;case vo:return oe=ya(E._debugInfo),E=qs(E),I=k(I,R,E,F),He=oe,I}if(sa(E)||J(E)){if(oe!==null)return null;return oe=ya(E._debugInfo),I=O(I,R,E,F,null),He=oe,I}if(typeof E.then==="function")return oe=ya(E._debugInfo),I=k(I,R,wf(E),F),He=oe,I;if(E.$$typeof===Dn)return k(I,R,vf(I,E),F);Mf(I,E)}return typeof E==="function"&&If(I,E),typeof E==="symbol"&&Af(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,y(R,I,""+F,oe);if(typeof F==="object"&&F!==null){switch(F.$$typeof){case _n:return E=I.get(F.key===null?E:F.key)||null,I=ya(F._debugInfo),R=v(R,E,F,oe),He=I,R;case Tr:return I=I.get(F.key===null?E:F.key)||null,L(R,I,F,oe);case vo:var Re=ya(F._debugInfo);return F=qs(F),R=N(I,R,E,F,oe),He=Re,R}if(sa(F)||J(F))return E=I.get(E)||null,I=ya(F._debugInfo),R=O(R,E,F,oe,null),He=I,R;if(typeof F.then==="function")return Re=ya(F._debugInfo),R=N(I,R,E,wf(F),oe),He=Re,R;if(F.$$typeof===Dn)return N(I,R,E,vf(R,F),oe);Mf(R,F)}return typeof F==="function"&&If(R,F),typeof F==="symbol"&&Af(R,F),null}function te(I,R,E,F){if(typeof E!=="object"||E===null)return F;switch(E.$$typeof){case _n:case Tr:b(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}le(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=qs(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,At=null;fe!==null&&Be<E.length;Be++){fe.index>Be?(At=fe,fe=null):At=fe.sibling;var Yt=k(I,fe,E[Be],F);if(Yt===null){fe===null&&(fe=At);break}oe=te(I,Yt,E[Be],oe),e&&fe&&Yt.alternate===null&&t(I,fe),R=d(Yt,R,Be),xe===null?Re=Yt:xe.sibling=Yt,xe=Yt,fe=At}if(Be===E.length)return o(I,fe),Ke&&es(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&&es(I,Be),Re}for(fe=l(fe);Be<E.length;Be++)At=N(fe,I,Be,E[Be],F),At!==null&&(oe=te(I,At,E[Be],oe),e&&At.alternate!==null&&fe.delete(At.key===null?Be:At.key),R=d(At,R,Be),xe===null?Re=At:xe.sibling=At,xe=At);return e&&fe.forEach(function(Ls){return t(I,Ls)}),Ke&&es(I,Be),Re}function Tt(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,At=null,Yt=E.next();xe!==null&&!Yt.done;fe++,Yt=E.next()){xe.index>fe?(Be=xe,xe=null):Be=xe.sibling;var Ls=k(I,xe,Yt.value,F);if(Ls===null){xe===null&&(xe=Be);break}At=te(I,Ls,Yt.value,At),e&&xe&&Ls.alternate===null&&t(I,xe),R=d(Ls,R,fe),Re===null?oe=Ls:Re.sibling=Ls,Re=Ls,xe=Be}if(Yt.done)return o(I,xe),Ke&&es(I,fe),oe;if(xe===null){for(;!Yt.done;fe++,Yt=E.next())xe=P(I,Yt.value,F),xe!==null&&(At=te(I,xe,Yt.value,At),R=d(xe,R,fe),Re===null?oe=xe:Re.sibling=xe,Re=xe);return Ke&&es(I,fe),oe}for(xe=l(xe);!Yt.done;fe++,Yt=E.next())Be=N(xe,I,fe,Yt.value,F),Be!==null&&(At=te(I,Be,Yt.value,At),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(jD){return t(I,jD)}),Ke&&es(I,fe),oe}function tt(I,R,E,F){if(typeof E==="object"&&E!==null&&E.type===wr&&E.key===null&&(Tf(E,null,I),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case _n:var oe=ya(E._debugInfo);e:{for(var Re=E.key;R!==null;){if(R.key===Re){if(Re=E.type,Re===wr){if(R.tag===7){o(I,R.sibling),F=u(R,E.props.children),F.return=I,F._debugOwner=E._owner,F._debugInfo=He,Tf(E,F,I),I=F;break e}}else if(R.elementType===Re||g0(R,E)||typeof Re==="object"&&Re!==null&&Re.$$typeof===vo&&qs(Re)===R.type){o(I,R.sibling),F=u(R,E.props),Hu(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===wr?(F=ai(E.props.children,I.mode,F,E.key),F.return=I,F._debugOwner=I,F._debugTask=I._debugTask,F._debugInfo=He,Tf(E,F,I),I=F):(F=gf(E,I.mode,F),Hu(F,E),F.return=I,F._debugInfo=He,I=F)}return I=m(I),He=oe,I;case Tr: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=Um(oe,I.mode,F),F.return=I,I=F}return m(I);case vo:return oe=ya(E._debugInfo),E=qs(E),I=tt(I,R,E,F),He=oe,I}if(sa(E))return oe=ya(E._debugInfo),I=se(I,R,E,F),He=oe,I;if(J(E)){if(oe=ya(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]")G1||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."),G1=!0}else E.entries!==Re||gb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gb=!0);return I=Tt(I,R,xe,F),He=oe,I}if(typeof E.then==="function")return oe=ya(E._debugInfo),I=tt(I,R,wf(E),F),He=oe,I;if(E.$$typeof===Dn)return tt(I,R,vf(I,E),F);Mf(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=zm(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"&&If(I,E),typeof E==="symbol"&&Af(I,E),o(I,R)}return function(I,R,E,F){var oe=He;He=null;try{Bc=0;var Re=tt(I,R,E,F);return Gr=null,Re}catch(At){if(At===jr||At===Nh)throw At;var xe=S(29,At,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 F0(e,t){var o=sa(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 Qm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Km(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 Vs(e){return{lane:e,tag:Z1,payload:null,callback:null,next:null}}function js(e,t,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,bb===l&&!J1){var u=q(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 Rf(e,t){var o=Km();o!==null?o.run(F0.bind(null,e,t)):F0(e,t)}function q0(e){function t(I,k){if(e){var E=I.deletions;E===null?(I.deletions=[k],I.flags|=16):E.push(k)}}function o(I,k){if(!e)return null;for(;k!==null;)t(I,k),k=k.sibling;return null}function i(I){for(var k=new Map;I!==null;)I.key!==null?k.set(I.key,I):k.set(I.index,I),I=I.sibling;return k}function u(I,k){return I=es(I,k),I.index=0,I.sibling=null,I}function d(I,k,E){if(I.index=E,!e)return I.flags|=1048576,k;if(E=I.alternate,E!==null)return E=E.index,E<k?(I.flags|=67108866,k):E;return I.flags|=67108866,k}function m(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function y(I,k,E,F){if(k===null||k.tag!==6)return k=Hm(E,I.mode,F),k.return=I,k._debugOwner=I,k._debugTask=I._debugTask,k._debugInfo=He,k;return k=u(k,E),k.return=I,k._debugInfo=He,k}function v(I,k,E,F){var oe=E.type;if(oe===Ir)return k=O(I,k,E.props.children,F,E.key),If(E,k,I),k;if(k!==null&&(k.elementType===oe||b0(k,E)||typeof oe==="object"&&oe!==null&&oe.$$typeof===vo&&Vs(oe)===k.type))return k=u(k,E.props),Fu(k,E),k.return=I,k._debugOwner=E._owner,k._debugInfo=He,k;return k=bf(E,I.mode,F),Fu(k,E),k.return=I,k._debugInfo=He,k}function L(I,k,E,F){if(k===null||k.tag!==4||k.stateNode.containerInfo!==E.containerInfo||k.stateNode.implementation!==E.implementation)return k=Fm(E,I.mode,F),k.return=I,k._debugInfo=He,k;return k=u(k,E.children||[]),k.return=I,k._debugInfo=He,k}function O(I,k,E,F,oe){if(k===null||k.tag!==7)return k=ol(E,I.mode,F,oe),k.return=I,k._debugOwner=I,k._debugTask=I._debugTask,k._debugInfo=He,k;return k=u(k,E),k.return=I,k._debugInfo=He,k}function P(I,k,E){if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return k=Hm(""+k,I.mode,E),k.return=I,k._debugOwner=I,k._debugTask=I._debugTask,k._debugInfo=He,k;if(typeof k==="object"&&k!==null){switch(k.$$typeof){case Dn:return E=bf(k,I.mode,E),Fu(E,k),E.return=I,I=ba(k._debugInfo),E._debugInfo=He,He=I,E;case wr:return k=Fm(k,I.mode,E),k.return=I,k._debugInfo=He,k;case vo:var F=ba(k._debugInfo);return k=Vs(k),I=P(I,k,E),He=F,I}if(na(k)||J(k))return E=ol(k,I.mode,E,null),E.return=I,E._debugOwner=I,E._debugTask=I._debugTask,I=ba(k._debugInfo),E._debugInfo=He,He=I,E;if(typeof k.then==="function")return F=ba(k._debugInfo),I=P(I,Mf(k),E),He=F,I;if(k.$$typeof===En)return P(I,Lf(I,k),E);Af(I,k)}return typeof k==="function"&&kf(I,k),typeof k==="symbol"&&Rf(I,k),null}function A(I,k,E,F){var oe=k!==null?k.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return oe!==null?null:y(I,k,""+E,F);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case Dn:return E.key===oe?(oe=ba(E._debugInfo),I=v(I,k,E,F),He=oe,I):null;case wr:return E.key===oe?L(I,k,E,F):null;case vo:return oe=ba(E._debugInfo),E=Vs(E),I=A(I,k,E,F),He=oe,I}if(na(E)||J(E)){if(oe!==null)return null;return oe=ba(E._debugInfo),I=O(I,k,E,F,null),He=oe,I}if(typeof E.then==="function")return oe=ba(E._debugInfo),I=A(I,k,Mf(E),F),He=oe,I;if(E.$$typeof===En)return A(I,k,Lf(I,E),F);Af(I,E)}return typeof E==="function"&&kf(I,E),typeof E==="symbol"&&Rf(I,E),null}function N(I,k,E,F,oe){if(typeof F==="string"&&F!==""||typeof F==="number"||typeof F==="bigint")return I=I.get(E)||null,y(k,I,""+F,oe);if(typeof F==="object"&&F!==null){switch(F.$$typeof){case Dn:return E=I.get(F.key===null?E:F.key)||null,I=ba(F._debugInfo),k=v(k,E,F,oe),He=I,k;case wr:return I=I.get(F.key===null?E:F.key)||null,L(k,I,F,oe);case vo:var Re=ba(F._debugInfo);return F=Vs(F),k=N(I,k,E,F,oe),He=Re,k}if(na(F)||J(F))return E=I.get(E)||null,I=ba(F._debugInfo),k=O(k,E,F,oe,null),He=I,k;if(typeof F.then==="function")return Re=ba(F._debugInfo),k=N(I,k,E,Mf(F),oe),He=Re,k;if(F.$$typeof===En)return N(I,k,E,Lf(k,F),oe);Af(k,F)}return typeof F==="function"&&kf(k,F),typeof F==="symbol"&&Rf(k,F),null}function te(I,k,E,F){if(typeof E!=="object"||E===null)return F;switch(E.$$typeof){case Dn:case wr:b(I,k,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(k,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,k,E,F)}return F}function se(I,k,E,F){for(var oe=null,Re=null,xe=null,fe=k,Be=k=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),k=d(Gt,k,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),k=d(fe,k,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),k=d(Mt,k,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,k,E,F){if(E==null)throw Error("An iterable object provided no iterator.");for(var oe=null,Re=null,xe=k,fe=k=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),k=d(Cs,k,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),k=d(xe,k,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),k=d(Be,k,fe),Re===null?oe=Be:Re.sibling=Be,Re=Be);return e&&xe.forEach(function(YD){return t(I,YD)}),Ke&&ts(I,fe),oe}function tt(I,k,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 Dn:var oe=ba(E._debugInfo);e:{for(var Re=E.key;k!==null;){if(k.key===Re){if(Re=E.type,Re===Ir){if(k.tag===7){o(I,k.sibling),F=u(k,E.props.children),F.return=I,F._debugOwner=E._owner,F._debugInfo=He,If(E,F,I),I=F;break e}}else if(k.elementType===Re||b0(k,E)||typeof Re==="object"&&Re!==null&&Re.$$typeof===vo&&Vs(Re)===k.type){o(I,k.sibling),F=u(k,E.props),Fu(F,E),F.return=I,F._debugOwner=E._owner,F._debugInfo=He,I=F;break e}o(I,k);break}else t(I,k);k=k.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;k!==null;){if(k.key===E)if(k.tag===4&&k.stateNode.containerInfo===oe.containerInfo&&k.stateNode.implementation===oe.implementation){o(I,k.sibling),F=u(k,oe.children||[]),F.return=I,I=F;break e}else{o(I,k);break}else t(I,k);k=k.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,k,E,F),He=oe,I}if(na(E))return oe=ba(E._debugInfo),I=se(I,k,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,k,xe,F),He=oe,I}if(typeof E.then==="function")return oe=ba(E._debugInfo),I=tt(I,k,Mf(E),F),He=oe,I;if(E.$$typeof===En)return tt(I,k,Lf(I,E),F);Af(I,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return oe=""+E,k!==null&&k.tag===6?(o(I,k.sibling),F=u(k,oe),F.return=I,I=F):(o(I,k),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,k)}return function(I,k,E,F){var oe=He;He=null;try{Nc=0;var Re=tt(I,k,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=q(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),
|
|
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,y=u.shared.pending;if(y!==null){u.shared.pending=null;var v=y,L=v.next;v.next=null,m===null?d=L:m.next=L,m=v;var O=e.alternate;O!==null&&(O=O.updateQueue,y=O.lastBaseUpdate,y!==m&&(y===null?O.firstBaseUpdate=L:y.next=L,O.lastBaseUpdate=v))}if(d!==null){var P=u.baseState;m=0,O=L=v=null,y=d;do{var A=y.lane&-536870913,N=A!==y.lane;if(N?(Fe&A)===A:(i&A)===A){A!==0&&A===vl&&(Sb=!0),O!==null&&(O=O.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{A=e;var te=y,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=y.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:y.tag,payload:y.payload,callback:y.callback,next:null},O===null?(L=O=N,v=P):O=O.next=N,m|=A;if(y=y.next,y===null)if(y=u.shared.pending,y===null)break;else N=y,y=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 Hk(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=Vn;we(Fh,o,e),we(Xr,t,e),Vn=o|t.baseLanes}function tg(e){we(Fh,Vn,e),we(Xr,Xr.current,e)}function ag(e){Vn=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=U;Vo===null?Vo=[e]:Vo.push(e)}function j(){var e=U;if(Vo!==null&&(bs++,Vo[bs]!==e)){var t=q(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
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
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,t,o)}}}function
|
|
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.",U,typeof e)}function Ef(){var e=q(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:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function 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.",U),!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`,U,"["+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 og(e,t,o,l,u,d){if(ms=d,ke=t,qo=e!==null?e._debugHookTypes:null,ys=-1,Uc=e!==null&&e.type!==t.type,Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")d=q(ke),vb.has(d)||(vb.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?Lb:qo!==null?oT:Sb,Ti=d=(t.mode&_a)!==Ae;var m=hb(o,l,u);if(Ti=!1,Wr&&(m=ng(t,o,l,u)),d){Lt(!0);try{m=ng(t,o,l,u)}finally{Lt(!1)}}return Y0(e,t),m}function Y0(e,t){t._debugHookTypes=qo,t.dependencies===null?gs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:gs}):t.dependencies._debugThenableState=gs,H.H=Hc;var o=xt!==null&&xt.next!==null;if(ms=0,qo=U=Jt=xt=ke=null,ys=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fh=!1,zc=0,gs=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ea||(e=e.dependencies,e!==null&&xf(e)&&(ea=!0)),Pc?(Pc=!1,e=!0):e=!1,e&&(t=q(t)||"Unknown",tT.has(t)||vb.has(t)||(tT.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 ng(e,t,o,l){ke=e;var u=0;do{if(Wr&&(gs=null),zc=0,Wr=!1,u>=LD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(u+=1,Uc=!1,Jt=xt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}ys=-1,H.H=nT,d=hb(t,o,l)}while(Wr);return d}function Uk(){var e=H.H,t=e.useState()[0];return t=typeof t.then==="function"?ju(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&(ke.flags|=1024),t}function sg(){var e=qh!==0;return qh=0,e}function lg(e,t,o){t.updateQueue=e.updateQueue,t.flags=(t.mode&sn)!==Ae?t.flags&-402655237:t.flags&-2053,e.lanes&=~o}function ig(e){if(Fh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fh=!1}ms=0,qo=Jt=xt=ke=null,ys=-1,U=null,Wr=!1,zc=qh=0,gs=null}function Ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ke.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function ft(){if(xt===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=Jt===null?ke.memoizedState:Jt.next;if(t!==null)Jt=t,xt=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.")}xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Jt===null?ke.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function Df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ju(e){var t=zc;return zc+=1,gs===null&&(gs=D0()),e=O0(gs,e,t),t=ke,(Jt===null?t.memoizedState:Jt.next)===null&&(t=t.alternate,H.H=t!==null&&t.memoizedState!==null?Lb:Sb),e}function Xs(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return ju(e);if(e.$$typeof===Dn)return Dt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ii(e){var t=null,o=ke.updateQueue;if(o!==null&&(t=o.memoCache),t==null){var l=ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),o===null&&(o=Df(),ke.updateQueue=o),o.memoCache=t,o=t.data[t.index],o===void 0||Uc)for(o=t.data[t.index]=Array(e),l=0;l<e;l++)o[l]=e_;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 tn(e,t){return typeof t==="function"?t(e):t}function rg(e,t,o){var l=Ba();if(o!==void 0){var u=o(t);if(Ti){Lt(!0);try{o(t)}finally{Lt(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=jk.bind(null,ke,e),[l.memoizedState,e]}function fr(e){var t=ft();return ug(t,xt,e)}function ug(e,t,o){var l=e.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=o;var u=e.baseQueue,d=l.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,l.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var y=m=null,v=null,L=t,O=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Fe&P)===P:(ms&P)===P){var k=L.revertLane;if(k===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===xi&&(O=!0);else if((ms&k)===k){L=L.next,k===xi&&(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?(y=v=P,m=d):v=v.next=P,ke.lanes|=k,pl|=k;P=L.action,Ti&&o(d,P),d=L.hasEagerState?L.eagerState:o(d,P)}else k={lane:P,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},v===null?(y=v=k,m=d):v=v.next=k,ke.lanes|=P,pl|=P;L=L.next}while(L!==null&&L!==t);if(v===null?m=d:v.next=y,!Ha(d,e.memoizedState)&&(ea=!0,O&&(o=Vr,o!==null)))throw o;e.memoizedState=d,e.baseState=m,e.baseQueue=v,l.lastRenderedState=d}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Gu(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:l,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)||(ea=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,l]}function cg(e,t,o){var l=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();$r||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),$r=!0)}else{if(d=t(),$r||(o=t(),Ha(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),$r=!0)),vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Fe&127)!==0||X0(l,t,d)}return u.memoizedState=d,o={value:d,getSnapshot:t},u.queue=o,Bf(W0.bind(null,l,o,e),[e]),l.flags|=2048,pr(Fo|Va,{destroy:void 0},$0.bind(null,l,o,d,t),null),d}function Ef(e,t,o){var l=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(),!$r){var m=t();Ha(o,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),$r=!0)}if(m=!Ha((xt||u).memoizedState,o))u.memoizedState=o,ea=!0;u=u.queue;var y=W0.bind(null,l,u,e);if(Ya(2048,Va,y,[e]),u.getSnapshot!==t||m||Jt!==null&&Jt.memoizedState.tag&Fo){if(l.flags|=2048,pr(Fo|Va,{destroy:void 0},$0.bind(null,l,u,o,t),null),vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(ms&127)!==0||X0(l,t,o)}return o}function X0(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=ke.updateQueue,t===null?(t=Df(),ke.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function $0(e,t,o,l){t.value=o,t.getSnapshot=l,Z0(t)&&Q0(e)}function W0(e,t,o){return o(function(){Z0(t)&&(bn(2,"updateSyncExternalStore()",e),Q0(e))})}function Z0(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Ha(e,o)}catch(l){return!0}}function Q0(e){var t=ka(e,2);t!==null&&zt(t,e,2)}function dg(e){var t=Ba();if(typeof e==="function"){var o=e;if(e=o(),Ti){Lt(!0);try{o()}finally{Lt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:e},t}function fg(e){e=dg(e);var t=e.queue,o=gS.bind(null,ke,t);return t.dispatch=o,[e.memoizedState,o]}function hg(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=Ig.bind(null,ke,!0,o),o.dispatch=t,[e,t]}function K0(e,t){var o=ft();return J0(o,xt,e,t)}function J0(e,t,o,l){return e.baseState=o,ug(e,xt,typeof l==="function"?l:tn)}function eS(e,t){var o=ft();if(xt!==null)return J0(o,xt,e,t);return o.baseState=e,[e,o.queue.dispatch]}function Hk(e,t,o,l,u){if(qf(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,l(d),o=t.pending,o===null?(d.next=t.pending=d,tS(t,d)):(d.next=o.next,t.pending=o.next=d)}}function tS(e,t){var{action:o,payload:l}=t,u=e.state;if(t.isTransition){var d=H.T,m={};m._updatedFibers=new Set,H.T=m;try{var y=o(u,l),v=H.S;v!==null&&v(m,y),aS(e,t,y)}catch(L){pg(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,l),aS(e,t,m)}catch(L){pg(e,t,L)}}function aS(e,t,o){o!==null&&typeof o==="object"&&typeof o.then==="function"?(H.asyncTransitions++,o.then(Ff,Ff),o.then(function(l){oS(e,t,l)},function(l){return pg(e,t,l)}),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.")):oS(e,t,o)}function oS(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,tS(e,o)))}function pg(e,t,o){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=o,nS(t),t=t.next;while(t!==l)}e.action=null}function nS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sS(e,t){return t}function hr(e,t){if(Ke){var o=vt.formState;if(o!==null){e:{var l=ke;if(Ke){if(It){t:{var u=It;for(var d=zo;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===Gb||d===VT?u:null}if(u){It=xo(u.nextSibling),l=u.data===Gb;break e}}Hs(l)}l=!1}l&&(t=o[0])}}return o=Ba(),o.memoizedState=o.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sS,lastRenderedState:t},o.queue=l,o=gS.bind(null,ke,l),l.dispatch=o,l=dg(!1),d=Ig.bind(null,ke,!1,l.queue),l=Ba(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,o=Hk.bind(null,ke,u,d,o),u.dispatch=o,l.memoizedState=e,[t,o,!1]}function Of(e){var t=ft();return lS(t,xt,e)}function lS(e,t,o){if(t=ug(e,t,sS)[0],e=fr(tn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var l=ju(t)}catch(m){if(m===jr)throw Nh;throw m}else l=t;t=ft();var u=t.queue,d=u.dispatch;return o!==t.memoizedState&&(ke.flags|=2048,pr(Fo|Va,{destroy:void 0},Fk.bind(null,u,o),null)),[l,d,e]}function Fk(e,t){e.action=t}function Pf(e){var t=ft(),o=xt;if(o!==null)return lS(t,o,e);ft(),t=t.memoizedState,o=ft();var l=o.queue.dispatch;return o.memoizedState=e,[t,l,!1]}function pr(e,t,o,l){return e={tag:e,create:o,deps:l,inst:t,next:null},t=ke.updateQueue,t===null&&(t=Df(),ke.updateQueue=t),o=t.lastEffect,o===null?t.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,t.lastEffect=e),e}function mg(e){var t=Ba();return e={current:e},t.memoizedState=e}function ri(e,t,o,l){var u=Ba();ke.flags|=e,u.memoizedState=pr(Fo|t,{destroy:void 0},o,l===void 0?null:l)}function Ya(e,t,o,l){var u=ft();l=l===void 0?null:l;var d=u.memoizedState.inst;xt!==null&&l!==null&&ag(l,xt.memoizedState.deps)?u.memoizedState=pr(t,d,o,l):(ke.flags|=e,u.memoizedState=pr(Fo|t,d,o,l))}function Bf(e,t){(ke.mode&sn)!==Ae?ri(276826112,Va,e,t):ri(8390656,Va,e,t)}function qk(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=Df(),ke.updateQueue=t,t.events=[e];else{var o=t.events;o===null?t.events=[e]:o.push(e)}}function gg(e){var t=Ba(),o={impl:e};return t.memoizedState=o,function(){if((ot&ia)!==ma)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function Nf(e){var t=ft().memoizedState;return qk({ref:t,nextImpl:e}),function(){if((ot&ia)!==ma)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(ke.mode&sn)!==Ae&&(o|=134217728),ri(o,wo,e,t)}function iS(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 bg(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 l=4194308;(ke.mode&sn)!==Ae&&(l|=134217728),ri(l,wo,iS.bind(null,t,e),o)}function zf(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,iS.bind(null,t,e),o)}function xg(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e}function Uf(e,t){var o=ft();t=t===void 0?null:t;var l=o.memoizedState;if(t!==null&&ag(t,l[1]))return l[0];return o.memoizedState=[e,t],e}function vg(e,t){var o=Ba();t=t===void 0?null:t;var l=e();if(Ti){Lt(!0);try{e()}finally{Lt(!1)}}return o.memoizedState=[l,t],l}function Hf(e,t){var o=ft();t=t===void 0?null:t;var l=o.memoizedState;if(t!==null&&ag(t,l[1]))return l[0];if(l=e(),Ti){Lt(!0);try{e()}finally{Lt(!1)}}return o.memoizedState=[l,t],l}function Sg(e,t){var o=Ba();return Lg(o,e,t)}function rS(e,t){var o=ft();return cS(o,xt.memoizedState,e,t)}function uS(e,t){var o=ft();return xt===null?Lg(o,e,t):cS(o,xt.memoizedState,e,t)}function Lg(e,t,o){if(o===void 0||(ms&1073741824)!==0&&(Fe&261930)===0)return e.memoizedState=t;return e.memoizedState=o,e=dL(),ke.lanes|=e,pl|=e,o}function cS(e,t,o,l){if(Ha(o,t))return o;if(Yr.current!==null)return e=Lg(e,o,l),Ha(e,t)||(ea=!0),e;if((ms&42)===0||(ms&1073741824)!==0&&(Fe&261930)===0)return ea=!0,e.memoizedState=o;return e=dL(),ke.lanes|=e,pl|=e,t}function Ff(){H.asyncTransitions--}function dS(e,t,o,l,u){var d=ct.p;ct.p=d!==0&&d<nn?d:nn;var m=H.T,y={};y._updatedFibers=new Set,H.T=y,Ig(e,!1,t,o);try{var v=u(),L=H.S;if(L!==null&&L(y,v),v!==null&&typeof v==="object"&&typeof v.then==="function"){H.asyncTransitions++,v.then(Ff,Ff);var O=Nk(v,l);Yu(e,t,O,bo(e))}else Yu(e,t,l,bo(e))}catch(P){Yu(e,t,{then:function(){},status:"rejected",reason:P},bo(e))}finally{ct.p=d,m!==null&&y.types!==null&&(m.types!==null&&m.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."),m.types=y.types),H.T=m,m===null&&y._updatedFibers&&(e=y._updatedFibers.size,y._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 Cg(e,t,o,l){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var u=fS(e).queue;Pk(e),dS(e,u,t,Pi,o===null?g:function(){return hS(e),o(l)})}function fS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Pi,baseState:Pi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Pi},next:null};var o={};return t.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:o},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hS(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=fS(e);t.next===null&&(t=e.alternate.memoizedState),Yu(e,t.next.queue,{},bo(e))}function Tg(){var e=dg(!1);return e=dS.bind(null,ke,e.queue,!0,!1),Ba().memoizedState=e,[!1,e]}function pS(){var e=fr(tn)[0],t=ft().memoizedState;return[typeof e==="boolean"?e:ju(e),t]}function mS(){var e=Gu(tn)[0],t=ft().memoizedState;return[typeof e==="boolean"?e:ju(e),t]}function ui(){return Dt(td)}function wg(){var e=Ba(),t=vt.identifierPrefix;if(Ke){var o=cs,l=us;o=(l&~(1<<32-Na(l)-1)).toString(32)+o,t="_"+t+"R_"+o,o=qh++,0<o&&(t+="H"+o.toString(32)),t+="_"}else o=SD++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t}function Mg(){return Ba().memoizedState=Vk.bind(null,ke)}function Vk(e,t){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var l=bo(o),u=Vs(l),d=js(o,u,l);d!==null&&(bn(l,"refresh()",e),zt(d,o,l),Fu(d,o,l)),e=Ym(),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 jk(e,t,o){var l=arguments;typeof l[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()."),l=bo(e);var u={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};qf(e)?yS(t,u):(u=Om(e,t,u,l),u!==null&&(bn(l,"dispatch()",e),zt(u,e,l),bS(u,t,l)))}function gS(e,t,o){var l=arguments;typeof l[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()."),l=bo(e),Yu(e,t,o,l)&&bn(l,"setState()",e)}function Yu(e,t,o,l){var u={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(qf(e))yS(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=rn;try{var y=t.lastRenderedState,v=d(y,o);if(u.hasEagerState=!0,u.eagerState=v,Ha(v,y))return pf(e,t,u,0),vt===null&&hf(),!1}catch(L){}finally{H.H=m}}if(o=Om(e,t,u,l),o!==null)return zt(o,e,l),bS(o,t,l),!0}return!1}function Ig(e,t,o,l){if(H.T===null&&xi===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."),l={lane:2,revertLane:oy(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Om(e,o,l,2),t!==null&&(bn(2,"setOptimistic()",e),zt(t,e,2))}function qf(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function yS(e,t){Wr=Fh=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function bS(e,t,o){if((o&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Wl(e,o)}}function Ag(e){if(e!==null&&typeof e!=="function"){var t=String(e);mT.has(t)||(mT.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function kg(e,t,o,l){var u=e.memoizedState,d=o(l,u);if(e.mode&_a){Lt(!0);try{d=o(l,u)}finally{Lt(!1)}}d===void 0&&(t=K(t)||"Component",dT.has(t)||(dT.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 xS(e,t,o,l,u,d,m){var y=e.stateNode;if(typeof y.shouldComponentUpdate==="function"){if(o=y.shouldComponentUpdate(l,d,m),e.mode&_a){Lt(!0);try{o=y.shouldComponentUpdate(l,d,m)}finally{Lt(!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?!Ou(o,l)||!Ou(u,d):!0}function vS(e,t,o,l){var u=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(o,l),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(o,l),t.state!==u&&(e=q(e)||"Component",lT.has(e)||(lT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Cb.enqueueReplaceState(t,t.state,null))}function ci(e,t){var o=t;if("ref"in t){o={};for(var l in t)l!=="ref"&&(o[l]=t[l])}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 SS(e){eb(e),console.warn(`%s
|
|
115
|
+
Incoming: %s`,U,"["+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=q(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=U=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=q(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>=TD)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 Fk(){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,U=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===En)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]=a_;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=Yk.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 y=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?(y=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?(y=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=y,!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 y=Q0.bind(null,i,u,e);if(Ya(2048,Va,y,[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)&&(xn(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 qk(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 y=o(u,i),v=H.S;v!==null&&v(m,y),nS(e,t,y)}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=qk.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},Vk.bind(null,u,o),null)),[i,d,e]}function Vk(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 jk(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 jk({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,y={};y._updatedFibers=new Set,H.T=y,kg(e,!1,t,o);try{var v=u(),L=H.S;if(L!==null&&L(y,v),v!==null&&typeof v==="object"&&typeof v.then==="function"){H.asyncTransitions++,v.then(Vf,Vf);var O=Uk(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&&y.types!==null&&(m.types!==null&&m.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."),m.types=y.types),H.T=m,m===null&&y._updatedFibers&&(e=y._updatedFibers.size,y._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;Nk(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=CD++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t}function Ag(){return Ba().memoizedState=Gk.bind(null,ke)}function Gk(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&&(xn(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 Yk(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&&(xn(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)&&xn(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 y=t.lastRenderedState,v=d(y,o);if(u.hasEagerState=!0,u.eagerState=v,Ha(v,y))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&&(xn(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 y=e.stateNode;if(typeof y.shouldComponentUpdate==="function"){if(o=y.shouldComponentUpdate(i,d,m),e.mode&Da){St(!0);try{o=y.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=q(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
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function
|
|
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
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,e,t,o].slice(0),typeof e[0]==="string"?e.splice(0,1,
|
|
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=jD.apply(console.error,e),i()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,e,t,o)}function
|
|
129
|
+
`,e,t,o)}function wS(e){ab(e)}function Gf(e,t){try{Qr=t.source?q(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?q(o.source):null,Ib=q(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)),xD(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.",q(o)||"Unknown")})}function Xk(e,t,o,i,u){if(o.flags|=32768,Bn&&tc(e,u),i!==null&&typeof i==="object"&&typeof i.then==="function"){if(t=o.alternate,t!==null&&dr(t,o,u,!0),Ke&&(Un=!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 Un=!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 y in i)y!=="ref"&&(m[y]=i[y])}else m=i;if(il(t),i=sg(e,t,o,m,d,u),y=lg(),e!==null&&!Jt)return rg(e,t,u),ns(e,t,u);return Ke&&y&&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.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),t
|
|
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 $k(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,Un=!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 y=u&-u;if(t.lanes|=y,m=xt,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y=Eg(y),Og(y,m,t,po(d,t)),_f(t,y)}if(il(t),t.stateNode===null){if(m=si,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==En)&&!gT.has(o)&&(gT.add(o),y=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",y)),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=y=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?y="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps==="function"&&(y="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate==="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate==="function"&&(v="UNSAFE_componentWillUpdate"),m!==null||y!==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.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
136
136
|
https://react.dev/link/unsafe-component-lifecycles`,d,L,m!==null?`
|
|
137
137
|
`+m:"",y!==null?`
|
|
138
138
|
`+y:"",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&&!
|
|
140
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=K(t)||"Unknown",xT[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),xT[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=K(t)||"Unknown",yT[t]||(console.error("%s: Function components do not support contextType.",t),yT[t]=!0))}function Pg(e){return{baseLanes:e,cachePool:_0()}}function Bg(e,t,o){return e=e!==null?e.childLanes&~o:0,t&&(e|=Qa),e}function OS(e,t,o){var l,u=t.pendingProps;c(t)&&(t.flags|=128);var d=!1,m=(t.flags&128)!==0;if((l=m)||(l=e!==null&&e.memoizedState===null?!1:(Gt.current&Nc)!==0),l&&(d=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ke){if(d?Gs(t):Ys(t),(e=It)?(o=tC(e,zo),o=o!==null&&o.data!==_i?o:null,o!==null&&(l={dehydrated:o,treeContext:L0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=l,l=v0(o),l.return=t,t.child=l,Sa=t,It=null)):o=null,o===null)throw yf(t,e),Hs(t);return my(o)?t.lanes=32:t.lanes=536870912,null}var y=u.children;if(u=u.fallback,d){Ys(t);var v=t.mode;return y=Yf({mode:"hidden",children:y},v),u=ai(u,v,o,null),y.return=t,u.return=t,y.sibling=u,t.child=y,u=t.child,u.memoizedState=Pg(o),u.childLanes=Bg(e,l,o),t.memoizedState=Mb,Xu(null,u)}return Gs(t),Ng(t,y)}var L=e.memoizedState;if(L!==null){var O=L.dehydrated;if(O!==null){if(m)t.flags&256?(Gs(t),t.flags&=-257,t=zg(e,t,o)):t.memoizedState!==null?(Ys(t),t.child=e.child,t.flags|=128,t=null):(Ys(t),y=u.fallback,v=t.mode,u=Yf({mode:"visible",children:u.children},v),y=ai(y,v,o,null),y.flags|=2,u.return=t,y.return=t,u.sibling=y,t.child=u,Ci(t,e.child,null,o),u=t.child,u.memoizedState=Pg(o),u.childLanes=Bg(e,l,o),t.memoizedState=Mb,t=Xu(null,u));else if(Gs(t),T0(),(o&536870912)!==0&&Qf(t),my(O)){if(l=O.nextSibling&&O.nextSibling.dataset,l){y=l.dgst;var P=l.msg;v=l.stck;var k=l.cstck}d=P,l=y,u=v,O=k,y=d,v=O,y=y?Error(y):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),y.stack=u||"",y.digest=l,l=v===void 0?null:v,u={value:y,source:null,stack:l},typeof l==="string"&&sb.set(y,u),Bu(u),t=zg(e,t,o)}else if(ea||cr(e,t,o,!1),l=(o&e.childLanes)!==0,ea||l){if(l=vt,l!==null&&(u=Zl(l,o),u!==0&&u!==L.retryLane))throw L.retryLane=u,ka(e,u),zt(l,e,u),wb;py(O)||Kf(),t=zg(e,t,o)}else py(O)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,It=xo(O.nextSibling),Sa=t,Ke=!0,sl=null,zn=!1,Co=null,zo=!1,e!==null&&C0(t,e),t=Ng(t,u.children),t.flags|=4096);return t}}if(d)return Ys(t),y=u.fallback,v=t.mode,k=e.child,O=k.sibling,u=Jn(k,{mode:"hidden",children:u.children}),u.subtreeFlags=k.subtreeFlags&65011712,O!==null?y=Jn(O,y):(y=ai(y,v,o,null),y.flags|=2),y.return=t,u.return=t,u.sibling=y,t.child=u,Xu(null,u),u=t.child,y=e.child.memoizedState,y===null?y=Pg(o):(v=y.cachePool,v!==null?(k=Qt._currentValue,v=v.parent!==k?{parent:k,pool:k}:v):v=_0(),y={baseLanes:y.baseLanes|o,cachePool:v}),u.memoizedState=y,u.childLanes=Bg(e,l,o),t.memoizedState=Mb,Xu(e.child,u);return L!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&Qf(t),Gs(t),o=e.child,e=o.sibling,o=Jn(o,{mode:"visible",children:u.children}),o.return=t,o.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=o,t.memoizedState=null,o}function Ng(e,t){return t=Yf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yf(e,t){return e=S(22,e,null,t),e.lanes=0,e}function zg(e,t,o){return Ci(t,e.child,null,o),e=Ng(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PS(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),jm(e.return,t,o)}function Ug(e,t,o,l,u,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:u,treeForkCount:d}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=o,m.tailMode=u,m.treeForkCount=d)}function BS(e,t,o){var l=t.pendingProps,u=l.revealOrder,d=l.tail,m=l.children,y=Gt.current;if((l=(y&Nc)!==0)?(y=y&Xr|Nc,t.flags|=128):y&=Xr,we(Gt,y,t),y=u==null?"null":u,u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!vT[y])if(vT[y]=!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(y=d==null?"null":d,!jh[y])if(d==null){if(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")jh[y]=!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"?(jh[y]=!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"&&(jh[y]=!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(sa(m)){for(y=0;y<m.length;y++)if(!F0(m[y],y))break e}else if(y=J(m),typeof y==="function"){if(y=y.call(m))for(var v=y.next(),L=0;!v.done;v=y.next()){if(!F0(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(ba(e,t,m,o),Ke?(Us(),m=Lc):m=0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&PS(e,o,t);else if(e.tag===19)PS(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&&Rf(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Ug(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&&Rf(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Ug(t,!0,o,null,d,m);break;case"together":Ug(t,!1,null,null,void 0,m);break;default:t.memoizedState=null}return t.child}function os(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Fa=-1,pl|=t.lanes,(o&t.childLanes)===0)if(e!==null){if(cr(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=Jn(e,e.pendingProps),t.child=o;for(o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=Jn(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Hg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&xf(e)?!0:!1}function Xk(e,t,o){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Fs(t,Qt,e.memoizedState.cache),ni();break;case 27:case 5:Qe(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Fs(t,t.type,t.memoizedProps.value);break;case 12:(o&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var l=t.stateNode;l.effectDuration=-0,l.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,tg(t),null;break;case 13:if(l=t.memoizedState,l!==null){if(l.dehydrated!==null)return Gs(t),t.flags|=128,null;if((o&t.child.childLanes)!==0)return OS(e,t,o);return Gs(t),e=os(e,t,o),e!==null?e.sibling:null}Gs(t);break;case 19:var u=(e.flags&128)!==0;if(l=(o&t.childLanes)!==0,l||(cr(e,t,o,!1),l=(o&t.childLanes)!==0),u){if(l)return BS(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),we(Gt,Gt.current,t),l)break;else return null;case 22:return t.lanes=0,AS(e,t,o,t.pendingProps);case 24:Fs(t,Qt,e.memoizedState.cache)}return os(e,t,o)}function Fg(e,t,o){if(t._debugNeedsRemount&&e!==null){o=Nm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),o._debugStack=t._debugStack,o._debugTask=t._debugTask;var l=t.return;if(l===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===l.child)l.child=o;else{var u=l.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=l.deletions,t===null?(l.deletions=[e],l.flags|=16):t.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ea=!0;else{if(!Hg(e,o)&&(t.flags&128)===0)return ea=!1,Xk(e,t,o);ea=(e.flags&131072)!==0?!0:!1}else{if(ea=!1,l=Ke)Us(),l=(t.flags&1048576)!==0;l&&(l=t.index,Us(),S0(t,Lc,l))}switch(t.lanes=0,t.tag){case 16:e:if(l=t.pendingProps,e=qs(t.elementType),t.type=e,typeof e==="function")Bm(e)?(l=ci(e,l),t.tag=1,t.type=e=ti(e),t=DS(null,t,e,l,o)):(t.tag=0,Og(t,e),t.type=e=ti(e),t=Eg(null,t,e,l,o));else{if(e!==void 0&&e!==null){if(u=e.$$typeof,u===uc){t.tag=11,t.type=e=Pm(e),t=wS(null,t,e,l,o);break e}else if(u===fh){t.tag=14,t=MS(null,t,e,l,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 Eg(e,t,t.type,t.pendingProps,o);case 1:return l=t.type,u=ci(l,t.pendingProps),DS(e,t,l,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.");l=t.pendingProps;var d=t.memoizedState;u=d.element,Km(e,t),Vu(t,l,null,o);var m=t.memoizedState;if(l=m.cache,Fs(t,Qt,l),l!==d.cache&&Gm(t,[Qt],o,!0),qu(),l=m.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=ES(e,t,l,o);break e}else if(l!==u){u=po(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Bu(u),t=ES(e,t,l,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),Sa=t,Ke=!0,sl=null,zn=!1,Co=null,zo=!0,o=W1(t,null,l,o);for(t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(ni(),l===u){t=os(e,t,o);break e}ba(e,t,l,o)}t=t.child}return t;case 26:return Gf(e,t),e===null?(o=iC(t.type,null,t.pendingProps,null))?t.memoizedState=o:Ke||(o=t.type,e=t.pendingProps,l=Oe(Ks.current),l=ah(l).createElement(o),l[va]=t,l[za]=e,xa(l,o,e),ve(l),t.stateNode=l):t.memoizedState=iC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qe(t),e===null&&Ke&&(l=Oe(Ks.current),u=pe(),l=t.stateNode=sC(t.type,t.pendingProps,l,u,!1),zn||(u=XL(l,t.type,t.pendingProps,u),u!==null&&(oi(t,0).serverProps=u)),Sa=t,zo=!0,u=It,Zs(t.type)?(Wb=u,It=xo(l.firstChild)):It=u),ba(e,t,t.pendingProps.children,o),Gf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ke&&(d=pe(),l=Im(t.type,d.ancestorInfo),u=It,(m=!u)||(m=PR(u,t.type,t.pendingProps,zo),m!==null?(t.stateNode=m,zn||(d=XL(m,t.type,t.pendingProps,d),d!==null&&(oi(t,0).serverProps=d)),Sa=t,It=xo(m.firstChild),zo=!1,d=!0):d=!1,m=!d),m&&(l&&yf(t,u),Hs(t))),Qe(t),u=t.type,d=t.pendingProps,m=e!==null?e.memoizedProps:null,l=d.children,fy(u,d)?l=null:m!==null&&fy(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=og(e,t,Uk,null,null,o),td._currentValue=u),Gf(e,t),ba(e,t,l,o),t.child;case 6:return e===null&&Ke&&(o=t.pendingProps,e=pe(),l=e.ancestorInfo.current,o=l!=null?lf(o,l.tag,e.ancestorInfo.implicitRootScope):!0,e=It,(l=!e)||(l=BR(e,t.pendingProps,zo),l!==null?(t.stateNode=l,Sa=t,It=null,l=!0):l=!1,l=!l),l&&(o&&yf(t,e),Hs(t))),null;case 13:return OS(e,t,o);case 4:return G(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ci(t,null,l,o):ba(e,t,l,o),t.child;case 11:return wS(e,t,t.type,t.pendingProps,o);case 7:return ba(e,t,t.pendingProps,o),t.child;case 8:return ba(e,t,t.pendingProps.children,o),t.child;case 12:return t.flags|=4,t.flags|=2048,l=t.stateNode,l.effectDuration=-0,l.passiveEffectDuration=-0,ba(e,t,t.pendingProps.children,o),t.child;case 10:return l=t.type,u=t.pendingProps,d=u.value,"value"in u||ST||(ST=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Fs(t,l,d),ba(e,t,u.children,o),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,typeof l!=="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."),si(t),u=Dt(u),l=hb(l,u,void 0),t.flags|=1,ba(e,t,l,o),t.child;case 14:return MS(e,t,t.type,t.pendingProps,o);case 15:return IS(e,t,t.type,t.pendingProps,o);case 19:return BS(e,t,o);case 31:return Yk(e,t,o);case 22:return AS(e,t,o,t.pendingProps);case 24:return si(t),l=Dt(Qt),e===null?(u=Wm(),u===null&&(u=vt,d=Ym(),u.pooledCache=d,li(d),d!==null&&(u.pooledCacheLanes|=o),u=d),t.memoizedState={parent:l,cache:u},Qm(t),Fs(t,Qt,u)):((e.lanes&o)!==0&&(Km(e,t),Vu(t,null,null,o),qu()),u=e.memoizedState,d=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Fs(t,Qt,l)):(l=d.cache,Fs(t,Qt,l),l!==u.cache&&Gm(t,[Qt],o,!0))),ba(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 ns(e){e.flags|=4}function qg(e,t,o,l,u){if(t=(e.mode&hD)!==Ae)t=!1;if(t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(mL())e.flags|=8192;else throw Li=zh,mb}else e.flags&=-16777217}function NS(e,t){if(t.type!=="stylesheet"||(t.state.loading&Vo)!==Oi)e.flags&=-16777217;else if(e.flags|=16777216,!fC(t))if(mL())e.flags|=8192;else throw Li=zh,mb}function Xf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nr():536870912,e.lanes|=t,Ai|=t)}function $u(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 l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(t)if((e.mode&Ue)!==Ae){for(var{selfBaseDuration:u,child:d}=e;d!==null;)o|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,u+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=u}else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=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,l|=m.subtreeFlags,l|=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,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=o,t}function $k(e,t,o){var l=t.pendingProps;switch(Fm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Ct(t),null;case 3:if(o=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ts(Qt,t),ie(t),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),e===null||e.child===null)ur(t)?(Vm(),ns(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qm());return Ct(t),null;case 26:var{type:u,memoizedState:d}=t;return e===null?(ns(t),d!==null?(Ct(t),NS(t,d)):(Ct(t),qg(t,u,null,l,o))):d?d!==e.memoizedState?(ns(t),Ct(t),NS(t,d)):(Ct(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ns(t),Ct(t),qg(t,u,e,l,o)),null;case 27:if(je(t),o=Oe(Ks.current),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ns(t);else{if(!l){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 Ct(t),null}e=pe(),ur(t)?w0(t,e):(e=sC(u,l,o,e,!0),t.stateNode=e,ns(t))}return Ct(t),null;case 5:if(je(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ns(t);else{if(!l){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 Ct(t),null}var m=pe();if(ur(t))w0(t,m);else{switch(d=Oe(Ks.current),Im(u,m.ancestorInfo),m=m.context,d=ah(d),m){case su:d=d.createElementNS(kr,u);break;case cp:d=d.createElementNS(xh,u);break;default:switch(u){case"svg":d=d.createElementNS(kr,u);break;case"math":d=d.createElementNS(xh,u);break;case"script":d=d.createElement("div"),d.innerHTML="<script></script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is==="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is==="string"?d.createElement(u,{is:l.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]"||on.call(GT,u)||(GT[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[va]=t,d[za]=l;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(xa(d,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ns(t)}}return Ct(t),qg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,o),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ns(t);else{if(typeof l!=="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(Ks.current),o=pe(),ur(t)){if(e=t.stateNode,o=t.memoizedProps,u=!zn,l=null,d=Sa,d!==null)switch(d.tag){case 3:u&&(u=oC(e,o,l),u!==null&&(oi(t,0).serverProps=u));break;case 27:case 5:l=d.memoizedProps,u&&(u=oC(e,o,l),u!==null&&(oi(t,0).serverProps=u))}e[va]=t,e=e.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||qL(e.nodeValue,o)?!0:!1,e||Hs(t,!0)}else u=o.ancestorInfo.current,u!=null&&lf(l,u.tag,o.ancestorInfo.implicitRootScope),e=ah(e).createTextNode(l),e[va]=t,t.stateNode=e}return Ct(t),null;case 31:if(o=t.memoizedState,e===null||e.memoizedState!==null){if(l=ur(t),o!==null){if(e===null){if(!l)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[va]=t,Ct(t),(t.mode&Ue)!==Ae&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Vm(),ni(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,Ct(t),(t.mode&Ue)!==Ae&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=qm(),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 Ct(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=l,d=ur(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[va]=t,Ct(t),(t.mode&Ue)!==Ae&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration))}else Vm(),ni(),(t.flags&128)===0&&(u=t.memoizedState=null),t.flags|=4,Ct(t),(t.mode&Ue)!==Ae&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration));u=!1}else u=qm(),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&&Uu(t),t;return o=l!==null,e=e!==null&&e.memoizedState!==null,o&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==u&&(l.flags|=2048)),o!==e&&o&&(t.child.flags|=8192),Xf(t,t.updateQueue),Ct(t),(t.mode&Ue)!==Ae&&o&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ie(t),e===null&&sy(t.stateNode.containerInfo),Ct(t),null;case 10:return ts(t.type,t),Ct(t),null;case 19:if(Le(Gt,t),l=t.memoizedState,l===null)return Ct(t),null;if(u=(t.flags&128)!==0,d=l.rendering,d===null)if(u)$u(l,!1);else{if(Pt!==xs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Rf(e),d!==null){t.flags|=128,$u(l,!1),e=d.updateQueue,t.updateQueue=e,Xf(t,e),t.subtreeFlags=0,e=o;for(o=t.child;o!==null;)x0(o,e),o=o.sibling;return we(Gt,Gt.current&Xr|Nc,t),Ke&&es(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&fa()>Qh&&(t.flags|=128,u=!0,$u(l,!1),t.lanes=4194304)}else{if(!u)if(e=Rf(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Xf(t,e),$u(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!Ke)return Ct(t),null}else 2*fa()-l.renderingStartTime>Qh&&o!==536870912&&(t.flags|=128,u=!0,$u(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}if(l.tail!==null)return e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=fa(),e.sibling=null,o=Gt.current,o=u?o&Xr|Nc:o&Xr,we(Gt,o,t),Ke&&es(t,l.treeForkCount),e;return Ct(t),null;case 22:case 23:return yo(t),eg(t),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(o&536870912)!==0&&(t.flags&128)===0&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),o=t.updateQueue,o!==null&&Xf(t,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==o&&(t.flags|=2048),e!==null&&Le(vi,t),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ts(Qt,t),Ct(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 Wk(e,t){switch(Fm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Uu(t),t):null;case 3:return ts(Qt,t),ie(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.");ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Uu(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.");ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Uu(t),t):null;case 19:return Le(Gt,t),null;case 4:return ie(t),null;case 10:return ts(t.type,t),null;case 22:case 23:return yo(t),eg(t),e!==null&&Le(vi,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ue)!==Ae&&Uu(t),t):null;case 24:return ts(Qt,t),null;case 25:return null;default:return null}}function zS(e,t){switch(Fm(t),t.tag){case 3:ts(Qt,t),ie(t);break;case 26:case 27:case 5:je(t);break;case 4:ie(t);break;case 31:t.memoizedState!==null&&yo(t);break;case 13:yo(t);break;case 19:Le(Gt,t);break;case 10:ts(t.type,t);break;case 22:case 23:yo(t),eg(t),e!==null&&Le(vi,t);break;case 24:ts(Qt,t)}}function wn(e){return(e.mode&Ue)!==Ae}function US(e,t){wn(e)?(Tn(),Wu(t,e),Cn()):Wu(t,e)}function Vg(e,t,o){wn(e)?(Tn(),mr(o,e,t),Cn()):mr(o,e,t)}function Wu(e,t){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var u=l.next;o=u;do{if((o.tag&e)===e&&(l=void 0,(e&qa)!==Hh&&(au=!0),l=le(t,bD,o),(e&qa)!==Hh&&(au=!1),l!==void 0&&typeof l!=="function")){var d=void 0;d=(o.tag&wo)!==0?"useLayoutEffect":(o.tag&qa)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=l===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then==="function"?`
|
|
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),y=d.props!==i,d.props!==void 0&&y&&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),(y=d.state)&&(typeof y!=="object"||na(y))&&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.",q(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;y=dl(o,O),d.props=y;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),(y=fi||SS(t,o,y,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=y):(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,y=si,typeof P==="object"&&P!==null&&(y=_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!==y)&&LS(t,d,i,y),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,y)||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,y),typeof d.UNSAFE_componentWillUpdate==="function"&&d.UNSAFE_componentWillUpdate(i,N,y)),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=y,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(y=d,Xf(e,t),m=(t.flags&128)!==0,y||m){if(y=t.stateNode,or(t),m&&typeof o.getDerivedStateFromError!=="function")o=null,Fa=-1;else if(o=N1(y),t.mode&Da){St(!0);try{N1(y)}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=y.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.",q(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 y=u.children;if(u=u.fallback,d){Xs(t);var v=t.mode;return y=$f({mode:"hidden",children:y},v),u=ol(u,v,o,null),y.return=t,u.return=t,y.sibling=u,t.child=y,u=t.child,u.memoizedState=Ng(o),u.childLanes=zg(e,i,o),t.memoizedState=Ab,$u(null,u)}return Ys(t),Ug(t,y)}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),y=u.fallback,v=t.mode,u=$f({mode:"visible",children:u.children},v),y=ol(y,v,o,null),y.flags|=2,u.return=t,y.return=t,u.sibling=y,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){y=i.dgst;var P=i.msg;v=i.stck;var A=i.cstck}d=P,i=y,u=v,O=A,y=d,v=O,y=y?Error(y):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),y.stack=u||"",y.digest=i,i=v===void 0?null:v,u={value:y,source:null,stack:i},typeof i==="string"&&lb.set(y,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,Un=!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),y=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?y=es(O,y):(y=ol(y,v,o,null),y.flags|=2),y.return=t,u.return=t,u.sibling=y,t.child=u,$u(null,u),u=t.child,y=e.child.memoizedState,y===null?y=Ng(o):(v=y.cachePool,v!==null?(A=Zt._currentValue,v=v.parent!==A?{parent:A,pool:A}:v):v=E0(),y={baseLanes:y.baseLanes|o,cachePool:v}),u.memoizedState=y,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,y=jt.current;if((i=(y&zc)!==0)?(y=y&$r|zc,t.flags|=128):y&=$r,we(jt,y,t),y=u==null?"null":u,u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!LT[y])if(LT[y]=!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(y=d==null?"null":d,!Yh[y])if(d==null){if(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")Yh[y]=!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[y]=!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[y]=!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(y=0;y<m.length;y++)if(!V0(m[y],y))break e}else if(y=J(m),typeof y==="function"){if(y=y.call(m))for(var v=y.next(),L=0;!v.done;v=y.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 Wk(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,Wk(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,Un=!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),Un||(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=NR(u,t.type,t.pendingProps,Uo),m!==null?(t.stateNode=m,Un||(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,Fk,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=zR(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 $k(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&mD)!==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 Zk(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=!Un,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 Qk(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 In(e){return(e.mode&Ue)!==Ae}function FS(e,t){In(e)?(wn(),Zu(t,e),Tn()):Zu(t,e)}function Gg(e,t,o){In(e)?(wn(),gr(o,e,t),Tn()):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,vD,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"?`
|
|
141
141
|
|
|
142
142
|
It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
@@ -150,11 +150,11 @@ It looks like you wrote `+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: "+l,le(t,function(y,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",y,v)},d,m)}o=o.next}while(o!==u)}}catch(y){ut(t,t.return,y)}}function mr(e,t,o){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next;l=d;do{if((l.tag&e)===e){var m=l.inst,y=m.destroy;y!==void 0&&(m.destroy=void 0,(e&qa)!==Hh&&(au=!0),u=t,le(u,xD,u,o,y),(e&qa)!==Hh&&(au=!1))}l=l.next}while(l!==d)}}catch(v){ut(t,t.return,v)}}function HS(e,t){wn(e)?(Tn(),Wu(t,e),Cn()):Wu(t,e)}function jg(e,t,o){wn(e)?(Tn(),mr(o,e,t),Cn()):mr(o,e,t)}function FS(e){var t=e.updateQueue;if(t!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Qr||(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.",q(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.",q(e)||"instance"));try{le(e,V0,t,o)}catch(l){ut(e,e.return,l)}}}function Zk(e,t,o){return e.getSnapshotBeforeUpdate(t,o)}function Qk(e,t){var{memoizedProps:o,memoizedState:l}=t;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qr||(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.",q(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.",q(e)||"instance"));try{var u=ci(e.type,o),d=le(e,Zk,t,u,l);o=LT,d!==void 0||o.has(e.type)||(o.add(e.type),le(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",q(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(m){ut(e,e.return,m)}}function qS(e,t,o){o.props=ci(e.type,e.memoizedProps),o.state=e.memoizedState,wn(e)?(Tn(),le(e,F1,e,t,o),Cn()):le(e,F1,e,t,o)}function Kk(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(wn(e))try{Tn(),e.refCleanup=t(o)}finally{Cn()}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().",q(e)),t.current=o}}function Zu(e,t){try{le(e,Kk,e)}catch(o){ut(e,t,o)}}function Mn(e,t){var{ref:o,refCleanup:l}=e;if(o!==null)if(typeof l==="function")try{if(wn(e))try{Tn(),le(e,l)}finally{Cn(e)}else le(e,l)}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(wn(e))try{Tn(),le(e,o,null)}finally{Cn(e)}else le(e,o,null)}catch(u){ut(e,t,u)}else o.current=null}function VS(e,t,o,l){var u=e.memoizedProps,d=u.id,m=u.onCommit;u=u.onRender,t=t===null?"mount":"update",Oh&&(t="nested-update"),typeof u==="function"&&u(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof m==="function"&&m(d,t,l,o)}function Jk(e,t,o,l){var u=e.memoizedProps;e=u.id,u=u.onPostCommit,t=t===null?"mount":"update",Oh&&(t="nested-update"),typeof u==="function"&&u(e,t,l,o)}function jS(e){var{type:t,memoizedProps:o,stateNode:l}=e;try{le(e,CR,l,t,o,e)}catch(u){ut(e,e.return,u)}}function Gg(e,t,o){try{le(e,wR,e.stateNode,e.type,o,t,e)}catch(l){ut(e,e.return,l)}}function GS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zs(e.type)||e.tag===4}function Yg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GS(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&&Zs(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 Xg(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(KL(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,t)):(KL(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=Kn));else if(l!==4&&(l===27&&Zs(e.type)&&(o=e.stateNode,t=null),e=e.child,e!==null))for(Xg(e,t,o),e=e.sibling;e!==null;)Xg(e,t,o),e=e.sibling}function $f(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(l!==4&&(l===27&&Zs(e.type)&&(o=e.stateNode),e=e.child,e!==null))for($f(e,t,o),e=e.sibling;e!==null;)$f(e,t,o),e=e.sibling}function eR(e){for(var t,o=e.return;o!==null;){if(GS(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=Yg(e),$f(e,o,t);break;case 5:o=t.stateNode,t.flags&32&&(QL(o),t.flags&=-33),t=Yg(e),$f(e,t,o);break;case 3:case 4:t=t.stateNode.containerInfo,o=Yg(e),Xg(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 YS(e){var{stateNode:t,memoizedProps:o}=e;try{le(e,FR,e.type,o,t,e)}catch(l){ut(e,e.return,l)}}function XS(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 tR(e,t){if(e=e.containerInfo,Yb=pp,e=u0(e),Rm(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var{anchorOffset:u,focusNode:d}=l;l=l.focusOffset;try{o.nodeType,d.nodeType}catch(te){o=null;break e}var m=0,y=-1,v=-1,L=0,O=0,P=e,k=null;t:for(;;){for(var N;;){if(P!==o||u!==0&&P.nodeType!==3||(y=m+u),P!==d||l!==0&&P.nodeType!==3||(v=m+l),P.nodeType===3&&(m+=P.nodeValue.length),(N=P.firstChild)===null)break;k=P,P=N}for(;;){if(P===e)break t;if(k===o&&++L===u&&(y=m),k===d&&++O===l&&(v=m),(N=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=N}o=y===-1||v===-1?null:{start:y,end:v}}else o=null}o=o||{start:0,end:0}}else o=null;Xb={focusedElem:e,selectionRange:o},pp=!1;for(pa=t;pa!==null;)if(t=pa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pa=e;else for(;pa!==null;){switch(e=t=pa,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&&Qk(e,o);break;case 3:if((u&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)hy(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hy(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,pa=e;break}pa=t.return}}function $S(e,t,o){var l=mo(),u=xn(),d=Sn(),m=Ln(),y=o.flags;switch(o.tag){case 0:case 11:case 15:In(e,o),y&4&&US(o,wo|Fo);break;case 1:if(In(e,o),y&4)if(e=o.stateNode,t===null)o.type.defaultProps||"ref"in o.memoizedProps||Qr||(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.",q(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.",q(o)||"instance")),wn(o)?(Tn(),le(o,pb,o,e),Cn()):le(o,pb,o,e);else{var v=ci(o.type,t.memoizedProps);t=t.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Qr||(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.",q(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.",q(o)||"instance")),wn(o)?(Tn(),le(o,z1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate),Cn()):le(o,z1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}y&64&&FS(o),y&512&&Zu(o,o.return);break;case 3:if(t=as(),In(e,o),y&64&&(y=o.updateQueue,y!==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{le(o,V0,y,v)}catch(O){ut(o,o.return,O)}}e.effectDuration+=Sf(t);break;case 27:t===null&&y&4&&YS(o);case 26:case 5:if(In(e,o),t===null){if(y&4)jS(o);else if(y&64){e=o.type,t=o.memoizedProps,v=o.stateNode;try{le(o,TR,v,e,t,o)}catch(O){ut(o,o.return,O)}}}y&512&&Zu(o,o.return);break;case 12:if(y&4){y=as(),In(e,o),e=o.stateNode,e.effectDuration+=zu(y);try{le(o,VS,o,t,ll,e.effectDuration)}catch(O){ut(o,o.return,O)}}else In(e,o);break;case 31:In(e,o),y&4&&QS(e,o);break;case 13:In(e,o),y&4&&KS(e,o),y&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(y=cR.bind(null,o),NR(e,y))));break;case 22:if(y=o.memoizedState!==null||bs,!y){t=t!==null&&t.memoizedState!==null||ta,v=bs;var L=ta;bs=y,(ta=t)&&!L?(An(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&df(o,Se,Ce)):In(e,o),bs=v,ta=L}break;case 30:break;default:In(e,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&((Ut||0.05<Ot)&&yn(o,Se,Ce,Ot,Et),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&0.05<Ce-Se&&(XS(o.return.alternate,o.return)||gn(o,Se,Ce,"Mount"))),go(l),vn(u),Et=d,Ut=m}function WS(e){var t=e.alternate;t!==null&&(e.alternate=null,WS(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 ss(e,t,o){for(o=o.child;o!==null;)ZS(e,t,o),o=o.sibling}function ZS(e,t,o){if(Ra&&typeof Ra.onCommitFiberUnmount==="function")try{Ra.onCommitFiberUnmount(Ir,o)}catch(L){On||(On=!0,console.error("React instrumentation encountered an error: %o",L))}var l=mo(),u=xn(),d=Sn(),m=Ln();switch(o.tag){case 26:ta||Mn(o,t),ss(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:ta||Mn(o,t);var y=aa,v=Wa;Zs(o.type)&&(aa=o.stateNode,Wa=!1),ss(e,t,o),le(o,sc,o.stateNode),aa=y,Wa=v;break;case 5:ta||Mn(o,t);case 6:if(y=aa,v=Wa,aa=null,ss(e,t,o),aa=y,Wa=v,aa!==null)if(Wa)try{le(o,AR,aa,o.stateNode)}catch(L){ut(o,t,L)}else try{le(o,IR,aa,o.stateNode)}catch(L){ut(o,t,L)}break;case 18:aa!==null&&(Wa?(e=aa,JL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Cr(e)):JL(aa,o.stateNode));break;case 4:y=aa,v=Wa,aa=o.stateNode.containerInfo,Wa=!0,ss(e,t,o),aa=y,Wa=v;break;case 0:case 11:case 14:case 15:mr(qa,o,t),ta||Vg(o,t,wo),ss(e,t,o);break;case 1:ta||(Mn(o,t),y=o.stateNode,typeof y.componentWillUnmount==="function"&&qS(o,t,y)),ss(e,t,o);break;case 21:ss(e,t,o);break;case 22:ta=(y=ta)||o.memoizedState!==null,ss(e,t,o),ta=y;break;default:ss(e,t,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(o,Se,Ce,Ot,Et),go(l),vn(u),Et=d,Ut=m}function QS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{le(t,UR,e)}catch(o){ut(t,t.return,o)}}}function KS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{le(t,HR,e)}catch(o){ut(t,t.return,o)}}function aR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new CT),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new CT),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Wf(e,t){var o=aR(e);t.forEach(function(l){if(!o.has(l)){if(o.add(l),Pn)if(Kr!==null&&Jr!==null)ec(Jr,Kr);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var u=dR.bind(null,e,l);l.then(u,u)}})}function Xa(e,t){var o=t.deletions;if(o!==null)for(var l=0;l<o.length;l++){var u=e,d=t,m=o[l],y=mo(),v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Zs(v.type)){aa=v.stateNode,Wa=!1;break e}break;case 5:aa=v.stateNode,Wa=!1;break e;case 3:case 4:aa=v.stateNode.containerInfo,Wa=!0;break e}v=v.return}if(aa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ZS(u,d,m),aa=null,Wa=!1,(m.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&gn(m,Se,Ce,"Unmount"),go(y),u=m,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)JS(t,e),t=t.sibling}function JS(e,t){var o=mo(),l=xn(),u=Sn(),d=Ln(),m=e.alternate,y=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xa(t,e),$a(e),y&4&&(mr(qa|Fo,e,e.return),Wu(qa|Fo,e),Vg(e,e.return,wo|Fo));break;case 1:if(Xa(t,e),$a(e),y&512&&(ta||m===null||Mn(m,m.return)),y&64&&bs&&(y=e.updateQueue,y!==null&&(m=y.callbacks,m!==null))){var v=y.shared.hiddenCallbacks;y.shared.hiddenCallbacks=v===null?m:v.concat(m)}break;case 26:if(v=un,Xa(t,e),$a(e),y&512&&(ta||m===null||Mn(m,m.return)),y&4){var L=m!==null?m.memoizedState:null;if(y=e.memoizedState,m===null)if(y===null)if(e.stateNode===null){e:{y=e.type,m=e.memoizedProps,v=v.ownerDocument||v;t:switch(y){case"title":if(L=v.getElementsByTagName("title")[0],!L||L[fc]||L[va]||L.namespaceURI===kr||L.hasAttribute("itemprop"))L=v.createElement(y),v.head.insertBefore(L,v.querySelector("head > title"));xa(L,y,m),L[va]=e,ve(L),y=L;break e;case"link":var O=cC("link","href",v).get(y+(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(y),xa(L,y,m),v.head.appendChild(L);break;case"meta":if(O=cC("meta","content",v).get(y+(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(y),xa(L,y,m),v.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+y+'". This is a bug in React.')}L[va]=e,ve(L),y=L}e.stateNode=y}else dC(v,e.type,e.stateNode);else e.stateNode=uC(v,y,e.memoizedProps);else L!==y?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,y===null?dC(v,e.type,e.stateNode):uC(v,y,e.memoizedProps)):y===null&&e.stateNode!==null&&Gg(e,e.memoizedProps,m.memoizedProps)}break;case 27:Xa(t,e),$a(e),y&512&&(ta||m===null||Mn(m,m.return)),m!==null&&y&4&&Gg(e,e.memoizedProps,m.memoizedProps);break;case 5:if(Xa(t,e),$a(e),y&512&&(ta||m===null||Mn(m,m.return)),e.flags&32){v=e.stateNode;try{le(e,QL,v)}catch(se){ut(e,e.return,se)}}y&4&&e.stateNode!=null&&(v=e.memoizedProps,Gg(e,v,m!==null?m.memoizedProps:v)),y&1024&&(Ib=!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),y&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.");y=e.memoizedProps,m=m!==null?m.memoizedProps:y,v=e.stateNode;try{le(e,MR,v,m,y)}catch(se){ut(e,e.return,se)}}break;case 3:if(v=as(),dp=null,L=un,un=oh(t.containerInfo),Xa(t,e),un=L,$a(e),y&4&&m!==null&&m.memoizedState.isDehydrated)try{le(e,zR,t.containerInfo)}catch(se){ut(e,e.return,se)}Ib&&(Ib=!1,eL(e)),t.effectDuration+=Sf(v);break;case 4:y=un,un=oh(e.stateNode.containerInfo),Xa(t,e),$a(e),un=y;break;case 12:y=as(),Xa(t,e),$a(e),e.stateNode.effectDuration+=zu(y);break;case 31:Xa(t,e),$a(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Wf(e,y)));break;case 13:Xa(t,e),$a(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(Zh=fa()),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Wf(e,y)));break;case 22:v=e.memoizedState!==null;var k=m!==null&&m.memoizedState!==null,N=bs,te=ta;if(bs=N||v,ta=te||k,Xa(t,e),ta=te,bs=N,k&&!v&&!N&&!te&&(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&df(e,Se,Ce),$a(e),y&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~Sc:t._visibility|Sc,!v||m===null||k||bs||ta||(di(e),(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&gn(e,Se,Ce,"Disconnect")),m=null,t=e;;){if(t.tag===5||t.tag===26){if(m===null){k=m=t;try{L=k.stateNode,v?le(k,RR,L):le(k,ER,k.stateNode,k.memoizedProps)}catch(se){ut(k,k.return,se)}}}else if(t.tag===6){if(m===null){k=t;try{O=k.stateNode,v?le(k,_R,O):le(k,OR,O,k.memoizedProps)}catch(se){ut(k,k.return,se)}}}else if(t.tag===18){if(m===null){k=t;try{P=k.stateNode,v?le(k,kR,P):le(k,DR,k.stateNode)}catch(se){ut(k,k.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}y&4&&(y=e.updateQueue,y!==null&&(m=y.retryQueue,m!==null&&(y.retryQueue=null,Wf(e,m))));break;case 19:Xa(t,e),$a(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Wf(e,y)));break;case 30:break;case 21:break;default:Xa(t,e),$a(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&((Ut||0.05<Ot)&&yn(e,Se,Ce,Ot,Et),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ce-Se&&(XS(e.return.alternate,e.return)||gn(e,Se,Ce,"Mount"))),go(o),vn(l),Et=u,Ut=d}function $a(e){var t=e.flags;if(t&2){try{le(e,eR,e)}catch(o){ut(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 In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$S(e,t.alternate,t),t=t.sibling}function tL(e){var t=mo(),o=xn(),l=Sn(),u=Ln();switch(e.tag){case 0:case 11:case 14:case 15:Vg(e,e.return,wo),di(e);break;case 1:Mn(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount==="function"&&qS(e,e.return,d),di(e);break;case 27:le(e,sc,e.stateNode);case 26:case 5:Mn(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(e,Se,Ce,Ot,Et),go(t),vn(o),Et=l,Ut=u}function di(e){for(e=e.child;e!==null;)tL(e),e=e.sibling}function aL(e,t,o,l){var u=mo(),d=xn(),m=Sn(),y=Ln(),v=o.flags;switch(o.tag){case 0:case 11:case 15:An(e,o,l),US(o,wo);break;case 1:if(An(e,o,l),t=o.stateNode,typeof t.componentDidMount==="function"&&le(o,pb,o,t),t=o.updateQueue,t!==null){e=o.stateNode;try{le(o,zk,t,e)}catch(L){ut(o,o.return,L)}}l&&v&64&&FS(o),Zu(o,o.return);break;case 27:YS(o);case 26:case 5:An(e,o,l),l&&t===null&&v&4&&jS(o),Zu(o,o.return);break;case 12:if(l&&v&4){v=as(),An(e,o,l),l=o.stateNode,l.effectDuration+=zu(v);try{le(o,VS,o,t,ll,l.effectDuration)}catch(L){ut(o,o.return,L)}}else An(e,o,l);break;case 31:An(e,o,l),l&&v&4&&QS(e,o);break;case 13:An(e,o,l),l&&v&4&&KS(e,o);break;case 22:o.memoizedState===null&&An(e,o,l),Zu(o,o.return);break;case 30:break;default:An(e,o,l)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(o,Se,Ce,Ot,Et),go(u),vn(d),Et=m,Ut=y}function An(e,t,o){o=o&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)aL(e,t.alternate,t,o),t=t.sibling}function $g(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&&li(e),o!=null&&Nu(o))}function Wg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(li(t),e!=null&&Nu(e))}function an(e,t,o,l,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;oL(e,t,o,l,d!==null?d.actualStartTime:u),t=d}}function oL(e,t,o,l,u){var d=mo(),m=xn(),y=Sn(),v=Ln(),L=al,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ue)!==Ae&&0<t.actualStartTime&&(t.flags&1)!==0&&ff(t,t.actualStartTime,u,la,o),an(e,t,o,l,u),O&2048&&HS(t,Va|Fo);break;case 1:(t.mode&Ue)!==Ae&&0<t.actualStartTime&&((t.flags&128)!==0?Dm(t,t.actualStartTime,u,[]):(t.flags&1)!==0&&ff(t,t.actualStartTime,u,la,o)),an(e,t,o,l,u);break;case 3:var P=as(),k=la;la=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,an(e,t,o,l,u),la=k,O&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),l=t.memoizedState.cache,l!==o&&(li(l),o!=null&&Nu(o))),e.passiveEffectDuration+=Sf(P);break;case 12:if(O&2048){O=as(),an(e,t,o,l,u),e=t.stateNode,e.passiveEffectDuration+=zu(O);try{le(t,Jk,t,t.alternate,ll,e.passiveEffectDuration)}catch(N){ut(t,t.return,N)}}else an(e,t,o,l,u);break;case 31:O=la,P=t.alternate!==null?t.alternate.memoizedState:null,k=t.memoizedState,P!==null&&k===null?(k=t.deletions,k!==null&&0<k.length&&k[0].tag===18?(la=!1,P=P.hydrationErrors,P!==null&&Dm(t,t.actualStartTime,u,P)):la=!0):la=!1,an(e,t,o,l,u),la=O;break;case 13:O=la,P=t.alternate!==null?t.alternate.memoizedState:null,k=t.memoizedState,P===null||P.dehydrated===null||k!==null&&k.dehydrated!==null?la=!1:(k=t.deletions,k!==null&&0<k.length&&k[0].tag===18?(la=!1,P=P.hydrationErrors,P!==null&&Dm(t,t.actualStartTime,u,P)):la=!0),an(e,t,o,l,u),la=O;break;case 23:break;case 22:k=t.stateNode,P=t.alternate,t.memoizedState!==null?k._visibility&rs?an(e,t,o,l,u):Qu(e,t,o,l,u):k._visibility&rs?an(e,t,o,l,u):(k._visibility|=rs,gr(e,t,o,l,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),u),(t.mode&Ue)===Ae||la||(e=t.actualStartTime,0<=e&&0.05<u-e&&df(t,e,u),0<=Se&&0<=Ce&&0.05<Ce-Se&&df(t,Se,Ce))),O&2048&&$g(P,t);break;case 24:an(e,t,o,l,u),O&2048&&Wg(t.alternate,t);break;default:an(e,t,o,l,u)}if((t.mode&Ue)!==Ae){if(e=!la&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)o=t.actualStartTime,0<=o&&0.05<u-o&&gn(t,o,u,"Mount");0<=Se&&0<=Ce&&((Ut||0.05<Ot)&&yn(t,Se,Ce,Ot,Et),e&&0.05<Ce-Se&&gn(t,Se,Ce,"Mount"))}go(d),vn(m),Et=y,Ut=v,al=L}function gr(e,t,o,l,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;nL(e,t,o,l,u,m!==null?m.actualStartTime:d),t=m}}function nL(e,t,o,l,u,d){var m=mo(),y=xn(),v=Sn(),L=Ln(),O=al;u&&(t.mode&Ue)!==Ae&&0<t.actualStartTime&&(t.flags&1)!==0&&ff(t,t.actualStartTime,d,la,o);var P=t.flags;switch(t.tag){case 0:case 11:case 15:gr(e,t,o,l,u,d),HS(t,Va);break;case 23:break;case 22:var k=t.stateNode;t.memoizedState!==null?k._visibility&rs?gr(e,t,o,l,u,d):Qu(e,t,o,l,d):(k._visibility|=rs,gr(e,t,o,l,u,d)),u&&P&2048&&$g(t.alternate,t);break;case 24:gr(e,t,o,l,u,d),u&&P&2048&&Wg(t.alternate,t);break;default:gr(e,t,o,l,u,d)}(t.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(t,Se,Ce,Ot,Et),go(m),vn(y),Et=v,Ut=L,al=O}function Qu(e,t,o,l,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,y=o,v=l,L=t!==null?t.actualStartTime:u,O=al;(d.mode&Ue)!==Ae&&0<d.actualStartTime&&(d.flags&1)!==0&&ff(d,d.actualStartTime,L,la,y);var P=d.flags;switch(d.tag){case 22:Qu(m,d,y,v,L),P&2048&&$g(d.alternate,d);break;case 24:Qu(m,d,y,v,L),P&2048&&Wg(d.alternate,d);break;default:Qu(m,d,y,v,L)}al=O,d=t}}function yr(e,t,o){if(e.subtreeFlags&Fc)for(e=e.child;e!==null;)sL(e,t,o),e=e.sibling}function sL(e,t,o){switch(e.tag){case 26:yr(e,t,o),e.flags&Fc&&e.memoizedState!==null&&jR(o,un,e.memoizedState,e.memoizedProps);break;case 5:yr(e,t,o);break;case 3:case 4:var l=un;un=oh(e.stateNode.containerInfo),yr(e,t,o),un=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Fc,Fc=16777216,yr(e,t,o),Fc=l):yr(e,t,o));break;default:yr(e,t,o)}}function lL(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 Ku(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var l=t[o],u=mo();pa=l,uL(l,e),(l.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&gn(l,Se,Ce,"Unmount"),go(u)}lL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)iL(e),e=e.sibling}function iL(e){var t=mo(),o=xn(),l=Sn(),u=Ln();switch(e.tag){case 0:case 11:case 15:Ku(e),e.flags&2048&&jg(e,e.return,Va|Fo);break;case 3:var d=as();Ku(e),e.stateNode.passiveEffectDuration+=Sf(d);break;case 12:d=as(),Ku(e),e.stateNode.passiveEffectDuration+=zu(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&rs&&(e.return===null||e.return.tag!==13)?(d._visibility&=~rs,Zf(e),(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&gn(e,Se,Ce,"Disconnect")):Ku(e);break;default:Ku(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(e,Se,Ce,Ot,Et),go(t),vn(o),Ut=u,Et=l}function Zf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var l=t[o],u=mo();pa=l,uL(l,e),(l.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&gn(l,Se,Ce,"Unmount"),go(u)}lL(e)}for(e=e.child;e!==null;)rL(e),e=e.sibling}function rL(e){var t=mo(),o=xn(),l=Sn(),u=Ln();switch(e.tag){case 0:case 11:case 15:jg(e,e.return,Va),Zf(e);break;case 22:var d=e.stateNode;d._visibility&rs&&(d._visibility&=~rs,Zf(e));break;default:Zf(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(e,Se,Ce,Ot,Et),go(t),vn(o),Ut=u,Et=l}function uL(e,t){for(;pa!==null;){var o=pa,l=o,u=t,d=mo(),m=xn(),y=Sn(),v=Ln();switch(l.tag){case 0:case 11:case 15:jg(l,u,Va);break;case 23:case 22:l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool,u!=null&&li(u));break;case 24:Nu(l.memoizedState.cache)}if((l.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(Ut||0.05<Ot)&&yn(l,Se,Ce,Ot,Et),go(d),vn(m),Ut=v,Et=y,l=o.child,l!==null)l.return=o,pa=l;else e:for(o=e;pa!==null;){if(l=pa,d=l.sibling,m=l.return,WS(l),l===o){pa=null;break e}if(d!==null){d.return=m,pa=d;break e}pa=m}}}function oR(){TD.forEach(function(e){return e()})}function cL(){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)!==ma&&Fe!==0)return Fe&-Fe;var t=H.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),oy()):B()}function dL(){if(Qa===0)if((Fe&536870912)===0||Ke){var e=mh;mh<<=1,(mh&3932160)===0&&(mh=262144),Qa=e}else Qa=536870912;return e=To.current,e!==null&&(e.flags|=32),Qa}function zt(e,t,o){if(au&&console.error("useInsertionEffect must not schedule updates."),zb&&(ep=!0),e===vt&&(ht===Mi||ht===Ii)||e.cancelPendingCommit!==null)xr(e,0),$s(e,Fe,Qa,!1);if(Bs(e,o),(ot&ia)!==ma&&e===vt){if(En)switch(t.tag){case 0:case 11:case 15:e=qe&&q(qe)||"Unknown",zT.has(e)||(zT.add(e),t=q(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:NT||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),NT=!0)}}else Pn&&Mu(e,t,o),hR(t),e===vt&&((ot&ia)===ma&&(ml|=o),Pt===fl&&$s(e,Fe,Qa,!1)),kn(e)}function fL(e,t,o){if((ot&(ia|Mo))!==ma)throw Error("Should not already be working.");if(Fe!==0&&qe!==null){var l=qe,u=fa();switch(R1){case jc:case Mi:var d=Ic;Mt&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Suspended",d,u,Eo,void 0,"primary-light")):console.timeStamp("Suspended",d,u,Eo,void 0,"primary-light"));break;case Ii:d=Ic,Mt&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Action",d,u,Eo,void 0,"primary-light")):console.timeStamp("Action",d,u,Eo,void 0,"primary-light"));break;default:Mt&&(l=u-Ic,3>l||console.timeStamp("Blocked",Ic,u,Eo,void 0,5>l?"primary-light":10>l?"primary":100>l?"primary-dark":"error"))}}d=(o=!o&&(t&127)===0&&(t&e.expiredLanes)===0||Xl(e,t))?sR(e,t):Qg(e,t,!0);var m=o;do{if(d===xs){eu&&!o&&$s(e,t,0,!1),t=ht,Ic=Kt(),R1=t;break}else{if(l=fa(),u=e.current.alternate,m&&!nR(u)){ho(t),u=ha,d=l,!Mt||d<=u||(jt?jt.run(console.timeStamp.bind(console,"Teared Render",u,d,Ze,$e,"error")):console.timeStamp("Teared Render",u,d,Ze,$e,"error")),fi(t,l),d=Qg(e,t,!1),m=!1;continue}if(d===wi){if(m=t,e.errorRecoveryDisabledLanes&m)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){ho(t),Em(ha,l,t,jt),fi(t,l),t=y;e:{l=e,d=m,m=Yc;var v=l.current.memoizedState.isDehydrated;if(v&&(xr(l,y).flags|=256),y=Qg(l,y,!1),y!==wi){if(Rb&&!v){l.errorRecoveryDisabledLanes|=d,ml|=d,d=fl;break e}l=ja,ja=m,l!==null&&(ja===null?ja=l:ja.push.apply(ja,l))}d=y}if(m=!1,d!==wi)continue;else l=fa()}}if(d===Vc){ho(t),Em(ha,l,t,jt),fi(t,l),xr(e,0),$s(e,t,0,!0);break}e:{switch(o=e,d){case xs:case Vc:throw Error("Root did not complete. This is a bug in React.");case fl:if((t&4194048)!==t)break;case Yh:ho(t),f0(ha,l,t,jt),fi(t,l),u=t,(u&127)!==0?_h=l:(u&4194048)!==0&&(Dh=l),$s(o,t,Qa,!hl);break e;case wi:ja=null;break;case Gh:case TT:break;default:throw Error("Unknown root exit status.")}if(H.actQueue!==null)Kg(o,u,t,ja,Xc,Wh,Qa,ml,Ai,d,null,null,ha,l);else{if((t&62914560)===t&&(m=Zh+IT-fa(),10<m)){if($s(o,t,Qa,!hl),Yl(o,0,!0)!==0)break e;cn=t,o.timeoutHandle=YT(hL.bind(null,o,u,ja,Xc,Wh,t,Qa,ml,Ai,hl,d,"Throttled",ha,l),m);break e}hL(o,u,ja,Xc,Wh,t,Qa,ml,Ai,hl,d,null,ha,l)}}}break}while(1);kn(e)}function hL(e,t,o,l,u,d,m,y,v,L,O,P,k,N){e.timeoutHandle=Ei;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:Kn},sL(t,d,se),te=(d&62914560)===d?Zh-fa():(d&4194048)===d?MT-fa():0,te=GR(se,te),te!==null){cn=d,e.cancelPendingCommit=te(Kg.bind(null,e,t,d,o,l,u,m,y,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,k,N)),$s(e,d,m,!L);return}}Kg(e,t,d,o,l,u,m,y,v,O,se,P,k,N)}function nR(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 l=0;l<o.length;l++){var u=o[l],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 $s(e,t,o,l){t&=~_b,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var d=31-Na(u),m=1<<d;l[d]=-1,u&=~m}o!==0&&$l(e,o,t)}function br(){return(ot&(ia|Mo))===ma?(tc(0,!1),!1):!0}function Zg(){if(qe!==null){if(ht===Za)var e=qe.return;else e=qe,bf(),ig(e),Gr=null,Bc=0,e=qe;for(;e!==null;)zS(e.alternate,e),e=e.return;qe=null}}function fi(e,t){(e&127)!==0&&(il=t),(e&4194048)!==0&&(Hn=t),(e&62914560)!==0&&(A1=t),(e&2080374784)!==0&&(k1=t)}function xr(e,t){Mt&&(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=ha;if(ha=Kt(),Fe!==0&&0<o){if(ho(Fe),Pt===Gh||Pt===fl)f0(o,ha,t,jt);else{var l=ha,u=jt;if(Mt&&!(l<=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,l,Ze,$e,d)):console.timeStamp(m,o,l,Ze,$e,d)}}fi(Fe,ha)}if(o=jt,jt=null,(t&127)!==0){jt=Tc,u=0<=Un&&Un<il?il:Un,l=0<=yi&&yi<il?il:yi,d=0<=l?l:0<=u?u:ha,0<=_h?(ho(2),h0(_h,d,t,o)):(Eh&127)!==0&&(ho(2),Pu(il,d,ps)),o=u;var y=l,v=wc,L=0<qr,O=rl===Cc,P=rl===Rh;if(u=ha,l=Tc,d=ub,m=cb,Mt){if(Ze="Blocking",0<o?o>u&&(o=u):o=u,0<y?y>o&&(y=o):y=o,v!==null&&o>y){var k=L?"secondary-light":"warning";l?l.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+v,y,o,Ze,$e,k)):console.timeStamp(L?"Consecutive":"Event: "+v,y,o,Ze,$e,k)}u>o&&(y=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:y}}},l?l.run(performance.measure.bind(performance,O,o)):performance.measure(O,o))}Un=-1.1,rl=0,cb=ub=null,_h=-1.1,qr=yi,yi=-1.1,il=Kt()}if((t&4194048)!==0&&(jt=Mc,u=0<=hs&&hs<Hn?Hn:hs,o=0<=Uo&&Uo<Hn?Hn:Uo,l=0<=ul&&ul<Hn?Hn:ul,d=0<=l?l:0<=o?o:ha,0<=Dh?(ho(256),h0(Dh,d,t,jt)):(Eh&4194048)!==0&&(ho(256),Pu(Hn,d,ps)),P=l,y=bi,v=0<cl,L=db===Rh,d=ha,l=Mc,m=M1,O=I1,Mt&&(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&&y!==null&&(k=v?"secondary-light":"warning",l?l.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+y,P,u,Ze,$e,k)):console.timeStamp(v?"Consecutive":"Event: "+y,P,u,Ze,$e,k)),o>u&&(l?l.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"}}},l?l.run(performance.measure.bind(performance,u,o)):performance.measure(u,o))),Uo=hs=-1.1,db=0,Dh=-1.1,cl=ul,ul=-1.1,Hn=Kt()),(t&62914560)!==0&&(Eh&62914560)!==0&&(ho(4194304),Pu(A1,ha,ps)),(t&2080374784)!==0&&(Eh&2080374784)!==0&&(ho(268435456),Pu(k1,ha,ps)),o=e.timeoutHandle,o!==Ei&&(e.timeoutHandle=Ei,ND(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),cn=0,Zg(),vt=e,qe=o=Jn(e.current,null),Fe=t,ht=Za,Io=null,hl=!1,eu=Xl(e,t),Rb=!1,Pt=xs,Ai=Qa=_b=ml=pl=0,ja=Yc=null,Wh=!1,(t&8)!==0&&(t|=t&32),l=e.entangledLanes,l!==0)for(e=e.entanglements,l&=t;0<l;)u=31-Na(l),d=1<<u,t|=e[u],l&=~d;return qn=t,hf(),e=v1(),1000<e-x1&&(H.recentlyCreatedOwnerStacks=0,x1=e),ln.discardPendingWarnings(),o}function pL(e,t){ke=null,H.H=Hc,H.getCurrentStack=null,En=!1,So=null,t===jr||t===Nh?(t=P0(),ht=jc):t===mb?(t=P0(),ht=wT):ht=t===wb?kb:t!==null&&typeof t==="object"&&typeof t.then==="function"?Gc:Xh,Io=t;var o=qe;o===null?(Pt=Vc,Vf(e,po(t,e.current))):o.mode&Ue&&$m(o)}function mL(){var e=To.current;return e===null?!0:(Fe&4194048)===Fe?Ho===null?!0:!1:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===Ho:!1}function gL(){var e=H.H;return H.H=Hc,e===null?Hc:e}function yL(){var e=H.A;return H.A=CD,e}function Qf(e){jt===null&&(jt=e._debugTask==null?null:e._debugTask)}function Kf(){Pt=fl,hl||(Fe&4194048)!==Fe&&To.current!==null||(eu=!0),(pl&134217727)===0&&(ml&134217727)===0||vt===null||$s(vt,Fe,Qa,!1)}function Qg(e,t,o){var l=ot;ot|=ia;var u=gL(),d=yL();if(vt!==e||Fe!==t){if(Pn){var m=e.memoizedUpdaters;0<m.size&&(ec(e,Fe),m.clear()),Ns(e,t)}Xc=null,xr(e,t)}t=!1,m=Pt;e:do try{if(ht!==Za&&qe!==null){var y=qe,v=Io;switch(ht){case kb:Zg(),m=Yh;break e;case jc:case Mi:case Ii:case Gc:To.current===null&&(t=!0);var L=ht;if(ht=Za,Io=null,vr(e,y,v,L),o&&eu){m=xs;break e}break;default:L=ht,ht=Za,Io=null,vr(e,y,v,L)}}bL(),m=Pt;break}catch(O){pL(e,O)}while(1);return t&&e.shellSuspendCounter++,bf(),ot=l,H.H=u,H.A=d,qe===null&&(vt=null,Fe=0,hf()),m}function bL(){for(;qe!==null;)xL(qe)}function sR(e,t){var o=ot;ot|=ia;var l=gL(),u=yL();if(vt!==e||Fe!==t){if(Pn){var d=e.memoizedUpdaters;0<d.size&&(ec(e,Fe),d.clear()),Ns(e,t)}Xc=null,Qh=fa()+AT,xr(e,t)}else eu=Xl(e,t);e:do try{if(ht!==Za&&qe!==null)t:switch(t=qe,d=Io,ht){case Xh:ht=Za,Io=null,vr(e,t,d,Xh);break;case Mi:case Ii:if(E0(d)){ht=Za,Io=null,vL(t);break}t=function(){ht!==Mi&&ht!==Ii||vt!==e||(ht=$h),kn(e)},d.then(t,t);break e;case jc:ht=$h;break e;case wT:ht=Ab;break e;case $h:E0(d)?(ht=Za,Io=null,vL(t)):(ht=Za,Io=null,vr(e,t,d,$h));break;case Ab:var m=null;switch(qe.tag){case 26:m=qe.memoizedState;case 5:case 27:var y=qe;if(m?fC(m):y.stateNode.complete){ht=Za,Io=null;var v=y.sibling;if(v!==null)qe=v;else{var L=y.return;L!==null?(qe=L,Jf(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,Io=null,vr(e,t,d,Ab);break;case Gc:ht=Za,Io=null,vr(e,t,d,Gc);break;case kb:Zg(),Pt=Yh;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}H.actQueue!==null?bL():lR();break}catch(O){pL(e,O)}while(1);if(bf(),H.H=l,H.A=u,ot=o,qe!==null)return xs;return vt=null,Fe=0,hf(),Pt}function lR(){for(;qe!==null&&!n_();)xL(qe)}function xL(e){var t=e.alternate;(e.mode&Ue)!==Ae?(Xm(e),t=le(e,Fg,t,e,qn),$m(e)):t=le(e,Fg,t,e,qn),e.memoizedProps=e.pendingProps,t===null?Jf(e):qe=t}function vL(e){var t=le(e,iR,e);e.memoizedProps=e.pendingProps,t===null?Jf(e):qe=t}function iR(e){var t=e.alternate,o=(e.mode&Ue)!==Ae;switch(o&&Xm(e),e.tag){case 15:case 0:t=_S(t,e,e.pendingProps,e.type,void 0,Fe);break;case 11:t=_S(t,e,e.pendingProps,e.type.render,e.ref,Fe);break;case 5:ig(e);default:zS(t,e),e=qe=x0(e,qn),t=Fg(t,e,qn)}return o&&$m(e),t}function vr(e,t,o,l){bf(),ig(t),Gr=null,Bc=0;var u=t.return;try{if(Gk(e,u,t,o,Fe)){Pt=Vc,Vf(e,po(o,e.current)),qe=null;return}}catch(d){if(u!==null)throw qe=u,d;Pt=Vc,Vf(e,po(o,e.current)),qe=null;return}if(t.flags&32768){if(Ke||l===Xh)e=!0;else if(eu||(Fe&536870912)!==0)e=!1;else if(hl=e=!0,l===Mi||l===Ii||l===jc||l===Gc)l=To.current,l!==null&&l.tag===13&&(l.flags|=16384);SL(t,e)}else Jf(t)}function Jf(e){var t=e;do{if((t.flags&32768)!==0){SL(t,hl);return}var o=t.alternate;if(e=t.return,Xm(t),o=le(t,$k,o,t,qn),(t.mode&Ue)!==Ae&&A0(t),o!==null){qe=o;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Pt===xs&&(Pt=TT)}function SL(e,t){do{var o=Wk(e.alternate,e);if(o!==null){o.flags&=32767,qe=o;return}if((e.mode&Ue)!==Ae){A0(e),o=e.actualDuration;for(var l=e.child;l!==null;)o+=l.actualDuration,l=l.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);Pt=Yh,qe=null}function Kg(e,t,o,l,u,d,m,y,v,L,O,P,k,N){e.cancelPendingCommit=null;do Ju();while(oa!==yl);if(ln.flushLegacyContextWarning(),ln.flushPendingUnsafeLifecycleWarnings(),(ot&(ia|Mo))!==ma)throw Error("Should not already be working.");if(ho(o),L===wi?Em(k,N,o,jt):l!==null?Dk(k,N,o,l,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,jt):_k(k,N,o,jt),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|=nb,tf(e,o,d,m,y,v),e===vt&&(qe=vt=null,Fe=0),tu=t,bl=e,cn=o,Ob=d,Bb=u,OT=l,Pb=N,PT=P,dn=Kh,BT=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fR(Mr,function(){return Jc=window.event,dn===Kh&&(dn=Eb),ML(),null})):(e.callbackNode=null,e.callbackPriority=0),fs=null,ll=Kt(),P!==null&&Ek(N,ll,P,jt),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,u=ct.p,ct.p=Lo,m=ot,ot|=Mo;try{tR(e,t,o)}finally{ot=m,ct.p=u,H.T=l}}oa=RT,LL(),CL(),TL()}}function LL(){if(oa===RT){oa=yl;var e=bl,t=tu,o=cn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var u=ct.p;ct.p=Lo;var d=ot;ot|=Mo;try{Kr=o,Jr=e,Lf(),JS(t,e),Jr=Kr=null,o=Xb;var m=u0(e.containerInfo),y=o.focusedElem,v=o.selectionRange;if(m!==y&&y&&y.ownerDocument&&r0(y.ownerDocument.documentElement,y)){if(v!==null&&Rm(y)){var{start:L,end:O}=v;if(O===void 0&&(O=L),"selectionStart"in y)y.selectionStart=L,y.selectionEnd=Math.min(O,y.value.length);else{var P=y.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var N=k.getSelection(),te=y.textContent.length,se=Math.min(v.start,te),Tt=v.end===void 0?se:Math.min(v.end,te);!N.extend&&se>Tt&&(m=Tt,Tt=se,se=m);var tt=i0(y,se),I=i0(y,Tt);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>Tt?(N.addRange(R),N.extend(I.node,I.offset)):(R.setEnd(I.node,I.offset),N.addRange(R))}}}}P=[];for(N=y;N=N.parentNode;)N.nodeType===1&&P.push({element:N,left:N.scrollLeft,top:N.scrollTop});typeof y.focus==="function"&&y.focus();for(y=0;y<P.length;y++){var E=P[y];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}pp=!!Yb,Xb=Yb=null}finally{ot=d,ct.p=u,H.T=l}}e.current=t,oa=_T}}function CL(){if(oa===_T){oa=yl;var e=BT;if(e!==null){ll=Kt();var t=ds,o=ll;!Mt||o<=t||(ps?ps.run(console.timeStamp.bind(console,e,t,o,Ze,$e,"secondary-light")):console.timeStamp(e,t,o,Ze,$e,"secondary-light"))}e=bl,t=tu,o=cn;var l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var u=ct.p;ct.p=Lo;var d=ot;ot|=Mo;try{Kr=o,Jr=e,Lf(),$S(e,t.alternate,t),Jr=Kr=null}finally{ot=d,ct.p=u,H.T=l}}e=Pb,t=PT,ds=Kt(),e=t===null?e:ll,t=ds,o=dn===Db,l=jt,fs!==null?p0(e,t,fs,!1,l):!Mt||t<=e||(l?l.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")),oa=DT}}function TL(){if(oa===ET||oa===DT){if(oa===ET){var e=ds;ds=Kt();var t=ds,o=dn===Db;!Mt||t<=e||(ps?ps.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")),dn!==Db&&(dn=kT)}oa=yl,s_(),e=bl;var l=tu;t=cn,o=OT;var u=l.actualDuration!==0||(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0;u?oa=Jh:(oa=yl,tu=bl=null,wL(e,e.pendingLanes),ki=0,Wc=null);var d=e.pendingLanes;if(d===0&&(gl=null),u||RL(e),d=C(t),l=l.stateNode,Ra&&typeof Ra.onCommitFiberRoot==="function")try{var m=(l.current.flags&128)===128;switch(d){case Lo:var y=By;break;case nn:y=Ny;break;case Bn:y=Mr;break;case yh:y=zy;break;default:y=Mr}Ra.onCommitFiberRoot(Ir,l,y,m)}catch(P){On||(On=!0,console.error("React instrumentation encountered an error: %o",P))}if(Pn&&e.memoizedUpdaters.clear(),oR(),o!==null){m=H.T,y=ct.p,ct.p=Lo,H.T=null;try{var v=e.onRecoverableError;for(l=0;l<o.length;l++){var L=o[l],O=rR(L.stack);le(L.source,v,L.value,O)}}finally{H.T=m,ct.p=y}}(cn&3)!==0&&Ju(),kn(e),d=e.pendingLanes,(t&261930)!==0&&(d&42)!==0?(Ph=!0,e===Nb?$c++:($c=0,Nb=e)):$c=0,u||fi(t,ds),tc(0,!1)}}function rR(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 wL(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nu(t)))}function Ju(){return LL(),CL(),TL(),ML()}function ML(){if(oa!==Jh)return!1;var e=bl,t=Ob;Ob=0;var o=C(cn),l=Bn===0||Bn>o?Bn:o;o=H.T;var u=ct.p;try{ct.p=l,H.T=null;var d=Bb;Bb=null,l=bl;var m=cn;if(oa=yl,tu=bl=null,cn=0,(ot&(ia|Mo))!==ma)throw Error("Cannot flush passive effects while already rendering.");ho(m),zb=!0,ep=!1;var y=0;if(fs=null,y=fa(),dn===kT)Pu(ds,y,ps);else{var v=ds,L=y,O=dn===Eb;!Mt||L<=v||(jt?jt.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|=Mo;var P=l.current;Lf(),iL(P);var k=l.current;P=Pb,Lf(),oL(l,k,m,d,P),RL(l),ot=v;var N=fa();if(k=y,P=jt,fs!==null?p0(k,N,fs,!0,P):!Mt||N<=k||(P?P.run(console.timeStamp.bind(console,"Remaining Effects",k,N,Ze,$e,"secondary-dark")):console.timeStamp("Remaining Effects",k,N,Ze,$e,"secondary-dark")),fi(m,N),tc(0,!1),ep?l===Wc?ki++:(ki=0,Wc=l):ki=0,ep=zb=!1,Ra&&typeof Ra.onPostCommitFiberRoot==="function")try{Ra.onPostCommitFiberRoot(Ir,l)}catch(se){On||(On=!0,console.error("React instrumentation encountered an error: %o",se))}var te=l.current.stateNode;return te.effectDuration=0,te.passiveEffectDuration=0,!0}finally{ct.p=u,H.T=o,wL(e,t)}}function IL(e,t,o){t=po(o,t),k0(t),t=Rg(e.stateNode,t,2),e=js(e,t,2),e!==null&&(Bs(e,2),kn(e))}function ut(e,t,o){if(au=!1,e.tag===3)IL(e,e,o);else{for(;t!==null;){if(t.tag===3){IL(t,e,o);return}if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof l.componentDidCatch==="function"&&(gl===null||!gl.has(l))){e=po(o,e),k0(e),o=_g(2),l=js(t,o,2),l!==null&&(Dg(o,l,t,e),Bs(l,2),kn(l));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: "+i,ie(t,function(y,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",y,v)},d,m)}o=o.next}while(o!==u)}}catch(y){ut(t,t.return,y)}}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,y=m.destroy;y!==void 0&&(m.destroy=void 0,(e&qa)!==qh&&(ou=!0),u=t,ie(u,SD,u,o,y),(e&qa)!==qh&&(ou=!1))}i=i.next}while(i!==d)}}catch(v){ut(t,t.return,v)}}function qS(e,t){In(e)?(wn(),Zu(t,e),Tn()):Zu(t,e)}function Yg(e,t,o){In(e)?(wn(),gr(o,e,t),Tn()):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.",q(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.",q(e)||"instance"));try{ie(e,G0,t,o)}catch(i){ut(e,e.return,i)}}}function Kk(e,t,o){return e.getSnapshotBeforeUpdate(t,o)}function Jk(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.",q(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.",q(e)||"instance"));try{var u=dl(e.type,o),d=ie(e,Kk,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.",q(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,In(e)?(wn(),ie(e,V1,e,t,o),Tn()):ie(e,V1,e,t,o)}function eR(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(In(e))try{wn(),e.refCleanup=t(o)}finally{Tn()}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().",q(e)),t.current=o}}function Qu(e,t){try{ie(e,eR,e)}catch(o){ut(e,t,o)}}function Mn(e,t){var{ref:o,refCleanup:i}=e;if(o!==null)if(typeof i==="function")try{if(In(e))try{wn(),ie(e,i)}finally{Tn(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(In(e))try{wn(),ie(e,o,null)}finally{Tn(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 tR(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,wR,i,t,o,e)}catch(u){ut(e,e.return,u)}}function Xg(e,t,o){try{ie(e,MR,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 aR(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,VR,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 oR(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,y=-1,v=-1,L=0,O=0,P=e,A=null;t:for(;;){for(var N;;){if(P!==o||u!==0&&P.nodeType!==3||(y=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&&(y=m),A===d&&++O===i&&(v=m),(N=P.nextSibling)!==null)break;P=A,A=P.parentNode}P=N}o=y===-1||v===-1?null:{start:y,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&&Jk(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=vn(),d=Ln(),m=Cn(),y=o.flags;switch(o.tag){case 0:case 11:case 15:An(e,o),y&4&&FS(o,wo|qo);break;case 1:if(An(e,o),y&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.",q(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.",q(o)||"instance")),In(o)?(wn(),ie(o,gb,o,e),Tn()):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.",q(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.",q(o)||"instance")),In(o)?(wn(),ie(o,H1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate),Tn()):ie(o,H1,o,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}y&64&&VS(o),y&512&&Qu(o,o.return);break;case 3:if(t=os(),An(e,o),y&64&&(y=o.updateQueue,y!==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,y,v)}catch(O){ut(o,o.return,O)}}e.effectDuration+=Cf(t);break;case 27:t===null&&y&4&&$S(o);case 26:case 5:if(An(e,o),t===null){if(y&4)YS(o);else if(y&64){e=o.type,t=o.memoizedProps,v=o.stateNode;try{ie(o,IR,v,e,t,o)}catch(O){ut(o,o.return,O)}}}y&512&&Qu(o,o.return);break;case 12:if(y&4){y=os(),An(e,o),e=o.stateNode,e.effectDuration+=Uu(y);try{ie(o,GS,o,t,li,e.effectDuration)}catch(O){ut(o,o.return,O)}}else An(e,o);break;case 31:An(e,o),y&4&&JS(e,o);break;case 13:An(e,o),y&4&&eL(e,o),y&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(y=fR.bind(null,o),UR(e,y))));break;case 22:if(y=o.memoizedState!==null||xs,!y){t=t!==null&&t.memoizedState!==null||ea,v=xs;var L=ea;xs=y,(ea=t)&&!L?(kn(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&0.05<Ce-Se&&hf(o,Se,Ce)):An(e,o),xs=v,ea=L}break;case 30:break;default:An(e,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&((zt||0.05<Et)&&bn(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)||yn(o,Se,Ce,"Mount"))),go(i),Sn(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){Pn||(Pn=!0,console.error("React instrumentation encountered an error: %o",L))}var i=mo(),u=vn(),d=Ln(),m=Cn();switch(o.tag){case 26:ea||Mn(o,t),is(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:ea||Mn(o,t);var y=ta,v=Wa;Qs(o.type)&&(ta=o.stateNode,Wa=!1),is(e,t,o),ie(o,ic,o.stateNode),ta=y,Wa=v;break;case 5:ea||Mn(o,t);case 6:if(y=ta,v=Wa,ta=null,is(e,t,o),ta=y,Wa=v,ta!==null)if(Wa)try{ie(o,RR,ta,o.stateNode)}catch(L){ut(o,t,L)}else try{ie(o,kR,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:y=ta,v=Wa,ta=o.stateNode.containerInfo,Wa=!0,is(e,t,o),ta=y,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||(Mn(o,t),y=o.stateNode,typeof y.componentWillUnmount==="function"&&jS(o,t,y)),is(e,t,o);break;case 21:is(e,t,o);break;case 22:ea=(y=ea)||o.memoizedState!==null,is(e,t,o),ea=y;break;default:is(e,t,o)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&bn(o,Se,Ce,Et,Dt),go(i),Sn(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,FR,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,qR,e)}catch(o){ut(t,t.return,o)}}function nR(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=nR(e);t.forEach(function(i){if(!o.has(i)){if(o.add(i),Bn)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=hR.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],y=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&&yn(m,Se,Ce,"Unmount"),go(y),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=vn(),u=Ln(),d=Cn(),m=e.alternate,y=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xa(t,e),$a(e),y&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),y&512&&(ea||m===null||Mn(m,m.return)),y&64&&xs&&(y=e.updateQueue,y!==null&&(m=y.callbacks,m!==null))){var v=y.shared.hiddenCallbacks;y.shared.hiddenCallbacks=v===null?m:v.concat(m)}break;case 26:if(v=cn,Xa(t,e),$a(e),y&512&&(ea||m===null||Mn(m,m.return)),y&4){var L=m!==null?m.memoizedState:null;if(y=e.memoizedState,m===null)if(y===null)if(e.stateNode===null){e:{y=e.type,m=e.memoizedProps,v=v.ownerDocument||v;t:switch(y){case"title":if(L=v.getElementsByTagName("title")[0],!L||L[hc]||L[Sa]||L.namespaceURI===Rr||L.hasAttribute("itemprop"))L=v.createElement(y),v.head.insertBefore(L,v.querySelector("head > title"));va(L,y,m),L[Sa]=e,ve(L),y=L;break e;case"link":var O=fC("link","href",v).get(y+(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(y),va(L,y,m),v.head.appendChild(L);break;case"meta":if(O=fC("meta","content",v).get(y+(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(y),va(L,y,m),v.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+y+'". This is a bug in React.')}L[Sa]=e,ve(L),y=L}e.stateNode=y}else hC(v,e.type,e.stateNode);else e.stateNode=dC(v,y,e.memoizedProps);else L!==y?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,y===null?hC(v,e.type,e.stateNode):dC(v,y,e.memoizedProps)):y===null&&e.stateNode!==null&&Xg(e,e.memoizedProps,m.memoizedProps)}break;case 27:Xa(t,e),$a(e),y&512&&(ea||m===null||Mn(m,m.return)),m!==null&&y&4&&Xg(e,e.memoizedProps,m.memoizedProps);break;case 5:if(Xa(t,e),$a(e),y&512&&(ea||m===null||Mn(m,m.return)),e.flags&32){v=e.stateNode;try{ie(e,JL,v)}catch(se){ut(e,e.return,se)}}y&4&&e.stateNode!=null&&(v=e.memoizedProps,Xg(e,v,m!==null?m.memoizedProps:v)),y&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),y&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.");y=e.memoizedProps,m=m!==null?m.memoizedProps:y,v=e.stateNode;try{ie(e,AR,v,m,y)}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),y&4&&m!==null&&m.memoizedState.isDehydrated)try{ie(e,HR,t.containerInfo)}catch(se){ut(e,e.return,se)}kb&&(kb=!1,aL(e)),t.effectDuration+=Cf(v);break;case 4:y=cn,cn=sh(e.stateNode.containerInfo),Xa(t,e),$a(e),cn=y;break;case 12:y=os(),Xa(t,e),$a(e),e.stateNode.effectDuration+=Uu(y);break;case 31:Xa(t,e),$a(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Qf(e,y)));break;case 13:Xa(t,e),$a(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(Kh=da()),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Qf(e,y)));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),y&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&&yn(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,DR,L):ie(A,PR,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,ER,O):ie(A,BR,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,_R,P):ie(A,OR,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}y&4&&(y=e.updateQueue,y!==null&&(m=y.retryQueue,m!==null&&(y.retryQueue=null,Qf(e,m))));break;case 19:Xa(t,e),$a(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,Qf(e,y)));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)&&bn(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)||yn(e,Se,Ce,"Mount"))),go(o),Sn(i),Dt=u,zt=d}function $a(e){var t=e.flags;if(t&2){try{ie(e,aR,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 An(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=vn(),i=Ln(),u=Cn();switch(e.tag){case 0:case 11:case 14:case 15:Gg(e,e.return,wo),fl(e);break;case 1:Mn(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:Mn(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)&&bn(e,Se,Ce,Et,Dt),go(t),Sn(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=vn(),m=Ln(),y=Cn(),v=o.flags;switch(o.tag){case 0:case 11:case 15:kn(e,o,i),FS(o,wo);break;case 1:if(kn(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,Hk,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:kn(e,o,i),i&&t===null&&v&4&&YS(o),Qu(o,o.return);break;case 12:if(i&&v&4){v=os(),kn(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 kn(e,o,i);break;case 31:kn(e,o,i),i&&v&4&&JS(e,o);break;case 13:kn(e,o,i),i&&v&4&&eL(e,o);break;case 22:o.memoizedState===null&&kn(e,o,i),Qu(o,o.return);break;case 30:break;default:kn(e,o,i)}(o.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&bn(o,Se,Ce,Et,Dt),go(u),Sn(d),Dt=m,zt=y}function kn(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=vn(),y=Ln(),v=Cn(),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,tR,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&&yn(t,o,u,"Mount");0<=Se&&0<=Ce&&((zt||0.05<Et)&&bn(t,Se,Ce,Et,Dt),e&&0.05<Ce-Se&&yn(t,Se,Ce,"Mount"))}go(d),Sn(m),Dt=y,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(),y=vn(),v=Ln(),L=Cn(),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)&&bn(t,Se,Ce,Et,Dt),go(m),Sn(y),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,y=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,y);var P=d.flags;switch(d.tag){case 22:Ku(m,d,y,v,L),P&2048&&Zg(d.alternate,d);break;case 24:Ku(m,d,y,v,L),P&2048&&Qg(d.alternate,d);break;default:Ku(m,d,y,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&&YR(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&&yn(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=vn(),i=Ln(),u=Cn();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&&yn(e,Se,Ce,"Disconnect")):Ju(e);break;default:Ju(e)}(e.mode&Ue)!==Ae&&0<=Se&&0<=Ce&&(zt||0.05<Et)&&bn(e,Se,Ce,Et,Dt),go(t),Sn(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&&yn(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=vn(),i=Ln(),u=Cn();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)&&bn(e,Se,Ce,Et,Dt),go(t),Sn(o),zt=u,Dt=i}function dL(e,t){for(;ha!==null;){var o=ha,i=o,u=t,d=mo(),m=vn(),y=Ln(),v=Cn();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)&&bn(i,Se,Ce,Et,Dt),go(d),Sn(m),zt=v,Dt=y,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 sR(){ID.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(On)switch(t.tag){case 0:case 11:case 15:e=qe&&q(qe)||"Unknown",HT.has(e)||(HT.add(e),t=q(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 Bn&&Mu(e,t,o),mR(t),e===xt&&((ot&ia)===pa&&(gi|=o),Ot===hi&&Ws(e,Fe,Qa,!1)),Rn(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))?lR(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&&!iR(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 y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){ho(t),Pm(fa,i,t,Vt),hl(t,i),t=y;e:{i=e,d=m,m=Xc;var v=i.current.memoizedState.isDehydrated;if(v&&(vr(i,y).flags|=256),y=Jg(i,y,!1),y!==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=y}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);Rn(e)}function mL(e,t,o,i,u,d,m,y,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=XR(se,te),te!==null){dn=d,e.cancelPendingCommit=te(ey.bind(null,e,t,d,o,i,u,m,y,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,y,v,O,se,P,A,N)}function iR(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&&(Fn=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<=Hn&&Hn<ri?ri:Hn,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 y=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<y?y>o&&(y=o):y=o,v!==null&&o>y){var A=L?"secondary-light":"warning";i?i.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+v,y,o,Ze,$e,A)):console.timeStamp(L?"Consecutive":"Event: "+v,y,o,Ze,$e,A)}u>o&&(y=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:y}}},i?i.run(performance.measure.bind(performance,O,o)):performance.measure(O,o))}Hn=-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<Fn?Fn:ps,o=0<=Ho&&Ho<Fn?Fn:Ho,i=0<=ci&&ci<Fn?Fn:ci,d=0<=i?i:0<=o?o:fa,0<=Oh?(ho(256),m0(Oh,d,t,Vt)):(Ph&4194048)!==0&&(ho(256),Bu(Fn,d,ms)),P=i,y=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&&y!==null&&(A=v?"secondary-light":"warning",i?i.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+y,P,u,Ze,$e,A)):console.timeStamp(v?"Consecutive":"Event: "+y,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,Fn=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,UD(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 Vn=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,On=!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=wD,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(Bn){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 y=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,y,v,L),o&&tu){m=vs;break e}break;default:L=ht,ht=Za,Mo=null,Sr(e,y,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 lR(e,t){var o=ot;ot|=ia;var i=bL(),u=xL();if(xt!==e||Fe!==t){if(Bn){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),Rn(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 y=qe;if(m?pC(m):y.stateNode.complete){ht=Za,Mo=null;var v=y.sibling;if(v!==null)qe=v;else{var L=y.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():rR();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 rR(){for(;qe!==null&&!i_();)SL(qe)}function SL(e){var t=e.alternate;(e.mode&Ue)!==Ae?(Wm(e),t=ie(e,Vg,t,e,Vn),Zm(e)):t=ie(e,Vg,t,e,Vn),e.memoizedProps=e.pendingProps,t===null?th(e):qe=t}function LL(e){var t=ie(e,uR,e);e.memoizedProps=e.pendingProps,t===null?th(e):qe=t}function uR(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,Vn),t=Vg(t,e,Vn)}return o&&Zm(e),t}function Sr(e,t,o,i){vf(),ug(t),Yr=null,Nc=0;var u=t.return;try{if(Xk(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,Zk,o,t,Vn),(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=Qk(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,y,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?Ok(A,N,o,i,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Vt):Ek(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,y,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,pR(Mr,function(){return ed=window.event,fn===ep&&(fn=Pb),AL(),null})):(e.callbackNode=null,e.callbackPriority=0),hs=null,li=Qt(),P!==null&&Pk(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{oR(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),y=o.focusedElem,v=o.selectionRange;if(m!==y&&y&&y.ownerDocument&&c0(y.ownerDocument.documentElement,y)){if(v!==null&&Dm(y)){var{start:L,end:O}=v;if(O===void 0&&(O=L),"selectionStart"in y)y.selectionStart=L,y.selectionEnd=Math.min(O,y.value.length);else{var P=y.ownerDocument||document,A=P&&P.defaultView||window;if(A.getSelection){var N=A.getSelection(),te=y.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(y,se),I=u0(y,Ct);if(tt&&I&&(N.rangeCount!==1||N.anchorNode!==tt.node||N.anchorOffset!==tt.offset||N.focusNode!==I.node||N.focusOffset!==I.offset)){var k=P.createRange();k.setStart(tt.node,tt.offset),N.removeAllRanges(),se>Ct?(N.addRange(k),N.extend(I.node,I.offset)):(k.setEnd(I.node,I.offset),N.addRange(k))}}}}P=[];for(N=y;N=N.parentNode;)N.nodeType===1&&P.push({element:N,left:N.scrollLeft,top:N.scrollTop});typeof y.focus==="function"&&y.focus();for(y=0;y<P.length;y++){var E=P[y];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,l_(),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 y=zy;break;case sn:y=Uy;break;case Nn:y=Mr;break;case xh:y=Hy;break;default:y=Mr}_a.onCommitFiberRoot(Ar,i,y,m)}catch(P){Pn||(Pn=!0,console.error("React instrumentation encountered an error: %o",P))}if(Bn&&e.memoizedUpdaters.clear(),sR(),o!==null){m=H.T,y=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=cR(L.stack);ie(L.source,v,L.value,O)}}finally{H.T=m,ct.p=y}}(dn&3)!==0&&ec(),Rn(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 cR(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=Nn===0||Nn>o?Nn: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 y=0;if(hs=null,y=da(),fn===_T)Bu(fs,y,ms);else{var v=fs,L=y,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=y,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){Pn||(Pn=!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),Rn(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),Rn(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.
|
|
154
154
|
|
|
155
155
|
Error message:
|
|
156
156
|
|
|
157
|
-
%s`,o)}}function
|
|
157
|
+
%s`,o)}}function ty(e,t,o){var i=e.pingCache;if(i===null){i=e.pingCache=new MD;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=dR.bind(null,e,t,o),Bn&&tc(e,o),t.then(i,i))}function dR(e,t,o){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>Hn&&(ri=Hn=Qt(),wc=_h("Promise Resolved"),ui=Dh):(o&4194048)!==0&&0>Ho&&(Fn=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(...).
|
|
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`),
|
|
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)),Rn(e)}function RL(e,t){t===0&&(t=sr()),e=Ra(e,t),e!==null&&(Ns(e,t),Rn(e))}function fR(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),RL(e,o)}function hR(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=q(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){Bn&&e.memoizedUpdaters.forEach(function(o){Mu(e,o,t)})}function pR(e,t){var o=H.actQueue;return o!==null?(o.push(t),RD):Ny(e,t)}function mR(e){fL()&&H.actQueue===null&&ie(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,20 +172,20 @@ 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`,q(e))})}function kn(e){e!==ou&&e.next===null&&(ou===null?ap=ou=e:ou=ou.next=e),op=!0,H.actQueue!==null?Hb||(Hb=!0,PL()):Ub||(Ub=!0,PL())}function tc(e,t){if(!Fb&&op){Fb=!0;do{var o=!1;for(var l=ap;l!==null;){if(!t)if(e!==0){var u=l.pendingLanes;if(u===0)var d=0;else{var{suspendedLanes:m,pingedLanes:y}=l;d=(1<<31-Na(42|e)+1)-1,d&=u&~(m&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,OL(l,d))}else d=Fe,d=Yl(l,l===vt?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Ei),(d&3)===0||Xl(l,d)||(o=!0,OL(l,d));l=l.next}}while(o);Fb=!1}}function pR(){Jc=window.event,ty()}function ty(){op=Hb=Ub=!1;var e=0;xl!==0&&SR()&&(e=xl);for(var t=fa(),o=null,l=ap;l!==null;){var u=l.next,d=DL(l,t);if(d===0)l.next=null,o===null?ap=u:o.next=u,u===null&&(ou=o);else if(o=l,e!==0||(d&3)!==0)op=!0;l=u}oa!==yl&&oa!==Jh||tc(e,!1),xl!==0&&(xl=0)}function DL(e,t){for(var{suspendedLanes:o,pingedLanes:l,expirationTimes:u}=e,d=e.pendingLanes&-62914561;0<d;){var m=31-Na(d),y=1<<m,v=u[m];if(v===-1){if((y&o)===0||(y&l)!==0)u[m]=xm(y,t)}else v<=t&&(e.expiredLanes|=y);d&=~y}if(t=vt,o=Fe,o=Yl(e,e===t?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ei),l=e.callbackNode,o===0||e===t&&(ht===Mi||ht===Ii)||e.cancelPendingCommit!==null)return l!==null&&ay(l),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||Xl(e,o)){if(t=o&-o,t!==e.callbackPriority||H.actQueue!==null&&l!==qb)ay(l);else return t;switch(C(o)){case Lo:case nn:o=Ny;break;case Bn:o=Mr;break;case yh:o=zy;break;default:o=Mr}return l=EL.bind(null,e),H.actQueue!==null?(H.actQueue.push(l),o=qb):o=Py(o,l),e.callbackPriority=t,e.callbackNode=o,t}return l!==null&&ay(l),e.callbackPriority=2,e.callbackNode=null,2}function EL(e,t){if(Ph=Oh=!1,Jc=window.event,oa!==yl&&oa!==Jh)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(dn===Kh&&(dn=Eb),Ju()&&e.callbackNode!==o)return null;var l=Fe;if(l=Yl(e,e===vt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ei),l===0)return null;return fL(e,l,t),DL(e,fa()),e.callbackNode!=null&&e.callbackNode===o?EL.bind(null,e):null}function OL(e,t){if(Ju())return null;Oh=Ph,Ph=!1,fL(e,t,!0)}function ay(e){e!==qb&&e!==null&&o_(e)}function PL(){H.actQueue!==null&&H.actQueue.push(function(){return ty(),null}),zD(function(){(ot&(ia|Mo))!==ma?Py(By,pR):ty()})}function oy(){if(xl===0){var e=xi;e===0&&(e=ph,ph<<=1,(ph&261888)===0&&(ph=256)),xl=e}return xl}function BL(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return mt(e,"action"),Du(""+e)}function NL(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 mR(e,t,o,l,u){if(t==="submit"&&o&&o.stateNode===u){var d=BL((u[za]||null).action),m=l.submitter;m&&(t=(t=m[za]||null)?BL(t.formAction):m.getAttribute("formAction"),t!==null&&(d=t,m=null));var y=new Lh("action","action",null,l,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xl!==0){var v=m?NL(u,m):new FormData(u),L={pending:!0,data:v,method:u.method,action:d};Object.freeze(L),Cg(o,L,null,v)}}else typeof d==="function"&&(y.preventDefault(),v=m?NL(u,m):new FormData(u),L={pending:!0,data:v,method:u.method,action:d},Object.freeze(L),Cg(o,L,d,v))},currentTarget:u}]})}}function eh(e,t,o){e.currentTarget=o;try{t(e)}catch(l){eb(l)}e.currentTarget=null}function zL(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var l=e[o];e:{var u=void 0,d=l.event;if(l=l.listeners,t)for(var m=l.length-1;0<=m;m--){var y=l[m],v=y.instance,L=y.currentTarget;if(y=y.listener,v!==u&&d.isPropagationStopped())break e;v!==null?le(v,eh,d,y,L):eh(d,y,L),u=v}else for(m=0;m<l.length;m++){if(y=l[m],v=y.instance,L=y.currentTarget,y=y.listener,v!==u&&d.isPropagationStopped())break e;v!==null?le(v,eh,d,y,L):eh(d,y,L),u=v}}}}function et(e,t){Vb.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[Uy];o===void 0&&(o=t[Uy]=new Set);var l=e+"__bubble";o.has(l)||(UL(t,e,2,!1),o.add(l))}function ny(e,t,o){Vb.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 l=0;t&&(l|=4),UL(o,e,l,t)}function sy(e){if(!e[np]){e[np]=!0,PC.forEach(function(o){o!=="selectionchange"&&(Vb.has(o)||ny(o,!1,e),ny(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[np]||(t[np]=!0,ny("selectionchange",!1,t))}}function UL(e,t,o,l){switch(bC(t)){case Lo:var u=WR;break;case nn:u=ZR;break;default:u=Sy}o=u.bind(null,t,o,e),u=void 0,!jy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?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 ly(e,t,o,l,u){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var y=l.stateNode.containerInfo;if(y===u)break;if(m===4)for(m=l.return;m!==null;){var v=m.tag;if((v===3||v===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;y!==null;){if(m=ue(y),m===null)return;if(v=m.tag,v===5||v===6||v===26||v===27){l=d=m;continue e}y=y.parentNode}}l=l.return}Zv(function(){var L=d,O=Am(o),P=[];e:{var k=b1.get(e);if(k!==void 0){var N=Lh,te=e;switch(e){case"keypress":if(rf(o)===0)break e;case"keydown":case"keyup":N=j_;break;case"focusin":te="focus",N=$y;break;case"focusout":te="blur",N=$y;break;case"beforeblur":case"afterblur":N=$y;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=n1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=D_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=X_;break;case p1:case m1:case g1:N=P_;break;case y1:N=W_;break;case"scroll":case"scrollend":N=R_;break;case"wheel":N=Q_;break;case"copy":case"cut":case"paste":N=N_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=l1;break;case"toggle":case"beforetoggle":N=J_}var se=(t&4)!==0,Tt=!se&&(e==="scroll"||e==="scrollend"),tt=se?k!==null?k+"Capture":null:k;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=Eu(I,tt),E!=null&&se.push(ac(I,E,R))),Tt)break;I=I.return}0<se.length&&(k=new N(k,te,null,o,O),P.push({event:k,listeners:se}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",k&&o!==hc&&(te=o.relatedTarget||o.fromElement)&&(ue(te)||te[el]))break e;if(N||k){if(k=O.window===O?O:(k=O.ownerDocument)?k.defaultView||k.parentWindow:window,N){if(te=o.relatedTarget||o.toElement,N=L,te=te?ue(te):null,te!==null&&(Tt=_(te),se=te.tag,te!==Tt||se!==5&&se!==27&&se!==6))te=null}else N=null,te=L;if(N!==te){if(se=n1,E="onMouseLeave",tt="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")se=l1,E="onPointerLeave",tt="onPointerEnter",I="pointer";if(Tt=N==null?k:Ee(N),R=te==null?k:Ee(te),k=new se(E,I+"leave",N,o,O),k.target=Tt,k.relatedTarget=R,E=null,ue(O)===L&&(se=new se(tt,I+"enter",te,o,O),se.target=R,se.relatedTarget=Tt,E=se),Tt=E,N&&te)t:{se=gR,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&&HL(P,k,N,se,!1),te!==null&&Tt!==null&&HL(P,Tt,te,se,!0)}}}e:{if(k=L?Ee(L):window,N=k.nodeName&&k.nodeName.toLowerCase(),N==="select"||N==="input"&&k.type==="file")var oe=o0;else if(t0(k))if(f1)oe=Ak;else{oe=Mk;var Re=wk}else N=k.nodeName,!N||N.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?L&&_u(L.elementType)&&(oe=o0):oe=Ik;if(oe&&(oe=oe(e,L))){a0(P,oe,o,O);break e}Re&&Re(e,k,L),e==="focusout"&&L&&k.type==="number"&&L.memoizedProps.value!=null&&Lm(k,"number",k.value)}switch(Re=L?Ee(L):window,e){case"focusin":if(t0(Re)||Re.contentEditable==="true")Or=Re,Zy=L,vc=null;break;case"focusout":vc=Zy=Or=null;break;case"mousedown":Qy=!0;break;case"contextmenu":case"mouseup":case"dragend":Qy=!1,c0(P,o,O);break;case"selectionchange":if(oD)break;case"keydown":case"keyup":c0(P,o,O)}var xe;if(Wy)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 Er?Jv(e,o)&&(fe="onCompositionEnd"):e==="keydown"&&o.keyCode===i1&&(fe="onCompositionStart");if(fe&&(r1&&o.locale!=="ko"&&(Er||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&Er&&(xe=Qv()):(tl=O,Gy=("value"in tl)?tl.value:tl.textContent,Er=!0)),Re=th(L,fe),0<Re.length&&(fe=new s1(fe,e,null,o,O),P.push({event:fe,listeners:Re}),xe?fe.data=xe:(xe=e0(o),xe!==null&&(fe.data=xe)))),xe=tD?Sk(e,o):Lk(e,o))fe=th(L,"onBeforeInput"),0<fe.length&&(Re=new U_("onBeforeInput","beforeinput",null,o,O),P.push({event:Re,listeners:fe}),Re.data=xe);mR(P,e,L,o,O)}zL(P,t)})}function ac(e,t,o){return{instance:e,listener:t,currentTarget:o}}function th(e,t){for(var o=t+"Capture",l=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Eu(e,o),u!=null&&l.unshift(ac(e,u,d)),u=Eu(e,t),u!=null&&l.push(ac(e,u,d))),e.tag===3)return l;e=e.return}return[]}function gR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function HL(e,t,o,l,u){for(var d=t._reactName,m=[];o!==null&&o!==l;){var y=o,v=y.alternate,L=y.stateNode;if(y=y.tag,v!==null&&v===l)break;y!==5&&y!==26&&y!==27||L===null||(v=L,u?(L=Eu(o,d),L!=null&&m.unshift(ac(o,L,v))):u||(L=Eu(o,d),L!=null&&m.push(ac(o,L,v)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}function iy(e,t){yk(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||a1||(a1=!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:hi,possibleRegistrationNames:Hy};_u(e)||typeof t.is==="string"||xk(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 da(e,t,o,l){t!==o&&(o=Ws(o),Ws(t)!==o&&(l[e]=t))}function yR(e,t,o){t.forEach(function(l){o[VL(l)]=l==="style"?uy(e):e.getAttribute(l)})}function Rn(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 FL(e,t){return e=e.namespaceURI===xh||e.namespaceURI===kr?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ws(e){return Ps(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.",Gl(e)),ca(e)),(typeof e==="string"?e:""+e).replace(kD,`
|
|
176
|
-
`).replace(RD,"")}function qL(e,t){return t=Ws(t),Ws(e)===t?!0:!1}function bt(e,t,o,l,u,d){switch(o){case"children":if(typeof l==="string")lf(l,t,!1),t==="body"||t==="textarea"&&l===""||Ru(e,l);else if(typeof l==="number"||typeof l==="bigint")lf(""+l,t,!1),t!=="body"&&Ru(e,""+l);break;case"className":of(e,"class",l);break;case"tabIndex":of(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":of(e,o,l);break;case"style":Xv(e,l,d);break;case"data":if(t!=="object"){of(e,"data",l);break}case"src":case"href":if(l===""&&(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(l==null||typeof l==="function"||typeof l==="symbol"||typeof l==="boolean"){e.removeAttribute(o);break}mt(l,o),l=Du(""+l),e.setAttribute(o,l);break;case"action":case"formAction":if(l!=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 l==="function"&&(u.encType==null&&u.method==null||ip||(ip=!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||lp||(lp=!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"||sp?t!=="button"||u.type==null||u.type==="submit"||sp?typeof l==="function"&&(u.name==null||FT||(FT=!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||ip||(ip=!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||lp||(lp=!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."))):(sp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(sp=!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 l==="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"&&bt(e,t,"name",u.name,u,null),bt(e,t,"formEncType",u.formEncType,u,null),bt(e,t,"formMethod",u.formMethod,u,null),bt(e,t,"formTarget",u.formTarget,u,null)):(bt(e,t,"encType",u.encType,u,null),bt(e,t,"method",u.method,u,null),bt(e,t,"target",u.target,u,null)));if(l==null||typeof l==="symbol"||typeof l==="boolean"){e.removeAttribute(o);break}mt(l,o),l=Du(""+l),e.setAttribute(o,l);break;case"onClick":l!=null&&(typeof l!=="function"&&Rn(o,l),e.onclick=Kn);break;case"onScroll":l!=null&&(typeof l!=="function"&&Rn(o,l),et("scroll",e));break;case"onScrollEnd":l!=null&&(typeof l!=="function"&&Rn(o,l),et("scrollend",e));break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!=="object"||!("__html"in l))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=l.__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=l&&typeof l!=="function"&&typeof l!=="symbol";break;case"muted":e.muted=l&&typeof l!=="function"&&typeof l!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l==="function"||typeof l==="boolean"||typeof l==="symbol"){e.removeAttribute("xlink:href");break}mt(l,o),o=Du(""+l),e.setAttributeNS(Ri,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!=="function"&&typeof l!=="symbol"?(mt(l,o),e.setAttribute(o,""+l)):e.removeAttribute(o);break;case"inert":l!==""||rp[o]||(rp[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":l&&typeof l!=="function"&&typeof l!=="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":l===!0?e.setAttribute(o,""):l!==!1&&l!=null&&typeof l!=="function"&&typeof l!=="symbol"?(mt(l,o),e.setAttribute(o,l)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&!isNaN(l)&&1<=l?(mt(l,o),e.setAttribute(o,l)):e.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l==="function"||typeof l==="symbol"||isNaN(l)?e.removeAttribute(o):(mt(l,o),e.setAttribute(o,l));break;case"popover":et("beforetoggle",e),et("toggle",e),af(e,"popover",l);break;case"xlinkActuate":Qn(e,Ri,"xlink:actuate",l);break;case"xlinkArcrole":Qn(e,Ri,"xlink:arcrole",l);break;case"xlinkRole":Qn(e,Ri,"xlink:role",l);break;case"xlinkShow":Qn(e,Ri,"xlink:show",l);break;case"xlinkTitle":Qn(e,Ri,"xlink:title",l);break;case"xlinkType":Qn(e,Ri,"xlink:type",l);break;case"xmlBase":Qn(e,jb,"xml:base",l);break;case"xmlLang":Qn(e,jb,"xml:lang",l);break;case"xmlSpace":Qn(e,jb,"xml:space",l);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),af(e,"is",l);break;case"innerText":case"textContent":break;case"popoverTarget":qT||l==null||typeof l!=="object"||(qT=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",l));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=$v(o),af(e,o,l)):hi.hasOwnProperty(o)&&l!=null&&typeof l!=="function"&&Rn(o,l)}}function ry(e,t,o,l,u,d){switch(o){case"style":Xv(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!=="object"||!("__html"in l))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=l.__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 l==="string"?Ru(e,l):(typeof l==="number"||typeof l==="bigint")&&Ru(e,""+l);break;case"onScroll":l!=null&&(typeof l!=="function"&&Rn(o,l),et("scroll",e));break;case"onScrollEnd":l!=null&&(typeof l!=="function"&&Rn(o,l),et("scrollend",e));break;case"onClick":l!=null&&(typeof l!=="function"&&Rn(o,l),e.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(hi.hasOwnProperty(o))l!=null&&typeof l!=="function"&&Rn(o,l);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 l==="function")){typeof d!=="function"&&d!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(t,l,u);break e}o in e?e[o]=l:l===!0?e.setAttribute(o,""):af(e,o,l)}}}function xa(e,t,o){switch(iy(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 l=!1,u=!1,d;for(d in o)if(o.hasOwnProperty(d)){var m=o[d];if(m!=null)switch(d){case"src":l=!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:bt(e,t,d,m,o,null)}}u&&bt(e,t,"srcSet",o.srcSet,o,null),l&&bt(e,t,"src",o.src,o,null);return;case"input":zs("input",o),et("invalid",e);var y=d=m=u=null,v=null,L=null;for(l in o)if(o.hasOwnProperty(l)){var O=o[l];if(O!=null)switch(l){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":y=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:bt(e,t,l,O,o,null)}}_v(e,o),Dv(e,d,y,v,L,m,u,!1);return;case"select":zs("select",o),et("invalid",e),l=m=d=null;for(u in o)if(o.hasOwnProperty(u)&&(y=o[u],y!=null))switch(u){case"value":d=y;break;case"defaultValue":m=y;break;case"multiple":l=y;default:bt(e,t,u,y,o,null)}Pv(e,o),t=d,o=m,e.multiple=!!l,t!=null?lr(e,!!l,t,!1):o!=null&&lr(e,!!l,o,!0);return;case"textarea":zs("textarea",o),et("invalid",e),d=u=l=null;for(m in o)if(o.hasOwnProperty(m)&&(y=o[m],y!=null))switch(m){case"value":l=y;break;case"defaultValue":u=y;break;case"children":d=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:bt(e,t,m,y,o,null)}Bv(e,o),zv(e,l,u,d);return;case"option":Ev(e,o);for(v in o)if(o.hasOwnProperty(v)&&(l=o[v],l!=null))switch(v){case"selected":e.selected=l&&typeof l!=="function"&&typeof l!=="symbol";break;default:bt(e,t,v,l,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(l=0;l<Zc.length;l++)et(Zc[l],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)&&(l=o[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bt(e,t,L,l,o,null)}return;default:if(_u(t)){for(O in o)o.hasOwnProperty(O)&&(l=o[O],l!==void 0&&ry(e,t,O,l,o,void 0));return}}for(y in o)o.hasOwnProperty(y)&&(l=o[y],l!=null&&bt(e,t,y,l,o,null))}function bR(e,t,o,l){switch(iy(t,l),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,y=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:l.hasOwnProperty(N)||bt(e,t,N,null,l,P)}}for(var k in l){var N=l[k];if(P=o[k],l.hasOwnProperty(k)&&(N!=null||P!=null))switch(k){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":y=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&&bt(e,t,k,N,l,P)}}t=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,l=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,t||!l||HT||(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"),HT=!0),!t||l||UT||(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"),UT=!0),Sm(e,m,y,v,L,O,d,u);return;case"select":N=m=y=k=null;for(d in o)if(v=o[d],o.hasOwnProperty(d)&&v!=null)switch(d){case"value":break;case"multiple":N=v;default:l.hasOwnProperty(d)||bt(e,t,d,null,l,v)}for(u in l)if(d=l[u],v=o[u],l.hasOwnProperty(u)&&(d!=null||v!=null))switch(u){case"value":k=d;break;case"defaultValue":y=d;break;case"multiple":m=d;default:d!==v&&bt(e,t,u,d,l,v)}l=y,t=m,o=N,k!=null?lr(e,!!t,k,!1):!!o!==!!t&&(l!=null?lr(e,!!t,l,!0):lr(e,!!t,t?[]:"",!1));return;case"textarea":N=k=null;for(y in o)if(u=o[y],o.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:bt(e,t,y,null,l,u)}for(m in l)if(u=l[m],d=o[m],l.hasOwnProperty(m)&&(u!=null||d!=null))switch(m){case"value":k=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&&bt(e,t,m,u,l,d)}Nv(e,k,N);return;case"option":for(var te in o)if(k=o[te],o.hasOwnProperty(te)&&k!=null&&!l.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:bt(e,t,te,null,l,k)}for(v in l)if(k=l[v],N=o[v],l.hasOwnProperty(v)&&k!==N&&(k!=null||N!=null))switch(v){case"selected":e.selected=k&&typeof k!=="function"&&typeof k!=="symbol";break;default:bt(e,t,v,k,l,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)k=o[se],o.hasOwnProperty(se)&&k!=null&&!l.hasOwnProperty(se)&&bt(e,t,se,null,l,k);for(L in l)if(k=l[L],N=o[L],l.hasOwnProperty(L)&&k!==N&&(k!=null||N!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:bt(e,t,L,k,l,N)}return;default:if(_u(t)){for(var Tt in o)k=o[Tt],o.hasOwnProperty(Tt)&&k!==void 0&&!l.hasOwnProperty(Tt)&&ry(e,t,Tt,void 0,l,k);for(O in l)k=l[O],N=o[O],!l.hasOwnProperty(O)||k===N||k===void 0&&N===void 0||ry(e,t,O,k,l,N);return}}for(var tt in o)k=o[tt],o.hasOwnProperty(tt)&&k!=null&&!l.hasOwnProperty(tt)&&bt(e,t,tt,null,l,k);for(P in l)k=l[P],N=o[P],!l.hasOwnProperty(P)||k===N||k==null&&N==null||bt(e,t,P,k,l,N)}function VL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function uy(e){var t={};e=e.style;for(var o=0;o<e.length;o++){var l=e[o];t[l]=e.getPropertyValue(l)}return t}function jL(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 l,u=l="",d;for(d in t)if(t.hasOwnProperty(d)){var m=t[d];m!=null&&typeof m!=="boolean"&&m!==""&&(d.indexOf("--")===0?(wu(m,d),l+=u+d+":"+(""+m).trim()):typeof m!=="number"||m===0||e1.has(d)?(wu(m,d),l+=u+d.replace(WC,"-$1").toLowerCase().replace(ZC,"-ms-")+":"+(""+m).trim()):l+=u+d.replace(WC,"-$1").toLowerCase().replace(ZC,"-ms-")+":"+m+"px",u=";")}l=l||null,t=e.getAttribute("style"),t!==l&&(l=Ws(l),Ws(t)!==l&&(o.style=uy(e)))}}function Do(e,t,o,l,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(mt(l,t),e===""+l)return}da(t,e,l,d)}function GL(e,t,o,l,u,d){if(u.delete(o),e=e.getAttribute(o),e===null){switch(typeof l){case"function":case"symbol":return}if(!l)return}else switch(typeof l){case"function":case"symbol":break;default:if(l)return}da(t,e,l,d)}function cy(e,t,o,l,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof l){case"undefined":case"function":case"symbol":return}else if(l!=null)switch(typeof l){case"function":case"symbol":break;default:if(mt(l,o),e===""+l)return}da(t,e,l,d)}function YL(e,t,o,l,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(l))return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(!isNaN(l)&&(mt(l,t),e===""+l))return}da(t,e,l,d)}function dy(e,t,o,l,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(mt(l,t),o=Du(""+l),e===o)return}da(t,e,l,d)}function XL(e,t,o,l){for(var u={},d=new Set,m=e.attributes,y=0;y<m.length;y++)switch(m[y].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(m[y].name)}if(_u(t)){for(var v in o)if(o.hasOwnProperty(v)){var L=o[v];if(L!=null){if(hi.hasOwnProperty(v))typeof L!=="function"&&Rn(v,L);else if(o.suppressHydrationWarning!==!0)switch(v){case"children":typeof L!=="string"&&typeof L!=="number"||da("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=FL(e,L),da(v,m,L,u));continue;case"style":d.delete(v),jL(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=Av(e,"class",L),da("className",m,L,u);continue;default:l.context===vs&&t!=="svg"&&t!=="math"?d.delete(v.toLowerCase()):d.delete(v),m=Av(e,v,L),da(v,m,L,u)}}}}else for(L in o)if(o.hasOwnProperty(L)&&(v=o[L],v!=null)){if(hi.hasOwnProperty(L))typeof v!=="function"&&Rn(L,v);else if(o.suppressHydrationWarning!==!0)switch(L){case"children":typeof v!=="string"&&typeof v!=="number"||da("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=FL(e,v),m!==v&&(u[L]={__html:m}));continue;case"className":Do(e,L,"class",v,d,u);continue;case"tabIndex":Do(e,L,"tabindex",v,d,u);continue;case"style":d.delete(L),jL(e,v,u);continue;case"multiple":d.delete(L),da(L,e.multiple,v,u);continue;case"muted":d.delete(L),da(L,e.muted,v,u);continue;case"autoFocus":d.delete("autofocus"),da(L,e.autofocus,v,u);continue;case"data":if(t!=="object"){d.delete(L),m=e.getAttribute("data"),da(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}dy(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===_D){d.delete(L.toLowerCase()),da(L,"function",v,u);continue}dy(e,L,L.toLowerCase(),v,d,u);continue;case"xlinkHref":dy(e,L,"xlink:href",v,d,u);continue;case"contentEditable":cy(e,L,"contenteditable",v,d,u);continue;case"spellCheck":cy(e,L,"spellcheck",v,d,u);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":cy(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":GL(e,L,L.toLowerCase(),v,d,u);continue;case"capture":case"download":e:{y=e;var O=m=L,P=u;if(d.delete(O),y=y.getAttribute(O),y===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&&y==="")break e;break;default:if(mt(v,m),y===""+v)break e}da(m,y,v,P)}continue;case"cols":case"rows":case"size":case"span":e:{if(y=e,O=m=L,P=u,d.delete(O),y=y.getAttribute(O),y===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),y===""+v))break e}da(m,y,v,P)}continue;case"rowSpan":YL(e,L,"rowspan",v,d,u);continue;case"start":YL(e,L,L,v,d,u);continue;case"xHeight":Do(e,L,"x-height",v,d,u);continue;case"xlinkActuate":Do(e,L,"xlink:actuate",v,d,u);continue;case"xlinkArcrole":Do(e,L,"xlink:arcrole",v,d,u);continue;case"xlinkRole":Do(e,L,"xlink:role",v,d,u);continue;case"xlinkShow":Do(e,L,"xlink:show",v,d,u);continue;case"xlinkTitle":Do(e,L,"xlink:title",v,d,u);continue;case"xlinkType":Do(e,L,"xlink:type",v,d,u);continue;case"xmlBase":Do(e,L,"xml:base",v,d,u);continue;case"xmlLang":Do(e,L,"xml:lang",v,d,u);continue;case"xmlSpace":Do(e,L,"xml:space",v,d,u);continue;case"inert":v!==""||rp[L]||(rp[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)),GL(e,L,L,v,d,u);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){y=$v(L),m=!1,l.context===vs&&t!=="svg"&&t!=="math"?d.delete(y.toLowerCase()):(O=L.toLowerCase(),O=vh.hasOwnProperty(O)?vh[O]||null:null,O!==null&&O!==L&&(m=!0,d.delete(O)),d.delete(y));e:if(O=e,P=y,y=v,Iu(P))if(O.hasAttribute(P))O=O.getAttribute(P),mt(y,P),y=O===""+y?y:O;else{switch(typeof y){case"function":case"symbol":break e;case"boolean":if(O=P.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}y=y===void 0?void 0:null}else y=void 0;m||da(L,y,v,u)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&yR(e,d,u),Object.keys(u).length===0?null:u}function xR(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 $L(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vR(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,o=performance.getEntriesByType("resource"),l=0;l<o.length;l++){var u=o[l],d=u.transferSize,m=u.initiatorType,y=u.duration;if(d&&y&&$L(m)){m=0,y=u.responseEnd;for(l+=1;l<o.length;l++){var v=o[l],L=v.startTime;if(L>y)break;var{transferSize:O,initiatorType:P}=v;O&&$L(P)&&(v=v.responseEnd,m+=O*(v<y?1:(y-L)/(v-L)))}if(--l,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 ah(e){return e.nodeType===9?e:e.ownerDocument}function WL(e){switch(e){case kr:return su;case xh:return cp;default:return vs}}function ZL(e,t){if(e===vs)switch(t){case"svg":return su;case"math":return cp;default:return vs}return e===su&&t==="foreignObject"?vs:e}function fy(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 SR(){var e=window.event;if(e&&e.type==="popstate"){if(e===$b)return!1;return $b=e,!0}return $b=null,!1}function oc(){var e=window.event;return e&&e!==Jc?e.type:null}function nc(){var e=window.event;return e&&e!==Jc?e.timeStamp:-1.1}function LR(e){setTimeout(function(){throw e})}function CR(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 TR(){}function wR(e,t,o,l){bR(e,t,o,l),e[za]=l}function QL(e){Ru(e,"")}function MR(e,t,o){e.nodeValue=o}function KL(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,le(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,le(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 Zs(e){return e==="head"}function IR(e,t){e.removeChild(t)}function AR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function JL(e,t){var o=t,l=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o===Kc||o===up){if(l===0){e.removeChild(u),Cr(t);return}l--}else if(o===Qc||o===vl||o===Di||o===nu||o===_i)l++;else if(o===ED)sc(e.ownerDocument.documentElement);else if(o===PD){o=e.ownerDocument.head,sc(o);for(var d=o.firstChild;d;){var{nextSibling:m,nodeName:y}=d;d[fc]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&d.rel.toLowerCase()==="stylesheet"||o.removeChild(d),d=m}}else o===OD&&sc(e.ownerDocument.body);o=u}while(o);Cr(t)}function eC(e,t){var o=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(o=l.data,o===Kc)if(e===0)break;else e--;else o!==Qc&&o!==vl&&o!==Di&&o!==nu||e++;o=l}while(o)}function kR(e){eC(e,!0)}function RR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function _R(e){e.nodeValue=""}function DR(e){eC(e,!1)}function ER(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 OR(e,t){e.nodeValue=t}function hy(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":hy(o),ae(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function PR(e,t,o,l){for(;e.nodeType===1;){var u=o;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!l)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[fc])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 BR(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 tC(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 py(e){return e.data===vl||e.data===Di}function my(e){return e.data===nu||e.data===vl&&e.ownerDocument.readyState!==jT}function NR(e,t){var o=e.ownerDocument;if(e.data===Di)e._reactRetry=t;else if(e.data!==vl||o.readyState!==jT)t();else{var l=function(){t(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}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===Qc||t===nu||t===vl||t===Di||t===_i||t===Gb||t===VT)break;if(t===Kc||t===up)return null}}return e}function aC(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),o={},l=e.attributes,u=0;u<l.length;u++){var d=l[u];o[VL(d.name)]=d.name.toLowerCase()==="style"?uy(e):d.value}return{type:t,props:o}}return e.nodeType===8?e.data===_i?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function oC(e,t,o){return o===null||o[DD]!==!0?(e.nodeValue===t?e=null:(t=Ws(t),e=Ws(e.nodeValue)===t?null:e.nodeValue),e):null}function gy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Kc||o===up){if(t===0)return xo(e.nextSibling);t--}else o!==Qc&&o!==nu&&o!==vl&&o!==Di&&o!==_i||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===Qc||o===nu||o===vl||o===Di||o===_i){if(t===0)return e;t--}else o!==Kc&&o!==up||t++}e=e.previousSibling}return null}function zR(e){Cr(e)}function UR(e){Cr(e)}function HR(e){Cr(e)}function sC(e,t,o,l,u){switch(u&&Im(e,l.ancestorInfo),t=ah(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 FR(e,t,o,l){if(!o[el]&&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]);xa(o,e,t),o[va]=l,o[za]=t}function sc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ae(e)}function oh(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function lC(e,t,o){var l=lu;if(l&&typeof t==="string"&&t){var u=_o(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof o==="string"&&(u+='[crossorigin="'+o+'"]'),ZT.has(u)||(ZT.add(u),e={rel:e,crossOrigin:o,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),xa(t,"link",e),ve(t),l.head.appendChild(t)))}}function iC(e,t,o,l){var u=(u=Ks.current)?oh(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=Sr(o.href),t=nt(u).hoistableStyles,l=t.get(o),l||(l={type:"style",instance:null,count:0,state:null},t.set(o,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href==="string"&&typeof o.precedence==="string"){e=Sr(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:Oi,preload:null}},d.set(e,m),(d=u.querySelector(lc(e)))&&!d._p&&(m.instance=d,m.state.loading=ed|Vo),!jo.has(e))){var y={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};jo.set(e,y),d||qR(u,e,y,m.state)}if(t&&l===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`,q(e))})}function Rn(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:y}=i;d=(1<<31-Na(42|e)+1)-1,d&=u&~(m&~y),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 gR(){ed=window.event,oy()}function oy(){sp=qb=Fb=!1;var e=0;vi!==0&&CR()&&(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),y=1<<m,v=u[m];if(v===-1){if((y&o)===0||(y&i)!==0)u[m]=Sm(y,t)}else v<=t&&(e.expiredLanes|=y);d&=~y}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 Nn: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&&s_(e)}function NL(){H.actQueue!==null&&H.actQueue.push(function(){return oy(),null}),HD(function(){(ot&(ia|Io))!==pa?Ny(zy,gR):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 yR(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 y=new Th("action","action",null,i,u);e.push({event:y,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"&&(y.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 y=i[m],v=y.instance,L=y.currentTarget;if(y=y.listener,v!==u&&d.isPropagationStopped())break e;v!==null?ie(v,ah,d,y,L):ah(d,y,L),u=v}else for(m=0;m<i.length;m++){if(y=i[m],v=y.instance,L=y.currentTarget,y=y.listener,v!==u&&d.isPropagationStopped())break e;v!==null?ie(v,ah,d,y,L):ah(d,y,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=QR;break;case sn:u=KR;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 y=i.stateNode.containerInfo;if(y===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(;y!==null;){if(m=ue(y),m===null)return;if(v=m.tag,v===5||v===6||v===26||v===27){i=d=m;continue e}y=y.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=Y_;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=O_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=W_;break;case g1:case y1:case b1:N=N_;break;case x1:N=Q_;break;case"scroll":case"scrollend":N=D_;break;case"wheel":N=J_;break;case"copy":case"cut":case"paste":N=U_;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=tD}var se=(t&4)!==0,Ct=!se&&(e==="scroll"||e==="scrollend"),tt=se?A!==null?A+"Capture":null:A;se=[];for(var I=L,k;I!==null;){var E=I;if(k=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||k===null||tt===null||(E=Ou(I,tt),E!=null&&se.push(oc(I,E,k))),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),k=te==null?A:Ee(te),A=new se(E,I+"leave",N,o,O),A.target=Ct,A.relatedTarget=k,E=null,ue(O)===L&&(se=new se(tt,I+"enter",te,o,O),se.target=k,se.relatedTarget=Ct,E=se),Ct=E,N&&te)t:{se=bR,tt=N,I=te,k=0;for(E=tt;E;E=se(E))k++;E=0;for(var F=I;F;F=se(F))E++;for(;0<k-E;)tt=se(tt),k--;for(;0<E-k;)I=se(I),E--;for(;k--;){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=Rk;else{oe=Ak;var Re=Mk}else N=A.nodeName,!N||N.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?L&&Du(L.elementType)&&(oe=s0):oe=kk;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(sD)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=oD?Ck(e,o):Tk(e,o))fe=oh(L,"onBeforeInput"),0<fe.length&&(Re=new F_("onBeforeInput","beforeinput",null,o,O),P.push({event:Re,listeners:fe}),Re.data=xe);yR(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 bR(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 y=o,v=y.alternate,L=y.stateNode;if(y=y.tag,v!==null&&v===i)break;y!==5&&y!==26&&y!==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){xk(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"||Sk(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 xR(e,t,o){t.forEach(function(i){o[GL(i)]=i==="style"?dy(e):e.getAttribute(i)})}function _n(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(_D,`
|
|
176
|
+
`).replace(DD,"")}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"&&_n(o,i),e.onclick=Jn);break;case"onScroll":i!=null&&(typeof i!=="function"&&_n(o,i),et("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&_n(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"&&_n(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"&&_n(o,i),et("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&_n(o,i),et("scrollend",e));break;case"onClick":i!=null&&(typeof i!=="function"&&_n(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"&&_n(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 y=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":y=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,y,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)&&(y=o[u],y!=null))switch(u){case"value":d=y;break;case"defaultValue":m=y;break;case"multiple":i=y;default:yt(e,t,u,y,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)&&(y=o[m],y!=null))switch(m){case"value":i=y;break;case"defaultValue":u=y;break;case"children":d=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:yt(e,t,m,y,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(y in o)o.hasOwnProperty(y)&&(i=o[y],i!=null&&yt(e,t,y,i,o,null))}function vR(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,y=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":y=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,y,v,L,O,d,u);return;case"select":N=m=y=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":y=d;break;case"multiple":m=d;default:d!==v&&yt(e,t,u,d,i,v)}i=y,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(y in o)if(u=o[y],o.hasOwnProperty(y)&&u!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:yt(e,t,y,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,y=0;y<m.length;y++)switch(m[y].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(m[y].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"&&_n(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"&&_n(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===ED){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:{y=e;var O=m=L,P=u;if(d.delete(O),y=y.getAttribute(O),y===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&&y==="")break e;break;default:if(mt(v,m),y===""+v)break e}ca(m,y,v,P)}continue;case"cols":case"rows":case"size":case"span":e:{if(y=e,O=m=L,P=u,d.delete(O),y=y.getAttribute(O),y===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),y===""+v))break e}ca(m,y,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"){y=Zv(L),m=!1,i.context===Ss&&t!=="svg"&&t!=="math"?d.delete(y.toLowerCase()):(O=L.toLowerCase(),O=Lh.hasOwnProperty(O)?Lh[O]||null:null,O!==null&&O!==L&&(m=!0,d.delete(O)),d.delete(y));e:if(O=e,P=y,y=v,Au(P))if(O.hasAttribute(P))O=O.getAttribute(P),mt(y,P),y=O===""+y?y:O;else{switch(typeof y){case"function":case"symbol":break e;case"boolean":if(O=P.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}y=y===void 0?void 0:null}else y=void 0;m||ca(L,y,v,u)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&xR(e,d,u),Object.keys(u).length===0?null:u}function SR(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 LR(){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,y=u.duration;if(d&&y&&ZL(m)){m=0,y=u.responseEnd;for(i+=1;i<o.length;i++){var v=o[i],L=v.startTime;if(L>y)break;var{transferSize:O,initiatorType:P}=v;O&&ZL(P)&&(v=v.responseEnd,m+=O*(v<y?1:(y-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 CR(){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 TR(e){setTimeout(function(){throw e})}function wR(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 IR(){}function MR(e,t,o,i){vR(e,t,o,i),e[za]=i}function JL(e){_u(e,"")}function AR(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 kR(e,t){e.removeChild(t)}function RR(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===PD)ic(e.ownerDocument.documentElement);else if(o===ND){o=e.ownerDocument.head,ic(o);for(var d=o.firstChild;d;){var{nextSibling:m,nodeName:y}=d;d[hc]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&d.rel.toLowerCase()==="stylesheet"||o.removeChild(d),d=m}}else o===BD&&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 _R(e){aC(e,!0)}function DR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function ER(e){e.nodeValue=""}function OR(e){aC(e,!1)}function PR(e,t){t=t[zD],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function BR(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 NR(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 zR(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 UR(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[OD]!==!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 HR(e){Tr(e)}function FR(e){Tr(e)}function qR(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 VR(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 y={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,y),d||jR(u,e,y,m.state)}if(t&&i===null)throw o=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
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=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+nh(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=Lr(o),t=nt(u).hoistableScripts,l=t.get(o),l||(l={type:"script",instance:null,count:0,state:null},t.set(o,l)),l):{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 nh(e){var t=0,o="<link";return typeof e.rel==="string"?(t++,o+=' rel="'+e.rel+'"'):on.call(e,"rel")&&(t++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,o+=' href="'+e.href+'"'):on.call(e,"href")&&(t++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,o+=' precedence="'+e.precedence+'"'):on.call(e,"precedence")&&(t++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(o+=" ..."),o+" />"}function Sr(e){return'href="'+_o(e)+'"'}function lc(e){return'link[rel="stylesheet"]['+e+"]"}function rC(e){return Xe({},e,{"data-precedence":e.precedence,precedence:null})}function qR(e,t,o,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=ed:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=ed}),t.addEventListener("error",function(){return l.loading|=$T}),xa(t,"link",o),ve(t),e.head.appendChild(t))}function Lr(e){return'[src="'+_o(e)+'"]'}function ic(e){return"script[async]"+e}function uC(e,t,o){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+_o(o.href)+'"]');if(l)return t.instance=l,ve(l),l;var u=Xe({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ve(l),xa(l,"style",u),sh(l,o.precedence,e),t.instance=l;case"stylesheet":u=Sr(o.href);var d=e.querySelector(lc(u));if(d)return t.state.loading|=Vo,t.instance=d,ve(d),d;l=rC(o),(u=jo.get(u))&&yy(l,u),d=(e.ownerDocument||e).createElement("link"),ve(d);var m=d;return m._p=new Promise(function(y,v){m.onload=y,m.onerror=v}),xa(d,"link",l),t.state.loading|=Vo,sh(d,o.precedence,e),t.instance=d;case"script":if(d=Lr(o.src),u=e.querySelector(ic(d)))return t.instance=u,ve(u),u;if(l=o,u=jo.get(d))l=Xe({},o),by(l,u);return e=e.ownerDocument||e,u=e.createElement("script"),ve(u),xa(u,"link",l),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&Vo)===Oi&&(l=t.instance,t.state.loading|=Vo,sh(l,o.precedence,e));return t.instance}function sh(e,t,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,d=u,m=0;m<l.length;m++){var y=l[m];if(y.dataset.precedence===t)d=y;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 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 by(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function cC(e,t,o){if(dp===null){var l=new Map,u=dp=new Map;u.set(o,l)}else u=dp,l=u.get(o),l||(l=new Map,u.set(o,l));if(l.has(e))return l;l.set(e,null),o=o.getElementsByTagName(e);for(u=0;u<o.length;u++){var d=o[u];if(!(d[fc]||d[va]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==kr){var m=d.getAttribute(t)||"";m=e+m;var y=l.get(m);y?y.push(d):l.set(m,[d])}}return l}function dC(e,t,o){e=e.ownerDocument||e,e.head.insertBefore(o,t==="title"?e.querySelector("head > title"):null)}function VR(e,t,o){var l=!o.ancestorInfo.containerTagInScope;if(o.context===su||t.itemProp!=null)return!l||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===""){l&&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=xR(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)}l&&(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"&&l&&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"){l&&(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":l&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function fC(e){return e.type==="stylesheet"&&(e.state.loading&WT)===Oi?!1:!0}function jR(e,t,o,l){if(o.type==="stylesheet"&&(typeof l.media!=="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&Vo)===Oi){if(o.instance===null){var u=Sr(l.href),d=t.querySelector(lc(u));if(d){t=d._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=lh.bind(e),t.then(e,e)),o.state.loading|=Vo,o.instance=d,ve(d);return}d=t.ownerDocument||t,l=rC(l),(u=jo.get(u))&&yy(l,u),d=d.createElement("link"),ve(d);var m=d;m._p=new Promise(function(y,v){m.onload=y,m.onerror=v}),xa(d,"link",l),o.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,t),(t=o.state.preload)&&(o.state.loading&WT)===Oi&&(e.count++,o=lh.bind(e),t.addEventListener("load",o),t.addEventListener("error",o))}}function GR(e,t){return e.stylesheets&&e.count===0&&ih(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var l=setTimeout(function(){if(e.stylesheets&&ih(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},UD+t);0<e.imgBytes&&Zb===0&&(Zb=125*vR()*FD);var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ih(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Zb?50:HD)+t);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function lh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ih(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ih(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fp=new Map,t.forEach(YR,e),fp=null,lh.call(e))}function YR(e,t){if(!(t.state.loading&Vo)){var o=fp.get(e);if(o)var l=o.get(Qb);else{o=new Map,fp.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),l=m}l&&o.set(Qb,l)}u=t.instance,m=u.getAttribute("data-precedence"),d=o.get(m)||l,d===l&&o.set(Qb,u),o.set(m,u),this.count++,l=lh.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=Vo}}function XR(e,t,o,l,u,d,m,y,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ei,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=l,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 hC(e,t,o,l,u,d,m,y,v,L,O,P){return e=new XR(e,t,o,m,v,L,O,P,y),t=fD,d===!0&&(t|=_a|sn),t|=Ue,d=S(3,null,null,t),e.current=d,d.stateNode=e,t=Ym(),li(t),e.pooledCache=t,li(t),d.memoizedState={element:l,isDehydrated:o,cache:t},Qm(d),e}function pC(e){if(!e)return nl;return e=nl,e}function xy(e,t,o,l,u,d){if(Ra&&typeof Ra.onScheduleFiberRoot==="function")try{Ra.onScheduleFiberRoot(Ir,l,o)}catch(m){On||(On=!0,console.error("React instrumentation encountered an error: %o",m))}u=pC(u),l.context===null?l.context=u:l.pendingContext=u,En&&So!==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.
|
|
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 jR(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(y,v){m.onload=y,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 y=i[m];if(y.dataset.precedence===t)d=y;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 y=i.get(m);y?y.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 GR(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=SR(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 YR(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(y,v){m.onload=y,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 XR(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()}},FD+t);0<e.imgBytes&&Kb===0&&(Kb=125*LR()*VD);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:qD)+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($R,e),pp=null,rh.call(e))}function $R(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 WR(e,t,o,i,u,d,m,y,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,y,v,L,O,P){return e=new WR(e,t,o,m,v,L,O,P,y),t=pD,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){Pn||(Pn=!0,console.error("React instrumentation encountered an error: %o",m))}u=gC(u),i.context===null?i.context=u:i.pendingContext=u,On&&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.
|
|
183
183
|
|
|
184
|
-
Check the render method of %s.`,q(So)||"Unknown")),l=Vs(t),l.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),l.callback=d),o=js(e,l,t),o!==null&&(bn(t,"root.render()",null),zt(o,e,t),Fu(o,e,t))}function mC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function vy(e,t){mC(e,t),(e=e.alternate)&&mC(e,t)}function gC(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&zt(t,e,67108864),vy(e,67108864)}}function yC(e){if(e.tag===13||e.tag===31){var t=bo(e);t=Ql(t);var o=ka(e,t);o!==null&&zt(o,e,t),vy(e,t)}}function $R(){return So}function WR(e,t,o,l){var u=H.T;H.T=null;var d=ct.p;try{ct.p=Lo,Sy(e,t,o,l)}finally{ct.p=d,H.T=u}}function ZR(e,t,o,l){var u=H.T;H.T=null;var d=ct.p;try{ct.p=nn,Sy(e,t,o,l)}finally{ct.p=d,H.T=u}}function Sy(e,t,o,l){if(pp){var u=Ly(l);if(u===null)ly(e,t,l,mp,o),xC(e,l);else if(QR(u,e,t,o,l))l.stopPropagation();else if(xC(e,l),t&4&&-1<VD.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=pn(d.pendingLanes);if(m!==0){var y=d;y.pendingLanes|=2;for(y.entangledLanes|=2;m;){var v=1<<31-Na(m);y.entanglements[1]|=v,m&=~v}kn(d),(ot&(ia|Mo))===ma&&(Qh=fa()+AT,tc(0,!1))}}break;case 31:case 13:y=ka(d,2),y!==null&&zt(y,d,2),br(),vy(d,2)}if(d=Ly(l),d===null&&ly(e,t,l,mp,o),d===u)break;u=d}u!==null&&l.stopPropagation()}else ly(e,t,l,null,o)}}function Ly(e){return e=Am(e),Cy(e)}function Cy(e){if(mp=null,e=ue(e),e!==null){var t=_(e);if(t===null)e=null;else{var o=t.tag;if(o===13){if(e=z(t),e!==null)return e;e=null}else if(o===31){if(e=V(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 mp=e,null}function bC(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 nn;case"message":switch(l_()){case By:return Lo;case Ny:return nn;case Mr:case i_:return Bn;case zy:return yh;default:return Bn}default:return Bn}}function xC(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":ad.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":od.delete(t.pointerId)}}function rc(e,t,o,l,u,d){if(e===null||e.nativeEvent!==d)return e={blockedOn:t,domEventName:o,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]},t!==null&&(t=De(t),t!==null&&gC(t)),e;return e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e}function QR(e,t,o,l,u){switch(t){case"focusin":return Sl=rc(Sl,e,t,o,l,u),!0;case"dragenter":return Ll=rc(Ll,e,t,o,l,u),!0;case"mouseover":return Cl=rc(Cl,e,t,o,l,u),!0;case"pointerover":var d=u.pointerId;return ad.set(d,rc(ad.get(d)||null,e,t,o,l,u)),!0;case"gotpointercapture":return d=u.pointerId,od.set(d,rc(od.get(d)||null,e,t,o,l,u)),!0}return!1}function vC(e){var t=ue(e.target);if(t!==null){var o=_(t);if(o!==null){if(t=o.tag,t===13){if(t=z(o),t!==null){e.blockedOn=t,Y(e.priority,function(){yC(o)});return}}else if(t===31){if(t=V(o),t!==null){e.blockedOn=t,Y(e.priority,function(){yC(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 rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Ly(e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o),u=l;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=u,o.target.dispatchEvent(l),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=De(o),t!==null&&gC(t),e.blockedOn=o,!1;t.shift()}return!0}function SC(e,t,o){rh(e)&&o.delete(t)}function KR(){Kb=!1,Sl!==null&&rh(Sl)&&(Sl=null),Ll!==null&&rh(Ll)&&(Ll=null),Cl!==null&&rh(Cl)&&(Cl=null),ad.forEach(SC),od.forEach(SC)}function uh(e,t){e.blockedOn===t&&(e.blockedOn=null,Kb||(Kb=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,KR)))}function LC(e){gp!==e&&(gp=e,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,function(){gp===e&&(gp=null);for(var t=0;t<e.length;t+=3){var o=e[t],l=e[t+1],u=e[t+2];if(typeof l!=="function")if(Cy(l||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:l},Object.freeze(o),Cg(d,o,l,u))}}))}function Cr(e){function t(v){return uh(v,e)}Sl!==null&&uh(Sl,e),Ll!==null&&uh(Ll,e),Cl!==null&&uh(Cl,e),ad.forEach(t),od.forEach(t);for(var o=0;o<Tl.length;o++){var l=Tl[o];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Tl.length&&(o=Tl[0],o.blockedOn===null);)vC(o),o.blockedOn===null&&Tl.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var u=o[l],d=o[l+1],m=u[za]||null;if(typeof d==="function")m||LC(o);else if(m){var y=null;if(d&&d.hasAttribute("formAction")){if(u=d,m=d[za]||null)y=m.formAction;else if(Cy(u)!==null)continue}else y=m.action;typeof y==="function"?o[l+1]=y:(o.splice(l,3),l-=3),LC(o)}}}function CC(){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),l||setTimeout(o,20)}function o(){if(!l&&!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 l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(o,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Ty(e){this._internalRoot=e}function ch(e){this._internalRoot=e}function TC(e){e[el]&&(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,JR=Symbol.for("react.element"),_n=Symbol.for("react.transitional.element"),Tr=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),dh=Symbol.for("react.strict_mode"),wy=Symbol.for("react.profiler"),My=Symbol.for("react.consumer"),Dn=Symbol.for("react.context"),uc=Symbol.for("react.forward_ref"),Iy=Symbol.for("react.suspense"),Ay=Symbol.for("react.suspense_list"),fh=Symbol.for("react.memo"),vo=Symbol.for("react.lazy"),ky=Symbol.for("react.activity"),e_=Symbol.for("react.memo_cache_sentinel"),wC=Symbol.iterator,t_=Symbol.for("react.client.reference"),sa=Array.isArray,H=bu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ct=rv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,a_=Object.freeze({pending:!1,data:null,method:null,action:null}),Ry=[],_y=[],ls=-1,Qs=he(null),cc=he(null),Ks=he(null),hh=he(null),dc=0,MC,IC,AC,kC,RC,_C,DC;D.__reactDisabledLog=!0;var Dy,EC,Ey=!1,Oy=new(typeof WeakMap==="function"?WeakMap:Map),So=null,En=!1,on=Object.prototype.hasOwnProperty,Py=lt.unstable_scheduleCallback,o_=lt.unstable_cancelCallback,n_=lt.unstable_shouldYield,s_=lt.unstable_requestPaint,fa=lt.unstable_now,l_=lt.unstable_getCurrentPriorityLevel,By=lt.unstable_ImmediatePriority,Ny=lt.unstable_UserBlockingPriority,Mr=lt.unstable_NormalPriority,i_=lt.unstable_LowPriority,zy=lt.unstable_IdlePriority,r_=lt.log,u_=lt.unstable_setDisableYieldValue,Ir=null,Ra=null,On=!1,Pn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Na=Math.clz32?Math.clz32:ef,c_=Math.log,d_=Math.LN2,ph=256,mh=262144,gh=4194304,Lo=2,nn=8,Bn=32,yh=268435456,Js=Math.random().toString(36).slice(2),va="__reactFiber$"+Js,za="__reactProps$"+Js,el="__reactContainer$"+Js,Uy="__reactEvents$"+Js,f_="__reactListeners$"+Js,h_="__reactHandles$"+Js,OC="__reactResources$"+Js,fc="__reactMarker$"+Js,PC=new Set,hi={},Hy={},p_={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},m_=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]*$"),BC={},NC={},g_=/[\n"\\]/g,zC=!1,UC=!1,HC=!1,FC=!1,qC=!1,VC=!1,jC=["value","defaultValue"],GC=!1,YC=/["'&<>\n\t]|^\s|\s$/,y_="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(" "),XC="applet caption html table td th marquee object template foreignObject desc title".split(" "),b_=XC.concat(["button"]),x_="dd dt li option optgroup p rp rt".split(" "),$C={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},bh={},Fy={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"]},WC=/([A-Z])/g,ZC=/^ms-/,v_=/^(?:webkit|moz|o)[A-Z]/,S_=/^-ms-/,L_=/-(.)/g,QC=/;\s*$/,Ar={},qy={},KC=!1,JC=!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(" ")),xh="http://www.w3.org/1998/Math/MathML",kr="http://www.w3.org/2000/svg",C_=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"]]),vh={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"},t1={"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},Rr={},T_=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]*$"),w_=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]*$"),a1=!1,Ua={},o1=/^on./,M_=/^on[^A-Z]/,I_=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]*$"),k_=/^[\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,_r=null,Dr=null,Vy=!1,Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jy=!1;if(Nn)try{var pc={};Object.defineProperty(pc,"passive",{get:function(){jy=!0}}),window.addEventListener("test",pc,pc),window.removeEventListener("test",pc,pc)}catch(e){jy=!1}var tl=null,Gy=null,Sh=null,pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lh=Ga(pi),mc=Xe({},pi,{view:0,detail:0}),R_=Ga(mc),Yy,Xy,gc,Ch=Xe({},mc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:km,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!==gc&&(gc&&e.type==="mousemove"?(Yy=e.screenX-gc.screenX,Xy=e.screenY-gc.screenY):Xy=Yy=0,gc=e),Yy},movementY:function(e){return"movementY"in e?e.movementY:Xy}}),n1=Ga(Ch),__=Xe({},Ch,{dataTransfer:0}),D_=Ga(__),E_=Xe({},mc,{relatedTarget:0}),$y=Ga(E_),O_=Xe({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),P_=Ga(O_),B_=Xe({},pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N_=Ga(B_),z_=Xe({},pi,{data:0}),s1=Ga(z_),U_=s1,H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F_={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"},q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},V_=Xe({},mc,{key:function(e){if(e.key){var t=H_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:km,charCode:function(e){return e.type==="keypress"?rf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j_=Ga(V_),G_=Xe({},Ch,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l1=Ga(G_),Y_=Xe({},mc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:km}),X_=Ga(Y_),$_=Xe({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=Ga($_),Z_=Xe({},Ch,{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}),Q_=Ga(Z_),K_=Xe({},pi,{newState:0,oldState:0}),J_=Ga(K_),eD=[9,13,27,32],i1=229,Wy=Nn&&"CompositionEvent"in window,yc=null;Nn&&"documentMode"in document&&(yc=document.documentMode);var tD=Nn&&"TextEvent"in window&&!yc,r1=Nn&&(!Wy||yc&&8<yc&&11>=yc),u1=32,c1=String.fromCharCode(u1),d1=!1,Er=!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},bc=null,xc=null,f1=!1;Nn&&(f1=Ck("input")&&(!document.documentMode||9<document.documentMode));var Ha=typeof Object.is==="function"?Object.is:kk,oD=Nn&&"documentMode"in document&&11>=document.documentMode,Or=null,Zy=null,vc=null,Qy=!1,Pr={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionrun:Jl("Transition","TransitionRun"),transitionstart:Jl("Transition","TransitionStart"),transitioncancel:Jl("Transition","TransitionCancel"),transitionend:Jl("Transition","TransitionEnd")},Ky={},h1={};Nn&&(h1=document.createElement("div").style,("AnimationEvent"in window)||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),("TransitionEvent"in window)||delete Pr.transitionend.transition);var p1=ei("animationend"),m1=ei("animationiteration"),g1=ei("animationstart"),nD=ei("transitionrun"),sD=ei("transitionstart"),lD=ei("transitioncancel"),y1=ei("transitionend"),b1=new Map,Jy="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(" ");Jy.push("scrollEnd");var x1=0;if(typeof performance==="object"&&typeof performance.now==="function")var iD=performance,v1=function(){return iD.now()};else{var rD=Date;v1=function(){return rD.now()}}var eb=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.",Th=0,tb=1,ab=2,ob=3,wh="– ",Mh="+ ",S1=" ",Mt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Eo="Components ⚛",$e="Scheduler ⚛",Ze="Blocking",al=!1,is={color:"primary",properties:null,tooltipText:"",track:Eo},ol={start:-0,end:-0,detail:{devtools:is}},cD=["Changed Props",""],L1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dD=["Changed Props",L1],Sc=1,rs=2,Oo=[],Br=0,nb=0,nl={};Object.freeze(nl);var Po=null,Nr=null,Ae=0,fD=1,Ue=2,_a=8,sn=16,hD=32,C1=!1;try{var T1=Object.preventExtensions({})}catch(e){C1=!0}var sb=new WeakMap,zr=[],Ur=0,Ih=null,Lc=0,Bo=[],No=0,mi=null,us=1,cs="",Sa=null,It=null,Ke=!1,zn=!1,Co=null,sl=null,zo=!1,lb=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."),ib=he(null),rb=he(null),w1={},Ah=null,Hr=null,Fr=!1,pD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(o,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(o){return o()})}},mD=lt.unstable_scheduleCallback,gD=lt.unstable_NormalPriority,Qt={$$typeof:Dn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Kt=lt.unstable_now,kh=console.createTask?console.createTask:function(){return null},Cc=1,Rh=2,ha=-0,ll=-0,ds=-0,fs=null,Fa=-1.1,gi=-0,Ot=-0,Se=-1.1,Ce=-1.1,Et=null,Ut=!1,il=-0,Un=-1.1,Tc=null,rl=0,ub=null,cb=null,yi=-1.1,wc=null,qr=-1.1,_h=-1.1,Hn=-0,hs=-1.1,Uo=-1.1,db=0,Mc=null,M1=null,I1=null,ul=-1.1,bi=null,cl=-1.1,Dh=-1.1,A1=-0,k1=-0,Eh=0,ps=null,R1=0,Ic=-1.1,Oh=!1,Ph=!1,Ac=null,fb=0,xi=0,Vr=null,_1=H.S;H.S=function(e,t){if(MT=fa(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>hs&&0>Uo){hs=Kt();var o=nc(),l=oc();if(o!==cl||l!==bi)cl=-1.1;ul=o,bi=l}Bk(e,t)}_1!==null&&_1(e,t)};var vi=he(null),ln={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},kc=[],Rc=[],_c=[],Dc=[],Ec=[],Oc=[],Si=new Set;ln.recordUnsafeLifecycleWarnings=function(e,t){Si.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&kc.push(e),e.mode&_a&&typeof t.UNSAFE_componentWillMount==="function"&&Rc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&_c.push(e),e.mode&_a&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Dc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ec.push(e),e.mode&_a&&typeof t.UNSAFE_componentWillUpdate==="function"&&Oc.push(e))},ln.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<kc.length&&(kc.forEach(function(y){e.add(q(y)||"Component"),Si.add(y.type)}),kc=[]);var t=new Set;0<Rc.length&&(Rc.forEach(function(y){t.add(q(y)||"Component"),Si.add(y.type)}),Rc=[]);var o=new Set;0<_c.length&&(_c.forEach(function(y){o.add(q(y)||"Component"),Si.add(y.type)}),_c=[]);var l=new Set;0<Dc.length&&(Dc.forEach(function(y){l.add(q(y)||"Component"),Si.add(y.type)}),Dc=[]);var u=new Set;0<Ec.length&&(Ec.forEach(function(y){u.add(q(y)||"Component"),Si.add(y.type)}),Ec=[]);var d=new Set;if(0<Oc.length&&(Oc.forEach(function(y){d.add(q(y)||"Component"),Si.add(y.type)}),Oc=[]),0<t.size){var m=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
184
|
+
Check the render method of %s.`,q(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&&(xn(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 ZR(){return So}function QR(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 KR(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(JR(u,e,t,o,i))i.stopPropagation();else if(SC(e,i),t&4&&-1<GD.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=mn(d.pendingLanes);if(m!==0){var y=d;y.pendingLanes|=2;for(y.entangledLanes|=2;m;){var v=1<<31-Na(m);y.entanglements[1]|=v,m&=~v}Rn(d),(ot&(ia|Io))===pa&&(Jh=da()+RT,ac(0,!1))}}break;case 31:case 13:y=Ra(d,2),y!==null&&Nt(y,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=z(t),e!==null)return e;e=null}else if(o===31){if(e=V(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(r_()){case zy:return Lo;case Uy:return sn;case Mr:case u_:return Nn;case Hy:return xh;default:return Nn}default:return Nn}}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 JR(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=z(o),t!==null){e.blockedOn=t,Y(e.priority,function(){xC(o)});return}}else if(t===31){if(t=V(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 e_(){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,e_)))}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 y=null;if(d&&d.hasAttribute("formAction")){if(u=d,m=d[za]||null)y=m.formAction;else if(wy(u)!==null)continue}else y=m.action;typeof y==="function"?o[i+1]=y:(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,t_=Symbol.for("react.element"),Dn=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"),En=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"),a_=Symbol.for("react.memo_cache_sentinel"),MC=Symbol.iterator,o_=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,n_=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,On=!1,nn=Object.prototype.hasOwnProperty,Ny=it.unstable_scheduleCallback,s_=it.unstable_cancelCallback,i_=it.unstable_shouldYield,l_=it.unstable_requestPaint,da=it.unstable_now,r_=it.unstable_getCurrentPriorityLevel,zy=it.unstable_ImmediatePriority,Uy=it.unstable_UserBlockingPriority,Mr=it.unstable_NormalPriority,u_=it.unstable_LowPriority,Hy=it.unstable_IdlePriority,c_=it.log,d_=it.unstable_setDisableYieldValue,Ar=null,_a=null,Pn=!1,Bn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Na=Math.clz32?Math.clz32:af,f_=Math.log,h_=Math.LN2,gh=256,yh=262144,bh=4194304,Lo=2,sn=8,Nn=32,xh=268435456,ei=Math.random().toString(36).slice(2),Sa="__reactFiber$"+ei,za="__reactProps$"+ei,ti="__reactContainer$"+ei,Fy="__reactEvents$"+ei,p_="__reactListeners$"+ei,m_="__reactHandles$"+ei,BC="__reactResources$"+ei,hc="__reactMarker$"+ei,NC=new Set,pl={},qy={},g_={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},y_=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={},b_=/[\n"\\]/g,HC=!1,FC=!1,qC=!1,VC=!1,jC=!1,GC=!1,YC=["value","defaultValue"],XC=!1,$C=/["'&<>\n\t]|^\s|\s$/,x_="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(" "),v_=WC.concat(["button"]),S_="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-/,L_=/^(?:webkit|moz|o)[A-Z]/,C_=/^-ms-/,T_=/-(.)/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",w_=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={},I_=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]*$"),M_=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./,A_=/^on[^A-Z]/,k_=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]*$"),R_=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]*$"),__=/^[\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,zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yy=!1;if(zn)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}),D_=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),E_=Xe({},wh,{dataTransfer:0}),O_=Ga(E_),P_=Xe({},gc,{relatedTarget:0}),Zy=Ga(P_),B_=Xe({},ml,{animationName:0,elapsedTime:0,pseudoElement:0}),N_=Ga(B_),z_=Xe({},ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U_=Ga(z_),H_=Xe({},ml,{data:0}),l1=Ga(H_),F_=l1,q_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V_={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"},j_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},G_=Xe({},gc,{key:function(e){if(e.key){var t=q_[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"?V_[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}}),Y_=Ga(G_),X_=Xe({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r1=Ga(X_),$_=Xe({},gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_m}),W_=Ga($_),Z_=Xe({},ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q_=Ga(Z_),K_=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}),J_=Ga(K_),eD=Xe({},ml,{newState:0,oldState:0}),tD=Ga(eD),aD=[9,13,27,32],u1=229,Qy=zn&&"CompositionEvent"in window,bc=null;zn&&"documentMode"in document&&(bc=document.documentMode);var oD=zn&&"TextEvent"in window&&!bc,c1=zn&&(!Qy||bc&&8<bc&&11>=bc),d1=32,f1=String.fromCharCode(d1),h1=!1,Or=!1,nD={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;zn&&(p1=wk("input")&&(!document.documentMode||9<document.documentMode));var Ha=typeof Object.is==="function"?Object.is:_k,sD=zn&&"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={};zn&&(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"),iD=tl("transitionrun"),lD=tl("transitionstart"),rD=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 uD=performance,L1=function(){return uD.now()};else{var cD=Date;L1=function(){return cD.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)},dD="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}},fD=["Changed Props",""],T1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",hD=["Changed Props",T1],Lc=1,us=2,Po=[],Nr=0,ib=0,si={};Object.freeze(si);var Bo=null,zr=null,Ae=0,pD=1,Ue=2,Da=8,ln=16,mD=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,Un=!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,gD=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()})}},yD=it.unstable_scheduleCallback,bD=it.unstable_NormalPriority,Zt={$$typeof:En,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,Hn=-1.1,wc=null,ui=0,db=null,fb=null,bl=-1.1,Ic=null,Vr=-1.1,Eh=-1.1,Fn=-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}zk(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(y){e.add(q(y)||"Component"),Ll.add(y.type)}),Rc=[]);var t=new Set;0<_c.length&&(_c.forEach(function(y){t.add(q(y)||"Component"),Ll.add(y.type)}),_c=[]);var o=new Set;0<Dc.length&&(Dc.forEach(function(y){o.add(q(y)||"Component"),Ll.add(y.type)}),Dc=[]);var i=new Set;0<Ec.length&&(Ec.forEach(function(y){i.add(q(y)||"Component"),Ll.add(y.type)}),Ec=[]);var u=new Set;0<Oc.length&&(Oc.forEach(function(y){u.add(q(y)||"Component"),Ll.add(y.type)}),Oc=[]);var d=new Set;if(0<Pc.length&&(Pc.forEach(function(y){d.add(q(y)||"Component"),Ll.add(y.type)}),Pc=[]),0<t.size){var m=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
185
|
|
|
186
186
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
187
|
|
|
188
|
-
Please update the following components: %s`,m)}0<
|
|
188
|
+
Please update the following components: %s`,m)}0<i.size&&(m=x(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.
|
|
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
|
|
@@ -210,48 +210,48 @@ Please update the following components: %s`,m)),0<u.size&&(m=x(u),console.warn(`
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,m))};var
|
|
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(q(u)||"Component"),O1.add(u.type)});var i=x(o);ie(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`,
|
|
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=On;On=!0;try{return e(t,o)}finally{On=i}}},mb=P1.react_stack_bottom_frame.bind(P1),B1={react_stack_bottom_frame:function(e){var t=On;On=!0;try{return e.render()}finally{On=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:""})}},xD=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}},vD=j1.react_stack_bottom_frame.bind(j1),G1={react_stack_bottom_frame:function(e,t,o){try{o()}catch(i){ut(e,t,i)}}},SD=G1.react_stack_bottom_frame.bind(G1),Y1={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},LD=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={};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 i=q(e),u=i||"null";if(!$1[u]){$1[u]=!0,o=o._owner,e=e._debugOwner;var d="";e&&typeof e.tag==="number"&&(u=q(e))&&(d=`
|
|
220
220
|
|
|
221
|
-
Check the render method of \``+u+"`."),d||
|
|
221
|
+
Check the render method of \``+u+"`."),d||i&&(d=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+l+">.");var m="";o!=null&&e!==o&&(l=null,typeof o.tag==="number"?l=q(o):typeof o.name==="string"&&(l=o.name),l&&(m=" It was passed a child from "+l+".")),le(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 Ci=H0(!0),W1=H0(!1),Z1=0,Q1=1,K1=2,yb=3,dl=!1,J1=!1,bb=null,xb=!1,Yr=he(null),Uh=he(0),To=he(null),Ho=null,Xr=1,Nc=2,Gt=he(0),Hh=0,Fo=1,qa=2,wo=4,Va=8,$r,eT=new Set,tT=new Set,vb=new Set,aT=new Set,ms=0,ke=null,xt=null,Jt=null,Fh=!1,Wr=!1,Ti=!1,qh=0,zc=0,gs=null,SD=0,LD=25,U=null,qo=null,ys=-1,Uc=!1,Hc={readContext:Dt,use:Xs,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Hc.useEffectEvent=Vt;var Sb=null,oT=null,Lb=null,nT=null,Fn=null,rn=null,Vh=null;Sb={readContext:function(e){return Dt(e)},use:Xs,useCallback:function(e,t){return U="useCallback",Ye(),dr(t),xg(e,t)},useContext:function(e){return U="useContext",Ye(),Dt(e)},useEffect:function(e,t){return U="useEffect",Ye(),dr(t),Bf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",Ye(),dr(o),bg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",Ye(),dr(t),ri(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",Ye(),dr(t),yg(e,t)},useMemo:function(e,t){U="useMemo",Ye(),dr(t);var o=H.H;H.H=Fn;try{return vg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",Ye();var l=H.H;H.H=Fn;try{return rg(e,t,o)}finally{H.H=l}},useRef:function(e){return U="useRef",Ye(),mg(e)},useState:function(e){U="useState",Ye();var t=H.H;H.H=Fn;try{return fg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",Ye()},useDeferredValue:function(e,t){return U="useDeferredValue",Ye(),Sg(e,t)},useTransition:function(){return U="useTransition",Ye(),Tg()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",Ye(),cg(e,t,o)},useId:function(){return U="useId",Ye(),wg()},useFormState:function(e,t){return U="useFormState",Ye(),_f(),hr(e,t)},useActionState:function(e,t){return U="useActionState",Ye(),hr(e,t)},useOptimistic:function(e){return U="useOptimistic",Ye(),hg(e)},useHostTransitionStatus:ui,useMemoCache:ii,useCacheRefresh:function(){return U="useCacheRefresh",Ye(),Mg()},useEffectEvent:function(e){return U="useEffectEvent",Ye(),gg(e)}},oT={readContext:function(e){return Dt(e)},use:Xs,useCallback:function(e,t){return U="useCallback",j(),xg(e,t)},useContext:function(e){return U="useContext",j(),Dt(e)},useEffect:function(e,t){return U="useEffect",j(),Bf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),bg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",j(),ri(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),yg(e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=Fn;try{return vg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var l=H.H;H.H=Fn;try{return rg(e,t,o)}finally{H.H=l}},useRef:function(e){return U="useRef",j(),mg(e)},useState:function(e){U="useState",j();var t=H.H;H.H=Fn;try{return fg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),Sg(e,t)},useTransition:function(){return U="useTransition",j(),Tg()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),cg(e,t,o)},useId:function(){return U="useId",j(),wg()},useActionState:function(e,t){return U="useActionState",j(),hr(e,t)},useFormState:function(e,t){return U="useFormState",j(),_f(),hr(e,t)},useOptimistic:function(e){return U="useOptimistic",j(),hg(e)},useHostTransitionStatus:ui,useMemoCache:ii,useCacheRefresh:function(){return U="useCacheRefresh",j(),Mg()},useEffectEvent:function(e){return U="useEffectEvent",j(),gg(e)}},Lb={readContext:function(e){return Dt(e)},use:Xs,useCallback:function(e,t){return U="useCallback",j(),Uf(e,t)},useContext:function(e){return U="useContext",j(),Dt(e)},useEffect:function(e,t){U="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),zf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=rn;try{return Hf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var l=H.H;H.H=rn;try{return fr(e,t,o)}finally{H.H=l}},useRef:function(){return U="useRef",j(),ft().memoizedState},useState:function(){U="useState",j();var e=H.H;H.H=rn;try{return fr(tn)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),rS(e,t)},useTransition:function(){return U="useTransition",j(),pS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),Ef(e,t,o)},useId:function(){return U="useId",j(),ft().memoizedState},useFormState:function(e){return U="useFormState",j(),_f(),Of(e)},useActionState:function(e){return U="useActionState",j(),Of(e)},useOptimistic:function(e,t){return U="useOptimistic",j(),K0(e,t)},useHostTransitionStatus:ui,useMemoCache:ii,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",j(),Nf(e)}},nT={readContext:function(e){return Dt(e)},use:Xs,useCallback:function(e,t){return U="useCallback",j(),Uf(e,t)},useContext:function(e){return U="useContext",j(),Dt(e)},useEffect:function(e,t){U="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),zf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=Vh;try{return Hf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var l=H.H;H.H=Vh;try{return Gu(e,t,o)}finally{H.H=l}},useRef:function(){return U="useRef",j(),ft().memoizedState},useState:function(){U="useState",j();var e=H.H;H.H=Vh;try{return Gu(tn)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),uS(e,t)},useTransition:function(){return U="useTransition",j(),mS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),Ef(e,t,o)},useId:function(){return U="useId",j(),ft().memoizedState},useFormState:function(e){return U="useFormState",j(),_f(),Pf(e)},useActionState:function(e){return U="useActionState",j(),Pf(e)},useOptimistic:function(e,t){return U="useOptimistic",j(),eS(e,t)},useHostTransitionStatus:ui,useMemoCache:ii,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",j(),Nf(e)}},Fn={readContext:function(e){return p(),Dt(e)},use:function(e){return h(),Xs(e)},useCallback:function(e,t){return U="useCallback",h(),Ye(),xg(e,t)},useContext:function(e){return U="useContext",h(),Ye(),Dt(e)},useEffect:function(e,t){return U="useEffect",h(),Ye(),Bf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),Ye(),bg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",h(),Ye(),ri(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),Ye(),yg(e,t)},useMemo:function(e,t){U="useMemo",h(),Ye();var o=H.H;H.H=Fn;try{return vg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),Ye();var l=H.H;H.H=Fn;try{return rg(e,t,o)}finally{H.H=l}},useRef:function(e){return U="useRef",h(),Ye(),mg(e)},useState:function(e){U="useState",h(),Ye();var t=H.H;H.H=Fn;try{return fg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",h(),Ye()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),Ye(),Sg(e,t)},useTransition:function(){return U="useTransition",h(),Ye(),Tg()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),Ye(),cg(e,t,o)},useId:function(){return U="useId",h(),Ye(),wg()},useFormState:function(e,t){return U="useFormState",h(),Ye(),hr(e,t)},useActionState:function(e,t){return U="useActionState",h(),Ye(),hr(e,t)},useOptimistic:function(e){return U="useOptimistic",h(),Ye(),hg(e)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:ui,useCacheRefresh:function(){return U="useCacheRefresh",Ye(),Mg()},useEffectEvent:function(e){return U="useEffectEvent",h(),Ye(),gg(e)}},rn={readContext:function(e){return p(),Dt(e)},use:function(e){return h(),Xs(e)},useCallback:function(e,t){return U="useCallback",h(),j(),Uf(e,t)},useContext:function(e){return U="useContext",h(),j(),Dt(e)},useEffect:function(e,t){U="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),j(),zf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",h(),j();var o=H.H;H.H=rn;try{return Hf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),j();var l=H.H;H.H=rn;try{return fr(e,t,o)}finally{H.H=l}},useRef:function(){return U="useRef",h(),j(),ft().memoizedState},useState:function(){U="useState",h(),j();var e=H.H;H.H=rn;try{return fr(tn)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",h(),j()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),j(),rS(e,t)},useTransition:function(){return U="useTransition",h(),j(),pS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),j(),Ef(e,t,o)},useId:function(){return U="useId",h(),j(),ft().memoizedState},useFormState:function(e){return U="useFormState",h(),j(),Of(e)},useActionState:function(e){return U="useActionState",h(),j(),Of(e)},useOptimistic:function(e,t){return U="useOptimistic",h(),j(),K0(e,t)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:ui,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",h(),j(),Nf(e)}},Vh={readContext:function(e){return p(),Dt(e)},use:function(e){return h(),Xs(e)},useCallback:function(e,t){return U="useCallback",h(),j(),Uf(e,t)},useContext:function(e){return U="useContext",h(),j(),Dt(e)},useEffect:function(e,t){U="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),j(),zf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",h(),j();var o=H.H;H.H=rn;try{return Hf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),j();var l=H.H;H.H=rn;try{return Gu(e,t,o)}finally{H.H=l}},useRef:function(){return U="useRef",h(),j(),ft().memoizedState},useState:function(){U="useState",h(),j();var e=H.H;H.H=rn;try{return Gu(tn)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",h(),j()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),j(),uS(e,t)},useTransition:function(){return U="useTransition",h(),j(),mS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),j(),Ef(e,t,o)},useId:function(){return U="useId",h(),j(),ft().memoizedState},useFormState:function(e){return U="useFormState",h(),j(),Pf(e)},useActionState:function(e){return U="useActionState",h(),j(),Pf(e)},useOptimistic:function(e,t){return U="useOptimistic",h(),j(),eS(e,t)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:ui,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",h(),j(),Nf(e)}};var sT={},lT=new Set,iT=new Set,rT=new Set,uT=new Set,cT=new Set,dT=new Set,fT=new Set,hT=new Set,pT=new Set,mT=new Set;Object.freeze(sT);var Cb={enqueueSetState:function(e,t,o){e=e._reactInternals;var l=bo(e),u=Vs(l);u.payload=t,o!==void 0&&o!==null&&(Ag(o),u.callback=o),t=js(e,u,l),t!==null&&(bn(l,"this.setState()",e),zt(t,e,l),Fu(t,e,l))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var l=bo(e),u=Vs(l);u.tag=Q1,u.payload=t,o!==void 0&&o!==null&&(Ag(o),u.callback=o),t=js(e,u,l),t!==null&&(bn(l,"this.replaceState()",e),zt(t,e,l),Fu(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=bo(e),l=Vs(o);l.tag=K1,t!==void 0&&t!==null&&(Ag(t),l.callback=t),t=js(e,l,o),t!==null&&(bn(o,"this.forceUpdate()",e),zt(t,e,o),Fu(t,e,o))}},Zr=null,Tb=null,wb=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."),ea=!1,gT={},yT={},bT={},xT={},Qr=!1,vT={},jh={},Mb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ST=!1,LT=null;LT=new Set;var bs=!1,ta=!1,Ib=!1,CT=typeof WeakSet==="function"?WeakSet:Set,pa=null,Kr=null,Jr=null,aa=null,Wa=!1,un=null,la=!1,Fc=8192,CD={getCacheForType:function(e){var t=Dt(Qt),o=t.data.get(e);return o===void 0&&(o=e(),t.data.set(e,o)),o},cacheSignal:function(){return Dt(Qt).controller.signal},getOwner:function(){return So}};if(typeof Symbol==="function"&&Symbol.for){var qc=Symbol.for;qc("selector.component"),qc("selector.has_pseudo_class"),qc("selector.role"),qc("selector.test_id"),qc("selector.text")}var TD=[],wD=typeof WeakMap==="function"?WeakMap:Map,ma=0,ia=2,Mo=4,xs=0,Vc=1,wi=2,Gh=3,fl=4,Yh=6,TT=5,ot=ma,vt=null,qe=null,Fe=0,Za=0,Xh=1,Mi=2,jc=3,wT=4,Ab=5,Gc=6,$h=7,kb=8,Ii=9,ht=Za,Io=null,hl=!1,eu=!1,Rb=!1,qn=0,Pt=xs,pl=0,ml=0,_b=0,Qa=0,Ai=0,Yc=null,ja=null,Wh=!1,Zh=0,MT=0,IT=300,Qh=1/0,AT=500,Xc=null,jt=null,gl=null,Kh=0,Db=1,Eb=2,kT=3,yl=0,RT=1,_T=2,DT=3,ET=4,Jh=5,oa=0,bl=null,tu=null,cn=0,Ob=0,Pb=-0,Bb=null,OT=null,PT=null,dn=Kh,BT=null,MD=50,$c=0,Nb=null,zb=!1,ep=!1,ID=50,ki=0,Wc=null,au=!1,tp=null,NT=!1,zT=new Set,AD={},ap=null,ou=null,Ub=!1,Hb=!1,op=!1,Fb=!1,xl=0,qb={};(function(){for(var e=0;e<Jy.length;e++){var t=Jy[e],o=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),en(o,"on"+t)}en(p1,"onAnimationEnd"),en(m1,"onAnimationIteration"),en(g1,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(nD,"onTransitionRun"),en(sD,"onTransitionStart"),en(lD,"onTransitionCancel"),en(y1,"onTransitionEnd")})(),co("onMouseEnter",["mouseout","mouseover"]),co("onMouseLeave",["mouseout","mouseover"]),co("onPointerEnter",["pointerout","pointerover"]),co("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zc="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(" "),Vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zc)),np="_reactListening"+Math.random().toString(36).slice(2),UT=!1,HT=!1,sp=!1,FT=!1,lp=!1,ip=!1,qT=!1,rp={},kD=/\r\n?/g,RD=/\u0000|\uFFFD/g,Ri="http://www.w3.org/1999/xlink",jb="http://www.w3.org/XML/1998/namespace",_D="javascript:throw new Error('React form unexpectedly submitted.')",DD="suppressHydrationWarning",_i="&",up="/&",Qc="$",Kc="/$",vl="$?",Di="$~",nu="$!",ED="html",OD="body",PD="head",Gb="F!",VT="F",jT="loading",BD="style",vs=0,su=1,cp=2,Yb=null,Xb=null,GT={dialog:!0,webview:!0},$b=null,Jc=void 0,YT=typeof setTimeout==="function"?setTimeout:void 0,ND=typeof clearTimeout==="function"?clearTimeout:void 0,Ei=-1,XT=typeof Promise==="function"?Promise:void 0,zD=typeof queueMicrotask==="function"?queueMicrotask:typeof XT<"u"?function(e){return XT.resolve(null).then(e).catch(LR)}:YT,Wb=null,Oi=0,ed=1,$T=2,WT=3,Vo=4,jo=new Map,ZT=new Set,Ss=ct.d;ct.d={f:function(){var e=Ss.f(),t=br();return e||t},r:function(e){var t=De(e);t!==null&&t.tag===5&&t.type==="form"?hS(t):Ss.r(e)},D:function(e){Ss.D(e),lC("dns-prefetch",e,null)},C:function(e,t){Ss.C(e,t),lC("preconnect",e,t)},L:function(e,t,o){Ss.L(e,t,o);var l=lu;if(l&&e&&t){var u='link[rel="preload"][as="'+_o(t)+'"]';t==="image"?o&&o.imageSrcSet?(u+='[imagesrcset="'+_o(o.imageSrcSet)+'"]',typeof o.imageSizes==="string"&&(u+='[imagesizes="'+_o(o.imageSizes)+'"]')):u+='[href="'+_o(e)+'"]':u+='[href="'+_o(e)+'"]';var d=u;switch(t){case"style":d=Sr(e);break;case"script":d=Lr(e)}jo.has(d)||(e=Xe({rel:"preload",href:t==="image"&&o&&o.imageSrcSet?void 0:e,as:t},o),jo.set(d,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(lc(d))||t==="script"&&l.querySelector(ic(d))||(t=l.createElement("link"),xa(t,"link",e),ve(t),l.head.appendChild(t)))}},m:function(e,t){Ss.m(e,t);var o=lu;if(o&&e){var l=t&&typeof t.as==="string"?t.as:"script",u='link[rel="modulepreload"][as="'+_o(l)+'"][href="'+_o(e)+'"]',d=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Lr(e)}if(!jo.has(d)&&(e=Xe({rel:"modulepreload",href:e},t),jo.set(d,e),o.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ic(d)))return}l=o.createElement("link"),xa(l,"link",e),ve(l),o.head.appendChild(l)}}},X:function(e,t){Ss.X(e,t);var o=lu;if(o&&e){var l=nt(o).hoistableScripts,u=Lr(e),d=l.get(u);d||(d=o.querySelector(ic(u)),d||(e=Xe({src:e,async:!0},t),(t=jo.get(u))&&by(e,t),d=o.createElement("script"),ve(d),xa(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}},S:function(e,t,o){Ss.S(e,t,o);var l=lu;if(l&&e){var u=nt(l).hoistableStyles,d=Sr(e);t=t||"default";var m=u.get(d);if(!m){var y={loading:Oi,preload:null};if(m=l.querySelector(lc(d)))y.loading=ed|Vo;else{e=Xe({rel:"stylesheet",href:e,"data-precedence":t},o),(o=jo.get(d))&&yy(e,o);var v=m=l.createElement("link");ve(v),xa(v,"link",e),v._p=new Promise(function(L,O){v.onload=L,v.onerror=O}),v.addEventListener("load",function(){y.loading|=ed}),v.addEventListener("error",function(){y.loading|=$T}),y.loading|=Vo,sh(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:y},u.set(d,m)}}},M:function(e,t){Ss.M(e,t);var o=lu;if(o&&e){var l=nt(o).hoistableScripts,u=Lr(e),d=l.get(u);d||(d=o.querySelector(ic(u)),d||(e=Xe({src:e,async:!0,type:"module"},t),(t=jo.get(u))&&by(e,t),d=o.createElement("script"),ve(d),xa(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}};var lu=typeof document>"u"?null:document,dp=null,UD=60000,HD=800,FD=500,Zb=0,Qb=null,fp=null,Pi=a_,td={$$typeof:Dn,Provider:null,Consumer:null,_currentValue:Pi,_currentValue2:Pi,_threadCount:0},QT="%c%s%c",KT="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",JT="",hp=" ",qD=Function.prototype.bind,ew=!1,tw=null,aw=null,ow=null,nw=null,sw=null,lw=null,iw=null,rw=null,uw=null,cw=null;tw=function(e,t,o,l){t=a(e,t),t!==null&&(o=n(t.memoizedState,o,0,l),t.memoizedState=o,t.baseState=o,e.memoizedProps=Xe({},e.memoizedProps),o=ka(e,2),o!==null&&zt(o,e,2))},aw=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=ka(e,2),o!==null&&zt(o,e,2))},ow=function(e,t,o,l){t=a(e,t),t!==null&&(o=s(t.memoizedState,o,l),t.memoizedState=o,t.baseState=o,e.memoizedProps=Xe({},e.memoizedProps),o=ka(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=ka(e,2),t!==null&&zt(t,e,2)},sw=function(e,t){e.pendingProps=r(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ka(e,2),t!==null&&zt(t,e,2)},lw=function(e,t,o){e.pendingProps=s(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ka(e,2),t!==null&&zt(t,e,2)},iw=function(e){var t=ka(e,2);t!==null&&zt(t,e,2)},rw=function(e){var t=nr(),o=ka(e,t);o!==null&&zt(o,e,t)},uw=function(e){f=e},cw=function(e){c=e};var pp=!0,mp=null,Kb=!1,Sl=null,Ll=null,Cl=null,ad=new Map,od=new Map,Tl=[],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(" "),gp=null;if(ch.prototype.render=Ty.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 l=t.current,u=bo(l);xy(l,u,o,t,null,null)},ch.prototype.unmount=Ty.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|Mo))!==ma&&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."),xy(e.current,2,null,e,null,null),br(),t[el]=null}},ch.prototype.unstable_scheduleHydration=function(e){if(e){var t=B();e={blockedOn:null,target:e,priority:t};for(var o=0;o<Tl.length&&t!==0&&t<Tl[o].priority;o++);Tl.splice(o,0,e),o===0&&vC(e)}},function(){var e=bu.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 <`+i+">.");var m="";o!=null&&e!==o&&(i=null,typeof o.tag==="number"?i=q(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,CD=0,TD=25,U=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,qn=null,un=null,Gh=null;Cb={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return U="useCallback",Ye(),fr(t),Sg(e,t)},useContext:function(e){return U="useContext",Ye(),_t(e)},useEffect:function(e,t){return U="useEffect",Ye(),fr(t),zf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",Ye(),fr(o),vg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",Ye(),fr(t),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",Ye(),fr(t),xg(e,t)},useMemo:function(e,t){U="useMemo",Ye(),fr(t);var o=H.H;H.H=qn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",Ye();var i=H.H;H.H=qn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return U="useRef",Ye(),yg(e)},useState:function(e){U="useState",Ye();var t=H.H;H.H=qn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",Ye()},useDeferredValue:function(e,t){return U="useDeferredValue",Ye(),Cg(e,t)},useTransition:function(){return U="useTransition",Ye(),Ig()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",Ye(),fg(e,t,o)},useId:function(){return U="useId",Ye(),Mg()},useFormState:function(e,t){return U="useFormState",Ye(),Ef(),pr(e,t)},useActionState:function(e,t){return U="useActionState",Ye(),pr(e,t)},useOptimistic:function(e){return U="useOptimistic",Ye(),mg(e)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return U="useCacheRefresh",Ye(),Ag()},useEffectEvent:function(e){return U="useEffectEvent",Ye(),bg(e)}},sT={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return U="useCallback",j(),Sg(e,t)},useContext:function(e){return U="useContext",j(),_t(e)},useEffect:function(e,t){return U="useEffect",j(),zf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),vg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",j(),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),xg(e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=qn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var i=H.H;H.H=qn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return U="useRef",j(),yg(e)},useState:function(e){U="useState",j();var t=H.H;H.H=qn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),Cg(e,t)},useTransition:function(){return U="useTransition",j(),Ig()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),fg(e,t,o)},useId:function(){return U="useId",j(),Mg()},useActionState:function(e,t){return U="useActionState",j(),pr(e,t)},useFormState:function(e,t){return U="useFormState",j(),Ef(),pr(e,t)},useOptimistic:function(e){return U="useOptimistic",j(),mg(e)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return U="useCacheRefresh",j(),Ag()},useEffectEvent:function(e){return U="useEffectEvent",j(),bg(e)}},Tb={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return U="useCallback",j(),Ff(e,t)},useContext:function(e){return U="useContext",j(),_t(e)},useEffect:function(e,t){U="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var i=H.H;H.H=un;try{return hr(e,t,o)}finally{H.H=i}},useRef:function(){return U="useRef",j(),ft().memoizedState},useState:function(){U="useState",j();var e=H.H;H.H=un;try{return hr(an)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),cS(e,t)},useTransition:function(){return U="useTransition",j(),gS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),Pf(e,t,o)},useId:function(){return U="useId",j(),ft().memoizedState},useFormState:function(e){return U="useFormState",j(),Ef(),Bf(e)},useActionState:function(e){return U="useActionState",j(),Bf(e)},useOptimistic:function(e,t){return U="useOptimistic",j(),eS(e,t)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",j(),Uf(e)}},iT={readContext:function(e){return _t(e)},use:$s,useCallback:function(e,t){return U="useCallback",j(),Ff(e,t)},useContext:function(e){return U="useContext",j(),_t(e)},useEffect:function(e,t){U="useEffect",j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",j();var o=H.H;H.H=Gh;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",j();var i=H.H;H.H=Gh;try{return Yu(e,t,o)}finally{H.H=i}},useRef:function(){return U="useRef",j(),ft().memoizedState},useState:function(){U="useState",j();var e=H.H;H.H=Gh;try{return Yu(an)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",j()},useDeferredValue:function(e,t){return U="useDeferredValue",j(),dS(e,t)},useTransition:function(){return U="useTransition",j(),yS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",j(),Pf(e,t,o)},useId:function(){return U="useId",j(),ft().memoizedState},useFormState:function(e){return U="useFormState",j(),Ef(),Nf(e)},useActionState:function(e){return U="useActionState",j(),Nf(e)},useOptimistic:function(e,t){return U="useOptimistic",j(),aS(e,t)},useHostTransitionStatus:cl,useMemoCache:rl,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="useEffectEvent",j(),Uf(e)}},qn={readContext:function(e){return p(),_t(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return U="useCallback",h(),Ye(),Sg(e,t)},useContext:function(e){return U="useContext",h(),Ye(),_t(e)},useEffect:function(e,t){return U="useEffect",h(),Ye(),zf(e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),Ye(),vg(e,t,o)},useInsertionEffect:function(e,t){U="useInsertionEffect",h(),Ye(),ul(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),Ye(),xg(e,t)},useMemo:function(e,t){U="useMemo",h(),Ye();var o=H.H;H.H=qn;try{return Lg(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),Ye();var i=H.H;H.H=qn;try{return cg(e,t,o)}finally{H.H=i}},useRef:function(e){return U="useRef",h(),Ye(),yg(e)},useState:function(e){U="useState",h(),Ye();var t=H.H;H.H=qn;try{return pg(e)}finally{H.H=t}},useDebugValue:function(){U="useDebugValue",h(),Ye()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),Ye(),Cg(e,t)},useTransition:function(){return U="useTransition",h(),Ye(),Ig()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),Ye(),fg(e,t,o)},useId:function(){return U="useId",h(),Ye(),Mg()},useFormState:function(e,t){return U="useFormState",h(),Ye(),pr(e,t)},useActionState:function(e,t){return U="useActionState",h(),Ye(),pr(e,t)},useOptimistic:function(e){return U="useOptimistic",h(),Ye(),mg(e)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return U="useCacheRefresh",Ye(),Ag()},useEffectEvent:function(e){return U="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 U="useCallback",h(),j(),Ff(e,t)},useContext:function(e){return U="useContext",h(),j(),_t(e)},useEffect:function(e,t){U="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",h(),j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),j();var i=H.H;H.H=un;try{return hr(e,t,o)}finally{H.H=i}},useRef:function(){return U="useRef",h(),j(),ft().memoizedState},useState:function(){U="useState",h(),j();var e=H.H;H.H=un;try{return hr(an)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",h(),j()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),j(),cS(e,t)},useTransition:function(){return U="useTransition",h(),j(),gS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),j(),Pf(e,t,o)},useId:function(){return U="useId",h(),j(),ft().memoizedState},useFormState:function(e){return U="useFormState",h(),j(),Bf(e)},useActionState:function(e){return U="useActionState",h(),j(),Bf(e)},useOptimistic:function(e,t){return U="useOptimistic",h(),j(),eS(e,t)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="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 U="useCallback",h(),j(),Ff(e,t)},useContext:function(e){return U="useContext",h(),j(),_t(e)},useEffect:function(e,t){U="useEffect",h(),j(),Ya(2048,Va,e,t)},useImperativeHandle:function(e,t,o){return U="useImperativeHandle",h(),j(),Hf(e,t,o)},useInsertionEffect:function(e,t){return U="useInsertionEffect",h(),j(),Ya(4,qa,e,t)},useLayoutEffect:function(e,t){return U="useLayoutEffect",h(),j(),Ya(4,wo,e,t)},useMemo:function(e,t){U="useMemo",h(),j();var o=H.H;H.H=un;try{return qf(e,t)}finally{H.H=o}},useReducer:function(e,t,o){U="useReducer",h(),j();var i=H.H;H.H=un;try{return Yu(e,t,o)}finally{H.H=i}},useRef:function(){return U="useRef",h(),j(),ft().memoizedState},useState:function(){U="useState",h(),j();var e=H.H;H.H=un;try{return Yu(an)}finally{H.H=e}},useDebugValue:function(){U="useDebugValue",h(),j()},useDeferredValue:function(e,t){return U="useDeferredValue",h(),j(),dS(e,t)},useTransition:function(){return U="useTransition",h(),j(),yS()},useSyncExternalStore:function(e,t,o){return U="useSyncExternalStore",h(),j(),Pf(e,t,o)},useId:function(){return U="useId",h(),j(),ft().memoizedState},useFormState:function(e){return U="useFormState",h(),j(),Nf(e)},useActionState:function(e){return U="useActionState",h(),j(),Nf(e)},useOptimistic:function(e,t){return U="useOptimistic",h(),j(),aS(e,t)},useMemoCache:function(e){return h(),rl(e)},useHostTransitionStatus:cl,useCacheRefresh:function(){return U="useCacheRefresh",j(),ft().memoizedState},useEffectEvent:function(e){return U="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&&(xn(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&&(xn(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&&(xn(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,wD={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 ID=[],MD=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,Vn=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,AD=50,Wc=0,Ub=null,Hb=!1,ap=!1,kD=50,Rl=0,Zc=null,ou=!1,op=null,UT=!1,HT=new Set,RD={},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(iD,"onTransitionRun"),tn(lD,"onTransitionStart"),tn(rD,"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={},_D=/\r\n?/g,DD=/\u0000|\uFFFD/g,_l="http://www.w3.org/1999/xlink",Yb="http://www.w3.org/XML/1998/namespace",ED="javascript:throw new Error('React form unexpectedly submitted.')",OD="suppressHydrationWarning",Dl="&",dp="/&",Kc="$",Jc="/$",Si="$?",El="$~",su="$!",PD="html",BD="body",ND="head",Xb="F!",GT="F",YT="loading",zD="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,UD=typeof clearTimeout==="function"?clearTimeout:void 0,Ol=-1,WT=typeof Promise==="function"?Promise:void 0,HD=typeof queueMicrotask==="function"?queueMicrotask:typeof WT<"u"?function(e){return WT.resolve(null).then(e).catch(TR)}:$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 y={loading:Pl,preload:null};if(m=i.querySelector(lc(d)))y.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(){y.loading|=td}),v.addEventListener("error",function(){y.loading|=ZT}),y.loading|=jo,lh(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:y},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,FD=60000,qD=800,VD=500,Kb=0,Jb=null,pp=null,Bl=n_,ad={$$typeof:En,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=" ",jD=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=[],GD="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:
|
|
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=
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),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=R,e.getCurrentFiber=ZR,nr(e)}()&&zn&&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")}fB.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===Dn&&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&&(
|
|
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)},fB.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,y=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&&(y=o.onRecoverableError),o.formState!==void 0&&(v=o.formState)),t=mC(e,1,!0,t,o!=null?o:null,i,u,v,d,m,y,wC),t.context=gC(null),o=t.current,i=bo(o),i=Ki(i),u=js(i),u.callback=null,Gs(o,u,i),xn(i,"hydrateRoot()",null),o=i,t.current.lanes=o,Ns(t,o),Rn(t),e[ti]=t.current,ly(e),new fh(t)},fB.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(TU,HM){var hB=X(UM());HM.exports=hB});var ce=Ii(function(FB){var Wl=X(vt());(function(){function a(D){if(D==null)return null;if(typeof D==="function")return D.$$typeof===q?null:D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case R: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 V:return D.displayName||"Context";case z: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===R)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 b(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++)x(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 x(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:
|
|
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,
|
|
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 x(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"),R=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),V=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"),q=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={};FB.Fragment=R,FB.jsxDEV=function(D,Z,me,ge){var Ge=1e4>he.recentlyCreatedOwnerStacks++;return b(D,Z,me,ge,Ge?Error("react-stack-top-frame"):pe,Ge?Oe(l(D)):Qe)}})()});var TA=Ii(function(QB){var Ql=X(vt());(function(){function a(D){if(D==null)return null;if(typeof D==="function")return D.$$typeof===q?null:D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case R: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 V:return D.displayName||"Context";case z: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===R)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 b(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++)x(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 x(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:
|
|
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,
|
|
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 x(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"),R=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),V=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"),q=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={};QB.Fragment=R,QB.jsx=function(D,Z,me){var ge=1e4>he.recentlyCreatedOwnerStacks++;return b(D,Z,me,!1,ge?Error("react-stack-top-frame"):pe,ge?Oe(l(D)):Qe)},QB.jsxs=function(D,Z,me){var ge=1e4>he.recentlyCreatedOwnerStacks++;return b(D,Z,me,!0,ge?Error("react-stack-top-frame"):pe,ge?Oe(l(D)):Qe)}})()});/*!
|
|
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
|
|
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"],e2=(a)=>ax[a&15],t2=(a)=>ax[(a&240)>>4]+ax[a&15],xp=(a)=>(a&240)>>4===(a&15),a2=(a)=>xp(a.r)&&xp(a.g)&&xp(a.b)&&xp(a.a);function o2(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 n2=(a,n)=>a<255?n(a):"";function s2(a){var n=a2(a)?e2:t2;return a?"#"+n(a.r)+n(a.g)+n(a.b)+n2(a.a,n):void 0}var i2=/^(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 l2(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 r2(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 u2(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,b;if(c!==f)b=c-f,g=h>0.5?b/(2-c-f):b/(c+f),p=u2(s,l,r,b,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 c2(a,n,s){return nx(r2,a,n,s)}function d2(a,n,s){return nx(l2,a,n,s)}function vw(a){return(a%360+360)%360}function f2(a){let n=i2.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=c2(r,c,f);else if(n[1]==="hsv")l=d2(r,c,f);else l=sx(r,c,f);return{r:l[0],g:l[1],b:l[2],a:s}}function h2(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 p2(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 m2(){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 g2(a){if(!vp)vp=m2(),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 y2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function b2(a){let n=y2.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 x2(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 v2(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 S2(a){if(a.charAt(0)==="r")return b2(a);return f2(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=o2(a)||g2(a)||S2(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?x2(this._rgb):void 0}hexString(){return this._valid?s2(this._rgb):void 0}hslString(){return this._valid?p2(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=v2(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 h2(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 jn(){}var Rw=(()=>{let a=0;return()=>a++})();function st(a){return a===null||a===void 0}function kt(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 Ht(a){return(typeof a==="number"||a instanceof Number)&&isFinite(+a)}function ao(a,n){return Ht(a)?a:n}function We(a,n){return typeof a>"u"?n:a}var _w=(a,n)=>typeof a==="string"&&a.endsWith("%")?parseFloat(a)/100*n:+a;function wt(a,n,s){if(a&&typeof a.call==="function")return a.apply(s,n)}function pt(a,n,s,i){let r,c,f;if(kt(a))if(c=a.length,i)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 rd(a,n){let s,i,r,c;if(!a||!n||a.length!==n.length)return!1;for(s=0,i=a.length;s<i;++s)if(r=a[s],c=n[s],r.datasetIndex!==c.datasetIndex||r.index!==c.index)return!1;return!0}function Cp(a){if(kt(a))return a.map(Cp);if(at(a)){let n=Object.create(null),s=Object.keys(a),i=s.length,r=0;for(;r<i;++r)n[s[r]]=Cp(a[s[r]]);return n}return a}function Dw(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function v2(a,n,s,i){if(!Dw(a))return;let r=n[a],c=s[a];if(at(r)&&at(c))cu(r,c,i);else n[a]=Cp(c)}function cu(a,n,s){let i=kt(n)?n:[n],r=i.length;if(!at(a))return a;s=s||{};let c=s.merger||v2,f;for(let h=0;h<r;++h){if(f=i[h],!at(f))continue;let p=Object.keys(f);for(let g=0,b=p.length;g<b;++g)c(p[g],a,f,s)}return a}function fu(a,n){return cu(a,n,{merger:S2})}function S2(a,n,s){if(!Dw(a))return;let i=n[a],r=s[a];if(at(i)&&at(r))fu(i,r);else if(!Object.prototype.hasOwnProperty.call(n,a))n[a]=Cp(r)}var vw={"":(a)=>a,x:(a)=>a.x,y:(a)=>a.y};function L2(a){let n=a.split("."),s=[],i="";for(let r of n)if(i+=r,i.endsWith("\\"))i=i.slice(0,-1)+".";else s.push(i),i="";return s}function C2(a){let n=L2(a);return(s)=>{for(let i of n){if(i==="")break;s=s&&s[i]}return s}}function Ui(a,n){return(vw[n]||(vw[n]=C2(n)))(a)}function Ip(a){return a.charAt(0).toUpperCase()+a.slice(1)}var hu=(a)=>typeof a<"u",Ts=(a)=>typeof a==="function",lx=(a,n)=>{if(a.size!==n.size)return!1;for(let s of a)if(!n.has(s))return!1;return!0};function Ew(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}var Xt=Math.PI,eo=2*Xt,T2=eo+Xt,Tp=Number.POSITIVE_INFINITY,w2=Xt/180,Ja=Xt/2,Bi=Xt/4,Sw=Xt*2/3,ws=Math.log10,fn=Math.sign;function pu(a,n,s){return Math.abs(a-n)<s}function ix(a){let n=Math.round(a);a=pu(a,n,a/1000)?n:a;let s=Math.pow(10,Math.floor(ws(a))),i=a/s;return(i<=1?1:i<=2?2:i<=5?5:10)*s}function Ow(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((r,c)=>r-c).pop(),n}function M2(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function mu(a){return!M2(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function Pw(a,n){let s=Math.round(a);return s-n<=a&&s+n>=a}function rx(a,n,s){let i,r,c;for(i=0,r=a.length;i<r;i++)if(c=a[i][s],!isNaN(c))n.min=Math.min(n.min,c),n.max=Math.max(n.max,c)}function Ms(a){return a*(Xt/180)}function Ap(a){return a*(180/Xt)}function ux(a){if(!Ht(a))return;let n=1,s=0;while(Math.round(a*n)/n!==a)n*=10,s++;return s}function Bw(a,n){let s=n.x-a.x,i=n.y-a.y,r=Math.sqrt(s*s+i*i),c=Math.atan2(i,s);if(c<-0.5*Xt)c+=eo;return{angle:c,distance:r}}function wp(a,n){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))}function I2(a,n){return(a-n+T2)%eo-Xt}function Ka(a){return(a%eo+eo)%eo}function cx(a,n,s,i){let r=Ka(a),c=Ka(n),f=Ka(s),h=Ka(c-r),p=Ka(f-r),g=Ka(r-c),b=Ka(r-f);return r===c||r===f||i&&c===f||h>p&&g<b}function to(a,n,s){return Math.max(n,Math.min(s,a))}function Nw(a){return to(a,-32768,32767)}function Is(a,n,s,i=0.000001){return a>=Math.min(n,s)-i&&a<=Math.max(n,s)+i}function kp(a,n,s){s=s||((f)=>a[f]<n);let i=a.length-1,r=0,c;while(i-r>1)if(c=r+i>>1,s(c))r=c;else i=c;return{lo:r,hi:i}}var kl=(a,n,s,i)=>kp(a,s,i?(r)=>{let c=a[r][n];return c<s||c===s&&a[r+1][n]===s}:(r)=>a[r][n]<s),zw=(a,n,s)=>kp(a,s,(i)=>a[i][n]>=s);function Uw(a,n,s){let i=0,r=a.length;while(i<r&&a[i]<n)i++;while(r>i&&a[r-1]>s)r--;return i>0||r<a.length?a.slice(i,r):a}var Hw=["push","pop","shift","splice","unshift"];function Fw(a,n){if(a._chartjs){a._chartjs.listeners.push(n);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),Hw.forEach((s)=>{let i="_onData"+Ip(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[i]==="function")h[i](...c)}),f}})})}function dx(a,n){let s=a._chartjs;if(!s)return;let i=s.listeners,r=i.indexOf(n);if(r!==-1)i.splice(r,1);if(i.length>0)return;Hw.forEach((c)=>{delete a[c]}),delete a._chartjs}function fx(a){let n=new Set(a);if(n.size===a.length)return a;return Array.from(n)}var hx=function(){if(typeof window>"u")return function(a){return a()};return window.requestAnimationFrame}();function px(a,n){let s=[],i=!1;return function(...r){if(s=r,!i)i=!0,hx.call(window,()=>{i=!1,a.apply(n,s)})}}function qw(a,n){let s;return function(...i){if(n)clearTimeout(s),s=setTimeout(a,n,i);else a.apply(this,i);return n}}var Rp=(a)=>a==="start"?"left":a==="end"?"right":"center",La=(a,n,s)=>a==="start"?n:a==="end"?s:(n+s)/2,Vw=(a,n,s,i)=>a===(i?"left":"right")?s:a==="center"?(n+s)/2:n;function jw(a,n,s){let i=n.length,r=0,c=i;if(a._sorted){let{iScale:f,vScale:h,_parsed:p}=a,g=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null,b=f.axis,{min:x,max:S,minDefined:T,maxDefined:A}=f.getUserBounds();if(T){if(r=Math.min(kl(p,b,x).lo,s?i:kl(n,b,f.getPixelForValue(x)).lo),g){let M=p.slice(0,r+1).reverse().findIndex((w)=>!st(w[h.axis]));r-=Math.max(0,M)}r=to(r,0,i-1)}if(A){let M=Math.max(kl(p,f.axis,S,!0).hi+1,s?0:kl(n,b,f.getPixelForValue(S),!0).hi+1);if(g){let w=p.slice(M-1).findIndex((_)=>!st(_[h.axis]));M+=Math.max(0,w)}c=to(M,r,i)-r}else c=i-r}return{start:r,count:c}}function Gw(a){let{xScale:n,yScale:s,_scaleRanges:i}=a,r={xmin:n.min,xmax:n.max,ymin:s.min,ymax:s.max};if(!i)return a._scaleRanges=r,!0;let c=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==s.min||i.ymax!==s.max;return Object.assign(i,r),c}var vp=(a)=>a===0||a===1,Lw=(a,n,s)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-n)*eo/s)),Cw=(a,n,s)=>Math.pow(2,-10*a)*Math.sin((a-n)*eo/s)+1,uu={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(Xt*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)=>vp(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)=>vp(a)?a:Lw(a,0.075,0.3),easeOutElastic:(a)=>vp(a)?a:Cw(a,0.075,0.3),easeInOutElastic(a){return vp(a)?a:a<0.5?0.5*Lw(a*2,0.1125,0.45):0.5+0.5*Cw(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-uu.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?uu.easeInBounce(a*2)*0.5:uu.easeOutBounce(a*2-1)*0.5+0.5};function mx(a){if(a&&typeof a==="object"){let n=a.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function gx(a){return mx(a)?a:new ru(a)}function nx(a){return mx(a)?a:new ru(a).saturate(0.5).darken(0.1).hexString()}var A2=["x","y","borderWidth","radius","tension"],k2=["color","borderColor","backgroundColor"];function R2(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:k2},numbers:{type:"number",properties:A2}}),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 _2(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Tw=new Map;function D2(a,n){n=n||{};let s=a+JSON.stringify(n),i=Tw.get(s);if(!i)i=new Intl.NumberFormat(a,n),Tw.set(s,i);return i}function _p(a,n,s){return D2(n,s).format(a)}var Yw={values(a){return kt(a)?a:""+a},numeric(a,n,s){if(a===0)return"0";let i=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=E2(a,s)}let f=ws(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),_p(a,i,p)},logarithmic(a,n,s){if(a===0)return"0";let i=s[n].significand||a/Math.pow(10,Math.floor(ws(a)));if([1,2,3,5,10,15].includes(i)||n>0.8*s.length)return Yw.numeric.call(this,a,n,s);return""}};function E2(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 ud={formatters:Yw};function O2(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:ud.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 _l=Object.create(null),Dp=Object.create(null);function ld(a,n){if(!n)return a;let s=n.split(".");for(let i=0,r=s.length;i<r;++i){let c=s[i];a=a[c]||(a[c]=Object.create(null))}return a}function sx(a,n,s){if(typeof n==="string")return cu(ld(a,n),s);return cu(ld(a,""),n)}class Xw{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)=>nx(i.backgroundColor),this.hoverBorderColor=(s,i)=>nx(i.borderColor),this.hoverColor=(s,i)=>nx(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 sx(this,a,n)}get(a){return ld(this,a)}describe(a,n){return sx(Dp,a,n)}override(a,n){return sx(_l,a,n)}route(a,n,s,i){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[i];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 Ft=new Xw({_scriptable:(a)=>!a.startsWith("on"),_indexable:(a)=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[R2,_2,O2]);function P2(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 id(a,n,s,i,r){let c=n[r];if(!c)c=n[r]=a.measureText(r).width,s.push(r);if(c>i)i=c;return i}function $w(a,n,s,i){i=i||{};let r=i.data=i.data||{},c=i.garbageCollect=i.garbageCollect||[];if(i.font!==n)r=i.data={},c=i.garbageCollect=[],i.font=n;a.save(),a.font=n;let f=0,h=s.length,p,g,b,x,S;for(p=0;p<h;p++)if(x=s[p],x!==void 0&&x!==null&&!kt(x))f=id(a,r,c,f,x);else if(kt(x)){for(g=0,b=x.length;g<b;g++)if(S=x[g],S!==void 0&&S!==null&&!kt(S))f=id(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 Dl(a,n,s){let i=a.currentDevicePixelRatio,r=s!==0?Math.max(s/2,0.5):0;return Math.round((n-r)*i)/i+r}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 Ep(a,n,s,i){bx(a,n,s,i,null)}function bx(a,n,s,i,r){let c,f,h,p,g,b,x,S,T=n.pointStyle,A=n.rotation,M=n.radius,w=(A||0)*w2;if(T&&typeof T==="object"){if(c=T.toString(),c==="[object HTMLImageElement]"||c==="[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(M)||M<=0)return;switch(a.beginPath(),T){default:if(r)a.ellipse(s,i,r/2,M,0,0,eo);else a.arc(s,i,M,0,eo);a.closePath();break;case"triangle":b=r?r/2:M,a.moveTo(s+Math.sin(w)*b,i-Math.cos(w)*M),w+=Sw,a.lineTo(s+Math.sin(w)*b,i-Math.cos(w)*M),w+=Sw,a.lineTo(s+Math.sin(w)*b,i-Math.cos(w)*M),a.closePath();break;case"rectRounded":g=M*0.516,p=M-g,f=Math.cos(w+Bi)*p,x=Math.cos(w+Bi)*(r?r/2-g:p),h=Math.sin(w+Bi)*p,S=Math.sin(w+Bi)*(r?r/2-g:p),a.arc(s-x,i-h,g,w-Xt,w-Ja),a.arc(s+S,i-f,g,w-Ja,w),a.arc(s+x,i+h,g,w,w+Ja),a.arc(s-S,i+f,g,w+Ja,w+Xt),a.closePath();break;case"rect":if(!A){p=Math.SQRT1_2*M,b=r?r/2:p,a.rect(s-b,i-p,2*b,2*p);break}w+=Bi;case"rectRot":x=Math.cos(w)*(r?r/2:M),f=Math.cos(w)*M,h=Math.sin(w)*M,S=Math.sin(w)*(r?r/2:M),a.moveTo(s-x,i-h),a.lineTo(s+S,i-f),a.lineTo(s+x,i+h),a.lineTo(s-S,i+f),a.closePath();break;case"crossRot":w+=Bi;case"cross":x=Math.cos(w)*(r?r/2:M),f=Math.cos(w)*M,h=Math.sin(w)*M,S=Math.sin(w)*(r?r/2:M),a.moveTo(s-x,i-h),a.lineTo(s+x,i+h),a.moveTo(s+S,i-f),a.lineTo(s-S,i+f);break;case"star":x=Math.cos(w)*(r?r/2:M),f=Math.cos(w)*M,h=Math.sin(w)*M,S=Math.sin(w)*(r?r/2:M),a.moveTo(s-x,i-h),a.lineTo(s+x,i+h),a.moveTo(s+S,i-f),a.lineTo(s-S,i+f),w+=Bi,x=Math.cos(w)*(r?r/2:M),f=Math.cos(w)*M,h=Math.sin(w)*M,S=Math.sin(w)*(r?r/2:M),a.moveTo(s-x,i-h),a.lineTo(s+x,i+h),a.moveTo(s+S,i-f),a.lineTo(s-S,i+f);break;case"line":f=r?r/2:Math.cos(w)*M,h=Math.sin(w)*M,a.moveTo(s-f,i-h),a.lineTo(s+f,i+h);break;case"dash":a.moveTo(s,i),a.lineTo(s+Math.cos(w)*(r?r/2:M),i+Math.sin(w)*M);break;case!1:a.closePath();break}if(a.fill(),n.borderWidth>0)a.stroke()}function Vn(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 cd(a,n){a.save(),a.beginPath(),a.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),a.clip()}function dd(a){a.restore()}function Ww(a,n,s,i,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"!==!!i)a.lineTo(n.x,s.y);else a.lineTo(s.x,n.y);a.lineTo(s.x,s.y)}function Zw(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 B2(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 N2(a,n,s,i,r){if(r.strikethrough||r.underline){let c=a.measureText(i),f=n-c.actualBoundingBoxLeft,h=n+c.actualBoundingBoxRight,p=s-c.actualBoundingBoxAscent,g=s+c.actualBoundingBoxDescent,b=r.strikethrough?(p+g)/2:g;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(f,b),a.lineTo(h,b),a.stroke()}}function z2(a,n){let s=a.fillStyle;a.fillStyle=n.color,a.fillRect(n.left,n.top,n.width,n.height),a.fillStyle=s}function El(a,n,s,i,r,c={}){let f=kt(n)?n:[n],h=c.strokeWidth>0&&c.strokeColor!=="",p,g;a.save(),a.font=r.string,B2(a,c);for(p=0;p<f.length;++p){if(g=f[p],c.backdrop)z2(a,c.backdrop);if(h){if(c.strokeColor)a.strokeStyle=c.strokeColor;if(!st(c.strokeWidth))a.lineWidth=c.strokeWidth;a.strokeText(g,s,i,c.maxWidth)}a.fillText(g,s,i,c.maxWidth),N2(a,s,i,g,c),i+=Number(r.lineHeight)}a.restore()}function gu(a,n){let{x:s,y:i,w:r,h:c,radius:f}=n;a.arc(s+f.topLeft,i+f.topLeft,f.topLeft,1.5*Xt,Xt,!0),a.lineTo(s,i+c-f.bottomLeft),a.arc(s+f.bottomLeft,i+c-f.bottomLeft,f.bottomLeft,Xt,Ja,!0),a.lineTo(s+r-f.bottomRight,i+c),a.arc(s+r-f.bottomRight,i+c-f.bottomRight,f.bottomRight,Ja,0,!0),a.lineTo(s+r,i+f.topRight),a.arc(s+r-f.topRight,i+f.topRight,f.topRight,0,-Ja,!0),a.lineTo(s+f.topLeft,i)}var U2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,H2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function F2(a,n){let s=(""+a).match(U2);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 q2=(a)=>+a||0;function xx(a,n){let s={},i=at(n),r=i?Object.keys(n):n,c=at(a)?i?(f)=>We(a[f],a[n[f]]):(f)=>a[f]:()=>a;for(let f of r)s[f]=q2(c(f));return s}function vx(a){return xx(a,{top:"y",right:"x",bottom:"y",left:"x"})}function Ol(a){return xx(a,["topLeft","topRight","bottomLeft","bottomRight"])}function Ca(a){let n=vx(a);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function na(a,n){a=a||{},n=n||Ft.font;let s=We(a.size,n.size);if(typeof s==="string")s=parseInt(s,10);let i=We(a.style,n.style);if(i&&!(""+i).match(H2))console.warn('Invalid font style specified: "'+i+'"'),i=void 0;let r={family:We(a.family,n.family),lineHeight:F2(We(a.lineHeight,n.lineHeight),s),size:s,style:i,weight:We(a.weight,n.weight),string:""};return r.string=P2(r),r}function fd(a,n,s,i){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&&kt(h))h=h[s%h.length],r=!1;if(h!==void 0){if(i&&!r)i.cacheable=!1;return h}}}function Qw(a,n,s){let{min:i,max:r}=a,c=_w(n,(r-i)/2),f=(h,p)=>s&&h===0?0:h+p;return{min:f(i,-Math.abs(c)),max:f(r,c)}}function As(a,n){return Object.assign(Object.create(a),n)}function Op(a,n=[""],s,i,r=()=>a[0]){let c=s||a;if(typeof i>"u")i=eM("_fallback",a);let f={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:c,_fallback:i,_getTarget:r,override:(h)=>Op([h,...a],n,c,i)};return new Proxy(f,{deleteProperty(h,p){return delete h[p],delete h._keys,delete a[0][p],!0},get(h,p){return Kw(h,p,()=>Z2(p,n,a,h))},getOwnPropertyDescriptor(h,p){return Reflect.getOwnPropertyDescriptor(h._scopes[0],p)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(h,p){return Mw(h).includes(p)},ownKeys(h){return Mw(h)},set(h,p,g){let b=h._storage||(h._storage=r());return h[p]=b[p]=g,delete h._keys,!0}})}function zi(a,n,s,i){let r={_cacheable:!1,_proxy:a,_context:n,_subProxy:s,_stack:new Set,_descriptors:Sx(a,i),setContext:(c)=>zi(a,c,s,i),override:(c)=>zi(a.override(c),n,s,i)};return new Proxy(r,{deleteProperty(c,f){return delete c[f],delete a[f],!0},get(c,f,h){return Kw(c,f,()=>j2(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 Sx(a,n={scriptable:!0,indexable:!0}){let{_scriptable:s=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=a;return{allKeys:r,scriptable:s,indexable:i,isScriptable:Ts(s)?s:()=>s,isIndexable:Ts(i)?i:()=>i}}var V2=(a,n)=>a?a+Ip(n):n,Lx=(a,n)=>at(n)&&a!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Kw(a,n,s){if(Object.prototype.hasOwnProperty.call(a,n)||n==="constructor")return a[n];let i=s();return a[n]=i,i}function j2(a,n,s){let{_proxy:i,_context:r,_subProxy:c,_descriptors:f}=a,h=i[n];if(Ts(h)&&f.isScriptable(n))h=G2(n,h,a,s);if(kt(h)&&h.length)h=Y2(n,h,a,f.isIndexable);if(Lx(n,h))h=zi(h,r,c&&c[n],f);return h}function G2(a,n,s,i){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||i);if(h.delete(a),Lx(a,p))p=Cx(r._scopes,r,a,p);return p}function Y2(a,n,s,i){let{_proxy:r,_context:c,_subProxy:f,_descriptors:h}=s;if(typeof c.index<"u"&&i(a))return n[c.index%n.length];else if(at(n[0])){let p=n,g=r._scopes.filter((b)=>b!==p);n=[];for(let b of p){let x=Cx(g,r,a,b);n.push(zi(x,c,f&&f[a],h))}}return n}function Jw(a,n,s){return Ts(a)?a(n,s):a}var X2=(a,n)=>a===!0?n:typeof a==="string"?Ui(n,a):void 0;function $2(a,n,s,i,r){for(let c of n){let f=X2(s,c);if(f){a.add(f);let h=Jw(f._fallback,s,r);if(typeof h<"u"&&h!==s&&h!==i)return h}else if(f===!1&&typeof i<"u"&&s!==i)return null}return!1}function Cx(a,n,s,i){let r=n._rootScopes,c=Jw(n._fallback,s,i),f=[...a,...r],h=new Set;h.add(i);let p=ww(h,f,s,c||s,i);if(p===null)return!1;if(typeof c<"u"&&c!==s){if(p=ww(h,f,c,p,i),p===null)return!1}return Op(Array.from(h),[""],r,c,()=>W2(n,s,i))}function ww(a,n,s,i,r){while(s)s=$2(a,n,s,i,r);return s}function W2(a,n,s){let i=a._getTarget();if(!(n in i))i[n]={};let r=i[n];if(kt(r)&&at(s))return s;return r||{}}function Z2(a,n,s,i){let r;for(let c of n)if(r=eM(V2(c,a),s),typeof r<"u")return Lx(a,r)?Cx(s,i,a,r):r}function eM(a,n){for(let s of n){if(!s)continue;let i=s[a];if(typeof i<"u")return i}}function Mw(a){let n=a._keys;if(!n)n=a._keys=Q2(a._scopes);return n}function Q2(a){let n=new Set;for(let s of a)for(let i of Object.keys(s).filter((r)=>!r.startsWith("_")))n.add(i);return Array.from(n)}var K2=Number.EPSILON||0.00000000000001,du=(a,n)=>n<a.length&&!a[n].skip&&a[n],tM=(a)=>a==="x"?"y":"x";function J2(a,n,s,i){let r=a.skip?n:a,c=n,f=s.skip?n:s,h=wp(c,r),p=wp(f,c),g=h/(h+p),b=p/(h+p);g=isNaN(g)?0:g,b=isNaN(b)?0:b;let x=i*g,S=i*b;return{previous:{x:c.x-x*(f.x-r.x),y:c.y-x*(f.y-r.y)},next:{x:c.x+S*(f.x-r.x),y:c.y+S*(f.y-r.y)}}}function eE(a,n,s){let i=a.length,r,c,f,h,p,g=du(a,0);for(let b=0;b<i-1;++b){if(p=g,g=du(a,b+1),!p||!g)continue;if(pu(n[b],0,K2)){s[b]=s[b+1]=0;continue}if(r=s[b]/n[b],c=s[b+1]/n[b],h=Math.pow(r,2)+Math.pow(c,2),h<=9)continue;f=3/Math.sqrt(h),s[b]=r*f*n[b],s[b+1]=c*f*n[b]}}function tE(a,n,s="x"){let i=tM(s),r=a.length,c,f,h,p=du(a,0);for(let g=0;g<r;++g){if(f=h,h=p,p=du(a,g+1),!h)continue;let b=h[s],x=h[i];if(f)c=(b-f[s])/3,h[`cp1${s}`]=b-c,h[`cp1${i}`]=x-c*n[g];if(p)c=(p[s]-b)/3,h[`cp2${s}`]=b+c,h[`cp2${i}`]=x+c*n[g]}}function aE(a,n="x"){let s=tM(n),i=a.length,r=Array(i).fill(0),c=Array(i),f,h,p,g=du(a,0);for(f=0;f<i;++f){if(h=p,p=g,g=du(a,f+1),!p)continue;if(g){let b=g[n]-p[n];r[f]=b!==0?(g[s]-p[s])/b:0}c[f]=!h?r[f]:!g?r[f-1]:fn(r[f-1])!==fn(r[f])?0:(r[f-1]+r[f])/2}eE(a,r,c),tE(a,c,n)}function Sp(a,n,s){return Math.max(Math.min(a,s),n)}function oE(a,n){let s,i,r,c,f,h=Vn(a[0],n);for(s=0,i=a.length;s<i;++s){if(f=c,c=h,h=s<i-1&&Vn(a[s+1],n),!c)continue;if(r=a[s],f)r.cp1x=Sp(r.cp1x,n.left,n.right),r.cp1y=Sp(r.cp1y,n.top,n.bottom);if(h)r.cp2x=Sp(r.cp2x,n.left,n.right),r.cp2y=Sp(r.cp2y,n.top,n.bottom)}}function aM(a,n,s,i,r){let c,f,h,p;if(n.spanGaps)a=a.filter((g)=>!g.skip);if(n.cubicInterpolationMode==="monotone")aE(a,r);else{let g=i?a[a.length-1]:a[0];for(c=0,f=a.length;c<f;++c)h=a[c],p=J2(g,h,a[Math.min(c+1,f-(i?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)oE(a,s)}function Pp(){return typeof window<"u"&&typeof document<"u"}function Bp(a){let n=a.parentNode;if(n&&n.toString()==="[object ShadowRoot]")n=n.host;return n}function Mp(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 Np=(a)=>a.ownerDocument.defaultView.getComputedStyle(a,null);function nE(a,n){return Np(a).getPropertyValue(n)}var sE=["top","right","bottom","left"];function Ni(a,n,s){let i={};s=s?"-"+s:"";for(let r=0;r<4;r++){let c=sE[r];i[c]=parseFloat(a[n+"-"+c+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var lE=(a,n,s)=>(a>0||n>0)&&(!s||!s.shadowRoot);function iE(a,n){let s=a.touches,i=s&&s.length?s[0]:a,{offsetX:r,offsetY:c}=i,f=!1,h,p;if(lE(r,c,a.target))h=r,p=c;else{let g=n.getBoundingClientRect();h=i.clientX-g.left,p=i.clientY-g.top,f=!0}return{x:h,y:p,box:f}}function Pl(a,n){if("native"in a)return a;let{canvas:s,currentDevicePixelRatio:i}=n,r=Np(s),c=r.boxSizing==="border-box",f=Ni(r,"padding"),h=Ni(r,"border","width"),{x:p,y:g,box:b}=iE(a,s),x=f.left+(b&&h.left),S=f.top+(b&&h.top),{width:T,height:A}=n;if(c)T-=f.width+h.width,A-=f.height+h.height;return{x:Math.round((p-x)/T*s.width/i),y:Math.round((g-S)/A*s.height/i)}}function rE(a,n,s){let i,r;if(n===void 0||s===void 0){let c=a&&Bp(a);if(!c)n=a.clientWidth,s=a.clientHeight;else{let f=c.getBoundingClientRect(),h=Np(c),p=Ni(h,"border","width"),g=Ni(h,"padding");n=f.width-g.width-p.width,s=f.height-g.height-p.height,i=Mp(h.maxWidth,c,"clientWidth"),r=Mp(h.maxHeight,c,"clientHeight")}}return{width:n,height:s,maxWidth:i||Tp,maxHeight:r||Tp}}var Rl=(a)=>Math.round(a*10)/10;function oM(a,n,s,i){let r=Np(a),c=Ni(r,"margin"),f=Mp(r.maxWidth,a,"clientWidth")||Tp,h=Mp(r.maxHeight,a,"clientHeight")||Tp,p=rE(a,n,s),{width:g,height:b}=p;if(r.boxSizing==="content-box"){let S=Ni(r,"border","width"),T=Ni(r,"padding");g-=T.width+S.width,b-=T.height+S.height}if(g=Math.max(0,g-c.width),b=Math.max(0,i?g/i:b-c.height),g=Rl(Math.min(g,f,p.maxWidth)),b=Rl(Math.min(b,h,p.maxHeight)),g&&!b)b=Rl(g/2);if((n!==void 0||s!==void 0)&&i&&p.height&&b>p.height)b=p.height,g=Rl(Math.floor(b*i));return{width:g,height:b}}function Tx(a,n,s){let i=n||1,r=Rl(a.height*i),c=Rl(a.width*i);a.height=Rl(a.height),a.width=Rl(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!==i||f.height!==r||f.width!==c)return a.currentDevicePixelRatio=i,f.height=r,f.width=c,a.ctx.setTransform(i,0,0,i,0,0),!0;return!1}var nM=function(){let a=!1;try{let n={get passive(){return a=!0,!1}};if(Pp())window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}return a}();function wx(a,n){let s=nE(a,n),i=s&&s.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Al(a,n,s,i){return{x:a.x+s*(n.x-a.x),y:a.y+s*(n.y-a.y)}}function sM(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 lM(a,n,s,i){let r={x:a.cp2x,y:a.cp2y},c={x:n.cp1x,y:n.cp1y},f=Al(a,r,s),h=Al(r,c,s),p=Al(c,n,s),g=Al(f,h,s),b=Al(h,p,s);return Al(g,b,s)}var uE=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}}},cE=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,n){return a+n},leftForLtr(a,n){return a}}};function Hi(a,n,s){return a?uE(n,s):cE()}function Mx(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 Ix(a,n){if(n!==void 0)delete a.prevTextDirection,a.canvas.style.setProperty("direction",n[0],n[1])}function iM(a){if(a==="angle")return{between:cx,compare:I2,normalize:Ka};return{between:Is,compare:(n,s)=>n-s,normalize:(n)=>n}}function Iw({start:a,end:n,count:s,loop:i,style:r}){return{start:a%s,end:n%s,loop:i&&(n-a+1)%s===0,style:r}}function dE(a,n,s){let{property:i,start:r,end:c}=s,{between:f,normalize:h}=iM(i),p=n.length,{start:g,end:b,loop:x}=a,S,T;if(x){g+=p,b+=p;for(S=0,T=p;S<T;++S){if(!f(h(n[g%p][i]),r,c))break;g--,b--}g%=p,b%=p}if(b<g)b+=p;return{start:g,end:b,loop:x,style:a.style}}function Ax(a,n,s){if(!s)return[a];let{property:i,start:r,end:c}=s,f=n.length,{compare:h,between:p,normalize:g}=iM(i),{start:b,end:x,loop:S,style:T}=dE(a,n,s),A=[],M=!1,w=null,_,z,V,W=()=>p(r,V,_)&&h(r,V)!==0,Q=()=>h(c,_)===0||p(c,V,_),ne=()=>M||W(),J=()=>!M||Q();for(let K=b,re=b;K<=x;++K){if(z=n[K%f],z.skip)continue;if(_=g(z[i]),_===V)continue;if(M=p(_,r,c),w===null&&ne())w=h(_,r)===0?K:re;if(w!==null&&J())A.push(Iw({start:w,end:K,loop:S,count:f,style:T})),w=null;re=K,V=_}if(w!==null)A.push(Iw({start:w,end:x,loop:S,count:f,style:T}));return A}function kx(a,n){let s=[],i=a.segments;for(let r=0;r<i.length;r++){let c=Ax(i[r],a.points,n);if(c.length)s.push(...c)}return s}function fE(a,n,s,i){let r=0,c=n-1;if(s&&!i)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 hE(a,n,s,i){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)i=!1,c.push({start:n%r,end:(p-1)%r,loop:i}),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:i});return c}function rM(a,n){let s=a.points,i=a.options.spanGaps,r=s.length;if(!r)return[];let c=!!a._loop,{start:f,end:h}=fE(s,r,c,i);if(i===!0)return Aw(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 Aw(a,hE(s,f,p,g),s,n)}function Aw(a,n,s,i){if(!i||!i.setContext||!s)return n;return pE(a,n,s,i)}function pE(a,n,s,i){let r=a._chart.getContext(),c=kw(a.options),{_datasetIndex:f,options:{spanGaps:h}}=a,p=s.length,g=[],b=c,x=n[0].start,S=x;function T(A,M,w,_){let z=h?-1:1;if(A===M)return;A+=p;while(s[A%p].skip)A-=z;while(s[M%p].skip)M+=z;if(A%p!==M%p)g.push({start:A%p,end:M%p,loop:w,style:_}),b=_,x=M%p}for(let A of n){x=h?x:A.start;let M=s[x%p],w;for(S=x+1;S<=A.end;S++){let _=s[S%p];if(w=kw(i.setContext(As(r,{type:"segment",p0:M,p1:_,p0DataIndex:(S-1)%p,p1DataIndex:S%p,datasetIndex:f}))),mE(w,b))T(x,S-1,A.loop,b);M=_,b=w}if(x<S-1)T(x,S-1,A.loop,b)}return g}function kw(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function mE(a,n){if(!n)return!1;let s=[],i=function(r,c){if(!mx(c))return c;if(!s.includes(c))s.push(c);return s.indexOf(c)};return JSON.stringify(a,i)!==JSON.stringify(n,i)}function Lp(a,n,s){return a.options.clip?a[s]:n[s]}function gE(a,n){let{xScale:s,yScale:i}=a;if(s&&i)return{left:Lp(s,n,"left"),right:Lp(s,n,"right"),top:Lp(i,n,"top"),bottom:Lp(i,n,"bottom")};return n}function Rx(a,n){let s=n._clip;if(s.disabled)return!1;let i=gE(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)}}/*!
|
|
250
|
+
*/function Gn(){}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 L2(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||L2,f;for(let h=0;h<r;++h){if(f=l[h],!at(f))continue;let p=Object.keys(f);for(let g=0,b=p.length;g<b;++g)c(p[g],a,f,s)}return a}function hu(a,n){return du(a,n,{merger:C2})}function C2(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 T2(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 w2(a){let n=T2(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]=w2(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,I2=eo+Yt,Ip=Number.POSITIVE_INFINITY,M2=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 A2(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function gu(a){return!A2(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 k2(a,n){return(a-n+I2)%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),b=Ka(r-f);return r===c||r===f||l&&c===f||h>p&&g<b}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,b=f.axis,{min:x,max:S,minDefined:T,maxDefined:M}=f.getUserBounds();if(T){if(r=Math.min(Ri(p,b,x).lo,s?l:Ri(n,b,f.getPixelForValue(x)).lo),g){let R=p.slice(0,r+1).reverse().findIndex((w)=>!st(w[h.axis]));r-=Math.max(0,R)}r=to(r,0,l-1)}if(M){let R=Math.max(Ri(p,f.axis,S,!0).hi+1,s?0:Ri(n,b,f.getPixelForValue(S),!0).hi+1);if(g){let w=p.slice(R-1).findIndex((_)=>!st(_[h.axis]));R+=Math.max(0,w)}c=to(R,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 R2=["x","y","borderWidth","radius","tension"],_2=["color","borderColor","backgroundColor"];function D2(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:_2},numbers:{type:"number",properties:R2}}),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 E2(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Iw=new Map;function O2(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 O2(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=P2(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 P2(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 B2(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}},[D2,E2,B2]);function N2(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,b,x,S;for(p=0;p<h;p++)if(x=s[p],x!==void 0&&x!==null&&!At(x))f=rd(a,r,c,f,x);else if(At(x)){for(g=0,b=x.length;g<b;g++)if(S=x[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,b,x,S,T=n.pointStyle,M=n.rotation,R=n.radius,w=(M||0)*M2;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(R)||R<=0)return;switch(a.beginPath(),T){default:if(r)a.ellipse(s,l,r/2,R,0,0,eo);else a.arc(s,l,R,0,eo);a.closePath();break;case"triangle":b=r?r/2:R,a.moveTo(s+Math.sin(w)*b,l-Math.cos(w)*R),w+=Cw,a.lineTo(s+Math.sin(w)*b,l-Math.cos(w)*R),w+=Cw,a.lineTo(s+Math.sin(w)*b,l-Math.cos(w)*R),a.closePath();break;case"rectRounded":g=R*0.516,p=R-g,f=Math.cos(w+Nl)*p,x=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-x,l-h,g,w-Yt,w-Ja),a.arc(s+S,l-f,g,w-Ja,w),a.arc(s+x,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*R,b=r?r/2:p,a.rect(s-b,l-p,2*b,2*p);break}w+=Nl;case"rectRot":x=Math.cos(w)*(r?r/2:R),f=Math.cos(w)*R,h=Math.sin(w)*R,S=Math.sin(w)*(r?r/2:R),a.moveTo(s-x,l-h),a.lineTo(s+S,l-f),a.lineTo(s+x,l+h),a.lineTo(s-S,l+f),a.closePath();break;case"crossRot":w+=Nl;case"cross":x=Math.cos(w)*(r?r/2:R),f=Math.cos(w)*R,h=Math.sin(w)*R,S=Math.sin(w)*(r?r/2:R),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f);break;case"star":x=Math.cos(w)*(r?r/2:R),f=Math.cos(w)*R,h=Math.sin(w)*R,S=Math.sin(w)*(r?r/2:R),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f),w+=Nl,x=Math.cos(w)*(r?r/2:R),f=Math.cos(w)*R,h=Math.sin(w)*R,S=Math.sin(w)*(r?r/2:R),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+S,l-f),a.lineTo(s-S,l+f);break;case"line":f=r?r/2:Math.cos(w)*R,h=Math.sin(w)*R,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:R),l+Math.sin(w)*R);break;case!1:a.closePath();break}if(a.fill(),n.borderWidth>0)a.stroke()}function jn(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 z2(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 U2(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,b=r.strikethrough?(p+g)/2:g;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(f,b),a.lineTo(h,b),a.stroke()}}function H2(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,z2(a,c);for(p=0;p<f.length;++p){if(g=f[p],c.backdrop)H2(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),U2(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 F2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,q2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function V2(a,n){let s=(""+a).match(F2);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 j2=(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]=j2(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(q2))console.warn('Invalid font style specified: "'+l+'"'),l=void 0;let r={family:We(a.family,n.family),lineHeight:V2(We(a.lineHeight,n.lineHeight),s),size:s,style:l,weight:We(a.weight,n.weight),string:""};return r.string=N2(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,()=>K2(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 b=h._storage||(h._storage=r());return h[p]=b[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,()=>Y2(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 G2=(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 Y2(a,n,s){let{_proxy:l,_context:r,_subProxy:c,_descriptors:f}=a,h=l[n];if(ws(h)&&f.isScriptable(n))h=X2(n,h,a,s);if(At(h)&&h.length)h=$2(n,h,a,f.isIndexable);if(Tx(n,h))h=Ul(h,r,c&&c[n],f);return h}function X2(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 $2(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((b)=>b!==p);n=[];for(let b of p){let x=wx(g,r,a,b);n.push(Ul(x,c,f&&f[a],h))}}return n}function tI(a,n,s){return ws(a)?a(n,s):a}var W2=(a,n)=>a===!0?n:typeof a==="string"?Hl(n,a):void 0;function Z2(a,n,s,l,r){for(let c of n){let f=W2(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,()=>Q2(n,s,l))}function Mw(a,n,s,l,r){while(s)s=Z2(a,n,s,l,r);return s}function Q2(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 K2(a,n,s,l){let r;for(let c of n)if(r=aI(G2(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=J2(a._scopes);return n}function J2(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 eE=Number.EPSILON||0.00000000000001,fu=(a,n)=>n<a.length&&!a[n].skip&&a[n],oI=(a)=>a==="x"?"y":"x";function tE(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),b=p/(h+p);g=isNaN(g)?0:g,b=isNaN(b)?0:b;let x=l*g,S=l*b;return{previous:{x:c.x-x*(f.x-r.x),y:c.y-x*(f.y-r.y)},next:{x:c.x+S*(f.x-r.x),y:c.y+S*(f.y-r.y)}}}function aE(a,n,s){let l=a.length,r,c,f,h,p,g=fu(a,0);for(let b=0;b<l-1;++b){if(p=g,g=fu(a,b+1),!p||!g)continue;if(mu(n[b],0,eE)){s[b]=s[b+1]=0;continue}if(r=s[b]/n[b],c=s[b+1]/n[b],h=Math.pow(r,2)+Math.pow(c,2),h<=9)continue;f=3/Math.sqrt(h),s[b]=r*f*n[b],s[b+1]=c*f*n[b]}}function oE(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 b=h[s],x=h[l];if(f)c=(b-f[s])/3,h[`cp1${s}`]=b-c,h[`cp1${l}`]=x-c*n[g];if(p)c=(p[s]-b)/3,h[`cp2${s}`]=b+c,h[`cp2${l}`]=x+c*n[g]}}function nE(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 b=g[n]-p[n];r[f]=b!==0?(g[s]-p[s])/b:0}c[f]=!h?r[f]:!g?r[f-1]:hn(r[f-1])!==hn(r[f])?0:(r[f-1]+r[f])/2}aE(a,r,c),oE(a,c,n)}function Cp(a,n,s){return Math.max(Math.min(a,s),n)}function sE(a,n){let s,l,r,c,f,h=jn(a[0],n);for(s=0,l=a.length;s<l;++s){if(f=c,c=h,h=s<l-1&&jn(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")nE(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=tE(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)sE(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 iE(a,n){return Up(a).getPropertyValue(n)}var lE=["top","right","bottom","left"];function zl(a,n,s){let l={};s=s?"-"+s:"";for(let r=0;r<4;r++){let c=lE[r];l[c]=parseFloat(a[n+"-"+c+s])||0}return l.width=l.left+l.right,l.height=l.top+l.bottom,l}var rE=(a,n,s)=>(a>0||n>0)&&(!s||!s.shadowRoot);function uE(a,n){let s=a.touches,l=s&&s.length?s[0]:a,{offsetX:r,offsetY:c}=l,f=!1,h,p;if(rE(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:b}=uE(a,s),x=f.left+(b&&h.left),S=f.top+(b&&h.top),{width:T,height:M}=n;if(c)T-=f.width+h.width,M-=f.height+h.height;return{x:Math.round((p-x)/T*s.width/l),y:Math.round((g-S)/M*s.height/l)}}function cE(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=cE(a,n,s),{width:g,height:b}=p;if(r.boxSizing==="content-box"){let S=zl(r,"border","width"),T=zl(r,"padding");g-=T.width+S.width,b-=T.height+S.height}if(g=Math.max(0,g-c.width),b=Math.max(0,l?g/l:b-c.height),g=_i(Math.min(g,f,p.maxWidth)),b=_i(Math.min(b,h,p.maxHeight)),g&&!b)b=_i(g/2);if((n!==void 0||s!==void 0)&&l&&p.height&&b>p.height)b=p.height,g=_i(Math.floor(b*l));return{width:g,height:b}}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=iE(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),b=ki(h,p,s);return ki(g,b,s)}var dE=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}}},fE=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?dE(n,s):fE()}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:k2,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 hE(a,n,s){let{property:l,start:r,end:c}=s,{between:f,normalize:h}=uI(l),p=n.length,{start:g,end:b,loop:x}=a,S,T;if(x){g+=p,b+=p;for(S=0,T=p;S<T;++S){if(!f(h(n[g%p][l]),r,c))break;g--,b--}g%=p,b%=p}if(b<g)b+=p;return{start:g,end:b,loop:x,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:b,end:x,loop:S,style:T}=hE(a,n,s),M=[],R=!1,w=null,_,z,V,W=()=>p(r,V,_)&&h(r,V)!==0,Q=()=>h(c,_)===0||p(c,V,_),ne=()=>R||W(),J=()=>!R||Q();for(let K=b,re=b;K<=x;++K){if(z=n[K%f],z.skip)continue;if(_=g(z[l]),_===V)continue;if(R=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,V=_}if(w!==null)M.push(kw({start:w,end:x,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 pE(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 mE(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}=pE(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,mE(s,f,p,g),s,n)}function Rw(a,n,s,l){if(!l||!l.setContext||!s)return n;return gE(a,n,s,l)}function gE(a,n,s,l){let r=a._chart.getContext(),c=_w(a.options),{_datasetIndex:f,options:{spanGaps:h}}=a,p=s.length,g=[],b=c,x=n[0].start,S=x;function T(M,R,w,_){let z=h?-1:1;if(M===R)return;M+=p;while(s[M%p].skip)M-=z;while(s[R%p].skip)R+=z;if(M%p!==R%p)g.push({start:M%p,end:R%p,loop:w,style:_}),b=_,x=R%p}for(let M of n){x=h?x:M.start;let R=s[x%p],w;for(S=x+1;S<=M.end;S++){let _=s[S%p];if(w=_w(l.setContext(ks(r,{type:"segment",p0:R,p1:_,p0DataIndex:(S-1)%p,p1DataIndex:S%p,datasetIndex:f}))),yE(w,b))T(x,S-1,M.loop,b);R=_,b=w}if(x<S-1)T(x,S-1,M.loop,b)}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 yE(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 bE(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=bE(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)}}/*!
|
|
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 sI{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(a,n,s,i){let r=n.listeners[i],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=hx.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 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)i.draw(),this._notify(i,s,a,"progress");if(!r.length)s.running=!1,this._notify(i,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,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 ks=new sI,uM="transparent",yE={boolean(a,n,s){return s>0.5?n:a},color(a,n,s){let i=gx(a||uM),r=i.valid&&gx(n||uM);return r&&r.valid?r.mix(i,s).hexString():n},number(a,n,s){return a+(n-a)*s}};class lI{constructor(a,n,s,i){let r=n[s];i=fd([a.to,i,r,a.from]);let c=fd([a.from,r,i]);this._active=!0,this._fn=a.fn||yE[a.type||typeof c],this._easing=uu[a.easing]||uu.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=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],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=fd([a.to,n,i,a.from]),this._from=fd([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,r=this._from,c=this._loop,f=this._to,h;if(this._active=r!==f&&(c||n<s),!this._active){this._target[i]=f,this._notify(!0);return}if(n<0){this._target[i]=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[i]=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 i=0;i<s.length;i++)s[i][n]()}}class Zx{constructor(a,n){this._chart=a,this._properties=new Map,this.configure(n)}configure(a){if(!at(a))return;let n=Object.keys(Ft.animation),s=this._properties;Object.getOwnPropertyNames(a).forEach((i)=>{let r=a[i];if(!at(r))return;let c={};for(let f of n)c[f]=r[f];(kt(r.properties)&&r.properties||[i]).forEach((f)=>{if(f===i||!s.has(f))s.set(f,c)})})}_animateOptions(a,n){let s=n.options,i=xE(a,s);if(!i)return[];let r=this._createAnimations(i,s);if(s.$shared)bE(a.options.$animations,s).then(()=>{a.options=s},()=>{});return r}_createAnimations(a,n){let s=this._properties,i=[],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"){i.push(...this._animateOptions(a,n));continue}let g=n[p],b=r[p],x=s.get(p);if(b)if(x&&b.active()){b.update(x,g,f);continue}else b.cancel();if(!x||!x.duration){a[p]=g;continue}r[p]=b=new lI(x,a,p,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 ks.add(this._chart,s),!0}}function bE(a,n){let s=[],i=Object.keys(n);for(let r=0;r<i.length;r++){let c=a[i[r]];if(c&&c.active())s.push(c.wait())}return Promise.all(s)}function xE(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 cM(a,n){let s=a&&a.options||{},i=s.reverse,r=s.min===void 0?n:0,c=s.max===void 0?n:0;return{start:i?c:r,end:i?r:c}}function vE(a,n,s){if(s===!1)return!1;let i=cM(a,s),r=cM(n,s);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function SE(a){let n,s,i,r;if(at(a))n=a.top,s=a.right,i=a.bottom,r=a.left;else n=s=i=r=a;return{top:n,right:s,bottom:i,left:r,disabled:a===!1}}function iI(a,n){let s=[],i=a._getSortedDatasetMetas(n),r,c;for(r=0,c=i.length;r<c;++r)s.push(i[r].index);return s}function dM(a,n,s,i={}){let r=a.keys,c=i.mode==="single",f,h,p,g;if(n===null)return;let b=!1;for(f=0,h=r.length;f<h;++f){if(p=+r[f],p===s){if(b=!0,i.all)continue;break}if(g=a.values[p],Ht(g)&&(c||n===0||fn(n)===fn(g)))n+=g}if(!b&&!i.all)return 0;return n}function LE(a,n){let{iScale:s,vScale:i}=n,r=s.axis==="x"?"x":"y",c=i.axis==="x"?"x":"y",f=Object.keys(a),h=Array(f.length),p,g,b;for(p=0,g=f.length;p<g;++p)b=f[p],h[p]={[r]:b,[c]:a[b]};return h}function _x(a,n){let s=a&&a.options.stacked;return s||s===void 0&&n.stack!==void 0}function CE(a,n,s){return`${a.id}.${n.id}.${s.stack||s.type}`}function TE(a){let{min:n,max:s,minDefined:i,maxDefined:r}=a.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:r?s:Number.POSITIVE_INFINITY}}function wE(a,n,s){let i=a[n]||(a[n]={});return i[s]||(i[s]={})}function fM(a,n,s,i){for(let r of n.getMatchingVisibleMetas(i).reverse()){let c=a[r.index];if(s&&c>0||!s&&c<0)return r.index}return null}function hM(a,n){let{chart:s,_cachedMeta:i}=a,r=s._stacks||(s._stacks={}),{iScale:c,vScale:f,index:h}=i,p=c.axis,g=f.axis,b=CE(c,f,i),x=n.length,S;for(let T=0;T<x;++T){let A=n[T],{[p]:M,[g]:w}=A,_=A._stacks||(A._stacks={});S=_[g]=wE(r,b,M),S[h]=w,S._top=fM(S,f,!0,i.type),S._bottom=fM(S,f,!1,i.type);let z=S._visualValues||(S._visualValues={});z[h]=w}}function Dx(a,n){let s=a.scales;return Object.keys(s).filter((i)=>s[i].axis===n).shift()}function ME(a,n){return As(a,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function IE(a,n,s){return As(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 r of n){let c=r._stacks;if(!c||c[i]===void 0||c[i][s]===void 0)return;if(delete c[i][s],c[i]._visualValues!==void 0&&c[i]._visualValues[s]!==void 0)delete c[i]._visualValues[s]}}var Ex=(a)=>a==="reset"||a==="none",pM=(a,n)=>n?a:Object.assign({},a),AE=(a,n,s)=>a&&!n.hidden&&n._stacked&&{keys:iI(s,!0),values:null};class Yp{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=_x(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,x,S,T)=>b==="x"?x:b==="r"?T:S,r=n.xAxisID=We(s.xAxisID,Dx(a,"x")),c=n.yAxisID=We(s.yAxisID,Dx(a,"y")),f=n.rAxisID=We(s.rAxisID,Dx(a,"r")),h=n.indexAxis,p=n.iAxisID=i(h,r,c,f),g=n.vAxisID=i(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)dx(this._data,this);if(a._stacked)hd(a)}_dataCheck(){let a=this.getDataset(),n=a.data||(a.data=[]),s=this._data;if(at(n)){let i=this._cachedMeta;this._data=LE(n,i)}else if(s!==n){if(s){dx(s,this);let i=this._cachedMeta;hd(i),i._parsed=[]}if(n&&Object.isExtensible(n))Fw(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 r=n._stacked;if(n._stacked=_x(n.vScale,n),n.stack!==s.stack)i=!0,hd(n),n.stack=s.stack;if(this._resyncElements(a),i||r!==n._stacked)hM(this,n._parsed),n._stacked=_x(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:r,_stacked:c}=s,f=r.axis,h=a===0&&n===i.length?!0:s._sorted,p=a>0&&s._parsed[a-1],g,b,x;if(this._parsing===!1)s._parsed=i,s._sorted=!0,x=i;else{if(kt(i[a]))x=this.parseArrayData(s,i,a,n);else if(at(i[a]))x=this.parseObjectData(s,i,a,n);else x=this.parsePrimitiveData(s,i,a,n);let S=()=>b[f]===null||p&&b[f]<p[f];for(g=0;g<n;++g)if(s._parsed[g+a]=b=x[g],h){if(S())h=!1;p=b}s._sorted=h}if(c)hM(this,x)}parsePrimitiveData(a,n,s,i){let{iScale:r,vScale:c}=a,f=r.axis,h=c.axis,p=r.getLabels(),g=r===c,b=Array(i),x,S,T;for(x=0,S=i;x<S;++x)T=x+s,b[x]={[f]:g||r.parse(p[T],T),[h]:c.parse(n[T],T)};return b}parseArrayData(a,n,s,i){let{xScale:r,yScale:c}=a,f=Array(i),h,p,g,b;for(h=0,p=i;h<p;++h)g=h+s,b=n[g],f[h]={x:r.parse(b[0],g),y:c.parse(b[1],g)};return f}parseObjectData(a,n,s,i){let{xScale:r,yScale:c}=a,{xAxisKey:f="x",yAxisKey:h="y"}=this._parsing,p=Array(i),g,b,x,S;for(g=0,b=i;g<b;++g)x=g+s,S=n[x],p[g]={x:r.parse(Ui(S,f),x),y:c.parse(Ui(S,h),x)};return p}getParsed(a){return this._cachedMeta._parsed[a]}getDataElement(a){return this._cachedMeta.data[a]}applyStack(a,n,s){let i=this.chart,r=this._cachedMeta,c=n[a.axis],f={keys:iI(i,!0),values:n._stacks[a.axis]._visualValues};return dM(f,c,r.index,{mode:s})}updateRangeFromParsed(a,n,s,i){let r=s[n.axis],c=r===null?NaN:r,f=i&&s._stacks[n.axis];if(i&&f)i.values=f,c=dM(i,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,i=s._parsed,r=s._sorted&&a===s.iScale,c=i.length,f=this._getOtherScale(a),h=AE(n,s,this.chart),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:b}=TE(f),x,S;function T(){S=i[x];let A=S[f.axis];return!Ht(S[a.axis])||g>A||b<A}for(x=0;x<c;++x){if(T())continue;if(this.updateRangeFromParsed(p,a,S,h),r)break}if(r)for(x=c-1;x>=0;--x){if(T())continue;this.updateRangeFromParsed(p,a,S,h);break}return p}getAllParsedValues(a){let n=this._cachedMeta._parsed,s=[],i,r,c;for(i=0,r=n.length;i<r;++i)if(c=n[i][a.axis],Ht(c))s.push(c);return s}getMaxOverflow(){return!1}getLabelAndValue(a){let n=this._cachedMeta,s=n.iScale,i=n.vScale,r=this.getParsed(a);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(a){let n=this._cachedMeta;this.update(a||"default"),n._clip=SE(We(this.options.clip,vE(n.xScale,n.yScale,this.getMaxOverflow())))}update(a){}draw(){let a=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],r=n.chartArea,c=[],f=this._drawStart||0,h=this._drawCount||i.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 b=i[g];if(b.hidden)continue;if(b.active&&p)c.push(b);else b.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 i=this.getDataset(),r;if(a>=0&&a<this._cachedMeta.data.length){let c=this._cachedMeta.data[a];r=c.$context||(c.$context=IE(this.getContext(),a,c)),r.parsed=this.getParsed(a),r.raw=i.data[a],r.index=r.dataIndex=a}else r=this.$context||(this.$context=ME(this.chart.getContext(),this.index)),r.dataset=i,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 i=n==="active",r=this._cachedDataOpts,c=a+"-"+n,f=r[c],h=this.enableOptionSharing&&hu(s);if(f)return pM(f,h);let p=this.chart.config,g=p.datasetElementScopeKeys(this._type,a),b=i?[`${a}Hover`,"hover",a,""]:[a,""],x=p.getOptionScopes(this.getDataset(),g),S=Object.keys(Ft.elements[a]),T=()=>this.getContext(s,i,n),A=p.resolveNamedOptions(x,S,T,b);if(A.$shared)A.$shared=h,r[c]=Object.freeze(pM(A,h));return A}_resolveAnimations(a,n,s){let i=this.chart,r=this._cachedDataOpts,c=`animation-${n}`,f=r[c];if(f)return f;let h;if(i.options.animation!==!1){let g=this.chart.config,b=g.datasetAnimationScopeKeys(this._type,n),x=g.getOptionScopes(this.getDataset(),b);h=g.createResolver(x,this.getContext(a,s,n))}let p=new Zx(i,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||Ex(a)||this.chart._animationsDisabled}_getSharedOptions(a,n){let s=this.resolveDataElementOptions(a,n),i=this._sharedOptions,r=this.getSharedOptions(s),c=this.includeOptions(n,r)||r!==i;return this.updateSharedOptions(r,n,s),{sharedOptions:r,includeOptions:c}}updateElement(a,n,s,i){if(Ex(i))Object.assign(a,s);else this._resolveAnimations(n,i).update(a,s)}updateSharedOptions(a,n,s){if(a&&!Ex(n))this._resolveAnimations(void 0,n).update(a,s)}_setStyle(a,n,s,i){a.active=i;let r=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(a,{options:!i&&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 i=s.length,r=n.length,c=Math.min(r,i);if(c)this.parse(0,c);if(r>i)this._insertElements(i,r-i,a);else if(r<i)this._removeElements(r,i-r)}_insertElements(a,n,s=!0){let i=this._cachedMeta,r=i.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(i._parsed);if(this.parse(a,n),s)this.updateElements(r,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 kE(a,n){if(!a._cache.$bar){let s=a.getMatchingVisibleMetas(n),i=[];for(let r=0,c=s.length;r<c;r++)i=i.concat(s[r].controller.getAllParsedValues(a));a._cache.$bar=fx(i.sort((r,c)=>r-c))}return a._cache.$bar}function RE(a){let n=a.iScale,s=kE(n,a.type),i=n._length,r,c,f,h,p=()=>{if(f===32767||f===-32768)return;if(hu(h))i=Math.min(i,Math.abs(f-h)||i);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 i}function _E(a,n,s,i){let r=s.barThickness,c,f;if(st(r))c=n.min*s.categoryPercentage,f=s.barPercentage;else c=r*i,f=1;return{chunk:c/i,ratio:f,start:n.pixels[a]-c/2}}function DE(a,n,s,i){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/i,ratio:s.barPercentage,start:g}}function EE(a,n,s,i){let r=s.parse(a[0],i),c=s.parse(a[1],i),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 rI(a,n,s,i){if(kt(a))EE(a,n,s,i);else n[s.axis]=s.parse(a,i);return n}function mM(a,n,s,i){let{iScale:r,vScale:c}=a,f=r.getLabels(),h=r===c,p=[],g,b,x,S;for(g=s,b=s+i;g<b;++g)S=n[g],x={},x[r.axis]=h||r.parse(f[g],g),p.push(rI(S,x,c,g));return p}function Ox(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function OE(a,n,s){if(a!==0)return fn(a);return(n.isHorizontal()?1:-1)*(n.min>=s?1:-1)}function PE(a){let n,s,i,r,c;if(a.horizontal)n=a.base>a.x,s="left",i="right";else n=a.base<a.y,s="bottom",i="top";if(n)r="end",c="start";else r="start",c="end";return{start:s,end:i,reverse:n,top:r,bottom:c}}function BE(a,n,s,i){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:b}=PE(a);if(r==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===i)r=g;else if((s._bottom||0)===i)r=b;else c[gM(b,f,h,p)]=!0,r=g;c[gM(r,f,h,p)]=!0,a.borderSkipped=c}function gM(a,n,s,i){if(i)a=NE(a,n,s),a=yM(a,s,n);else a=yM(a,n,s);return a}function NE(a,n,s){return a===n?s:a===s?n:a}function yM(a,n,s){return a==="start"?n:a==="end"?s:a}function zE(a,{inflateAmount:n},s){a.inflateAmount=n==="auto"?s===1?0.33:0:n}class Qx extends Yp{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 mM(a,n,s,i)}parseArrayData(a,n,s,i){return mM(a,n,s,i)}parseObjectData(a,n,s,i){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,b=[],x,S,T,A;for(x=s,S=s+i;x<S;++x)A=n[x],T={},T[r.axis]=r.parse(Ui(A,p),x),b.push(rI(Ui(A,g),T,c,x));return b}updateRangeFromParsed(a,n,s,i){super.updateRangeFromParsed(a,n,s,i);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:i}=n,r=this.getParsed(a),c=r._custom,f=Ox(c)?"["+c.start+", "+c.end+"]":""+i.getLabelForValue(r[i.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,i){let r=i==="reset",{index:c,_cachedMeta:{vScale:f}}=this,h=f.getBasePixel(),p=f.isHorizontal(),g=this._getRuler(),{sharedOptions:b,includeOptions:x}=this._getSharedOptions(n,i);for(let S=n;S<n+s;S++){let T=this.getParsed(S),A=r||st(T[f.axis])?{base:h,head:h}:this._calculateBarValuePixels(S),M=this._calculateBarIndexPixels(S,g),w=(T._stacks||{})[f.axis],_={horizontal:p,base:A.base,enableBorderRadius:!w||Ox(T._custom)||c===w._top||c===w._bottom,x:p?A.head:M.center,y:p?M.center:A.head,height:p?M.size:Math.abs(A.size),width:p?Math.abs(A.size):M.size};if(x)_.options=b||this.resolveDataElementOptions(S,a[S].active?"active":i);let z=_.options||a[S].options;BE(_,z,w,c),zE(_,z,g.ratio),this.updateElement(a[S],S,_,i)}}_getStacks(a,n){let{iScale:s}=this._cachedMeta,i=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 b=g._parsed.find((S)=>S[s.axis]===h),x=b&&b[g.vScale.axis];if(st(x)||isNaN(x))return!0};for(let g of i){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 i=this._getStacks(a,s),r=n!==void 0?i.indexOf(n):-1;return r===-1?i.length-1:r}_getRuler(){let a=this.options,n=this._cachedMeta,s=n.iScale,i=[],r,c;for(r=0,c=n.data.length;r<c;++r)i.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));let f=a.barThickness;return{min:f||RE(n),pixels:i,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:i},options:{base:r,minBarLength:c}}=this,f=r||0,h=this.getParsed(a),p=h._custom,g=Ox(p),b=h[n.axis],x=0,S=s?this.applyStack(n,h,s):b,T,A;if(S!==b)x=S-b,S=b;if(g){if(b=p.barStart,S=p.barEnd-p.barStart,b!==0&&fn(b)!==fn(p.barEnd))x=0;x+=b}let M=!st(r)&&!g?r:x,w=n.getPixelForValue(M);if(this.chart.getDataVisibility(a))T=n.getPixelForValue(x+S);else T=w;if(A=T-w,Math.abs(A)<c){if(A=OE(A,n,f)*c,b===f)w-=A/2;let _=n.getPixelForDecimal(0),z=n.getPixelForDecimal(1),V=Math.min(_,z),W=Math.max(_,z);if(w=Math.max(Math.min(w,W),V),T=w+A,s&&!g)h._stacks[n.axis]._visualValues[i]=n.getValueForPixel(T)-n.getValueForPixel(w)}if(w===n.getPixelForValue(f)){let _=fn(A)*n.getLineWidthForValue(f)/2;w+=_,A-=_}return{size:A,base:w,head:T,center:T+A/2}}_calculateBarIndexPixels(a,n){let s=n.scale,i=this.options,r=i.skipNull,c=We(i.maxBarThickness,1/0),f,h,p=this._getAxisCount();if(n.grouped){let g=r?this._getStackCount(a):n.stackCount,b=i.barThickness==="flex"?DE(a,n,i,g*p):_E(a,n,i,g*p),x=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,S=this._getAxis().indexOf(We(x,this.getFirstScaleIdForIndexAxis())),T=this._getStackIndex(this.index,this._cachedMeta.stack,r?a:void 0)+S;f=b.start+b.chunk*T+b.chunk/2,h=Math.min(c,b.chunk*b.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,i=s.length,r=0;for(;r<i;++r)if(this.getParsed(r)[n.axis]!==null&&!s[r].hidden)s[r].draw(this._ctx)}}class Kx extends Yp{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:r}=n,c=this.chart._animationsDisabled,{start:f,count:h}=jw(n,i,c);if(this._drawStart=f,this._drawCount=h,Gw(n))f=0,h=i.length;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=i;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(i,f,h,a)}updateElements(a,n,s,i){let r=i==="reset",{iScale:c,vScale:f,_stacked:h,_dataset:p}=this._cachedMeta,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i),x=c.axis,S=f.axis,{spanGaps:T,segment:A}=this.options,M=mu(T)?T:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||i==="none",_=n+s,z=a.length,V=n>0&&this.getParsed(n-1);for(let W=0;W<z;++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[x]=c.getPixelForValue(J[x],W),q=ne[S]=r||K?f.getBasePixel():f.getPixelForValue(h?this.applyStack(f,J,h):J[S],W);if(ne.skip=isNaN(re)||isNaN(q)||K,ne.stop=W>0&&Math.abs(J[x]-V[x])>M,A)ne.parsed=J,ne.raw=p.data[W];if(b)ne.options=g||this.resolveDataElementOptions(W,Q.active?"active":i);if(!w)this.updateElement(Q,W,ne,i);V=J}}getMaxOverflow(){let a=this._cachedMeta,n=a.dataset,s=n.options&&n.options.borderWidth||0,i=a.data||[];if(!i.length)return s;let r=i[0].size(this.resolveDataElementOptions(0)),c=i[i.length-1].size(this.resolveDataElementOptions(i.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 Fi(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class Jx{static override(a){Object.assign(Jx.prototype,a)}options;constructor(a){this.options=a||{}}init(){}formats(){return Fi()}parse(){return Fi()}format(){return Fi()}add(){return Fi()}diff(){return Fi()}startOf(){return Fi()}endOf(){return Fi()}}var UE={_date:Jx};function HE(a,n,s,i){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?zw:kl;if(!i){let b=g(c,n,s);if(p){let{vScale:x}=r._cachedMeta,{_parsed:S}=a,T=S.slice(0,b.lo+1).reverse().findIndex((M)=>!st(M[x.axis]));b.lo-=Math.max(0,T);let A=S.slice(b.hi).findIndex((M)=>!st(M[x.axis]));b.hi+=Math.max(0,A)}return b}else if(r._sharedOptions){let b=c[0],x=typeof b.getRange==="function"&&b.getRange(n);if(x){let S=g(c,n,s-x),T=g(c,n,s+x);return{lo:S.lo,hi:T.hi}}}}return{lo:0,hi:c.length-1}}function Td(a,n,s,i,r){let c=a.getSortedVisibleDatasetMetas(),f=s[n];for(let h=0,p=c.length;h<p;++h){let{index:g,data:b}=c[h],{lo:x,hi:S}=HE(c[h],n,f,r);for(let T=x;T<=S;++T){let A=b[T];if(!A.skip)i(A,g,T)}}}function FE(a){let n=a.indexOf("x")!==-1,s=a.indexOf("y")!==-1;return function(i,r){let c=n?Math.abs(i.x-r.x):0,f=s?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(c,2)+Math.pow(f,2))}}function Px(a,n,s,i,r){let c=[];if(!r&&!a.isPointInArea(n))return c;return Td(a,s,n,function(h,p,g){if(!r&&!Vn(h,a.chartArea,0))return;if(h.inRange(n.x,n.y,i))c.push({element:h,datasetIndex:p,index:g})},!0),c}function qE(a,n,s,i){let r=[];function c(f,h,p){let{startAngle:g,endAngle:b}=f.getProps(["startAngle","endAngle"],i),{angle:x}=Bw(f,{x:n.x,y:n.y});if(cx(x,g,b))r.push({element:f,datasetIndex:h,index:p})}return Td(a,s,n,c),r}function VE(a,n,s,i,r,c){let f=[],h=FE(s),p=Number.POSITIVE_INFINITY;function g(b,x,S){let T=b.inRange(n.x,n.y,r);if(i&&!T)return;let A=b.getCenterPoint(r);if(!(!!c||a.isPointInArea(A))&&!T)return;let w=h(n,A);if(w<p)f=[{element:b,datasetIndex:x,index:S}],p=w;else if(w===p)f.push({element:b,datasetIndex:x,index:S})}return Td(a,s,n,g),f}function Bx(a,n,s,i,r,c){if(!c&&!a.isPointInArea(n))return[];return s==="r"&&!i?qE(a,n,s,r):VE(a,n,s,i,r,c)}function bM(a,n,s,i,r){let c=[],f=s==="x"?"inXRange":"inYRange",h=!1;if(Td(a,s,n,(p,g,b)=>{if(p[f]&&p[f](n[s],r))c.push({element:p,datasetIndex:g,index:b}),h=h||p.inRange(n.x,n.y,r)}),i&&!h)return[];return c}var jE={evaluateInteractionItems:Td,modes:{index(a,n,s,i){let r=Pl(n,a),c=s.axis||"x",f=s.includeInvisible||!1,h=s.intersect?Px(a,r,c,i,f):Bx(a,r,c,!1,i,f),p=[];if(!h.length)return[];return a.getSortedVisibleDatasetMetas().forEach((g)=>{let b=h[0].index,x=g.data[b];if(x&&!x.skip)p.push({element:x,datasetIndex:g.index,index:b})}),p},dataset(a,n,s,i){let r=Pl(n,a),c=s.axis||"xy",f=s.includeInvisible||!1,h=s.intersect?Px(a,r,c,i,f):Bx(a,r,c,!1,i,f);if(h.length>0){let p=h[0].datasetIndex,g=a.getDatasetMeta(p).data;h=[];for(let b=0;b<g.length;++b)h.push({element:g[b],datasetIndex:p,index:b})}return h},point(a,n,s,i){let r=Pl(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return Px(a,r,c,i,f)},nearest(a,n,s,i){let r=Pl(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return Bx(a,r,c,s.intersect,i,f)},x(a,n,s,i){let r=Pl(n,a);return bM(a,r,"x",s.intersect,i)},y(a,n,s,i){let r=Pl(n,a);return bM(a,r,"y",s.intersect,i)}}},uI=["left","top","right","bottom"];function pd(a,n){return a.filter((s)=>s.pos===n)}function xM(a,n){return a.filter((s)=>uI.indexOf(s.pos)===-1&&s.box.axis===n)}function md(a,n){return a.sort((s,i)=>{let r=n?i:s,c=n?s:i;return r.weight===c.weight?r.index-c.index:r.weight-c.weight})}function GE(a){let n=[],s,i,r,c,f,h;for(s=0,i=(a||[]).length;s<i;++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 YE(a){let n={};for(let s of a){let{stack:i,pos:r,stackWeight:c}=s;if(!i||!uI.includes(r))continue;let f=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});f.count++,f.weight+=c}return n}function XE(a,n){let s=YE(a),{vBoxMaxWidth:i,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],b=g&&h.stackWeight/g.weight;if(h.horizontal)h.width=b?b*i:p&&n.availableWidth,h.height=r;else h.width=i,h.height=b?b*r:p&&n.availableHeight}return s}function $E(a){let n=GE(a),s=md(n.filter((g)=>g.box.fullSize),!0),i=md(pd(n,"left"),!0),r=md(pd(n,"right")),c=md(pd(n,"top"),!0),f=md(pd(n,"bottom")),h=xM(n,"x"),p=xM(n,"y");return{fullSize:s,leftAndTop:i.concat(c),rightAndBottom:r.concat(p).concat(f).concat(h),chartArea:pd(n,"chartArea"),vertical:i.concat(r).concat(p),horizontal:c.concat(f).concat(h)}}function vM(a,n,s,i){return Math.max(a[s],n[s])+Math.max(a[i],n[i])}function cI(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 WE(a,n,s,i){let{pos:r,box:c}=s,f=a.maxPadding;if(!at(r)){if(s.size)a[r]-=s.size;let x=i[s.stack]||{size:0,count:1};x.size=Math.max(x.size,s.horizontal?c.height:c.width),s.size=x.size/x.count,a[r]+=s.size}if(c.getPadding)cI(f,c.getPadding());let h=Math.max(0,n.outerWidth-vM(f,a,"left","right")),p=Math.max(0,n.outerHeight-vM(f,a,"top","bottom")),g=h!==a.w,b=p!==a.h;return a.w=h,a.h=p,s.horizontal?{same:g,other:b}:{same:b,other:g}}function ZE(a){let n=a.maxPadding;function s(i){let r=Math.max(n[i]-a[i],0);return a[i]+=r,r}a.y+=s("top"),a.x+=s("left"),s("right"),s("bottom")}function QE(a,n){let s=n.maxPadding;function i(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?i(["left","right"]):i(["top","bottom"])}function bd(a,n,s,i){let r=[],c,f,h,p,g,b;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,QE(h.horizontal,n));let{same:x,other:S}=WE(n,s,h,i);if(g|=x&&r.length,b=b||S,!p.fullSize)r.push(h)}return g&&bd(r,n,s,i)||b}function zp(a,n,s,i,r){a.top=s,a.left=n,a.right=n+i,a.bottom=s+r,a.width=i,a.height=r}function SM(a,n,s,i){let r=s.padding,{x:c,y:f}=n;for(let h of a){let p=h.box,g=i[h.stack]||{count:1,placed:0,weight:1},b=h.stackWeight/g.weight||1;if(h.horizontal){let x=n.w*b,S=g.size||p.height;if(hu(g.start))f=g.start;if(p.fullSize)zp(p,r.left,f,s.outerWidth-r.right-r.left,S);else zp(p,n.left+g.placed,f,x,S);g.start=f,g.placed+=x,f=p.bottom}else{let x=n.h*b,S=g.size||p.width;if(hu(g.start))c=g.start;if(p.fullSize)zp(p,c,r.top,S,s.outerHeight-r.bottom-r.top);else zp(p,c,n.top+g.placed,S,x);g.start=c,g.placed+=x,c=p.right}}n.x=c,n.y=f}var Yo={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 r=Ca(a.options.layout.padding),c=Math.max(n-r.width,0),f=Math.max(s-r.height,0),h=$E(a.boxes),p=h.vertical,g=h.horizontal;pt(a.boxes,(M)=>{if(typeof M.beforeLayout==="function")M.beforeLayout()});let b=p.reduce((M,w)=>w.box.options&&w.box.options.display===!1?M:M+1,0)||1,x=Object.freeze({outerWidth:n,outerHeight:s,padding:r,availableWidth:c,availableHeight:f,vBoxMaxWidth:c/2/b,hBoxMaxHeight:f/2}),S=Object.assign({},r);cI(S,Ca(i));let T=Object.assign({maxPadding:S,w:c,h:f,x:r.left,y:r.top},r),A=XE(p.concat(g),x);if(bd(h.fullSize,T,x,A),bd(p,T,x,A),bd(g,T,x,A))bd(p,T,x,A);ZE(T),SM(h.leftAndTop,T,x,A),T.x+=T.w,T.y+=T.h,SM(h.rightAndBottom,T,x,A),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,(M)=>{let w=M.box;Object.assign(w,a.chartArea),w.update(T.w,T.h,{left:0,top:0,right:0,bottom:0})})}};class ev{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 dI extends ev{acquireContext(a){return a&&a.getContext&&a.getContext("2d")||null}updateConfig(a){a.options.animation=!1}}var Vp="$chartjs",KE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},LM=(a)=>a===null||a==="";function JE(a,n){let s=a.style,i=a.getAttribute("height"),r=a.getAttribute("width");if(a[Vp]={initial:{height:i,width:r,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",LM(r)){let c=wx(a,"width");if(c!==void 0)a.width=c}if(LM(i))if(a.style.height==="")a.height=a.width/(n||2);else{let c=wx(a,"height");if(c!==void 0)a.height=c}return a}var fI=nM?{passive:!0}:!1;function eO(a,n,s){if(a)a.addEventListener(n,s,fI)}function tO(a,n,s){if(a&&a.canvas)a.canvas.removeEventListener(n,s,fI)}function aO(a,n){let s=KE[a.type]||a.type,{x:i,y:r}=Pl(a,n);return{type:s,chart:n,native:a,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Gp(a,n){for(let s of a)if(s===n||s.contains(n))return!0}function oO(a,n,s){let i=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||Gp(h.addedNodes,i),f=f&&!Gp(h.removedNodes,i);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}function nO(a,n,s){let i=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||Gp(h.removedNodes,i),f=f&&!Gp(h.addedNodes,i);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}var Sd=new Map,CM=0;function hI(){let a=window.devicePixelRatio;if(a===CM)return;CM=a,Sd.forEach((n,s)=>{if(s.currentDevicePixelRatio!==a)n()})}function sO(a,n){if(!Sd.size)window.addEventListener("resize",hI);Sd.set(a,n)}function lO(a){if(Sd.delete(a),!Sd.size)window.removeEventListener("resize",hI)}function iO(a,n,s){let i=a.canvas,r=i&&Bp(i);if(!r)return;let c=px((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,b=p.contentRect.height;if(g===0&&b===0)return;c(g,b)});return f.observe(r),sO(a,c),f}function Nx(a,n,s){if(s)s.disconnect();if(n==="resize")lO(a)}function rO(a,n,s){let i=a.canvas,r=px((c)=>{if(a.ctx!==null)s(aO(c,a))},a);return eO(i,n,r),r}class pI extends ev{acquireContext(a,n){let s=a&&a.getContext&&a.getContext("2d");if(s&&s.canvas===a)return JE(a,n),s;return null}releaseContext(a){let n=a.canvas;if(!n[Vp])return!1;let s=n[Vp].initial;["height","width"].forEach((r)=>{let c=s[r];if(st(c))n.removeAttribute(r);else n.setAttribute(r,c)});let i=s.style||{};return Object.keys(i).forEach((r)=>{n.style[r]=i[r]}),n.width=n.width,delete n[Vp],!0}addEventListener(a,n,s){this.removeEventListener(a,n);let i=a.$proxies||(a.$proxies={}),c={attach:oO,detach:nO,resize:iO}[n]||rO;i[n]=c(a,n,s)}removeEventListener(a,n){let s=a.$proxies||(a.$proxies={}),i=s[n];if(!i)return;({attach:Nx,detach:Nx,resize:Nx}[n]||tO)(a,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(a,n,s,i){return oM(a,n,s,i)}isAttached(a){let n=a&&Bp(a);return!!(n&&n.isConnected)}}function uO(a){if(!Pp()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return dI;return pI}class _s{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 mu(this.x)&&mu(this.y)}getProps(a,n){let s=this.$animations;if(!n||!s)return this;let i={};return a.forEach((r)=>{i[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),i}}function cO(a,n){let s=a.options.ticks,i=dO(a),r=Math.min(s.maxTicksLimit||i,i),c=s.major.enabled?hO(n):[],f=c.length,h=c[0],p=c[f-1],g=[];if(f>r)return pO(n,g,c,f/r),g;let b=fO(c,n,r);if(f>0){let x,S,T=f>1?Math.round((p-h)/(f-1)):null;Up(n,g,b,st(T)?0:h-T,h);for(x=0,S=f-1;x<S;x++)Up(n,g,b,c[x],c[x+1]);return Up(n,g,b,p,st(T)?n.length:p+T),g}return Up(n,g,b),g}function dO(a){let n=a.options.offset,s=a._tickSize(),i=a._length/s+(n?0:1),r=a._maxLength/s;return Math.floor(Math.min(i,r))}function fO(a,n,s){let i=mO(a),r=n.length/s;if(!i)return Math.max(r,1);let c=Ow(i);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 hO(a){let n=[],s,i;for(s=0,i=a.length;s<i;s++)if(a[s].major)n.push(s);return n}function pO(a,n,s,i){let r=0,c=s[0],f;i=Math.ceil(i);for(f=0;f<a.length;f++)if(f===c)n.push(a[f]),r++,c=s[r*i]}function Up(a,n,s,i,r){let c=We(i,0),f=Math.min(We(r,a.length),a.length),h=0,p,g,b;if(s=Math.ceil(s),r)p=r-i,s=p/Math.floor(p/s);b=c;while(b<0)h++,b=Math.round(c+h*s);for(g=Math.max(c,0);g<f;g++)if(g===b)n.push(a[g]),h++,b=Math.round(c+h*s)}function mO(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 gO=(a)=>a==="left"?"right":a==="right"?"left":a,TM=(a,n,s)=>n==="top"||n==="left"?a[n]+s:a[n]-s,wM=(a,n)=>Math.min(n||a,a);function MM(a,n){let s=[],i=a.length/n,r=a.length,c=0;for(;c<r;c+=i)s.push(a[Math.floor(c)]);return s}function yO(a,n,s){let i=a.ticks.length,r=Math.min(n,i-1),c=a._startPixel,f=a._endPixel,h=0.000001,p=a.getPixelForTick(r),g;if(s){if(i===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 bO(a,n){pt(a,(s)=>{let i=s.gc,r=i.length/2,c;if(r>n){for(c=0;c<r;++c)delete s.data[i[c]];i.splice(0,r)}})}function gd(a){return a.drawTicks?a.tickLength:0}function IM(a,n){if(!a.display)return 0;let s=na(a.font,n),i=Ca(a.padding);return(kt(a.text)?a.text.length:1)*s.lineHeight+i.height}function xO(a,n){return As(a,{scale:n,type:"scale"})}function vO(a,n,s){return As(a,{tick:s,index:n,type:"tick"})}function SO(a,n,s){let i=Rp(a);if(s&&n!=="right"||!s&&n==="right")i=gO(i);return i}function LO(a,n,s,i){let{top:r,left:c,bottom:f,right:h,chart:p}=a,{chartArea:g,scales:b}=p,x=0,S,T,A,M=f-r,w=h-c;if(a.isHorizontal()){if(T=La(i,c,h),at(s)){let _=Object.keys(s)[0],z=s[_];A=b[_].getPixelForValue(z)+M-n}else if(s==="center")A=(g.bottom+g.top)/2+M-n;else A=TM(a,s,n);S=h-c}else{if(at(s)){let _=Object.keys(s)[0],z=s[_];T=b[_].getPixelForValue(z)-w+n}else if(s==="center")T=(g.left+g.right)/2-w+n;else T=TM(a,s,n);A=La(i,f,r),x=s==="left"?-Ja:Ja}return{titleX:T,titleY:A,maxWidth:S,rotation:x}}class Vi extends _s{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=ao(a,Number.POSITIVE_INFINITY),n=ao(n,Number.NEGATIVE_INFINITY),s=ao(s,Number.POSITIVE_INFINITY),i=ao(i,Number.NEGATIVE_INFINITY),{min:ao(a,s),max:ao(n,i),minDefined:Ht(a),maxDefined:Ht(n)}}getMinMax(a){let{min:n,max:s,minDefined:i,maxDefined:r}=this.getUserBounds(),c;if(i&&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),!i)n=Math.min(n,c.min);if(!r)s=Math.max(s,c.max)}return n=r&&n>s?s:n,s=i&&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(){wt(this.options.beforeUpdate,[this])}update(a,n,s){let{beginAtZero:i,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=Qw(this,r,i),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let h=f<this.ticks.length;if(this._convertTicksToLabels(h?MM(this.ticks,f):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),c.display&&(c.autoSkip||c.source==="auto"))this.ticks=cO(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(){wt(this.options.afterUpdate,[this])}beforeSetDimensions(){wt(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(){wt(this.options.afterSetDimensions,[this])}_callHooks(a){this.chart.notifyPlugins(a,this.getContext()),wt(this.options[a],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){wt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(a){let n=this.options.ticks,s,i,r;for(s=0,i=a.length;s<i;s++)r=a[s],r.label=wt(n.callback,[r.value,s,a],this)}afterTickToLabelConversion(){wt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){wt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let a=this.options,n=a.ticks,s=wM(this.ticks.length,a.ticks.maxTicksLimit),i=n.minRotation||0,r=n.maxRotation,c=i,f,h,p;if(!this._isVisible()||!n.display||i>=r||s<=1||!this.isHorizontal()){this.labelRotation=i;return}let g=this._getLabelSizes(),b=g.widest.width,x=g.highest.height,S=to(this.chart.width-b,0,this.maxWidth);if(f=a.offset?this.maxWidth/s:S/(s-1),b+6>f)f=S/(s-(a.offset?0.5:1)),h=this.maxHeight-gd(a.grid)-n.padding-IM(a.title,this.chart.options.font),p=Math.sqrt(b*b+x*x),c=Ap(Math.min(Math.asin(to((g.highest.height+6)/f,-1,1)),Math.asin(to(h/p,-1,1))-Math.asin(to(x/p,-1,1)))),c=Math.max(i,Math.min(r,c));this.labelRotation=c}afterCalculateLabelRotation(){wt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){wt(this.options.beforeFit,[this])}fit(){let a={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:r}}=this,c=this._isVisible(),f=this.isHorizontal();if(c){let h=IM(i,n.options.font);if(f)a.width=this.maxWidth,a.height=gd(r)+h;else a.height=this.maxHeight,a.width=gd(r)+h;if(s.display&&this.ticks.length){let{first:p,last:g,widest:b,highest:x}=this._getLabelSizes(),S=s.padding*2,T=Ms(this.labelRotation),A=Math.cos(T),M=Math.sin(T);if(f){let w=s.mirror?0:M*b.width+A*x.height;a.height=Math.min(this.maxHeight,a.height+w+S)}else{let w=s.mirror?0:A*b.width+M*x.height;a.width=Math.min(this.maxWidth,a.width+w+S)}this._calculatePadding(p,g,M,A)}}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,i){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,b=this.right-this.getPixelForTick(this.ticks.length-1),x=0,S=0;if(h)if(p)x=i*a.width,S=s*n.height;else x=s*a.height,S=i*n.width;else if(r==="start")S=n.width;else if(r==="end")x=a.width;else if(r!=="inner")x=a.width/2,S=n.width/2;this.paddingLeft=Math.max((x-g+c)*this.width/(this.width-g),0),this.paddingRight=Math.max((S-b+c)*this.width/(this.width-b),0)}else{let g=n.height/2,b=a.height/2;if(r==="start")g=0,b=a.height;else if(r==="end")g=n.height,b=0;this.paddingTop=g+c,this.paddingBottom=b+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(){wt(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=MM(s,n);this._labelSizes=a=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return a}_computeLabelSizes(a,n,s){let{ctx:i,_longestTextCache:r}=this,c=[],f=[],h=Math.floor(n/wM(n,s)),p=0,g=0,b,x,S,T,A,M,w,_,z,V,W;for(b=0;b<n;b+=h){if(T=a[b].label,A=this._resolveTickFontOptions(b),i.font=M=A.string,w=r[M]=r[M]||{data:{},gc:[]},_=A.lineHeight,z=V=0,!st(T)&&!kt(T))z=id(i,w.data,w.gc,z,T),V=_;else if(kt(T)){for(x=0,S=T.length;x<S;++x)if(W=T[x],!st(W)&&!kt(W))z=id(i,w.data,w.gc,z,W),V+=_}c.push(z),f.push(V),p=Math.max(z,p),g=Math.max(V,g)}bO(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 Nw(this._alignToPixels?Dl(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=vO(this.getContext(),a,s))}return this.$context||(this.$context=xO(this.chart.getContext(),this))}_tickSize(){let a=this.options.ticks,n=Ms(this.labelRotation),s=Math.abs(Math.cos(n)),i=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*i?f/s:h/i:h*i<f*s?h/s:f/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:r,position:c,border:f}=i,h=r.offset,p=this.isHorizontal(),b=this.ticks.length+(h?1:0),x=gd(r),S=[],T=f.setContext(this.getContext()),A=T.display?T.width:0,M=A/2,w=function(G){return Dl(s,G,A)},_,z,V,W,Q,ne,J,K,re,q,he,Le;if(c==="top")_=w(this.bottom),ne=this.bottom-x,K=_-M,q=w(a.top)+M,Le=a.bottom;else if(c==="bottom")_=w(this.top),q=a.top,Le=w(a.bottom)-M,ne=_+M,K=this.top+x;else if(c==="left")_=w(this.right),Q=this.right-x,J=_-M,re=w(a.left)+M,he=a.right;else if(c==="right")_=w(this.left),re=a.left,he=w(a.right)-M,Q=_+M,J=this.left+x;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],ie=c[G];_=w(this.chart.scales[G].getPixelForValue(ie))}q=a.top,Le=a.bottom,ne=_+M,K=ne+x}else if(n==="y"){if(c==="center")_=w((a.left+a.right)/2);else if(at(c)){let G=Object.keys(c)[0],ie=c[G];_=w(this.chart.scales[G].getPixelForValue(ie))}Q=_-M,J=Q-x,re=a.left,he=a.right}let we=We(i.ticks.maxTicksLimit,b),Oe=Math.max(1,Math.ceil(b/we));for(z=0;z<b;z+=Oe){let G=this.getContext(z),ie=r.setContext(G),pe=f.setContext(G),Qe=ie.lineWidth,je=ie.color,D=pe.dash||[],Z=pe.dashOffset,me=ie.tickWidth,ge=ie.tickColor,Ge=ie.tickBorderDash||[],qt=ie.tickBorderDashOffset;if(V=yO(this,z,h),V===void 0)continue;if(W=Dl(s,V,Qe),p)Q=J=re=he=W;else ne=K=q=Le=W;S.push({tx1:Q,ty1:ne,tx2:J,ty2:K,x1:re,y1:q,x2:he,y2:Le,width:Qe,color:je,borderDash:D,borderDashOffset:Z,tickWidth:me,tickColor:ge,tickBorderDash:Ge,tickBorderDashOffset:qt})}return this._ticksLength=b,this._borderValue=_,S}_computeLabelItems(a){let n=this.axis,s=this.options,{position:i,ticks:r}=s,c=this.isHorizontal(),f=this.ticks,{align:h,crossAlign:p,padding:g,mirror:b}=r,x=gd(s.grid),S=x+g,T=b?-g:S,A=-Ms(this.labelRotation),M=[],w,_,z,V,W,Q,ne,J,K,re,q,he,Le="middle";if(i==="top")Q=this.bottom-T,ne=this._getXAxisLabelAlignment();else if(i==="bottom")Q=this.top+T,ne=this._getXAxisLabelAlignment();else if(i==="left"){let Oe=this._getYAxisLabelAlignment(x);ne=Oe.textAlign,W=Oe.x}else if(i==="right"){let Oe=this._getYAxisLabelAlignment(x);ne=Oe.textAlign,W=Oe.x}else if(n==="x"){if(i==="center")Q=(a.top+a.bottom)/2+S;else if(at(i)){let Oe=Object.keys(i)[0],G=i[Oe];Q=this.chart.scales[Oe].getPixelForValue(G)+S}ne=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")W=(a.left+a.right)/2-S;else if(at(i)){let Oe=Object.keys(i)[0],G=i[Oe];W=this.chart.scales[Oe].getPixelForValue(G)}ne=this._getYAxisLabelAlignment(x).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){z=f[w],V=z.label;let Oe=r.setContext(this.getContext(w));J=this.getPixelForTick(w)+r.labelOffset,K=this._resolveTickFontOptions(w),re=K.lineHeight,q=kt(V)?V.length:1;let G=q/2,ie=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(i==="top")if(p==="near"||A!==0)he=-q*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"||A!==0)he=re/2;else if(p==="center")he=we.highest.height/2-G*re;else he=we.highest.height-q*re;if(b)he*=-1;if(A!==0&&!Oe.showLabelBackdrop)W+=re/2*Math.sin(A)}else Q=J,he=(1-q)*re/2;let D;if(Oe.showLabelBackdrop){let Z=Ca(Oe.backdropPadding),me=we.heights[w],ge=we.widths[w],Ge=he-Z.top,qt=0-Z.left;switch(Le){case"middle":Ge-=me/2;break;case"bottom":Ge-=me;break}switch(ne){case"center":qt-=ge/2;break;case"right":qt-=ge;break;case"inner":if(w===_-1)qt-=ge;else if(w>0)qt-=ge/2;break}D={left:qt,top:Ge,width:ge+Z.width,height:me+Z.height,color:Oe.backdropColor}}M.push({label:V,font:K,textOffset:he,options:{rotation:A,color:ie,strokeColor:pe,strokeWidth:Qe,textAlign:je,textBaseline:Le,translation:[W,Q],backdrop:D}})}return M}_getXAxisLabelAlignment(){let{position:a,ticks:n}=this.options;if(-Ms(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:r}}=this.options,c=this._getLabelSizes(),f=a+r,h=c.widest.width,p,g;if(n==="left")if(i)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(i)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:i,width:r,height:c}=this;if(n)a.save(),a.fillStyle=n,a.fillRect(s,i,r,c),a.restore()}getLineWidthForValue(a){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let i=this.ticks.findIndex((r)=>r.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)),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=i.length;r<c;++r){let h=i[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:i}}=this,r=s.setContext(this.getContext()),c=s.display?r.width:0;if(!c)return;let f=i.setContext(this.getContext(0)).lineWidth,h=this._borderValue,p,g,b,x;if(this.isHorizontal())p=Dl(a,this.left,c)-c/2,g=Dl(a,this.right,f)+f/2,b=x=h;else b=Dl(a,this.top,c)-c/2,x=Dl(a,this.bottom,f)+f/2,p=g=h;n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(p,b),n.lineTo(g,x),n.stroke(),n.restore()}drawLabels(a){if(!this.options.ticks.display)return;let s=this.ctx,i=this._computeLabelArea();if(i)cd(s,i);let r=this.getLabelItems(a);for(let c of r){let{options:f,font:h,label:p,textOffset:g}=c;El(s,p,0,g,h,f)}if(i)dd(s)}drawTitle(){let{ctx:a,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;let r=na(s.font),c=Ca(s.padding),f=s.align,h=r.lineHeight/2;if(n==="bottom"||n==="center"||at(n)){if(h+=c.bottom,kt(s.text))h+=r.lineHeight*(s.text.length-1)}else h+=c.top;let{titleX:p,titleY:g,maxWidth:b,rotation:x}=LO(this,h,n,f);El(a,s.text,0,0,r,{color:s.color,maxWidth:b,rotation:x,textAlign:SO(f,n,i),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),i=We(a.border&&a.border.z,0);if(!this._isVisible()||this.draw!==Vi.prototype.draw)return[{z:n,draw:(r)=>{this.draw(r)}}];return[{z:s,draw:(r)=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:(r)=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(a){let n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[],r,c;for(r=0,c=n.length;r<c;++r){let f=n[r];if(f[s]===this.id&&(!a||f.type===a))i.push(f)}return i}_resolveTickFontOptions(a){let n=this.options.ticks.setContext(this.getContext(a));return na(n.font)}_maxDigits(){let a=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/a}}class xd{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(wO(n))s=this.register(n);let i=this.items,r=a.id,c=this.scope+"."+r;if(!r)throw Error("class does not have id: "+a);if(r in i)return c;if(i[r]=a,CO(a,c,s),this.override)Ft.override(a.id,a.overrides);return c}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 Ft[i]){if(delete Ft[i][s],this.override)delete _l[s]}}}function CO(a,n,s){let i=cu(Object.create(null),[s?Ft.get(s):{},Ft.get(n),a.defaults]);if(Ft.set(n,i),a.defaultRoutes)TO(n,a.defaultRoutes);if(a.descriptors)Ft.describe(n,a.descriptors)}function TO(a,n){Object.keys(n).forEach((s)=>{let i=s.split("."),r=i.pop(),c=[a].concat(i).join("."),f=n[s].split("."),h=f.pop(),p=f.join(".");Ft.route(c,r,p,h)})}function wO(a){return"id"in a&&"defaults"in a}class mI{constructor(){this.controllers=new xd(Yp,"datasets",!0),this.elements=new xd(_s,"elements"),this.plugins=new xd(Object,"plugins"),this.scales=new xd(Vi,"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 r=s||this._getRegistryForType(i);if(s||r.isForType(i)||r===this.plugins&&i.id)this._exec(a,r,i);else pt(i,(c)=>{let f=s||this._getRegistryForType(c);this._exec(a,f,c)})})}_exec(a,n,s){let i=Ip(a);wt(s["before"+i],[],s),n[a](s),wt(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 Yn=new mI;class gI{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 r=i?this._descriptors(a).filter(i):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,i){i=i||{};for(let r of a){let c=r.plugin,f=c[s],h=[n,i,r.options];if(wt(f,h,c)===!1&&i.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,i=We(s.options&&s.options.plugins,{}),r=MO(s);return i===!1&&!n?[]:AO(a,r,i,n)}_notifyStateChanges(a){let n=this._oldCache||[],s=this._cache,i=(r,c)=>r.filter((f)=>!c.some((h)=>f.plugin.id===h.plugin.id));this._notify(i(n,s),a,"stop"),this._notify(i(s,n),a,"start")}}function MO(a){let n={},s=[],i=Object.keys(Yn.plugins.items);for(let c=0;c<i.length;c++)s.push(Yn.getPlugin(i[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 IO(a,n){if(!n&&a===!1)return null;if(a===!0)return{};return a}function AO(a,{plugins:n,localIds:s},i,r){let c=[],f=a.getContext();for(let h of n){let p=h.id,g=IO(i[p],r);if(g===null)continue;c.push({plugin:h,options:kO(a.config,{plugin:h,local:s[p]},g,f)})}return c}function kO(a,{plugin:n,local:s},i,r){let c=a.pluginScopeKeys(n),f=a.getOptionScopes(i,c);if(s&&n.defaults)f.push(n.defaults);return a.createResolver(f,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function qx(a,n){let s=Ft.datasets[a]||{};return((n.datasets||{})[a]||{}).indexAxis||n.indexAxis||s.indexAxis||"x"}function RO(a,n){let s=a;if(a==="_index_")s=n;else if(a==="_value_")s=n==="x"?"y":"x";return s}function _O(a,n){return a===n?"_index_":"_value_"}function AM(a){if(a==="x"||a==="y"||a==="r")return a}function DO(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function Vx(a,...n){if(AM(a))return a;for(let s of n){let i=s.axis||DO(s.position)||a.length>1&&AM(a[0].toLowerCase());if(i)return i}throw Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function kM(a,n,s){if(s[n+"AxisID"]===a)return{axis:n}}function EO(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 kM(a,"x",s[0])||kM(a,"y",s[0])}return{}}function OO(a,n){let s=_l[a.type]||{scales:{}},i=n.scales||{},r=qx(a.type,n),c=Object.create(null);return Object.keys(i).forEach((f)=>{let h=i[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=Vx(f,h,EO(f,a),Ft.scales[h.type]),g=_O(p,r),b=s.scales||{};c[f]=fu(Object.create(null),[{axis:p},h,b[p],b[g]])}),a.data.datasets.forEach((f)=>{let h=f.type||a.type,p=f.indexAxis||qx(h,n),b=(_l[h]||{}).scales||{};Object.keys(b).forEach((x)=>{let S=RO(x,p),T=f[S+"AxisID"]||S;c[T]=c[T]||Object.create(null),fu(c[T],[{axis:S},i[T],b[x]])})}),Object.keys(c).forEach((f)=>{let h=c[f];fu(h,[Ft.scales[h.type],Ft.scale])}),c}function yI(a){let n=a.options||(a.options={});n.plugins=We(n.plugins,{}),n.scales=OO(a,n)}function bI(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function PO(a){return a=a||{},a.data=bI(a.data),yI(a),a}var RM=new Map,xI=new Set;function Hp(a,n){let s=RM.get(a);if(!s)s=n(),RM.set(a,s),xI.add(s);return s}var yd=(a,n,s)=>{let i=Ui(n,s);if(i!==void 0)a.add(i)};class vI{constructor(a){this._config=PO(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=bI(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(),yI(a)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(a){return Hp(a,()=>[[`datasets.${a}`,""]])}datasetAnimationScopeKeys(a,n){return Hp(`${a}.transition.${n}`,()=>[[`datasets.${a}.transitions.${n}`,`transitions.${n}`],[`datasets.${a}`,""]])}datasetElementScopeKeys(a,n){return Hp(`${a}-${n}`,()=>[[`datasets.${a}.elements.${n}`,`datasets.${a}`,`elements.${n}`,""]])}pluginScopeKeys(a){let n=a.id,s=this.type;return Hp(`${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: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((b)=>yd(h,a,b));g.forEach((b)=>yd(h,i,b)),g.forEach((b)=>yd(h,_l[r]||{},b)),g.forEach((b)=>yd(h,Ft,b)),g.forEach((b)=>yd(h,Dp,b))});let p=Array.from(h);if(p.length===0)p.push(Object.create(null));if(xI.has(n))c.set(n,p);return p}chartOptionScopes(){let{options:a,type:n}=this;return[a,_l[n]||{},Ft.datasets[n]||{},{type:n},Ft,Dp]}resolveNamedOptions(a,n,s,i=[""]){let r={$shared:!0},{resolver:c,subPrefixes:f}=_M(this._resolverCache,a,i),h=c;if(NO(c,n)){r.$shared=!1,s=Ts(s)?s():s;let p=this.createResolver(a,s,f);h=zi(c,s,p)}for(let p of n)r[p]=h[p];return r}createResolver(a,n,s=[""],i){let{resolver:r}=_M(this._resolverCache,a,s);return at(n)?zi(r,n,void 0,i):r}}function _M(a,n,s){let i=a.get(n);if(!i)i=new Map,a.set(n,i);let r=s.join(),c=i.get(r);if(!c)c={resolver:Op(n,s),subPrefixes:s.filter((h)=>!h.toLowerCase().includes("hover"))},i.set(r,c);return c}var BO=(a)=>at(a)&&Object.getOwnPropertyNames(a).some((n)=>Ts(a[n]));function NO(a,n){let{isScriptable:s,isIndexable:i}=Sx(a);for(let r of n){let c=s(r),f=i(r),h=(f||c)&&a[r];if(c&&(Ts(h)||BO(h))||f&&kt(h))return!0}return!1}var zO="4.5.1",UO=["top","bottom","left","right","chartArea"];function DM(a,n){return a==="top"||a==="bottom"||UO.indexOf(a)===-1&&n==="x"}function EM(a,n){return function(s,i){return s[a]===i[a]?s[n]-i[n]:s[a]-i[a]}}function OM(a){let n=a.chart,s=n.options.animation;n.notifyPlugins("afterRender"),wt(s&&s.onComplete,[a],n)}function HO(a){let n=a.chart,s=n.options.animation;wt(s&&s.onProgress,[a],n)}function SI(a){if(Pp()&&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 jp={},PM=(a)=>{let n=SI(a);return Object.values(jp).filter((s)=>s.canvas===n).pop()};function FO(a,n,s){let i=Object.keys(a);for(let r of i){let c=+r;if(c>=n){let f=a[r];if(delete a[r],s>0||c>n)a[c+s]=f}}}function qO(a,n,s,i){if(!s||a.type==="mouseout")return null;if(i)return n;return a}class ji{static defaults=Ft;static instances=jp;static overrides=_l;static registry=Yn;static version=zO;static getChart=PM;static register(...a){Yn.add(...a),BM()}static unregister(...a){Yn.remove(...a),BM()}constructor(a,n){let s=this.config=new vI(n),i=SI(a),r=PM(i);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||uO(i)),this.platform.updateConfig(s);let f=this.platform.acquireContext(i,c.aspectRatio),h=f&&f.canvas,p=h&&h.height,g=h&&h.width;if(this.id=Rw(),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 gI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=qw((b)=>this.update(b),c.resizeDelay||0),this._dataChanges=[],jp[this.id]=this,!f||!h){console.error("Failed to create chart: can't acquire context from the given item");return}if(ks.listen(this,"complete",OM),ks.listen(this,"progress",HO),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:a,maintainAspectRatio:n},width:s,height:i,_aspectRatio:r}=this;if(!st(a))return a;if(n&&r)return r;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 Yn}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else Tx(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yx(this.canvas,this.ctx),this}stop(){return ks.stop(this),this}resize(a,n){if(!ks.running(this))this._resize(a,n);else this._resizeBeforeDraw={width:a,height:n}}_resize(a,n){let s=this.options,i=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,c=this.platform.getMaximumSize(i,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,!Tx(this,f,!0))return;if(this.notifyPlugins("resize",{size:c}),wt(s.onResize,[this,c],this),this.attached){if(this._doResize(h))this.render()}}ensureScalesHaveIDs(){let n=this.options.scales||{};pt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){let a=this.options,n=a.scales,s=this.scales,i=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=Vx(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=Vx(h,f),g=We(f.type,c.dtype);if(f.position===void 0||DM(f.position,p)!==DM(c.dposition))f.position=c.dposition;i[h]=!0;let b=null;if(h in s&&s[h].type===g)b=s[h];else b=new(Yn.getScale(g))({id:h,type:g,ctx:this.ctx,chart:this}),s[b.id]=b;b.init(f,a)}),pt(i,(c,f)=>{if(!c)delete s[f]}),pt(s,(c)=>{Yo.configure(this,c,c.options),Yo.addBox(this,c)})}_updateMetasets(){let a=this._metasets,n=this.data.datasets.length,s=a.length;if(a.sort((i,r)=>i.index-r.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);a.splice(n,s-n)}this._sortedMetasets=a.slice(0).sort(EM("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((r)=>r===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 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||qx(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=Yn.getController(f),{datasetElementType:p,dataElementType:g}=Ft.datasets[f];Object.assign(h,{dataElementType:Yn.getElement(g),datasetElementType:p&&Yn.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()),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 r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let p=0,g=this.data.datasets.length;p<g;p++){let{controller:b}=this.getDatasetMeta(p),x=!i&&r.indexOf(b)===-1;b.buildOrUpdateElements(x),c=Math.max(+b.getMaxOverflow(),c)}if(c=this._minPadding=s.layout.autoPadding?c:0,this._updateLayout(c),!i)pt(r,(p)=>{p.reset()});this._updateDatasets(a),this.notifyPlugins("afterUpdate",{mode:a}),this._layers.sort(EM("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)=>{Yo.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(!lx(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:r}of n){let c=s==="_removeElements"?-r:r;FO(a,i,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(","))),i=s(0);for(let r=1;r<n;r++)if(!lx(i,s(r)))return;return Array.from(i).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;Yo.update(this,this.width,this.height,a);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],pt(this.boxes,(i)=>{if(s&&i.position==="chartArea")return;if(i.configure)i.configure();this._layers.push(...i._layers())},this),this._layers.forEach((i,r)=>{i._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,Ts(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(ks.has(this)){if(this.attached&&!ks.running(this))ks.start(this)}else this.draw(),OM({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,r;for(i=0,r=n.length;i<r;++i){let c=n[i];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},i=Rx(this,a);if(this.notifyPlugins("beforeDatasetDraw",s)===!1)return;if(i)cd(n,i);if(a.controller.draw(),i)dd(n);s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s)}isPointInArea(a){return Vn(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,n,s,i){let r=jE.modes[n];if(typeof r==="function")return r(this,a,s,i);return[]}getDatasetMeta(a){let n=this.data.datasets[a],s=this._metasets,i=s.filter((r)=>r&&r._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=As(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",r=this.getDatasetMeta(a),c=r.controller._resolveAnimations(void 0,i);if(hu(n))r.data[n].hidden=!s,this.update();else this.setDatasetVisibility(a,s),c.update(r,{visible:s}),this.update((f)=>f.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(),ks.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 jp[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},i=(r,c,f)=>{r.offsetX=c,r.offsetY=f,this._eventHandler(r)};pt(this.options.events,(r)=>s(r,i))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let a=this._responsiveListeners,n=this.platform,s=(h,p)=>{n.addEventListener(this,h,p),a[h]=p},i=(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=()=>{i("attach",f),this.attached=!0,this.resize(),s("resize",r),s("detach",c)};if(c=()=>{this.attached=!1,i("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 i=s?"set":"remove",r,c,f,h;if(n==="dataset")r=this.getDatasetMeta(a[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]();for(f=0,h=a.length;f<h;++f){c=a[f];let p=c&&this.getDatasetMeta(c.datasetIndex).controller;if(p)p[i+"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(!rd(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,r=(h,p)=>h.filter((g)=>!p.some((b)=>g.datasetIndex===b.datasetIndex&&g.index===b.index)),c=r(n,a),f=s?a:r(a,n);if(c.length)this.updateHoverStyle(c,i.mode,!1);if(f.length&&i.mode)this.updateHoverStyle(f,i.mode,!0)}_eventHandler(a,n){let s={event:a,replay:n,cancelable:!0,inChartArea:this.isPointInArea(a)},i=(c)=>(c.options.events||this.options.events).includes(a.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;let r=this._handleEvent(a,n,s.inChartArea);if(s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),r||s.changed)this.render();return this}_handleEvent(a,n,s){let{_active:i=[],options:r}=this,c=n,f=this._getActiveElements(a,i,s,c),h=Ew(a),p=qO(a,this._lastEvent,s,h);if(s){if(this._lastEvent=null,wt(r.onHover,[a,f,this],this),h)wt(r.onClick,[a,f,this],this)}let g=!rd(f,i);if(g||n)this._active=f,this._updateHoverStyles(f,i,n);return this._lastEvent=p,g}_getActiveElements(a,n,s,i){if(a.type==="mouseout")return[];if(!s)return n;let r=this.options.hover;return this.getElementsAtEventForMode(a,r.mode,r,i)}}function BM(){return pt(ji.instances,(a)=>a._plugins.invalidate())}function LI(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 VO(a,n,s){a.lineTo(s.x,s.y)}function jO(a){if(a.stepped)return Ww;if(a.tension||a.cubicInterpolationMode==="monotone")return Zw;return VO}function CI(a,n,s={}){let i=a.length,{start:r=0,end:c=i-1}=s,{start:f,end:h}=n,p=Math.max(r,f),g=Math.min(c,h),b=r<f&&c<f||r>h&&c>h;return{count:i,start:p,loop:n.loop,ilen:g<p&&!b?i+g-p:g-p}}function GO(a,n,s,i){let{points:r,options:c}=n,{count:f,start:h,loop:p,ilen:g}=CI(r,s,i),b=jO(c),{move:x=!0,reverse:S}=i||{},T,A,M;for(T=0;T<=g;++T){if(A=r[(h+(S?g-T:T))%f],A.skip)continue;else if(x)a.moveTo(A.x,A.y),x=!1;else b(a,M,A,S,c.stepped);M=A}if(p)A=r[(h+(S?g:0))%f],b(a,M,A,S,c.stepped);return!!p}function YO(a,n,s,i){let r=n.points,{count:c,start:f,ilen:h}=CI(r,s,i),{move:p=!0,reverse:g}=i||{},b=0,x=0,S,T,A,M,w,_,z=(W)=>(f+(g?h-W:W))%c,V=()=>{if(M!==w)a.lineTo(b,w),a.lineTo(b,M),a.lineTo(b,_)};if(p)T=r[z(0)],a.moveTo(T.x,T.y);for(S=0;S<=h;++S){if(T=r[z(S)],T.skip)continue;let{x:W,y:Q}=T,ne=W|0;if(ne===A){if(Q<M)M=Q;else if(Q>w)w=Q;b=(x*b+W)/++x}else V(),a.lineTo(W,Q),A=ne,x=0,M=w=Q;_=Q}V()}function jx(a){let n=a.options,s=n.borderDash&&n.borderDash.length;return!a._decimated&&!a._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!s?YO:GO}function XO(a){if(a.stepped)return sM;if(a.tension||a.cubicInterpolationMode==="monotone")return lM;return Al}function $O(a,n,s,i){let r=n._path;if(!r){if(r=n._path=new Path2D,n.path(r,s,i))r.closePath()}LI(a,n.options),a.stroke(r)}function WO(a,n,s,i){let{segments:r,options:c}=n,f=jx(n);for(let h of r){if(LI(a,c,h.style),a.beginPath(),f(a,n,h,{start:s,end:s+i-1}))a.closePath();a.stroke()}}var ZO=typeof Path2D==="function";function QO(a,n,s,i){if(ZO&&!n.options.segment)$O(a,n,s,i);else WO(a,n,s,i)}class yu extends _s{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;aM(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=rM(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],r=this.points,c=kx(this,{property:n,start:i,end:i});if(!c.length)return;let f=[],h=XO(s),p,g;for(p=0,g=c.length;p<g;++p){let{start:b,end:x}=c[p],S=r[b],T=r[x];if(S===T){f.push(S);continue}let A=Math.abs((i-S[n])/(T[n]-S[n])),M=h(S,T,A,s.stepped);M[n]=a[n],f.push(M)}return f.length===1?f[0]:f}pathSegment(a,n,s){return jx(this)(a,this,n,s)}path(a,n,s){let i=this.segments,r=jx(this),c=this._loop;n=n||0,s=s||this.points.length-n;for(let f of i)c&=r(a,this,f,{start:n,end:n+s-1});return!!c}draw(a,n,s,i){let r=this.options||{};if((this.points||[]).length&&r.borderWidth)a.save(),QO(a,this,s,i),a.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function NM(a,n,s,i){let r=a.options,{[s]:c}=a.getProps([s],i);return Math.abs(n-c)<r.radius+r.hitRadius}class tv extends _s{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:r,y:c}=this.getProps(["x","y"],s);return Math.pow(a-r,2)+Math.pow(n-c,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(a,n){return NM(this,a,"x",n)}inYRange(a,n){return NM(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||!Vn(this,n,this.size(s)/2))return;a.strokeStyle=s.borderColor,a.lineWidth=s.borderWidth,a.fillStyle=s.backgroundColor,Ep(a,s,this.x,this.y)}getRange(){let a=this.options||{};return a.radius+a.hitRadius}}function TI(a,n){let{x:s,y:i,base:r,width:c,height:f}=a.getProps(["x","y","base","width","height"],n),h,p,g,b,x;if(a.horizontal)x=f/2,h=Math.min(s,r),p=Math.max(s,r),g=i-x,b=i+x;else x=c/2,h=s-x,p=s+x,g=Math.min(i,r),b=Math.max(i,r);return{left:h,top:g,right:p,bottom:b}}function Bl(a,n,s,i){return a?0:to(n,s,i)}function KO(a,n,s){let i=a.options.borderWidth,r=a.borderSkipped,c=vx(i);return{t:Bl(r.top,c.top,0,s),r:Bl(r.right,c.right,0,n),b:Bl(r.bottom,c.bottom,0,s),l:Bl(r.left,c.left,0,n)}}function JO(a,n,s){let{enableBorderRadius:i}=a.getProps(["enableBorderRadius"]),r=a.options.borderRadius,c=Ol(r),f=Math.min(n,s),h=a.borderSkipped,p=i||at(r);return{topLeft:Bl(!p||h.top||h.left,c.topLeft,0,f),topRight:Bl(!p||h.top||h.right,c.topRight,0,f),bottomLeft:Bl(!p||h.bottom||h.left,c.bottomLeft,0,f),bottomRight:Bl(!p||h.bottom||h.right,c.bottomRight,0,f)}}function eP(a){let n=TI(a),s=n.right-n.left,i=n.bottom-n.top,r=KO(a,s/2,i/2),c=JO(a,s/2,i/2);return{outer:{x:n.left,y:n.top,w:s,h:i,radius:c},inner:{x:n.left+r.l,y:n.top+r.t,w:s-r.l-r.r,h:i-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 zx(a,n,s,i){let r=n===null,c=s===null,h=a&&!(r&&c)&&TI(a,i);return h&&(r||Is(n,h.left,h.right))&&(c||Is(s,h.top,h.bottom))}function tP(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function aP(a,n){a.rect(n.x,n.y,n.w,n.h)}function Ux(a,n,s={}){let i=a.x!==s.x?-n:0,r=a.y!==s.y?-n:0,c=(a.x+a.w!==s.x+s.w?n:0)-i,f=(a.y+a.h!==s.y+s.h?n:0)-r;return{x:a.x+i,y:a.y+r,w:a.w+c,h:a.h+f,radius:a.radius}}class av extends _s{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:r,outer:c}=eP(this),f=tP(c.radius)?gu:aP;if(a.save(),c.w!==r.w||c.h!==r.h)a.beginPath(),f(a,Ux(c,n,r)),a.clip(),f(a,Ux(r,-n,c)),a.fillStyle=s,a.fill("evenodd");a.beginPath(),f(a,Ux(r,n)),a.fillStyle=i,a.fill(),a.restore()}inRange(a,n,s){return zx(this,a,n,s)}inXRange(a,n){return zx(this,a,null,n)}inYRange(a,n){return zx(this,null,a,n)}getCenterPoint(a){let{x:n,y:s,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],a);return{x:r?(n+i)/2:n,y:r?s:(s+i)/2}}getRange(a){return a==="x"?this.width/2:this.height/2}}function oP(a,n,s){let{segments:i,points:r}=a,c=n.points,f=[];for(let h of i){let{start:p,end:g}=h;g=Xp(p,g,r);let b=Gx(s,r[p],r[g],h.loop);if(!n.segments){f.push({source:h,target:b,start:r[p],end:r[g]});continue}let x=kx(n,b);for(let S of x){let T=Gx(s,c[S.start],c[S.end],S.loop),A=Ax(h,r,T);for(let M of A)f.push({source:M,target:S,start:{[s]:zM(b,T,"start",Math.max)},end:{[s]:zM(b,T,"end",Math.min)}})}}return f}function Gx(a,n,s,i){if(i)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 nP(a,n){let{x:s=null,y:i=null}=a||{},r=n.points,c=[];return n.segments.forEach(({start:f,end:h})=>{h=Xp(f,h,r);let p=r[f],g=r[h];if(i!==null)c.push({x:p.x,y:i}),c.push({x:g.x,y:i});else if(s!==null)c.push({x:s,y:p.y}),c.push({x:s,y:g.y})}),c}function Xp(a,n,s){for(;n>a;n--){let i=s[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function zM(a,n,s,i){if(a&&n)return i(a[s],n[s]);return a?a[s]:n?n[s]:0}function wI(a,n){let s=[],i=!1;if(kt(a))i=!0,s=a;else s=nP(a,n);return s.length?new yu({points:s,options:{tension:0},_loop:i,_fullLoop:i}):null}function UM(a){return a&&a.fill!==!1}function sP(a,n,s){let r=a[n].fill,c=[n],f;if(!s)return r;while(r!==!1&&c.indexOf(r)===-1){if(!Ht(r))return r;if(f=a[r],!f)return!1;if(f.visible)return r;c.push(r),r=f.fill}return!1}function lP(a,n,s){let i=cP(a);if(at(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);if(Ht(r)&&Math.floor(r)===r)return iP(i[0],n,r,s);return["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function iP(a,n,s,i){if(a==="-"||a==="+")s=n+s;if(s===n||s<0||s>=i)return!1;return s}function rP(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 uP(a,n,s){let i;if(a==="start")i=s;else if(a==="end")i=n.options.reverse?n.min:n.max;else if(at(a))i=a.value;else i=n.getBaseValue();return i}function cP(a){let n=a.options,s=n.fill,i=We(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 dP(a){let{scale:n,index:s,line:i}=a,r=[],c=i.segments,f=i.points,h=fP(n,s);h.push(wI({x:null,y:n.bottom},i));for(let p=0;p<c.length;p++){let g=c[p];for(let b=g.start;b<=g.end;b++)hP(r,f[b],h)}return new yu({points:r,options:{}})}function fP(a,n){let s=[],i=a.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){let c=i[r];if(c.index===n)break;if(!c.hidden)s.unshift(c.dataset)}return s}function hP(a,n,s){let i=[];for(let r=0;r<s.length;r++){let c=s[r],{first:f,last:h,point:p}=pP(c,n,"x");if(!p||f&&h)continue;if(f)i.unshift(p);else if(a.push(p),!h)break}a.push(...i)}function pP(a,n,s){let i=a.interpolate(n,s);if(!i)return{};let r=i[s],c=a.segments,f=a.points,h=!1,p=!1;for(let g=0;g<c.length;g++){let b=c[g],x=f[b.start][s],S=f[b.end][s];if(Is(r,x,S)){h=r===x,p=r===S;break}}return{first:h,last:p,point:i}}class ov{constructor(a){this.x=a.x,this.y=a.y,this.radius=a.radius}pathSegment(a,n,s){let{x:i,y:r,radius:c}=this;return n=n||{start:0,end:eo},a.arc(i,r,c,n.end,n.start,!0),!s.bounds}interpolate(a){let{x:n,y:s,radius:i}=this,r=a.angle;return{x:n+Math.cos(r)*i,y:s+Math.sin(r)*i,angle:r}}}function mP(a){let{chart:n,fill:s,line:i}=a;if(Ht(s))return gP(n,s);if(s==="stack")return dP(a);if(s==="shape")return!0;let r=yP(a);if(r instanceof ov)return r;return wI(r,i)}function gP(a,n){let s=a.getDatasetMeta(n);return s&&a.isDatasetVisible(n)?s.dataset:null}function yP(a){if((a.scale||{}).getPointPositionForValue)return xP(a);return bP(a)}function bP(a){let{scale:n={},fill:s}=a,i=rP(s,n);if(Ht(i)){let r=n.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function xP(a){let{scale:n,fill:s}=a,i=n.options,r=n.getLabels().length,c=i.reverse?n.max:n.min,f=uP(s,n,c),h=[];if(i.grid.circular){let p=n.getPointPositionForValue(0,c);return new ov({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 Hx(a,n,s){let i=mP(n),{chart:r,index:c,line:f,scale:h,axis:p}=n,g=f.options,b=g.fill,x=g.backgroundColor,{above:S=x,below:T=x}=b||{},A=r.getDatasetMeta(c),M=Rx(r,A);if(i&&f.points.length)cd(a,s),vP(a,{line:f,target:i,above:S,below:T,area:s,scale:h,axis:p,clip:M}),dd(a)}function vP(a,n){let{line:s,target:i,above:r,below:c,area:f,scale:h,clip:p}=n,g=s._loop?"angle":n.axis;a.save();let b=c;if(c!==r){if(g==="x")HM(a,i,f.top),Fx(a,{line:s,target:i,color:r,scale:h,property:g,clip:p}),a.restore(),a.save(),HM(a,i,f.bottom);else if(g==="y")FM(a,i,f.left),Fx(a,{line:s,target:i,color:c,scale:h,property:g,clip:p}),a.restore(),a.save(),FM(a,i,f.right),b=r}Fx(a,{line:s,target:i,color:b,scale:h,property:g,clip:p}),a.restore()}function HM(a,n,s){let{segments:i,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of i){let{start:p,end:g}=h,b=r[p],x=r[Xp(p,g,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(b.x,s),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(x.x,s)}a.lineTo(n.first().x,s),a.closePath(),a.clip()}function FM(a,n,s){let{segments:i,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of i){let{start:p,end:g}=h,b=r[p],x=r[Xp(p,g,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(s,b.y),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(s,x.y)}a.lineTo(s,n.first().y),a.closePath(),a.clip()}function Fx(a,n){let{line:s,target:i,property:r,color:c,scale:f,clip:h}=n,p=oP(s,i,r);for(let{source:g,target:b,start:x,end:S}of p){let{style:{backgroundColor:T=c}={}}=g,A=i!==!0;a.save(),a.fillStyle=T,SP(a,f,h,A&&Gx(r,x,S)),a.beginPath();let M=!!s.pathSegment(a,g),w;if(A){if(M)a.closePath();else qM(a,i,S,r);let _=!!i.pathSegment(a,b,{move:M,reverse:!0});if(w=M&&_,!w)qM(a,i,x,r)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function SP(a,n,s,i){let r=n.chart.chartArea,{property:c,start:f,end:h}=i||{};if(c==="x"||c==="y"){let p,g,b,x;if(c==="x")p=f,g=r.top,b=h,x=r.bottom;else p=r.left,g=f,b=r.right,x=h;if(a.beginPath(),s)p=Math.max(p,s.left),b=Math.min(b,s.right),g=Math.max(g,s.top),x=Math.min(x,s.bottom);a.rect(p,g,b-p,x-g),a.clip()}}function qM(a,n,s,i){let r=n.interpolate(s,i);if(r)a.lineTo(r.x,r.y)}var MI={id:"filler",afterDatasetsUpdate(a,n,s){let i=(a.data.datasets||[]).length,r=[],c,f,h,p;for(f=0;f<i;++f){if(c=a.getDatasetMeta(f),h=c.dataset,p=null,h&&h.options&&h instanceof yu)p={visible:a.isDatasetVisible(f),index:f,fill:lP(h,f,i),chart:a,axis:c.controller.options.indexAxis,scale:c.vScale,line:h};c.$filler=p,r.push(p)}for(f=0;f<i;++f){if(p=r[f],!p||p.fill===!1)continue;p.fill=sP(r,f,s.propagate)}},beforeDraw(a,n,s){let i=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),i&&h.fill)Hx(a.ctx,h,c)}},beforeDatasetsDraw(a,n,s){if(s.drawTime!=="beforeDatasetsDraw")return;let i=a.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let c=i[r].$filler;if(UM(c))Hx(a.ctx,c,a.chartArea)}},beforeDatasetDraw(a,n,s){let i=n.meta.$filler;if(!UM(i)||s.drawTime!=="beforeDatasetDraw")return;Hx(a.ctx,i,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},VM=(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)}},LP=(a,n)=>a!==null&&n!==null&&a.datasetIndex===n.datasetIndex&&a.index===n.index;class Yx extends _s{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=wt(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=na(s.font),r=i.size,c=this._computeTitleHeight(),{boxWidth:f,itemHeight:h}=VM(s,r),p,g;if(n.font=i.string,this.isHorizontal())p=this.maxWidth,g=this._fitRows(c,r,f,h)+10;else g=this.maxHeight,p=this._fitCols(c,i,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,i){let{ctx:r,maxWidth:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.lineWidths=[0],g=i+f,b=a;r.textAlign="left",r.textBaseline="middle";let x=-1,S=-g;return this.legendItems.forEach((T,A)=>{let M=s+n/2+r.measureText(T.text).width;if(A===0||p[p.length-1]+M+2*f>c)b+=g,p[p.length-(A>0?0:1)]=0,S+=g,x++;h[A]={left:0,top:S,row:x,width:M,height:i},p[p.length-1]+=M+f}),b}_fitCols(a,n,s,i){let{ctx:r,maxHeight:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.columnSizes=[],g=c-a,b=f,x=0,S=0,T=0,A=0;return this.legendItems.forEach((M,w)=>{let{itemWidth:_,itemHeight:z}=CP(s,n,r,M,i);if(w>0&&S+z+2*f>g)b+=x+f,p.push({width:x,height:S}),T+=x+f,A++,x=S=0;h[w]={left:T,top:S,col:A,width:_,height:z},x=Math.max(x,_),S+=z+f}),b+=x,p.push({width:x,height:S}),b}adjustHitBoxes(){if(!this.options.display)return;let a=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:r}}=this,c=Hi(r,this.left,this.width);if(this.isHorizontal()){let f=0,h=La(s,this.left+i,this.right-this.lineWidths[f]);for(let p of n){if(f!==p.row)f=p.row,h=La(s,this.left+i,this.right-this.lineWidths[f]);p.top+=this.top+a+i,p.left=c.leftForLtr(c.x(h),p.width),h+=p.width+i}}else{let f=0,h=La(s,this.top+a+i,this.bottom-this.columnSizes[f].height);for(let p of n){if(p.col!==f)f=p.col,h=La(s,this.top+a+i,this.bottom-this.columnSizes[f].height);p.top=h,p.left+=this.left+i,p.left=c.leftForLtr(c.x(p.left),p.width),h+=p.height+i}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let a=this.ctx;cd(a,this),this._draw(),dd(a)}}_draw(){let{options:a,columnSizes:n,lineWidths:s,ctx:i}=this,{align:r,labels:c}=a,f=Ft.color,h=Hi(a.rtl,this.left,this.width),p=na(c.font),{padding:g}=c,b=p.size,x=b/2,S;this.drawTitle(),i.textAlign=h.textAlign("left"),i.textBaseline="middle",i.lineWidth=0.5,i.font=p.string;let{boxWidth:T,boxHeight:A,itemHeight:M}=VM(c,b),w=function(Q,ne,J){if(isNaN(T)||T<=0||isNaN(A)||A<0)return;i.save();let K=We(J.lineWidth,1);if(i.fillStyle=We(J.fillStyle,f),i.lineCap=We(J.lineCap,"butt"),i.lineDashOffset=We(J.lineDashOffset,0),i.lineJoin=We(J.lineJoin,"miter"),i.lineWidth=K,i.strokeStyle=We(J.strokeStyle,f),i.setLineDash(We(J.lineDash,[])),c.usePointStyle){let re={radius:A*Math.SQRT2/2,pointStyle:J.pointStyle,rotation:J.rotation,borderWidth:K},q=h.xPlus(Q,T/2),he=ne+x;bx(i,re,q,he,c.pointStyleWidth&&T)}else{let re=ne+Math.max((b-A)/2,0),q=h.leftForLtr(Q,T),he=Ol(J.borderRadius);if(i.beginPath(),Object.values(he).some((Le)=>Le!==0))gu(i,{x:q,y:re,w:T,h:A,radius:he});else i.rect(q,re,T,A);if(i.fill(),K!==0)i.stroke()}i.restore()},_=function(Q,ne,J){El(i,J.text,Q,ne+M/2,p,{strikethrough:J.hidden,textAlign:h.textAlign(J.textAlign)})},z=this.isHorizontal(),V=this._computeTitleHeight();if(z)S={x:La(r,this.left+g,this.right-s[0]),y:this.top+g+V,line:0};else S={x:this.left+g,y:La(r,this.top+V+g,this.bottom-n[0].height),line:0};Mx(this.ctx,a.textDirection);let W=M+g;this.legendItems.forEach((Q,ne)=>{i.strokeStyle=Q.fontColor,i.fillStyle=Q.fontColor;let J=i.measureText(Q.text).width,K=h.textAlign(Q.textAlign||(Q.textAlign=c.textAlign)),re=T+x+J,q=S.x,he=S.y;if(h.setWidth(this.width),z){if(ne>0&&q+re+g>this.right)he=S.y+=W,S.line++,q=S.x=La(r,this.left+g,this.right-s[S.line])}else if(ne>0&&he+W>this.bottom)q=S.x=q+n[S.line].width+g,S.line++,he=S.y=La(r,this.top+V+g,this.bottom-n[S.line].height);let Le=h.x(q);if(w(Le,he,Q),q=Vw(K,q+T+x,z?q+re:this.right,a.rtl),_(h.x(q),he,Q),z)S.x+=re+g;else if(typeof Q.text!=="string"){let we=p.lineHeight;S.y+=II(Q,we)+g}else S.y+=W}),Ix(this.ctx,a.textDirection)}drawTitle(){let a=this.options,n=a.title,s=na(n.font),i=Ca(n.padding);if(!n.display)return;let r=Hi(a.rtl,this.left,this.width),c=this.ctx,f=n.position,h=s.size/2,p=i.top+h,g,b=this.left,x=this.width;if(this.isHorizontal())x=Math.max(...this.lineWidths),g=this.top+p,b=La(a.align,b,this.right-x);else{let T=this.columnSizes.reduce((A,M)=>Math.max(A,M.height),0);g=p+La(a.align,this.top,this.bottom-T-a.labels.padding-this._computeTitleHeight())}let S=La(f,b,b+x);c.textAlign=r.textAlign(Rp(f)),c.textBaseline="middle",c.strokeStyle=n.color,c.fillStyle=n.color,c.font=s.string,El(c,n.text,S,g,s)}_computeTitleHeight(){let a=this.options.title,n=na(a.font),s=Ca(a.padding);return a.display?n.lineHeight+s.height:0}_getLegendItemAt(a,n){let s,i,r;if(Is(a,this.left,this.right)&&Is(n,this.top,this.bottom)){r=this.legendHitBoxes;for(s=0;s<r.length;++s)if(i=r[s],Is(a,i.left,i.left+i.width)&&Is(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(a){let n=this.options;if(!MP(a.type,n))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let i=this._hoveredItem,r=LP(i,s);if(i&&!r)wt(n.onLeave,[a,i,this],this);if(this._hoveredItem=s,s&&!r)wt(n.onHover,[a,s,this],this)}else if(s)wt(n.onClick,[a,s,this],this)}}function CP(a,n,s,i,r){let c=TP(i,a,n,s),f=wP(r,i,n.lineHeight);return{itemWidth:c,itemHeight:f}}function TP(a,n,s,i){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+i.measureText(r).width}function wP(a,n,s){let i=a;if(typeof n.text!=="string")i=II(n,s);return i}function II(a,n){let s=a.text?a.text.length:0;return n*s}function MP(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 AI={id:"legend",_element:Yx,start(a,n,s){let i=a.legend=new Yx({ctx:a.ctx,options:s,chart:a});Yo.configure(a,i,s),Yo.addBox(a,i)},stop(a){Yo.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,n,s){let i=a.legend;Yo.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,r=s.chart;if(r.isDatasetVisible(i))r.hide(i),n.hidden=!0;else r.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:r,color:c,useBorderRadius:f,borderRadius:h}}=a.legend.options;return a._getSortedDatasetMetas().map((p)=>{let g=p.controller.getStyle(s?0:void 0),b=Ca(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:(b.width+b.height)/4,strokeStyle:g.borderColor,pointStyle:i||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 nv extends _s{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=kt(s.text)?s.text.length:1;this._padding=Ca(s.padding);let r=i*na(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:i,right:r,options:c}=this,f=c.align,h=0,p,g,b;if(this.isHorizontal())g=La(f,s,r),b=n+a,p=r-s;else{if(c.position==="left")g=s+a,b=La(f,i,n),h=Xt*-0.5;else g=r-a,b=La(f,n,i),h=Xt*0.5;p=i-n}return{titleX:g,titleY:b,maxWidth:p,rotation:h}}draw(){let a=this.ctx,n=this.options;if(!n.display)return;let s=na(n.font),r=s.lineHeight/2+this._padding.top,{titleX:c,titleY:f,maxWidth:h,rotation:p}=this._drawArgs(r);El(a,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:p,textAlign:Rp(n.align),textBaseline:"middle",translation:[c,f]})}}function IP(a,n){let s=new nv({ctx:a.ctx,options:n,chart:a});Yo.configure(a,s,n),Yo.addBox(a,s),a.titleBlock=s}var kI={id:"title",_element:nv,start(a,n,s){IP(a,s)},stop(a){let n=a.titleBlock;Yo.removeBox(a,n),delete a.titleBlock},beforeUpdate(a,n,s){let i=a.titleBlock;Yo.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 vd={average(a){if(!a.length)return!1;let n,s,i=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();i.add(p.x),r+=p.y,++c}}if(c===0||i.size===0)return!1;return{x:[...i].reduce((h,p)=>h+p)/i.size,y:r/c}},nearest(a,n){if(!a.length)return!1;let{x:s,y:i}=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(),b=wp(n,g);if(b<r)r=b,h=p}}if(h){let p=h.tooltipPosition();s=p.x,i=p.y}return{x:s,y:i}}};function Gn(a,n){if(n)if(kt(n))Array.prototype.push.apply(a,n);else a.push(n);return a}function Rs(a){if((typeof a==="string"||a instanceof String)&&a.indexOf(`
|
|
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",xE={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||xE[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=SE(a,s);if(!l)return[];let r=this._createAnimations(l,s);if(s.$shared)vE(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],b=r[p],x=s.get(p);if(b)if(x&&b.active()){b.update(x,g,f);continue}else b.cancel();if(!x||!x.duration){a[p]=g;continue}r[p]=b=new rM(x,a,p,g),l.push(b)}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 vE(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 SE(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 LE(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 CE(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 b=!1;for(f=0,h=r.length;f<h;++f){if(p=+r[f],p===s){if(b=!0,l.all)continue;break}if(g=a.values[p],Ut(g)&&(c||n===0||hn(n)===hn(g)))n+=g}if(!b&&!l.all)return 0;return n}function TE(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,b;for(p=0,g=f.length;p<g;++p)b=f[p],h[p]={[r]:b,[c]:a[b]};return h}function Ex(a,n){let s=a&&a.options.stacked;return s||s===void 0&&n.stack!==void 0}function wE(a,n,s){return`${a.id}.${n.id}.${s.stack||s.type}`}function IE(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 ME(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,b=wE(c,f,l),x=n.length,S;for(let T=0;T<x;++T){let M=n[T],{[p]:R,[g]:w}=M,_=M._stacks||(M._stacks={});S=_[g]=ME(r,b,R),S[h]=w,S._top=pI(S,f,!0,l.type),S._bottom=pI(S,f,!1,l.type);let z=S._visualValues||(S._visualValues={});z[h]=w}}function Ox(a,n){let s=a.scales;return Object.keys(s).filter((l)=>s[l].axis===n).shift()}function AE(a,n){return ks(a,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function kE(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),RE=(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=(b,x,S,T)=>b==="x"?x:b==="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=TE(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,b,x;if(this._parsing===!1)s._parsed=l,s._sorted=!0,x=l;else{if(At(l[a]))x=this.parseArrayData(s,l,a,n);else if(at(l[a]))x=this.parseObjectData(s,l,a,n);else x=this.parsePrimitiveData(s,l,a,n);let S=()=>b[f]===null||p&&b[f]<p[f];for(g=0;g<n;++g)if(s._parsed[g+a]=b=x[g],h){if(S())h=!1;p=b}s._sorted=h}if(c)mI(this,x)}parsePrimitiveData(a,n,s,l){let{iScale:r,vScale:c}=a,f=r.axis,h=c.axis,p=r.getLabels(),g=r===c,b=Array(l),x,S,T;for(x=0,S=l;x<S;++x)T=x+s,b[x]={[f]:g||r.parse(p[T],T),[h]:c.parse(n[T],T)};return b}parseArrayData(a,n,s,l){let{xScale:r,yScale:c}=a,f=Array(l),h,p,g,b;for(h=0,p=l;h<p;++h)g=h+s,b=n[g],f[h]={x:r.parse(b[0],g),y:c.parse(b[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,b,x,S;for(g=0,b=l;g<b;++g)x=g+s,S=n[x],p[g]={x:r.parse(Hl(S,f),x),y:c.parse(Hl(S,h),x)};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=RE(n,s,this.chart),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:b}=IE(f),x,S;function T(){S=l[x];let M=S[f.axis];return!Ut(S[a.axis])||g>M||b<M}for(x=0;x<c;++x){if(T())continue;if(this.updateRangeFromParsed(p,a,S,h),r)break}if(r)for(x=c-1;x>=0;--x){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=CE(We(this.options.clip,LE(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 b=l[g];if(b.hidden)continue;if(b.active&&p)c.push(b);else b.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=kE(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=AE(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),b=l?[`${a}Hover`,"hover",a,""]:[a,""],x=p.getOptionScopes(this.getDataset(),g),S=Object.keys(Ht.elements[a]),T=()=>this.getContext(s,l,n),M=p.resolveNamedOptions(x,S,T,b);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,b=g.datasetAnimationScopeKeys(this._type,n),x=g.getOptionScopes(this.getDataset(),b);h=g.createResolver(x,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 _E(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 DE(a){let n=a.iScale,s=_E(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 EE(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 OE(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 PE(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))PE(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,b,x,S;for(g=s,b=s+l;g<b;++g)S=n[g],x={},x[r.axis]=h||r.parse(f[g],g),p.push(cM(S,x,c,g));return p}function Bx(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function BE(a,n,s){if(a!==0)return hn(a);return(n.isHorizontal()?1:-1)*(n.min>=s?1:-1)}function NE(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 zE(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:b}=NE(a);if(r==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===l)r=g;else if((s._bottom||0)===l)r=b;else c[bI(b,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=UE(a,n,s),a=xI(a,s,n);else a=xI(a,n,s);return a}function UE(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 HE(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,b=[],x,S,T,M;for(x=s,S=s+l;x<S;++x)M=n[x],T={},T[r.axis]=r.parse(Hl(M,p),x),b.push(cM(Hl(M,g),T,c,x));return b}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:b,includeOptions:x}=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),R=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:R.center,y:p?R.center:M.head,height:p?R.size:Math.abs(M.size),width:p?Math.abs(M.size):R.size};if(x)_.options=b||this.resolveDataElementOptions(S,a[S].active?"active":l);let z=_.options||a[S].options;zE(_,z,w,c),HE(_,z,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 b=g._parsed.find((S)=>S[s.axis]===h),x=b&&b[g.vScale.axis];if(st(x)||isNaN(x))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||DE(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),b=h[n.axis],x=0,S=s?this.applyStack(n,h,s):b,T,M;if(S!==b)x=S-b,S=b;if(g){if(b=p.barStart,S=p.barEnd-p.barStart,b!==0&&hn(b)!==hn(p.barEnd))x=0;x+=b}let R=!st(r)&&!g?r:x,w=n.getPixelForValue(R);if(this.chart.getDataVisibility(a))T=n.getPixelForValue(x+S);else T=w;if(M=T-w,Math.abs(M)<c){if(M=BE(M,n,f)*c,b===f)w-=M/2;let _=n.getPixelForDecimal(0),z=n.getPixelForDecimal(1),V=Math.min(_,z),W=Math.max(_,z);if(w=Math.max(Math.min(w,W),V),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,b=l.barThickness==="flex"?OE(a,n,l,g*p):EE(a,n,l,g*p),x=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,S=this._getAxis().indexOf(We(x,this.getFirstScaleIdForIndexAxis())),T=this._getStackIndex(this.index,this._cachedMeta.stack,r?a:void 0)+S;f=b.start+b.chunk*T+b.chunk/2,h=Math.min(c,b.chunk*b.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:b}=this._getSharedOptions(n,l),x=c.axis,S=f.axis,{spanGaps:T,segment:M}=this.options,R=gu(T)?T:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||l==="none",_=n+s,z=a.length,V=n>0&&this.getParsed(n-1);for(let W=0;W<z;++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[x]=c.getPixelForValue(J[x],W),q=ne[S]=r||K?f.getBasePixel():f.getPixelForValue(h?this.applyStack(f,J,h):J[S],W);if(ne.skip=isNaN(re)||isNaN(q)||K,ne.stop=W>0&&Math.abs(J[x]-V[x])>R,M)ne.parsed=J,ne.raw=p.data[W];if(b)ne.options=g||this.resolveDataElementOptions(W,Q.active?"active":l);if(!w)this.updateElement(Q,W,ne,l);V=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 FE={_date:tv};function qE(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 b=g(c,n,s);if(p){let{vScale:x}=r._cachedMeta,{_parsed:S}=a,T=S.slice(0,b.lo+1).reverse().findIndex((R)=>!st(R[x.axis]));b.lo-=Math.max(0,T);let M=S.slice(b.hi).findIndex((R)=>!st(R[x.axis]));b.hi+=Math.max(0,M)}return b}else if(r._sharedOptions){let b=c[0],x=typeof b.getRange==="function"&&b.getRange(n);if(x){let S=g(c,n,s-x),T=g(c,n,s+x);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:b}=c[h],{lo:x,hi:S}=qE(c[h],n,f,r);for(let T=x;T<=S;++T){let M=b[T];if(!M.skip)l(M,g,T)}}}function VE(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&&!jn(h,a.chartArea,0))return;if(h.inRange(n.x,n.y,l))c.push({element:h,datasetIndex:p,index:g})},!0),c}function jE(a,n,s,l){let r=[];function c(f,h,p){let{startAngle:g,endAngle:b}=f.getProps(["startAngle","endAngle"],l),{angle:x}=zw(f,{x:n.x,y:n.y});if(fx(x,g,b))r.push({element:f,datasetIndex:h,index:p})}return wd(a,s,n,c),r}function GE(a,n,s,l,r,c){let f=[],h=VE(s),p=Number.POSITIVE_INFINITY;function g(b,x,S){let T=b.inRange(n.x,n.y,r);if(l&&!T)return;let M=b.getCenterPoint(r);if(!(!!c||a.isPointInArea(M))&&!T)return;let w=h(n,M);if(w<p)f=[{element:b,datasetIndex:x,index:S}],p=w;else if(w===p)f.push({element:b,datasetIndex:x,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?jE(a,n,s,r):GE(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,b)=>{if(p[f]&&p[f](n[s],r))c.push({element:p,datasetIndex:g,index:b}),h=h||p.inRange(n.x,n.y,r)}),l&&!h)return[];return c}var YE={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 b=h[0].index,x=g.data[b];if(x&&!x.skip)p.push({element:x,datasetIndex:g.index,index:b})}),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 b=0;b<g.length;++b)h.push({element:g[b],datasetIndex:p,index:b})}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 XE(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 $E(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 WE(a,n){let s=$E(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],b=g&&h.stackWeight/g.weight;if(h.horizontal)h.width=b?b*l:p&&n.availableWidth,h.height=r;else h.width=l,h.height=b?b*r:p&&n.availableHeight}return s}function ZE(a){let n=XE(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 QE(a,n,s,l){let{pos:r,box:c}=s,f=a.maxPadding;if(!at(r)){if(s.size)a[r]-=s.size;let x=l[s.stack]||{size:0,count:1};x.size=Math.max(x.size,s.horizontal?c.height:c.width),s.size=x.size/x.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,b=p!==a.h;return a.w=h,a.h=p,s.horizontal?{same:g,other:b}:{same:b,other:g}}function KE(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 JE(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,b;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,JE(h.horizontal,n));let{same:x,other:S}=QE(n,s,h,l);if(g|=x&&r.length,b=b||S,!p.fullSize)r.push(h)}return g&&xd(r,n,s,l)||b}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},b=h.stackWeight/g.weight||1;if(h.horizontal){let x=n.w*b,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,x,S);g.start=f,g.placed+=x,f=p.bottom}else{let x=n.h*b,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,x);g.start=c,g.placed+=x,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=ZE(a.boxes),p=h.vertical,g=h.horizontal;pt(a.boxes,(R)=>{if(typeof R.beforeLayout==="function")R.beforeLayout()});let b=p.reduce((R,w)=>w.box.options&&w.box.options.display===!1?R:R+1,0)||1,x=Object.freeze({outerWidth:n,outerHeight:s,padding:r,availableWidth:c,availableHeight:f,vBoxMaxWidth:c/2/b,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=WE(p.concat(g),x);if(xd(h.fullSize,T,x,M),xd(p,T,x,M),xd(g,T,x,M))xd(p,T,x,M);KE(T),CI(h.leftAndTop,T,x,M),T.x+=T.w,T.y+=T.h,CI(h.rightAndBottom,T,x,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,(R)=>{let w=R.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",eO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},TI=(a)=>a===null||a==="";function tO(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 aO(a,n,s){if(a)a.addEventListener(n,s,pM)}function oO(a,n,s){if(a&&a.canvas)a.canvas.removeEventListener(n,s,pM)}function nO(a,n){let s=eO[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 sO(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 iO(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 lO(a,n){if(!Ld.size)window.addEventListener("resize",mM);Ld.set(a,n)}function rO(a){if(Ld.delete(a),!Ld.size)window.removeEventListener("resize",mM)}function uO(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,b=p.contentRect.height;if(g===0&&b===0)return;c(g,b)});return f.observe(r),lO(a,c),f}function Ux(a,n,s){if(s)s.disconnect();if(n==="resize")rO(a)}function cO(a,n,s){let l=a.canvas,r=gx((c)=>{if(a.ctx!==null)s(nO(c,a))},a);return aO(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 tO(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:sO,detach:iO,resize:uO}[n]||cO;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]||oO)(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 dO(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 fO(a,n){let s=a.options.ticks,l=hO(a),r=Math.min(s.maxTicksLimit||l,l),c=s.major.enabled?mO(n):[],f=c.length,h=c[0],p=c[f-1],g=[];if(f>r)return gO(n,g,c,f/r),g;let b=pO(c,n,r);if(f>0){let x,S,T=f>1?Math.round((p-h)/(f-1)):null;Fp(n,g,b,st(T)?0:h-T,h);for(x=0,S=f-1;x<S;x++)Fp(n,g,b,c[x],c[x+1]);return Fp(n,g,b,p,st(T)?n.length:p+T),g}return Fp(n,g,b),g}function hO(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 pO(a,n,s){let l=yO(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 mO(a){let n=[],s,l;for(s=0,l=a.length;s<l;s++)if(a[s].major)n.push(s);return n}function gO(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,b;if(s=Math.ceil(s),r)p=r-l,s=p/Math.floor(p/s);b=c;while(b<0)h++,b=Math.round(c+h*s);for(g=Math.max(c,0);g<f;g++)if(g===b)n.push(a[g]),h++,b=Math.round(c+h*s)}function yO(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 bO=(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 xO(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 vO(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 SO(a,n){return ks(a,{scale:n,type:"scale"})}function LO(a,n,s){return ks(a,{tick:s,index:n,type:"tick"})}function CO(a,n,s){let l=Dp(a);if(s&&n!=="right"||!s&&n==="right")l=bO(l);return l}function TO(a,n,s,l){let{top:r,left:c,bottom:f,right:h,chart:p}=a,{chartArea:g,scales:b}=p,x=0,S,T,M,R=f-r,w=h-c;if(a.isHorizontal()){if(T=Ca(l,c,h),at(s)){let _=Object.keys(s)[0],z=s[_];M=b[_].getPixelForValue(z)+R-n}else if(s==="center")M=(g.bottom+g.top)/2+R-n;else M=II(a,s,n);S=h-c}else{if(at(s)){let _=Object.keys(s)[0],z=s[_];T=b[_].getPixelForValue(z)-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),x=s==="left"?-Ja:Ja}return{titleX:T,titleY:M,maxWidth:S,rotation:x}}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=fO(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(),b=g.widest.width,x=g.highest.height,S=to(this.chart.width-b,0,this.maxWidth);if(f=a.offset?this.maxWidth/s:S/(s-1),b+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(b*b+x*x),c=Rp(Math.min(Math.asin(to((g.highest.height+6)/f,-1,1)),Math.asin(to(h/p,-1,1))-Math.asin(to(x/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:b,highest:x}=this._getLabelSizes(),S=s.padding*2,T=Ms(this.labelRotation),M=Math.cos(T),R=Math.sin(T);if(f){let w=s.mirror?0:R*b.width+M*x.height;a.height=Math.min(this.maxHeight,a.height+w+S)}else{let w=s.mirror?0:M*b.width+R*x.height;a.width=Math.min(this.maxWidth,a.width+w+S)}this._calculatePadding(p,g,R,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,b=this.right-this.getPixelForTick(this.ticks.length-1),x=0,S=0;if(h)if(p)x=l*a.width,S=s*n.height;else x=s*a.height,S=l*n.width;else if(r==="start")S=n.width;else if(r==="end")x=a.width;else if(r!=="inner")x=a.width/2,S=n.width/2;this.paddingLeft=Math.max((x-g+c)*this.width/(this.width-g),0),this.paddingRight=Math.max((S-b+c)*this.width/(this.width-b),0)}else{let g=n.height/2,b=a.height/2;if(r==="start")g=0,b=a.height;else if(r==="end")g=n.height,b=0;this.paddingTop=g+c,this.paddingBottom=b+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,b,x,S,T,M,R,w,_,z,V,W;for(b=0;b<n;b+=h){if(T=a[b].label,M=this._resolveTickFontOptions(b),l.font=R=M.string,w=r[R]=r[R]||{data:{},gc:[]},_=M.lineHeight,z=V=0,!st(T)&&!At(T))z=rd(l,w.data,w.gc,z,T),V=_;else if(At(T)){for(x=0,S=T.length;x<S;++x)if(W=T[x],!st(W)&&!At(W))z=rd(l,w.data,w.gc,z,W),V+=_}c.push(z),f.push(V),p=Math.max(z,p),g=Math.max(V,g)}vO(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=LO(this.getContext(),a,s))}return this.$context||(this.$context=SO(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(),b=this.ticks.length+(h?1:0),x=yd(r),S=[],T=f.setContext(this.getContext()),M=T.display?T.width:0,R=M/2,w=function(G){return Ei(s,G,M)},_,z,V,W,Q,ne,J,K,re,q,he,Le;if(c==="top")_=w(this.bottom),ne=this.bottom-x,K=_-R,q=w(a.top)+R,Le=a.bottom;else if(c==="bottom")_=w(this.top),q=a.top,Le=w(a.bottom)-R,ne=_+R,K=this.top+x;else if(c==="left")_=w(this.right),Q=this.right-x,J=_-R,re=w(a.left)+R,he=a.right;else if(c==="right")_=w(this.left),re=a.left,he=w(a.right)-R,Q=_+R,J=this.left+x;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))}q=a.top,Le=a.bottom,ne=_+R,K=ne+x}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=_-R,J=Q-x,re=a.left,he=a.right}let we=We(l.ticks.maxTicksLimit,b),Oe=Math.max(1,Math.ceil(b/we));for(z=0;z<b;z+=Oe){let G=this.getContext(z),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(V=xO(this,z,h),V===void 0)continue;if(W=Ei(s,V,Qe),p)Q=J=re=he=W;else ne=K=q=Le=W;S.push({tx1:Q,ty1:ne,tx2:J,ty2:K,x1:re,y1:q,x2:he,y2:Le,width:Qe,color:je,borderDash:D,borderDashOffset:Z,tickWidth:me,tickColor:ge,tickBorderDash:Ge,tickBorderDashOffset:Ft})}return this._ticksLength=b,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:b}=r,x=yd(s.grid),S=x+g,T=b?-g:S,M=-Ms(this.labelRotation),R=[],w,_,z,V,W,Q,ne,J,K,re,q,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(x);ne=Oe.textAlign,W=Oe.x}else if(l==="right"){let Oe=this._getYAxisLabelAlignment(x);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(x).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){z=f[w],V=z.label;let Oe=r.setContext(this.getContext(w));J=this.getPixelForTick(w)+r.labelOffset,K=this._resolveTickFontOptions(w),re=K.lineHeight,q=At(V)?V.length:1;let G=q/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=-q*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-q*re;if(b)he*=-1;if(M!==0&&!Oe.showLabelBackdrop)W+=re/2*Math.sin(M)}else Q=J,he=(1-q)*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}}R.push({label:V,font:K,textOffset:he,options:{rotation:M,color:le,strokeColor:pe,strokeWidth:Qe,textAlign:je,textBaseline:Le,translation:[W,Q],backdrop:D}})}return R}_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,b,x;if(this.isHorizontal())p=Ei(a,this.left,c)-c/2,g=Ei(a,this.right,f)+f/2,b=x=h;else b=Ei(a,this.top,c)-c/2,x=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,b),n.lineTo(g,x),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:b,rotation:x}=TO(this,h,n,f);Oi(a,s.text,0,0,r,{color:s.color,maxWidth:b,rotation:x,textAlign:CO(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(MO(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,wO(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 wO(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)IO(n,a.defaultRoutes);if(a.descriptors)Ht.describe(n,a.descriptors)}function IO(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 MO(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 Xn=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=AO(s);return l===!1&&!n?[]:RO(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 AO(a){let n={},s=[],l=Object.keys(Xn.plugins.items);for(let c=0;c<l.length;c++)s.push(Xn.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 kO(a,n){if(!n&&a===!1)return null;if(a===!0)return{};return a}function RO(a,{plugins:n,localIds:s},l,r){let c=[],f=a.getContext();for(let h of n){let p=h.id,g=kO(l[p],r);if(g===null)continue;c.push({plugin:h,options:_O(a.config,{plugin:h,local:s[p]},g,f)})}return c}function _O(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 DO(a,n){let s=a;if(a==="_index_")s=n;else if(a==="_value_")s=n==="x"?"y":"x";return s}function EO(a,n){return a===n?"_index_":"_value_"}function RI(a){if(a==="x"||a==="y"||a==="r")return a}function OO(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||OO(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 PO(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 BO(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,PO(f,a),Ht.scales[h.type]),g=EO(p,r),b=s.scales||{};c[f]=hu(Object.create(null),[{axis:p},h,b[p],b[g]])}),a.data.datasets.forEach((f)=>{let h=f.type||a.type,p=f.indexAxis||jx(h,n),b=(Di[h]||{}).scales||{};Object.keys(b).forEach((x)=>{let S=DO(x,p),T=f[S+"AxisID"]||S;c[T]=c[T]||Object.create(null),hu(c[T],[{axis:S},l[T],b[x]])})}),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=BO(a,n)}function vM(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function NO(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=NO(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((b)=>bd(h,a,b));g.forEach((b)=>bd(h,l,b)),g.forEach((b)=>bd(h,Di[r]||{},b)),g.forEach((b)=>bd(h,Ht,b)),g.forEach((b)=>bd(h,Op,b))});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(UO(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 zO=(a)=>at(a)&&Object.getOwnPropertyNames(a).some((n)=>ws(a[n]));function UO(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)||zO(h))||f&&At(h))return!0}return!1}var HO="4.5.1",FO=["top","bottom","left","right","chartArea"];function OI(a,n){return a==="top"||a==="bottom"||FO.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 qO(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 VO(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 jO(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=Xn;static version=HO;static getChart=NI;static register(...a){Xn.add(...a),zI()}static unregister(...a){Xn.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||dO(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((b)=>this.update(b),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",qO),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 Xn}_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 b=null;if(h in s&&s[h].type===g)b=s[h];else b=new(Xn.getScale(g))({id:h,type:g,ctx:this.ctx,chart:this}),s[b.id]=b;b.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=Xn.getController(f),{datasetElementType:p,dataElementType:g}=Ht.datasets[f];Object.assign(h,{dataElementType:Xn.getElement(g),datasetElementType:p&&Xn.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:b}=this.getDatasetMeta(p),x=!l&&r.indexOf(b)===-1;b.buildOrUpdateElements(x),c=Math.max(+b.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;VO(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 jn(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,n,s,l){let r=YE.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((b)=>g.datasetIndex===b.datasetIndex&&g.index===b.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=jO(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 GO(a,n,s){a.lineTo(s.x,s.y)}function YO(a){if(a.stepped)return Qw;if(a.tension||a.cubicInterpolationMode==="monotone")return Kw;return GO}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),b=r<f&&c<f||r>h&&c>h;return{count:l,start:p,loop:n.loop,ilen:g<p&&!b?l+g-p:g-p}}function XO(a,n,s,l){let{points:r,options:c}=n,{count:f,start:h,loop:p,ilen:g}=wM(r,s,l),b=YO(c),{move:x=!0,reverse:S}=l||{},T,M,R;for(T=0;T<=g;++T){if(M=r[(h+(S?g-T:T))%f],M.skip)continue;else if(x)a.moveTo(M.x,M.y),x=!1;else b(a,R,M,S,c.stepped);R=M}if(p)M=r[(h+(S?g:0))%f],b(a,R,M,S,c.stepped);return!!p}function $O(a,n,s,l){let r=n.points,{count:c,start:f,ilen:h}=wM(r,s,l),{move:p=!0,reverse:g}=l||{},b=0,x=0,S,T,M,R,w,_,z=(W)=>(f+(g?h-W:W))%c,V=()=>{if(R!==w)a.lineTo(b,w),a.lineTo(b,R),a.lineTo(b,_)};if(p)T=r[z(0)],a.moveTo(T.x,T.y);for(S=0;S<=h;++S){if(T=r[z(S)],T.skip)continue;let{x:W,y:Q}=T,ne=W|0;if(ne===M){if(Q<R)R=Q;else if(Q>w)w=Q;b=(x*b+W)/++x}else V(),a.lineTo(W,Q),M=ne,x=0,R=w=Q;_=Q}V()}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?$O:XO}function WO(a){if(a.stepped)return lI;if(a.tension||a.cubicInterpolationMode==="monotone")return rI;return ki}function ZO(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 QO(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 KO=typeof Path2D==="function";function JO(a,n,s,l){if(KO&&!n.options.segment)ZO(a,n,s,l);else QO(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=WO(s),p,g;for(p=0,g=c.length;p<g;++p){let{start:b,end:x}=c[p],S=r[b],T=r[x];if(S===T){f.push(S);continue}let M=Math.abs((l-S[n])/(T[n]-S[n])),R=h(S,T,M,s.stepped);R[n]=a[n],f.push(R)}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(),JO(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||!jn(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,b,x;if(a.horizontal)x=f/2,h=Math.min(s,r),p=Math.max(s,r),g=l-x,b=l+x;else x=c/2,h=s-x,p=s+x,g=Math.min(l,r),b=Math.max(l,r);return{left:h,top:g,right:p,bottom:b}}function Ni(a,n,s,l){return a?0:to(n,s,l)}function eP(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 tP(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 aP(a){let n=IM(a),s=n.right-n.left,l=n.bottom-n.top,r=eP(a,s/2,l/2),c=tP(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 oP(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function nP(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}=aP(this),f=oP(c.radius)?yu:nP;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 sP(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 b=Xx(s,r[p],r[g],h.loop);if(!n.segments){f.push({source:h,target:b,start:r[p],end:r[g]});continue}let x=_x(n,b);for(let S of x){let T=Xx(s,c[S.start],c[S.end],S.loop),M=Rx(h,r,T);for(let R of M)f.push({source:R,target:S,start:{[s]:HI(b,T,"start",Math.max)},end:{[s]:HI(b,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 iP(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=iP(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 lP(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 rP(a,n,s){let l=fP(a);if(at(l))return isNaN(l.value)?!1:l;let r=parseFloat(l);if(Ut(r)&&Math.floor(r)===r)return uP(l[0],n,r,s);return["origin","start","end","stack","shape"].indexOf(l)>=0&&l}function uP(a,n,s,l){if(a==="-"||a==="+")s=n+s;if(s===n||s<0||s>=l)return!1;return s}function cP(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 dP(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 fP(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 hP(a){let{scale:n,index:s,line:l}=a,r=[],c=l.segments,f=l.points,h=pP(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 b=g.start;b<=g.end;b++)mP(r,f[b],h)}return new bu({points:r,options:{}})}function pP(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 mP(a,n,s){let l=[];for(let r=0;r<s.length;r++){let c=s[r],{first:f,last:h,point:p}=gP(c,n,"x");if(!p||f&&h)continue;if(f)l.unshift(p);else if(a.push(p),!h)break}a.push(...l)}function gP(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 b=c[g],x=f[b.start][s],S=f[b.end][s];if(As(r,x,S)){h=r===x,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 yP(a){let{chart:n,fill:s,line:l}=a;if(Ut(s))return bP(n,s);if(s==="stack")return hP(a);if(s==="shape")return!0;let r=xP(a);if(r instanceof sv)return r;return MM(r,l)}function bP(a,n){let s=a.getDatasetMeta(n);return s&&a.isDatasetVisible(n)?s.dataset:null}function xP(a){if((a.scale||{}).getPointPositionForValue)return SP(a);return vP(a)}function vP(a){let{scale:n={},fill:s}=a,l=cP(s,n);if(Ut(l)){let r=n.isHorizontal();return{x:r?l:null,y:r?null:l}}return null}function SP(a){let{scale:n,fill:s}=a,l=n.options,r=n.getLabels().length,c=l.reverse?n.max:n.min,f=dP(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=yP(n),{chart:r,index:c,line:f,scale:h,axis:p}=n,g=f.options,b=g.fill,x=g.backgroundColor,{above:S=x,below:T=x}=b||{},M=r.getDatasetMeta(c),R=Dx(r,M);if(l&&f.points.length)dd(a,s),LP(a,{line:f,target:l,above:S,below:T,area:s,scale:h,axis:p,clip:R}),fd(a)}function LP(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 b=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),b=r}Vx(a,{line:s,target:l,color:b,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,b=r[p],x=r[Wp(p,g,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(b.x,s),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(x.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,b=r[p],x=r[Wp(p,g,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(s,b.y),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(s,x.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=sP(s,l,r);for(let{source:g,target:b,start:x,end:S}of p){let{style:{backgroundColor:T=c}={}}=g,M=l!==!0;a.save(),a.fillStyle=T,CP(a,f,h,M&&Xx(r,x,S)),a.beginPath();let R=!!s.pathSegment(a,g),w;if(M){if(R)a.closePath();else jI(a,l,S,r);let _=!!l.pathSegment(a,b,{move:R,reverse:!0});if(w=R&&_,!w)jI(a,l,x,r)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function CP(a,n,s,l){let r=n.chart.chartArea,{property:c,start:f,end:h}=l||{};if(c==="x"||c==="y"){let p,g,b,x;if(c==="x")p=f,g=r.top,b=h,x=r.bottom;else p=r.left,g=f,b=r.right,x=h;if(a.beginPath(),s)p=Math.max(p,s.left),b=Math.min(b,s.right),g=Math.max(g,s.top),x=Math.min(x,s.bottom);a.rect(p,g,b-p,x-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:rP(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=lP(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)}},TP=(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,b=a;r.textAlign="left",r.textBaseline="middle";let x=-1,S=-g;return this.legendItems.forEach((T,M)=>{let R=s+n/2+r.measureText(T.text).width;if(M===0||p[p.length-1]+R+2*f>c)b+=g,p[p.length-(M>0?0:1)]=0,S+=g,x++;h[M]={left:0,top:S,row:x,width:R,height:l},p[p.length-1]+=R+f}),b}_fitCols(a,n,s,l){let{ctx:r,maxHeight:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.columnSizes=[],g=c-a,b=f,x=0,S=0,T=0,M=0;return this.legendItems.forEach((R,w)=>{let{itemWidth:_,itemHeight:z}=wP(s,n,r,R,l);if(w>0&&S+z+2*f>g)b+=x+f,p.push({width:x,height:S}),T+=x+f,M++,x=S=0;h[w]={left:T,top:S,col:M,width:_,height:z},x=Math.max(x,_),S+=z+f}),b+=x,p.push({width:x,height:S}),b}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,b=p.size,x=b/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:R}=GI(c,b),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},q=h.xPlus(Q,T/2),he=ne+x;vx(l,re,q,he,c.pointStyleWidth&&T)}else{let re=ne+Math.max((b-M)/2,0),q=h.leftForLtr(Q,T),he=Pi(J.borderRadius);if(l.beginPath(),Object.values(he).some((Le)=>Le!==0))yu(l,{x:q,y:re,w:T,h:M,radius:he});else l.rect(q,re,T,M);if(l.fill(),K!==0)l.stroke()}l.restore()},_=function(Q,ne,J){Oi(l,J.text,Q,ne+R/2,p,{strikethrough:J.hidden,textAlign:h.textAlign(J.textAlign)})},z=this.isHorizontal(),V=this._computeTitleHeight();if(z)S={x:Ca(r,this.left+g,this.right-s[0]),y:this.top+g+V,line:0};else S={x:this.left+g,y:Ca(r,this.top+V+g,this.bottom-n[0].height),line:0};Ax(this.ctx,a.textDirection);let W=R+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+x+J,q=S.x,he=S.y;if(h.setWidth(this.width),z){if(ne>0&&q+re+g>this.right)he=S.y+=W,S.line++,q=S.x=Ca(r,this.left+g,this.right-s[S.line])}else if(ne>0&&he+W>this.bottom)q=S.x=q+n[S.line].width+g,S.line++,he=S.y=Ca(r,this.top+V+g,this.bottom-n[S.line].height);let Le=h.x(q);if(w(Le,he,Q),q=Gw(K,q+T+x,z?q+re:this.right,a.rtl),_(h.x(q),he,Q),z)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,b=this.left,x=this.width;if(this.isHorizontal())x=Math.max(...this.lineWidths),g=this.top+p,b=Ca(a.align,b,this.right-x);else{let T=this.columnSizes.reduce((M,R)=>Math.max(M,R.height),0);g=p+Ca(a.align,this.top,this.bottom-T-a.labels.padding-this._computeTitleHeight())}let S=Ca(f,b,b+x);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(!AP(a.type,n))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let l=this._hoveredItem,r=TP(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 wP(a,n,s,l,r){let c=IP(l,a,n,s),f=MP(r,l,n.lineHeight);return{itemWidth:c,itemHeight:f}}function IP(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 MP(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 AP(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),b=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:(b.width+b.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,b;if(this.isHorizontal())g=Ca(f,s,r),b=n+a,p=r-s;else{if(c.position==="left")g=s+a,b=Ca(f,l,n),h=Yt*-0.5;else g=r-a,b=Ca(f,n,l),h=Yt*0.5;p=l-n}return{titleX:g,titleY:b,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 kP(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){kP(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(),b=Mp(n,g);if(b<r)r=b,h=p}}if(h){let p=h.tooltipPosition();s=p.x,l=p.y}return{x:s,y:l}}};function Yn(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(`
|
|
256
256
|
`)>-1)return a.split(`
|
|
257
|
-
`);return a}function AP(a,n){let{element:s,datasetIndex:i,index:r}=n,c=a.getDatasetMeta(i).controller,{label:f,value:h}=c.getLabelAndValue(r);return{chart:a,label:f,parsed:c.getParsed(r),raw:a.data.datasets[i].data[r],formattedValue:h,dataset:c.getDataset(),dataIndex:r,datasetIndex:i,element:s}}function jM(a,n){let s=a.chart.ctx,{body:i,footer:r,title:c}=a,{boxWidth:f,boxHeight:h}=n,p=na(n.bodyFont),g=na(n.titleFont),b=na(n.footerFont),x=c.length,S=r.length,T=i.length,A=Ca(n.padding),M=A.height,w=0,_=i.reduce((W,Q)=>W+Q.before.length+Q.lines.length+Q.after.length,0);if(_+=a.beforeBody.length+a.afterBody.length,x)M+=x*g.lineHeight+(x-1)*n.titleSpacing+n.titleMarginBottom;if(_){let W=n.displayColors?Math.max(h,p.lineHeight):p.lineHeight;M+=T*W+(_-T)*p.lineHeight+(_-1)*n.bodySpacing}if(S)M+=n.footerMarginTop+S*b.lineHeight+(S-1)*n.footerSpacing;let z=0,V=function(W){w=Math.max(w,s.measureText(W).width+z)};return s.save(),s.font=g.string,pt(a.title,V),s.font=p.string,pt(a.beforeBody.concat(a.afterBody),V),z=n.displayColors?f+2+n.boxPadding:0,pt(i,(W)=>{pt(W.before,V),pt(W.lines,V),pt(W.after,V)}),z=0,s.font=b.string,pt(a.footer,V),s.restore(),w+=A.width,{width:w,height:M}}function kP(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 RP(a,n,s,i){let{x:r,width:c}=i,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 _P(a,n,s,i){let{x:r,width:c}=s,{width:f,chartArea:{left:h,right:p}}=a,g="center";if(i==="center")g=r<=(h+p)/2?"left":"right";else if(r<=c/2)g="left";else if(r>=f-c/2)g="right";if(RP(g,a,n,s))g="center";return g}function GM(a,n,s){let i=s.yAlign||n.yAlign||kP(a,s);return{xAlign:s.xAlign||n.xAlign||_P(a,n,s,i),yAlign:i}}function DP(a,n){let{x:s,width:i}=a;if(n==="right")s-=i;else if(n==="center")s-=i/2;return s}function EP(a,n,s){let{y:i,height:r}=a;if(n==="top")i+=s;else if(n==="bottom")i-=r+s;else i-=r/2;return i}function YM(a,n,s,i){let{caretSize:r,caretPadding:c,cornerRadius:f}=a,{xAlign:h,yAlign:p}=s,g=r+c,{topLeft:b,topRight:x,bottomLeft:S,bottomRight:T}=Ol(f),A=DP(n,h),M=EP(n,p,g);if(p==="center"){if(h==="left")A+=g;else if(h==="right")A-=g}else if(h==="left")A-=Math.max(b,S)+r;else if(h==="right")A+=Math.max(x,T)+r;return{x:to(A,0,i.width-n.width),y:to(M,0,i.height-n.height)}}function Fp(a,n,s){let i=Ca(s.padding);return n==="center"?a.x+a.width/2:n==="right"?a.x+a.width-i.right:a.x+i.left}function XM(a){return Gn([],Rs(a))}function OP(a,n,s){return As(a,{tooltip:n,tooltipItems:s,type:"tooltip"})}function $M(a,n){let s=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return s?a.override(s):a}var RI={beforeTitle:jn,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:jn,beforeBody:jn,beforeLabel:jn,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:jn,afterBody:jn,beforeFooter:jn,footer:jn,afterFooter:jn};function oo(a,n,s,i){let r=a[n].call(s,i);if(typeof r>"u")return RI[n].call(s,i);return r}class Xx extends _s{static positioners=vd;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,r=new Zx(this.chart,i);if(i._cacheable)this._cachedAnimations=Object.freeze(r);return r}getContext(){return this.$context||(this.$context=OP(this.chart.getContext(),this,this._tooltipItems))}getTitle(a,n){let{callbacks:s}=n,i=oo(s,"beforeTitle",this,a),r=oo(s,"title",this,a),c=oo(s,"afterTitle",this,a),f=[];return f=Gn(f,Rs(i)),f=Gn(f,Rs(r)),f=Gn(f,Rs(c)),f}getBeforeBody(a,n){return XM(oo(n.callbacks,"beforeBody",this,a))}getBody(a,n){let{callbacks:s}=n,i=[];return pt(a,(r)=>{let c={before:[],lines:[],after:[]},f=$M(s,r);Gn(c.before,Rs(oo(f,"beforeLabel",this,r))),Gn(c.lines,oo(f,"label",this,r)),Gn(c.after,Rs(oo(f,"afterLabel",this,r))),i.push(c)}),i}getAfterBody(a,n){return XM(oo(n.callbacks,"afterBody",this,a))}getFooter(a,n){let{callbacks:s}=n,i=oo(s,"beforeFooter",this,a),r=oo(s,"footer",this,a),c=oo(s,"afterFooter",this,a),f=[];return f=Gn(f,Rs(i)),f=Gn(f,Rs(r)),f=Gn(f,Rs(c)),f}_createItems(a){let n=this._active,s=this.chart.data,i=[],r=[],c=[],f=[],h,p;for(h=0,p=n.length;h<p;++h)f.push(AP(this.chart,n[h]));if(a.filter)f=f.filter((g,b,x)=>a.filter(g,b,x,s));if(a.itemSort)f=f.sort((g,b)=>a.itemSort(g,b,s));return pt(f,(g)=>{let b=$M(a.callbacks,g);i.push(oo(b,"labelColor",this,g)),r.push(oo(b,"labelPointStyle",this,g)),c.push(oo(b,"labelTextColor",this,g))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=c,this.dataPoints=f,f}update(a,n){let s=this.options.setContext(this.getContext()),i=this._active,r,c=[];if(!i.length){if(this.opacity!==0)r={opacity:0}}else{let f=vd[s.position].call(this,i,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=jM(this,s),p=Object.assign({},f,h),g=GM(this.chart,s,p),b=YM(s,p,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,r={opacity:1,x:b.x,y:b.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,i){let r=this.getCaretPosition(a,s,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(a,n,s){let{xAlign:i,yAlign:r}=this,{caretSize:c,cornerRadius:f}=s,{topLeft:h,topRight:p,bottomLeft:g,bottomRight:b}=Ol(f),{x,y:S}=a,{width:T,height:A}=n,M,w,_,z,V,W;if(r==="center"){if(V=S+A/2,i==="left")M=x,w=M-c,z=V+c,W=V-c;else M=x+T,w=M+c,z=V-c,W=V+c;_=M}else{if(i==="left")w=x+Math.max(h,g)+c;else if(i==="right")w=x+T-Math.max(p,b)-c;else w=this.caretX;if(r==="top")z=S,V=z-c,M=w-c,_=w+c;else z=S+A,V=z+c,M=w+c,_=w-c;W=z}return{x1:M,x2:w,x3:_,y1:z,y2:V,y3:W}}drawTitle(a,n,s){let i=this.title,r=i.length,c,f,h;if(r){let p=Hi(s.rtl,this.x,this.width);a.x=Fp(this,s.titleAlign,s),n.textAlign=p.textAlign(s.titleAlign),n.textBaseline="middle",c=na(s.titleFont),f=s.titleSpacing,n.fillStyle=s.titleColor,n.font=c.string;for(h=0;h<r;++h)if(n.fillText(i[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,i,r){let c=this.labelColors[s],f=this.labelPointStyles[s],{boxHeight:h,boxWidth:p}=r,g=na(r.bodyFont),b=Fp(this,"left",r),x=i.x(b),S=h<g.lineHeight?(g.lineHeight-h)/2:0,T=n.y+S;if(r.usePointStyle){let A={radius:Math.min(p,h)/2,pointStyle:f.pointStyle,rotation:f.rotation,borderWidth:1},M=i.leftForLtr(x,p)+p/2,w=T+h/2;a.strokeStyle=r.multiKeyBackground,a.fillStyle=r.multiKeyBackground,Ep(a,A,M,w),a.strokeStyle=c.borderColor,a.fillStyle=c.backgroundColor,Ep(a,A,M,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 A=i.leftForLtr(x,p),M=i.leftForLtr(i.xPlus(x,1),p-2),w=Ol(c.borderRadius);if(Object.values(w).some((_)=>_!==0))a.beginPath(),a.fillStyle=r.multiKeyBackground,gu(a,{x:A,y:T,w:p,h,radius:w}),a.fill(),a.stroke(),a.fillStyle=c.backgroundColor,a.beginPath(),gu(a,{x:M,y:T+1,w:p-2,h:h-2,radius:w}),a.fill();else a.fillStyle=r.multiKeyBackground,a.fillRect(A,T,p,h),a.strokeRect(A,T,p,h),a.fillStyle=c.backgroundColor,a.fillRect(M,T+1,p-2,h-2)}a.fillStyle=this.labelTextColors[s]}drawBody(a,n,s){let{body:i}=this,{bodySpacing:r,bodyAlign:c,displayColors:f,boxHeight:h,boxWidth:p,boxPadding:g}=s,b=na(s.bodyFont),x=b.lineHeight,S=0,T=Hi(s.rtl,this.x,this.width),A=function(J){n.fillText(J,T.x(a.x+S),a.y+x/2),a.y+=x+r},M=T.textAlign(c),w,_,z,V,W,Q,ne;n.textAlign=c,n.textBaseline="middle",n.font=b.string,a.x=Fp(this,M,s),n.fillStyle=s.bodyColor,pt(this.beforeBody,A),S=f&&M!=="right"?c==="center"?p/2+g:p+2+g:0;for(V=0,Q=i.length;V<Q;++V){if(w=i[V],_=this.labelTextColors[V],n.fillStyle=_,pt(w.before,A),z=w.lines,f&&z.length)this._drawColorBox(n,a,V,T,s),x=Math.max(b.lineHeight,h);for(W=0,ne=z.length;W<ne;++W)A(z[W]),x=b.lineHeight;pt(w.after,A)}S=0,x=b.lineHeight,pt(this.afterBody,A),a.y-=r}drawFooter(a,n,s){let i=this.footer,r=i.length,c,f;if(r){let h=Hi(s.rtl,this.x,this.width);a.x=Fp(this,s.footerAlign,s),a.y+=s.footerMarginTop,n.textAlign=h.textAlign(s.footerAlign),n.textBaseline="middle",c=na(s.footerFont),n.fillStyle=s.footerColor,n.font=c.string;for(f=0;f<r;++f)n.fillText(i[f],h.x(a.x),a.y+c.lineHeight/2),a.y+=c.lineHeight+s.footerSpacing}}drawBackground(a,n,s,i){let{xAlign:r,yAlign:c}=this,{x:f,y:h}=a,{width:p,height:g}=s,{topLeft:b,topRight:x,bottomLeft:S,bottomRight:T}=Ol(i.cornerRadius);if(n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(f+b,h),c==="top")this.drawCaret(a,n,s,i);if(n.lineTo(f+p-x,h),n.quadraticCurveTo(f+p,h,f+p,h+x),c==="center"&&r==="right")this.drawCaret(a,n,s,i);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,i);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,i);if(n.lineTo(f,h+b),n.quadraticCurveTo(f,h,f+b,h),n.closePath(),n.fill(),i.borderWidth>0)n.stroke()}_updateAnimationTarget(a){let n=this.chart,s=this.$animations,i=s&&s.x,r=s&&s.y;if(i||r){let c=vd[a.position].call(this,this._active,this._eventPosition);if(!c)return;let f=this._size=jM(this,a),h=Object.assign({},c,this._size),p=GM(n,a,h),g=YM(a,h,p,n);if(i._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 i={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<0.001?0:s;let c=Ca(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,i,n),Mx(a,n.textDirection),r.y+=c.top,this.drawTitle(r,a,n),this.drawBody(r,a,n),this.drawFooter(r,a,n),Ix(a,n.textDirection),a.restore()}getActiveElements(){return this._active||[]}setActiveElements(a,n){let s=this._active,i=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=!rd(s,i),c=this._positionChanged(i,n);if(r||c)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,r=this._active||[],c=this._getActiveElements(a,r,n,s),f=this._positionChanged(c,a),h=n||!rd(c,r)||f;if(h){if(this._active=c,i.enabled||i.external)this._eventPosition={x:a.x,y:a.y},this.update(!0,n)}return h}_getActiveElements(a,n,s,i){let r=this.options;if(a.type==="mouseout")return[];if(!i)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:i,options:r}=this,c=vd[r.position].call(this,a,n);return c!==!1&&(s!==c.x||i!==c.y)}}var _I={id:"tooltip",_element:Xx,positioners:vd,afterInit(a,n,s){if(s)a.tooltip=new Xx({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:RI},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 PP=(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 BP(a,n,s,i){let r=a.indexOf(n);if(r===-1)return PP(a,n,s,i);let c=a.lastIndexOf(n);return r!==c?s:r}var NP=(a,n)=>a===null?null:to(Math.round(a),0,n);function WM(a){let n=this.getLabels();if(a>=0&&a<n.length)return n[a];return a}class sv extends Vi{static id="category";static defaults={ticks:{callback:WM}};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:r}of n)if(s[i]===r)s.splice(i,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:BP(s,a,We(n,a),this._addedLabels),NP(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=[],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++)i.push({value:c});return i}getLabelForValue(a){return WM.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 zP(a,n){let s=[],i=0.00000000000001,{bounds:r,step:c,min:f,max:h,precision:p,count:g,maxTicks:b,maxDigits:x,includeBounds:S}=a,T=c||1,A=b-1,{min:M,max:w}=n,_=!st(f),z=!st(h),V=!st(g),W=(w-M)/(x+1),Q=ix((w-M)/A/T)*T,ne,J,K,re;if(Q<0.00000000000001&&!_&&!z)return[{value:M},{value:w}];if(re=Math.ceil(w/Q)-Math.floor(M/Q),re>A)Q=ix(re*Q/A/T)*T;if(!st(p))ne=Math.pow(10,p),Q=Math.ceil(Q*ne)/ne;if(r==="ticks")J=Math.floor(M/Q)*Q,K=Math.ceil(w/Q)*Q;else J=M,K=w;if(_&&z&&c&&Pw((h-f)/c,Q/1000))re=Math.round(Math.min((h-f)/Q,b)),Q=(h-f)/re,J=f,K=h;else if(V)J=_?f:J,K=z?h:K,re=g-1,Q=(K-J)/re;else if(re=(K-J)/Q,pu(re,Math.round(re),Q/1000))re=Math.round(re);else re=Math.ceil(re);let q=Math.max(ux(Q),ux(J));ne=Math.pow(10,st(p)?q: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(pu(Math.round((J+he*Q)*ne)/ne,f,ZM(f,W,a)))he++}else if(J<f)he++}for(;he<re;++he){let Le=Math.round((J+he*Q)*ne)/ne;if(z&&Le>h)break;s.push({value:Le})}if(z&&S&&K!==h)if(s.length&&pu(s[s.length-1].value,h,ZM(h,W,a)))s[s.length-1].value=h;else s.push({value:h});else if(!z||K===h)s.push({value:K});return s}function ZM(a,n,{horizontal:s,minRotation:i}){let r=Ms(i),c=(s?Math.sin(r):Math.cos(r))||0.001,f=0.75*n*(""+a).length;return Math.min(n/c,f)}class Ld extends Vi{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:i,max:r}=this,c=(h)=>i=n?i:h,f=(h)=>r=s?r:h;if(a){let h=fn(i),p=fn(r);if(h<0&&p<0)f(0);else if(h>0&&p>0)c(0)}if(i===r){let h=r===0?1:Math.abs(r*0.05);if(f(r+h),!a)c(i-h)}this.min=i,this.max=r}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},r=this._range||this,c=zP(i,r);if(a.bounds==="ticks")rx(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 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 _p(a,this.chart.options.locale,this.options.ticks.format)}}class lv extends Ld{static id="linear";static defaults={ticks:{callback:ud.formatters.numeric}};determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);this.min=Ht(a)?a:0,this.max=Ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let a=this.isHorizontal(),n=a?this.width:this.height,s=Ms(this.options.ticks.minRotation),i=(a?Math.sin(s):Math.cos(s))||0.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.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 Cd=(a)=>Math.floor(ws(a)),qi=(a,n)=>Math.pow(10,Cd(a)+n);function QM(a){return a/Math.pow(10,Cd(a))===1}function KM(a,n,s){let i=Math.pow(10,s),r=Math.floor(a/i);return Math.ceil(n/i)-r}function UP(a,n){let s=n-a,i=Cd(s);while(KM(a,n,i)>10)i++;while(KM(a,n,i)<10)i--;return Math.min(i,Cd(a))}function HP(a,{min:n,max:s}){n=ao(a.min,n);let i=[],r=Cd(n),c=UP(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,b=Math.floor((n-p)/h/10)*h*10,x=Math.floor((g-b)/Math.pow(10,c)),S=ao(a.min,Math.round((p+b+x*Math.pow(10,c))*f)/f);while(S<s){if(i.push({value:S,major:QM(S),significand:x}),x>=10)x=x<15?15:20;else x++;if(x>=20)c++,x=2,f=c>=0?1:f;S=Math.round((p+b+x*Math.pow(10,c))*f)/f}let T=ao(a.max,S);return i.push({value:T,major:QM(T),significand:x}),i}class FP extends Vi{static id="logarithmic";static defaults={ticks:{callback:ud.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=Ld.prototype.parse.apply(this,[a,n]);if(s===0){this._zero=!0;return}return Ht(s)&&s>0?s:null}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);if(this.min=Ht(a)?Math.max(0,a):null,this.max=Ht(n)?Math.max(0,n):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!Ht(this._userMin))this.min=a===qi(this.min,0)?qi(this.min,-1):qi(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),s=this.min,i=this.max,r=(f)=>s=a?s:f,c=(f)=>i=n?i:f;if(s===i)if(s<=0)r(1),c(10);else r(qi(s,-1)),c(qi(i,1));if(s<=0)r(qi(i,-1));if(i<=0)c(qi(s,1));this.min=s,this.max=i}buildTicks(){let a=this.options,n={min:this._userMin,max:this._userMax},s=HP(n,this);if(a.bounds==="ticks")rx(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":_p(a,this.chart.options.locale,this.options.ticks.format)}configure(){let a=this.min;super.configure(),this._startValue=ws(a),this._valueRange=ws(this.max)-ws(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:(ws(a)-this._startValue)/this._valueRange)}getValueForPixel(a){let n=this.getDecimalForPixel(a);return Math.pow(10,this._startValue+n*this._valueRange)}}function $x(a){let n=a.ticks;if(n.display&&a.display){let s=Ca(n.backdropPadding);return We(n.font&&n.font.size,Ft.font.size)+s.height}return 0}function qP(a,n,s){return s=kt(s)?s:[s],{w:$w(a,n.string,s),h:s.length*n.lineHeight}}function JM(a,n,s,i,r){if(a===i||a===r)return{start:n-s/2,end:n+s/2};else if(a<i||a>r)return{start:n-s,end:n};return{start:n,end:n+s}}function VP(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=[],r=[],c=a._pointLabels.length,f=a.options.pointLabels,h=f.centerPointLabels?Xt/c:0;for(let p=0;p<c;p++){let g=f.setContext(a.getPointLabelContext(p));r[p]=g.padding;let b=a.getPointPosition(p,a.drawingArea+r[p],h),x=na(g.font),S=qP(a.ctx,x,a._pointLabels[p]);i[p]=S;let T=Ka(a.getIndexAngle(p)+h),A=Math.round(Ap(T)),M=JM(A,b.x,S.w,0,180),w=JM(A,b.y,S.h,90,270);jP(s,n,T,M,w)}a.setCenterPoint(n.l-s.l,s.r-n.r,n.t-s.t,s.b-n.b),a._pointLabelItems=XP(a,i,r)}function jP(a,n,s,i,r){let c=Math.abs(Math.sin(s)),f=Math.abs(Math.cos(s)),h=0,p=0;if(i.start<n.l)h=(n.l-i.start)/c,a.l=Math.min(a.l,n.l-h);else if(i.end>n.r)h=(i.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 GP(a,n,s){let i=a.drawingArea,{extra:r,additionalAngle:c,padding:f,size:h}=s,p=a.getPointPosition(n,i+r+f,c),g=Math.round(Ap(Ka(p.angle+Ja))),b=ZP(p.y,h.h,g),x=$P(g),S=WP(p.x,h.w,x);return{visible:!0,x:p.x,y:b,textAlign:x,left:S,top:b,right:S+h.w,bottom:b+h.h}}function YP(a,n){if(!n)return!0;let{left:s,top:i,right:r,bottom:c}=a;return!(Vn({x:s,y:i},n)||Vn({x:s,y:c},n)||Vn({x:r,y:i},n)||Vn({x:r,y:c},n))}function XP(a,n,s){let i=[],r=a._pointLabels.length,c=a.options,{centerPointLabels:f,display:h}=c.pointLabels,p={extra:$x(c)/2,additionalAngle:f?Xt/r:0},g;for(let b=0;b<r;b++){p.padding=s[b],p.size=n[b];let x=GP(a,b,p);if(i.push(x),h==="auto"){if(x.visible=YP(x,g),x.visible)g=x}}return i}function $P(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function WP(a,n,s){if(s==="right")a-=n;else if(s==="center")a-=n/2;return a}function ZP(a,n,s){if(s===90||s===270)a-=n/2;else if(s>270||s<90)a-=n;return a}function QP(a,n,s){let{left:i,top:r,right:c,bottom:f}=s,{backdropColor:h}=n;if(!st(h)){let p=Ol(n.borderRadius),g=Ca(n.backdropPadding);a.fillStyle=h;let b=i-g.left,x=r-g.top,S=c-i+g.width,T=f-r+g.height;if(Object.values(p).some((A)=>A!==0))a.beginPath(),gu(a,{x:b,y:x,w:S,h:T,radius:p}),a.fill();else a.fillRect(b,x,S,T)}}function KP(a,n){let{ctx:s,options:{pointLabels:i}}=a;for(let r=n-1;r>=0;r--){let c=a._pointLabelItems[r];if(!c.visible)continue;let f=i.setContext(a.getPointLabelContext(r));QP(s,f,c);let h=na(f.font),{x:p,y:g,textAlign:b}=c;El(s,a._pointLabels[r],p,g+h.lineHeight/2,h,{color:f.color,textAlign:b,textBaseline:"middle"})}}function DI(a,n,s,i){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<i;f++)c=a.getPointPosition(f,n),r.lineTo(c.x,c.y)}}function JP(a,n,s,i,r){let c=a.ctx,f=n.circular,{color:h,lineWidth:p}=n;if(!f&&!i||!h||!p||s<0)return;c.save(),c.strokeStyle=h,c.lineWidth=p,c.setLineDash(r.dash||[]),c.lineDashOffset=r.dashOffset,c.beginPath(),DI(a,s,f,i),c.closePath(),c.stroke(),c.restore()}function eB(a,n,s){return As(a,{label:s,index:n,type:"pointLabel"})}class tB extends Ld{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:ud.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=Ca($x(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=Ht(a)&&!isNaN(a)?a:0,this.max=Ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/$x(this.options))}generateTickLabels(a){Ld.prototype.generateTickLabels.call(this,a),this._pointLabels=this.getLabels().map((n,s)=>{let i=wt(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)VP(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=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 eB(this.getContext(),a,s)}}getPointPosition(a,n,s=0){let i=this.getIndexAngle(a)-Ja+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:r}=this._pointLabelItems[a];return{left:n,top:s,right:i,bottom:r}}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:r}=n,c=this._pointLabels.length,f,h,p;if(n.pointLabels.display)KP(this,c);if(i.display)this.ticks.forEach((g,b)=>{if(b!==0||b===0&&this.min<0){h=this.getDistanceFromCenterForValue(g.value);let x=this.getContext(b),S=i.setContext(x),T=r.setContext(x);JP(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:b,lineWidth:x}=g;if(!x||!b)continue;a.lineWidth=x,a.strokeStyle=b,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 i=this.getIndexAngle(0),r,c;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(i),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=na(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 b=Ca(p.backdropPadding);a.fillRect(-c/2-b.left,-r-g.size/2-b.top,c+b.width,g.size+b.height)}El(a,f.label,0,-r,g,{color:p.color,strokeColor:p.textStrokeColor,strokeWidth:p.textStrokeWidth})}),a.restore()}drawTitle(){}}var $p={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($p);function eI(a,n){return a-n}function tI(a,n){if(st(n))return null;let s=a._adapter,{parser:i,round:r,isoWeekday:c}=a._parseOpts,f=n;if(typeof i==="function")f=i(f);if(!Ht(f))f=typeof i==="string"?s.parse(f,i):s.parse(f);if(f===null)return null;if(r)f=r==="week"&&(mu(c)||c===!0)?s.startOf(f,"isoWeek",c):s.startOf(f,r);return+f}function aI(a,n,s,i){let r=no.length;for(let c=no.indexOf(a);c<r-1;++c){let f=$p[no[c]],h=f.steps?f.steps:Number.MAX_SAFE_INTEGER;if(f.common&&Math.ceil((s-n)/(h*f.size))<=i)return no[c]}return no[r-1]}function aB(a,n,s,i,r){for(let c=no.length-1;c>=no.indexOf(s);c--){let f=no[c];if($p[f].common&&a._adapter.diff(r,i,f)>=n-1)return f}return no[s?no.indexOf(s):0]}function oB(a){for(let n=no.indexOf(a)+1,s=no.length;n<s;++n)if($p[no[n]].common)return no[n]}function oI(a,n,s){if(!s)a[n]=!0;else if(s.length){let{lo:i,hi:r}=kp(s,n),c=s[i]>=n?s[i]:s[r];a[c]=!0}}function nB(a,n,s,i){let r=a._adapter,c=+r.startOf(n[0].value,i),f=n[n.length-1].value,h,p;for(h=c;h<=f;h=+r.add(h,1,i))if(p=s[h],p>=0)n[p].major=!0;return n}function nI(a,n,s){let i=[],r={},c=n.length,f,h;for(f=0;f<c;++f)h=n[f],r[h]=f,i.push({value:h,major:!1});return c===0||!s?i:nB(a,i,r,s)}class Wx extends Vi{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 UE._date(a.adapters.date);i.init(n),fu(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 tI(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:r,minDefined:c,maxDefined:f}=this.getUserBounds();function h(p){if(!c&&!isNaN(p.min))i=Math.min(i,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))}i=Ht(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),r=Ht(r)&&!isNaN(r)?r:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+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,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 r=this.min,c=this.max,f=Uw(i,r,c);if(this._unit=n.unit||(s.autoSkip?aI(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):aB(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:oB(this._unit),this.initOffsets(i),a.reverse)f.reverse();return nI(this,f,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((a)=>+a.value))}initOffsets(a=[]){let n=0,s=0,i,r;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(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,i=this.options,r=i.time,c=r.unit||aI(r.minUnit,n,s,this._getLabelCapacity(n)),f=We(i.ticks.stepSize,1),h=c==="week"?r.isoWeekday:!1,p=mu(h)||h===!0,g={},b=n,x,S;if(p)b=+a.startOf(b,"isoWeek",h);if(b=+a.startOf(b,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=i.ticks.source==="data"&&this.getDataTimestamps();for(x=b,S=0;x<s;x=+a.add(x,f,c),S++)oI(g,x,T);if(x===s||i.bounds==="ticks"||S===1)oI(g,x,T);return Object.keys(g).sort(eI).map((A)=>+A)}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,r=this._unit,c=n||i[r];return this._adapter.format(a,c)}_tickFormatFunction(a,n,s,i){let r=this.options,c=r.ticks.callback;if(c)return wt(c,[a,n,s],this);let f=r.time.displayFormats,h=this._unit,p=this._majorUnit,g=h&&f[h],b=p&&f[p],x=s[n],S=p&&b&&x&&x.major;return this._adapter.format(a,i||(S?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=Ms(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(i),c=Math.sin(i),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,i=s[n.unit]||s.millisecond,r=this._tickFormatFunction(a,0,nI(this,[a],this._majorUnit),i),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 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(tI(this,i[n]));return this._cache.labels=this._normalized?a:this.normalize(a)}normalize(a){return fx(a.sort(eI))}}function qp(a,n,s){let i=0,r=a.length-1,c,f,h,p;if(s){if(n>=a[i].pos&&n<=a[r].pos)({lo:i,hi:r}=kl(a,"pos",n));({pos:c,time:h}=a[i]),{pos:f,time:p}=a[r]}else{if(n>=a[i].time&&n<=a[r].time)({lo:i,hi:r}=kl(a,"time",n));({time:c,pos:h}=a[i]),{time:f,pos:p}=a[r]}let g=f-c;return g?h+(p-h)*(n-c)/g:h}class sB extends Wx{static id="timeseries";static defaults=Wx.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=qp(n,this.min),this._tableRange=qp(n,this.max)-this._minPos,super.initOffsets(a)}buildLookupTable(a){let{min:n,max:s}=this,i=[],r=[],c,f,h,p,g;for(c=0,f=a.length;c<f;++c)if(p=a[c],p>=n&&p<=s)i.push(p);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(c=0,f=i.length;c<f;++c)if(g=i[c+1],h=i[c-1],p=i[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((i,r)=>i-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(qp(this._table,a)-this._minPos)/this._tableRange}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return qp(this._table,s*this._tableRange+this._minPos,!0)}}ji.register(sv,lv,av,yu,tv,kI,_I,AI,MI);var uk=X(UI(),1);var Os=X(St(),1);var Kp=X(St(),1);var Zp=(...a)=>a.filter((n,s,i)=>Boolean(n)&&n.trim()!==""&&i.indexOf(n)===s).join(" ").trim();var HI=(a)=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var FI=(a)=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,i)=>i?i.toUpperCase():s.toLowerCase());var uv=(a)=>{let n=FI(a);return n.charAt(0).toUpperCase()+n.slice(1)};var wd=X(St(),1);var Qp={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 qI=(a)=>{for(let n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};var xu=X(St(),1),fB=xu.createContext({});var VI=()=>xu.useContext(fB);var jI=wd.forwardRef(({color:a,size:n,strokeWidth:s,absoluteStrokeWidth:i,className:r="",children:c,iconNode:f,...h},p)=>{let{size:g=24,strokeWidth:b=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:T=""}=VI()??{},A=i??x?Number(s??b)*24/Number(n??g):s??b;return wd.createElement("svg",{ref:p,...Qp,width:n??g??Qp.width,height:n??g??Qp.height,stroke:a??S,strokeWidth:A,className:Zp("lucide",T,r),...!c&&!qI(h)&&{"aria-hidden":"true"},...h},[...f.map(([M,w])=>wd.createElement(M,w)),...Array.isArray(c)?c:[c]])});var Te=(a,n)=>{let s=Kp.forwardRef(({className:i,...r},c)=>Kp.createElement(jI,{ref:c,iconNode:n,className:Zp(`lucide-${HI(uv(a))}`,`lucide-${a}`,i),...r}));return s.displayName=uv(a),s};var hB=[["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"}]],Nl=Te("circle-alert",hB);var pB=[["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"}]],zl=Te("face-slightly-smiling",pB);var mB=[["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",mB);var gB=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Id=Te("check",gB);var yB=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ad=Te("chevron-down",yB);var bB=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kd=Te("chevron-up",bB);var xB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Rd=Te("clock",xB);var vB=[["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"}]],Yi=Te("coins",vB);var SB=[["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"}]],_d=Te("copy",SB);var LB=[["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"}]],Dd=Te("cpu",LB);var CB=[["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"}]],Ed=Te("folder",CB);var TB=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Od=Te("gauge",TB);var wB=[["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"}]],Pd=Te("hash",wB);var MB=[["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"}]],Bd=Te("inbox",MB);var IB=[["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"}]],Nd=Te("layout-dashboard",IB);var AB=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],zd=Te("menu",AB);var kB=[["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"}]],Ud=Te("monitor",kB);var RB=[["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"}]],Hd=Te("moon",RB);var _B=[["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"}]],Fd=Te("plug",_B);var DB=[["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"}]],qd=Te("refresh-cw",DB);var EB=[["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"}]],Vd=Te("star",EB);var OB=[["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"}]],jd=Te("sun",OB);var PB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Gd=Te("trending-up",PB);var BB=[["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"}]],Yd=Te("wrench",BB);var NB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xi=Te("x",NB);var zB=[["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"}]],Xd=Te("zap",zB);var hA=X(St(),1);var $d=[{id:"overview",label:"Overview",icon:Nd},{id:"requests",label:"Requests",icon:Md},{id:"errors",label:"Errors",icon:Nl},{id:"models",label:"Models",icon:Dd},{id:"providers",label:"Providers",icon:Fd},{id:"tools",label:"Tools",icon:Yd},{id:"costs",label:"Costs",icon:Yi},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:zl},{id:"projects",label:"Projects",icon:Ed},{id:"gain",label:"Gain",icon:Gd}];var Xo=X(ce(),1);function cv({activeSection:a,onSectionChange:n,className:s=""}){return Xo.jsxDEV("aside",{className:`stats-nav-rail ${s}`,children:[Xo.jsxDEV("div",{className:"stats-nav-rail-header",children:Xo.jsxDEV("div",{className:"stats-logo-container",children:[Xo.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),Xo.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),Xo.jsxDEV("nav",{className:"stats-nav-rail-menu",children:$d.map((i)=>{let r=i.id===a,c=i.icon;return Xo.jsxDEV("button",{type:"button",onClick:()=>n(i.id),className:"stats-nav-rail-item","data-active":r?"true":"false","aria-current":r?"page":void 0,children:[Xo.jsxDEV(c,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),Xo.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),Xo.jsxDEV("div",{className:"stats-nav-rail-footer",children:Xo.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 dv=X(ce(),1),HB=[{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 GI({value:a,onChange:n,className:s=""}){return dv.jsxDEV("div",{className:`stats-range-control ${s}`,role:"radiogroup","aria-label":"Select time range",children:HB.map((i)=>{let r=i.value===a;return dv.jsxDEV("button",{type:"button",role:"radio","aria-checked":r,"data-active":r?"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 fv=X(St(),1);class YI extends Error{status;endpoint;constructor(a,n,s){super(s);this.name="ApiError",this.status=a,this.endpoint=n}}async function $o(a,n){let s=await fetch(a,n);if(!s.ok)throw new YI(s.status,a,`HTTP error ${s.status} on ${a}`);return s.json()}async function XI(a="24h",n){return $o(`/api/stats/overview?range=${encodeURIComponent(a)}`,{signal:n})}async function $I(a="24h",n){return $o(`/api/stats/model-dashboard?range=${encodeURIComponent(a)}`,{signal:n})}async function WI(a="24h",n){return $o(`/api/stats/costs?range=${encodeURIComponent(a)}`,{signal:n})}async function Jp(a=50,n){return $o(`/api/stats/recent?limit=${a}`,{signal:n})}async function ZI(a="24h",n=50,s){return $o(`/api/stats/errors?range=${encodeURIComponent(a)}&limit=${n}`,{signal:s})}async function QI(a,n){return $o(`/api/request/${a}`,{signal:n})}async function KI(a){return $o("/api/sync",{signal:a})}async function JI(a="24h",n){return $o(`/api/stats/behavior?range=${encodeURIComponent(a)}`,{signal:n})}async function eA(a="24h",n){return $o(`/api/stats/folders?range=${encodeURIComponent(a)}`,{signal:n})}async function tA(a="24h",n,s){let i=new URLSearchParams({range:a});if(n)i.set("project",n);return $o(`/api/stats/gain?${i}`,{signal:s})}async function aA(a="24h",n){return $o(`/api/stats/tools?range=${encodeURIComponent(a)}`,{signal:n})}async function oA(a="24h",n){return $o(`/api/stats/providers?range=${encodeURIComponent(a)}`,{signal:n})}var Wd=X(ce(),1);function nA({onSyncStart:a,onSyncComplete:n,className:s=""}){let[i,r]=fv.useState(!1),[c,f]=fv.useState(null),h=async()=>{if(i)return;if(r(!0),f(null),a)a();try{let p=await KI(),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 Wd.jsxDEV("div",{className:`stats-sync-container ${s}`,children:[c&&Wd.jsxDEV("span",{className:"stats-sync-status-msg","data-type":c.type,children:c.message},void 0,!1,void 0,this),Wd.jsxDEV("button",{type:"button",onClick:h,disabled:i,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":i,children:[Wd.jsxDEV(qd,{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 em=X(St(),1),sA="omp-stats-theme",lA="(prefers-color-scheme: dark)";function FB(){if(typeof localStorage>"u")return"system";let a=localStorage.getItem(sA);return a==="light"||a==="dark"||a==="system"?a:"system"}function iA(){if(typeof window>"u")return"dark";return window.matchMedia(lA).matches?"dark":"light"}var Wi=FB(),Zd=Wi==="system"?iA():Wi,hv=new Set;function rA(){for(let a of hv)a()}function pv(){if(Zd=Wi==="system"?iA():Wi,typeof document<"u")document.documentElement.dataset.theme=Zd,document.documentElement.style.colorScheme=Zd}if(typeof window<"u")pv(),window.matchMedia(lA).addEventListener("change",()=>{if(Wi==="system")pv(),rA()});function qB(a){if(Wi=a,typeof localStorage<"u")localStorage.setItem(sA,a);pv(),rA()}function mv(a){return hv.add(a),()=>hv.delete(a)}function ga(){return em.useSyncExternalStore(mv,()=>Zd,()=>"dark")}function uA(){let a=em.useSyncExternalStore(mv,()=>Wi,()=>"system"),n=em.useSyncExternalStore(mv,()=>Zd,()=>"dark");return{preference:a,resolved:n,setPreference:qB}}var gv=X(ce(),1),VB={system:"light",light:"dark",dark:"system"},jB={system:Ud,light:jd,dark:Hd},cA={system:"System theme",light:"Light theme",dark:"Dark theme"};function dA(){let{preference:a,setPreference:n}=uA(),s=jB[a];return gv.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>n(VB[a]),"aria-label":`${cA[a]} (click to switch)`,title:`${cA[a]} — click to switch`,children:gv.jsxDEV(s,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Wo=X(ce(),1);function fA({activeSection:a,range:n,onRangeChange:s,updatedAt:i,onSyncStart:r,onSyncComplete:c,onMenuToggle:f,className:h=""}){let g=$d.find((x)=>x.id===a)?.label||"Observability",b=(x)=>{if(!x)return"Not updated";return`Updated ${new Date(x).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return Wo.jsxDEV("header",{className:`stats-top-bar ${h}`,children:[Wo.jsxDEV("div",{className:"stats-top-bar-left",children:[f&&Wo.jsxDEV("button",{type:"button",onClick:f,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:Wo.jsxDEV(zd,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),Wo.jsxDEV("h1",{className:"stats-page-title",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Wo.jsxDEV("div",{className:"stats-top-bar-right",children:[Wo.jsxDEV("div",{className:"stats-top-bar-meta",children:Wo.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),Wo.jsxDEV(GI,{value:n,onChange:s},void 0,!1,void 0,this),Wo.jsxDEV(dA,{},void 0,!1,void 0,this),Wo.jsxDEV(nA,{onSyncStart:r,onSyncComplete:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Da=X(ce(),1);function pA({activeSection:a,onSectionChange:n,range:s,onRangeChange:i,updatedAt:r,onSyncStart:c,onSyncComplete:f,children:h}){let[p,g]=hA.useState(!1),b=(x)=>{n(x),g(!1)};return Da.jsxDEV("div",{className:"stats-app-container",children:[Da.jsxDEV(cv,{activeSection:a,onSectionChange:b,className:"stats-desktop-nav"},void 0,!1,void 0,this),p&&Da.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>g(!1),role:"presentation",children:Da.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(x)=>x.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[Da.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[Da.jsxDEV("div",{className:"stats-logo-container",children:[Da.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),Da.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Da.jsxDEV("button",{type:"button",onClick:()=>g(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:Da.jsxDEV(Xi,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Da.jsxDEV(cv,{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),Da.jsxDEV("div",{className:"stats-main-pane",children:[Da.jsxDEV(fA,{activeSection:a,range:s,onRangeChange:i,updatedAt:r,onSyncStart:c,onSyncComplete:f,onMenuToggle:()=>g(!0)},void 0,!1,void 0,this),Da.jsxDEV("main",{className:"stats-content-area",children:Da.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 Ds=X(St(),1),GB=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],mA=["1h","24h","7d","30d","90d","all"];function yv(a){let n=a.replace(/^#\/?/,""),[s,i]=n.split("?"),r=GB.includes(s)?s:"overview",c="24h";if(i){let h=new URLSearchParams(i).get("range");if(mA.includes(h))c=h}return{section:r,range:c}}function gA(){let[a,n]=Ds.useState(()=>yv(window.location.hash));Ds.useEffect(()=>{let c=()=>{n(yv(window.location.hash))};return window.addEventListener("hashchange",c),()=>{window.removeEventListener("hashchange",c)}},[]);let s=Ds.useCallback((c,f)=>{window.location.hash=`/${c}?range=${f}`},[]),i=Ds.useCallback((c)=>{s(c,a.range)},[a.range,s]),r=Ds.useCallback((c)=>{let f=mA.includes(c)?c:"24h";s(a.section,f)},[a.section,s]);return Ds.useEffect(()=>{let c=window.location.hash,f=yv(c),h=`#/${f.section}?range=${f.range}`;if(c!==h)window.location.hash=`/${f.section}?range=${f.range}`},[]),{section:a.section,setSection:i,range:a.range,setRange:r}}var yA=["January","February","March","April","May","June","July","August","September","October","November","December"],bA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],YB=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Ul(a,n=2){return String(a).padStart(n,"0")}function XB(a,n){let s=a.getMonth(),i=a.getDay(),r=a.getHours(),c=r%12||12;switch(n){case"yyyy":return Ul(a.getFullYear(),4);case"yy":return Ul(a.getFullYear()%100);case"MMMM":return yA[s];case"MMM":return yA[s].slice(0,3);case"MM":return Ul(s+1);case"M":return String(s+1);case"dd":return Ul(a.getDate());case"d":return String(a.getDate());case"EEEE":return bA[i];case"EEE":return bA[i].slice(0,3);case"HH":return Ul(r);case"H":return String(r);case"hh":return Ul(c);case"h":return String(c);case"mm":return Ul(a.getMinutes());case"m":return String(a.getMinutes());case"ss":return Ul(a.getSeconds());case"s":return String(a.getSeconds());case"a":return r<12?"AM":"PM"}}function vA(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 hn(a,n){let s=vA(a),i="";for(let r=0;r<n.length;){if(n[r]==="'"){if(n[r+1]==="'"){i+="'",r+=2;continue}r++;while(r<n.length){if(n[r]!=="'"){i+=n[r++];continue}if(n[r+1]==="'"){i+="'",r+=2;continue}r++;break}continue}let c=n.slice(r),f=YB.find((p)=>c.startsWith(p));if(f){i+=XB(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}\``);i+=h}return i}function Hl(a,n){return`${a} ${a===1?n:`${n}s`}`}function $B(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 r=new Date(i.getFullYear(),i.getMonth()+1,0).getDate();if(i.setDate(Math.min(a.getDate(),r)),i.getTime()>n.getTime())s--;return s}function xA(a,n){let s=(n.getTime()-a.getTime())/1000,i=(n.getTimezoneOffset()-a.getTimezoneOffset())*60,r=Math.round((s-i)/60);if(r<2)return r===0?"less than a minute":"1 minute";if(r<45)return Hl(r,"minute");if(r<90)return"about 1 hour";if(r<1440)return`about ${Hl(Math.round(r/60),"hour")}`;if(r<2520)return"1 day";if(r<43200)return Hl(Math.round(r/1440),"day");if(r<86400)return`about ${Hl(Math.round(r/43200),"month")}`;let c=$B(a,n);if(c<12)return Hl(Math.round(r/43200),"month");let f=Math.trunc(c/12),h=c%12;if(h<3)return`about ${Hl(f,"year")}`;if(h<9)return`over ${Hl(f,"year")}`;return`almost ${Hl(f+1,"year")}`}function SA(a,n={}){let s=vA(a),i=new Date(Date.now()),r=s.getTime()>i.getTime(),c=r?xA(i,s):xA(s,i);if(!n.addSuffix)return c;return r?`in ${c}`:`${c} ago`}var ra=X(St(),1);var bv=X(LA(),1),Ao=X(St(),1);var TA="label";function CA(a,n){if(typeof a==="function")a(n);else if(a)a.current=n}function ZB(a,n){let s=a.options;if(s&&n)Object.assign(s,n)}function wA(a,n){a.labels=n}function MA(a,n,s=TA){let i=[];a.datasets=n.map((r)=>{let c=a.datasets.find((f)=>f[s]===r[s]);if(!c||!r.data||i.includes(c))return{...r};return i.push(c),Object.assign(c,r),c})}function QB(a,n=TA){let s={labels:[],datasets:[]};return wA(s,a.labels),MA(s,a.datasets,n),s}function KB(a,n){let{height:s=150,width:i=300,redraw:r=!1,datasetIdKey:c,type:f,data:h,options:p,plugins:g=[],fallbackContent:b,updateMode:x,...S}=a,T=Ao.useRef(null),A=Ao.useRef(null),M=()=>{if(!T.current)return;A.current=new ji(T.current,{type:f,data:QB(h,c),options:p&&{...p},plugins:g}),CA(n,A.current)},w=()=>{if(CA(n,null),A.current)A.current.destroy(),A.current=null};return Ao.useEffect(()=>{if(!r&&A.current&&p)ZB(A.current,p)},[r,p]),Ao.useEffect(()=>{if(!r&&A.current)wA(A.current.config.data,h.labels)},[r,h.labels]),Ao.useEffect(()=>{if(!r&&A.current&&h.datasets)MA(A.current.config.data,h.datasets,c)},[r,h.datasets]),Ao.useEffect(()=>{if(!A.current)return;if(r)w(),setTimeout(M);else A.current.update(x)},[r,p,h.labels,h.datasets,x]),Ao.useEffect(()=>{if(!A.current)return;w(),setTimeout(M)},[f]),Ao.useEffect(()=>(M(),()=>w()),[]),bv.jsx("canvas",{ref:T,role:"img",height:s,width:i,...S,children:b})}var JB=Ao.forwardRef(KB);function IA(a,n){return ji.register(n),Ao.forwardRef((s,i)=>bv.jsx(JB,{...s,ref:i,type:a}))}var Ea=IA("line",Kx),Fl=IA("bar",Qx);var dt=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],$t={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 Xn(a){let{chartTheme:n,showLegend:s,defaultLabel:i,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??i,p=f.parsed.y??0;return`${h}: ${r(p)}`},...c?{footer:c}:{}}}}}function $n(a){let{chartTheme:n,formatY:s}=a,i={grid:{color:n.grid,drawBorder:!1},ticks:{color:n.tick,font:{size:11}}},r={...i,ticks:{...i.ticks,callback:(c)=>s(Number(c))},min:0};return{sharedScaleBase:i,yScale:r}}function vu(a){return{borderColor:a,backgroundColor:`${a}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Qi(a){return{backgroundColor:a,borderColor:a,borderWidth:0,borderRadius:4,maxBarThickness:56}}function ql(a,n){return a.datasets.map((s,i)=>({label:s.label,data:s.data,...n(i)}))}function tm(a,n,s){if(a.length===0)return{labels:[],datasets:[]};let{initBucket:i,accumulate:r,bucketToValue:c}=s,f=new Map;for(let p of a){let g=f.get(p.timestamp)??i();r(g,p),f.set(p.timestamp,g)}let h=[...f.entries()].sort((p,g)=>p[0]-g[0]);return{labels:h.map(([p])=>hn(new Date(p),"MMM d")),datasets:[{label:n,data:h.map(([,p])=>c(p))}]}}function Su(a,n){if(a.length===0)return{labels:[],datasets:[]};let{topN:s=5,rankWeight:i,initBucket:r,accumulate:c,bucketToValue:f}=n,h=new Map;for(let _ of a){let z=`${_.model}::${_.provider}`,V=h.get(z);if(V)V.weight+=i(_);else h.set(z,{model:_.model,provider:_.provider,weight:i(_)})}let g=[...h.entries()].sort((_,z)=>z[1].weight-_[1].weight).slice(0,s),b=new Set(g.map(([_])=>_)),x=new Map;for(let[,{model:_}]of g)x.set(_,(x.get(_)??0)+1);let S=new Map;for(let[_,{model:z,provider:V}]of g)S.set(_,(x.get(z)??0)>1?`${z} (${V})`:z);let T=[...new Set(a.map((_)=>_.timestamp))].sort((_,z)=>_-z),A=g.map(([_])=>S.get(_)??_);if(a.some((_)=>!b.has(`${_.model}::${_.provider}`)))A.push("Other");let w=new Map;for(let _ of T)w.set(_,{});for(let _ of a){let z=`${_.model}::${_.provider}`,V=b.has(z)?S.get(z)??_.model:"Other",W=w.get(_.timestamp);if(!W)continue;let Q=W[V]??r();c(Q,_),W[V]=Q}return{labels:T.map((_)=>hn(new Date(_),"MMM d")),datasets:A.map((_)=>({label:_,data:T.map((z)=>{let V=w.get(z)?.[_];return V?f(V):0})}))}}var Bt=X(ce(),1);function Es(a){return{borderColor:a,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function am({timestamps:a,values:n,color:s}){let i={labels:a.map((c)=>hn(new Date(c),"MMM d")),datasets:[{data:n,...Es(s)}]};return Bt.jsxDEV(Ea,{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 om(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 AA(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 kA(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 nm({title:a,subtitle:n,children:s}){return Bt.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[Bt.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[Bt.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),n?Bt.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),Bt.jsxDEV("div",{className:"overflow-x-auto",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eN(a){if(a==="right")return"text-right";if(a==="center")return"text-center";return""}function sm({columns:a,gridTemplate:n}){return Bt.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)=>Bt.jsxDEV("div",{className:eN(s.align),children:s.label},s.label,!1,void 0,this)),Bt.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function lm({children:a}){return Bt.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:a},void 0,!1,void 0,this)}function im({model:a,provider:n}){return Bt.jsxDEV("div",{children:[Bt.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),Bt.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rm({gridTemplate:a,cells:n,trendCell:s,isExpanded:i,onToggle:r,expandedContent:c}){return Bt.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[Bt.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:Bt.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:a},children:[n,Bt.jsxDEV("div",{className:"h-10",children:s},void 0,!1,void 0,this),Bt.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:i?Bt.jsxDEV(kd,{size:16},void 0,!1,void 0,this):Bt.jsxDEV(Ad,{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?Bt.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 um(){return Bt.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function cm({message:a="No data available"}){return Bt.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 gt(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 Rt(a,n=1){return`${(a*100).toFixed(n)}%`}function Oa(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 dm(a){if(a===null)return"-";return a.toFixed(1)}function so(a){return SA(new Date(a),{addSuffix:!0})}function xv(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 Ta=X(St(),1),Vl=new Map,tN=64;function Wt(a,n,s){let i=JSON.stringify(a),[r,c]=Ta.useState(()=>Vl.get(i)?.data??null),[f,h]=Ta.useState(null),[p,g]=Ta.useState(()=>!Vl.has(i)),[b,x]=Ta.useState(!1),[S,T]=Ta.useState(()=>Vl.get(i)?.updatedAt??null),A=Ta.useRef(n);A.current=n;let M=Ta.useRef(i);M.current=i;let w=s?.enabled??!0,_=s?.pollMs,z=Ta.useRef(null),V=Ta.useRef(!1);V.current=r!==null;let W=Ta.useCallback(async(ne)=>{if(z.current)z.current.abort();let J=new AbortController;if(z.current=J,ne)x(!0);else g(!0),c(null);h(null);try{let K=await A.current(J.signal);if(J.signal.aborted)return;if(Vl.set(M.current,{data:K,updatedAt:Date.now()}),Vl.size>tN){let re=Vl.keys().next().value;if(re!==void 0)Vl.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),x(!1),z.current===J)z.current=null}}},[]);Ta.useEffect(()=>{if(!w){g(!1),x(!1);return}let ne=Vl.get(i);if(ne)c(ne.data),T(ne.updatedAt),g(!1),W(!0);else W(V.current);return()=>{if(z.current)z.current.abort(),z.current=null}},[i,w,W]),Ta.useEffect(()=>{if(!w||!_)return;let ne=setInterval(()=>{if(document.hidden)return;W(!0)},_);return()=>{clearInterval(ne)}},[w,_,W]);let Q=Ta.useCallback(async()=>{await W(!0)},[W]);return{data:r,error:f,loading:p,refreshing:b,refetch:Q,updatedAt:S}}var RA=3600000,fm=24*RA,aN=300000,_A={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:aN,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:RA,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:fm,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:fm,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:fm,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:fm,bucketCount:0,tickFormat:"MMM d"}};function Ki(a){return _A[a]}function Qd(a,n){return hn(new Date(a),_A[n].tickFormat)}var oN=["main","subagent","advisor"];function hm(a){return a.totalInputTokens+a.totalOutputTokens+a.totalCacheReadTokens+a.totalCacheWriteTokens}function DA(a){let n=new Map;for(let f of a)n.set(f.agentType,f);let s=oN.map((f)=>n.get(f)).filter((f)=>f!==void 0),i=s.reduce((f,h)=>f+hm(h),0),r=s.reduce((f,h)=>f+h.totalCost,0),c=s.map((f)=>{let h=hm(f);return{agentType:f.agentType,tokens:h,requests:f.totalRequests,cost:f.totalCost,share:i>0?h/i:0}});return{totalTokens:i,totalCost:r,segments:c}}function EA(a){let n=a.reduce((h,p)=>h+p.cost,0),s=new Set(a.map((h)=>h.timestamp)).size,i=s>0?n/s:0,r=new Map;for(let h of a)r.set(h.model,(r.get(h.model)??0)+h.cost);let c="",f=0;for(let[h,p]of r)if(p>f)c=h,f=p;return{totalCost:n,avgDailyCost:i,topModelName:c,topModelCost:f}}function OA(a,n){if(a.length===0)return new Map;let s=Ki(n),i=s.bucketMs,r=s.bucketCount,c=r>0?(()=>{let p=a.reduce((x,S)=>Math.max(x,S.timestamp),0),b=(p>0?p:Math.floor(Date.now()/i)*i)-(r-1)*i;return Array.from({length:r},(x,S)=>b+S*i)})():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}`,b=h.get(g);if(!b)b={label:`${p.model} (${p.provider})`,data:c.map((S)=>({timestamp:S,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},h.set(g,b);let x=f.get(p.timestamp);if(x===void 0)continue;b.data[x]={timestamp:p.timestamp,avgTtftSeconds:p.avgTtft!==null?p.avgTtft/1000:null,avgTokensPerSecond:p.avgTokensPerSecond,requests:p.requests}}return h}function PA(a,n){let s=a.totalNegation+a.totalRepetition+a.totalBlame,i=new Map;for(let c of n){let f=`${c.model}::${c.provider}`,h=i.get(f),p=c.yelling+c.profanity+c.anguish+c.negation+c.repetition+c.blame;if(h)h.score+=p;else i.set(f,{model:c.model,provider:c.provider,score:p})}let r=null;for(let c of i.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 BA(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),i=n.reduce((r,c)=>Math.max(r,c.totalRequests),0);return n.map((r)=>({...r,costPercentage:s>0?r.totalCost/s*100:0,requestsPercentage:i>0?r.totalRequests/i*100:0}))}function NA(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 pm=X(ce(),1);function Lu({message:a="No data available",icon:n=Bd,className:s=""}){return pm.jsxDEV("div",{className:`stats-empty-state ${s}`,children:[pm.jsxDEV(n,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),pm.jsxDEV("p",{className:"stats-empty-state-message",children:a},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Cu=X(ce(),1);function zA({error:a,onRetry:n,className:s=""}){return Cu.jsxDEV("div",{className:`stats-error-state ${s}`,children:Cu.jsxDEV("div",{className:"stats-error-state-content",children:[Cu.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),a&&Cu.jsxDEV("p",{className:"stats-error-state-message",children:a.message},void 0,!1,void 0,this),n&&Cu.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 UA=X(ce(),1);function lo({variant:a="text",width:n,height:s,className:i=""}){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 UA.jsxDEV("div",{className:`stats-skeleton ${i}`,"data-variant":a,style:r},void 0,!1,void 0,this)}var ko=X(ce(),1);function Nt({loading:a,error:n,data:s,empty:i=!1,emptyText:r="No data available",fallback:c,onRetry:f,children:h}){if(n&&s===null)return ko.jsxDEV(zA,{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(lo,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ko.jsxDEV(lo,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),ko.jsxDEV(lo,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),ko.jsxDEV(lo,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!a&&(i||s===null))return ko.jsxDEV(Lu,{message:r},void 0,!1,void 0,this);return ko.jsxDEV(ko.Fragment,{children:h},void 0,!1,void 0,this)}var io=X(ce(),1);function ro({columns:a,data:n,keyExtractor:s,onRowClick:i,renderMobileCard:r,emptyText:c="No data available"}){let f=(h,p)=>{if(i&&(h.key==="Enter"||h.key===" "))h.preventDefault(),i(p)};if(n.length===0)return io.jsxDEV("div",{className:"stats-table-empty",children:c},void 0,!1,void 0,this);return io.jsxDEV("div",{className:"stats-table-wrapper",children:[r&&io.jsxDEV("div",{className:"stats-table-mobile-only",children:io.jsxDEV("div",{className:"stats-table-mobile-list",children:n.map((h)=>{let p=String(s(h));return io.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:r(h,i?()=>i(h):void 0)},p,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),io.jsxDEV("div",{className:r?"stats-table-desktop-only":"stats-table-container",children:io.jsxDEV("table",{className:"stats-table",children:[io.jsxDEV("thead",{children:io.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 io.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),io.jsxDEV("tbody",{children:n.map((h)=>{let p=String(s(h)),g=typeof i==="function",b=["stats-table-tr",g?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return io.jsxDEV("tr",{className:b,onClick:g?()=>i(h):void 0,onKeyDown:g?(x)=>f(x,h):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:a.map((x)=>{let S=["stats-table-td",x.numeric?"stats-text-right":"stats-text-left",x.className||""].filter(Boolean).join(" ");return io.jsxDEV("td",{className:S,children:x.render?x.render(h):h[x.key]},x.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 Ji=X(St(),1),Zo=X(ce(),1);function vv({data:a,title:n,initialCollapsed:s=!1}){let[i,r]=Ji.useState(s),[c,f]=Ji.useState(!1),h=Ji.useRef(0),p=JSON.stringify(a,null,2);return Ji.useEffect(()=>()=>window.clearTimeout(h.current),[]),Zo.jsxDEV("div",{className:"stats-json-block",children:[Zo.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>r(!i),onKeyDown:(x)=>{if(x.key==="Enter"||x.key===" ")x.preventDefault(),r(!i)},tabIndex:0,role:"button","aria-expanded":!i,children:[Zo.jsxDEV("span",{className:"stats-json-block-title",children:n||"JSON"},void 0,!1,void 0,this),Zo.jsxDEV("div",{className:"stats-json-actions",children:[Zo.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(x)=>{x.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?Zo.jsxDEV(Id,{size:13},void 0,!1,void 0,this):Zo.jsxDEV(_d,{size:13},void 0,!1,void 0,this),c?"Copied":"Copy"]},void 0,!0,void 0,this),Zo.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&&Zo.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:Zo.jsxDEV("pre",{className:"stats-json-block-content",children:Zo.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 HA({stats:a}){let n=hm(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:"Total Cost"},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"stats-metric-value",children:gt(a.totalCost,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:Rt(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:Rt(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:Rt(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:dm(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:Oa(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:Oa(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 jl=X(ce(),1);function it({title:a,subtitle:n,actions:s,children:i,className:r="",...c}){return jl.jsxDEV("div",{className:`stats-panel ${r}`,...c,children:[(a||n||s)&&jl.jsxDEV("div",{className:"stats-panel-header",children:[jl.jsxDEV("div",{className:"stats-panel-header-titles",children:[a&&jl.jsxDEV("h3",{className:"stats-panel-title",children:a},void 0,!1,void 0,this),n&&jl.jsxDEV("p",{className:"stats-panel-subtitle",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&jl.jsxDEV("div",{className:"stats-panel-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),jl.jsxDEV("div",{className:"stats-panel-body",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wn=X(St(),1);var FA=X(ce(),1);function wa({variant:a,children:n,className:s=""}){return FA.jsxDEV("span",{className:`stats-status-pill ${s}`,"data-variant":a,children:n},void 0,!1,void 0,this)}var ye=X(ce(),1);function qA({id:a,onClose:n}){let[s,i]=Wn.useState(null),[r,c]=Wn.useState(!1),[f,h]=Wn.useState(null),p=Wn.useRef(null),g=Wn.useRef(null);if(Wn.useEffect(()=>{if(a===null){i(null);return}p.current=document.activeElement,c(!0),h(null),i(null);let x=new AbortController;return QI(a,x.signal).then((S)=>{if(x.signal.aborted)return;i(S),setTimeout(()=>g.current?.focus(),50)}).catch((S)=>{if(x.signal.aborted)return;h(S instanceof Error?S:Error(String(S)))}).finally(()=>{if(!x.signal.aborted)c(!1)}),()=>x.abort()},[a]),Wn.useEffect(()=>{if(a===null)return;let x=(S)=>{if(S.key==="Escape")n()};return window.addEventListener("keydown",x),()=>{if(window.removeEventListener("keydown",x),p.current)p.current.focus()}},[a,n]),a===null)return null;return ye.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(x)=>{if(x.target===x.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(Xi,{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(lo,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(lo,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(lo,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),ye.jsxDEV(lo,{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(wa,{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(Yi,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),ye.jsxDEV("div",{className:"stats-drawer-metric-value",children:gt(s.usage.cost.total,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(Vd,{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(Pd,{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(Rd,{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:Oa(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(Xd,{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:Oa(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(Od,{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(vv,{data:s.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),ye.jsxDEV(vv,{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 Sv=X(ce(),1);function er({options:a,value:n,onChange:s,className:i=""}){return Sv.jsxDEV("div",{className:`stats-segmented-control ${i}`,role:"radiogroup",children:a.map((r)=>{let c=r.value===n;return Sv.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 $A({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["behavior",n,s],(f)=>JI(n,f),{pollMs:30000,enabled:a});return be.jsxDEV("div",{className:"stats-route-container space-y-6",children:be.jsxDEV(Nt,{loading:c,error:r,data:i,children:i&&be.jsxDEV(be.Fragment,{children:[be.jsxDEV(nN,{overall:i.overall,behaviorSeries:i.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(sN,{behaviorSeries:i.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(lN,{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 mm(a,n){if(n<=0)return;return`${(a/n).toFixed(2)} / msg`}function nN({overall:a,behaviorSeries:n}){let s=ra.useMemo(()=>PA(a,n),[a,n]),i=a.totalMessages,r=[{label:"User Messages",value:_e(a.totalMessages),sub:i>0?"in range":void 0},{label:"Yelling (CAPS)",value:_e(a.totalYelling),sub:mm(a.totalYelling,i)},{label:"Profanity Hits",value:_e(a.totalProfanity),sub:mm(a.totalProfanity,i)},{label:"Anguish Signals",value:_e(a.totalAnguish),sub:mm(a.totalAnguish,i)},{label:"Friction Signals",value:_e(s.totalFrustration),sub:mm(s.totalFrustration,i)},{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(it,{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 Lv=[{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 VA(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 jA(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 GA(a,n){if(n<=0)return 0;return a/n*100}function sN({behaviorSeries:a}){let[n,s]=ra.useState(!1),[i,r]=ra.useState("total"),c=ga(),f=$t[c],h=ra.useMemo(()=>{if(n)return Su(a,{rankWeight:(z)=>z.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(z,V)=>{z.hits+=jA(V,i),z.messages+=V.messages},bucketToValue:(z)=>GA(z.hits,z.messages)});let _=Lv.find((z)=>z.value===i)?.title??"Hits";return tm(a,_,{initBucket:()=>({hits:0,messages:0}),accumulate:(z,V)=>{z.hits+=jA(V,i),z.messages+=V.messages},bucketToValue:(z)=>GA(z.hits,z.messages)})},[a,n,i]),p=ra.useMemo(()=>Xn({chartTheme:f,showLegend:n,defaultLabel:"Hits",formatValue:VA}),[f,n]),{sharedScaleBase:g,yScale:b}=ra.useMemo(()=>$n({chartTheme:f,formatY:VA}),[f]),x=ra.useMemo(()=>Lv.find((_)=>_.value===i)?.title??"",[i]),S=ra.useMemo(()=>{if(!n)return null;return{labels:h.labels,datasets:ql(h,(_)=>vu(dt[_%dt.length]))}},[h,n]),T=ra.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:g,y:b}}),[p,g,b]),A=ra.useMemo(()=>{if(n)return null;return{labels:h.labels,datasets:ql(h,(_)=>Qi(dt[_%dt.length]))}},[h,n]),M=ra.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:{...g,stacked:!0},y:{...b,stacked:!0}},layout:{padding:{top:8}}}),[p,g,b]),w=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return be.jsxDEV(it,{title:"User Friction Signals",subtitle:`${x} as % of user messages per day`,actions:be.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[be.jsxDEV(er,{options:Lv.map((_)=>({value:_.value,label:_.label,title:_.title})),value:i,onChange:r},void 0,!1,void 0,this),be.jsxDEV(er,{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(Ea,{data:S,options:T},void 0,!1,void 0,this):A?be.jsxDEV(Fl,{data:A,options:M},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var YA="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function XA(a){if(a.totalMessages===0)return 0;return(a.totalYelling+a.totalProfanity+a.totalAnguish+a.totalNegation+a.totalRepetition+a.totalBlame)/a.totalMessages}function Tu(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 lN({models:a,behaviorSeries:n}){let[s,i]=ra.useState(null),r=ga(),c=$t[r],f=ra.useMemo(()=>rN(n),[n]),h=ra.useMemo(()=>[...a].sort((p,g)=>{if(g.totalMessages!==p.totalMessages)return g.totalMessages-p.totalMessages;return XA(g)-XA(p)}),[a]);return be.jsxDEV(nm,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[be.jsxDEV(sm,{gridTemplate:YA,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(lm,{children:[h.map((p,g)=>{let b=`${p.model}::${p.provider}`,x=f.get(b)?.data??[],S=dt[g%dt.length],T=s===b,A=p.totalNegation+p.totalRepetition+p.totalBlame,M=p.totalYelling+p.totalProfanity+p.totalAnguish+A;return be.jsxDEV(rm,{gridTemplate:YA,isExpanded:T,onToggle:()=>i(T?null:b),cells:[be.jsxDEV(im,{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:Tu(p.totalYelling,p.totalMessages)},"caps",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Tu(p.totalProfanity,p.totalMessages)},"profanity",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Tu(p.totalAnguish,p.totalMessages)},"anguish",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Tu(A,p.totalMessages)},"frustration",!1,void 0,this),be.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Tu(M,p.totalMessages)},"hits",!1,void 0,this)],trendCell:x.length===0?be.jsxDEV(um,{},void 0,!1,void 0,this):be.jsxDEV(am,{timestamps:x.map((w)=>w.timestamp),values:x.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(tr,{label:"Yelling (CAPS)",total:p.totalYelling,messages:p.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),be.jsxDEV(tr,{label:"Profanity",total:p.totalProfanity,messages:p.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),be.jsxDEV(tr,{label:"Anguish (!!!, nooo, dude, ..)",total:p.totalAnguish,messages:p.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),be.jsxDEV(tr,{label:"Negation (no/nope/wrong)",total:p.totalNegation,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(tr,{label:"Repetition (i meant, still doesnt)",total:p.totalRepetition,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(tr,{label:"Blame (you didnt, stop X-ing)",total:p.totalBlame,messages:p.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),be.jsxDEV(tr,{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:x.length===0?be.jsxDEV(cm,{},void 0,!1,void 0,this):be.jsxDEV(iN,{data:x,chartTheme:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},b,!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 tr({label:a,total:n,messages:s,valueClass:i,mode:r="rate"}){let c=r==="rate"?"% of msgs":"Per msg",f=ra.useMemo(()=>{if(s===0)return"-";return r==="rate"?Tu(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 ${i}`,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 gm={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function iN({data:a,chartTheme:n}){let s=ra.useMemo(()=>({labels:a.map((r)=>hn(new Date(r.timestamp),"MMM d")),datasets:[{label:"CAPS",data:a.map((r)=>r.yelling),...Es(gm.yelling)},{label:"Profanity",data:a.map((r)=>r.profanity),...Es(gm.profanity)},{label:"Anguish",data:a.map((r)=>r.anguish),...Es(gm.anguish)},{label:"Frustration",data:a.map((r)=>r.frustration),...Es(gm.frustration)}]}),[a]),i=ra.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:om(n),scales:AA(n)}),[n]);return be.jsxDEV(Ea,{data:s,options:i},void 0,!1,void 0,this)}function rN(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 i=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});i.set(r,{data:f})}return i}var Qo=X(St(),1);var ua=X(ce(),1);function WA({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["costs",n,s],(f)=>WI(n,f),{pollMs:30000,enabled:a});return ua.jsxDEV("div",{className:"stats-route-container space-y-6",children:ua.jsxDEV(Nt,{loading:c,error:r,data:i,children:i&&ua.jsxDEV(ua.Fragment,{children:[ua.jsxDEV(uN,{costSeries:i.costSeries},void 0,!1,void 0,this),ua.jsxDEV(fN,{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 uN({costSeries:a}){let n=Qo.useMemo(()=>EA(a),[a]),s=[{label:"Total Cost",value:gt(n.totalCost)},{label:"Average / Day",value:gt(n.avgDailyCost)},{label:"Top Model",value:n.topModelName||"—",sub:n.topModelName?gt(n.topModelCost):void 0}];return ua.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:s.map((i)=>ua.jsxDEV(it,{className:"stats-cost-overview-card py-4 px-5",children:[ua.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:i.label},void 0,!1,void 0,this),ua.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&&ua.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",i.sub]},void 0,!0,void 0,this)]},i.label,!0,void 0,this))},void 0,!1,void 0,this)}var cN={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function dN(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 fN({costSeries:a}){let[n,s]=Qo.useState(!1),i=ga(),r=$t[i],c=Qo.useMemo(()=>{if(n)return Su(a,{rankWeight:(M)=>M.cost,initBucket:()=>({total:0}),accumulate:(M,w)=>{M.total+=w.cost},bucketToValue:(M)=>M.total});return tm(a,"Cost",{initBucket:()=>({total:0}),accumulate:(M,w)=>{M.total+=w.cost},bucketToValue:(M)=>M.total})},[a,n]),f=Qo.useMemo(()=>Xn({chartTheme:r,showLegend:n,defaultLabel:"Cost",formatValue:(M)=>`$${M.toFixed(2)}`,footer:(M)=>{if(!n||M.length<2)return;return`Total: $${M.reduce((_,z)=>_+(z.parsed.y??0),0).toFixed(2)}`}}),[r,n]),{sharedScaleBase:h,yScale:p}=Qo.useMemo(()=>$n({chartTheme:r,formatY:(M)=>`$${Math.round(M)}`}),[r]),g=Qo.useMemo(()=>dN(cN[i]),[i]),b=Qo.useMemo(()=>{if(!n)return null;return{labels:c.labels,datasets:ql(c,(M)=>vu(dt[M%dt.length]))}},[c,n]),x=Qo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:f,scales:{x:h,y:p}}),[f,h,p]),S=Qo.useMemo(()=>{if(n)return null;return{labels:c.labels,datasets:ql(c,(M)=>Qi(dt[M%dt.length]))}},[c,n]),T=Qo.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...f,costBarLabels:{}},scales:{x:{...h,stacked:!0},y:{...p,stacked:!0}},layout:{padding:{top:24}}}),[f,h,p]);return ua.jsxDEV(it,{title:"Daily Cost",subtitle:"API spending over time",actions:ua.jsxDEV(er,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:n,onChange:s},void 0,!1,void 0,this),children:ua.jsxDEV("div",{className:"h-[300px]",children:c.labels.length===0?ua.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):n&&b?ua.jsxDEV(Ea,{data:b,options:x},void 0,!1,void 0,this):S?ua.jsxDEV(Fl,{data:S,options:T,plugins:[g]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ZA=X(St(),1);var _t=X(ce(),1);function QA({active:a,range:n,refreshTrigger:s,onRequestClick:i}){let{data:r,error:c,loading:f}=Wt(["recent-errors-dense",n,s],(g)=>ZI(n,50,g),{pollMs:30000,enabled:a}),h=ZA.useMemo(()=>[{key:"model",header:"Model",render:(g)=>_t.jsxDEV("div",{children:[_t.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:g.model},void 0,!1,void 0,this),_t.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)=>_t.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:"Cost",numeric:!0,render:(g)=>gt(g.usage.cost.total,4)}],[]);return _t.jsxDEV("div",{className:"stats-route-container",children:_t.jsxDEV(it,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:_t.jsxDEV(Nt,{loading:f,error:c,data:r,emptyText:"No recent failures in the local stats database",children:_t.jsxDEV(ro,{columns:h,data:r||[],keyExtractor:(g)=>g.id||`${g.sessionFile}-${g.entryId}`,onRowClick:(g)=>g.id&&i(g.id),renderMobileCard:(g,b)=>_t.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:b,children:[_t.jsxDEV("div",{className:"stats-mobile-card-header",children:[_t.jsxDEV("div",{children:[_t.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:g.model},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:g.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV(wa,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV("div",{className:"stats-mobile-card-grid",children:[_t.jsxDEV("div",{children:[_t.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"stats-mobile-card-value",children:so(g.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV("div",{children:[_t.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"stats-mobile-card-value",children:gt(g.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV("div",{children:[_t.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),_t.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&&_t.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 ym=X(St(),1);var Me=X(ce(),1);function KA({active:a,range:n,refreshTrigger:s}){let[i,r]=ym.useState(null),{data:c,error:f,loading:h}=Wt(["gain",n,s,i],(p)=>tA(n,i,p),{pollMs:30000,enabled:a});return Me.jsxDEV("div",{className:"stats-route-container space-y-6",children:Me.jsxDEV(Nt,{loading:h,error:f,data:c,children:c&&Me.jsxDEV(Me.Fragment,{children:[Me.jsxDEV(hN,{projects:c.projects,selected:i,onChange:r},void 0,!1,void 0,this),Me.jsxDEV(pN,{overall:c.overall},void 0,!1,void 0,this),Me.jsxDEV(gN,{bySource:c.bySource},void 0,!1,void 0,this),Me.jsxDEV(bN,{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 hN({projects:a,selected:n,onChange:s}){if(a.length===0)return null;return Me.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[Me.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),Me.jsxDEV("select",{className:"stats-select",value:n??"",onChange:(i)=>s(i.target.value||null),style:{maxWidth:"480px",flex:1},children:[Me.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),a.map((i)=>Me.jsxDEV("option",{value:i,children:i},i,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pN({overall:a}){return Me.jsxDEV(it,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:Me.jsxDEV("div",{className:"stats-metric-primary-grid",children:[Me.jsxDEV("div",{className:"stats-metric-card primary",children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"stats-metric-value",children:rt(a.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"stats-metric-card primary",children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"stats-metric-value",children:xv(a.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"stats-metric-card primary",children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"stats-metric-value",children:a.reductionPercent!==null?Rt(a.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{className:"stats-metric-card primary",children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),Me.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 mN({title:a,totals:n}){return Me.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[Me.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:a},void 0,!1,void 0,this),Me.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),Me.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),Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:xv(n.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),Me.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),Me.jsxDEV("div",{children:[Me.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:n.reductionPercent!==null?Rt(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 gN({bySource:a}){return Me.jsxDEV(it,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:Me.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:Me.jsxDEV(mN,{title:"Snapcompact",totals:a.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var yN={snapcompact:"rgb(34, 197, 94)"};function bN({timeSeries:a}){let n=ga(),s=$t[n],{data:i,options:r}=ym.useMemo(()=>{let c=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),h={labels:a.map((x)=>c.format(new Date(`${x.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:a.map((x)=>x.snapcompact),...vu(yN.snapcompact)}]},{sharedScaleBase:p,yScale:g}=$n({chartTheme:s,formatY:(x)=>rt(x)}),b={responsive:!0,maintainAspectRatio:!1,plugins:Xn({chartTheme:s,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:rt}),scales:{x:{...p,stacked:!0},y:{...g,stacked:!0}}};return{data:h,options:b}},[a,s]);return Me.jsxDEV(it,{title:"Savings Over Time",subtitle:"Daily token savings",children:Me.jsxDEV("div",{style:{height:240},children:a.length===0?Me.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):Me.jsxDEV(Ea,{data:i,options:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Zn=X(St(),1);var Ie=X(ce(),1);function ek({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["models",n,s],(f)=>$I(n,f),{pollMs:30000,enabled:a});return Ie.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ie.jsxDEV(Nt,{loading:c,error:r,data:i,children:i&&Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(xN,{modelSeries:i.modelSeries,timeRange:n},void 0,!1,void 0,this),Ie.jsxDEV(SN,{models:i.byModel,performanceSeries:i.modelPerformanceSeries,timeRange:n},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 xN({modelSeries:a,timeRange:n}){let s=ga(),i=$t[s],r=Ki(n),c=Zn.useMemo(()=>vN(a),[a]),f=Zn.useMemo(()=>({labels:c.data.map((p)=>Qd(p.timestamp,n)),datasets:c.series.map((p,g)=>({label:p,data:c.data.map((b)=>b[p]??0),borderColor:dt[g%dt.length],backgroundColor:`${dt[g%dt.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[c,n]),h=Zn.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:(p)=>{let g=p.dataset.label??"",b=p.parsed.y;return`${g}: ${(b??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:i.grid,drawBorder:!1},ticks:{color:i.tick,font:{size:11}}},y:{grid:{color:i.grid,drawBorder:!1},ticks:{color:i.tick,font:{size:11},callback:(p)=>`${p}%`},min:0,max:100}}}),[i]);return Ie.jsxDEV(it,{title:"Model Preference",subtitle:`Share of requests over ${r.windowLabel}`,children:Ie.jsxDEV("div",{className:"h-[280px]",children:c.data.length===0?Ie.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):Ie.jsxDEV(Ea,{data:f,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vN(a,n=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let x of a){let S=`${x.model}::${x.provider}`,T=s.get(S);if(T)T.total+=x.requests;else s.set(S,{model:x.model,provider:x.provider,total:x.requests})}let r=[...s.entries()].map(([x,S])=>({key:x,...S})).sort((x,S)=>S.total-x.total).slice(0,n),c=new Set(r.map((x)=>x.key)),f=new Map;for(let x of r)f.set(x.model,(f.get(x.model)??0)+1);let h=new Map;for(let x of r){let S=(f.get(x.model)??0)>1;h.set(x.key,S?`${x.model} (${x.provider})`:x.model)}let p=new Map;for(let x of a){let S=`${x.model}::${x.provider}`,T=p.get(x.timestamp)??{timestamp:x.timestamp,total:0};T.total+=x.requests;let A=c.has(S)?h.get(S)??x.model:"Other";T[A]=(T[A]??0)+x.requests,p.set(x.timestamp,T)}let g=r.map((x)=>h.get(x.key)??x.model);if([...p.values()].some((x)=>(x.Other??0)>0))g.push("Other");return{data:[...p.values()].sort((x,S)=>(x.timestamp??0)-(S.timestamp??0)).map((x)=>{let S=x.total??0;for(let T of g)x[T]=S>0?(x[T]??0)/S*100:0;return x}),series:g}}var JA="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function SN({models:a,performanceSeries:n,timeRange:s}){let[i,r]=Zn.useState(null),c=Ki(s),f=Zn.useMemo(()=>OA(n,s),[n,s]),h=ga(),p=$t[h],g=Zn.useMemo(()=>[...a].sort((b,x)=>x.totalInputTokens+x.totalOutputTokens-(b.totalInputTokens+b.totalOutputTokens)),[a]);return Ie.jsxDEV(nm,{title:"Model Statistics",children:[Ie.jsxDEV(sm,{gridTemplate:JA,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:c.trendLabel,align:"center"}]},void 0,!1,void 0,this),Ie.jsxDEV(lm,{children:g.map((b,x)=>{let S=`${b.model}::${b.provider}`,A=f.get(S)?.data??[],M=dt[x%dt.length],w=i===S,_=b.errorRate*100;return Ie.jsxDEV(rm,{gridTemplate:JA,isExpanded:w,onToggle:()=>r(w?null:S),cells:[Ie.jsxDEV(im,{model:b.model,provider:b.provider},"name",!1,void 0,this),Ie.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.totalRequests.toLocaleString()},"requests",!1,void 0,this),Ie.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",b.totalCost.toFixed(2)]},"cost",!0,void 0,this),Ie.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(b.totalInputTokens+b.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),Ie.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),Ie.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTtft?`${(b.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?Ie.jsxDEV(um,{},void 0,!1,void 0,this):Ie.jsxDEV(am,{timestamps:A.map((z)=>z.timestamp),values:A.map((z)=>z.avgTokensPerSecond??0),color:M},void 0,!1,void 0,this),expandedContent:Ie.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[Ie.jsxDEV("div",{className:"space-y-4 text-sm",children:[Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Efficiency"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ie.jsxDEV("div",{className:"flex items-center justify-between",children:[Ie.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:_>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[_.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"flex items-center justify-between",children:[Ie.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"font-mono",children:[(b.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"flex items-center justify-between",children:[Ie.jsxDEV("span",{children:"Cache savings"},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:b.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(b.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),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Ie.jsxDEV("div",{className:"flex items-center justify-between",children:[Ie.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"font-mono",children:b.avgDuration?`${(b.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"flex items-center justify-between",children:[Ie.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"font-mono",children:b.avgTtft?`${(b.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),Ie.jsxDEV("div",{className:"h-[200px]",children:A.length===0?Ie.jsxDEV(cm,{},void 0,!1,void 0,this):Ie.jsxDEV(LN,{data:A,color:M,chartTheme:p,timeRange:s},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},S,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LN({data:a,color:n,chartTheme:s,timeRange:i}){let r=Zn.useMemo(()=>({labels:a.map((f)=>Qd(f.timestamp,i)),datasets:[{label:"TTFT",data:a.map((f)=>f.avgTtftSeconds??null),...Es("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:a.map((f)=>f.avgTokensPerSecond??null),...Es(n),yAxisID:"y1"}]}),[a,n,i]),c=Zn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:om(s),scales:kA(s)}),[s]);return Ie.jsxDEV(Ea,{data:r,options:c},void 0,!1,void 0,this)}var Kd=X(St(),1);var tk=X(St(),1);var uo=X(ce(),1),bm={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function ak({stats:a}){let n=tk.useMemo(()=>DA(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:bm[s.agentType].color},title:`${bm[s.agentType].label}: ${Rt(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:bm[s.agentType].color}},void 0,!1,void 0,this),uo.jsxDEV("span",{className:"stats-text-primary truncate",children:bm[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:Rt(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 ok({active:a,range:n,refreshTrigger:s,onRequestClick:i}){let{data:r,error:c,loading:f}=Wt(["overview",n,s],(_)=>XI(n,_),{pollMs:30000,enabled:a}),{data:h,error:p,loading:g}=Wt(["recent-requests",s],(_)=>Jp(50,_),{pollMs:30000,enabled:a}),b=ga(),x=$t[b],S=Kd.useMemo(()=>{if(!r?.timeSeries)return{labels:[],datasets:[]};let _=r.timeSeries.map((V)=>hn(new Date(V.timestamp),n==="1h"||n==="24h"?"HH:mm":"MMM d")),z=r.timeSeries.length<=2?3:0;return{labels:_,datasets:[{label:"Requests",data:r.timeSeries.map((V)=>V.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:z,pointHoverRadius:4,fill:!0},{label:"Errors",data:r.timeSeries.map((V)=>V.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:z,pointHoverRadius:4,fill:!0}]}},[r?.timeSeries,n]),T=Kd.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:x.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:x.tooltipBackground,titleColor:x.tooltipTitle,bodyColor:x.tooltipBody,borderColor:x.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:x.grid,drawBorder:!1},ticks:{color:x.tick,font:{size:10}}},y:{grid:{color:x.grid,drawBorder:!1},ticks:{color:x.tick,font:{size:10}},min:0}}}),[x]),A=Kd.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:"Cost",numeric:!0,render:(_)=>gt(_.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(_)=>Oa(_.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(_)=>de.jsxDEV(wa,{variant:_.errorMessage?"danger":"success",children:_.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),M=(_,z)=>de.jsxDEV("div",{className:"stats-mobile-card",onClick:z,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(wa,{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:"Cost"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"stats-mobile-card-value",children:gt(_.usage.cost.total,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:Oa(_.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=Kd.useMemo(()=>{if(!h)return[];return h.slice(0,10)},[h]);return de.jsxDEV("div",{className:"stats-route-container space-y-6",children:[de.jsxDEV(Nt,{loading:f,error:c,data:r,children:r&&de.jsxDEV(HA,{stats:r.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV(it,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:de.jsxDEV(Nt,{loading:f,error:c,data:r,children:r&&de.jsxDEV(ak,{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(it,{title:"System Throughput",subtitle:"Request volume and errors over time",children:de.jsxDEV(Nt,{loading:f,error:c,data:r,children:de.jsxDEV("div",{className:"h-[280px]",children:r?.timeSeries&&r.timeSeries.length>0?de.jsxDEV(Ea,{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(it,{title:"Operational Feed",subtitle:"Real-time request log",children:de.jsxDEV(Nt,{loading:g,error:p,data:h,fallback:de.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((_,z)=>de.jsxDEV("div",{className:"flex items-center gap-3",children:[de.jsxDEV(lo,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),de.jsxDEV("div",{className:"flex-1",children:[de.jsxDEV(lo,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),de.jsxDEV(lo,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},z,!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 z=!!_.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&&i(_.id),children:[de.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${z?"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?Oa(_.duration):""," ",_.usage?.cost?.total?`· ${gt(_.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z&&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(it,{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(Nt,{loading:g,error:p,data:h,children:de.jsxDEV(ro,{columns:A,data:w,keyExtractor:(_)=>_.id||`${_.sessionFile}-${_.entryId}`,onRowClick:(_)=>_.id&&i(_.id),renderMobileCard:M,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 Cv=X(St(),1);var Je=X(ce(),1);function nk({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["projects",n,s],(g)=>eA(n,g),{pollMs:30000,enabled:a}),f=Cv.useMemo(()=>{if(!i)return[];return BA(i)},[i]),h=Cv.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:"Cost",numeric:!0,render:(g)=>Je.jsxDEV("div",{className:"stats-text-right",children:[Je.jsxDEV("div",{className:"font-mono",children:gt(g.totalCost)},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:Rt(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:Rt(g.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(g)=>Je.jsxDEV(wa,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:Rt(g.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(g)=>Oa(g.avgDuration)}],[]);return Je.jsxDEV("div",{className:"stats-route-container",children:Je.jsxDEV(it,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Je.jsxDEV(Nt,{loading:c,error:r,data:i,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(wa,{variant:g.errorRate>0.1?"danger":g.errorRate>0?"warning":"success",children:[Rt(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:"Cost"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:gt(g.totalCost)},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:Rt(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:Rt(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:Oa(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 Pa=X(St(),1);var Ve=X(ce(),1);function sk({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["providers",n,s],(f)=>oA(n,f),{pollMs:30000,enabled:a});return Ve.jsxDEV("div",{className:"stats-route-container space-y-6",children:Ve.jsxDEV(Nt,{loading:c,error:r,data:i,children:i&&Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV(CN,{providers:i.providers},void 0,!1,void 0,this),Ve.jsxDEV(TN,{stats:i},void 0,!1,void 0,this),Ve.jsxDEV(wN,{hourly:i.hourly,providers:i.providers},void 0,!1,void 0,this),Ve.jsxDEV(MN,{insights:i.windowInsights},void 0,!1,void 0,this),Ve.jsxDEV(IN,{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 CN({providers:a}){let n=Pa.useMemo(()=>a.reduce((i,r)=>i+r.totalTokens,0),[a]);return Ve.jsxDEV(it,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:Ve.jsxDEV(ro,{columns:[{key:"provider",header:"Provider",render:(i)=>Ve.jsxDEV("span",{className:"font-medium",children:i.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(i)=>_e(i.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(i)=>Rt(i.totalRequests>0?i.failedRequests/i.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(i)=>_e(i.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(i)=>Ve.jsxDEV("span",{title:`Input ${rt(i.totalInputTokens)} · Output ${rt(i.totalOutputTokens)} · Cache read ${rt(i.totalCacheReadTokens)} · Cache write ${rt(i.totalCacheWriteTokens)}`,children:rt(i.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(i)=>Rt(n>0?i.totalTokens/n:0)},{key:"cost",header:"Cost",numeric:!0,render:(i)=>gt(i.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(i)=>dm(i.avgTokensPerSecond)}],data:a,keyExtractor:(i)=>i.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TN({stats:a}){let[n,s]=Pa.useState("tokens"),i=ga(),r=$t[i],c=Pa.useMemo(()=>{let g=a.series.map((b)=>({...b,model:b.provider}));return Su(g,{topN:6,rankWeight:(b)=>n==="tokens"?b.totalTokens:b.cost,initBucket:()=>({total:0}),accumulate:(b,x)=>{b.total+=n==="tokens"?x.totalTokens:x.cost},bucketToValue:(b)=>b.total})},[a.series,n]),f=n==="tokens"?rt:(g)=>gt(g),h=Pa.useMemo(()=>{let{sharedScaleBase:g,yScale:b}=$n({chartTheme:r,formatY:f});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:Xn({chartTheme:r,showLegend:!0,defaultLabel:n==="tokens"?"Tokens":"Cost",formatValue:f,footer:(x)=>{if(x.length<2)return;let S=x.reduce((T,A)=>T+(A.parsed.y??0),0);return`Total: ${f(S)}`}}),scales:{x:{...g,stacked:!0},y:{...b,stacked:!0}}}},[r,n,f]),p=Pa.useMemo(()=>({labels:c.labels,datasets:ql(c,(g)=>Qi(dt[g%dt.length]))}),[c]);return Ve.jsxDEV(it,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:Ve.jsxDEV(er,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:n,onChange:s},void 0,!1,void 0,this),children:Ve.jsxDEV("div",{className:"h-[300px]",children:c.labels.length===0?Ve.jsxDEV(Lu,{message:"No provider activity in this range"},void 0,!1,void 0,this):Ve.jsxDEV(Fl,{data:p,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tv="__all__";function wN({hourly:a,providers:n}){let[s,i]=Pa.useState(Tv),r=ga(),c=$t[r],{tokensByHour:f,peakHour:h}=Pa.useMemo(()=>{let x=Array(24).fill(0);for(let T of a){if(s!==Tv&&T.provider!==s)continue;x[T.hour]+=T.totalTokens}let S=0;for(let T=1;T<24;T++)if(x[T]>x[S])S=T;return{tokensByHour:x,peakHour:S}},[a,s]),p=f.some((x)=>x>0),g=Pa.useMemo(()=>({labels:Array.from({length:24},(x,S)=>`${String(S).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:f,...Qi(dt[2]),backgroundColor:f.map((x,S)=>S===h?dt[0]:dt[2])}]}),[f,h]),b=Pa.useMemo(()=>{let{sharedScaleBase:x,yScale:S}=$n({chartTheme:c,formatY:rt});return{responsive:!0,maintainAspectRatio:!1,plugins:Xn({chartTheme:c,showLegend:!1,defaultLabel:"Tokens",formatValue:rt}),scales:{x,y:S}}},[c]);return Ve.jsxDEV(it,{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:(x)=>i(x.target.value),"aria-label":"Provider",children:[Ve.jsxDEV("option",{value:Tv,children:"All providers"},void 0,!1,void 0,this),n.map((x)=>Ve.jsxDEV("option",{value:x.provider,children:x.provider},x.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:Ve.jsxDEV("div",{className:"h-[260px]",children:p?Ve.jsxDEV(Fl,{data:g,options:b},void 0,!1,void 0,this):Ve.jsxDEV(Lu,{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 MN({insights:a}){return Ve.jsxDEV(it,{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:Rt(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 wv={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function IN({usageSeries:a}){let n=Pa.useMemo(()=>[...new Set(a.map((b)=>b.provider))],[a]),[s,i]=Pa.useState(null),r=s!==null&&n.includes(s)?s:n[0]??null,c=ga(),f=$t[c],h=Pa.useMemo(()=>a.filter((b)=>b.provider===r).map((b)=>{let x=[...b.points].reverse().find((S)=>S.usedFraction!==null);return x?{label:`${b.windowLabel} · ${b.accountLabel}`,fraction:x.usedFraction??0,exhausted:x.exhausted,recordedAt:x.timestamp}:null}).filter((b)=>b!==null).sort((b,x)=>x.fraction-b.fraction),[a,r]),p=Pa.useMemo(()=>({labels:h.map((b)=>b.label),datasets:[{label:"Used",data:h.map((b)=>b.fraction*100),backgroundColor:h.map((b)=>b.exhausted?wv.exhausted:b.fraction>=0.8?wv.warning:wv.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[h]),g=Pa.useMemo(()=>{let{sharedScaleBase:b,yScale:x}=$n({chartTheme:f,formatY:(A)=>`${Math.round(A)}%`}),S=Math.max(100,...h.map((A)=>A.fraction*100)),T=Xn({chartTheme:f,showLegend:!1,defaultLabel:"Used",formatValue:(A)=>`${A.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...T,tooltip:{...T.tooltip,callbacks:{label:(A)=>{let M=h[A.dataIndex],w=`${(A.parsed.x??0).toFixed(1)}% used`;return M?`${w} · recorded ${so(M.recordedAt)}`:w}}}},scales:{x:{...x,max:S},y:{...b,grid:{display:!1}}}}},[f,h]);return Ve.jsxDEV(it,{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:(b)=>i(b.target.value),"aria-label":"Provider",children:n.map((b)=>Ve.jsxDEV("option",{value:b,children:b},b,!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(Lu,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):Ve.jsxDEV(Fl,{data:p,options:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var lk=X(St(),1);var yt=X(ce(),1);function ik({active:a,refreshTrigger:n,onRequestClick:s}){let{data:i,error:r,loading:c}=Wt(["recent-requests-dense",n],(p)=>Jp(50,p),{pollMs:30000,enabled:a}),f=lk.useMemo(()=>[{key:"model",header:"Model",render:(p)=>yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:p.model},void 0,!1,void 0,this),yt.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:"Cost",numeric:!0,render:(p)=>gt(p.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(p)=>Oa(p.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(p)=>yt.jsxDEV(wa,{variant:p.errorMessage?"danger":"success",children:p.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return yt.jsxDEV("div",{className:"stats-route-container",children:yt.jsxDEV(it,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:yt.jsxDEV(Nt,{loading:c,error:r,data:i,children:yt.jsxDEV(ro,{columns:f,data:i||[],keyExtractor:(p)=>p.id||`${p.sessionFile}-${p.entryId}`,onRowClick:(p)=>p.id&&s(p.id),renderMobileCard:(p,g)=>yt.jsxDEV("div",{className:"stats-mobile-card",onClick:g,children:[yt.jsxDEV("div",{className:"stats-mobile-card-header",children:[yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:p.model},void 0,!1,void 0,this),yt.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:p.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV(wa,{variant:p.errorMessage?"danger":"success",children:p.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV("div",{className:"stats-mobile-card-grid",children:[yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),yt.jsxDEV("div",{className:"stats-mobile-card-value",children:so(p.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),yt.jsxDEV("div",{className:"stats-mobile-card-value",children:gt(p.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),yt.jsxDEV("div",{className:"stats-mobile-card-value",children:_e(p.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV("div",{children:[yt.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),yt.jsxDEV("div",{className:"stats-mobile-card-value",children:Oa(p.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.errorMessage&&yt.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 Ko=X(St(),1);var ee=X(ce(),1);function rk({active:a,range:n,refreshTrigger:s}){let{data:i,error:r,loading:c}=Wt(["tools",n,s],(f)=>aA(n,f),{pollMs:30000,enabled:a});return ee.jsxDEV("div",{className:"stats-route-container space-y-6",children:ee.jsxDEV(Nt,{loading:c,error:r,data:i,emptyText:"No tool calls recorded for this range.",children:i&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV(AN,{byTool:i.byTool},void 0,!1,void 0,this),ee.jsxDEV(_N,{series:i.series,timeRange:n},void 0,!1,void 0,this),ee.jsxDEV(DN,{byTool:i.byTool},void 0,!1,void 0,this),ee.jsxDEV(EN,{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 AN({byTool:a}){let n=Ko.useMemo(()=>{let s=0,i=0,r=0,c=0,f=0,h=0,p=0;for(let g of a)s+=g.calls,i+=g.errors,r+=g.totalTokensShare,c+=g.outputTokensShare,f+=g.costShare,h+=g.resultChars,p+=g.argsChars;return{calls:s,errors:i,tokens:r,output:c,cost:f,resultChars:h,argsChars:p,tools:a.length}},[a]);return ee.jsxDEV(it,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split 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:Rt(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 Cost"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-metric-value",children:gt(n.cost)},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 kN=6;function RN(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,kN).map(([g])=>g),r=new Set(i),f=s.length>i.length?[...i,"Other"]:i,h=[...new Set(a.map((g)=>g.timestamp))].sort((g,b)=>g-b),p=new Map;for(let g of h)p.set(g,{});for(let g of a){let b=r.has(g.tool)?g.tool:"Other",x=p.get(g.timestamp);if(x)x[b]=(x[b]??0)+g.calls}return{buckets:h,tools:f,data:p}}function _N({series:a,timeRange:n}){let s=ga(),i=$t[s],r=Ki(n),c=Ko.useMemo(()=>RN(a),[a]),f=Ko.useMemo(()=>({labels:c.buckets.map((p)=>Qd(p,n)),datasets:c.tools.map((p,g)=>({label:p,data:c.buckets.map((b)=>c.data.get(b)?.[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=Ko.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:(p)=>`${p.dataset.label??""}: ${_e(p.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 ee.jsxDEV(it,{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(Ea,{data:f,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Mv(a){return a>0.1?"danger":a>0?"warning":"success"}function DN({byTool:a}){let n=Ko.useMemo(()=>NA(a),[a]),s=Ko.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(wa,{variant:Mv(r.errorRate),children:Rt(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. Cost",numeric:!0,render:(r)=>ee.jsxDEV("span",{className:"font-mono",children:gt(r.costShare)},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(it,{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(wa,{variant:Mv(r.errorRate),children:[Rt(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. Cost"},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:gt(r.costShare)},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 EN({byToolModel:a}){let[n,s]=Ko.useState(null),i=Ko.useMemo(()=>[...new Set(a.map((f)=>f.tool))].sort(),[a]),r=Ko.useMemo(()=>(n?a.filter((h)=>h.tool===n):a).map((h)=>({...h,errorRate:h.calls>0?h.errors/h.calls:0})),[a,n]),c=Ko.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(wa,{variant:Mv(f.errorRate),children:Rt(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. Cost",numeric:!0,render:(f)=>ee.jsxDEV("span",{className:"font-mono",children:gt(f.costShare)},void 0,!1,void 0,this)}],[]);return ee.jsxDEV(it,{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),i.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 Iv(){let{section:a,setSection:n,range:s,setRange:i}=gA(),[r,c]=Os.useState(0),[f,h]=Os.useState(null),[p,g]=Os.useState(()=>Date.now()),b=Os.useCallback((M)=>{if(M.success)c((w)=>w+1),g(Date.now())},[]),x=Os.useCallback(()=>h(null),[]),S=a,T=Os.useRef(new Set);T.current.add(S);let A=(M)=>{let w=M===S;switch(M){case"overview":return Ma.jsxDEV(ok,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"requests":return Ma.jsxDEV(ik,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"errors":return Ma.jsxDEV(QA,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"models":return Ma.jsxDEV(ek,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"providers":return Ma.jsxDEV(sk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"tools":return Ma.jsxDEV(rk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"costs":return Ma.jsxDEV(WA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"behavior":return Ma.jsxDEV($A,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"projects":return Ma.jsxDEV(nk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"gain":return Ma.jsxDEV(KA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this)}};return Ma.jsxDEV(Ma.Fragment,{children:[Ma.jsxDEV(pA,{activeSection:S,onSectionChange:n,range:s,onRangeChange:i,updatedAt:p,onSyncComplete:b,children:[...T.current].map((M)=>Ma.jsxDEV("div",{hidden:M!==S,children:A(M)},M,!1,void 0,this))},void 0,!1,void 0,this),Ma.jsxDEV(qA,{id:f,onClose:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ck=X(ce(),1),ON=uk.createRoot(document.getElementById("root"));ON.render(ck.jsxDEV(Iv,{},void 0,!1,void 0,this));
|
|
257
|
+
`);return a}function RP(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),b=oa(n.footerFont),x=c.length,S=r.length,T=l.length,M=Ta(n.padding),R=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,x)R+=x*g.lineHeight+(x-1)*n.titleSpacing+n.titleMarginBottom;if(_){let W=n.displayColors?Math.max(h,p.lineHeight):p.lineHeight;R+=T*W+(_-T)*p.lineHeight+(_-1)*n.bodySpacing}if(S)R+=n.footerMarginTop+S*b.lineHeight+(S-1)*n.footerSpacing;let z=0,V=function(W){w=Math.max(w,s.measureText(W).width+z)};return s.save(),s.font=g.string,pt(a.title,V),s.font=p.string,pt(a.beforeBody.concat(a.afterBody),V),z=n.displayColors?f+2+n.boxPadding:0,pt(l,(W)=>{pt(W.before,V),pt(W.lines,V),pt(W.after,V)}),z=0,s.font=b.string,pt(a.footer,V),s.restore(),w+=M.width,{width:w,height:R}}function _P(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 DP(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 EP(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(DP(g,a,n,s))g="center";return g}function XI(a,n,s){let l=s.yAlign||n.yAlign||_P(a,s);return{xAlign:s.xAlign||n.xAlign||EP(a,n,s,l),yAlign:l}}function OP(a,n){let{x:s,width:l}=a;if(n==="right")s-=l;else if(n==="center")s-=l/2;return s}function PP(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:b,topRight:x,bottomLeft:S,bottomRight:T}=Pi(f),M=OP(n,h),R=PP(n,p,g);if(p==="center"){if(h==="left")M+=g;else if(h==="right")M-=g}else if(h==="left")M-=Math.max(b,S)+r;else if(h==="right")M+=Math.max(x,T)+r;return{x:to(M,0,l.width-n.width),y:to(R,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 Yn([],_s(a))}function BP(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:Gn,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:Gn,beforeBody:Gn,beforeLabel:Gn,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:Gn,afterBody:Gn,beforeFooter:Gn,footer:Gn,afterFooter:Gn};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=BP(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=Yn(f,_s(l)),f=Yn(f,_s(r)),f=Yn(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);Yn(c.before,_s(oo(f,"beforeLabel",this,r))),Yn(c.lines,oo(f,"label",this,r)),Yn(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=Yn(f,_s(l)),f=Yn(f,_s(r)),f=Yn(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(RP(this.chart,n[h]));if(a.filter)f=f.filter((g,b,x)=>a.filter(g,b,x,s));if(a.itemSort)f=f.sort((g,b)=>a.itemSort(g,b,s));return pt(f,(g)=>{let b=ZI(a.callbacks,g);l.push(oo(b,"labelColor",this,g)),r.push(oo(b,"labelPointStyle",this,g)),c.push(oo(b,"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),b=$I(s,p,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,r={opacity:1,x:b.x,y:b.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:b}=Pi(f),{x,y:S}=a,{width:T,height:M}=n,R,w,_,z,V,W;if(r==="center"){if(V=S+M/2,l==="left")R=x,w=R-c,z=V+c,W=V-c;else R=x+T,w=R+c,z=V-c,W=V+c;_=R}else{if(l==="left")w=x+Math.max(h,g)+c;else if(l==="right")w=x+T-Math.max(p,b)-c;else w=this.caretX;if(r==="top")z=S,V=z-c,R=w-c,_=w+c;else z=S+M,V=z+c,R=w+c,_=w-c;W=z}return{x1:R,x2:w,x3:_,y1:z,y2:V,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),b=Vp(this,"left",r),x=l.x(b),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},R=l.leftForLtr(x,p)+p/2,w=T+h/2;a.strokeStyle=r.multiKeyBackground,a.fillStyle=r.multiKeyBackground,Pp(a,M,R,w),a.strokeStyle=c.borderColor,a.fillStyle=c.backgroundColor,Pp(a,M,R,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(x,p),R=l.leftForLtr(l.xPlus(x,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:R,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(R,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,b=oa(s.bodyFont),x=b.lineHeight,S=0,T=Fl(s.rtl,this.x,this.width),M=function(J){n.fillText(J,T.x(a.x+S),a.y+x/2),a.y+=x+r},R=T.textAlign(c),w,_,z,V,W,Q,ne;n.textAlign=c,n.textBaseline="middle",n.font=b.string,a.x=Vp(this,R,s),n.fillStyle=s.bodyColor,pt(this.beforeBody,M),S=f&&R!=="right"?c==="center"?p/2+g:p+2+g:0;for(V=0,Q=l.length;V<Q;++V){if(w=l[V],_=this.labelTextColors[V],n.fillStyle=_,pt(w.before,M),z=w.lines,f&&z.length)this._drawColorBox(n,a,V,T,s),x=Math.max(b.lineHeight,h);for(W=0,ne=z.length;W<ne;++W)M(z[W]),x=b.lineHeight;pt(w.after,M)}S=0,x=b.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:b,topRight:x,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+b,h),c==="top")this.drawCaret(a,n,s,l);if(n.lineTo(f+p-x,h),n.quadraticCurveTo(f+p,h,f+p,h+x),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+b),n.quadraticCurveTo(f,h,f+b,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 NP=(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 zP(a,n,s,l){let r=a.indexOf(n);if(r===-1)return NP(a,n,s,l);let c=a.lastIndexOf(n);return r!==c?s:r}var UP=(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:zP(s,a,We(n,a),this._addedLabels),UP(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 HP(a,n){let s=[],l=0.00000000000001,{bounds:r,step:c,min:f,max:h,precision:p,count:g,maxTicks:b,maxDigits:x,includeBounds:S}=a,T=c||1,M=b-1,{min:R,max:w}=n,_=!st(f),z=!st(h),V=!st(g),W=(w-R)/(x+1),Q=ux((w-R)/M/T)*T,ne,J,K,re;if(Q<0.00000000000001&&!_&&!z)return[{value:R},{value:w}];if(re=Math.ceil(w/Q)-Math.floor(R/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(R/Q)*Q,K=Math.ceil(w/Q)*Q;else J=R,K=w;if(_&&z&&c&&Nw((h-f)/c,Q/1000))re=Math.round(Math.min((h-f)/Q,b)),Q=(h-f)/re,J=f,K=h;else if(V)J=_?f:J,K=z?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 q=Math.max(dx(Q),dx(J));ne=Math.pow(10,st(p)?q: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(z&&Le>h)break;s.push({value:Le})}if(z&&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(!z||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=HP(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 FP(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 qP(a,{min:n,max:s}){n=ao(a.min,n);let l=[],r=Td(n),c=FP(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,b=Math.floor((n-p)/h/10)*h*10,x=Math.floor((g-b)/Math.pow(10,c)),S=ao(a.min,Math.round((p+b+x*Math.pow(10,c))*f)/f);while(S<s){if(l.push({value:S,major:JI(S),significand:x}),x>=10)x=x<15?15:20;else x++;if(x>=20)c++,x=2,f=c>=0?1:f;S=Math.round((p+b+x*Math.pow(10,c))*f)/f}let T=ao(a.max,S);return l.push({value:T,major:JI(T),significand:x}),l}class VP 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=qP(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 jP(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 GP(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 b=a.getPointPosition(p,a.drawingArea+r[p],h),x=oa(g.font),S=jP(a.ctx,x,a._pointLabels[p]);l[p]=S;let T=Ka(a.getIndexAngle(p)+h),M=Math.round(Rp(T)),R=tM(M,b.x,S.w,0,180),w=tM(M,b.y,S.h,90,270);YP(s,n,T,R,w)}a.setCenterPoint(n.l-s.l,s.r-n.r,n.t-s.t,s.b-n.b),a._pointLabelItems=WP(a,l,r)}function YP(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 XP(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))),b=KP(p.y,h.h,g),x=ZP(g),S=QP(p.x,h.w,x);return{visible:!0,x:p.x,y:b,textAlign:x,left:S,top:b,right:S+h.w,bottom:b+h.h}}function $P(a,n){if(!n)return!0;let{left:s,top:l,right:r,bottom:c}=a;return!(jn({x:s,y:l},n)||jn({x:s,y:c},n)||jn({x:r,y:l},n)||jn({x:r,y:c},n))}function WP(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 b=0;b<r;b++){p.padding=s[b],p.size=n[b];let x=XP(a,b,p);if(l.push(x),h==="auto"){if(x.visible=$P(x,g),x.visible)g=x}}return l}function ZP(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function QP(a,n,s){if(s==="right")a-=n;else if(s==="center")a-=n/2;return a}function KP(a,n,s){if(s===90||s===270)a-=n/2;else if(s>270||s<90)a-=n;return a}function JP(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 b=l-g.left,x=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:b,y:x,w:S,h:T,radius:p}),a.fill();else a.fillRect(b,x,S,T)}}function eB(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));JP(s,f,c);let h=oa(f.font),{x:p,y:g,textAlign:b}=c;Oi(s,a._pointLabels[r],p,g+h.lineHeight/2,h,{color:f.color,textAlign:b,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 tB(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 aB(a,n,s){return ks(a,{label:s,index:n,type:"pointLabel"})}class oB 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)GP(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 aB(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)eB(this,c);if(l.display)this.ticks.forEach((g,b)=>{if(b!==0||b===0&&this.min<0){h=this.getDistanceFromCenterForValue(g.value);let x=this.getContext(b),S=l.setContext(x),T=r.setContext(x);tB(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:b,lineWidth:x}=g;if(!x||!b)continue;a.lineWidth=x,a.strokeStyle=b,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 b=Ta(p.backdropPadding);a.fillRect(-c/2-b.left,-r-g.size/2-b.top,c+b.width,g.size+b.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 nB(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 sB(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 iB(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:iB(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 FE._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)):nB(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:sB(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={},b=n,x,S;if(p)b=+a.startOf(b,"isoWeek",h);if(b=+a.startOf(b,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(x=b,S=0;x<s;x=+a.add(x,f,c),S++)sM(g,x,T);if(x===s||l.bounds==="ticks"||S===1)sM(g,x,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],b=p&&f[p],x=s[n],S=p&&b&&x&&x.major;return this._adapter.format(a,l||(S?b: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 lB 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 dk=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),pB=vu.createContext({});var GM=()=>vu.useContext(pB);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:b=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:T=""}=GM()??{},M=l??x?Number(s??b)*24/Number(n??g):s??b;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(([R,w])=>Id.createElement(R,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 mB=[["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",mB);var gB=[["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",gB);var yB=[["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",yB);var bB=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ad=Te("check",bB);var xB=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kd=Te("chevron-down",xB);var vB=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Rd=Te("chevron-up",vB);var SB=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],_d=Te("clock",SB);var LB=[["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",LB);var CB=[["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",CB);var TB=[["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",TB);var wB=[["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",wB);var IB=[["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",IB);var MB=[["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",MB);var AB=[["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",AB);var kB=[["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",kB);var RB=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ud=Te("menu",RB);var _B=[["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",_B);var DB=[["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",DB);var EB=[["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",EB);var OB=[["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",OB);var PB=[["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",PB);var BB=[["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",BB);var NB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Yd=Te("trending-up",NB);var zB=[["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",zB);var UB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$l=Te("x",UB);var HB=[["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",HB);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),qB=[{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:qB.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 VB(){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=VB(),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 jB(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:jB}}var bv=X(ce(),1),GB={system:"light",light:"dark",dark:"system"},YB={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=YB[a];return bv.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>n(GB[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((x)=>x.id===a)?.label||"Observability",b=(x)=>{if(!x)return"Not updated";return`Updated ${new Date(x).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:b(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),b=(x)=>{n(x),g(!1)};return Ea.jsxDEV("div",{className:"stats-app-container",children:[Ea.jsxDEV(fv,{activeSection:a,onSectionChange:b,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:(x)=>x.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:b,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),XB=["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=XB.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"],$B=["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 WB(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=$B.find((p)=>c.startsWith(p));if(f){l+=WB(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 ZB(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=ZB(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 KB(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 JB(a,n=IA){let s={labels:[],datasets:[]};return MA(s,a.labels),AA(s,a.datasets,n),s}function eN(a,n){let{height:s=150,width:l=300,redraw:r=!1,datasetIdKey:c,type:f,data:h,options:p,plugins:g=[],fallbackContent:b,updateMode:x,...S}=a,T=Ao.useRef(null),M=Ao.useRef(null),R=()=>{if(!T.current)return;M.current=new Gl(T.current,{type:f,data:JB(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)KB(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(R);else M.current.update(x)},[r,p,h.labels,h.datasets,x]),Ao.useEffect(()=>{if(!M.current)return;w(),setTimeout(R)},[f]),Ao.useEffect(()=>(R(),()=>w()),[]),vv.jsx("canvas",{ref:T,role:"img",height:s,width:l,...S,children:b})}var tN=Ao.forwardRef(eN);function kA(a,n){return Gl.register(n),Ao.forwardRef((s,l)=>vv.jsx(tN,{...s,ref:l,type:a}))}var Oa=kA("line",ev),qi=kA("bar",Jx);var dt=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],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 $n(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 Wn(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 z=`${_.model}::${_.provider}`,V=h.get(z);if(V)V.weight+=l(_);else h.set(z,{model:_.model,provider:_.provider,weight:l(_)})}let g=[...h.entries()].sort((_,z)=>z[1].weight-_[1].weight).slice(0,s),b=new Set(g.map(([_])=>_)),x=new Map;for(let[,{model:_}]of g)x.set(_,(x.get(_)??0)+1);let S=new Map;for(let[_,{model:z,provider:V}]of g)S.set(_,(x.get(z)??0)>1?`${z} (${V})`:z);let T=[...new Set(a.map((_)=>_.timestamp))].sort((_,z)=>_-z),M=g.map(([_])=>S.get(_)??_);if(a.some((_)=>!b.has(`${_.model}::${_.provider}`)))M.push("Other");let w=new Map;for(let _ of T)w.set(_,{});for(let _ of a){let z=`${_.model}::${_.provider}`,V=b.has(z)?S.get(z)??_.model:"Other",W=w.get(_.timestamp);if(!W)continue;let Q=W[V]??r();c(Q,_),W[V]=Q}return{labels:T.map((_)=>pn(new Date(_),"MMM d")),datasets:M.map((_)=>({label:_,data:T.map((z)=>{let V=w.get(z)?.[_];return V?f(V):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 RA(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 _A(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 aN(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:aN(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,oN=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)),[b,x]=wa.useState(!1),[S,T]=wa.useState(()=>ji.get(l)?.updatedAt??null),M=wa.useRef(n);M.current=n;let R=wa.useRef(l);R.current=l;let w=s?.enabled??!0,_=s?.pollMs,z=wa.useRef(null),V=wa.useRef(!1);V.current=r!==null;let W=wa.useCallback(async(ne)=>{if(z.current)z.current.abort();let J=new AbortController;if(z.current=J,ne)x(!0);else g(!0),c(null);h(null);try{let K=await M.current(J.signal);if(J.signal.aborted)return;if(ji.set(R.current,{data:K,updatedAt:Date.now()}),ji.size>oN){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),x(!1),z.current===J)z.current=null}}},[]);wa.useEffect(()=>{if(!w){g(!1),x(!1);return}let ne=ji.get(l);if(ne)c(ne.data),T(ne.updatedAt),g(!1),W(!0);else W(V.current);return()=>{if(z.current)z.current.abort(),z.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:b,refetch:Q,updatedAt:S}}var DA=3600000,pm=24*DA,nN=300000,EA={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:nN,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:DA,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 EA[a]}function Jd(a,n){return pn(new Date(a),EA[n].tickFormat)}var sN=["main","subagent","advisor"];function mm(a){return a.totalInputTokens+a.totalOutputTokens+a.totalCacheReadTokens+a.totalCacheWriteTokens}function OA(a){let n=new Map;for(let f of a)n.set(f.agentType,f);let s=sN.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 PA(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 BA(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((x,S)=>Math.max(x,S.timestamp),0),b=(p>0?p:Math.floor(Date.now()/l)*l)-(r-1)*l;return Array.from({length:r},(x,S)=>b+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}`,b=h.get(g);if(!b)b={label:`${p.model} (${p.provider})`,data:c.map((S)=>({timestamp:S,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},h.set(g,b);let x=f.get(p.timestamp);if(x===void 0)continue;b.data[x]={timestamp:p.timestamp,avgTtftSeconds:p.avgTtft!==null?p.avgTtft/1000:null,avgTokensPerSecond:p.avgTokensPerSecond,requests:p.requests}}return h}function NA(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 zA(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 UA(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 HA({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 FA=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 FA.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(HA,{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",b=["stats-table-tr",g?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return lo.jsxDEV("tr",{className:b,onClick:g?()=>l(h):void 0,onKeyDown:g?(x)=>f(x,h):void 0,tabIndex:g?0:void 0,role:g?"button":void 0,children:a.map((x)=>{let S=["stats-table-td",x.numeric?"stats-text-right":"stats-text-left",x.className||""].filter(Boolean).join(" ");return lo.jsxDEV("td",{className:S,children:x.render?x.render(h):h[x.key]},x.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:(x)=>{if(x.key==="Enter"||x.key===" ")x.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(x)=>{x.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 qA({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 Zn=X(vt(),1);var VA=X(ce(),1);function Ia({variant:a,children:n,className:s=""}){return VA.jsxDEV("span",{className:`stats-status-pill ${s}`,"data-variant":a,children:n},void 0,!1,void 0,this)}var ye=X(ce(),1);function jA({id:a,onClose:n}){let[s,l]=Zn.useState(null),[r,c]=Zn.useState(!1),[f,h]=Zn.useState(null),p=Zn.useRef(null),g=Zn.useRef(null);if(Zn.useEffect(()=>{if(a===null){l(null);return}p.current=document.activeElement,c(!0),h(null),l(null);let x=new AbortController;return JM(a,x.signal).then((S)=>{if(x.signal.aborted)return;l(S),setTimeout(()=>g.current?.focus(),50)}).catch((S)=>{if(x.signal.aborted)return;h(S instanceof Error?S:Error(String(S)))}).finally(()=>{if(!x.signal.aborted)c(!1)}),()=>x.abort()},[a]),Zn.useEffect(()=>{if(a===null)return;let x=(S)=>{if(S.key==="Escape")n()};return window.addEventListener("keydown",x),()=>{if(window.removeEventListener("keydown",x),p.current)p.current.focus()}},[a,n]),a===null)return null;return ye.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(x)=>{if(x.target===x.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 ZA({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(iN,{overall:l.overall,behaviorSeries:l.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(lN,{behaviorSeries:l.behaviorSeries},void 0,!1,void 0,this),be.jsxDEV(rN,{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 iN({overall:a,behaviorSeries:n}){let s=la.useMemo(()=>NA(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 GA(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 YA(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 XA(a,n){if(n<=0)return 0;return a/n*100}function lN({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:(z)=>z.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(z,V)=>{z.hits+=YA(V,l),z.messages+=V.messages},bucketToValue:(z)=>XA(z.hits,z.messages)});let _=Tv.find((z)=>z.value===l)?.title??"Hits";return om(a,_,{initBucket:()=>({hits:0,messages:0}),accumulate:(z,V)=>{z.hits+=YA(V,l),z.messages+=V.messages},bucketToValue:(z)=>XA(z.hits,z.messages)})},[a,n,l]),p=la.useMemo(()=>$n({chartTheme:f,showLegend:n,defaultLabel:"Hits",formatValue:GA}),[f,n]),{sharedScaleBase:g,yScale:b}=la.useMemo(()=>Wn({chartTheme:f,formatY:GA}),[f]),x=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:b}}),[p,g,b]),M=la.useMemo(()=>{if(n)return null;return{labels:h.labels,datasets:Vi(h,(_)=>Kl(dt[_%dt.length]))}},[h,n]),R=la.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:{...g,stacked:!0},y:{...b,stacked:!0}},layout:{padding:{top:8}}}),[p,g,b]),w=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return be.jsxDEV(lt,{title:"User Friction Signals",subtitle:`${x} 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:R},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var $A="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function WA(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 rN({models:a,behaviorSeries:n}){let[s,l]=la.useState(null),r=ma(),c=Xt[r],f=la.useMemo(()=>cN(n),[n]),h=la.useMemo(()=>[...a].sort((p,g)=>{if(g.totalMessages!==p.totalMessages)return g.totalMessages-p.totalMessages;return WA(g)-WA(p)}),[a]);return be.jsxDEV(im,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[be.jsxDEV(lm,{gridTemplate:$A,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 b=`${p.model}::${p.provider}`,x=f.get(b)?.data??[],S=dt[g%dt.length],T=s===b,M=p.totalNegation+p.totalRepetition+p.totalBlame,R=p.totalYelling+p.totalProfanity+p.totalAnguish+M;return be.jsxDEV(cm,{gridTemplate:$A,isExpanded:T,onToggle:()=>l(T?null:b),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(R,p.totalMessages)},"hits",!1,void 0,this)],trendCell:x.length===0?be.jsxDEV(dm,{},void 0,!1,void 0,this):be.jsxDEV(nm,{timestamps:x.map((w)=>w.timestamp),values:x.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:x.length===0?be.jsxDEV(fm,{},void 0,!1,void 0,this):be.jsxDEV(uN,{data:x,chartTheme:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},b,!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 uN({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:RA(n)}),[n]);return be.jsxDEV(Oa,{data:s,options:l},void 0,!1,void 0,this)}function cN(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 QA({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(dN,{costSeries:l.costSeries},void 0,!1,void 0,this),ra.jsxDEV(pN,{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 dN({costSeries:a}){let n=Ro.useMemo(()=>PA(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 fN={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function hN(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 pN({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(()=>$n({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((z,V)=>z+(V.parsed.y??0),0).toFixed(2)}`}}),[r,n]),{sharedScaleBase:p,yScale:g}=Ro.useMemo(()=>Wn({chartTheme:r,formatY:(w)=>`$${Math.round(w)}`}),[r]),b=Ro.useMemo(()=>hN(fN[l]),[l]),x=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]),R=[{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:R,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&&x?ra.jsxDEV(Oa,{data:x,options:S},void 0,!1,void 0,this):T?ra.jsxDEV(qi,{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 KA=X(vt(),1);var Rt=X(ce(),1);function JA({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=KA.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,b)=>Rt.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:b,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 ek({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(mN,{projects:c.projects,selected:l,onChange:r},void 0,!1,void 0,this),Ie.jsxDEV(gN,{overall:c.overall},void 0,!1,void 0,this),Ie.jsxDEV(bN,{bySource:c.bySource},void 0,!1,void 0,this),Ie.jsxDEV(vN,{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 mN({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 gN({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 yN({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 bN({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(yN,{title:"Snapcompact",totals:a.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var xN={snapcompact:"rgb(34, 197, 94)"};function vN({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((x)=>c.format(new Date(`${x.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:a.map((x)=>x.snapcompact),...Su(xN.snapcompact)}]},{sharedScaleBase:p,yScale:g}=Wn({chartTheme:s,formatY:(x)=>rt(x)}),b={responsive:!0,maintainAspectRatio:!1,plugins:$n({chartTheme:s,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:rt}),scales:{x:{...p,stacked:!0},y:{...g,stacked:!0}}};return{data:h,options:b}},[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 Qn=X(vt(),1);var Me=X(ce(),1);function ak({active:a,range:n,refreshTrigger:s}){let{data:l,error:r,loading:c}=$t(["models",n,s],(f)=>ZM(n,f),{pollMs:30000,enabled:a});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(SN,{modelSeries:l.modelSeries,timeRange:n},void 0,!1,void 0,this),Me.jsxDEV(CN,{models:l.byModel,performanceSeries:l.modelPerformanceSeries,timeRange:n},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 SN({modelSeries:a,timeRange:n}){let s=ma(),l=Xt[s],r=Jl(n),c=Qn.useMemo(()=>LN(a),[a]),f=Qn.useMemo(()=>({labels:c.data.map((p)=>Jd(p.timestamp,n)),datasets:c.series.map((p,g)=>({label:p,data:c.data.map((b)=>b[p]??0),borderColor:dt[g%dt.length],backgroundColor:`${dt[g%dt.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[c,n]),h=Qn.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)=>{let g=p.dataset.label??"",b=p.parsed.y;return`${g}: ${(b??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:(p)=>`${p}%`},min:0,max:100}}}),[l]);return Me.jsxDEV(lt,{title:"Model Preference",subtitle:`Share of requests over ${r.windowLabel}`,children:Me.jsxDEV("div",{className:"h-[280px]",children:c.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:f,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LN(a,n=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let x of a){let S=`${x.model}::${x.provider}`,T=s.get(S);if(T)T.total+=x.requests;else s.set(S,{model:x.model,provider:x.provider,total:x.requests})}let r=[...s.entries()].map(([x,S])=>({key:x,...S})).sort((x,S)=>S.total-x.total).slice(0,n),c=new Set(r.map((x)=>x.key)),f=new Map;for(let x of r)f.set(x.model,(f.get(x.model)??0)+1);let h=new Map;for(let x of r){let S=(f.get(x.model)??0)>1;h.set(x.key,S?`${x.model} (${x.provider})`:x.model)}let p=new Map;for(let x of a){let S=`${x.model}::${x.provider}`,T=p.get(x.timestamp)??{timestamp:x.timestamp,total:0};T.total+=x.requests;let M=c.has(S)?h.get(S)??x.model:"Other";T[M]=(T[M]??0)+x.requests,p.set(x.timestamp,T)}let g=r.map((x)=>h.get(x.key)??x.model);if([...p.values()].some((x)=>(x.Other??0)>0))g.push("Other");return{data:[...p.values()].sort((x,S)=>(x.timestamp??0)-(S.timestamp??0)).map((x)=>{let S=x.total??0;for(let T of g)x[T]=S>0?(x[T]??0)/S*100:0;return x}),series:g}}var tk="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function CN({models:a,performanceSeries:n,timeRange:s}){let[l,r]=Qn.useState(null),c=Jl(s),f=Qn.useMemo(()=>BA(n,s),[n,s]),h=ma(),p=Xt[h],g=Qn.useMemo(()=>[...a].sort((b,x)=>x.totalInputTokens+x.totalOutputTokens-(b.totalInputTokens+b.totalOutputTokens)),[a]);return Me.jsxDEV(im,{title:"Model Statistics",children:[Me.jsxDEV(lm,{gridTemplate:tk,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:c.trendLabel,align:"center"}]},void 0,!1,void 0,this),Me.jsxDEV(rm,{children:g.map((b,x)=>{let S=`${b.model}::${b.provider}`,M=f.get(S)?.data??[],R=dt[x%dt.length],w=l===S,_=b.errorRate*100;return Me.jsxDEV(cm,{gridTemplate:tk,isExpanded:w,onToggle:()=>r(w?null:S),cells:[Me.jsxDEV(um,{model:b.model,provider:b.provider},"name",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.totalRequests.toLocaleString()},"requests",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:ga(b.totalCost,b.unpricedRequests)},"cost",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(b.totalInputTokens+b.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),Me.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTtft?`${(b.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:M.length===0?Me.jsxDEV(dm,{},void 0,!1,void 0,this):Me.jsxDEV(nm,{timestamps:M.map((z)=>z.timestamp),values:M.map((z)=>z.avgTokensPerSecond??0),color:R},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:_>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[_.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:[(b.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:b.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(b.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:b.avgDuration?`${(b.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:b.avgTtft?`${(b.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:M.length===0?Me.jsxDEV(fm,{},void 0,!1,void 0,this):Me.jsxDEV(TN,{data:M,color:R,chartTheme:p,timeRange:s},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},S,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TN({data:a,color:n,chartTheme:s,timeRange:l}){let r=Qn.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=Qn.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,plugins:sm(s),scales:_A(s)}),[s]);return Me.jsxDEV(Oa,{data:r,options:c},void 0,!1,void 0,this)}var ef=X(vt(),1);var ok=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 nk({stats:a}){let n=ok.useMemo(()=>OA(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 sk({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}),b=ma(),x=Xt[b],S=ef.useMemo(()=>{if(!r?.timeSeries)return{labels:[],datasets:[]};let _=r.timeSeries.map((V)=>pn(new Date(V.timestamp),n==="1h"||n==="24h"?"HH:mm":"MMM d")),z=r.timeSeries.length<=2?3:0;return{labels:_,datasets:[{label:"Requests",data:r.timeSeries.map((V)=>V.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:z,pointHoverRadius:4,fill:!0},{label:"Errors",data:r.timeSeries.map((V)=>V.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:z,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:x.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:x.tooltipBackground,titleColor:x.tooltipTitle,bodyColor:x.tooltipBody,borderColor:x.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:x.grid,drawBorder:!1},ticks:{color:x.tick,font:{size:10}}},y:{grid:{color:x.grid,drawBorder:!1},ticks:{color:x.tick,font:{size:10}},min:0}}}),[x]),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)}],[]),R=(_,z)=>de.jsxDEV("div",{className:"stats-mobile-card",onClick:z,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(qA,{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(nk,{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((_,z)=>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)]},z,!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 z=!!_.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 ${z?"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),z&&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:R,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 ik({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 zA(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 lk({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(wN,{providers:l.providers},void 0,!1,void 0,this),Ve.jsxDEV(IN,{stats:l},void 0,!1,void 0,this),Ve.jsxDEV(MN,{hourly:l.hourly,providers:l.providers},void 0,!1,void 0,this),Ve.jsxDEV(AN,{insights:l.windowInsights},void 0,!1,void 0,this),Ve.jsxDEV(kN,{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 wN({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 IN({stats:a}){let[n,s]=ya.useState("tokens"),l=ma(),r=Xt[l],c=ya.useMemo(()=>a.providers.reduce((b,x)=>b+x.unpricedRequests,0),[a.providers]),f=ya.useMemo(()=>{let b=a.series.map((x)=>({...x,model:x.provider}));return Lu(b,{topN:6,rankWeight:(x)=>n==="tokens"?x.totalTokens:x.cost,initBucket:()=>({total:0}),accumulate:(x,S)=>{x.total+=n==="tokens"?S.totalTokens:S.cost},bucketToValue:(x)=>x.total})},[a.series,n]),h=n==="tokens"?rt:(b)=>Kd(b),p=ya.useMemo(()=>{let{sharedScaleBase:b,yScale:x}=Wn({chartTheme:r,formatY:h});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:$n({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,R)=>M+(R.parsed.y??0),0);return`Total: ${h(T)}`}}),scales:{x:{...b,stacked:!0},y:{...x,stacked:!0}}}},[r,n,h]),g=ya.useMemo(()=>({labels:f.labels,datasets:Vi(f,(b)=>Kl(dt[b%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 MN({hourly:a,providers:n}){let[s,l]=ya.useState(Iv),r=ma(),c=Xt[r],{tokensByHour:f,peakHour:h}=ya.useMemo(()=>{let x=Array(24).fill(0);for(let T of a){if(s!==Iv&&T.provider!==s)continue;x[T.hour]+=T.totalTokens}let S=0;for(let T=1;T<24;T++)if(x[T]>x[S])S=T;return{tokensByHour:x,peakHour:S}},[a,s]),p=f.some((x)=>x>0),g=ya.useMemo(()=>({labels:Array.from({length:24},(x,S)=>`${String(S).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:f,...Kl(dt[2]),backgroundColor:f.map((x,S)=>S===h?dt[0]:dt[2])}]}),[f,h]),b=ya.useMemo(()=>{let{sharedScaleBase:x,yScale:S}=Wn({chartTheme:c,formatY:rt});return{responsive:!0,maintainAspectRatio:!1,plugins:$n({chartTheme:c,showLegend:!1,defaultLabel:"Tokens",formatValue:rt}),scales:{x,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:(x)=>l(x.target.value),"aria-label":"Provider",children:[Ve.jsxDEV("option",{value:Iv,children:"All providers"},void 0,!1,void 0,this),n.map((x)=>Ve.jsxDEV("option",{value:x.provider,children:x.provider},x.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:b},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 AN({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 kN({usageSeries:a}){let n=ya.useMemo(()=>[...new Set(a.map((b)=>b.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((b)=>b.provider===r).map((b)=>{let x=[...b.points].reverse().find((S)=>S.usedFraction!==null);return x?{label:`${b.windowLabel} · ${b.accountLabel}`,fraction:x.usedFraction??0,exhausted:x.exhausted,recordedAt:x.timestamp}:null}).filter((b)=>b!==null).sort((b,x)=>x.fraction-b.fraction),[a,r]),p=ya.useMemo(()=>({labels:h.map((b)=>b.label),datasets:[{label:"Used",data:h.map((b)=>b.fraction*100),backgroundColor:h.map((b)=>b.exhausted?Mv.exhausted:b.fraction>=0.8?Mv.warning:Mv.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[h]),g=ya.useMemo(()=>{let{sharedScaleBase:b,yScale:x}=Wn({chartTheme:f,formatY:(M)=>`${Math.round(M)}%`}),S=Math.max(100,...h.map((M)=>M.fraction*100)),T=$n({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 R=h[M.dataIndex],w=`${(M.parsed.x??0).toFixed(1)}% used`;return R?`${w} · recorded ${so(R.recordedAt)}`:w}}}},scales:{x:{...x,max:S},y:{...b,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:(b)=>l(b.target.value),"aria-label":"Provider",children:n.map((b)=>Ve.jsxDEV("option",{value:b,children:b},b,!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 rk=X(vt(),1);var gt=X(ce(),1);function uk({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=rk.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&>.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 ck({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(RN,{byTool:l.byTool},void 0,!1,void 0,this),ee.jsxDEV(EN,{series:l.series,timeRange:n},void 0,!1,void 0,this),ee.jsxDEV(ON,{byTool:l.byTool},void 0,!1,void 0,this),ee.jsxDEV(PN,{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 RN({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 b of a)s+=b.calls,l+=b.errors,r+=b.totalTokensShare,c+=b.outputTokensShare,f+=b.costShare,h+=b.unpricedRequestsShare,p+=b.resultChars,g+=b.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 _N=6;function DN(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]),l=s.slice(0,_N).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,b)=>g-b),p=new Map;for(let g of h)p.set(g,{});for(let g of a){let b=r.has(g.tool)?g.tool:"Other",x=p.get(g.timestamp);if(x)x[b]=(x[b]??0)+g.calls}return{buckets:h,tools:f,data:p}}function EN({series:a,timeRange:n}){let s=ma(),l=Xt[s],r=Jl(n),c=Jo.useMemo(()=>DN(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((b)=>c.data.get(b)?.[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 ON({byTool:a}){let n=Jo.useMemo(()=>UA(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 PN({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()),b=Ps.useCallback((R)=>{if(R.success)c((w)=>w+1),g(Date.now())},[]),x=Ps.useCallback(()=>h(null),[]),S=a,T=Ps.useRef(new Set);T.current.add(S);let M=(R)=>{let w=R===S;switch(R){case"overview":return Ma.jsxDEV(sk,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"requests":return Ma.jsxDEV(uk,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"errors":return Ma.jsxDEV(JA,{active:w,range:s,refreshTrigger:r,onRequestClick:h},void 0,!1,void 0,this);case"models":return Ma.jsxDEV(ak,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"providers":return Ma.jsxDEV(lk,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"tools":return Ma.jsxDEV(ck,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"costs":return Ma.jsxDEV(QA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"behavior":return Ma.jsxDEV(ZA,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"projects":return Ma.jsxDEV(ik,{active:w,range:s,refreshTrigger:r},void 0,!1,void 0,this);case"gain":return Ma.jsxDEV(ek,{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:b,children:[...T.current].map((R)=>Ma.jsxDEV("div",{hidden:R!==S,children:M(R)},R,!1,void 0,this))},void 0,!1,void 0,this),Ma.jsxDEV(jA,{id:f,onClose:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fk=X(ce(),1),BN=dk.createRoot(document.getElementById("root"));BN.render(fk.jsxDEV(kv,{},void 0,!1,void 0,this));
|