@oh-my-pi/omp-stats 17.4.2 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,76 +1,76 @@
1
- var mO=Object.create;var{getPrototypeOf:dO,defineProperty:Nw,getOwnPropertyNames:pO}=Object;var cO=Object.prototype.hasOwnProperty;function lO(J){return this[J]}var rO,sO,s=(J,G,q)=>{var X=J!=null&&typeof J==="object";if(X){var N=G?rO??=new WeakMap:sO??=new WeakMap,K=N.get(J);if(K)return K}q=J!=null?mO(dO(J)):{};let H=G||!J||!J.__esModule?Nw(q,"default",{value:J,enumerable:!0}):q;for(let F of pO(J))if(!cO.call(H,F))Nw(H,F,{get:lO.bind(J,F),enumerable:!0});if(X)N.set(J,H);return H};var T8=(J,G)=>()=>(G||J((G={exports:{}}).exports,G),G.exports);var S_=T8((JS)=>{(function(){function J(){if(n=!1,i){var l=JS.unstable_now();H0=l;var Y0=!0;try{$:{h=!1,p&&(p=!1,Q0(X0),X0=-1),j=!0;var F0=I;try{Z:{K(l);for(V=q(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,I=V.priorityLevel;var p0=a0(V.expirationTime<=l);if(l=JS.unstable_now(),typeof p0==="function"){V.callback=p0,K(l),Y0=!0;break Z}V===q(P)&&X(P),K(l)}else X(P);V=q(P)}if(V!==null)Y0=!0;else{var v=q(O);v!==null&&W(H,v.startTime-l),Y0=!1}}break $}finally{V=null,I=F0,j=!1}Y0=void 0}}finally{Y0?P0():i=!1}}}function G(l,Y0){var F0=l.length;l.push(Y0);$:for(;0<F0;){var a0=F0-1>>>1,p0=l[a0];if(0<N(p0,Y0))l[a0]=Y0,l[F0]=p0,F0=a0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var Y0=l[0],F0=l.pop();if(F0!==Y0){l[0]=F0;$:for(var a0=0,p0=l.length,v=p0>>>1;a0<v;){var o=2*(a0+1)-1,W0=l[o],z0=o+1,c0=l[z0];if(0>N(W0,F0))z0<p0&&0>N(c0,W0)?(l[a0]=c0,l[z0]=F0,a0=z0):(l[a0]=W0,l[o]=F0,a0=o);else if(z0<p0&&0>N(c0,F0))l[a0]=c0,l[z0]=F0,a0=z0;else break $}}return Y0}function N(l,Y0){var F0=l.sortIndex-Y0.sortIndex;return F0!==0?F0:l.id-Y0.id}function K(l){for(var Y0=q(O);Y0!==null;){if(Y0.callback===null)X(O);else if(Y0.startTime<=l)X(O),Y0.sortIndex=Y0.expirationTime,G(P,Y0);else break;Y0=q(O)}}function H(l){if(p=!1,K(l),!h)if(q(P)!==null)h=!0,i||(i=!0,P0());else{var Y0=q(O);Y0!==null&&W(H,Y0.startTime-l)}}function F(){return n?!0:JS.unstable_now()-H0<d?!1:!0}function W(l,Y0){X0=a(function(){l(JS.unstable_now())},Y0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),JS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var M=performance;JS.unstable_now=function(){return M.now()}}else{var R=Date,_=R.now();JS.unstable_now=function(){return R.now()-_}}var P=[],O=[],E=1,V=null,I=3,j=!1,h=!1,p=!1,n=!1,a=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,X0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(J)};else if(typeof MessageChannel<"u"){var O0=new MessageChannel,k0=O0.port2;O0.port1.onmessage=J,P0=function(){k0.postMessage(null)}}else P0=function(){a(J,0)};JS.unstable_IdlePriority=5,JS.unstable_ImmediatePriority=1,JS.unstable_LowPriority=4,JS.unstable_NormalPriority=3,JS.unstable_Profiling=null,JS.unstable_UserBlockingPriority=2,JS.unstable_cancelCallback=function(l){l.callback=null},JS.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},JS.unstable_getCurrentPriorityLevel=function(){return I},JS.unstable_next=function(l){switch(I){case 1:case 2:case 3:var Y0=3;break;default:Y0=I}var F0=I;I=Y0;try{return l()}finally{I=F0}},JS.unstable_requestPaint=function(){n=!0},JS.unstable_runWithPriority=function(l,Y0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=I;I=l;try{return Y0()}finally{I=F0}},JS.unstable_scheduleCallback=function(l,Y0,F0){var a0=JS.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var p0=-1;break;case 2:p0=250;break;case 5:p0=1073741823;break;case 4:p0=1e4;break;default:p0=5000}return p0=F0+p0,l={id:E++,callback:Y0,priorityLevel:l,startTime:F0,expirationTime:p0,sortIndex:-1},F0>a0?(l.sortIndex=F0,G(O,l),q(P)===null&&l===q(O)&&(p?(Q0(X0),X0=-1):p=!0,W(H,F0-a0))):(l.sortIndex=p0,G(P,l),h||j||(h=!0,i||(i=!0,P0()))),l},JS.unstable_shouldYield=F,JS.unstable_wrapCallback=function(l){var Y0=I;return function(){var F0=I;I=Y0;try{return l.apply(this,arguments)}finally{I=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L1=T8((QS,l3)=>{(function(){function J(C,y){Object.defineProperty(X.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function G(C){if(C===null||typeof C!=="object")return null;return C=aJ&&C[aJ]||C["@@iterator"],typeof C==="function"?C:null}function q(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;q0[r]||(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.",y,C),q0[r]=!0)}function X(C,y,r){this.props=C,this.context=y,this.refs=v2,this.updater=r||e7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=v2,this.updater=r||e7}function H(){}function F(C){return""+C}function W(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function M(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===T$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case p0:return"Fragment";case o:return"Profiler";case v:return"StrictMode";case m1:return"Suspense";case b0:return"SuspenseList";case i6: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 a0:return"Portal";case z0:return C.displayName||"Context";case W0:return(C._context.displayName||"Context")+".Consumer";case c0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case o1:return y=C.displayName||null,y!==null?y:M(C.type)||"Memo";case V5:y=C._payload,C=C._init;try{return M(C(y))}catch(r){}}return null}function R(C){if(C===p0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===V5)return"<...>";try{var y=M(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=g0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function O(C){if($9.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function E(C,y){function r(){iJ||(iJ=!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)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=M(this.type);return p8[C]||(p8[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 I(C,y,r,Z0,N0,j0){var v0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(v0!==void 0?v0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):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:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function j(C,y){return y=I(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===V5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function n(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(W(C.key),n(""+C.key)):y.toString(36)}function Q0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var j0=typeof C;if(j0==="undefined"||j0==="boolean")C=null;var v0=!1;if(C===null)v0=!0;else switch(j0){case"bigint":case"string":case"number":v0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:v0=!0;break;case V5:return v0=C._init,t(v0(C._payload),y,r,Z0,N0)}}if(v0){v0=C,N0=N0(v0);var Q1=Z0===""?"."+a(v0,0):Z0;return W1(N0)?(r="",Q1!=null&&(r=Q1.replace(J9,"$&/")+"/"),t(N0,y,r,"",function(A5){return A5})):N0!=null&&(p(N0)&&(N0.key!=null&&(v0&&v0.key===N0.key||W(N0.key)),r=j(N0,r+(N0.key==null||v0&&v0.key===N0.key?"":(""+N0.key).replace(J9,"$&/")+"/")+Q1),Z0!==""&&v0!=null&&p(v0)&&v0.key==null&&v0._store&&!v0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(v0=0,Q1=Z0===""?".":Z0+":",W1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],j0=Q1+a(Z0,_0),v0+=t(Z0,y,r,j0,N0);else if(_0=G(C),typeof _0==="function")for(_0===C.entries&&(Z9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Z9=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=Q1+a(Z0,_0++),v0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return v0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(j0){return y.call(r,j0,N0++)}),Z0}function X0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
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
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,y),"default"in y||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,B),"default"in B||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw C._result}function d(){var C=g0.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,B),B.default;throw C._result}function q(){var C=ze.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
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 H0(){g0.asyncTransitions--}function P0(C){if(l8===null)try{var y=("require"+Math.random()).slice(0,7);l8=(l3&&l3[y]).call(l3,"timers").setImmediate}catch(r){l8=function(Z0){tJ===!1&&(tJ=!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 N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return l8(C)}function O0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function k0(C,y){y!==r8-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. "),r8=y}function l(C,y,r){var Z0=g0.actQueue;if(Z0!==null)if(Z0.length!==0)try{Y0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){g0.thrownErrors.push(N0)}else g0.actQueue=null;0<g0.thrownErrors.length?(Z0=O0(g0.thrownErrors),g0.thrownErrors.length=0,r(Z0)):y(C)}function Y0(C){if(!n8){n8=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{g0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(g0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),g0.thrownErrors.push(N0)}finally{n8=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),p0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),W0=Symbol.for("react.consumer"),z0=Symbol.for("react.context"),c0=Symbol.for("react.forward_ref"),m1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),o1=Symbol.for("react.memo"),V5=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),aJ=Symbol.iterator,q0={},e7={isMounted:function(){return!1},enqueueForceUpdate:function(C){q(C,"forceUpdate")},enqueueReplaceState:function(C){q(C,"replaceState")},enqueueSetState:function(C){q(C,"setState")}},d8=Object.assign,v2={};Object.freeze(v2),X.prototype.isReactComponent={},X.prototype.setState=function(C,y){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,y,"setState")},X.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var U5={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(b2 in U5)U5.hasOwnProperty(b2)&&J(b2,U5[b2]);N.prototype=X.prototype,U5=K.prototype=new N,U5.constructor=K,d8(U5,X.prototype),U5.isPureReactComponent=!0;var W1=Array.isArray,T$=Symbol.for("react.client.reference"),g0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},$9=Object.prototype.hasOwnProperty,P1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var iJ,B4,p8={},c8=U5.react_stack_bottom_frame.bind(U5,P)(),zq=P1(R(P)),Z9=!1,J9=/\/+/g,k2=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=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(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},tJ=!1,l8=null,r8=0,s8=!1,n8=!1,C$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b2={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};QS.Activity=i6,QS.Children=b2,QS.Component=X,QS.Fragment=p0,QS.Profiler=o,QS.PureComponent=K,QS.StrictMode=v,QS.Suspense=m1,QS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g0,QS.__COMPILER_RUNTIME=U5,QS.act=function(C){var y=g0.actQueue,r=r8;r8++;var Z0=g0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(_0){g0.thrownErrors.push(_0)}if(0<g0.thrownErrors.length)throw k0(y,r),C=O0(g0.thrownErrors),g0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var v0=j0;return C$(function(){N0||s8||(s8=!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(_0,A5){N0=!0,v0.then(function(U6){if(k0(y,r),r===0){try{Y0(Z0),P0(function(){return l(U6,_0,A5)})}catch(O$){g0.thrownErrors.push(O$)}if(0<g0.thrownErrors.length){var f2=O0(g0.thrownErrors);g0.thrownErrors.length=0,A5(f2)}}else _0(U6)},function(U6){k0(y,r),0<g0.thrownErrors.length?(U6=O0(g0.thrownErrors),g0.thrownErrors.length=0,A5(U6)):A5(U6)})}}}var Q1=j0;if(k0(y,r),r===0&&(Y0(Z0),Z0.length!==0&&C$(function(){N0||s8||(s8=!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(() => ...)"))}),g0.actQueue=null),0<g0.thrownErrors.length)throw C=O0(g0.thrownErrors),g0.thrownErrors.length=0,C;return{then:function(_0,A5){N0=!0,r===0?(g0.actQueue=Z0,P0(function(){return l(Q1,_0,A5)})):_0(Q1)}}},QS.cache=function(C){return function(){return C.apply(null,arguments)}},QS.cacheSignal=function(){return null},QS.captureOwnerStack=function(){var C=g0.getCurrentStack;return C===null?null:C()},QS.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=d8({},C.props),N0=C.key,j0=C._owner;if(y!=null){var v0;$:{if($9.call(y,"ref")&&(v0=Object.getOwnPropertyDescriptor(y,"ref").get)&&v0.isReactWarning){v0=!1;break $}v0=y.ref!==void 0}v0&&(j0=_()),O(y)&&(W(y.key),N0=""+y.key);for(Q1 in y)!$9.call(y,Q1)||Q1==="key"||Q1==="__self"||Q1==="__source"||Q1==="ref"&&y.ref===void 0||(Z0[Q1]=y[Q1])}var Q1=arguments.length-2;if(Q1===1)Z0.children=r;else if(1<Q1){v0=Array(Q1);for(var _0=0;_0<Q1;_0++)v0[_0]=arguments[_0+2];Z0.children=v0}Z0=I(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},QS.createContext=function(C){return C={$$typeof:z0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:W0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},QS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in B4||!("__self"in y)||"key"in y||(B4=!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")),O(y)&&(W(y.key),N0=""+y.key),y)$9.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var v0=Array(j0),Q1=0;Q1<j0;Q1++)v0[Q1]=arguments[Q1+2];Object.freeze&&Object.freeze(v0),Z0.children=v0}if(C&&C.defaultProps)for(_0 in j0=C.defaultProps,j0)Z0[_0]===void 0&&(Z0[_0]=j0[_0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>g0.recentlyCreatedOwnerStacks++;return I(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):c8,_0?P1(R(C)):zq)},QS.createRef=function(){var C={current:null};return Object.seal(C),C},QS.forwardRef=function(C){C!=null&&C.$$typeof===o1?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 y={$$typeof:c0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.isValidElement=p,QS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:V5,_payload:C,_init:X0},r={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=r,y._debugInfo=[{awaited:r}],y},QS.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:o1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.startTransition=function(C){var y=g0.T,r={};r._updatedFibers=new Set,g0.T=r;try{var Z0=C(),N0=g0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(g0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,k2))}catch(j0){k2(j0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._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.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.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."),y.types=r.types),g0.T=y}},QS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},QS.use=function(C){return d().use(C)},QS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},QS.useCallback=function(C,y){return d().useCallback(C,y)},QS.useContext=function(C){var y=d();return C.$$typeof===W0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},QS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},QS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},QS.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},QS.useEffectEvent=function(C){return d().useEffectEvent(C)},QS.useId=function(){return d().useId()},QS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},QS.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},QS.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},QS.useMemo=function(C,y){return d().useMemo(C,y)},QS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},QS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},QS.useRef=function(C){return d().useRef(C)},QS.useState=function(C){return d().useState(C)},QS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},QS.useTransition=function(){return d().useTransition()},QS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var D_=T8((GS)=>{var QK=s(L1());(function(){function J(){}function G(R){return""+R}function q(R,_,P){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(O);var E=!1}catch(V){E=!0}return E&&(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&&O[Symbol.toStringTag]||O.constructor.name||"Object"),G(O)),{$$typeof:W,key:O==null?null:""+O,children:R,containerInfo:_,implementation:P}}function X(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=M.H;return R===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($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:
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.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},W=Symbol.for("react.portal"),M=QK.__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"),GS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,GS.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return q(R,_,null,P)},GS.flushSync=function(R){var _=M.T,P=F.p;try{if(M.T=null,F.p=2,R)return R()}finally{M.T=_,F.p=P,F.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.")}},GS.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="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.",K(_)):_!=null&&typeof _.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.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},GS.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.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`.",K(_)):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`.",K(_))}typeof R==="string"&&F.d.D(R)},GS.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="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.",K(_)):_.as!=="style"&&_.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".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,O=X(P,_.crossOrigin),E=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:O,integrity:E,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:O,integrity:E,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},GS.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)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",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),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)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=X(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},GS.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var O=X(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:O,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},GS.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&(_?(P=X(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},GS.requestFormReset=function(R){F.d.r(R)},GS.unstable_batchedUpdates=function(R,_){return R(_)},GS.useFormState=function(R,_,P){return H().useFormState(R,_,P)},GS.useFormStatus=function(){return H().useHostTransitionStatus()},GS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var v_=T8((Kv,j_)=>{var qS=s(D_());j_.exports=qS});var k_=T8((YS)=>{var q1=s(S_()),z$=s(L1()),GK=s(v_());(function(){function J($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,Q,Y){if(Q>=Z.length)return Y;var U=Z[Q],B=G5($)?$.slice():r0({},$);return B[U]=G($[U],Z,Q+1,Y),B}function q($,Z,Q){if(Z.length!==Q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<Q.length-1;Y++)if(Z[Y]!==Q[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Z,Q,0)}}function X($,Z,Q,Y){var U=Z[Y],B=G5($)?$.slice():r0({},$);return Y+1===Z.length?(B[Q[Y]]=B[U],G5(B)?B.splice(U,1):delete B[U]):B[U]=X($[U],Z,Q,Y+1),B}function N($,Z,Q){var Y=Z[Q],U=G5($)?$.slice():r0({},$);if(Q+1===Z.length)return G5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,Q+1),U}function K(){return!1}function H(){return null}function F(){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 W(){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 M(){}function R(){}function _($){var Z=[];return $.forEach(function(Q){Z.push(Q)}),Z.sort().join(", ")}function P($,Z,Q,Y){return new DP($,Z,Q,Y)}function O($,Z){$.context===Z8&&(zX($.current,2,Z,$,null,null),z9())}function E($,Z){if(k6!==null){var Q=Z.staleFamilies;Z=Z.updatedFamilies,a$(),WB($.current,Z,Q),z9()}}function V($){k6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function j($){var Z=$,Q=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(Q=Z.return),$=Z.return;while($)}return Z.tag===3?Q:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function n($){if(j($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=j($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var Q=$,Y=Z;;){var U=Q.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){Q=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===Q)return n(U),$;if(B===Y)return n(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==Y.return)Q=U,Y=B;else{for(var z=!1,w=U.child;w;){if(w===Q){z=!0,Q=U,Y=B;break}if(w===Y){z=!0,Y=U,Q=B;break}w=w.sibling}if(!z){for(w=B.child;w;){if(w===Q){z=!0,Q=B,Y=U;break}if(w===Y){z=!0,Y=B,Q=U;break}w=w.sibling}if(!z)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(Q.alternate!==Y)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(Q.tag!==3)throw Error("Unable to find node on an unmounted component.");return Q.stateNode.current===Q?$:Z}function Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=PW&&$[PW]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===iT?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case T9:return"Fragment";case PX:return"Profiler";case XG:return"StrictMode";case CX:return"Suspense";case OX:return"SuspenseList";case IX:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case P9:return"Portal";case S4:return $.displayName||"Context";case TX:return($._context.displayName||"Context")+".Consumer";case YZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case NG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(Q){}}return null}function X0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===XG?"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 Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var Q=Z.length-1;0<=Q;Q--)if(typeof Z[Q].name==="string")return Z[Q].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Q2?console.error("Unexpected pop."):(Z!==AX[Q2]&&console.error("Unexpected Fiber popped."),$.current=VX[Q2],VX[Q2]=null,AX[Q2]=null,Q2--)}function O0($,Z,Q){Q2++,VX[Q2]=$.current,AX[Q2]=Q,$.current=Z}function k0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){O0(o2,Z,$),O0(XZ,$,$),O0(n2,null,$);var Q=Z.nodeType;switch(Q){case 9:case 11:Q=Q===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?lF(Z):w2:w2;break;default:if(Q=Z.tagName,Z=Z.namespaceURI)Z=lF(Z),Z=rF(Z,Q);else switch(Q){case"svg":Z=J$;break;case"math":Z=Y3;break;default:Z=w2}}Q=Q.toLowerCase(),Q=uK(null,Q),Q={context:Z,ancestorInfo:Q},P0(n2,$),O0(n2,Q,$)}function Y0($){P0(n2,$),P0(XZ,$),P0(o2,$)}function F0(){return k0(n2.current)}function a0($){$.memoizedState!==null&&O0(UG,$,$);var Z=k0(n2.current),Q=$.type,Y=rF(Z.context,Q);Q=uK(Z.ancestorInfo,Q),Y={context:Y,ancestorInfo:Q},Z!==Y&&(O0(XZ,$,$),O0(n2,Y,$))}function p0($){XZ.current===$&&(P0(n2,$),P0(XZ,$)),UG.current===$&&(P0(UG,$),tZ._currentValue=v7)}function v(){}function o(){if(NZ===0){TW=console.log,CW=console.info,OW=console.warn,IW=console.error,VW=console.group,AW=console.groupCollapsed,EW=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}NZ++}function W0(){if(NZ--,NZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r0({},$,{value:TW}),info:r0({},$,{value:CW}),warn:r0({},$,{value:OW}),error:r0({},$,{value:IW}),group:r0({},$,{value:VW}),groupCollapsed:r0({},$,{value:AW}),groupEnd:r0({},$,{value:EW})})}0>NZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
18
- `)&&($=$.slice(29)),Z=$.indexOf(`
19
- `),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
20
- `,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function c0($){if(EX===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);EX=Z&&Z[1]||"",SW=-1<Q.stack.indexOf(`
21
- at`)?" (<anonymous>)":-1<Q.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+EX+$+SW}function m1($,Z){if(!$||SX)return"";var Q=DX.get($);if(Q!==void 0)return Q;SX=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,o();try{var U={DetermineComponentFrameRoot:function(){try{if(Z){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch($0){var g=$0}Reflect.construct($,[],S)}else{try{S.call()}catch($0){g=$0}$.call(S.prototype)}}else{try{throw Error()}catch($0){g=$0}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch($0){if($0&&g&&typeof $0.stack==="string")return[$0.stack,g.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=U.DetermineComponentFrameRoot(),w=z[0],L=z[1];if(w&&L){var T=w.split(`
23
- `),b=L.split(`
24
- `);for(z=B=0;B<T.length&&!T[B].includes("DetermineComponentFrameRoot");)B++;for(;z<b.length&&!b[z].includes("DetermineComponentFrameRoot");)z++;if(B===T.length||z===b.length)for(B=T.length-1,z=b.length-1;1<=B&&0<=z&&T[B]!==b[z];)z--;for(;1<=B&&0<=z;B--,z--)if(T[B]!==b[z]){if(B!==1||z!==1)do if(B--,z--,0>z||T[B]!==b[z]){var f=`
25
- `+T[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&DX.set($,f),f}while(1<=B&&0<=z);break}}}finally{SX=!1,x.H=Y,W0(),Error.prepareStackTrace=Q}return T=(T=$?$.displayName||$.name:"")?c0(T):"",typeof $==="function"&&DX.set($,T),T}function b0($,Z){switch($.tag){case 26:case 27:case 5:return c0($.type);case 16:return c0("Lazy");case 13:return $.child!==Z&&Z!==null?c0("Suspense Fallback"):c0("Suspense");case 19:return c0("SuspenseList");case 0:case 15:return m1($.type,!1);case 11:return m1($.type.render,!1);case 1:return m1($.type,!0);case 31:return c0("Activity");default:return""}}function o1($){try{var Z="",Q=null;do{Z+=b0($,Q);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var z=Z;$:{var{name:w,env:L,debugLocation:T}=B;if(T!=null){var b=z0(T),f=b.lastIndexOf(`
26
- `),S=f===-1?b:b.slice(f+1);if(S.indexOf(w)!==-1){var g=`
27
- `+S;break $}}g=c0(w+(L?" ["+L+"]":""))}Z=z+g}}Q=$,$=$.return}while($);return Z}catch($0){return`
28
- Error generating stack: `+$0.message+`
29
- `+$0.stack}}function V5($){return($=$?$.displayName||$.name:"")?c0($):""}function i6(){if(_6===null)return null;var $=_6._debugOwner;return $!=null?X0($):null}function aJ(){if(_6===null)return"";var $=_6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=c0($.type);break;case 13:Z+=c0("Suspense");break;case 19:Z+=c0("SuspenseList");break;case 31:Z+=c0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=V5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=V5($.type.render))}for(;$;)if(typeof $.tag==="number"){var Q=$;$=Q._debugOwner;var Y=Q._debugStack;if($&&Y){var U=z0(Y);U!==""&&(Z+=`
30
- `+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
31
- `+z0(B))}else break;var z=Z}catch(w){z=`
32
- Error generating stack: `+w.message+`
33
- `+w.stack}return z}function q0($,Z,Q,Y,U,B,z){var w=_6;e7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,Q,Y,U,B,z)):Z(Q,Y,U,B,z)}finally{e7(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function e7($){x.getCurrentStack=$===null?null:aJ,D4=!1,_6=$}function d8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function v2($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function W1($,Z){if(v2($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,d8($)),U5($)}function T$($,Z){if(v2($))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.",Z,d8($)),U5($)}function g0($){if(v2($))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.",d8($)),U5($)}function $9($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.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{O9=Z.inject($),S5=Z}catch(Q){console.error("React instrumentation encountered an error: %o.",Q)}return Z.checkDCE?!0:!1}function P1($){if(typeof GC==="function"&&qC($),S5&&typeof S5.setStrictMode==="function")try{S5.setStrictMode(O9,$)}catch(Z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function iJ($){return $>>>=0,$===0?32:31-(YC($)/XC|0)|0}function B4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){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 $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&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."),$}}function p8($,Z,Q){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,z=$.pingedLanes;$=$.warmLanes;var w=Y&134217727;return w!==0?(Y=w&~B,Y!==0?U=B4(Y):(z&=w,z!==0?U=B4(z):Q||(Q=w&~$,Q!==0&&(U=B4(Q))))):(w=Y&~B,w!==0?U=B4(w):z!==0?U=B4(z):Q||(Q=Y&~$,Q!==0&&(U=B4(Q)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,Q=Z&-Z,B>=Q||B===32&&(Q&4194048)!==0)?Z:U}function c8($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function zq($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+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 Z+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 Z9(){var $=HG;return HG<<=1,(HG&62914560)===0&&(HG=4194304),$}function J9($){for(var Z=[],Q=0;31>Q;Q++)Z.push($);return Z}function k2($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function tJ($,Z,Q,Y,U,B){var z=$.pendingLanes;$.pendingLanes=Q,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Q,$.entangledLanes&=Q,$.errorRecoveryDisabledLanes&=Q,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:L,hiddenUpdates:T}=$;for(Q=z&~Q;0<Q;){var b=31-y5(Q),f=1<<b;w[b]=0,L[b]=-1;var S=T[b];if(S!==null)for(T[b]=null,b=0;b<S.length;b++){var g=S[b];g!==null&&(g.lane&=-536870913)}Q&=~f}Y!==0&&l8($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(z&~Z))}function l8($,Z,Q){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|Q&261930}function r8($,Z){var Q=$.entangledLanes|=Z;for($=$.entanglements;Q;){var Y=31-y5(Q),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),Q&=~U}}function s8($,Z){var Q=Z&-Z;return Q=(Q&42)!==0?1:n8(Q),(Q&($.suspendedLanes|Z))!==0?0:Q}function n8($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=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:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function C$($,Z,Q){if(v4)for($=$.pendingUpdatersLaneMap;0<Q;){var Y=31-y5(Q),U=1<<Y;$[Y].add(Z),Q&=~U}}function b2($,Z){if(v4)for(var{pendingUpdatersLaneMap:Q,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=Q[U],0<U.size&&(U.forEach(function(B){var z=B.alternate;z!==null&&Y.has(z)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,L6!==0&&L6<$?J4!==0&&J4<$?($&134217727)!==0?k4:FG:J4:L6}function y(){var $=U1.p;if($!==0)return $;return $=window.event,$===void 0?k4:WW($.type)}function r($,Z){var Q=U1.p;try{return U1.p=$,Z()}finally{U1.p=Q}}function Z0($){delete $[_5],delete $[g5],delete $[fX],delete $[NC],delete $[UC]}function N0($){var Z=$[_5];if(Z)return Z;for(var Q=$.parentNode;Q;){if(Z=Q[i2]||Q[_5]){if(Q=Z.alternate,Z.child!==null||Q!==null&&Q.child!==null)for($=$W($);$!==null;){if(Q=$[_5])return Q;$=$W($)}return Z}$=Q,Q=$.parentNode}return null}function j0($){if($=$[_5]||$[i2]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function v0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Q1($){var Z=$[DW];return Z||(Z=$[DW]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[UZ]=!0}function A5($,Z){U6($,Z),U6($+"Capture",Z)}function U6($,Z){K7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),K7[$]=Z;var Q=$.toLowerCase();yX[Q]=$,$==="onDoubleClick"&&(yX.ondblclick=$);for($=0;$<Z.length;$++)jW.add(Z[$])}function f2($,Z){KC[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="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`.")),Z.onChange||Z.readOnly||Z.disabled||Z.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 O$($){if(Z4.call(kW,$))return!0;if(Z4.call(vW,$))return!1;if(BC.test($))return kW[$]=!0;return vW[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function OK($,Z,Q){if(O$(Z)){if(!$.hasAttribute(Z)){switch(typeof Q){case"symbol":case"object":return Q;case"function":return Q;case"boolean":if(Q===!1)return Q}return Q===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&Q===!0)return!0;return W1(Q,Z),$===""+Q?Q:$}}function eJ($,Z,Q){if(O$(Z))if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}W1(Q,Z),$.setAttribute(Z,""+Q)}}function $Q($,Z,Q){if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}W1(Q,Z),$.setAttribute(Z,""+Q)}}function n4($,Z,Q,Y){if(Y===null)$.removeAttribute(Q);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}W1(Y,Q),$.setAttributeNS(Z,Q,""+Y)}}function E6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return g0($),$;default:return""}}function IK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XP($,Z,Q){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(z){g0(z),Q=""+z,B.call(this,z)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return Q},setValue:function(z){g0(z),Q=""+z},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Mq($){if(!$._valueTracker){var Z=IK($)?"checked":"value";$._valueTracker=XP($,Z,""+$[Z])}}function VK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var Q=Z.getValue(),Y="";return $&&(Y=IK($)?$.checked?"true":"false":$.value),$=Y,$!==Q?(Z.setValue($),!0):!1}function ZQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function S6($){return $.replace(HC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function AK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||fW||(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",i6()||"A component",Z.type),fW=!0),Z.value===void 0||Z.defaultValue===void 0||bW||(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",i6()||"A component",Z.type),bW=!0)}function wq($,Z,Q,Y,U,B,z,w){if($.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(W1(z,"type"),$.type=z):$.removeAttribute("type"),Z!=null)if(z==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+E6(Z)}else $.value!==""+E6(Z)&&($.value=""+E6(Z));else z!=="submit"&&z!=="reset"||$.removeAttribute("value");Z!=null?Rq($,z,E6(Z)):Q!=null?Rq($,z,E6(Q)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(W1(w,"name"),$.name=""+E6(w)):$.removeAttribute("name")}function EK($,Z,Q,Y,U,B,z,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(W1(B,"type"),$.type=B),Z!=null||Q!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Mq($);return}Q=Q!=null?""+E6(Q):"",Z=Z!=null?""+E6(Z):Q,w||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=w?$.checked:!!Y,$.defaultChecked=!!Y,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(W1(z,"name"),$.name=z),Mq($)}function Rq($,Z,Q){Z==="number"&&ZQ($.ownerDocument)===$||$.defaultValue===""+Q||($.defaultValue=""+Q)}function SK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?z$.Children.forEach(Z.children,function(Q){Q==null||typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint"||gW||(gW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||hW||(hW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||yW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),yW=!0)}function DK(){var $=i6();return $?`
34
-
35
- Check the render method of \``+$+"`.":""}function Q9($,Z,Q,Y){if($=$.options,Z){Z={};for(var U=0;U<Q.length;U++)Z["$"+Q[U]]=!0;for(Q=0;Q<$.length;Q++)U=Z.hasOwnProperty("$"+$[Q].value),$[Q].selected!==U&&($[Q].selected=U),U&&Y&&($[Q].defaultSelected=!0)}else{Q=""+E6(Q),Z=null;for(U=0;U<$.length;U++){if($[U].value===Q){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function jK($,Z){for($=0;$<xW.length;$++){var Q=xW[$];if(Z[Q]!=null){var Y=G5(Z[Q]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Q,DK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,DK())}}Z.value===void 0||Z.defaultValue===void 0||uW||(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"),uW=!0)}function vK($,Z){Z.value===void 0||Z.defaultValue===void 0||mW||(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",i6()||"A component"),mW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function kK($,Z,Q){if(Z!=null&&(Z=""+E6(Z),Z!==$.value&&($.value=Z),Q==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=Q!=null?""+E6(Q):""}function bK($,Z,Q,Y){if(Z==null){if(Y!=null){if(Q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(G5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}Q=Y}Q==null&&(Q=""),Z=Q}Q=E6(Z),$.defaultValue=Q,Y=$.textContent,Y===Q&&Y!==""&&Y!==null&&($.value=Y),Mq($)}function fK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?fK($.children[0],Z):$}function K6($){return" "+" ".repeat($)}function G9($){return"+ "+" ".repeat($)}function o8($){return"- "+" ".repeat($)}function yK($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function I$($,Z){return dW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function JQ($,Z,Q){var Y=120-2*Q;if(Z===null)return G9(Q)+I$($,Y)+`
36
- `;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),G9(Q)+I$($,Y)+`
37
- `+o8(Q)+I$(Z,Y)+`
38
- `}return K6(Q)+I$($,Y)+`
39
- `}function _q($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,Q){return Q})}function V$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(G5($))return"[...]";if($.$$typeof===E4)return(Z=i($.type))?"<"+Z+">":"<...>";var Q=_q($);if(Q==="Object"){Q="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=V$($[Y],15>Z?Z:15),Z-=U.length,0>Z){Q+=Q===""?"...":", ...";break}Q+=(Q===""?"":",")+Y+":"+U}return"{"+Q+"}"}return Q;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function q9($,Z){return typeof $!=="string"||dW.test($)?"{"+V$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function Lq($,Z,Q){var Y=120-Q.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var z=q9(Z[B],120-Q.length-B.length-1);Y-=B.length+z.length+2,U.push(B+"="+z)}return U.length===0?Q+"<"+$+`>
40
- `:0<Y?Q+"<"+$+" "+U.join(" ")+`>
41
- `:Q+"<"+$+`
42
- `+Q+" "+U.join(`
43
- `+Q+" ")+`
44
- `+Q+`>
45
- `}function NP($,Z,Q){var Y="",U=r0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var z=120-2*Q-B.length-2,w=V$($[B],z);Z.hasOwnProperty(B)?(z=V$(Z[B],z),Y+=G9(Q)+B+": "+w+`
46
- `,Y+=o8(Q)+B+": "+z+`
47
- `):Y+=G9(Q)+B+": "+w+`
48
- `}for(var L in U)U.hasOwnProperty(L)&&($=V$(U[L],120-2*Q-L.length-2),Y+=o8(Q)+L+": "+$+`
49
- `);return Y}function UP($,Z,Q,Y){var U="",B=new Map;for(T in Q)Q.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=Lq($,Z,K6(Y));else{for(var z in Z)if(Z.hasOwnProperty(z)&&z!=="children"){var w=120-2*(Y+1)-z.length-1,L=B.get(z.toLowerCase());if(L!==void 0){B.delete(z.toLowerCase());var T=Z[z];L=Q[L];var b=q9(T,w);w=q9(L,w),typeof T==="object"&&T!==null&&typeof L==="object"&&L!==null&&_q(T)==="Object"&&_q(L)==="Object"&&(2<Object.keys(T).length||2<Object.keys(L).length||-1<b.indexOf("...")||-1<w.indexOf("..."))?U+=K6(Y+1)+z+`={{
50
- `+NP(T,L,Y+2)+K6(Y+1)+`}}
51
- `:(U+=G9(Y+1)+z+"="+b+`
52
- `,U+=o8(Y+1)+z+"="+w+`
53
- `)}else U+=K6(Y+1)+z+"="+q9(Z[z],w)+`
54
- `}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=o8(Y+1)+f+"="+q9(Q[f],S)+`
55
- `}}),U=U===""?K6(Y)+"<"+$+`>
56
- `:K6(Y)+"<"+$+`
57
- `+U+K6(Y)+`>
58
- `}if($=Q.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=JQ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+JQ(""+Z,null,Y+1):U+JQ(""+Z,void 0,Y+1);return U}function gK($,Z){var Q=yK($);if(Q===null){Q="";for($=$.child;$;)Q+=gK($,Z),$=$.sibling;return Q}return K6(Z)+"<"+Q+`>
59
- `}function Pq($,Z){var Q=fK($,Z);if(Q!==$&&($.children.length!==1||$.children[0]!==Q))return K6(Z)+`...
60
- `+Pq(Q,Z+1);Q="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(Q+=K6(Z)+"<"+B+`>
61
- `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=JQ(U,$.serverProps,Z),Z++;else if(B=yK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var z=120-2*Y-B.length-2,w="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=q9(U[T],15);if(z-=T.length+L.length+2,0>z){w+=" ...";break}w+=" "+T+"="+L}Y=K6(Y)+"<"+B+w+`>
62
- `,Z++}else $.serverProps===null?(Y=Lq(B,U,G9(Z)),Z++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=UP(B,U,$.serverProps,Z),Z++);var T="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)z=$.children[B],z.fiber===U?(T+=Pq(z,Z),B++):T+=gK(U,Z),U=U.sibling;U&&0<$.children.length&&(T+=K6(Z)+`...
63
- `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(o8(Z)+I$(B,120-2*Z)+`
64
- `):T+Lq(B.type,B.props,o8(Z));return Q+Y+T}function Tq($){try{return`
65
-
66
- `+Pq($,0)}catch(Z){return""}}function hK($,Z,Q){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?Q:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?Tq(U).replaceAll(/^[+-]/gm,">"):""}function uK($,Z){var Q=r0({},$||cW),Y={tag:Z};if(pW.indexOf(Z)!==-1&&(Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null),WC.indexOf(Z)!==-1&&(Q.pTagInButtonScope=null),FC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(Q.listItemTagAutoclosing=null,Q.dlItemTagAutoclosing=null),Q.current=Y,Z==="form"&&(Q.formTag=Y),Z==="a"&&(Q.aTagInScope=Y),Z==="button"&&(Q.buttonTagInScope=Y),Z==="nobr"&&(Q.nobrTagInScope=Y),Z==="p"&&(Q.pTagInButtonScope=Y),Z==="li"&&(Q.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")Q.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?Q.containerTagInScope=null:Q.containerTagInScope||(Q.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?Q.implicitRootScope===!0&&(Q.implicitRootScope=!1):Q.implicitRootScope=!0,Q}function xK($,Z,Q){switch(Z){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(Q)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!Q)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return zC.indexOf(Z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Z==null;case"head":return Q||Z===null;case"html":return Q&&Z==="#document"||Z===null;case"body":return Q&&(Z==="#document"||Z==="html")||Z===null}return!0}function KP($,Z){switch($){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 Z.pTagInButtonScope;case"form":return Z.formTag||Z.pTagInButtonScope;case"li":return Z.listItemTagAutoclosing;case"dd":case"dt":return Z.dlItemTagAutoclosing;case"button":return Z.buttonTagInScope;case"a":return Z.aTagInScope;case"nobr":return Z.nobrTagInScope}return null}function mK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function Cq($,Z){Z=Z||cW;var Q=Z.current;if(Z=(Q=xK($,Q&&Q.tag,Z.implicitRootScope)?null:Q)?null:KP($,Z),Z=Q||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!Q)+"|"+$+"|"+Y,WG[Z])return!1;WG[Z]=!0;var U=(Z=_6)?mK(Z.return,Y):null,B=Z!==null&&U!==null?hK(U,Z,null):"",z="<"+$+">";return Q?(Q="",Y==="table"&&$==="tr"&&(Q+=" 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`,z,Y,Q,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,z,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||q0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,Y,z)})),!1}function QQ($,Z,Q){if(Q||xK("#text",Z,!1))return!0;if(Q="#text|"+Z,WG[Q])return!1;WG[Q]=!0;var Y=(Q=_6)?mK(Q,Z):null;return Q=Q!==null&&Y!==null?hK(Y,Q,Q.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
- This will cause a hydration error.%s`,Z,Q):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`,Z,Q),!1}function A$($,Z){if(Z){var Q=$.firstChild;if(Q&&Q===$.lastChild&&Q.nodeType===3){Q.nodeValue=Z;return}}$.textContent=Z}function BP($){return $.replace(RC,function(Z,Q){return Q.toUpperCase()})}function dK($,Z,Q){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?I9.hasOwnProperty(Z)&&I9[Z]||(I9[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,BP(Z.replace(wC,"ms-")))):MC.test(Z)?I9.hasOwnProperty(Z)&&I9[Z]||(I9[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!sW.test(Q)||hX.hasOwnProperty(Q)&&hX[Q]||(hX[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,Q.replace(sW,""))),typeof Q==="number"&&(isNaN(Q)?nW||(nW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(Q)||oW||(oW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),Q==null||typeof Q==="boolean"||Q===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,Q):typeof Q!=="number"||Q===0||aW.has(Z)?Z==="float"?$.cssFloat=Q:(T$(Q,Z),$[Z]=(""+Q).trim()):$[Z]=Q+"px"}function pK($,Z,Q){if(Z!=null&&typeof Z!=="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(Z&&Object.freeze(Z),$=$.style,Q!=null){if(Z){var Y={};if(Q){for(var U in Q)if(Q.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=gX[U]||[U],z=0;z<B.length;z++)Y[B[z]]=U}for(var w in Z)if(Z.hasOwnProperty(w)&&(!Q||Q[w]!==Z[w]))for(U=gX[w]||[w],B=0;B<U.length;B++)Y[U[B]]=w;w={};for(var L in Z)for(U=gX[L]||[L],B=0;B<U.length;B++)w[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=w[T])&&U!==B&&(z=U+","+B,!L[z])){L[z]=!0,z=console;var b=Z[U];z.error.call(z,"%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.",b==null||typeof b==="boolean"||b===""?"Removing":"Updating",U,B)}}for(var f in Q)!Q.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&Q[S]!==T&&dK($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&dK($,Y,Z[Y])}function E$($){if($.indexOf("-")===-1)return!1;switch($){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 cK($){return _C.get($)||$}function HP($,Z){if(Z4.call(A9,Z)&&A9[Z])return!0;if(PC.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),A9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),A9[Z]=!0}if(LC.test(Z)){if($=Z.toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return A9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),A9[Z]=!0)}return!0}function FP($,Z){var Q=[],Y;for(Y in Z)HP($,Y)||Q.push(Y);Z=Q.map(function(U){return"`"+U+"`"}).join(", "),Q.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<Q.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function WP($,Z,Q,Y){if(Z4.call(h5,Z)&&h5[Z])return!0;var U=Z.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."),h5[Z]=!0;if(typeof Q==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),h5[Z]=!0;if(eW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(eW.test(Z))return TC.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(CC.test(Z)||OC.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h5[Z]=!0;if(U==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),h5[Z]=!0;if(typeof Q==="number"&&isNaN(Q))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(MG.hasOwnProperty(U)){if(U=MG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),h5[Z]=!0}else if(Z!==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.",Z,U),h5[Z]=!0;switch(Z){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 Q){case"boolean":switch(Z){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=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return Q?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()}.',Q,Z,Z,Q,Z):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.',Q,Z,Z,Q,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(Q==="false"||Q==="true"){switch(Z){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}?",Q,Z,Q==="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".',Z,Q),h5[Z]=!0}}return!0}function zP($,Z,Q){var Y=[],U;for(U in Z)WP($,U,Z[U],Q)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.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 ",Z,$):1<Y.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 ",Z,$)}function S$($){return IC.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function Oq($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function lK($){var Z=j0($);if(Z&&($=Z.stateNode)){var Q=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(wq($,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name),Z=Q.name,Q.type==="radio"&&Z!=null){for(Q=$;Q.parentNode;)Q=Q.parentNode;W1(Z,"name"),Q=Q.querySelectorAll('input[name="'+S6(""+Z)+'"][type="radio"]');for(Z=0;Z<Q.length;Z++){var Y=Q[Z];if(Y!==$&&Y.form===$.form){var U=Y[g5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");wq(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<Q.length;Z++)Y=Q[Z],Y.form===$.form&&VK(Y)}break $;case"textarea":kK($,Q.value,Q.defaultValue);break $;case"select":Z=Q.value,Z!=null&&Q9($,!!Q.multiple,Z,!1)}}}function rK($,Z,Q){if(uX)return $(Z,Q);uX=!0;try{var Y=$(Z);return Y}finally{if(uX=!1,E9!==null||S9!==null){if(z9(),E9&&(Z=E9,$=S9,S9=E9=null,lK(Z),$))for(Z=0;Z<$.length;Z++)lK($[Z])}}}function D$($,Z){var Q=$.stateNode;if(Q===null)return null;var Y=Q[g5]||null;if(Y===null)return null;Q=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(Q&&typeof Q!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof Q+"` type.");return Q}function sK(){if(wG)return wG;var $,Z=mX,Q=Z.length,Y,U="value"in t2?t2.value:t2.textContent,B=U.length;for($=0;$<Q&&Z[$]===U[$];$++);var z=Q-$;for(Y=1;Y<=z&&Z[Q-Y]===U[B-Y];Y++);return wG=U.slice($,1<Y?1-Y:void 0)}function GQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function qQ(){return!0}function nK(){return!1}function c5($){function Z(Q,Y,U,B,z){this._reactName=Q,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=z,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(Q=$[w],this[w]=Q?Q(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?qQ:nK,this.isPropagationStopped=nK,this}return r0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!=="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=qQ)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!=="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=qQ)},persist:function(){},isPersistent:qQ}),Z}function MP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=hC[$])?!!Z[$]:!1}function Iq(){return MP}function oK($,Z){switch($){case"keyup":return aC.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==Qz;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function wP($,Z){switch($){case"compositionend":return aK(Z);case"keypress":if(Z.which!==qz)return null;return Xz=!0,Yz;case"textInput":return $=Z.data,$===Yz&&Xz?null:$;default:return null}}function RP($,Z){if(D9)return $==="compositionend"||!lX&&oK($,Z)?($=sK(),wG=mX=t2=null,D9=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return Gz&&Z.locale!=="ko"?null:Z.data;default:return null}}function iK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!tC[$.type]:Z==="textarea"?!0:!1}function _P($){if(!b4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function tK($,Z,Q,Y){E9?S9?S9.push(Y):S9=[Y]:E9=Y,Z=iQ(Z,"onChange"),0<Z.length&&(Q=new RG("onChange","change",null,Q,Y),$.push({event:Q,listeners:Z}))}function LP($){bF($,0)}function YQ($){var Z=v0($);if(VK(Z))return $}function eK($,Z){if($==="change")return Z}function $B(){zZ&&(zZ.detachEvent("onpropertychange",ZB),MZ=zZ=null)}function ZB($){if($.propertyName==="value"&&YQ(MZ)){var Z=[];tK(Z,MZ,$,Oq($)),rK(LP,Z)}}function PP($,Z,Q){$==="focusin"?($B(),zZ=Z,MZ=Q,zZ.attachEvent("onpropertychange",ZB)):$==="focusout"&&$B()}function TP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return YQ(MZ)}function CP($,Z){if($==="click")return YQ(Z)}function OP($,Z){if($==="input"||$==="change")return YQ(Z)}function IP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function j$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var Q=Object.keys($),Y=Object.keys(Z);if(Q.length!==Y.length)return!1;for(Y=0;Y<Q.length;Y++){var U=Q[Y];if(!Z4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function JB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function QB($,Z){var Q=JB($);$=0;for(var Y;Q;){if(Q.nodeType===3){if(Y=$+Q.textContent.length,$<=Z&&Y>=Z)return{node:Q,offset:Z-$};$=Y}$:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break $}Q=Q.parentNode}Q=void 0}Q=JB(Q)}}function GB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?GB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function qB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=ZQ($.document);Z instanceof $.HTMLIFrameElement;){try{var Q=typeof Z.contentWindow.location.href==="string"}catch(Y){Q=!1}if(Q)$=Z.contentWindow;else break;Z=ZQ($.document)}return Z}function Vq($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function YB($,Z,Q){var Y=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;sX||j9==null||j9!==ZQ(Y)||(Y=j9,("selectionStart"in Y)&&Vq(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),wZ&&j$(wZ,Y)||(wZ=Y,Y=iQ(rX,"onSelect"),0<Y.length&&(Z=new RG("onSelect","select",null,Z,Q),$.push({event:Z,listeners:Y}),Z.target=j9)))}function a8($,Z){var Q={};return Q[$.toLowerCase()]=Z.toLowerCase(),Q["Webkit"+$]="webkit"+Z,Q["Moz"+$]="moz"+Z,Q}function i8($){if(nX[$])return nX[$];if(!v9[$])return $;var Z=v9[$],Q;for(Q in Z)if(Z.hasOwnProperty(Q)&&Q in Uz)return nX[$]=Z[Q];return $}function t6($,Z){Wz.set($,Z),A5(Z,[$])}function VP($){for(var Z=LG,Q=0;Q<$.length;Q++){var Y=$[Q];if(typeof Y==="object"&&Y!==null)if(G5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==LG&&Z!==eX)return iX;Z=eX}else return iX;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==LG&&Z!==tX)return iX;Z=tX}}return Z}function Aq($,Z,Q,Y){for(var U in $)Z4.call($,U)&&U[0]!=="_"&&H4(U,$[U],Z,Q,Y)}function H4($,Z,Q,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===E4){var B=i(Z.type)||"…",z=Z.key;Z=Z.props;var w=Object.keys(Z),L=w.length;if(z==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&w[0]==="children"&&z==null){Z="<"+B+" … />";break}Q.push([U+"  ".repeat(Y)+$,"<"+B]),z!==null&&H4("key",z,Q,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!G5(Z.children)||0<Z.children.length)&&($=!0):Z4.call(Z,T)&&T[0]!=="_"&&H4(T,Z[T],Q,Y+1,U);Q.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=VP(Z),T===tX||T===LG){Z=JSON.stringify(Z);break}else if(T===eX){Q.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],H4(B[0],B[1],Q,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=Q.length,H4($,Z.value,Q,Y,U),Q.length>B){Q=Q[B],Q[1]="Promise<"+(Q[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=Q.length,H4($,Z.reason,Q,Y,U),Q.length>B)){Q=Q[B],Q[1]="Rejected Promise<"+Q[1]+">";return}Q.push(["  ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),Q.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&Aq(Z,Q,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===qO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}Q.push([U+"  ".repeat(Y)+$,Z])}function XB($,Z,Q,Y){var U=!0;for(z in $)z in Z||(Q.push([PG+"  ".repeat(Y)+z,"…"]),U=!1);for(var B in Z)if(B in $){var z=$[B],w=Z[B];if(z!==w){if(Y===0&&B==="children")U="  ".repeat(Y)+B,Q.push([PG+U,"…"],[TG+U,"…"]);else{if(!(3<=Y)){if(typeof z==="object"&&typeof w==="object"&&z!==null&&w!==null&&z.$$typeof===w.$$typeof)if(w.$$typeof===E4){if(z.type===w.type&&z.key===w.key){z=i(w.type)||"…",U="  ".repeat(Y)+B,z="<"+z+" … />",Q.push([PG+U,z],[TG+U,z]),U=!1;continue}}else{var L=Object.prototype.toString.call(z),T=Object.prototype.toString.call(w);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[wz+"  ".repeat(Y)+B,T==="[object Array]"?"Array":""],Q.push(L),T=Q.length,XB(z,w,Q,Y+1)?T===Q.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof z==="function"&&typeof w==="function"&&z.name===w.name&&z.length===w.length&&(L=Function.prototype.toString.call(z),T=Function.prototype.toString.call(w),L===T)){z=w.name===""?"() => {}":w.name+"() {}",Q.push([wz+"  ".repeat(Y)+B,z+" Referentially unequal function closure. Consider memoization."]);continue}}H4(B,z,Q,Y,PG),H4(B,w,Q,Y,TG)}U=!1}}else Q.push([TG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function B6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,Q,Y){I1&&($8.start=Z,$8.end=Q,G2.color="warning",G2.tooltipText=Y,G2.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,$8)):performance.measure(Y,$8))}function XQ($,Z,Q){F4($,Z,Q,"Reconnect")}function NQ($,Z,Q,Y,U){var B=d($);if(B!==null&&I1){var{alternate:z,actualDuration:w}=$;if(z===null||z.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)w-=L.actualDuration;Y=0.5>w?Y?"tertiary-light":"primary-light":10>w?Y?"tertiary":"primary":100>w?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;w=$._debugTask,T!==null&&z!==null&&z.memoizedProps!==T?(L=[YO],T=XB(z.memoizedProps,T,L,0),1<L.length&&(T&&!e2&&(z.lanes&U)===0&&100<$.actualDuration?(e2=!0,L[0]=XO,G2.color="warning",G2.tooltipText=Rz):(G2.color=Y,G2.tooltipText=B),G2.properties=L,$8.start=Z,$8.end=Q,w!=null?w.run(performance.measure.bind(performance,"​"+B,$8)):performance.measure("​"+B,$8))):w!=null?w.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,Y)):console.timeStamp(B,Z,Q,j6,void 0,Y)}}function Eq($,Z,Q,Y){if(I1){var U=d($);if(U!==null){for(var B=null,z=[],w=0;w<Y.length;w++){var L=Y[w];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,z.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&H4("key",$.key,z,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,z,0,""),B==null&&(B=$._debugTask),$={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function W4($,Z,Q,Y,U){if(U!==null){if(I1){var B=d($);if(B!==null){Y=[];for(var z=0;z<U.length;z++){var w=U[z].value;Y.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&H4("key",$.key,Y,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,Y,0,""),Z={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,"​"+B,Z)):performance.measure("​"+B,Z)}}}else B=d($),B!==null&&I1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,U)):console.timeStamp(B,Z,Q,j6,void 0,U))}function AP($,Z,Q,Y){if(I1&&!(Z<=$)){var U=(Q&738197653)===Q?"tertiary-dark":"primary-dark";Q=(Q&536870912)===Q?"Prepared":(Q&201326741)===Q?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,s0,U)):console.timeStamp(Q,$,Z,o0,s0,U)}}function NB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,s0,Q)):console.timeStamp("Prewarm",$,Z,o0,s0,Q))}function UB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,s0,Q)):console.timeStamp("Suspended",$,Z,o0,s0,Q))}function EP($,Z,Q,Y,U,B){if(I1&&!(Z<=$)){Q=[];for(var z=0;z<Y.length;z++){var w=Y[z].value;Q.push(["Recoverable Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:s0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:Q}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function Sq($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,s0,"error")):console.timeStamp("Errored",$,Z,o0,s0,"error"))}function SP($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,s0,"secondary-light")):console.timeStamp(Q,$,Z,o0,s0,"secondary-light"))}function KB($,Z,Q,Y,U){if(I1&&!(Z<=$)){for(var B=[],z=0;z<Q.length;z++){var w=Q[z].value;B.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:s0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function v$($,Z,Q){!I1||Z<=$||(Q?Q.run(console.timeStamp.bind(console,"Animating",$,Z,o0,s0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,s0,"secondary-dark"))}function UQ(){for(var $=k9,Z=$N=k9=0;Z<$;){var Q=v6[Z];v6[Z++]=null;var Y=v6[Z];v6[Z++]=null;var U=v6[Z];v6[Z++]=null;var B=v6[Z];if(v6[Z++]=null,Y!==null&&U!==null){var z=Y.pending;z===null?U.next=U:(U.next=z.next,z.next=U),Y.pending=U}B!==0&&BB(Q,U,B)}}function KQ($,Z,Q,Y){v6[k9++]=$,v6[k9++]=Z,v6[k9++]=Q,v6[k9++]=Y,$N|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function Dq($,Z,Q,Y){return KQ($,Z,Q,Y),BQ($)}function E5($,Z){return KQ($,null,null,Z),BQ($)}function BB($,Z,Q){$.lanes|=Q;var Y=$.alternate;Y!==null&&(Y.lanes|=Q);for(var U=!1,B=$.return;B!==null;)B.childLanes|=Q,Y=B.alternate,Y!==null&&(Y.childLanes|=Q),B.tag===22&&($=B.stateNode,$===null||$._visibility&RZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(Q),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=Q|536870912),B):null}function BQ($){if(lZ>TO)throw V7=lZ=0,rZ=kN=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.");V7>CO&&(V7=0,rZ=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.")),$.alternate===null&&($.flags&4098)!==0&&AF($);for(var Z=$,Q=Z.return;Q!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&AF($),Z=Q,Q=Z.return;return Z.tag===3?Z.stateNode:null}function t8($){if(k6===null)return $;var Z=k6($);return Z===void 0?$:Z.current}function jq($){if(k6===null)return $;var Z=k6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=t8($.render),$.render!==Z)?(Z={$$typeof:YZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function HB($,Z){if(k6===null)return!1;var Q=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===R6&&(Y=!0);break;case 11:U===YZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===NG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=k6(Q),$!==void 0&&$===k6(Z))?!0:!1}function FB($){k6!==null&&typeof WeakSet==="function"&&(b9===null&&(b9=new WeakSet),b9.add($))}function WB($,Z,Q){do{var Y=$,U=Y.alternate,B=Y.child,z=Y.sibling,w=Y.tag;Y=Y.type;var L=null;switch(w){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(k6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=k6(L),L!==void 0&&(Q.has(L)?Y=!0:Z.has(L)&&(w===1?Y=!0:T=!0))),b9!==null&&(b9.has($)||U!==null&&b9.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=E5($,2),U!==null&&g1(U,$,2);if(B===null||Y||WB(B,Z,Q),z===null)break;$=z}while(1)}function DP($,Z,Q,Y){this.tag=$,this.key=Q,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,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,_z||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function vq($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var Q=$.alternate;switch(Q===null?(Q=P($.tag,Z,$.key,$.mode),Q.elementType=$.elementType,Q.type=$.type,Q.stateNode=$.stateNode,Q._debugOwner=$._debugOwner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q._debugHookTypes=$._debugHookTypes,Q.alternate=$,$.alternate=Q):(Q.pendingProps=Z,Q.type=$.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null,Q.actualDuration=-0,Q.actualStartTime=-1.1),Q.flags=$.flags&65011712,Q.childLanes=$.childLanes,Q.lanes=$.lanes,Q.child=$.child,Q.memoizedProps=$.memoizedProps,Q.memoizedState=$.memoizedState,Q.updateQueue=$.updateQueue,Z=$.dependencies,Q.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},Q.sibling=$.sibling,Q.index=$.index,Q.ref=$.ref,Q.refCleanup=$.refCleanup,Q.selfBaseDuration=$.selfBaseDuration,Q.treeBaseDuration=$.treeBaseDuration,Q._debugInfo=$._debugInfo,Q._debugNeedsRemount=$._debugNeedsRemount,Q.tag){case 0:case 15:Q.type=t8($.type);break;case 1:Q.type=t8($.type);break;case 11:Q.type=jq($.type)}return Q}function zB($,Z){$.flags&=65011714;var Q=$.alternate;return Q===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Q.childLanes,$.lanes=Q.lanes,$.child=Q.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Q.memoizedProps,$.memoizedState=Q.memoizedState,$.updateQueue=Q.updateQueue,$.type=Q.type,Z=Q.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=Q.selfBaseDuration,$.treeBaseDuration=Q.treeBaseDuration),$}function kq($,Z,Q,Y,U,B){var z=0,w=$;if(typeof $==="function")vq($)&&(z=1),w=t8(w);else if(typeof $==="string")z=F0(),z=uT($,Q,z)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case IX:return Z=P(31,Q,Z,U),Z.elementType=IX,Z.lanes=B,Z;case T9:return e8(Q.children,U,B,Z);case XG:z=8,U|=D5,U|=Q4;break;case PX:return $=Q,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|h0),Z.elementType=PX,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case CX:return Z=P(13,Q,Z,U),Z.elementType=CX,Z.lanes=B,Z;case OX:return Z=P(19,Q,Z,U),Z.elementType=OX,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case S4:z=10;break $;case TX:z=9;break $;case YZ:z=11,w=jq(w);break $;case NG:z=14;break $;case R6:z=16,w=null;break $}if(w="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?Q="null":G5($)?Q="array":$!==void 0&&$.$$typeof===E4?(Q="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof $,(z=Y?X0(Y):null)&&(w+=`
72
-
73
- Check the render method of \``+z+"`."),z=29,Q=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Q+"."+w)),w=null}return Z=P(z,Q,Z,U),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=Y,Z}function HQ($,Z,Q){return Z=kq($.type,$.key,$.props,$._owner,Z,Q),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function e8($,Z,Q,Y){return $=P(7,$,Y,Z),$.lanes=Q,$}function bq($,Z,Q){return $=P(6,$,null,Z),$.lanes=Q,$}function MB($){var Z=P(18,null,null,A0);return Z.stateNode=$,Z}function fq($,Z,Q){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=Q,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function H6($,Z){if(typeof $==="object"&&$!==null){var Q=ZN.get($);if(Q!==void 0)return Q;return Z={value:$,source:Z,stack:o1(Z)},ZN.set($,Z),Z}return{value:$,source:Z,stack:o1(Z)}}function i4($,Z){y2(),f9[y9++]=_Z,f9[y9++]=CG,CG=$,_Z=Z}function wB($,Z,Q){y2(),b6[f6++]=Y2,b6[f6++]=X2,b6[f6++]=H7,H7=$;var Y=Y2;$=X2;var U=32-y5(Y)-1;Y&=~(1<<U),Q+=1;var B=32-y5(Z)+U;if(30<B){var z=U-U%5;B=(Y&(1<<z)-1).toString(32),Y>>=z,U-=z,Y2=1<<32-y5(Z)+U|Q<<U|Y,X2=B+$}else Y2=1<<B|Q<<U|Y,X2=$}function yq($){y2(),$.return!==null&&(i4($,1),wB($,1,0))}function gq($){for(;$===CG;)CG=f9[--y9],f9[y9]=null,_Z=f9[--y9],f9[y9]=null;for(;$===H7;)H7=b6[--f6],b6[f6]=null,X2=b6[--f6],b6[f6]=null,Y2=b6[--f6],b6[f6]=null}function RB(){return y2(),H7!==null?{id:Y2,overflow:X2}:null}function _B($,Z){y2(),b6[f6++]=Y2,b6[f6++]=X2,b6[f6++]=H7,Y2=Z.id,X2=Z.overflow,H7=$}function y2(){i0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $7($,Z){if($.return===null){if(P6===null)P6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(P6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");P6.distanceFromLeaf>Z&&(P6.distanceFromLeaf=Z)}return P6}var Q=$7($.return,Z+1).children;if(0<Q.length&&Q[Q.length-1].fiber===$)return Q=Q[Q.length-1],Q.distanceFromLeaf>Z&&(Q.distanceFromLeaf=Z),Q;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},Q.push(Z),Z}function LB(){i0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function FQ($,Z){f4||($=$7($,0),$.serverProps=null,Z!==null&&(Z=tF(Z),$.serverTail.push(Z)))}function g2($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Q="",Y=P6;throw Y!==null&&(P6=null,Q=Tq(Y)),k$(H6(Error("Hydration failed because the server rendered "+(Z?"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:
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
18
+ `)&&(e=e.slice(29)),t=e.indexOf(`
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(Dy===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);Dy=t&&t[1]||"",EC=-1<o.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+Dy+e+EC}function qt(e,t){if(!e||Ey)return"";var o=Oy.get(e);if(o!==void 0)return o;Ey=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var l=null;l=H.H,H.H=null,Z();try{var u={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(te){var N=te}Reflect.construct(e,[],k)}else{try{k.call()}catch(te){N=te}e.call(k.prototype)}}else{try{throw Error()}catch(te){N=te}(k=e())&&typeof k.catch==="function"&&k.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
+ `),O=v.split(`
24
+ `);for(m=d=0;d<L.length&&!L[d].includes("DetermineComponentFrameRoot");)d++;for(;m<O.length&&!O[m].includes("DetermineComponentFrameRoot");)m++;if(d===L.length||m===O.length)for(d=L.length-1,m=O.length-1;1<=d&&0<=m&&L[d]!==O[m];)m--;for(;1<=d&&0<=m;d--,m--)if(L[d]!==O[m]){if(d!==1||m!==1)do if(d--,m--,0>m||L[d]!==O[m]){var P=`
25
+ `+L[d].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e==="function"&&Oy.set(e,P),P}while(1<=d&&0<=m);break}}}finally{Ey=!1,H.H=l,me(),Error.prepareStackTrace=o}return L=(L=e?e.displayName||e.name:"")?Ge(L):"",typeof e==="function"&&Oy.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 qt(e.type,!1);case 11:return qt(e.type.render,!1);case 1:return qt(e.type,!0);case 31:return Ge("Activity");default:return""}}function Zt(e){try{var t="",o=null;do{t+=Pe(e,o);var l=e._debugInfo;if(l)for(var u=l.length-1;0<=u;u--){var d=l[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
+ `),k=P===-1?O:O.slice(P+1);if(k.indexOf(y)!==-1){var N=`
27
+ `+k;break e}}N=Ge(y+(v?" ["+v+"]":""))}t=m+N}}o=e,e=e.return}while(e);return t}catch(te){return`
28
+ Error generating stack: `+te.message+`
29
+ `+te.stack}}function Ia(e){return(e=e?e.displayName||e.name:"")?Ge(e):""}function Jo(){if(So===null)return null;var e=So._debugOwner;return e!=null?re(e):null}function Jd(){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+=Ia(e.type));break;case 11:e._debugOwner||t!==""||(t+=Ia(e.type.render))}for(;e;)if(typeof e.tag==="number"){var o=e;e=o._debugOwner;var l=o._debugStack;if(e&&l){var u=ge(l);u!==""&&(t+=`
30
+ `+u)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
31
+ `+ge(d))}else break;var m=t}catch(y){m=`
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,l){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&&l&&(e[o].defaultSelected=!0)}else{o=""+Ro(o),t=null;for(u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Pv(e,t){for(e=0;e<jC.length;e++){var o=jC[e];if(t[o]!=null){var l=sa(t[o]);t.multiple&&!l?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,Ov()):!t.multiple&&l&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,Ov())}}t.value===void 0||t.defaultValue===void 0||VC||(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"),VC=!0)}function Bv(e,t){t.value===void 0||t.defaultValue===void 0||GC||(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",Jo()||"A component"),GC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Nv(e,t,o){if(t!=null&&(t=""+Ro(t),t!==e.value&&(e.value=t),o==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=o!=null?""+Ro(o):""}function zv(e,t,o,l){if(t==null){if(l!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(sa(l)){if(1<l.length)throw Error("<textarea> can only have at most one child.");l=l[0]}o=l}o==null&&(o=""),t=o}o=Ro(t),e.defaultValue=o,l=e.textContent,l===o&&l!==""&&l!==null&&(e.value=l),vm(e)}function Uv(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Uv(e.children[0],t):e}function fo(e){return" "+" ".repeat(e)}function ir(e){return"+ "+" ".repeat(e)}function Kl(e){return"- "+" ".repeat(e)}function Hv(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 Au(e,t){return YC.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 sf(e,t,o){var l=120-2*o;if(t===null)return ir(o)+Au(e,l)+`
36
+ `;if(typeof t==="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>l-8&&10<u&&(e="..."+e.slice(u-8),t="..."+t.slice(u-8)),ir(o)+Au(e,l)+`
37
+ `+Kl(o)+Au(t,l)+`
38
+ `}return fo(o)+Au(e,l)+`
39
+ `}function Cm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,o){return o})}function ku(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(sa(e))return"[...]";if(e.$$typeof===_n)return(t=K(e.type))?"<"+t+">":"<...>";var o=Cm(e);if(o==="Object"){o="",t-=2;for(var l in e)if(e.hasOwnProperty(l)){var u=JSON.stringify(l);if(u!=='"'+l+'"'&&(l=u),t-=l.length-2,u=ku(e[l],15>t?t:15),t-=u.length,0>t){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+l+":"+u}return"{"+o+"}"}return o;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function rr(e,t){return typeof e!=="string"||YC.test(e)?"{"+ku(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Tm(e,t,o){var l=120-o.length-e.length,u=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var m=rr(t[d],120-o.length-d.length-1);l-=d.length+m.length+2,u.push(d+"="+m)}return u.length===0?o+"<"+e+`>
40
+ `:0<l?o+"<"+e+" "+u.join(" ")+`>
41
+ `:o+"<"+e+`
42
+ `+o+" "+u.join(`
43
+ `+o+" ")+`
44
+ `+o+`>
45
+ `}function fk(e,t,o){var l="",u=Xe({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete u[d];var m=120-2*o-d.length-2,y=ku(e[d],m);t.hasOwnProperty(d)?(m=ku(t[d],m),l+=ir(o)+d+": "+y+`
46
+ `,l+=Kl(o)+d+": "+m+`
47
+ `):l+=ir(o)+d+": "+y+`
48
+ `}for(var v in u)u.hasOwnProperty(v)&&(e=ku(u[v],120-2*o-v.length-2),l+=Kl(o)+v+": "+e+`
49
+ `);return l}function hk(e,t,o,l){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+=Tm(e,t,fo(l));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var y=120-2*(l+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=rr(L,y);y=rr(v,y),typeof L==="object"&&L!==null&&typeof v==="object"&&v!==null&&Cm(L)==="Object"&&Cm(v)==="Object"&&(2<Object.keys(L).length||2<Object.keys(v).length||-1<O.indexOf("...")||-1<y.indexOf("..."))?u+=fo(l+1)+m+`={{
50
+ `+fk(L,v,l+2)+fo(l+1)+`}}
51
+ `:(u+=ir(l+1)+m+"="+O+`
52
+ `,u+=Kl(l+1)+m+"="+y+`
53
+ `)}else u+=fo(l+1)+m+"="+rr(t[m],y)+`
54
+ `}d.forEach(function(P){if(P!=="children"){var k=120-2*(l+1)-P.length-1;u+=Kl(l+1)+P+"="+rr(o[P],k)+`
55
+ `}}),u=u===""?fo(l)+"<"+e+`>
56
+ `:fo(l)+"<"+e+`
57
+ `+u+fo(l)+`>
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+=sf(d,""+e,l+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")u=e==null?u+sf(""+t,null,l+1):u+sf(""+t,void 0,l+1);return u}function Fv(e,t){var o=Hv(e);if(o===null){o="";for(e=e.child;e;)o+=Fv(e,t),e=e.sibling;return o}return fo(t)+"<"+o+`>
59
+ `}function wm(e,t){var o=Uv(e,t);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return fo(t)+`...
60
+ `+wm(o,t+1);o="";var l=e.fiber._debugInfo;if(l)for(var u=0;u<l.length;u++){var d=l[u].name;typeof d==="string"&&(o+=fo(t)+"<"+d+`>
61
+ `,t++)}if(l="",u=e.fiber.pendingProps,e.fiber.tag===6)l=sf(u,e.serverProps,t),t++;else if(d=Hv(e.fiber),d!==null)if(e.serverProps===void 0){l=t;var m=120-2*l-d.length-2,y="";for(L in u)if(u.hasOwnProperty(L)&&L!=="children"){var v=rr(u[L],15);if(m-=L.length+v.length+2,0>m){y+=" ...";break}y+=" "+L+"="+v}l=fo(l)+"<"+d+y+`>
62
+ `,t++}else e.serverProps===null?(l=Tm(d,u,ir(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."):(l=hk(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+=wm(m,t),d++):L+=Fv(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+(Kl(t)+Au(d,120-2*t)+`
64
+ `):L+Tm(d.type,d.props,Kl(t));return o+l+L}function Mm(e){try{return`
65
+
66
+ `+wm(e,0)}catch(t){return""}}function qv(e,t,o){for(var l=t,u=null,d=0;l;)l===e&&(d=0),u={fiber:l,children:u!==null?[u]:[],serverProps:l===t?o:l===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,l=l.return;return u!==null?Mm(u).replaceAll(/^[+-]/gm,">"):""}function Vv(e,t){var o=Xe({},e||$C),l={tag:t};if(XC.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),b_.indexOf(t)!==-1&&(o.pTagInButtonScope=null),y_.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=l,t==="form"&&(o.formTag=l),t==="a"&&(o.aTagInScope=l),t==="button"&&(o.buttonTagInScope=l),t==="nobr"&&(o.nobrTagInScope=l),t==="p"&&(o.pTagInButtonScope=l),t==="li"&&(o.listItemTagAutoclosing=l),t==="dd"||t==="dt")o.dlItemTagAutoclosing=l;return t==="#document"||t==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=l),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function jv(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 x_.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 pk(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 Gv(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 Im(e,t){t=t||$C;var o=t.current;if(t=(o=jv(e,o&&o.tag,t.implicitRootScope)?null:o)?null:pk(e,t),t=o||t,!t)return!0;var l=t.tag;if(t=String(!!o)+"|"+e+"|"+l,bh[t])return!1;bh[t]=!0;var u=(t=So)?Gv(t.return,l):null,d=t!==null&&u!==null?qv(u,t,null):"",m="<"+e+">";return o?(o="",l==="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,l,o,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,m,l,d),t&&(e=t.return,u===null||e===null||u===e&&e._debugOwner===t._debugOwner||le(u,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,l,m)})),!1}function lf(e,t,o){if(o||jv("#text",t,!1))return!0;if(o="#text|"+t,bh[o])return!1;bh[o]=!0;var l=(o=So)?Gv(o,t):null;return o=o!==null&&l!==null?qv(l,o,o.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
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+=`
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=l,t}function gf(e,t,o){return t=Nm(e.type,e.key,e.props,e._owner,t,o),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ai(e,t,o,l){return e=S(7,e,l,t),e.lanes=o,e}function zm(e,t,o){return e=S(6,e,null,t),e.lanes=o,e}function v0(e){var t=S(18,null,null,Ae);return t.stateNode=e,t}function Um(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=sb.get(e);if(o!==void 0)return o;return t={value:e,source:t,stack:Zt(t)},sb.set(e,t),t}return{value:e,source:t,stack:Zt(t)}}function es(e,t){Us(),zr[Ur++]=Lc,zr[Ur++]=Ih,Ih=e,Lc=t}function S0(e,t,o){Us(),Bo[No++]=us,Bo[No++]=cs,Bo[No++]=mi,mi=e;var l=us;e=cs;var u=32-Na(l)-1;l&=~(1<<u),o+=1;var d=32-Na(t)+u;if(30<d){var m=u-u%5;d=(l&(1<<m)-1).toString(32),l>>=m,u-=m,us=1<<32-Na(t)+u|o<<u|l,cs=d+e}else us=1<<d|o<<u|l,cs=e}function Hm(e){Us(),e.return!==null&&(es(e,1),S0(e,1,0))}function Fm(e){for(;e===Ih;)Ih=zr[--Ur],zr[Ur]=null,Lc=zr[--Ur],zr[Ur]=null;for(;e===mi;)mi=Bo[--No],Bo[No]=null,cs=Bo[--No],Bo[No]=null,us=Bo[--No],Bo[No]=null}function L0(){return Us(),mi!==null?{id:us,overflow:cs}:null}function C0(e,t){Us(),Bo[No++]=us,Bo[No++]=cs,Bo[No++]=mi,us=t.id,cs=t.overflow,mi=e}function Us(){Ke||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function oi(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=oi(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 T0(){Ke&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yf(e,t){zn||(e=oi(e,0),e.serverProps=null,t!==null&&(t=aC(t),e.serverTail.push(t)))}function Hs(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",l=Co;throw l!==null&&(Co=null,o=Mm(l)),Bu(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 \``+z+"`."),z=29,Q=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`+Q),$)),JN}function PB($){var{stateNode:Z,type:Q,memoizedProps:Y}=$;switch(Z[_5]=$,Z[g5]=Y,QX(Q,Y),Q){case"dialog":e0("cancel",Z),e0("close",Z);break;case"iframe":case"object":case"embed":e0("load",Z);break;case"video":case"audio":for(Q=0;Q<sZ.length;Q++)e0(sZ[Q],Z);break;case"source":e0("error",Z);break;case"img":case"image":case"link":e0("error",Z),e0("load",Z);break;case"details":e0("toggle",Z);break;case"input":f2("input",Y),e0("invalid",Z),AK(Z,Y),EK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":SK(Z,Y);break;case"select":f2("select",Y),e0("invalid",Z),jK(Z,Y);break;case"textarea":f2("textarea",Y),e0("invalid",Z),vK(Z,Y),bK(Z,Y.value,Y.defaultValue,Y.children)}Q=Y.children,typeof Q!=="string"&&typeof Q!=="number"&&typeof Q!=="bigint"||Z.textContent===""+Q||Y.suppressHydrationWarning===!0||hF(Z.textContent,Q)?(Y.popover!=null&&(e0("beforetoggle",Z),e0("toggle",Z)),Y.onScroll!=null&&e0("scroll",Z),Y.onScrollEnd!=null&&e0("scrollend",Z),Y.onClick!=null&&(Z.onclick=o4),Z=!0):Z=!1,Z||g2($,!0)}function TB($){for(L5=$.return;L5;)switch(L5.tag){case 5:case 31:case 13:y6=!1;return;case 27:case 3:y6=!0;return;default:L5=L5.return}}function Y9($){if($!==L5)return!1;if(!i0)return TB($),i0=!0,!1;var Z=$.tag,Q;if(Q=Z!==3&&Z!==27){if(Q=Z===5)Q=$.type,Q=!(Q!=="form"&&Q!=="button")||NX($.type,$.memoizedProps);Q=!Q}if(Q&&V1){for(Q=V1;Q;){var Y=$7($,0),U=tF(Q);Y.serverTail.push(U),Q=U.type==="Suspense"?HX(Q):w6(Q.nextSibling)}g2($)}if(TB($),Z===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else if(Z===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else Z===27?(Z=V1,s2($.type)?($=lN,lN=null,V1=$):V1=Z):V1=L5?w6($.stateNode.nextSibling):null;return!0}function Z7(){V1=L5=null,f4=i0=!1}function hq(){var $=J8;return $!==null&&(p5===null?p5=$:p5.push.apply(p5,$),J8=null),$}function k$($){J8===null?J8=[$]:J8.push($)}function uq(){var $=P6;if($!==null){P6=null;for(var Z=Tq($);0<$.children.length;)$=$.children[0];q0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+o),e)),lb}function w0(e){var{stateNode:t,type:o,memoizedProps:l}=e;switch(t[va]=e,t[za]=l,iy(o,l),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<Zc.length;o++)et(Zc[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":zs("input",l),et("invalid",t),_v(t,l),Dv(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"option":Ev(t,l);break;case"select":zs("select",l),et("invalid",t),Pv(t,l);break;case"textarea":zs("textarea",l),et("invalid",t),Bv(t,l),zv(t,l.value,l.defaultValue,l.children)}o=l.children,typeof o!=="string"&&typeof o!=="number"&&typeof o!=="bigint"||t.textContent===""+o||l.suppressHydrationWarning===!0||qL(t.textContent,o)?(l.popover!=null&&(et("beforetoggle",t),et("toggle",t)),l.onScroll!=null&&et("scroll",t),l.onScrollEnd!=null&&et("scrollend",t),l.onClick!=null&&(t.onclick=Kn),t=!0):t=!1,t||Hs(e,!0)}function M0(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:zo=!1;return;case 27:case 3:zo=!0;return;default:Sa=Sa.return}}function ur(e){if(e!==Sa)return!1;if(!Ke)return M0(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")||fy(e.type,e.memoizedProps);o=!o}if(o&&It){for(o=It;o;){var l=oi(e,0),u=aC(o);l.serverTail.push(u),o=u.type==="Suspense"?gy(o):xo(o.nextSibling)}Hs(e)}if(M0(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=gy(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=gy(e)}else t===27?(t=It,Zs(e.type)?(e=Wb,Wb=null,It=e):It=t):It=Sa?xo(e.stateNode.nextSibling):null;return!0}function ni(){It=Sa=null,zn=Ke=!1}function qm(){var e=sl;return e!==null&&(ja===null?ja=e:ja.push.apply(ja,e),sl=null),e}function Bu(e){sl===null?sl=[e]:sl.push(e)}function Vm(){var e=Co;if(e!==null){Co=null;for(var t=Mm(e);0<e.children.length;)e=e.children[0];le(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+Q),$)),JN}function PB($){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",Z)})}}function WQ(){g9=OG=null,h9=!1}function h2($,Z,Q){O0(QN,Z._currentValue,$),Z._currentValue=Q,O0(GN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==Pz&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=Pz}function t4($,Z){$._currentValue=QN.current;var Q=GN.current;P0(GN,Z),$._currentRenderer=Q,P0(QN,Z)}function xq($,Z,Q){for(;$!==null;){var Y=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,Y!==null&&(Y.childLanes|=Z)):Y!==null&&(Y.childLanes&Z)!==Z&&(Y.childLanes|=Z),$===Q)break;$=$.return}$!==Q&&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 mq($,Z,Q,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var z=U.child;B=B.firstContext;$:for(;B!==null;){var w=B;B=U;for(var L=0;L<Z.length;L++)if(w.context===Z[L]){B.lanes|=Q,w=B.alternate,w!==null&&(w.lanes|=Q),xq(B.return,Q,$),Y||(z=null);break $}B=w.next}}else if(U.tag===18){if(z=U.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=Q,B=z.alternate,B!==null&&(B.lanes|=Q),xq(z,Q,$),z=null}else z=U.child;if(z!==null)z.return=U;else for(z=U;z!==null;){if(z===$){z=null;break}if(U=z.sibling,U!==null){U.return=z.return,z=U;break}z=z.return}U=z}}function X9($,Z,Q,Y){$=null;for(var U=Z,B=!1;U!==null;){if(!B){if((U.flags&524288)!==0)B=!0;else if((U.flags&262144)!==0)break}if(U.tag===10){var z=U.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var w=U.type;u5(U.pendingProps.value,z.value)||($!==null?$.push(w):$=[w])}}else if(U===UG.current){if(z=U.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(tZ):$=[tZ])}U=U.return}$!==null&&mq(Z,$,Q,Y),Z.flags|=262144}function zQ($){for($=$.firstContext;$!==null;){if(!u5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function J7($){OG=$,g9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function j1($){return h9&&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()."),CB(OG,$)}function MQ($,Z){return OG===null&&J7($),CB($,Z)}function CB($,Z){var Q=Z._currentValue;if(Z={context:Z,memoizedValue:Q,next:null},g9===null){if($===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().");g9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else g9=g9.next=Z;return Q}function dq(){return{controller:new KO,data:new Map,refCount:0}}function Q7($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function b$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&BO(HO,function(){$.controller.abort()})}function z4($,Z,Q){if(($&127)!==0)0>y4&&(y4=i1(),PZ=IG(Z),qN=Z,Q!=null&&(YN=d(Q)),(J1&(Y5|O6))!==W5&&(h1=!0,q8=LZ),$=ZZ(),Z=$Z(),$!==u9||Z!==TZ?u9=-1.1:Z!==null&&(q8=LZ),W7=$,TZ=Z);else if(($&4194048)!==0&&0>g6&&(g6=i1(),CZ=IG(Z),Tz=Z,Q!=null&&(Cz=d(Q)),0>K2)){if($=ZZ(),Z=$Z(),$!==X8||Z!==z7)X8=-1.1;Y8=$,z7=Z}}function jP($){if(0>y4){y4=i1(),PZ=$._debugTask!=null?$._debugTask:null,(J1&(Y5|O6))!==W5&&(q8=LZ);var Z=ZZ(),Q=$Z();Z!==u9||Q!==TZ?u9=-1.1:Q!==null&&(q8=LZ),W7=Z,TZ=Q}if(0>g6&&(g6=i1(),CZ=$._debugTask!=null?$._debugTask:null,0>K2)){if($=ZZ(),Z=$Z(),$!==X8||Z!==z7)X8=-1.1;Y8=$,z7=Z}}function e4(){var $=F7;return F7=0,$}function wQ($){var Z=F7;return F7=$,Z}function f$($){var Z=F7;return F7+=$,Z}function RQ(){T0=L0=-1.1}function F6(){var $=L0;return L0=-1.1,$}function W6($){0<=$&&(L0=$)}function M4(){var $=k1;return k1=-0,$}function w4($){0<=$&&(k1=$)}function R4(){var $=v1;return v1=null,$}function _4(){var $=h1;return h1=!1,$}function pq($){x5=i1(),0>$.actualStartTime&&($.actualStartTime=x5)}function cq($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,$.selfBaseDuration=Z,x5=-1}}function OB($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,x5=-1}}function L4(){if(0<=x5){var $=i1(),Z=$-x5;x5=-1,F7+=Z,k1+=Z,T0=$}}function IB($){v1===null&&(v1=[]),v1.push($),U2===null&&(U2=[]),U2.push($)}function P4(){x5=i1(),0>L0&&(L0=x5)}function y$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function vP($,Z){if(IZ===null){var Q=IZ=[];NN=0,M7=eY(),x9={status:"pending",value:void 0,then:function(Y){Q.push(Y)}}}return NN++,Z.then(VB,VB),Z}function VB(){if(--NN===0&&(-1<g6||(K2=-1.1),IZ!==null)){x9!==null&&(x9.status="fulfilled");var $=IZ;IZ=null,M7=0,x9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function kP($,Z){var Q=[],Y={status:"pending",value:null,reason:null,then:function(U){Q.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<Q.length;U++)(0,Q[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<Q.length;U++)(0,Q[U])(void 0)}),Y}function lq(){var $=w7.current;return $!==null?$:_1.pooledCache}function _Q($,Z){Z===null?O0(w7,w7.current,$):O0(w7,Z.pool,$)}function AB(){var $=lq();return $===null?null:{parent:a1._currentValue,pool:$}}function EB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function SB($){return $=$.status,$==="fulfilled"||$==="rejected"}function DB($,Z,Q){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(Q=Y[Q],Q===void 0?Y.push(Z):Q!==Z&&($.didWarnAboutUncachedPromise||($.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.")),Z.then(o4,o4),Z=Q),Z._debugInfo===void 0){$=performance.now(),Y=Z.displayName;var U={name:typeof Y==="string"?Y:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:U}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){U.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,vB($),$;default:if(typeof Z.status==="string")Z.then(o4,o4);else{if($=_1,$!==null&&100<$.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.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var z=Z;z.status="fulfilled",z.value=B}},function(B){if(Z.status==="pending"){var z=Z;z.status="rejected",z.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,vB($),$}throw _7=Z,vZ=!0,m9}}function u2($){try{return MO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw _7=Z,vZ=!0,m9;throw Z}}function jB(){if(_7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=_7;return _7=null,vZ=!1,$}function vB($){if($===m9||$===kG)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 M5($){var Z=u0;return $!=null&&(u0=Z===null?$:Z.concat($)),Z}function rq(){var $=u0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var Q=$[Z].debugTask;if(Q!=null)return Q}}return null}function LQ($,Z,Q){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=HQ($,Q.mode,0),Z._debugInfo=u0,Z.return=Q),q0(Z,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},B);break}}}function PQ($){var Z=kZ;return kZ+=1,d9===null&&(d9=EB()),DB(d9,$,Z)}function g$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function kB($,Z){if(Z.$$typeof===oT)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function bf(){Hr=Ah=null,Fr=!1}function Fs(e,t,o){we(ib,t._currentValue,e),t._currentValue=o,we(rb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==w1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=w1}function ts(e,t){e._currentValue=ib.current;var o=rb.current;Le(rb,t),e._currentRenderer=o,Le(ib,t)}function jm(e,t,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===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 Gm(e,t,o,l){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),jm(d.return,o,e),l||(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),jm(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 cr(e,t,o,l){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===hh.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(td):e=[td])}u=u.return}e!==null&&Gm(t,e,o,l),t.flags|=262144}function xf(e){for(e=e.firstContext;e!==null;){if(!Ha(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function si(e){Ah=e,Hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Fr&&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()."),I0(Ah,e)}function vf(e,t){return Ah===null&&si(e),I0(e,t)}function I0(e,t){var o=t._currentValue;if(t={context:t,memoizedValue:o,next:null},Hr===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().");Hr=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hr=Hr.next=t;return o}function Ym(){return{controller:new pD,data:new Map,refCount:0}}function li(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 Nu(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&mD(gD,function(){e.controller.abort()})}function bn(e,t,o){if((e&127)!==0)0>Un&&(Un=Kt(),Tc=kh(t),ub=t,o!=null&&(cb=q(o)),(ot&(ia|Mo))!==ma&&(Ut=!0,rl=Cc),e=nc(),t=oc(),e!==qr||t!==wc?qr=-1.1:t!==null&&(rl=Cc),yi=e,wc=t);else if((e&4194048)!==0&&0>Uo&&(Uo=Kt(),Mc=kh(t),M1=t,o!=null&&(I1=q(o)),0>hs)){if(e=nc(),t=oc(),e!==cl||t!==bi)cl=-1.1;ul=e,bi=t}}function Pk(e){if(0>Un){Un=Kt(),Tc=e._debugTask!=null?e._debugTask:null,(ot&(ia|Mo))!==ma&&(rl=Cc);var t=nc(),o=oc();t!==qr||o!==wc?qr=-1.1:o!==null&&(rl=Cc),yi=t,wc=o}if(0>Uo&&(Uo=Kt(),Mc=e._debugTask!=null?e._debugTask:null,0>hs)){if(e=nc(),t=oc(),e!==cl||t!==bi)cl=-1.1;ul=e,bi=t}}function as(){var e=gi;return gi=0,e}function Sf(e){var t=gi;return gi=e,t}function zu(e){var t=gi;return gi+=e,t}function Lf(){Ce=Se=-1.1}function mo(){var e=Se;return Se=-1.1,e}function go(e){0<=e&&(Se=e)}function xn(){var e=Ot;return Ot=-0,e}function vn(e){0<=e&&(Ot=e)}function Sn(){var e=Et;return Et=null,e}function Ln(){var e=Ut;return Ut=!1,e}function Xm(e){Fa=Kt(),0>e.actualStartTime&&(e.actualStartTime=Fa)}function $m(e){if(0<=Fa){var t=Kt()-Fa;e.actualDuration+=t,e.selfBaseDuration=t,Fa=-1}}function A0(e){if(0<=Fa){var t=Kt()-Fa;e.actualDuration+=t,Fa=-1}}function Cn(){if(0<=Fa){var e=Kt(),t=e-Fa;Fa=-1,gi+=t,Ot+=t,Ce=e}}function k0(e){Et===null&&(Et=[]),Et.push(e),fs===null&&(fs=[]),fs.push(e)}function Tn(){Fa=Kt(),0>Se&&(Se=Fa)}function Uu(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Bk(e,t){if(Ac===null){var o=Ac=[];fb=0,xi=oy(),Vr={status:"pending",value:void 0,then:function(l){o.push(l)}}}return fb++,t.then(R0,R0),t}function R0(){if(--fb===0&&(-1<Uo||(hs=-1.1),Ac!==null)){Vr!==null&&(Vr.status="fulfilled");var e=Ac;Ac=null,xi=0,Vr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Nk(e,t){var o=[],l={status:"pending",value:null,reason:null,then:function(u){o.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<o.length;u++)(0,o[u])(t)},function(u){l.status="rejected",l.reason=u;for(u=0;u<o.length;u++)(0,o[u])(void 0)}),l}function Wm(){var e=vi.current;return e!==null?e:vt.pooledCache}function Cf(e,t){t===null?we(vi,vi.current,e):we(vi,t.pool,e)}function _0(){var e=Wm();return e===null?null:{parent:Qt._currentValue,pool:e}}function D0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function E0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function O0(e,t,o){H.actQueue!==null&&(H.didUsePromise=!0);var l=e.thenables;if(o=l[o],o===void 0?l.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(Kn,Kn),t=o),t._debugInfo===void 0){e=performance.now(),l=t.displayName;var u={name:typeof l==="string"?l:"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,B0(e),e;default:if(typeof t.status==="string")t.then(Kn,Kn);else{if(e=vt,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,B0(e),e}throw Li=t,Pc=!0,jr}}function qs(e){try{return vD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Li=t,Pc=!0,jr;throw t}}function P0(){if(Li===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Li;return Li=null,Pc=!1,e}function B0(e){if(e===jr||e===Nh)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 ya(e){var t=He;return e!=null&&(He=t===null?e:t.concat(e)),t}function Zm(){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 Tf(e,t,o){for(var l=Object.keys(e.props),u=0;u<l.length;u++){var d=l[u];if(d!=="children"&&d!=="key"){t===null&&(t=gf(e,o.mode,0),t._debugInfo=He,t.return=o),le(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 wf(e){var t=Bc;return Bc+=1,Gr===null&&(Gr=D0()),O0(Gr,e,t)}function Hu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function N0(e,t){if(t.$$typeof===JR)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 $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function TQ($,Z){var Q=rq();Q!==null?Q.run(kB.bind(null,$,Z)):kB($,Z)}function bB($,Z){var Q=d($)||"Component";pz[Q]||(pz[Q]=!0,Z=Z.displayName||Z.name||"Component",$.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
- root.render(%s)`,Z,Z,Z):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>`,Z,Z,Q,Z,Q))}function CQ($,Z){var Q=rq();Q!==null?Q.run(bB.bind(null,$,Z)):bB($,Z)}function fB($,Z){var Q=d($)||"Component";cz[Q]||(cz[Q]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
99
- root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,Q,Z,Q))}function OQ($,Z){var Q=rq();Q!==null?Q.run(fB.bind(null,$,Z)):fB($,Z)}function yB($){function Z(A,D){if($){var k=A.deletions;k===null?(A.deletions=[D],A.flags|=16):k.push(D)}}function Q(A,D){if(!$)return null;for(;D!==null;)Z(A,D),D=D.sibling;return null}function Y(A){for(var D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function U(A,D){return A=a4(A,D),A.index=0,A.sibling=null,A}function B(A,D,k){if(A.index=k,!$)return A.flags|=1048576,D;if(k=A.alternate,k!==null)return k=k.index,k<D?(A.flags|=67108866,D):k;return A.flags|=67108866,D}function z(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function w(A,D,k,m){if(D===null||D.tag!==6)return D=bq(k,A.mode,m),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=u0,D;return D=U(D,k),D.return=A,D._debugInfo=u0,D}function L(A,D,k,m){var J0=k.type;if(J0===T9)return D=b(A,D,k.props.children,m,k.key),LQ(k,D,A),D;if(D!==null&&(D.elementType===J0||HB(D,k)||typeof J0==="object"&&J0!==null&&J0.$$typeof===R6&&u2(J0)===D.type))return D=U(D,k.props),g$(D,k),D.return=A,D._debugOwner=k._owner,D._debugInfo=u0,D;return D=HQ(k,A.mode,m),g$(D,k),D.return=A,D._debugInfo=u0,D}function T(A,D,k,m){if(D===null||D.tag!==4||D.stateNode.containerInfo!==k.containerInfo||D.stateNode.implementation!==k.implementation)return D=fq(k,A.mode,m),D.return=A,D._debugInfo=u0,D;return D=U(D,k.children||[]),D.return=A,D._debugInfo=u0,D}function b(A,D,k,m,J0){if(D===null||D.tag!==7)return D=e8(k,A.mode,m,J0),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=u0,D;return D=U(D,k),D.return=A,D._debugInfo=u0,D}function f(A,D,k){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=bq(""+D,A.mode,k),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=u0,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case E4:return k=HQ(D,A.mode,k),g$(k,D),k.return=A,A=M5(D._debugInfo),k._debugInfo=u0,u0=A,k;case P9:return D=fq(D,A.mode,k),D.return=A,D._debugInfo=u0,D;case R6:var m=M5(D._debugInfo);return D=u2(D),A=f(A,D,k),u0=m,A}if(G5(D)||t(D))return k=e8(D,A.mode,k,null),k.return=A,k._debugOwner=A,k._debugTask=A._debugTask,A=M5(D._debugInfo),k._debugInfo=u0,u0=A,k;if(typeof D.then==="function")return m=M5(D._debugInfo),A=f(A,PQ(D),k),u0=m,A;if(D.$$typeof===S4)return f(A,MQ(A,D),k);TQ(A,D)}return typeof D==="function"&&CQ(A,D),typeof D==="symbol"&&OQ(A,D),null}function S(A,D,k,m){var J0=D!==null?D.key:null;if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return J0!==null?null:w(A,D,""+k,m);if(typeof k==="object"&&k!==null){switch(k.$$typeof){case E4:return k.key===J0?(J0=M5(k._debugInfo),A=L(A,D,k,m),u0=J0,A):null;case P9:return k.key===J0?T(A,D,k,m):null;case R6:return J0=M5(k._debugInfo),k=u2(k),A=S(A,D,k,m),u0=J0,A}if(G5(k)||t(k)){if(J0!==null)return null;return J0=M5(k._debugInfo),A=b(A,D,k,m,null),u0=J0,A}if(typeof k.then==="function")return J0=M5(k._debugInfo),A=S(A,D,PQ(k),m),u0=J0,A;if(k.$$typeof===S4)return S(A,D,MQ(A,k),m);TQ(A,k)}return typeof k==="function"&&CQ(A,k),typeof k==="symbol"&&OQ(A,k),null}function g(A,D,k,m,J0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(k)||null,w(D,A,""+m,J0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case E4:return k=A.get(m.key===null?k:m.key)||null,A=M5(m._debugInfo),D=L(D,k,m,J0),u0=A,D;case P9:return A=A.get(m.key===null?k:m.key)||null,T(D,A,m,J0);case R6:var S0=M5(m._debugInfo);return m=u2(m),D=g(A,D,k,m,J0),u0=S0,D}if(G5(m)||t(m))return k=A.get(k)||null,A=M5(m._debugInfo),D=b(D,k,m,J0,null),u0=A,D;if(typeof m.then==="function")return S0=M5(m._debugInfo),D=g(A,D,k,PQ(m),J0),u0=S0,D;if(m.$$typeof===S4)return g(A,D,k,MQ(D,m),J0);TQ(D,m)}return typeof m==="function"&&CQ(D,m),typeof m==="symbol"&&OQ(D,m),null}function $0(A,D,k,m){if(typeof k!=="object"||k===null)return m;switch(k.$$typeof){case E4:case P9:R(A,D,k);var J0=k.key;if(typeof J0!=="string")break;if(m===null){m=new Set,m.add(J0);break}if(!m.has(J0)){m.add(J0);break}q0(D,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",J0)});break;case R6:k=u2(k),$0(A,D,k,m)}return m}function G0(A,D,k,m){for(var J0=null,S0=null,R0=null,B0=D,f0=D=0,A1=null;B0!==null&&f0<k.length;f0++){B0.index>f0?(A1=B0,B0=null):A1=B0.sibling;var l1=S(A,B0,k[f0],m);if(l1===null){B0===null&&(B0=A1);break}J0=$0(A,l1,k[f0],J0),$&&B0&&l1.alternate===null&&Z(A,B0),D=B(l1,D,f0),R0===null?S0=l1:R0.sibling=l1,R0=l1,B0=A1}if(f0===k.length)return Q(A,B0),i0&&i4(A,f0),S0;if(B0===null){for(;f0<k.length;f0++)B0=f(A,k[f0],m),B0!==null&&(J0=$0(A,B0,k[f0],J0),D=B(B0,D,f0),R0===null?S0=B0:R0.sibling=B0,R0=B0);return i0&&i4(A,f0),S0}for(B0=Y(B0);f0<k.length;f0++)A1=g(B0,A,f0,k[f0],m),A1!==null&&(J0=$0(A,A1,k[f0],J0),$&&A1.alternate!==null&&B0.delete(A1.key===null?f0:A1.key),D=B(A1,D,f0),R0===null?S0=A1:R0.sibling=A1,R0=A1);return $&&B0.forEach(function(_2){return Z(A,_2)}),i0&&i4(A,f0),S0}function C1(A,D,k,m){if(k==null)throw Error("An iterable object provided no iterator.");for(var J0=null,S0=null,R0=D,B0=D=0,f0=null,A1=null,l1=k.next();R0!==null&&!l1.done;B0++,l1=k.next()){R0.index>B0?(f0=R0,R0=null):f0=R0.sibling;var _2=S(A,R0,l1.value,m);if(_2===null){R0===null&&(R0=f0);break}A1=$0(A,_2,l1.value,A1),$&&R0&&_2.alternate===null&&Z(A,R0),D=B(_2,D,B0),S0===null?J0=_2:S0.sibling=_2,S0=_2,R0=f0}if(l1.done)return Q(A,R0),i0&&i4(A,B0),J0;if(R0===null){for(;!l1.done;B0++,l1=k.next())R0=f(A,l1.value,m),R0!==null&&(A1=$0(A,R0,l1.value,A1),D=B(R0,D,B0),S0===null?J0=R0:S0.sibling=R0,S0=R0);return i0&&i4(A,B0),J0}for(R0=Y(R0);!l1.done;B0++,l1=k.next())f0=g(R0,A,B0,l1.value,m),f0!==null&&(A1=$0(A,f0,l1.value,A1),$&&f0.alternate!==null&&R0.delete(f0.key===null?B0:f0.key),D=B(f0,D,B0),S0===null?J0=f0:S0.sibling=f0,S0=f0);return $&&R0.forEach(function(xO){return Z(A,xO)}),i0&&i4(A,B0),J0}function $1(A,D,k,m){if(typeof k==="object"&&k!==null&&k.type===T9&&k.key===null&&(LQ(k,null,A),k=k.props.children),typeof k==="object"&&k!==null){switch(k.$$typeof){case E4:var J0=M5(k._debugInfo);$:{for(var S0=k.key;D!==null;){if(D.key===S0){if(S0=k.type,S0===T9){if(D.tag===7){Q(A,D.sibling),m=U(D,k.props.children),m.return=A,m._debugOwner=k._owner,m._debugInfo=u0,LQ(k,m,A),A=m;break $}}else if(D.elementType===S0||HB(D,k)||typeof S0==="object"&&S0!==null&&S0.$$typeof===R6&&u2(S0)===D.type){Q(A,D.sibling),m=U(D,k.props),g$(m,k),m.return=A,m._debugOwner=k._owner,m._debugInfo=u0,A=m;break $}Q(A,D);break}else Z(A,D);D=D.sibling}k.type===T9?(m=e8(k.props.children,A.mode,m,k.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=u0,LQ(k,m,A),A=m):(m=HQ(k,A.mode,m),g$(m,k),m.return=A,m._debugInfo=u0,A=m)}return A=z(A),u0=J0,A;case P9:$:{J0=k;for(k=J0.key;D!==null;){if(D.key===k)if(D.tag===4&&D.stateNode.containerInfo===J0.containerInfo&&D.stateNode.implementation===J0.implementation){Q(A,D.sibling),m=U(D,J0.children||[]),m.return=A,A=m;break $}else{Q(A,D);break}else Z(A,D);D=D.sibling}m=fq(J0,A.mode,m),m.return=A,A=m}return z(A);case R6:return J0=M5(k._debugInfo),k=u2(k),A=$1(A,D,k,m),u0=J0,A}if(G5(k))return J0=M5(k._debugInfo),A=G0(A,D,k,m),u0=J0,A;if(t(k)){if(J0=M5(k._debugInfo),S0=t(k),typeof S0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var R0=S0.call(k);if(R0===k){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")mz||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."),mz=!0}else k.entries!==S0||HN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HN=!0);return A=C1(A,D,R0,m),u0=J0,A}if(typeof k.then==="function")return J0=M5(k._debugInfo),A=$1(A,D,PQ(k),m),u0=J0,A;if(k.$$typeof===S4)return $1(A,D,MQ(A,k),m);TQ(A,k)}if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return J0=""+k,D!==null&&D.tag===6?(Q(A,D.sibling),m=U(D,J0),m.return=A,A=m):(Q(A,D),m=bq(J0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=u0,A=m),z(A);return typeof k==="function"&&CQ(A,k),typeof k==="symbol"&&OQ(A,k),Q(A,D)}return function(A,D,k,m){var J0=u0;u0=null;try{kZ=0;var S0=$1(A,D,k,m);return d9=null,S0}catch(A1){if(A1===m9||A1===kG)throw A1;var R0=P(29,A1,null,A.mode);R0.lanes=m,R0.return=A;var B0=R0._debugInfo=u0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){R0._debugOwner=B0[f0],R0._debugTask=B0[f0].debugTask;break}}return R0}finally{u0=J0}}}function gB($,Z){var Q=G5($);return $=!Q&&typeof t($)==="function",Q||$?(Q=Q?"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>",Q,Z,Q),!1):!0}function sq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function x2($){return{lane:$,tag:rz,payload:null,callback:null,next:null}}function m2($,Z,Q){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,WN===Y&&!oz){var U=d($);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.
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 Mf(e,t){var o=Zm();o!==null?o.run(N0.bind(null,e,t)):N0(e,t)}function z0(e,t){var o=q(e)||"Component";X1[o]||(X1[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
+ 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 If(e,t){var o=Zm();o!==null?o.run(z0.bind(null,e,t)):z0(e,t)}function U0(e,t){var o=q(e)||"Component";$1[o]||($1[o]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
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.
101
101
 
102
- Please update the following component: %s`,U),oz=!0}if((J1&Y5)!==W5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=BQ($),BB($,null,Q),Z;return KQ($,Y,Z,Q),BQ($)}function h$($,Z,Q){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(Q&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,r8($,Q)}}function IQ($,Z){var{updateQueue:Q,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,Q===Y)){var U=null,B=null;if(Q=Q.firstBaseUpdate,Q!==null){do{var z={lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:null,next:null};B===null?U=B=z:B=B.next=z,Q=Q.next}while(Q!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;Q={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=Q;return}$=Q.lastBaseUpdate,$===null?Q.firstBaseUpdate=Z:$.next=Z,Q.lastBaseUpdate=Z}function u$(){if(zN){var $=x9;if($!==null)throw $}}function x$($,Z,Q,Y){zN=!1;var U=$.updateQueue;N8=!1,WN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:z}=U,w=U.shared.pending;if(w!==null){U.shared.pending=null;var L=w,T=L.next;L.next=null,z===null?B=T:z.next=T,z=L;var b=$.alternate;b!==null&&(b=b.updateQueue,w=b.lastBaseUpdate,w!==z&&(w===null?b.firstBaseUpdate=T:w.next=T,b.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;z=0,b=T=L=null,w=B;do{var S=w.lane&-536870913,g=S!==w.lane;if(g?(x0&S)===S:(Y&S)===S){S!==0&&S===M7&&(zN=!0),b!==null&&(b=b.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});$:{S=$;var $0=w,G0=Z,C1=Q;switch($0.tag){case sz:if($0=$0.payload,typeof $0==="function"){h9=!0;var $1=$0.call(C1,f,G0);if(S.mode&D5){P1(!0);try{$0.call(C1,f,G0)}finally{P1(!1)}}h9=!1,f=$1;break $}f=$0;break $;case FN:S.flags=S.flags&-65537|128;case rz:if($1=$0.payload,typeof $1==="function"){if(h9=!0,$0=$1.call(C1,f,G0),S.mode&D5){P1(!0);try{$1.call(C1,f,G0)}finally{P1(!1)}}h9=!1}else $0=$1;if($0===null||$0===void 0)break $;f=r0({},f,$0);break $;case nz:N8=!0}}S=w.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:w.tag,payload:w.payload,callback:w.callback,next:null},b===null?(T=b=g,L=f):b=b.next=g,z|=S;if(w=w.next,w===null)if(w=U.shared.pending,w===null)break;else g=w,w=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);b===null&&(L=f),U.baseState=L,U.firstBaseUpdate=T,U.lastBaseUpdate=b,B===null&&(U.shared.lanes=0),B8|=z,$.lanes=z,$.memoizedState=f}WN=null}function hB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function bP($,Z){var Q=$.shared.hiddenCallbacks;if(Q!==null)for($.shared.hiddenCallbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function uB($,Z){var Q=$.callbacks;if(Q!==null)for($.callbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function xB($,Z){var Q=u4;O0(fG,Q,$),O0(p9,Z,$),u4=Q|Z.baseLanes}function oq($){O0(fG,u4,$),O0(p9,p9.current,$)}function aq($){u4=fG.current,P0(p9,$),P0(fG,$)}function d2($){var Z=$.alternate;O0(c1,c1.current&c9,$),O0(T6,$,$),h6===null&&(Z===null||p9.current!==null?h6=$:Z.memoizedState!==null&&(h6=$))}function iq($){O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)}function mB($){$.tag===22?(O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)):p2($)}function p2($){O0(c1,c1.current,$),O0(T6,T6.current,$)}function z6($){P0(T6,$),h6===$&&(h6=null),P0(c1,$)}function VQ($){for(var Z=$;Z!==null;){if(Z.tag===13){var Q=Z.memoizedState;if(Q!==null&&(Q=Q.dehydrated,Q===null||KX(Q)||BX(Q)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function l0(){var $=u;x6===null?x6=[$]:x6.push($)}function c(){var $=u;if(x6!==null&&(W2++,x6[W2]!==$)){var Z=d(E0);if(!az.has(Z)&&(az.add(Z),x6!==null)){for(var Q="",Y=0;Y<=W2;Y++){var U=x6[Y],B=Y===W2?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
103
- `,Q+=U}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
102
+ Please update the following component: %s`,u),J1=!0}if((ot&ia)!==ma)return u=l.pending,u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=mf(e),m0(e,null,o),t;return pf(e,l,t,o),mf(e)}function Fu(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Wl(e,o)}}function kf(e,t){var{updateQueue:o,alternate:l}=e;if(l!==null&&(l=l.updateQueue,o===l)){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:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function qu(){if(xb){var e=Vr;if(e!==null)throw e}}function Vu(e,t,o,l){xb=!1;var u=e.updateQueue;dl=!1,bb=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 k=y.lane&-536870913,N=k!==y.lane;if(N?(Fe&k)===k:(l&k)===k){k!==0&&k===xi&&(xb=!0),O!==null&&(O=O.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{k=e;var te=y,se=t,Tt=o;switch(te.tag){case Q1:if(te=te.payload,typeof te==="function"){Fr=!0;var tt=te.call(Tt,P,se);if(k.mode&_a){Lt(!0);try{te.call(Tt,P,se)}finally{Lt(!1)}}Fr=!1,P=tt;break e}P=te;break e;case yb:k.flags=k.flags&-65537|128;case Z1:if(tt=te.payload,typeof tt==="function"){if(Fr=!0,te=tt.call(Tt,P,se),k.mode&_a){Lt(!0);try{tt.call(Tt,P,se)}finally{Lt(!1)}}Fr=!1}else te=tt;if(te===null||te===void 0)break e;P=Xe({},P,te);break e;case K1:dl=!0}}k=y.callback,k!==null&&(e.flags|=64,N&&(e.flags|=8192),N=u.callbacks,N===null?u.callbacks=[k]:N.push(k))}else N={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},O===null?(L=O=N,v=P):O=O.next=N,m|=k;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),pl|=m,e.lanes=m,e.memoizedState=P}bb=null}function q0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zk(e,t){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)q0(o[e],t)}function V0(e,t){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)q0(o[e],t)}function j0(e,t){var o=qn;we(Uh,o,e),we(Yr,t,e),qn=o|t.baseLanes}function Jm(e){we(Uh,qn,e),we(Yr,Yr.current,e)}function eg(e){qn=Uh.current,Le(Yr,e),Le(Uh,e)}function Gs(e){var t=e.alternate;we(Gt,Gt.current&Xr,e),we(To,e,e),Ho===null&&(t===null||Yr.current!==null?Ho=e:t.memoizedState!==null&&(Ho=e))}function tg(e){we(Gt,Gt.current,e),we(To,e,e),Ho===null&&(Ho=e)}function G0(e){e.tag===22?(we(Gt,Gt.current,e),we(To,e,e),Ho===null&&(Ho=e)):Ys(e)}function Ys(e){we(Gt,Gt.current,e),we(To,To.current,e)}function yo(e){Le(To,e),Ho===e&&(Ho=null),Le(Gt,e)}function Rf(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||py(o)||my(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;qo===null?qo=[e]:qo.push(e)}function j(){var e=U;if(qo!==null&&(ys++,qo[ys]!==e)){var t=q(ke);if(!eT.has(t)&&(eT.add(t),qo!==null)){for(var o="",l=0;l<=ys;l++){var u=qo[l],d=l===ys?e:u;for(u=l+1+". "+u;30>u.length;)u+=" ";u+=d+`
103
+ `,o+=u}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,Z,Q)}}}function N9($){$===void 0||$===null||G5($)||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 $)}function AQ(){var $=d(E0);tz.has($)||(tz.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function d1(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
108
+ `,t,o)}}}function dr(e){e===void 0||e===null||sa(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 _f(){var e=q(ke);aT.has(e)||(aT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Vt(){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 tq($,Z){if(yZ)return!1;if(Z===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;$.length!==Z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ag(e,t){if(Uc)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,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var Q=0;Q<Z.length&&Q<$.length;Q++)if(!u5($[Q],Z[Q]))return!1;return!0}function eq($,Z,Q,Y,U,B){if(H2=B,E0=Z,x6=$!==null?$._debugHookTypes:null,W2=-1,yZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(Q)==="[object AsyncFunction]"||Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]")B=d(E0),MN.has(B)||(MN.add(B),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.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?RN:x6!==null?ez:wN,P7=B=(Z.mode&D5)!==A0;var z=UN(Q,Y,U);if(P7=!1,r9&&(z=$Y(Z,Q,Y,U)),B){P1(!0);try{z=$Y(Z,Q,Y,U)}finally{P1(!1)}}return dB($,Z),z}function dB($,Z){Z._debugHookTypes=x6,Z.dependencies===null?F2!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:F2}):Z.dependencies._debugThenableState=F2,x.H=gZ;var Q=R1!==null&&R1.next!==null;if(H2=0,x6=u=t1=R1=E0=null,W2=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gG=!1,fZ=0,F2=null,Q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||e1||($=$.dependencies,$!==null&&zQ($)&&(e1=!0)),vZ?(vZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",iz.has(Z)||MN.has(Z)||(iz.add(Z),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 $Y($,Z,Q,Y){E0=$;var U=0;do{if(r9&&(F2=null),fZ=0,r9=!1,U>=RO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,yZ=!1,t1=R1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}W2=-1,x.H=$M,B=UN(Z,Q,Y)}while(r9);return B}function fP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?m$(Z):Z,$=$.useState()[0],(R1!==null?R1.memoizedState:null)!==$&&(E0.flags|=1024),Z}function ZY(){var $=hG!==0;return hG=0,$}function JY($,Z,Q){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==A0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~Q}function QY($){if(gG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}gG=!1}H2=0,x6=t1=R1=E0=null,W2=-1,u=null,r9=!1,fZ=hG=0,F2=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return t1===null?E0.memoizedState=t1=$:t1=t1.next=$,t1}function B1(){if(R1===null){var $=E0.alternate;$=$!==null?$.memoizedState:null}else $=R1.next;var Z=t1===null?E0.memoizedState:t1.next;if(Z!==null)t1=Z,R1=$;else{if($===null){if(E0.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.")}R1=$,$={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},t1===null?E0.memoizedState=t1=$:t1=t1.next=$}return t1}function EQ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function m$($){var Z=fZ;return fZ+=1,F2===null&&(F2=EB()),$=DB(F2,$,Z),Z=E0,(t1===null?Z.memoizedState:t1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?RN:wN),$}function c2($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return m$($);if($.$$typeof===S4)return j1($)}throw Error("An unsupported type was passed to use(): "+String($))}function G7($){var Z=null,Q=E0.updateQueue;if(Q!==null&&(Z=Q.memoCache),Z==null){var Y=E0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),Q===null&&(Q=EQ(),E0.updateQueue=Q),Q.memoCache=Z,Q=Z.data[Z.index],Q===void 0||yZ)for(Q=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)Q[Y]=aT;else Q.length!==$&&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.",Q.length,$);return Z.index++,Q}function e6($,Z){return typeof Z==="function"?Z($):Z}function GY($,Z,Q){var Y=f5();if(Q!==void 0){var U=Q(Z);if(P7){P1(!0);try{Q(Z)}finally{P1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=xP.bind(null,E0,$),[Y.memoizedState,$]}function U9($){var Z=B1();return qY(Z,R1,$)}function qY($,Z,Q){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=Q;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var z=U.next;U.next=B.next,B.next=z}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var w=z=null,L=null,T=Z,b=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(x0&f)===f:(H2&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===M7&&(b=!0);else if((H2&S)===S){T=T.next,S===M7&&(b=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=f,z=B):L=L.next=f,E0.lanes|=S,B8|=S;f=T.action,P7&&Q(B,f),B=T.hasEagerState?T.eagerState:Q(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=S,z=B):L=L.next=S,E0.lanes|=f,B8|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?z=B:L.next=w,!u5(B,$.memoizedState)&&(e1=!0,b&&(Q=x9,Q!==null)))throw Q;$.memoizedState=B,$.baseState=z,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function d$($){var Z=B1(),Q=Z.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=$;var{dispatch:Y,pending:U}=Q,B=Z.memoizedState;if(U!==null){Q.pending=null;var z=U=U.next;do B=$(B,z.action),z=z.next;while(z!==U);u5(B,Z.memoizedState)||(e1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),Q.lastRenderedState=B}return[B,Y]}function YY($,Z,Q){var Y=E0,U=f5();if(i0){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=Q();l9||B===Q()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),l9=!0)}else{if(B=Z(),l9||(Q=Z(),u5(B,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l9=!0)),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(x0&127)!==0||pB(Y,Z,B)}return U.memoizedState=B,Q={value:B,getSnapshot:Z},U.queue=Q,vQ(lB.bind(null,Y,Q,$),[$]),Y.flags|=2048,B9(u6|d5,{destroy:void 0},cB.bind(null,Y,Q,B,Z),null),B}function SQ($,Z,Q){var Y=E0,U=B1(),B=i0;if(B){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Q=Q()}else if(Q=Z(),!l9){var z=Z();u5(Q,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l9=!0)}if(z=!u5((R1||U).memoizedState,Q))U.memoizedState=Q,e1=!0;U=U.queue;var w=lB.bind(null,Y,U,$);if(l5(2048,d5,w,[$]),U.getSnapshot!==Z||z||t1!==null&&t1.memoizedState.tag&u6){if(Y.flags|=2048,B9(u6|d5,{destroy:void 0},cB.bind(null,Y,U,Q,Z),null),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H2&127)!==0||pB(Y,Z,Q)}return Q}function pB($,Z,Q){$.flags|=16384,$={getSnapshot:Z,value:Q},Z=E0.updateQueue,Z===null?(Z=EQ(),E0.updateQueue=Z,Z.stores=[$]):(Q=Z.stores,Q===null?Z.stores=[$]:Q.push($))}function cB($,Z,Q,Y){Z.value=Q,Z.getSnapshot=Y,rB(Z)&&sB($)}function lB($,Z,Q){return Q(function(){rB(Z)&&(z4(2,"updateSyncExternalStore()",$),sB($))})}function rB($){var Z=$.getSnapshot;$=$.value;try{var Q=Z();return!u5($,Q)}catch(Y){return!0}}function sB($){var Z=E5($,2);Z!==null&&g1(Z,$,2)}function XY($){var Z=f5();if(typeof $==="function"){var Q=$;if($=Q(),P7){P1(!0);try{Q()}finally{P1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:$},Z}function NY($){$=XY($);var Z=$.queue,Q=HH.bind(null,E0,Z);return Z.dispatch=Q,[$.memoizedState,Q]}function UY($){var Z=f5();Z.memoizedState=Z.baseState=$;var Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=Q,Z=CY.bind(null,E0,!0,Q),Q.dispatch=Z,[$,Z]}function nB($,Z){var Q=B1();return oB(Q,R1,$,Z)}function oB($,Z,Q,Y){return $.baseState=Q,qY($,R1,typeof Y==="function"?Y:e6)}function aB($,Z){var Q=B1();if(R1!==null)return oB(Q,R1,$,Z);return Q.baseState=$,[$,Q.queue.dispatch]}function yP($,Z,Q,Y,U){if(hQ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){B.listeners.push(z)}};x.T!==null?Q(!0):B.isTransition=!1,Y(B),Q=Z.pending,Q===null?(B.next=Z.pending=B,iB(Z,B)):(B.next=Q.next,Z.pending=Q.next=B)}}function iB($,Z){var{action:Q,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,z={};z._updatedFibers=new Set,x.T=z;try{var w=Q(U,Y),L=x.S;L!==null&&L(z,w),tB($,Z,w)}catch(T){KY($,Z,T)}finally{B!==null&&z.types!==null&&(B.types!==null&&B.types!==z.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=z.types),x.T=B,B===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&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{z=Q(U,Y),tB($,Z,z)}catch(T){KY($,Z,T)}}function tB($,Z,Q){Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?(x.asyncTransitions++,Q.then(gQ,gQ),Q.then(function(Y){eB($,Z,Y)},function(Y){return KY($,Z,Y)}),Z.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.")):eB($,Z,Q)}function eB($,Z,Q){Z.status="fulfilled",Z.value=Q,$H(Z),$.state=Q,Z=$.pending,Z!==null&&(Q=Z.next,Q===Z?$.pending=null:(Q=Q.next,Z.next=Q,iB($,Q)))}function KY($,Z,Q){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=Q,$H(Z),Z=Z.next;while(Z!==Y)}$.action=null}function $H($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function ZH($,Z){return Z}function K9($,Z){if(i0){var Q=_1.formState;if(Q!==null){$:{var Y=E0;if(i0){if(V1){Z:{var U=V1;for(var B=y6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=w6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===mN||B===uM?U:null}if(U){V1=w6(U.nextSibling),Y=U.data===mN;break $}}g2(Y)}Y=!1}Y&&(Z=Q[0])}}return Q=f5(),Q.memoizedState=Q.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZH,lastRenderedState:Z},Q.queue=Y,Q=HH.bind(null,E0,Y),Y.dispatch=Q,Y=XY(!1),B=CY.bind(null,E0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,Q=yP.bind(null,E0,U,B,Q),U.dispatch=Q,Y.memoizedState=$,[Z,Q,!1]}function DQ($){var Z=B1();return JH(Z,R1,$)}function JH($,Z,Q){if(Z=qY($,Z,ZH)[0],$=U9(e6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=m$(Z)}catch(z){if(z===m9)throw kG;throw z}else Y=Z;Z=B1();var U=Z.queue,B=U.dispatch;return Q!==Z.memoizedState&&(E0.flags|=2048,B9(u6|d5,{destroy:void 0},gP.bind(null,U,Q),null)),[Y,B,$]}function gP($,Z){$.action=Z}function jQ($){var Z=B1(),Q=R1;if(Q!==null)return JH(Z,Q,$);B1(),Z=Z.memoizedState,Q=B1();var Y=Q.queue.dispatch;return Q.memoizedState=$,[Z,Y,!1]}function B9($,Z,Q,Y){return $={tag:$,create:Q,deps:Y,inst:Z,next:null},Z=E0.updateQueue,Z===null&&(Z=EQ(),E0.updateQueue=Z),Q=Z.lastEffect,Q===null?Z.lastEffect=$.next=$:(Y=Q.next,Q.next=$,$.next=Y,Z.lastEffect=$),$}function BY($){var Z=f5();return $={current:$},Z.memoizedState=$}function q7($,Z,Q,Y){var U=f5();E0.flags|=$,U.memoizedState=B9(u6|Z,{destroy:void 0},Q,Y===void 0?null:Y)}function l5($,Z,Q,Y){var U=B1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;R1!==null&&Y!==null&&tq(Y,R1.memoizedState.deps)?U.memoizedState=B9(Z,B,Q,Y):(E0.flags|=$,U.memoizedState=B9(u6|Z,B,Q,Y))}function vQ($,Z){(E0.mode&Q4)!==A0?q7(276826112,d5,$,Z):q7(8390656,d5,$,Z)}function hP($){E0.flags|=4;var Z=E0.updateQueue;if(Z===null)Z=EQ(),E0.updateQueue=Z,Z.events=[$];else{var Q=Z.events;Q===null?Z.events=[$]:Q.push($)}}function HY($){var Z=f5(),Q={impl:$};return Z.memoizedState=Q,function(){if((J1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function kQ($){var Z=B1().memoizedState;return hP({ref:Z,nextImpl:$}),function(){if((J1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function FY($,Z){var Q=4194308;return(E0.mode&Q4)!==A0&&(Q|=134217728),q7(Q,C6,$,Z)}function QH($,Z){if(typeof Z==="function"){$=$();var Q=Z($);return function(){typeof Q==="function"?Q():Z(null)}}if(Z!==null&&Z!==void 0)return Z.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(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function WY($,Z,Q){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null;var Y=4194308;(E0.mode&Q4)!==A0&&(Y|=134217728),q7(Y,C6,QH.bind(null,Z,$),Q)}function bQ($,Z,Q){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null,l5(4,C6,QH.bind(null,Z,$),Q)}function zY($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function fQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];return Q.memoizedState=[$,Z],$}function MY($,Z){var Q=f5();Z=Z===void 0?null:Z;var Y=$();if(P7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function yQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];if(Y=$(),P7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function wY($,Z){var Q=f5();return RY(Q,$,Z)}function GH($,Z){var Q=B1();return YH(Q,R1.memoizedState,$,Z)}function qH($,Z){var Q=B1();return R1===null?RY(Q,$,Z):YH(Q,R1.memoizedState,$,Z)}function RY($,Z,Q){if(Q===void 0||(H2&1073741824)!==0&&(x0&261930)===0)return $.memoizedState=Z;return $.memoizedState=Q,$=XF(),E0.lanes|=$,B8|=$,Q}function YH($,Z,Q,Y){if(u5(Q,Z))return Q;if(p9.current!==null)return $=RY($,Q,Y),u5($,Z)||(e1=!0),$;if((H2&42)===0||(H2&1073741824)!==0&&(x0&261930)===0)return e1=!0,$.memoizedState=Q;return $=XF(),E0.lanes|=$,B8|=$,Z}function gQ(){x.asyncTransitions--}function XH($,Z,Q,Y,U){var B=U1.p;U1.p=B!==0&&B<J4?B:J4;var z=x.T,w={};w._updatedFibers=new Set,x.T=w,CY($,!1,Z,Q);try{var L=U(),T=x.S;if(T!==null&&T(w,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(gQ,gQ);var b=kP(L,Y);p$($,Z,b,M6($))}else p$($,Z,Y,M6($))}catch(f){p$($,Z,{then:function(){},status:"rejected",reason:f},M6($))}finally{U1.p=B,z!==null&&w.types!==null&&(z.types!==null&&z.types!==w.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."),z.types=w.types),x.T=z,z===null&&w._updatedFibers&&($=w._updatedFibers.size,w._updatedFibers.clear(),10<$&&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 _Y($,Z,Q,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=NH($).queue;jP($),XH($,U,Z,v7,Q===null?M:function(){return UH($),Q(Y)})}function NH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:v7,baseState:v7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:v7},next:null};var Q={};return Z.next={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:Q},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function UH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=NH($);Z.next===null&&(Z=$.alternate.memoizedState),p$($,Z.next.queue,{},M6($))}function LY(){var $=XY(!1);return $=XH.bind(null,E0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function KH(){var $=U9(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:m$($),Z]}function BH(){var $=d$(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:m$($),Z]}function Y7(){return j1(tZ)}function PY(){var $=f5(),Z=_1.identifierPrefix;if(i0){var Q=X2,Y=Y2;Q=(Y&~(1<<32-y5(Y)-1)).toString(32)+Q,Z="_"+Z+"R_"+Q,Q=hG++,0<Q&&(Z+="H"+Q.toString(32)),Z+="_"}else Q=wO++,Z="_"+Z+"r_"+Q.toString(32)+"_";return $.memoizedState=Z}function TY(){return f5().memoizedState=uP.bind(null,E0)}function uP($,Z){for(var Q=$.return;Q!==null;){switch(Q.tag){case 24:case 3:var Y=M6(Q),U=x2(Y),B=m2(Q,U,Y);B!==null&&(z4(Y,"refresh()",$),g1(B,Q,Y),h$(B,Q,Y)),$=dq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}Q=Q.return}}function xP($,Z,Q){var Y=arguments;typeof Y[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()."),Y=M6($);var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};hQ($)?FH(Z,U):(U=Dq($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),g1(U,$,Y),WH(U,Z,Y)))}function HH($,Z,Q){var Y=arguments;typeof Y[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()."),Y=M6($),p$($,Z,Q,Y)&&z4(Y,"setState()",$)}function p$($,Z,Q,Y){var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};if(hQ($))FH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var z=x.H;x.H=q4;try{var w=Z.lastRenderedState,L=B(w,Q);if(U.hasEagerState=!0,U.eagerState=L,u5(L,w))return KQ($,Z,U,0),_1===null&&UQ(),!1}catch(T){}finally{x.H=z}}if(Q=Dq($,Z,U,Y),Q!==null)return g1(Q,$,Y),WH(Q,Z,Y),!0}return!1}function CY($,Z,Q,Y){if(x.T===null&&M7===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."),Y={lane:2,revertLane:eY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},hQ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=Dq($,Q,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),g1(Z,$,2))}function hQ($){var Z=$.alternate;return $===E0||Z!==null&&Z===E0}function FH($,Z){r9=gG=!0;var Q=$.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),$.pending=Z}function WH($,Z,Q){if((Q&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,r8($,Q)}}function OY($){if($!==null&&typeof $!=="function"){var Z=String($);BM.has(Z)||(BM.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function IY($,Z,Q,Y){var U=$.memoizedState,B=Q(Y,U);if($.mode&D5){P1(!0);try{B=Q(Y,U)}finally{P1(!1)}}B===void 0&&(Z=i(Z)||"Component",XM.has(Z)||(XM.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:r0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function zH($,Z,Q,Y,U,B,z){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(Q=w.shouldComponentUpdate(Y,B,z),$.mode&D5){P1(!0);try{Q=w.shouldComponentUpdate(Y,B,z)}finally{P1(!1)}}return Q===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),Q}return Z.prototype&&Z.prototype.isPureReactComponent?!j$(Q,Y)||!j$(U,B):!0}function MH($,Z,Q,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(Q,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(Q,Y),Z.state!==U&&($=d($)||"Component",JM.has($)||(JM.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),_N.enqueueReplaceState(Z,Z.state,null))}function X7($,Z){var Q=Z;if("ref"in Z){Q={};for(var Y in Z)Y!=="ref"&&(Q[Y]=Z[Y])}if($=$.defaultProps){Q===Z&&(Q=r0({},Q));for(var U in $)Q[U]===void 0&&(Q[U]=$[U])}return Q}function wH($){aX($),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 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
116
116
 
117
117
  %s
118
- `,s9?"An error occurred in the <"+s9+"> 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 RH($){var Z=s9?"The above error occurred in the <"+s9+"> component.":"The above error occurred in one of your React components.",Q="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
118
+ `,Zr?"An error occurred in the <"+Zr+"> 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 LS(e){var t=Zr?"The above error occurred in the <"+Zr+"> 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, "+((Tb||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var l=e.environmentName;e=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,$,Z,Q].slice(0),typeof $[0]==="string"?$.splice(0,1,sM+" "+$[0],nM,U3+Y+U3,oM):$.splice(0,0,sM,nM,U3+Y+U3,oM),$.unshift(console),Y=hO.apply(console.error,$),Y()}else console.error(`%o
124
+ `,e,t,o].slice(0),typeof e[0]==="string"?e.splice(0,1,QT+" "+e[0],KT,hp+l+hp,JT):e.splice(0,0,QT,KT,hp+l+hp,JT),e.unshift(console),l=qD.apply(console.error,e),l()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,$,Z,Q)}function _H($){aX($)}function uQ($,Z){try{s9=Z.source?d(Z.source):null,LN=null;var Q=Z.value;if(x.actQueue!==null)x.thrownErrors.push(Q);else{var Y=$.onUncaughtError;Y(Q,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function LH($,Z,Q){try{s9=Q.source?d(Q.source):null,LN=d(Z);var Y=$.onCaughtError;Y(Q.value,{componentStack:Q.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function VY($,Z,Q){return Q=x2(Q),Q.tag=FN,Q.payload={element:null},Q.callback=function(){q0(Z.source,uQ,$,Z)},Q}function AY($){return $=x2($),$.tag=FN,$}function EY($,Z,Q,Y){var U=Q.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y)}}var z=Q.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&($.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y),typeof U!=="function"&&(F8===null?F8=new Set([this]):F8.add(this)),FO(this,Y),typeof U==="function"||(Q.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.",d(Q)||"Unknown")})}function mP($,Z,Q,Y,U){if(Q.flags|=32768,v4&&i$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=Q.alternate,Z!==null&&X9(Z,Q,U,!0),i0&&(f4=!0),Q=T6.current,Q!==null){switch(Q.tag){case 31:case 13:return h6===null?nQ():Q.alternate===null&&b1===M2&&(b1=mG),Q.flags&=-257,Q.flags|=65536,Q.lanes=U,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?Q.updateQueue=new Set([Y]):Z.add(Y),oY($,Y,U)),!1;case 22:return Q.flags|=65536,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},Q.updateQueue=Z):(Q=Z.retryQueue,Q===null?Z.retryQueue=new Set([Y]):Q.add(Y)),oY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+Q.tag+"). This is a bug in React.")}return oY($,Y,U),nQ(),!1}if(i0)return f4=!0,Z=T6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==JN&&k$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),Q))):(Y!==JN&&k$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),Q)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=H6(Y,Q),U=VY($.stateNode,Y,U),IQ($,U),b1!==U8&&(b1=T7)),!1;var B=H6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),Q);if(pZ===null?pZ=[B]:pZ.push(B),b1!==U8&&(b1=T7),Z===null)return!0;Y=H6(Y,Q),Q=Z;do{switch(Q.tag){case 3:return Q.flags|=65536,$=U&-U,Q.lanes|=$,$=VY(Q.stateNode,Y,$),IQ(Q,$),!1;case 1:if(Z=Q.type,B=Q.stateNode,(Q.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(F8===null||!F8.has(B))))return Q.flags|=65536,U&=-U,Q.lanes|=U,U=AY(U),EY(U,$,Q,Y),IQ(Q,U),!1}Q=Q.return}while(Q!==null);return!1}function w5($,Z,Q,Y){Z.child=$===null?lz(Z,null,Q,Y):L7(Z,$.child,Q,Y)}function PH($,Z,Q,Y,U){Q=Q.render;var B=Z.ref;if("ref"in Y){var z={};for(var w in Y)w!=="ref"&&(z[w]=Y[w])}else z=Y;if(J7(Z),Y=eq($,Z,Q,z,B,U),w=ZY(),$!==null&&!e1)return JY($,Z,U),$2($,Z,U);return i0&&w&&yq(Z),Z.flags|=1,w5($,Z,Y,U),Z.child}function TH($,Z,Q,Y,U){if($===null){var B=Q.type;if(typeof B==="function"&&!vq(B)&&B.defaultProps===void 0&&Q.compare===null)return Q=t8(B),Z.tag=15,Z.type=Q,DY(Z,B),CH($,Z,Q,Y,U);return $=kq(Q.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!yY($,U)){var z=B.memoizedProps;if(Q=Q.compare,Q=Q!==null?Q:j$,Q(z,Y)&&$.ref===Z.ref)return $2($,Z,U)}return Z.flags|=1,$=a4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function CH($,Z,Q,Y,U){if($!==null){var B=$.memoizedProps;if(j$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(e1=!1,Z.pendingProps=Y=B,yY($,U))($.flags&131072)!==0&&(e1=!0);else return Z.lanes=$.lanes,$2($,Z,U)}return SY($,Z,Q,Y,U)}function OH($,Z,Q,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:RZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|Q:Q,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~B}else Y=0,Z.child=null;return IH($,Z,B,Q,Y)}if((Q&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&_Q(Z,B!==null?B.cachePool:null),B!==null?xB(Z,B):oq(Z),mB(Z);else return Y=Z.lanes=536870912,IH($,Z,B!==null?B.baseLanes|Q:Q,Q,Y)}else B!==null?(_Q(Z,B.cachePool),xB(Z,B),p2(Z),Z.memoizedState=null):($!==null&&_Q(Z,null),oq(Z),p2(Z));return w5($,Z,U,Q),Z.child}function c$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:RZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function IH($,Z,Q,Y,U){var B=lq();return B=B===null?null:{parent:a1._currentValue,pool:B},Z.memoizedState={baseLanes:Q,cachePool:B},$!==null&&_Q(Z,null),oq(Z),mB(Z),$!==null&&X9($,Z,Y,!0),Z.childLanes=U,null}function xQ($,Z){var Q=Z.hidden;return Q!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,o)}function CS(e){eb(e)}function Vf(e,t){try{Zr=t.source?q(t.source):null,Tb=null;var o=t.value;if(H.actQueue!==null)H.thrownErrors.push(o);else{var l=e.onUncaughtError;l(o,{componentStack:t.stack})}}catch(u){setTimeout(function(){throw u})}}function TS(e,t,o){try{Zr=o.source?q(o.source):null,Tb=q(t);var l=e.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Rg(e,t,o){return o=Vs(o),o.tag=yb,o.payload={element:null},o.callback=function(){le(t.source,Vf,e,t)},o}function _g(e){return e=Vs(e),e.tag=yb,e}function Dg(e,t,o,l){var u=o.type.getDerivedStateFromError;if(typeof u==="function"){var d=l.value;e.payload=function(){return u(d)},e.callback=function(){y0(o),le(l.source,TS,t,o,l)}}var m=o.stateNode;m!==null&&typeof m.componentDidCatch==="function"&&(e.callback=function(){y0(o),le(l.source,TS,t,o,l),typeof u!=="function"&&(gl===null?gl=new Set([this]):gl.add(this)),yD(this,l),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 Gk(e,t,o,l,u){if(o.flags|=32768,Pn&&ec(e,u),l!==null&&typeof l==="object"&&typeof l.then==="function"){if(t=o.alternate,t!==null&&cr(t,o,u,!0),Ke&&(zn=!0),o=To.current,o!==null){switch(o.tag){case 31:case 13:return Ho===null?Kf():o.alternate===null&&Pt===xs&&(Pt=Gh),o.flags&=-257,o.flags|=65536,o.lanes=u,l===zh?o.flags|=16384:(t=o.updateQueue,t===null?o.updateQueue=new Set([l]):t.add(l),Jg(e,l,u)),!1;case 22:return o.flags|=65536,l===zh?o.flags|=16384:(t=o.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=t):(o=t.retryQueue,o===null?t.retryQueue=new Set([l]):o.add(l)),Jg(e,l,u)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return Jg(e,l,u),Kf(),!1}if(Ke)return zn=!0,t=To.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==lb&&Bu(po(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:l}),o))):(l!==lb&&Bu(po(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:l}),o)),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=po(l,o),u=Rg(e.stateNode,l,u),kf(e,u),Pt!==fl&&(Pt=wi)),!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:l}),o);if(Yc===null?Yc=[d]:Yc.push(d),Pt!==fl&&(Pt=wi),t===null)return!0;l=po(l,o),o=t;do{switch(o.tag){case 3:return o.flags|=65536,e=u&-u,o.lanes|=e,e=Rg(o.stateNode,l,e),kf(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"&&(gl===null||!gl.has(d))))return o.flags|=65536,u&=-u,o.lanes|=u,u=_g(u),Dg(u,e,o,l),kf(o,u),!1}o=o.return}while(o!==null);return!1}function ba(e,t,o,l){t.child=e===null?W1(t,null,o,l):Ci(t,e.child,o,l)}function wS(e,t,o,l,u){o=o.render;var d=t.ref;if("ref"in l){var m={};for(var y in l)y!=="ref"&&(m[y]=l[y])}else m=l;if(si(t),l=og(e,t,o,m,d,u),y=sg(),e!==null&&!ea)return lg(e,t,u),os(e,t,u);return Ke&&y&&Hm(t),t.flags|=1,ba(e,t,l,u),t.child}function MS(e,t,o,l,u){if(e===null){var d=o.type;if(typeof d==="function"&&!Bm(d)&&d.defaultProps===void 0&&o.compare===null)return o=ti(d),t.tag=15,t.type=o,Og(t,d),IS(e,t,o,l,u);return e=Nm(o.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e}if(d=e.child,!Hg(e,u)){var m=d.memoizedProps;if(o=o.compare,o=o!==null?o:Ou,o(m,l)&&e.ref===t.ref)return os(e,t,u)}return t.flags|=1,e=Jn(d,l),e.ref=t.ref,e.return=t,t.child=e}function IS(e,t,o,l,u){if(e!==null){var d=e.memoizedProps;if(Ou(d,l)&&e.ref===t.ref&&t.type===e.type)if(ea=!1,t.pendingProps=l=d,Hg(e,u))(e.flags&131072)!==0&&(ea=!0);else return t.lanes=e.lanes,os(e,t,u)}return Eg(e,t,o,l,u)}function AS(e,t,o,l){var u=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Sc,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|o:o,e!==null){l=t.child=e.child;for(u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~d}else l=0,t.child=null;return kS(e,t,d,o,l)}if((o&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cf(t,d!==null?d.cachePool:null),d!==null?j0(t,d):Jm(t),G0(t);else return l=t.lanes=536870912,kS(e,t,d!==null?d.baseLanes|o:o,o,l)}else d!==null?(Cf(t,d.cachePool),j0(t,d),Ys(t),t.memoizedState=null):(e!==null&&Cf(t,null),Jm(t),Ys(t));return ba(e,t,u,o),t.child}function Xu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Sc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kS(e,t,o,l,u){var d=Wm();return d=d===null?null:{parent:Qt._currentValue,pool:d},t.memoizedState={baseLanes:o,cachePool:d},e!==null&&Cf(t,null),Jm(t),G0(t),e!==null&&cr(e,t,l,!0),t.childLanes=u,null}function jf(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>`,Q===!0?"hidden":Q===!1?"hidden={false}":"hidden={...}",Q?'mode="hidden"':'mode="visible"'),Z=dQ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function VH($,Z,Q){return L7(Z,$.child,null,Q),$=xQ(Z,Z.pendingProps),$.flags|=2,z6(Z),Z.memoizedState=null,$}function dP($,Z,Q){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(i0){if(Y.mode==="hidden")return $=xQ(Z,Y),Z.lanes=536870912,c$(null,$);if(iq(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data===E7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g2(Z);return Z.lanes=536870912,null}return xQ(Z,Y)}var B=$.memoizedState;if(B!==null){var z=B.dehydrated;if(iq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=VH($,Z,Q);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(LB(),(Q&536870912)!==0&&sQ(Z),e1||X9($,Z,Q,!1),U=(Q&$.childLanes)!==0,e1||U){if(Y=_1,Y!==null&&(z=s8(Y,Q),z!==0&&z!==B.retryLane))throw B.retryLane=z,E5($,z),g1(Y,$,z),PN;nQ(),Z=VH($,Z,Q)}else $=B.treeContext,V1=w6(z.nextSibling),L5=Z,i0=!0,J8=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=xQ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(Q&536870912)!==0&&(Q&$.lanes)!==0&&sQ(Z),$=a4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function mQ($,Z){var Q=Z.ref;if(Q===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof Q!=="function"&&typeof Q!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==Q)Z.flags|=4194816}}function SY($,Z,Q,Y,U){if(Q.prototype&&typeof Q.prototype.render==="function"){var B=i(Q)||"Unknown";HM[B]||(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.",B,B),HM[B]=!0)}if(Z.mode&D5&&G4.recordLegacyContextWarning(Z,null),$===null&&(DY(Z,Z.type),Q.contextTypes&&(B=i(Q)||"Unknown",WM[B]||(WM[B]=!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)",B)))),J7(Z),Q=eq($,Z,Q,Y,void 0,U),Y=ZY(),$!==null&&!e1)return JY($,Z,U),$2($,Z,U);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,U),Z.child}function AH($,Z,Q,Y,U,B){if(J7(Z),W2=-1,yZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,Q=$Y(Z,Y,Q,U),dB($,Z),Y=ZY(),$!==null&&!e1)return JY($,Z,B),$2($,Z,B);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,B),Z.child}function EH($,Z,Q,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,z=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,z,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var w=U&-U;if(Z.lanes|=w,z=_1,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=AY(w),EY(w,z,Z,H6(B,Z)),IQ(Z,w)}if(J7(Z),Z.stateNode===null){if(z=Z8,B=Q.contextType,"contextType"in Q&&B!==null&&(B===void 0||B.$$typeof!==S4)&&!KM.has(Q)&&(KM.add(Q),w=B===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 B!=="object"?" However, it is set to a "+typeof B+".":B.$$typeof===TX?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",i(Q)||"Component",w)),typeof B==="object"&&B!==null&&(z=j1(B)),B=new Q(Y,z),Z.mode&D5){P1(!0);try{B=new Q(Y,z)}finally{P1(!1)}}if(z=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=_N,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=ZM,typeof Q.getDerivedStateFromProps==="function"&&z===null&&(z=i(Q)||"Component",QM.has(z)||(QM.add(z),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.",z,B.state===null?"null":"undefined",z))),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=w=z=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?w="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),z!==null||w!==null||L!==null){B=i(Q)||"Component";var T=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qM.has(B)||(qM.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),t=Yf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function RS(e,t,o){return Ci(t,e.child,null,o),e=jf(t,t.pendingProps),e.flags|=2,yo(t),t.memoizedState=null,e}function Yk(e,t,o){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ke){if(l.mode==="hidden")return e=jf(t,l),t.lanes=536870912,Xu(null,e);if(tg(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 t.lanes=536870912,null}return jf(t,l)}var d=e.memoizedState;if(d!==null){var m=d.dehydrated;if(tg(t),u)if(t.flags&256)t.flags&=-257,t=RS(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(T0(),(o&536870912)!==0&&Qf(t),ea||cr(e,t,o,!1),u=(o&e.childLanes)!==0,ea||u){if(l=vt,l!==null&&(m=Zl(l,o),m!==0&&m!==d.retryLane))throw d.retryLane=m,ka(e,m),zt(l,e,m),wb;Kf(),t=RS(e,t,o)}else e=d.treeContext,It=xo(m.nextSibling),Sa=t,Ke=!0,sl=null,zn=!1,Co=null,zo=!1,e!==null&&C0(t,e),t=jf(t,l),t.flags|=4096;return t}return d=e.child,l={mode:l.mode,children:l.children},(o&536870912)!==0&&(o&e.lanes)!==0&&Qf(t),e=Jn(d,l),e.ref=t.ref,t.child=e,e.return=t,e}function Gf(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 Eg(e,t,o,l,u){if(o.prototype&&typeof o.prototype.render==="function"){var d=K(o)||"Unknown";gT[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),gT[d]=!0)}if(t.mode&_a&&ln.recordLegacyContextWarning(t,null),e===null&&(Og(t,t.type),o.contextTypes&&(d=K(o)||"Unknown",bT[d]||(bT[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)))),si(t),o=og(e,t,o,l,void 0,u),l=sg(),e!==null&&!ea)return lg(e,t,u),os(e,t,u);return Ke&&l&&Hm(t),t.flags|=1,ba(e,t,o,u),t.child}function _S(e,t,o,l,u,d){if(si(t),ys=-1,Uc=e!==null&&e.type!==t.type,t.updateQueue=null,o=ng(t,l,o,u),Y0(e,t),l=sg(),e!==null&&!ea)return lg(e,t,d),os(e,t,d);return Ke&&l&&Hm(t),t.flags|=1,ba(e,t,o,d),t.child}function DS(e,t,o,l,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=vt,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y=_g(y),Dg(y,m,t,po(d,t)),kf(t,y)}if(si(t),t.stateNode===null){if(m=nl,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==Dn)&&!pT.has(o)&&(pT.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===My?" 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=Dt(d)),d=new o(l,m),t.mode&_a){Lt(!0);try{d=new o(l,m)}finally{Lt(!1)}}if(m=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Cb,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=sT,typeof o.getDerivedStateFromProps==="function"&&m===null&&(m=K(o)||"Component",iT.has(m)||(iT.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()";uT.has(d)||(uT.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
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,B,T,z!==null?`
137
- `+z:"",w!==null?`
138
- `+w:"",L!==null?`
139
- `+L:""))}}B=Z.stateNode,z=i(Q)||"Component",B.render||(Q.prototype&&typeof Q.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.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?",z),B.getDefaultProps&&!B.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.",z),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),Q.childContextTypes&&!UM.has(Q)&&(UM.add(Q),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),Q.contextTypes&&!NM.has(Q)&&(NM.add(Q),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)",z)),typeof B.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.",z),Q.prototype&&Q.prototype.isPureReactComponent&&typeof B.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.",i(Q)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof B.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().",z),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),w=B.props!==Y,B.props!==void 0&&w&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),B.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.",z,z),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||GM.has(Q)||(GM.add(Q),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(Q))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof Q.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(w=B.state)&&(typeof w!=="object"||G5(w))&&console.error("%s.state: must be set to an object or null",z),typeof B.getChildContext==="function"&&typeof Q.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},sq(Z),z=Q.contextType,B.context=typeof z==="object"&&z!==null?j1(z):Z8,B.state===Y&&(z=i(Q)||"Component",YM.has(z)||(YM.add(z),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.",z))),Z.mode&D5&&G4.recordLegacyContextWarning(Z,B),G4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,z=Q.getDerivedStateFromProps,typeof z==="function"&&(IY(Z,Q,z,Y),B.state=Z.memoizedState),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(z=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),z!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),_N.enqueueReplaceState(B,B.state,null)),x$(Z,Y,B,U),u$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==A0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var b=Z.memoizedProps;w=X7(Q,b),B.props=w;var f=B.context;L=Q.contextType,z=Z8,typeof L==="object"&&L!==null&&(z=j1(L)),T=Q.getDerivedStateFromProps,L=typeof T==="function"||typeof B.getSnapshotBeforeUpdate==="function",b=Z.pendingProps!==b,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(b||f!==z)&&MH(Z,B,Y,z),N8=!1;var S=Z.memoizedState;B.state=S,x$(Z,Y,B,U),u$(),f=Z.memoizedState,b||S!==f||N8?(typeof T==="function"&&(IY(Z,Q,T,Y),f=Z.memoizedState),(w=N8||zH(Z,Q,w,Y,S,f,z))?(L||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==A0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==A0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=z,B=w):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==A0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,nq($,Z),z=Z.memoizedProps,L=X7(Q,z),B.props=L,T=Z.pendingProps,S=B.context,f=Q.contextType,w=Z8,typeof f==="object"&&f!==null&&(w=j1(f)),b=Q.getDerivedStateFromProps,(f=typeof b==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(z!==T||S!==w)&&MH(Z,B,Y,w),N8=!1,S=Z.memoizedState,B.state=S,x$(Z,Y,B,U),u$();var g=Z.memoizedState;z!==T||S!==g||N8||$!==null&&$.dependencies!==null&&zQ($.dependencies)?(typeof b==="function"&&(IY(Z,Q,b,Y),g=Z.memoizedState),(L=N8||zH(Z,Q,L,Y,S,g,w)||$!==null&&$.dependencies!==null&&zQ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,w),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,w)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=w,B=L):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(w=B,mQ($,Z),z=(Z.flags&128)!==0,w||z){if(w=Z.stateNode,e7(Z),z&&typeof Q.getDerivedStateFromError!=="function")Q=null,x5=-1;else if(Q=jz(w),Z.mode&D5){P1(!0);try{jz(w)}finally{P1(!1)}}Z.flags|=1,$!==null&&z?(Z.child=L7(Z,$.child,null,U),Z.child=L7(Z,null,Q,U)):w5($,Z,Q,U),Z.memoizedState=w.state,$=Z.child}else $=$2($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(n9||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(Z)||"a component"),n9=!0),$}function SH($,Z,Q,Y){return Z7(),Z.flags|=256,w5($,Z,Q,Y),Z.child}function DY($,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",zM[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),zM[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",FM[Z]||(console.error("%s: Function components do not support contextType.",Z),FM[Z]=!0))}function jY($){return{baseLanes:$,cachePool:AB()}}function vY($,Z,Q){return $=$!==null?$.childLanes&~Q:0,Z&&($|=a5),$}function DH($,Z,Q){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,z=(Z.flags&128)!==0;if((Y=z)||(Y=$!==null&&$.memoizedState===null?!1:(c1.current&bZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?d2(Z):p2(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data!==E7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g2(Z);return BX(Q)?Z.lanes=32:Z.lanes=536870912,null}var w=U.children;if(U=U.fallback,B){p2(Z);var L=Z.mode;return w=dQ({mode:"hidden",children:w},L),U=e8(U,L,Q,null),w.return=Z,U.return=Z,w.sibling=U,Z.child=w,U=Z.child,U.memoizedState=jY(Q),U.childLanes=vY($,Y,Q),Z.memoizedState=TN,c$(null,U)}return d2(Z),kY(Z,w)}var T=$.memoizedState;if(T!==null){var b=T.dehydrated;if(b!==null){if(z)Z.flags&256?(d2(Z),Z.flags&=-257,Z=bY($,Z,Q)):Z.memoizedState!==null?(p2(Z),Z.child=$.child,Z.flags|=128,Z=null):(p2(Z),w=U.fallback,L=Z.mode,U=dQ({mode:"visible",children:U.children},L),w=e8(w,L,Q,null),w.flags|=2,U.return=Z,w.return=Z,U.sibling=w,Z.child=U,L7(Z,$.child,null,Q),U=Z.child,U.memoizedState=jY(Q),U.childLanes=vY($,Y,Q),Z.memoizedState=TN,Z=c$(null,U));else if(d2(Z),LB(),(Q&536870912)!==0&&sQ(Z),BX(b)){if(Y=b.nextSibling&&b.nextSibling.dataset,Y){w=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=w,U=L,b=S,w=B,L=b,w=w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=U||"",w.digest=Y,Y=L===void 0?null:L,U={value:w,source:null,stack:Y},typeof Y==="string"&&ZN.set(w,U),k$(U),Z=bY($,Z,Q)}else if(e1||X9($,Z,Q,!1),Y=(Q&$.childLanes)!==0,e1||Y){if(Y=_1,Y!==null&&(U=s8(Y,Q),U!==0&&U!==T.retryLane))throw T.retryLane=U,E5($,U),g1(Y,$,U),PN;KX(b)||nQ(),Z=bY($,Z,Q)}else KX(b)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,V1=w6(b.nextSibling),L5=Z,i0=!0,J8=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=kY(Z,U.children),Z.flags|=4096);return Z}}if(B)return p2(Z),w=U.fallback,L=Z.mode,S=$.child,b=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,b!==null?w=a4(b,w):(w=e8(w,L,Q,null),w.flags|=2),w.return=Z,U.return=Z,U.sibling=w,Z.child=U,c$(null,U),U=Z.child,w=$.child.memoizedState,w===null?w=jY(Q):(L=w.cachePool,L!==null?(S=a1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=AB(),w={baseLanes:w.baseLanes|Q,cachePool:L}),U.memoizedState=w,U.childLanes=vY($,Y,Q),Z.memoizedState=TN,c$($.child,U);return T!==null&&(Q&62914560)===Q&&(Q&$.lanes)!==0&&sQ(Z),d2(Z),Q=$.child,$=Q.sibling,Q=a4(Q,{mode:"visible",children:U.children}),Q.return=Z,Q.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=Q,Z.memoizedState=null,Q}function kY($,Z){return Z=dQ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function dQ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function bY($,Z,Q){return L7(Z,$.child,null,Q),$=kY(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function jH($,Z,Q){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),xq($.return,Z,Q)}function fY($,Z,Q,Y,U,B){var z=$.memoizedState;z===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:Q,tailMode:U,treeForkCount:B}:(z.isBackwards=Z,z.rendering=null,z.renderingStartTime=0,z.last=Y,z.tail=Q,z.tailMode=U,z.treeForkCount=B)}function vH($,Z,Q){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,z=Y.children,w=c1.current;if((Y=(w&bZ)!==0)?(w=w&c9|bZ,Z.flags|=128):w&=c9,O0(c1,w,Z),w=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!MM[w])if(MM[w]=!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(w=B==null?"null":B,!xG[w])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")xG[w]=!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 B!=="visible"&&B!=="collapsed"&&B!=="hidden"?(xG[w]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&(xG[w]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(G5(z)){for(w=0;w<z.length;w++)if(!gB(z[w],w))break $}else if(w=t(z),typeof w==="function"){if(w=w.call(z))for(var L=w.next(),T=0;!L.done;L=w.next()){if(!gB(L.value,T))break $;T++}}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(w5($,Z,z,Q),i0?(y2(),z=_Z):z=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&jH($,Q,Z);else if($.tag===19)jH($,Q,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":Q=Z.child;for(U=null;Q!==null;)$=Q.alternate,$!==null&&VQ($)===null&&(U=Q),Q=Q.sibling;Q=U,Q===null?(U=Z.child,Z.child=null):(U=Q.sibling,Q.sibling=null),fY(Z,!1,U,Q,B,z);break;case"backwards":case"unstable_legacy-backwards":Q=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&VQ($)===null){Z.child=U;break}$=U.sibling,U.sibling=Q,Q=U,U=$}fY(Z,!0,Q,null,B,z);break;case"together":fY(Z,!1,null,null,void 0,z);break;default:Z.memoizedState=null}return Z.child}function $2($,Z,Q){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,B8|=Z.lanes,(Q&Z.childLanes)===0)if($!==null){if(X9($,Z,Q,!1),(Q&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,Q=a4($,$.pendingProps),Z.child=Q;for(Q.return=Z;$.sibling!==null;)$=$.sibling,Q=Q.sibling=a4($,$.pendingProps),Q.return=Z;Q.sibling=null}return Z.child}function yY($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zQ($)?!0:!1}function pP($,Z,Q){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),h2(Z,a1,$.memoizedState.cache),Z7();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:h2(Z,Z.type,Z.memoizedProps.value);break;case 12:(Q&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,iq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return d2(Z),Z.flags|=128,null;if((Q&Z.child.childLanes)!==0)return DH($,Z,Q);return d2(Z),$=$2($,Z,Q),$!==null?$.sibling:null}d2(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(Q&Z.childLanes)!==0,Y||(X9($,Z,Q,!1),Y=(Q&Z.childLanes)!==0),U){if(Y)return vH($,Z,Q);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),O0(c1,c1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,OH($,Z,Q,Z.pendingProps);case 24:h2(Z,a1,$.memoizedState.cache)}return $2($,Z,Q)}function gY($,Z,Q){if(Z._debugNeedsRemount&&$!==null){Q=kq(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),Q._debugStack=Z._debugStack,Q._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,Q.index=Z.index,Q.sibling=Z.sibling,Q.return=Z.return,Q.ref=Z.ref,Q._debugInfo=Z._debugInfo,Z===Y.child)Y.child=Q;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=Q}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),Q.flags|=2,Q}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)e1=!0;else{if(!yY($,Q)&&(Z.flags&128)===0)return e1=!1,pP($,Z,Q);e1=($.flags&131072)!==0?!0:!1}else{if(e1=!1,Y=i0)y2(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,y2(),wB(Z,_Z,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=u2(Z.elementType),Z.type=$,typeof $==="function")vq($)?(Y=X7($,Y),Z.tag=1,Z.type=$=t8($),Z=EH(null,Z,$,Y,Q)):(Z.tag=0,DY(Z,$),Z.type=$=t8($),Z=SY(null,Z,$,Y,Q));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===YZ){Z.tag=11,Z.type=$=jq($),Z=PH(null,Z,$,Y,Q);break $}else if(U===NG){Z.tag=14,Z=TH(null,Z,$,Y,Q);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),Q=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Q+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return SY($,Z,Z.type,Z.pendingProps,Q);case 1:return Y=Z.type,U=X7(Y,Z.pendingProps),EH($,Z,Y,U,Q);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,nq($,Z),x$(Z,Y,null,Q);var z=Z.memoizedState;if(Y=z.cache,h2(Z,a1,Y),Y!==B.cache&&mq(Z,[a1],Q,!0),u$(),Y=z.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:z.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=SH($,Z,Y,Q);break $}else if(Y!==U){U=H6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),k$(U),Z=SH($,Z,Y,Q);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}V1=w6($.firstChild),L5=Z,i0=!0,J8=null,f4=!1,P6=null,y6=!0,Q=lz(Z,null,Y,Q);for(Z.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling}else{if(Z7(),Y===U){Z=$2($,Z,Q);break $}w5($,Z,Y,Q)}Z=Z.child}return Z;case 26:return mQ($,Z),$===null?(Q=QW(Z.type,null,Z.pendingProps,null))?Z.memoizedState=Q:i0||(Q=Z.type,$=Z.pendingProps,Y=k0(o2.current),Y=tQ(Y).createElement(Q),Y[_5]=Z,Y[g5]=$,R5(Y,Q,$),_0(Y),Z.stateNode=Y):Z.memoizedState=QW(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=k0(o2.current),U=F0(),Y=Z.stateNode=ZW(Z.type,Z.pendingProps,Y,U,!1),f4||(U=pF(Y,Z.type,Z.pendingProps,U),U!==null&&($7(Z,0).serverProps=U)),L5=Z,y6=!0,U=V1,s2(Z.type)?(lN=U,V1=w6(Y.firstChild)):V1=U),w5($,Z,Z.pendingProps.children,Q),mQ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=Cq(Z.type,B.ancestorInfo),U=V1,(z=!U)||(z=jT(U,Z.type,Z.pendingProps,y6),z!==null?(Z.stateNode=z,f4||(B=pF(z,Z.type,Z.pendingProps,B),B!==null&&($7(Z,0).serverProps=B)),L5=Z,V1=w6(z.firstChild),y6=!1,B=!0):B=!1,z=!B),z&&(Y&&FQ(Z,U),g2(Z))),a0(Z),U=Z.type,B=Z.pendingProps,z=$!==null?$.memoizedProps:null,Y=B.children,NX(U,B)?Y=null:z!==null&&NX(U,z)&&(Z.flags|=32),Z.memoizedState!==null&&(U=eq($,Z,fP,null,null,Q),tZ._currentValue=U),mQ($,Z),w5($,Z,Y,Q),Z.child;case 6:return $===null&&i0&&(Q=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,Q=Y!=null?QQ(Q,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=V1,(Y=!$)||(Y=vT($,Z.pendingProps,y6),Y!==null?(Z.stateNode=Y,L5=Z,V1=null,Y=!0):Y=!1,Y=!Y),Y&&(Q&&FQ(Z,$),g2(Z))),null;case 13:return DH($,Z,Q);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=L7(Z,null,Y,Q):w5($,Z,Y,Q),Z.child;case 11:return PH($,Z,Z.type,Z.pendingProps,Q);case 7:return w5($,Z,Z.pendingProps,Q),Z.child;case 8:return w5($,Z,Z.pendingProps.children,Q),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w5($,Z,Z.pendingProps.children,Q),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||wM||(wM=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),h2(Z,Y,B),w5($,Z,U.children,Q),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="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."),J7(Z),U=j1(U),Y=UN(Y,U,void 0),Z.flags|=1,w5($,Z,Y,Q),Z.child;case 14:return TH($,Z,Z.type,Z.pendingProps,Q);case 15:return CH($,Z,Z.type,Z.pendingProps,Q);case 19:return vH($,Z,Q);case 31:return dP($,Z,Q);case 22:return OH($,Z,Q,Z.pendingProps);case 24:return J7(Z),Y=j1(a1),$===null?(U=lq(),U===null&&(U=_1,B=dq(),U.pooledCache=B,Q7(B),B!==null&&(U.pooledCacheLanes|=Q),U=B),Z.memoizedState={parent:Y,cache:U},sq(Z),h2(Z,a1,U)):(($.lanes&Q)!==0&&(nq($,Z),x$(Z,null,null,Q),u$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),h2(Z,a1,Y)):(Y=B.cache,h2(Z,a1,Y),Y!==U.cache&&mq(Z,[a1],Q,!0))),w5($,Z,Z.pendingProps.children,Q),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z2($){$.flags|=4}function hY($,Z,Q,Y,U){if(Z=($.mode&UO)!==A0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(BF())$.flags|=8192;else throw _7=bG,BN}else $.flags&=-16777217}function kH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&m6)!==j7)$.flags&=-16777217;else if($.flags|=16777216,!NW(Z))if(BF())$.flags|=8192;else throw _7=bG,BN}function pQ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?Z9():536870912,$.lanes|=Z,I7|=Z)}function l$($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var Q=null;Z!==null;)Z.alternate!==null&&(Q=Z),Z=Z.sibling;Q===null?$.tail=null:Q.sibling=null;break;case"collapsed":Q=$.tail;for(var Y=null;Q!==null;)Q.alternate!==null&&(Y=Q),Q=Q.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,Q=0,Y=0;if(Z)if(($.mode&h0)!==A0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)Q|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&h0)!==A0){U=$.actualDuration,B=$.selfBaseDuration;for(var z=$.child;z!==null;)Q|=z.lanes|z.childLanes,Y|=z.subtreeFlags,Y|=z.flags,U+=z.actualDuration,B+=z.treeBaseDuration,z=z.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=Q,Z}function cP($,Z,Q){var Y=Z.pendingProps;switch(gq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T1(Z),null;case 1:return T1(Z),null;case 3:if(Q=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(a1,Z),Y0(Z),Q.pendingContext&&(Q.context=Q.pendingContext,Q.pendingContext=null),$===null||$.child===null)Y9(Z)?(uq(),Z2(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,hq());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z2(Z),B!==null?(T1(Z),kH(Z,B)):(T1(Z),hY(Z,U,null,Y,Q))):B?B!==$.memoizedState?(Z2(Z),T1(Z),kH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z2(Z),T1(Z),hY(Z,U,$,Y,Q)),null;case 27:if(p0(Z),Q=k0(o2.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z2(Z);else{if(!Y){if(Z.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 T1(Z),null}$=F0(),Y9(Z)?PB(Z,$):($=ZW(U,Y,Q,$,!0),Z.stateNode=$,Z2(Z))}return T1(Z),null;case 5:if(p0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z2(Z);else{if(!Y){if(Z.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 T1(Z),null}var z=F0();if(Y9(Z))PB(Z,z);else{switch(B=k0(o2.current),Cq(U,z.ancestorInfo),z=z.context,B=tQ(B),z){case J$:B=B.createElementNS(V9,U);break;case Y3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(V9,U);break;case"math":B=B.createElementNS(zG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.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(B)!=="[object HTMLUnknownElement]"||Z4.call(mM,U)||(mM[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)))}}B[_5]=Z,B[g5]=Y;$:for(z=Z.child;z!==null;){if(z.tag===5||z.tag===6)B.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===Z)break $;for(;z.sibling===null;){if(z.return===null||z.return===Z)break $;z=z.return}z.sibling.return=z.return,z=z.sibling}Z.stateNode=B;$:switch(R5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&Z2(Z)}}return T1(Z),hY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,Q),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&Z2(Z);else{if(typeof Y!=="string"&&Z.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($=k0(o2.current),Q=F0(),Y9(Z)){if($=Z.stateNode,Q=Z.memoizedProps,U=!f4,Y=null,B=L5,B!==null)switch(B.tag){case 3:U&&(U=eF($,Q,Y),U!==null&&($7(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=eF($,Q,Y),U!==null&&($7(Z,0).serverProps=U))}$[_5]=Z,$=$.nodeValue===Q||Y!==null&&Y.suppressHydrationWarning===!0||hF($.nodeValue,Q)?!0:!1,$||g2(Z,!0)}else U=Q.ancestorInfo.current,U!=null&&QQ(Y,U.tag,Q.ancestorInfo.implicitRootScope),$=tQ($).createTextNode(Y),$[_5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(Q=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=Y9(Z),Q!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[_5]=Z,T1(Z),(Z.mode&h0)!==A0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else uq(),Z7(),(Z.flags&128)===0&&(Q=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&h0)!==A0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else Q=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Q),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=Y9(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[_5]=Z,T1(Z),(Z.mode&h0)!==A0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else uq(),Z7(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&h0)!==A0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=Q,(Z.mode&h0)!==A0&&y$(Z),Z;return Q=Y!==null,$=$!==null&&$.memoizedState!==null,Q&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),Q!==$&&Q&&(Z.child.flags|=8192),pQ(Z,Z.updateQueue),T1(Z),(Z.mode&h0)!==A0&&Q&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return Y0(Z),$===null&&ZX(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(P0(c1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)l$(Y,!1);else{if(b1!==M2||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=VQ($),B!==null){Z.flags|=128,l$(Y,!1),$=B.updateQueue,Z.updateQueue=$,pQ(Z,$),Z.subtreeFlags=0,$=Q;for(Q=Z.child;Q!==null;)zB(Q,$),Q=Q.sibling;return O0(c1,c1.current&c9|bZ,Z),i0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>sG&&(Z.flags|=128,U=!0,l$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=VQ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,pQ(Z,$),l$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>sG&&Q!==536870912&&(Z.flags|=128,U=!0,l$(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=B5(),$.sibling=null,Q=c1.current,Q=U?Q&c9|bZ:Q&c9,O0(c1,Q,Z),i0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return z6(Z),aq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(Q&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),Q=Z.updateQueue,Q!==null&&pQ(Z,Q.retryQueue),Q=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==Q&&(Z.flags|=2048),$!==null&&P0(w7,Z),null;case 24:return Q=null,$!==null&&(Q=$.memoizedState.cache),Z.memoizedState.cache!==Q&&(Z.flags|=2048),t4(a1,Z),T1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function lP($,Z){switch(gq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&h0)!==A0&&y$(Z),Z):null;case 3:return t4(a1,Z),Y0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return p0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&h0)!==A0&&y$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&h0)!==A0&&y$(Z),Z):null;case 19:return P0(c1,Z),null;case 4:return Y0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return z6(Z),aq(Z),$!==null&&P0(w7,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&h0)!==A0&&y$(Z),Z):null;case 24:return t4(a1,Z),null;case 25:return null;default:return null}}function bH($,Z){switch(gq(Z),Z.tag){case 3:t4(a1,Z),Y0(Z);break;case 26:case 27:case 5:p0(Z);break;case 4:Y0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(c1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:z6(Z),aq(Z),$!==null&&P0(w7,Z);break;case 24:t4(a1,Z)}}function T4($){return($.mode&h0)!==A0}function fH($,Z){T4($)?(P4(),r$(Z,$),L4()):r$(Z,$)}function uY($,Z,Q){T4($)?(P4(),H9(Q,$,Z),L4()):H9(Q,$,Z)}function r$($,Z){try{var Q=Z.updateQueue,Y=Q!==null?Q.lastEffect:null;if(Y!==null){var U=Y.next;Q=U;do{if((Q.tag&$)===$&&(Y=void 0,($&m5)!==yG&&(e9=!0),Y=q0(Z,WO,Q),($&m5)!==yG&&(e9=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(Q.tag&C6)!==0?"useLayoutEffect":(Q.tag&m5)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,d,L,m!==null?`
137
+ `+m:"",y!==null?`
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&&!hT.has(o)&&(hT.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&&!fT.has(o)&&(fT.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!==l,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"||rT.has(o)||(rT.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"||sa(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=l,d.state=t.memoizedState,d.refs={},Qm(t),m=o.contextType,d.context=typeof m==="object"&&m!==null?Dt(m):nl,d.state===l&&(m=K(o)||"Component",cT.has(m)||(cT.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&_a&&ln.recordLegacyContextWarning(t,d),ln.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m==="function"&&(kg(t,o,m,l),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"),Cb.enqueueReplaceState(d,d.state,null)),Vu(t,l,d,u),qu(),d.state=t.memoizedState),typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&sn)!==Ae&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var O=t.memoizedProps;y=ci(o,O),d.props=y;var P=d.context;v=o.contextType,m=nl,typeof v==="object"&&v!==null&&(m=Dt(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)&&vS(t,d,l,m),dl=!1;var k=t.memoizedState;d.state=k,Vu(t,l,d,u),qu(),P=t.memoizedState,O||k!==P||dl?(typeof L==="function"&&(kg(t,o,L,l),P=t.memoizedState),(y=dl||xS(t,o,y,l,k,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&sn)!==Ae&&(t.flags|=134217728)):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&sn)!==Ae&&(t.flags|=134217728),t.memoizedProps=l,t.memoizedState=P),d.props=l,d.state=P,d.context=m,d=y):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&sn)!==Ae&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,Km(e,t),m=t.memoizedProps,v=ci(o,m),d.props=v,L=t.pendingProps,k=d.context,P=o.contextType,y=nl,typeof P==="object"&&P!==null&&(y=Dt(P)),O=o.getDerivedStateFromProps,(P=typeof O==="function"||typeof d.getSnapshotBeforeUpdate==="function")||typeof d.UNSAFE_componentWillReceiveProps!=="function"&&typeof d.componentWillReceiveProps!=="function"||(m!==L||k!==y)&&vS(t,d,l,y),dl=!1,k=t.memoizedState,d.state=k,Vu(t,l,d,u),qu();var N=t.memoizedState;m!==L||k!==N||dl||e!==null&&e.dependencies!==null&&xf(e.dependencies)?(typeof O==="function"&&(kg(t,o,O,l),N=t.memoizedState),(v=dl||xS(t,o,v,l,k,N,y)||e!==null&&e.dependencies!==null&&xf(e.dependencies))?(P||typeof d.UNSAFE_componentWillUpdate!=="function"&&typeof d.componentWillUpdate!=="function"||(typeof d.componentWillUpdate==="function"&&d.componentWillUpdate(l,N,y),typeof d.UNSAFE_componentWillUpdate==="function"&&d.UNSAFE_componentWillUpdate(l,N,y)),typeof d.componentDidUpdate==="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=N),d.props=l,d.state=N,d.context=y,d=v):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),d=!1)}if(y=d,Gf(e,t),m=(t.flags&128)!==0,y||m){if(y=t.stateNode,ar(t),m&&typeof o.getDerivedStateFromError!=="function")o=null,Fa=-1;else if(o=P1(y),t.mode&_a){Lt(!0);try{P1(y)}finally{Lt(!1)}}t.flags|=1,e!==null&&m?(t.child=Ci(t,e.child,null,u),t.child=Ci(t,null,o,u)):ba(e,t,o,u),t.memoizedState=y.state,e=t.child}else e=os(e,t,u);return u=t.stateNode,d&&u.props!==l&&(Qr||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"),Qr=!0),e}function ES(e,t,o,l){return ni(),t.flags|=256,ba(e,t,o,l),t.child}function Og(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",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"?`
141
141
 
142
- It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
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
 
144
- `+B+`(() => {
144
+ `+d+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+B+`(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: "+Y,q0(Z,function(w,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,L)},B,z)}Q=Q.next}while(Q!==U)}}catch(w){N1(Z,Z.return,w)}}function H9($,Z,Q){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var z=Y.inst,w=z.destroy;w!==void 0&&(z.destroy=void 0,($&m5)!==yG&&(e9=!0),U=Z,q0(U,zO,U,Q,w),($&m5)!==yG&&(e9=!1))}Y=Y.next}while(Y!==B)}}catch(L){N1(Z,Z.return,L)}}function yH($,Z){T4($)?(P4(),r$(Z,$),L4()):r$(Z,$)}function xY($,Z,Q){T4($)?(P4(),H9(Q,$,Z),L4()):H9(Q,$,Z)}function gH($){var Z=$.updateQueue;if(Z!==null){var Q=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||n9||(Q.props!==$.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.",d($)||"instance"),Q.state!==$.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.",d($)||"instance"));try{q0($,uB,Z,Q)}catch(Y){N1($,$.return,Y)}}}function rP($,Z,Q){return $.getSnapshotBeforeUpdate(Z,Q)}function sP($,Z){var{memoizedProps:Q,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||n9||(Z.props!==$.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.",d($)||"instance"),Z.state!==$.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.",d($)||"instance"));try{var U=X7($.type,Q),B=q0($,rP,Z,U,Y);Q=RM,B!==void 0||Q.has($.type)||(Q.add($.type),q0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(z){N1($,$.return,z)}}function hH($,Z,Q){Q.props=X7($.type,$.memoizedProps),Q.state=$.memoizedState,T4($)?(P4(),q0($,gz,$,Z,Q),L4()):q0($,gz,$,Z,Q)}function nP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var Q=$.stateNode;break;case 30:Q=$.stateNode;break;default:Q=$.stateNode}if(typeof Z==="function")if(T4($))try{P4(),$.refCleanup=Z(Q)}finally{L4()}else $.refCleanup=Z(Q);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=Q}}function s$($,Z){try{q0($,nP,$)}catch(Q){N1($,Z,Q)}}function C4($,Z){var{ref:Q,refCleanup:Y}=$;if(Q!==null)if(typeof Y==="function")try{if(T4($))try{P4(),q0($,Y)}finally{L4($)}else q0($,Y)}catch(U){N1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Q==="function")try{if(T4($))try{P4(),q0($,Q,null)}finally{L4($)}else q0($,Q,null)}catch(U){N1($,Z,U)}else Q.current=null}function uH($,Z,Q,Y){var U=$.memoizedProps,B=U.id,z=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Q),typeof z==="function"&&z(B,Z,Y,Q)}function oP($,Z,Q,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,Q)}function xH($){var{type:Z,memoizedProps:Q,stateNode:Y}=$;try{q0($,_T,Y,Z,Q,$)}catch(U){N1($,$.return,U)}}function mY($,Z,Q){try{q0($,PT,$.stateNode,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function mH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&s2($.type)||$.tag===4}function dY($){$:for(;;){for(;$.sibling===null;){if($.return===null||mH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&s2($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function pY($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(nF(Q),(Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q).insertBefore($,Z)):(nF(Q),Z=Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q,Z.appendChild($),Q=Q._reactRootContainer,Q!==null&&Q!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&s2($.type)&&(Q=$.stateNode,Z=null),$=$.child,$!==null))for(pY($,Z,Q),$=$.sibling;$!==null;)pY($,Z,Q),$=$.sibling}function cQ($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?Q.insertBefore($,Z):Q.appendChild($);else if(Y!==4&&(Y===27&&s2($.type)&&(Q=$.stateNode),$=$.child,$!==null))for(cQ($,Z,Q),$=$.sibling;$!==null;)cQ($,Z,Q),$=$.sibling}function aP($){for(var Z,Q=$.return;Q!==null;){if(mH(Q)){Z=Q;break}Q=Q.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,Q=dY($),cQ($,Q,Z);break;case 5:Q=Z.stateNode,Z.flags&32&&(sF(Q),Z.flags&=-33),Z=dY($),cQ($,Z,Q);break;case 3:case 4:Z=Z.stateNode.containerInfo,Q=dY($),pY($,Q,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dH($){var{stateNode:Z,memoizedProps:Q}=$;try{q0($,gT,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function pH($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function iP($,Z){if($=$.containerInfo,dN=K3,$=qB($),Vq($)){if("selectionStart"in $)var Q={start:$.selectionStart,end:$.selectionEnd};else $:{Q=(Q=$.ownerDocument)&&Q.defaultView||window;var Y=Q.getSelection&&Q.getSelection();if(Y&&Y.rangeCount!==0){Q=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{Q.nodeType,B.nodeType}catch($0){Q=null;break $}var z=0,w=-1,L=-1,T=0,b=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==Q||U!==0&&f.nodeType!==3||(w=z+U),f!==B||Y!==0&&f.nodeType!==3||(L=z+Y),f.nodeType===3&&(z+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===Q&&++T===U&&(w=z),S===B&&++b===Y&&(L=z),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}Q=w===-1||L===-1?null:{start:w,end:L}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;pN={focusedElem:$,selectionRange:Q},K3=!1;for(F5=Z;F5!==null;)if(Z=F5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,F5=$;else for(;F5!==null;){switch($=Z=F5,Q=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Q=0;Q<$.length;Q++)U=$[Q],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&Q!==null&&sP($,Q);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,Q=$.nodeType,Q===9)UX($);else if(Q===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":UX($);break;default:$.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($=Z.sibling,$!==null){$.return=Z.return,F5=$;break}F5=Z.return}}function cH($,Z,Q){var Y=F6(),U=M4(),B=R4(),z=_4(),w=Q.flags;switch(Q.tag){case 0:case 11:case 15:O4($,Q),w&4&&fH(Q,C6|u6);break;case 1:if(O4($,Q),w&4)if($=Q.stateNode,Z===null)Q.type.defaultProps||"ref"in Q.memoizedProps||n9||($.props!==Q.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.",d(Q)||"instance"),$.state!==Q.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.",d(Q)||"instance")),T4(Q)?(P4(),q0(Q,KN,Q,$),L4()):q0(Q,KN,Q,$);else{var L=X7(Q.type,Z.memoizedProps);Z=Z.memoizedState,Q.type.defaultProps||"ref"in Q.memoizedProps||n9||($.props!==Q.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.",d(Q)||"instance"),$.state!==Q.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.",d(Q)||"instance")),T4(Q)?(P4(),q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),L4()):q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&gH(Q),w&512&&s$(Q,Q.return);break;case 3:if(Z=e4(),O4($,Q),w&64&&(w=Q.updateQueue,w!==null)){if(L=null,Q.child!==null)switch(Q.child.tag){case 27:case 5:L=Q.child.stateNode;break;case 1:L=Q.child.stateNode}try{q0(Q,uB,w,L)}catch(b){N1(Q,Q.return,b)}}$.effectDuration+=wQ(Z);break;case 27:Z===null&&w&4&&dH(Q);case 26:case 5:if(O4($,Q),Z===null){if(w&4)xH(Q);else if(w&64){$=Q.type,Z=Q.memoizedProps,L=Q.stateNode;try{q0(Q,LT,L,$,Z,Q)}catch(b){N1(Q,Q.return,b)}}}w&512&&s$(Q,Q.return);break;case 12:if(w&4){w=e4(),O4($,Q),$=Q.stateNode,$.effectDuration+=f$(w);try{q0(Q,uH,Q,Z,Q8,$.effectDuration)}catch(b){N1(Q,Q.return,b)}}else O4($,Q);break;case 31:O4($,Q),w&4&&sH($,Q);break;case 13:O4($,Q),w&4&&nH($,Q),w&64&&($=Q.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=YT.bind(null,Q),kT($,w))));break;case 22:if(w=Q.memoizedState!==null||z2,!w){Z=Z!==null&&Z.memoizedState!==null||$5,L=z2;var T=$5;z2=w,($5=Z)&&!T?(I4($,Q,(Q.subtreeFlags&8772)!==0),(Q.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Q,L0,T0)):O4($,Q),z2=L,$5=T}break;case 30:break;default:O4($,Q)}(Q.mode&h0)!==A0&&0<=L0&&0<=T0&&((h1||0.05<k1)&&W4(Q,L0,T0,k1,v1),Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null&&0.05<T0-L0&&(pH(Q.return.alternate,Q.return)||F4(Q,L0,T0,"Mount"))),W6(Y),w4(U),v1=B,h1=z}function lH($){var Z=$.alternate;Z!==null&&($.alternate=null,lH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function J2($,Z,Q){for(Q=Q.child;Q!==null;)rH($,Z,Q),Q=Q.sibling}function rH($,Z,Q){if(S5&&typeof S5.onCommitFiberUnmount==="function")try{S5.onCommitFiberUnmount(O9,Q)}catch(T){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=F6(),U=M4(),B=R4(),z=_4();switch(Q.tag){case 26:$5||C4(Q,Z),J2($,Z,Q),Q.memoizedState?Q.memoizedState.count--:Q.stateNode&&($=Q.stateNode,$.parentNode.removeChild($));break;case 27:$5||C4(Q,Z);var w=Z5,L=n5;s2(Q.type)&&(Z5=Q.stateNode,n5=!1),J2($,Z,Q),q0(Q,JZ,Q.stateNode),Z5=w,n5=L;break;case 5:$5||C4(Q,Z);case 6:if(w=Z5,L=n5,Z5=null,J2($,Z,Q),Z5=w,n5=L,Z5!==null)if(n5)try{q0(Q,OT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}else try{q0(Q,CT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}break;case 18:Z5!==null&&(n5?($=Z5,oF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Q.stateNode),L9($)):oF(Z5,Q.stateNode));break;case 4:w=Z5,L=n5,Z5=Q.stateNode.containerInfo,n5=!0,J2($,Z,Q),Z5=w,n5=L;break;case 0:case 11:case 14:case 15:H9(m5,Q,Z),$5||uY(Q,Z,C6),J2($,Z,Q);break;case 1:$5||(C4(Q,Z),w=Q.stateNode,typeof w.componentWillUnmount==="function"&&hH(Q,Z,w)),J2($,Z,Q);break;case 21:J2($,Z,Q);break;case 22:$5=(w=$5)||Q.memoizedState!==null,J2($,Z,Q),$5=w;break;default:J2($,Z,Q)}(Q.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4(Q,L0,T0,k1,v1),W6(Y),w4(U),v1=B,h1=z}function sH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{q0(Z,fT,$)}catch(Q){N1(Z,Z.return,Q)}}}function nH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{q0(Z,yT,$)}catch(Q){N1(Z,Z.return,Q)}}function tP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new _M),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new _M),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function lQ($,Z){var Q=tP($);Z.forEach(function(Y){if(!Q.has(Y)){if(Q.add(Y),v4)if(o9!==null&&a9!==null)i$(a9,o9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XT.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var Q=Z.deletions;if(Q!==null)for(var Y=0;Y<Q.length;Y++){var U=$,B=Z,z=Q[Y],w=F6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(s2(L.type)){Z5=L.stateNode,n5=!1;break $}break;case 5:Z5=L.stateNode,n5=!1;break $;case 3:case 4:Z5=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(Z5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rH(U,B,z),Z5=null,n5=!1,(z.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(z,L0,T0,"Unmount"),W6(w),U=z,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)oH(Z,$),Z=Z.sibling}function oH($,Z){var Q=F6(),Y=M4(),U=R4(),B=_4(),z=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),w&4&&(H9(m5|u6,$,$.return),r$(m5|u6,$),uY($,$.return,C6|u6));break;case 1:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&64&&z2&&(w=$.updateQueue,w!==null&&(z=w.callbacks,z!==null))){var L=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=L===null?z:L.concat(z)}break;case 26:if(L=Y4,r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&4){var T=z!==null?z.memoizedState:null;if(w=$.memoizedState,z===null)if(w===null)if($.stateNode===null){$:{w=$.type,z=$.memoizedProps,L=L.ownerDocument||L;Z:switch(w){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[UZ]||T[_5]||T.namespaceURI===V9||T.hasAttribute("itemprop"))T=L.createElement(w),L.head.insertBefore(T,L.querySelector("head > title"));R5(T,w,z),T[_5]=$,_0(T),w=T;break $;case"link":var b=YW("link","href",L).get(w+(z.href||""));if(b){for(var f=0;f<b.length;f++)if(T=b[f],T.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&T.getAttribute("rel")===(z.rel==null?null:z.rel)&&T.getAttribute("title")===(z.title==null?null:z.title)&&T.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;case"meta":if(b=YW("meta","content",L).get(w+(z.content||""))){for(f=0;f<b.length;f++)if(T=b[f],W1(z.content,"content"),T.getAttribute("content")===(z.content==null?null:""+z.content)&&T.getAttribute("name")===(z.name==null?null:z.name)&&T.getAttribute("property")===(z.property==null?null:z.property)&&T.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&T.getAttribute("charset")===(z.charSet==null?null:z.charSet)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}T[_5]=$,_0(T),w=T}$.stateNode=w}else XW(L,$.type,$.stateNode);else $.stateNode=qW(L,w,$.memoizedProps);else T!==w?(T===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):T.count--,w===null?XW(L,$.type,$.stateNode):qW(L,w,$.memoizedProps)):w===null&&$.stateNode!==null&&mY($,$.memoizedProps,z.memoizedProps)}break;case 27:r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),z!==null&&w&4&&mY($,$.memoizedProps,z.memoizedProps);break;case 5:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),$.flags&32){L=$.stateNode;try{q0($,sF,L)}catch(G0){N1($,$.return,G0)}}w&4&&$.stateNode!=null&&(L=$.memoizedProps,mY($,L,z!==null?z.memoizedProps:L)),w&1024&&(CN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(r5(Z,$),s5($),w&4){if($.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.");w=$.memoizedProps,z=z!==null?z.memoizedProps:w,L=$.stateNode;try{q0($,TT,L,z,w)}catch(G0){N1($,$.return,G0)}}break;case 3:if(L=e4(),X3=null,T=Y4,Y4=eQ(Z.containerInfo),r5(Z,$),Y4=T,s5($),w&4&&z!==null&&z.memoizedState.isDehydrated)try{q0($,bT,Z.containerInfo)}catch(G0){N1($,$.return,G0)}CN&&(CN=!1,aH($)),Z.effectDuration+=wQ(L);break;case 4:w=Y4,Y4=eQ($.stateNode.containerInfo),r5(Z,$),s5($),Y4=w;break;case 12:w=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=f$(w);break;case 31:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(rG=B5()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 22:L=$.memoizedState!==null;var S=z!==null&&z.memoizedState!==null,g=z2,$0=$5;if(z2=g||L,$5=$0||S,r5(Z,$),$5=$0,z2=g,S&&!L&&!g&&!$0&&($.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ($,L0,T0),s5($),w&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~RZ:Z._visibility|RZ,!L||z===null||S||z2||$5||(N7($),($.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")),z=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(z===null){S=z=Z;try{T=S.stateNode,L?q0(S,VT,T):q0(S,ST,S.stateNode,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===6){if(z===null){S=Z;try{b=S.stateNode,L?q0(S,AT,b):q0(S,DT,b,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===18){if(z===null){S=Z;try{f=S.stateNode,L?q0(S,IT,f):q0(S,ET,S.stateNode)}catch(G0){N1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;z===Z&&(z=null),Z=Z.return}z===Z&&(z=null),Z.sibling.return=Z.return,Z=Z.sibling}w&4&&(w=$.updateQueue,w!==null&&(z=w.retryQueue,z!==null&&(w.retryQueue=null,lQ($,z))));break;case 19:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&h0)!==A0&&0<=L0&&0<=T0&&((h1||0.05<k1)&&W4($,L0,T0,k1,v1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(pH($.return.alternate,$.return)||F4($,L0,T0,"Mount"))),W6(Q),w4(Y),v1=U,h1=B}function s5($){var Z=$.flags;if(Z&2){try{q0($,aP,$)}catch(Q){N1($,$.return,Q)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function aH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;aH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)cH($,Z.alternate,Z),Z=Z.sibling}function iH($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 14:case 15:uY($,$.return,C6),N7($);break;case 1:C4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&hH($,$.return,B),N7($);break;case 27:q0($,JZ,$.stateNode);case 26:case 5:C4($,$.return),N7($);break;case 22:$.memoizedState===null&&N7($);break;case 30:N7($);break;default:N7($)}($.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4($,L0,T0,k1,v1),W6(Z),w4(Q),v1=Y,h1=U}function N7($){for($=$.child;$!==null;)iH($),$=$.sibling}function tH($,Z,Q,Y){var U=F6(),B=M4(),z=R4(),w=_4(),L=Q.flags;switch(Q.tag){case 0:case 11:case 15:I4($,Q,Y),fH(Q,C6);break;case 1:if(I4($,Q,Y),Z=Q.stateNode,typeof Z.componentDidMount==="function"&&q0(Q,KN,Q,Z),Z=Q.updateQueue,Z!==null){$=Q.stateNode;try{q0(Q,bP,Z,$)}catch(T){N1(Q,Q.return,T)}}Y&&L&64&&gH(Q),s$(Q,Q.return);break;case 27:dH(Q);case 26:case 5:I4($,Q,Y),Y&&Z===null&&L&4&&xH(Q),s$(Q,Q.return);break;case 12:if(Y&&L&4){L=e4(),I4($,Q,Y),Y=Q.stateNode,Y.effectDuration+=f$(L);try{q0(Q,uH,Q,Z,Q8,Y.effectDuration)}catch(T){N1(Q,Q.return,T)}}else I4($,Q,Y);break;case 31:I4($,Q,Y),Y&&L&4&&sH($,Q);break;case 13:I4($,Q,Y),Y&&L&4&&nH($,Q);break;case 22:Q.memoizedState===null&&I4($,Q,Y),s$(Q,Q.return);break;case 30:break;default:I4($,Q,Y)}(Q.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4(Q,L0,T0,k1,v1),W6(U),w4(B),v1=z,h1=w}function I4($,Z,Q){Q=Q&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)tH($,Z.alternate,Z,Q),Z=Z.sibling}function cY($,Z){var Q=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==Q&&($!=null&&Q7($),Q!=null&&b$(Q))}function lY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Q7(Z),$!=null&&b$($))}function $4($,Z,Q,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;eH($,Z,Q,Y,B!==null?B.actualStartTime:U),Z=B}}function eH($,Z,Q,Y,U){var B=F6(),z=M4(),w=R4(),L=_4(),T=e2,b=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&h0)!==A0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q),$4($,Z,Q,Y,U),b&2048&&yH(Z,d5|u6);break;case 1:(Z.mode&h0)!==A0&&0<Z.actualStartTime&&((Z.flags&128)!==0?Eq(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q)),$4($,Z,Q,Y,U);break;case 3:var f=e4(),S=q5;q5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,$4($,Z,Q,Y,U),q5=S,b&2048&&(Q=null,Z.alternate!==null&&(Q=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==Q&&(Q7(Y),Q!=null&&b$(Q))),$.passiveEffectDuration+=wQ(f);break;case 12:if(b&2048){b=e4(),$4($,Z,Q,Y,U),$=Z.stateNode,$.passiveEffectDuration+=f$(b);try{q0(Z,oP,Z,Z.alternate,Q8,$.passiveEffectDuration)}catch(g){N1(Z,Z.return,g)}}else $4($,Z,Q,Y,U);break;case 31:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0):q5=!1,$4($,Z,Q,Y,U),q5=b;break;case 13:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?q5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0),$4($,Z,Q,Y,U),q5=b;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&q2?$4($,Z,Q,Y,U):n$($,Z,Q,Y,U):S._visibility&q2?$4($,Z,Q,Y,U):(S._visibility|=q2,F9($,Z,Q,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&h0)===A0||q5||($=Z.actualStartTime,0<=$&&0.05<U-$&&XQ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Z,L0,T0))),b&2048&&cY(f,Z);break;case 24:$4($,Z,Q,Y,U),b&2048&&lY(Z.alternate,Z);break;default:$4($,Z,Q,Y,U)}if((Z.mode&h0)!==A0){if($=!q5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)Q=Z.actualStartTime,0<=Q&&0.05<U-Q&&F4(Z,Q,U,"Mount");0<=L0&&0<=T0&&((h1||0.05<k1)&&W4(Z,L0,T0,k1,v1),$&&0.05<T0-L0&&F4(Z,L0,T0,"Mount"))}W6(B),w4(z),v1=w,h1=L,e2=T}function F9($,Z,Q,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var z=Z.sibling;$F($,Z,Q,Y,U,z!==null?z.actualStartTime:B),Z=z}}function $F($,Z,Q,Y,U,B){var z=F6(),w=M4(),L=R4(),T=_4(),b=e2;U&&(Z.mode&h0)!==A0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,B,q5,Q);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:F9($,Z,Q,Y,U,B),yH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&q2?F9($,Z,Q,Y,U,B):n$($,Z,Q,Y,B):(S._visibility|=q2,F9($,Z,Q,Y,U,B)),U&&f&2048&&cY(Z.alternate,Z);break;case 24:F9($,Z,Q,Y,U,B),U&&f&2048&&lY(Z.alternate,Z);break;default:F9($,Z,Q,Y,U,B)}(Z.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4(Z,L0,T0,k1,v1),W6(z),w4(w),v1=L,h1=T,e2=b}function n$($,Z,Q,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var z=$,w=Q,L=Y,T=Z!==null?Z.actualStartTime:U,b=e2;(B.mode&h0)!==A0&&0<B.actualStartTime&&(B.flags&1)!==0&&NQ(B,B.actualStartTime,T,q5,w);var f=B.flags;switch(B.tag){case 22:n$(z,B,w,L,T),f&2048&&cY(B.alternate,B);break;case 24:n$(z,B,w,L,T),f&2048&&lY(B.alternate,B);break;default:n$(z,B,w,L,T)}e2=b,B=Z}}function W9($,Z,Q){if($.subtreeFlags&hZ)for($=$.child;$!==null;)ZF($,Z,Q),$=$.sibling}function ZF($,Z,Q){switch($.tag){case 26:W9($,Z,Q),$.flags&hZ&&$.memoizedState!==null&&xT(Q,Y4,$.memoizedState,$.memoizedProps);break;case 5:W9($,Z,Q);break;case 3:case 4:var Y=Y4;Y4=eQ($.stateNode.containerInfo),W9($,Z,Q),Y4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=hZ,hZ=16777216,W9($,Z,Q),hZ=Y):W9($,Z,Q));break;default:W9($,Z,Q)}}function JF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function o$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)QF($),$=$.sibling}function QF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:o$($),$.flags&2048&&xY($,$.return,d5|u6);break;case 3:var B=e4();o$($),$.stateNode.passiveEffectDuration+=wQ(B);break;case 12:B=e4(),o$($),$.stateNode.passiveEffectDuration+=f$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&q2&&($.return===null||$.return.tag!==13)?(B._visibility&=~q2,rQ($),($.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")):o$($);break;default:o$($)}($.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4($,L0,T0,k1,v1),W6(Z),w4(Q),h1=U,v1=Y}function rQ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&h0)!==A0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}for($=$.child;$!==null;)GF($),$=$.sibling}function GF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:xY($,$.return,d5),rQ($);break;case 22:var B=$.stateNode;B._visibility&q2&&(B._visibility&=~q2,rQ($));break;default:rQ($)}($.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4($,L0,T0,k1,v1),W6(Z),w4(Q),h1=U,v1=Y}function qF($,Z){for(;F5!==null;){var Q=F5,Y=Q,U=Z,B=F6(),z=M4(),w=R4(),L=_4();switch(Y.tag){case 0:case 11:case 15:xY(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Q7(U));break;case 24:b$(Y.memoizedState.cache)}if((Y.mode&h0)!==A0&&0<=L0&&0<=T0&&(h1||0.05<k1)&&W4(Y,L0,T0,k1,v1),W6(B),w4(z),h1=L,v1=w,Y=Q.child,Y!==null)Y.return=Q,F5=Y;else $:for(Q=$;F5!==null;){if(Y=F5,B=Y.sibling,z=Y.return,lH(Y),Y===Q){F5=null;break $}if(B!==null){B.return=z,F5=B;break $}F5=z}}}function eP(){LO.forEach(function($){return $()})}function YF(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function M6($){if((J1&Y5)!==W5&&x0!==0)return x0&-x0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),eY()):y()}function XF(){if(a5===0)if((x0&536870912)===0||i0){var $=BG;BG<<=1,(BG&3932160)===0&&(BG=262144),a5=$}else a5=536870912;return $=T6.current,$!==null&&($.flags|=32),a5}function g1($,Z,Q){if(e9&&console.error("useInsertionEffect must not schedule updates."),bN&&(aG=!0),$===_1&&(H1===C7||H1===O7)||$.cancelPendingCommit!==null)M9($,0),l2($,x0,a5,!1);if(k2($,Q),(J1&Y5)!==W5&&$===_1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=m0&&d(m0)||"Unknown",bM.has($)||(bM.add($),Z=d(Z)||"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",Z,$,$));break;case 1:kM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),kM=!0)}}else v4&&C$($,Z,Q),UT(Z),$===_1&&((J1&Y5)===W5&&(H8|=Q),b1===U8&&l2($,x0,a5,!1)),V4($)}function NF($,Z,Q){if((J1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(x0!==0&&m0!==null){var Y=m0,U=B5();switch(Vz){case mZ:case C7:var B=OZ;I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,j6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j6,void 0,"primary-light"));break;case O7:B=OZ,I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,j6,void 0,"primary-light")):console.timeStamp("Action",B,U,j6,void 0,"primary-light"));break;default:I1&&(Y=U-OZ,3>Y||console.timeStamp("Blocked",OZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(Q=!Q&&(Z&127)===0&&(Z&$.expiredLanes)===0||c8($,Z))?ZT($,Z):sY($,Z,!0);var z=Q;do{if(B===M2){i9&&!Q&&l2($,Z,0,!1),Z=H1,OZ=i1(),Vz=Z;break}else{if(Y=B5(),U=$.current.alternate,z&&!$T(U)){B6(Z),U=H5,B=Y,!I1||B<=U||(p1?p1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,s0,"error")):console.timeStamp("Teared Render",U,B,o0,s0,"error")),U7(Z,Y),B=sY($,Z,!1),z=!1;continue}if(B===T7){if(z=Z,$.errorRecoveryDisabledLanes&z)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){B6(Z),Sq(H5,Y,Z,p1),U7(Z,Y),Z=w;$:{Y=$,B=z,z=pZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(M9(Y,w).flags|=256),w=sY(Y,w,!1),w!==T7){if(VN&&!L){Y.errorRecoveryDisabledLanes|=B,H8|=B,B=U8;break $}Y=p5,p5=z,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=w}if(z=!1,B!==T7)continue;else Y=B5()}}if(B===xZ){B6(Z),Sq(H5,Y,Z,p1),U7(Z,Y),M9($,0),l2($,Z,0,!0);break}$:{switch(Q=$,B){case M2:case xZ:throw Error("Root did not complete. This is a bug in React.");case U8:if((Z&4194048)!==Z)break;case dG:B6(Z),NB(H5,Y,Z,p1),U7(Z,Y),U=Z,(U&127)!==0?AG=Y:(U&4194048)!==0&&(EG=Y),l2(Q,Z,a5,!K8);break $;case T7:p5=null;break;case mG:case LM:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)nY(Q,U,Z,p5,cZ,lG,a5,H8,I7,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(z=rG+CM-B5(),10<z)){if(l2(Q,Z,a5,!K8),p8(Q,0,!0)!==0)break $;X4=Z,Q.timeoutHandle=dM(UF.bind(null,Q,U,p5,cZ,lG,Z,a5,H8,I7,K8,B,"Throttled",H5,Y),z);break $}UF(Q,U,p5,cZ,lG,Z,a5,H8,I7,K8,B,null,H5,Y)}}}break}while(1);V4($)}function UF($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.timeoutHandle=D7;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:o4},ZF(Z,B,G0),$0=(B&62914560)===B?rG-B5():(B&4194048)===B?TM-B5():0,$0=mT(G0,$0),$0!==null){X4=B,$.cancelPendingCommit=$0(nY.bind(null,$,Z,B,Q,Y,U,z,w,L,b,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),l2($,B,z,!T);return}}nY($,Z,B,Q,Y,U,z,w,L,b,G0,f,S,g)}function $T($){for(var Z=$;;){var Q=Z.tag;if((Q===0||Q===11||Q===15)&&Z.flags&16384&&(Q=Z.updateQueue,Q!==null&&(Q=Q.stores,Q!==null)))for(var Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(z){return!1}}if(Q=Z.child,Z.subtreeFlags&16384&&Q!==null)Q.return=Z,Z=Q;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function l2($,Z,Q,Y){Z&=~AN,Z&=~H8,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),z=1<<B;Y[B]=-1,U&=~z}Q!==0&&l8($,Q,Z)}function z9(){return(J1&(Y5|O6))===W5?(t$(0,!1),!1):!0}function rY(){if(m0!==null){if(H1===o5)var $=m0.return;else $=m0,WQ(),QY($),d9=null,kZ=0,$=m0;for(;$!==null;)bH($.alternate,$),$=$.return;m0=null}}function U7($,Z){($&127)!==0&&(G8=Z),($&4194048)!==0&&(g4=Z),($&62914560)!==0&&(Oz=Z),($&2080374784)!==0&&(Iz=Z)}function M9($,Z){I1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",s0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",s0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",s0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",s0,"primary-light"));var Q=H5;if(H5=i1(),x0!==0&&0<Q){if(B6(x0),b1===mG||b1===U8)NB(Q,H5,Z,p1);else{var Y=H5,U=p1;if(I1&&!(Y<=Q)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",z=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,z,Q,Y,o0,s0,B)):console.timeStamp(z,Q,Y,o0,s0,B)}}U7(x0,H5)}if(Q=p1,p1=null,(Z&127)!==0){p1=PZ,U=0<=y4&&y4<G8?G8:y4,Y=0<=W7&&W7<G8?G8:W7,B=0<=Y?Y:0<=U?U:H5,0<=AG?(B6(2),UB(AG,B,Z,Q)):(SG&127)!==0&&(B6(2),v$(G8,B,B2)),Q=U;var w=Y,L=TZ,T=0<u9,b=q8===LZ,f=q8===VG;if(U=H5,Y=PZ,B=qN,z=YN,I1){if(o0="Blocking",0<Q?Q>U&&(Q=U):Q=U,0<w?w>Q&&(w=Q):w=Q,L!==null&&Q>w){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,w,Q,o0,s0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,w,Q,o0,s0,S)}U>Q&&(w=b?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",b=f?"Promise Resolved":b?"Cascading Update":5<U-Q?"Update Blocked":"Update",f=[],z!=null&&f.push(["Component name",z]),B!=null&&f.push(["Method name",B]),Q={start:Q,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:s0,color:w}}},Y?Y.run(performance.measure.bind(performance,b,Q)):performance.measure(b,Q))}y4=-1.1,q8=0,YN=qN=null,AG=-1.1,u9=W7,W7=-1.1,G8=i1()}if((Z&4194048)!==0&&(p1=CZ,U=0<=K2&&K2<g4?g4:K2,Q=0<=g6&&g6<g4?g4:g6,Y=0<=Y8&&Y8<g4?g4:Y8,B=0<=Y?Y:0<=Q?Q:H5,0<=EG?(B6(256),UB(EG,B,Z,p1)):(SG&4194048)!==0&&(B6(256),v$(g4,B,B2)),f=Y,w=z7,L=0<X8,T=XN===VG,B=H5,Y=CZ,z=Tz,b=Cz,I1&&(o0="Transition",0<Q?Q>B&&(Q=B):Q=B,0<U?U>Q&&(U=Q):U=Q,0<f?f>U&&(f=U):f=U,U>f&&w!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+w,f,U,o0,s0,S)):console.timeStamp(L?"Consecutive":"Event: "+w,f,U,o0,s0,S)),Q>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,Q,o0,s0,"primary-dark")):console.timeStamp("Action",U,Q,o0,s0,"primary-dark")),B>Q&&(U=T?"Promise Resolved":5<B-Q?"Update Blocked":"Update",f=[],b!=null&&f.push(["Component name",b]),z!=null&&f.push(["Method name",z]),Q={start:Q,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:s0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,Q)):performance.measure(U,Q))),g6=K2=-1.1,XN=0,EG=-1.1,X8=Y8,Y8=-1.1,g4=i1()),(Z&62914560)!==0&&(SG&62914560)!==0&&(B6(4194304),v$(Oz,H5,B2)),(Z&2080374784)!==0&&(SG&2080374784)!==0&&(B6(268435456),v$(Iz,H5,B2)),Q=$.timeoutHandle,Q!==D7&&($.timeoutHandle=D7,kO(Q)),Q=$.cancelPendingCommit,Q!==null&&($.cancelPendingCommit=null,Q()),X4=0,rY(),_1=$,m0=Q=a4($.current,null),x0=Z,H1=o5,I6=null,K8=!1,i9=c8($,Z),VN=!1,b1=M2,I7=a5=AN=H8=B8=0,p5=pZ=null,lG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-y5(Y),B=1<<U,Z|=$[U],Y&=~B;return u4=Z,UQ(),$=Mz(),1000<$-zz&&(x.recentlyCreatedOwnerStacks=0,zz=$),G4.discardPendingWarnings(),Q}function KF($,Z){E0=null,x.H=gZ,x.getCurrentStack=null,D4=!1,_6=null,Z===m9||Z===kG?(Z=jB(),H1=mZ):Z===BN?(Z=jB(),H1=PM):H1=Z===PN?IN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?dZ:pG,I6=Z;var Q=m0;Q===null?(b1=xZ,uQ($,H6(Z,$.current))):Q.mode&h0&&cq(Q)}function BF(){var $=T6.current;return $===null?!0:(x0&4194048)===x0?h6===null?!0:!1:(x0&62914560)===x0||(x0&536870912)!==0?$===h6:!1}function HF(){var $=x.H;return x.H=gZ,$===null?gZ:$}function FF(){var $=x.A;return x.A=_O,$}function sQ($){p1===null&&(p1=$._debugTask==null?null:$._debugTask)}function nQ(){b1=U8,K8||(x0&4194048)!==x0&&T6.current!==null||(i9=!0),(B8&134217727)===0&&(H8&134217727)===0||_1===null||l2(_1,x0,a5,!1)}function sY($,Z,Q){var Y=J1;J1|=Y5;var U=HF(),B=FF();if(_1!==$||x0!==Z){if(v4){var z=$.memoizedUpdaters;0<z.size&&(i$($,x0),z.clear()),b2($,Z)}cZ=null,M9($,Z)}Z=!1,z=b1;$:do try{if(H1!==o5&&m0!==null){var w=m0,L=I6;switch(H1){case IN:rY(),z=dG;break $;case mZ:case C7:case O7:case dZ:T6.current===null&&(Z=!0);var T=H1;if(H1=o5,I6=null,w9($,w,L,T),Q&&i9){z=M2;break $}break;default:T=H1,H1=o5,I6=null,w9($,w,L,T)}}WF(),z=b1;break}catch(b){KF($,b)}while(1);return Z&&$.shellSuspendCounter++,WQ(),J1=Y,x.H=U,x.A=B,m0===null&&(_1=null,x0=0,UQ()),z}function WF(){for(;m0!==null;)zF(m0)}function ZT($,Z){var Q=J1;J1|=Y5;var Y=HF(),U=FF();if(_1!==$||x0!==Z){if(v4){var B=$.memoizedUpdaters;0<B.size&&(i$($,x0),B.clear()),b2($,Z)}cZ=null,sG=B5()+OM,M9($,Z)}else i9=c8($,Z);$:do try{if(H1!==o5&&m0!==null)Z:switch(Z=m0,B=I6,H1){case pG:H1=o5,I6=null,w9($,Z,B,pG);break;case C7:case O7:if(SB(B)){H1=o5,I6=null,MF(Z);break}Z=function(){H1!==C7&&H1!==O7||_1!==$||(H1=cG),V4($)},B.then(Z,Z);break $;case mZ:H1=cG;break $;case PM:H1=ON;break $;case cG:SB(B)?(H1=o5,I6=null,MF(Z)):(H1=o5,I6=null,w9($,Z,B,cG));break;case ON:var z=null;switch(m0.tag){case 26:z=m0.memoizedState;case 5:case 27:var w=m0;if(z?NW(z):w.stateNode.complete){H1=o5,I6=null;var L=w.sibling;if(L!==null)m0=L;else{var T=w.return;T!==null?(m0=T,oQ(T)):m0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}H1=o5,I6=null,w9($,Z,B,ON);break;case dZ:H1=o5,I6=null,w9($,Z,B,dZ);break;case IN:rY(),b1=dG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?WF():JT();break}catch(b){KF($,b)}while(1);if(WQ(),x.H=Y,x.A=U,J1=Q,m0!==null)return M2;return _1=null,x0=0,UQ(),b1}function JT(){for(;m0!==null&&!$C();)zF(m0)}function zF($){var Z=$.alternate;($.mode&h0)!==A0?(pq($),Z=q0($,gY,Z,$,u4),cq($)):Z=q0($,gY,Z,$,u4),$.memoizedProps=$.pendingProps,Z===null?oQ($):m0=Z}function MF($){var Z=q0($,QT,$);$.memoizedProps=$.pendingProps,Z===null?oQ($):m0=Z}function QT($){var Z=$.alternate,Q=($.mode&h0)!==A0;switch(Q&&pq($),$.tag){case 15:case 0:Z=AH(Z,$,$.pendingProps,$.type,void 0,x0);break;case 11:Z=AH(Z,$,$.pendingProps,$.type.render,$.ref,x0);break;case 5:QY($);default:bH(Z,$),$=m0=zB($,u4),Z=gY(Z,$,u4)}return Q&&cq($),Z}function w9($,Z,Q,Y){WQ(),QY(Z),d9=null,kZ=0;var U=Z.return;try{if(mP($,U,Z,Q,x0)){b1=xZ,uQ($,H6(Q,$.current)),m0=null;return}}catch(B){if(U!==null)throw m0=U,B;b1=xZ,uQ($,H6(Q,$.current)),m0=null;return}if(Z.flags&32768){if(i0||Y===pG)$=!0;else if(i9||(x0&536870912)!==0)$=!1;else if(K8=$=!0,Y===C7||Y===O7||Y===mZ||Y===dZ)Y=T6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);wF(Z,$)}else oQ(Z)}function oQ($){var Z=$;do{if((Z.flags&32768)!==0){wF(Z,K8);return}var Q=Z.alternate;if($=Z.return,pq(Z),Q=q0(Z,cP,Q,Z,u4),(Z.mode&h0)!==A0&&OB(Z),Q!==null){m0=Q;return}if(Z=Z.sibling,Z!==null){m0=Z;return}m0=Z=$}while(Z!==null);b1===M2&&(b1=LM)}function wF($,Z){do{var Q=lP($.alternate,$);if(Q!==null){Q.flags&=32767,m0=Q;return}if(($.mode&h0)!==A0){OB($),Q=$.actualDuration;for(var Y=$.child;Y!==null;)Q+=Y.actualDuration,Y=Y.sibling;$.actualDuration=Q}if(Q=$.return,Q!==null&&(Q.flags|=32768,Q.subtreeFlags=0,Q.deletions=null),!Z&&($=$.sibling,$!==null)){m0=$;return}m0=$=Q}while($!==null);b1=dG,m0=null}function nY($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.cancelPendingCommit=null;do a$();while(J5!==W8);if(G4.flushLegacyContextWarning(),G4.flushPendingUnsafeLifecycleWarnings(),(J1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(B6(Q),T===T7?Sq(S,g,Q,p1):Y!==null?EP(S,g,Q,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,p1):AP(S,g,Q,p1),Z!==null){if(Q===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.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(B=Z.lanes|Z.childLanes,B|=$N,tJ($,Q,B,z,w,L),$===_1&&(m0=_1=null,x0=0),t9=Z,z8=$,X4=Q,DN=B,vN=U,DM=Y,jN=g,jM=f,N4=nG,vM=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,NT(C9,function(){return aZ=window.event,N4===nG&&(N4=SN),TF(),null})):($.callbackNode=null,$.callbackPriority=0),U2=null,Q8=i1(),f!==null&&SP(g,Q8,f,p1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=U1.p,U1.p=L6,z=J1,J1|=O6;try{iP($,Z,Q)}finally{J1=z,U1.p=U,x.T=Y}}J5=VM,RF(),_F(),LF()}}function RF(){if(J5===VM){J5=W8;var $=z8,Z=t9,Q=X4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=J1;J1|=O6;try{o9=Q,a9=$,RQ(),oH(Z,$),a9=o9=null,Q=pN;var z=qB($.containerInfo),w=Q.focusedElem,L=Q.selectionRange;if(z!==w&&w&&w.ownerDocument&&GB(w.ownerDocument.documentElement,w)){if(L!==null&&Vq(w)){var{start:T,end:b}=L;if(b===void 0&&(b=T),"selectionStart"in w)w.selectionStart=T,w.selectionEnd=Math.min(b,w.value.length);else{var f=w.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=w.textContent.length,G0=Math.min(L.start,$0),C1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>C1&&(z=C1,C1=G0,G0=z);var $1=QB(w,G0),A=QB(w,C1);if($1&&A&&(g.rangeCount!==1||g.anchorNode!==$1.node||g.anchorOffset!==$1.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var D=f.createRange();D.setStart($1.node,$1.offset),g.removeAllRanges(),G0>C1?(g.addRange(D),g.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),g.addRange(D))}}}}f=[];for(g=w;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<f.length;w++){var k=f[w];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}K3=!!dN,pN=dN=null}finally{J1=B,U1.p=U,x.T=Y}}$.current=Z,J5=AM}}function _F(){if(J5===AM){J5=W8;var $=vM;if($!==null){Q8=i1();var Z=N2,Q=Q8;!I1||Q<=Z||(B2?B2.run(console.timeStamp.bind(console,$,Z,Q,o0,s0,"secondary-light")):console.timeStamp($,Z,Q,o0,s0,"secondary-light"))}$=z8,Z=t9,Q=X4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=J1;J1|=O6;try{o9=Q,a9=$,RQ(),cH($,Z.alternate,Z),a9=o9=null}finally{J1=B,U1.p=U,x.T=Y}}$=jN,Z=jM,N2=i1(),$=Z===null?$:Q8,Z=N2,Q=N4===EN,Y=p1,U2!==null?KB($,Z,U2,!1,Y):!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,s0,Q?"error":"secondary-dark")):console.timeStamp(Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,s0,Q?"error":"secondary-dark")),J5=EM}}function LF(){if(J5===SM||J5===EM){if(J5===SM){var $=N2;N2=i1();var Z=N2,Q=N4===EN;!I1||Z<=$||(B2?B2.run(console.timeStamp.bind(console,Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,s0,Q?"error":"secondary-light")):console.timeStamp(Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,s0,Q?" error":"secondary-light")),N4!==EN&&(N4=IM)}J5=W8,ZC(),$=z8;var Y=t9;Z=X4,Q=DM;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?J5=oG:(J5=W8,t9=z8=null,PF($,$.pendingLanes),V7=0,rZ=null);var B=$.pendingLanes;if(B===0&&(F8=null),U||VF($),B=C(Z),Y=Y.stateNode,S5&&typeof S5.onCommitFiberRoot==="function")try{var z=(Y.current.flags&128)===128;switch(B){case L6:var w=vX;break;case J4:w=kX;break;case k4:w=C9;break;case FG:w=bX;break;default:w=C9}S5.onCommitFiberRoot(O9,Y,w,z)}catch(f){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",f))}if(v4&&$.memoizedUpdaters.clear(),eP(),Q!==null){z=x.T,w=U1.p,U1.p=L6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<Q.length;Y++){var T=Q[Y],b=GT(T.stack);q0(T.source,L,T.value,b)}}finally{x.T=z,U1.p=w}}(X4&3)!==0&&a$(),V4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(jG=!0,$===kN?lZ++:(lZ=0,kN=$)):lZ=0,U||U7(Z,N2),t$(0,!1)}}function GT($){return $={componentStack:$},Object.defineProperty($,"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.')}}),$}function PF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,b$(Z)))}function a$(){return RF(),_F(),LF(),TF()}function TF(){if(J5!==oG)return!1;var $=z8,Z=DN;DN=0;var Q=C(X4),Y=k4===0||k4>Q?k4:Q;Q=x.T;var U=U1.p;try{U1.p=Y,x.T=null;var B=vN;vN=null,Y=z8;var z=X4;if(J5=W8,t9=z8=null,X4=0,(J1&(Y5|O6))!==W5)throw Error("Cannot flush passive effects while already rendering.");B6(z),bN=!0,aG=!1;var w=0;if(U2=null,w=B5(),N4===IM)v$(N2,w,B2);else{var L=N2,T=w,b=N4===SN;!I1||T<=L||(p1?p1.run(console.timeStamp.bind(console,b?"Waiting for Paint":"Waiting",L,T,o0,s0,"secondary-light")):console.timeStamp(b?"Waiting for Paint":"Waiting",L,T,o0,s0,"secondary-light"))}L=J1,J1|=O6;var f=Y.current;RQ(),QF(f);var S=Y.current;f=jN,RQ(),eH(Y,S,z,B,f),VF(Y),J1=L;var g=B5();if(S=w,f=p1,U2!==null?KB(S,g,U2,!0,f):!I1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,s0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,s0,"secondary-dark")),U7(z,g),t$(0,!1),aG?Y===rZ?V7++:(V7=0,rZ=Y):V7=0,aG=bN=!1,S5&&typeof S5.onPostCommitFiberRoot==="function")try{S5.onPostCommitFiberRoot(O9,Y)}catch(G0){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{U1.p=U,x.T=Q,PF($,Z)}}function CF($,Z,Q){Z=H6(Q,Z),IB(Z),Z=VY($.stateNode,Z,2),$=m2($,Z,2),$!==null&&(k2($,2),V4($))}function N1($,Z,Q){if(e9=!1,$.tag===3)CF($,$,Q);else{for(;Z!==null;){if(Z.tag===3){CF(Z,$,Q);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(F8===null||!F8.has(Y))){$=H6(Q,$),IB($),Q=AY(2),Y=m2(Z,Q,2),Y!==null&&(EY(Q,Y,Z,$),k2(Y,2),V4(Y));return}}Z=Z.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: "+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.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,Q)}}function oY($,Z,Q){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new PO;var U=new Set;Y.set(Z,U)}else U=Y.get(Z),U===void 0&&(U=new Set,Y.set(Z,U));U.has(Q)||(VN=!0,U.add(Q),Y=qT.bind(null,$,Z,Q),v4&&i$($,Q),Z.then(Y,Y))}function qT($,Z,Q){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&Q,$.warmLanes&=~Q,(Q&127)!==0?0>y4&&(G8=y4=i1(),PZ=IG("Promise Resolved"),q8=VG):(Q&4194048)!==0&&0>g6&&(g4=g6=i1(),CZ=IG("Promise Resolved"),XN=VG),YF()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,o)}}function Jg(e,t,o){var l=e.pingCache;if(l===null){l=e.pingCache=new wD;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(o)||(Rb=!0,u.add(o),l=uR.bind(null,e,t,o),Pn&&ec(e,o),t.then(l,l))}function uR(e,t,o){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>Un&&(il=Un=Kt(),Tc=kh("Promise Resolved"),rl=Rh):(o&4194048)!==0&&0>Uo&&(Hn=Uo=Kt(),Mc=kh("Promise Resolved"),db=Rh),cL()&&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`),_1===$&&(x0&Q)===Q&&(b1===U8||b1===mG&&(x0&62914560)===x0&&B5()-rG<CM?(J1&Y5)===W5&&M9($,0):AN|=Q,I7===x0&&(I7=0)),V4($)}function OF($,Z){Z===0&&(Z=Z9()),$=E5($,Z),$!==null&&(k2($,Z),V4($))}function YT($){var Z=$.memoizedState,Q=0;Z!==null&&(Q=Z.retryLane),OF($,Q)}function XT($,Z){var Q=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(Q=U.retryLane);break;case 19:Y=$.stateNode;break;case 22:Y=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete(Z),OF($,Q)}function aY($,Z,Q){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===XG;B=Q||B,U.tag!==22?U.flags&67108864?B&&q0(U,IF,Y,U):aY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?q0(U,IF,Y,U):U.subtreeFlags&67108864&&q0(U,aY,Y,U,B)),Z=Z.sibling}}function IF($,Z){P1(!0);try{iH(Z),GF(Z),tH($,Z.alternate,Z,!1),$F($,Z,0,null,!1,0)}finally{P1(!1)}}function VF($){var Z=!0;$.current.mode&(D5|Q4)||(Z=!1),aY($,$.current,Z)}function AF($){if((J1&Y5)===W5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",iG!==null){if(iG.has(Z))return;iG.add(Z)}else iG=new Set([Z]);q0($,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 i$($,Z){v4&&$.memoizedUpdaters.forEach(function(Q){C$($,Q,Z)})}function NT($,Z){var Q=x.actQueue;return Q!==null?(Q.push(Z),OO):jX($,Z)}function UT($){YF()&&x.actQueue===null&&q0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),vt===e&&(Fe&o)===o&&(Pt===fl||Pt===Gh&&(Fe&62914560)===Fe&&fa()-Zh<IT?(ot&ia)===ma&&xr(e,0):_b|=o,Ai===Fe&&(Ai=0)),kn(e)}function AL(e,t){t===0&&(t=nr()),e=ka(e,t),e!==null&&(Bs(e,t),kn(e))}function cR(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),AL(e,o)}function dR(e,t){var o=0;switch(e.tag){case 31:case 13:var{stateNode:l,memoizedState:u}=e;u!==null&&(o=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(t),AL(e,o)}function ey(e,t,o){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var l=e,u=t,d=u.type===dh;d=o||d,u.tag!==22?u.flags&67108864?d&&le(u,kL,l,u):ey(l,u,d):u.memoizedState===null&&(d&&u.flags&8192?le(u,kL,l,u):u.subtreeFlags&67108864&&le(u,ey,l,u,d)),t=t.sibling}}function kL(e,t){Lt(!0);try{tL(t),rL(t),aL(e,t.alternate,t,!1),nL(e,t,0,null,!1,0)}finally{Lt(!1)}}function RL(e){var t=!0;e.current.mode&(_a|sn)||(t=!1),ey(e,e.current,t)}function _L(e){if((ot&ia)===ma){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=q(e)||"ReactComponent",tp!==null){if(tp.has(t))return;tp.add(t)}else tp=new Set([t]);le(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 ec(e,t){Pn&&e.memoizedUpdaters.forEach(function(o){Mu(e,o,t)})}function fR(e,t){var o=H.actQueue;return o!==null?(o.push(t),AD):Py(e,t)}function hR(e){cL()&&H.actQueue===null&&le(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,86 +172,86 @@ 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`,d($))})}function V4($){$!==$$&&$.next===null&&($$===null?tG=$$=$:$$=$$.next=$),eG=!0,x.actQueue!==null?yN||(yN=!0,jF()):fN||(fN=!0,jF())}function t$($,Z){if(!gN&&eG){gN=!0;do{var Q=!1;for(var Y=tG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:z,pingedLanes:w}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(z&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(Q=!0,DF(Y,B))}else B=x0,B=p8(Y,Y===_1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==D7),(B&3)===0||c8(Y,B)||(Q=!0,DF(Y,B));Y=Y.next}}while(Q);gN=!1}}function KT(){aZ=window.event,iY()}function iY(){eG=yN=fN=!1;var $=0;M8!==0&&wT()&&($=M8);for(var Z=B5(),Q=null,Y=tG;Y!==null;){var U=Y.next,B=EF(Y,Z);if(B===0)Y.next=null,Q===null?tG=U:Q.next=U,U===null&&($$=Q);else if(Q=Y,$!==0||(B&3)!==0)eG=!0;Y=U}J5!==W8&&J5!==oG||t$($,!1),M8!==0&&(M8=0)}function EF($,Z){for(var{suspendedLanes:Q,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var z=31-y5(B),w=1<<z,L=U[z];if(L===-1){if((w&Q)===0||(w&Y)!==0)U[z]=zq(w,Z)}else L<=Z&&($.expiredLanes|=w);B&=~w}if(Z=_1,Q=x0,Q=p8($,$===Z?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==D7),Y=$.callbackNode,Q===0||$===Z&&(H1===C7||H1===O7)||$.cancelPendingCommit!==null)return Y!==null&&tY(Y),$.callbackNode=null,$.callbackPriority=0;if((Q&3)===0||c8($,Q)){if(Z=Q&-Q,Z!==$.callbackPriority||x.actQueue!==null&&Y!==hN)tY(Y);else return Z;switch(C(Q)){case L6:case J4:Q=kX;break;case k4:Q=C9;break;case FG:Q=bX;break;default:Q=C9}return Y=SF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),Q=hN):Q=jX(Q,Y),$.callbackPriority=Z,$.callbackNode=Q,Z}return Y!==null&&tY(Y),$.callbackPriority=2,$.callbackNode=null,2}function SF($,Z){if(jG=DG=!1,aZ=window.event,J5!==W8&&J5!==oG)return $.callbackNode=null,$.callbackPriority=0,null;var Q=$.callbackNode;if(N4===nG&&(N4=SN),a$()&&$.callbackNode!==Q)return null;var Y=x0;if(Y=p8($,$===_1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==D7),Y===0)return null;return NF($,Y,Z),EF($,B5()),$.callbackNode!=null&&$.callbackNode===Q?SF.bind(null,$):null}function DF($,Z){if(a$())return null;DG=jG,jG=!1,NF($,Z,!0)}function tY($){$!==hN&&$!==null&&eT($)}function jF(){x.actQueue!==null&&x.actQueue.push(function(){return iY(),null}),bO(function(){(J1&(Y5|O6))!==W5?jX(vX,KT):iY()})}function eY(){if(M8===0){var $=M7;$===0&&($=KG,KG<<=1,(KG&261888)===0&&(KG=256)),M8=$}return M8}function vF($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return W1($,"action"),S$(""+$)}function kF($,Z){var Q=Z.ownerDocument.createElement("input");return Q.name=Z.name,Q.value=Z.value,$.id&&Q.setAttribute("form",$.id),Z.parentNode.insertBefore(Q,Z),$=new FormData($),Q.parentNode.removeChild(Q),$}function BT($,Z,Q,Y,U){if(Z==="submit"&&Q&&Q.stateNode===U){var B=vF((U[g5]||null).action),z=Y.submitter;z&&(Z=(Z=z[g5]||null)?vF(Z.formAction):z.getAttribute("formAction"),Z!==null&&(B=Z,z=null));var w=new RG("action","action",null,Y,U);$.push({event:w,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(M8!==0){var L=z?kF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),_Y(Q,T,null,L)}}else typeof B==="function"&&(w.preventDefault(),L=z?kF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),_Y(Q,T,B,L))},currentTarget:U}]})}}function aQ($,Z,Q){$.currentTarget=Q;try{Z($)}catch(Y){aX(Y)}$.currentTarget=null}function bF($,Z){Z=(Z&4)!==0;for(var Q=0;Q<$.length;Q++){var Y=$[Q];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var z=Y.length-1;0<=z;z--){var w=Y[z],L=w.instance,T=w.currentTarget;if(w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}else for(z=0;z<Y.length;z++){if(w=Y[z],L=w.instance,T=w.currentTarget,w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}}}}function e0($,Z){uN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Q=Z[fX];Q===void 0&&(Q=Z[fX]=new Set);var Y=$+"__bubble";Q.has(Y)||(fF(Z,$,2,!1),Q.add(Y))}function $X($,Z,Q){uN.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),fF(Q,$,Y,Z)}function ZX($){if(!$[$3]){$[$3]=!0,jW.forEach(function(Q){Q!=="selectionchange"&&(uN.has(Q)||$X(Q,!1,$),$X(Q,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[$3]||(Z[$3]=!0,$X("selectionchange",!1,Z))}}function fF($,Z,Q,Y){switch(WW(Z)){case L6:var U=lT;break;case J4:U=rT;break;default:U=wX}Q=U.bind(null,Z,Q,$),U=void 0,!xX||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,Q,{capture:!0,passive:U}):$.addEventListener(Z,Q,!0):U!==void 0?$.addEventListener(Z,Q,{passive:U}):$.addEventListener(Z,Q,!1)}function JX($,Z,Q,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var z=Y.tag;if(z===3||z===4){var w=Y.stateNode.containerInfo;if(w===U)break;if(z===4)for(z=Y.return;z!==null;){var L=z.tag;if((L===3||L===4)&&z.stateNode.containerInfo===U)return;z=z.return}for(;w!==null;){if(z=N0(w),z===null)return;if(L=z.tag,L===5||L===6||L===26||L===27){Y=B=z;continue $}w=w.parentNode}}Y=Y.return}rK(function(){var T=B,b=Oq(Q),f=[];$:{var S=Wz.get($);if(S!==void 0){var g=RG,$0=$;switch($){case"keypress":if(GQ(Q)===0)break $;case"keydown":case"keyup":g=xC;break;case"focusin":$0="focus",g=cX;break;case"focusout":$0="blur",g=cX;break;case"beforeblur":case"afterblur":g=cX;break;case"click":if(Q.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=$z;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pC;break;case Kz:case Bz:case Hz:g=jC;break;case Fz:g=lC;break;case"scroll":case"scrollend":g=VC;break;case"wheel":g=sC;break;case"copy":case"cut":case"paste":g=kC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Jz;break;case"toggle":case"beforetoggle":g=oC}var G0=(Z&4)!==0,C1=!G0&&($==="scroll"||$==="scrollend"),$1=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=T,D;A!==null;){var k=A;if(D=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||D===null||$1===null||(k=D$(A,$1),k!=null&&G0.push(e$(A,k,D))),C1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,Q,b),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&Q!==KZ&&($0=Q.relatedTarget||Q.fromElement)&&(N0($0)||$0[i2]))break $;if(g||S){if(S=b.window===b?b:(S=b.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=Q.relatedTarget||Q.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(C1=j($0),G0=$0.tag,$0!==C1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=$z,k="onMouseLeave",$1="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=Jz,k="onPointerLeave",$1="onPointerEnter",A="pointer";if(C1=g==null?S:v0(g),D=$0==null?S:v0($0),S=new G0(k,A+"leave",g,Q,b),S.target=C1,S.relatedTarget=D,k=null,N0(b)===T&&(G0=new G0($1,A+"enter",$0,Q,b),G0.target=D,G0.relatedTarget=C1,k=G0),C1=k,g&&$0)Z:{G0=HT,$1=g,A=$0,D=0;for(k=$1;k;k=G0(k))D++;k=0;for(var m=A;m;m=G0(m))k++;for(;0<D-k;)$1=G0($1),D--;for(;0<k-D;)A=G0(A),k--;for(;D--;){if($1===A||A!==null&&$1===A.alternate){G0=$1;break Z}$1=G0($1),A=G0(A)}G0=null}else G0=null;g!==null&&yF(f,S,g,G0,!1),$0!==null&&C1!==null&&yF(f,C1,$0,G0,!0)}}}$:{if(S=T?v0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var J0=eK;else if(iK(S))if(Nz)J0=OP;else{J0=TP;var S0=PP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&E$(T.elementType)&&(J0=eK):J0=CP;if(J0&&(J0=J0($,T))){tK(f,J0,Q,b);break $}S0&&S0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&Rq(S,"number",S.value)}switch(S0=T?v0(T):window,$){case"focusin":if(iK(S0)||S0.contentEditable==="true")j9=S0,rX=T,wZ=null;break;case"focusout":wZ=rX=j9=null;break;case"mousedown":sX=!0;break;case"contextmenu":case"mouseup":case"dragend":sX=!1,YB(f,Q,b);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":YB(f,Q,b)}var R0;if(lX)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else D9?oK($,Q)&&(B0="onCompositionEnd"):$==="keydown"&&Q.keyCode===Qz&&(B0="onCompositionStart");if(B0&&(Gz&&Q.locale!=="ko"&&(D9||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&D9&&(R0=sK()):(t2=b,mX=("value"in t2)?t2.value:t2.textContent,D9=!0)),S0=iQ(T,B0),0<S0.length&&(B0=new Zz(B0,$,null,Q,b),f.push({event:B0,listeners:S0}),R0?B0.data=R0:(R0=aK(Q),R0!==null&&(B0.data=R0)))),R0=iC?wP($,Q):RP($,Q))B0=iQ(T,"onBeforeInput"),0<B0.length&&(S0=new fC("onBeforeInput","beforeinput",null,Q,b),f.push({event:S0,listeners:B0}),S0.data=R0);BT(f,$,T,Q,b)}bF(f,Z)})}function e$($,Z,Q){return{instance:$,listener:Z,currentTarget:Q}}function iQ($,Z){for(var Q=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=D$($,Q),U!=null&&Y.unshift(e$($,U,B)),U=D$($,Z),U!=null&&Y.push(e$($,U,B))),$.tag===3)return Y;$=$.return}return[]}function HT($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function yF($,Z,Q,Y,U){for(var B=Z._reactName,z=[];Q!==null&&Q!==Y;){var w=Q,L=w.alternate,T=w.stateNode;if(w=w.tag,L!==null&&L===Y)break;w!==5&&w!==26&&w!==27||T===null||(L=T,U?(T=D$(Q,B),T!=null&&z.unshift(e$(Q,T,L))):U||(T=D$(Q,B),T!=null&&z.push(e$(Q,T,L)))),Q=Q.return}z.length!==0&&$.push({event:Z,listeners:z})}function QX($,Z){FP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||tW||(tW=!0,$==="select"&&Z.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.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var Q={registrationNameDependencies:K7,possibleRegistrationNames:yX};E$($)||typeof Z.is==="string"||zP($,Z,Q),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.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 K5($,Z,Q,Y){Z!==Q&&(Q=r2(Q),r2(Z)!==Q&&(Y[$]=Z))}function FT($,Z,Q){Z.forEach(function(Y){Q[uF(Y)]=Y==="style"?qX($):$.getAttribute(Y)})}function A4($,Z){Z===!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.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function gF($,Z){return $=$.namespaceURI===zG||$.namespaceURI===V9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function r2($){return v2($)&&(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.",d8($)),U5($)),(typeof $==="string"?$:""+$).replace(IO,`
176
- `).replace(VO,"")}function hF($,Z){return Z=r2(Z),r2($)===Z?!0:!1}function w1($,Z,Q,Y,U,B){switch(Q){case"children":if(typeof Y==="string")QQ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||A$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")QQ(""+Y,Z,!1),Z!=="body"&&A$($,""+Y);break;case"className":$Q($,"class",Y);break;case"tabIndex":$Q($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":$Q($,Q,Y);break;case"style":pK($,Y,B);break;case"data":if(Z!=="object"){$Q($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||Q!=="href")){Q==="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.',Q,Q):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.',Q,Q),$.removeAttribute(Q);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=S$(""+Y),$.setAttribute(Q,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?Q==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||Q3||(Q3=!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||J3||(J3=!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."))):Z==="input"||Z==="button"?Q==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||Z3?Z!=="button"||U.type==null||U.type==="submit"||Z3?typeof Y==="function"&&(U.name==null||gM||(gM=!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||Q3||(Q3=!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||J3||(J3=!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."))):(Z3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Z3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Q==="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 Y==="function"){$.setAttribute(Q,"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 B==="function"&&(Q==="formAction"?(Z!=="input"&&w1($,Z,"name",U.name,U,null),w1($,Z,"formEncType",U.formEncType,U,null),w1($,Z,"formMethod",U.formMethod,U,null),w1($,Z,"formTarget",U.formTarget,U,null)):(w1($,Z,"encType",U.encType,U,null),w1($,Z,"method",U.method,U,null),w1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=S$(""+Y),$.setAttribute(Q,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),e0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),e0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}W1(Y,Q),Q=S$(""+Y),$.setAttributeNS(A7,"xlink:href",Q);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,""+Y)):$.removeAttribute(Q);break;case"inert":Y!==""||G3[Q]||(G3[Q]=!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.",Q));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(Q,""):$.removeAttribute(Q);break;case"capture":case"download":Y===!0?$.setAttribute(Q,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(Q):(W1(Y,Q),$.setAttribute(Q,Y));break;case"popover":e0("beforetoggle",$),e0("toggle",$),eJ($,"popover",Y);break;case"xlinkActuate":n4($,A7,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,A7,"xlink:arcrole",Y);break;case"xlinkRole":n4($,A7,"xlink:role",Y);break;case"xlinkShow":n4($,A7,"xlink:show",Y);break;case"xlinkTitle":n4($,A7,"xlink:title",Y);break;case"xlinkType":n4($,A7,"xlink:type",Y);break;case"xmlBase":n4($,xN,"xml:base",Y);break;case"xmlLang":n4($,xN,"xml:lang",Y);break;case"xmlSpace":n4($,xN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),eJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":hM||Y==null||typeof Y!=="object"||(hM=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"?(Q=cK(Q),eJ($,Q,Y)):K7.hasOwnProperty(Q)&&Y!=null&&typeof Y!=="function"&&A4(Q,Y)}}function GX($,Z,Q,Y,U,B){switch(Q){case"style":pK($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"children":typeof Y==="string"?A$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&A$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),e0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),e0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(K7.hasOwnProperty(Q))Y!=null&&typeof Y!=="function"&&A4(Q,Y);else $:{if(Q[0]==="o"&&Q[1]==="n"&&(U=Q.endsWith("Capture"),Z=Q.slice(2,U?Q.length-7:void 0),B=$[g5]||null,B=B!=null?B[Q]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(Q in $?$[Q]=null:$.hasAttribute(Q)&&$.removeAttribute(Q)),$.addEventListener(Z,Y,U);break $}Q in $?$[Q]=Y:Y===!0?$.setAttribute(Q,""):eJ($,Q,Y)}}}function R5($,Z,Q){switch(QX(Z,Q),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":e0("error",$),e0("load",$);var Y=!1,U=!1,B;for(B in Q)if(Q.hasOwnProperty(B)){var z=Q[B];if(z!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,B,z,Q,null)}}U&&w1($,Z,"srcSet",Q.srcSet,Q,null),Y&&w1($,Z,"src",Q.src,Q,null);return;case"input":f2("input",Q),e0("invalid",$);var w=B=z=U=null,L=null,T=null;for(Y in Q)if(Q.hasOwnProperty(Y)){var b=Q[Y];if(b!=null)switch(Y){case"name":U=b;break;case"type":z=b;break;case"checked":L=b;break;case"defaultChecked":T=b;break;case"value":B=b;break;case"defaultValue":w=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,Y,b,Q,null)}}AK($,Q),EK($,B,w,L,T,z,U,!1);return;case"select":f2("select",Q),e0("invalid",$),Y=z=B=null;for(U in Q)if(Q.hasOwnProperty(U)&&(w=Q[U],w!=null))switch(U){case"value":B=w;break;case"defaultValue":z=w;break;case"multiple":Y=w;default:w1($,Z,U,w,Q,null)}jK($,Q),Z=B,Q=z,$.multiple=!!Y,Z!=null?Q9($,!!Y,Z,!1):Q!=null&&Q9($,!!Y,Q,!0);return;case"textarea":f2("textarea",Q),e0("invalid",$),B=U=Y=null;for(z in Q)if(Q.hasOwnProperty(z)&&(w=Q[z],w!=null))switch(z){case"value":Y=w;break;case"defaultValue":U=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w1($,Z,z,w,Q,null)}vK($,Q),bK($,Y,U,B);return;case"option":SK($,Q);for(L in Q)if(Q.hasOwnProperty(L)&&(Y=Q[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:w1($,Z,L,Y,Q,null)}return;case"dialog":e0("beforetoggle",$),e0("toggle",$),e0("cancel",$),e0("close",$);break;case"iframe":case"object":e0("load",$);break;case"video":case"audio":for(Y=0;Y<sZ.length;Y++)e0(sZ[Y],$);break;case"image":e0("error",$),e0("load",$);break;case"details":e0("toggle",$);break;case"embed":case"source":case"link":e0("error",$),e0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in Q)if(Q.hasOwnProperty(T)&&(Y=Q[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,T,Y,Q,null)}return;default:if(E$(Z)){for(b in Q)Q.hasOwnProperty(b)&&(Y=Q[b],Y!==void 0&&GX($,Z,b,Y,Q,void 0));return}}for(w in Q)Q.hasOwnProperty(w)&&(Y=Q[w],Y!=null&&w1($,Z,w,Y,Q,null))}function WT($,Z,Q,Y){switch(QX(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,z=null,w=null,L=null,T=null,b=null;for(g in Q){var f=Q[g];if(Q.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||w1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=Q[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":b=g;break;case"value":z=g;break;case"defaultValue":w=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&w1($,Z,S,g,Y,f)}}Z=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||yM||(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"),yM=!0),!Z||Y||fM||(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"),fM=!0),wq($,z,w,L,T,b,B,U);return;case"select":g=z=w=S=null;for(B in Q)if(L=Q[B],Q.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||w1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=Q[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":w=B;break;case"multiple":z=B;default:B!==L&&w1($,Z,U,B,Y,L)}Y=w,Z=z,Q=g,S!=null?Q9($,!!Z,S,!1):!!Q!==!!Z&&(Y!=null?Q9($,!!Z,Y,!0):Q9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(w in Q)if(U=Q[w],Q.hasOwnProperty(w)&&U!=null&&!Y.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:w1($,Z,w,null,Y,U)}for(z in Y)if(U=Y[z],B=Q[z],Y.hasOwnProperty(z)&&(U!=null||B!=null))switch(z){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&w1($,Z,z,U,Y,B)}kK($,S,g);return;case"option":for(var $0 in Q)if(S=Q[$0],Q.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:w1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=Q[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:w1($,Z,L,S,Y,g)}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 G0 in Q)S=Q[G0],Q.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&w1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=Q[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,T,S,Y,g)}return;default:if(E$(Z)){for(var C1 in Q)S=Q[C1],Q.hasOwnProperty(C1)&&S!==void 0&&!Y.hasOwnProperty(C1)&&GX($,Z,C1,void 0,Y,S);for(b in Y)S=Y[b],g=Q[b],!Y.hasOwnProperty(b)||S===g||S===void 0&&g===void 0||GX($,Z,b,S,Y,g);return}}for(var $1 in Q)S=Q[$1],Q.hasOwnProperty($1)&&S!=null&&!Y.hasOwnProperty($1)&&w1($,Z,$1,null,Y,S);for(f in Y)S=Y[f],g=Q[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||w1($,Z,f,S,Y,g)}function uF($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function qX($){var Z={};$=$.style;for(var Q=0;Q<$.length;Q++){var Y=$[Q];Z[Y]=$.getPropertyValue(Y)}return Z}function xF($,Z,Q){if(Z!=null&&typeof Z!=="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 Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var z=Z[B];z!=null&&typeof z!=="boolean"&&z!==""&&(B.indexOf("--")===0?(T$(z,B),Y+=U+B+":"+(""+z).trim()):typeof z!=="number"||z===0||aW.has(B)?(T$(z,B),Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+(""+z).trim()):Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+z+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=r2(Y),r2(Z)!==Y&&(Q.style=qX($)))}}function D6($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function mF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}K5(Z,$,Y,B)}function YX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(W1(Y,Q),$===""+Y)return}K5(Z,$,Y,B)}function dF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(W1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function XX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),Q=S$(""+Y),$===Q)return}K5(Z,$,Y,B)}function pF($,Z,Q,Y){for(var U={},B=new Set,z=$.attributes,w=0;w<z.length;w++)switch(z[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(z[w].name)}if(E$(Z)){for(var L in Q)if(Q.hasOwnProperty(L)){var T=Q[L];if(T!=null){if(K7.hasOwnProperty(L))typeof T!=="function"&&A4(L,T);else if(Q.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||K5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=gF($,T),K5(L,z,T,U));continue;case"style":B.delete(L),xF($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),z=OK($,"class",T),K5("className",z,T,U);continue;default:Y.context===w2&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),z=OK($,L,T),K5(L,z,T,U)}}}}else for(T in Q)if(Q.hasOwnProperty(T)&&(L=Q[T],L!=null)){if(K7.hasOwnProperty(T))typeof L!=="function"&&A4(T,L);else if(Q.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||K5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=gF($,L),z!==L&&(U[T]={__html:z}));continue;case"className":D6($,T,"class",L,B,U);continue;case"tabIndex":D6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),xF($,L,U);continue;case"multiple":B.delete(T),K5(T,$.multiple,L,U);continue;case"muted":B.delete(T),K5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),z=$.getAttribute("data"),K5(T,z,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="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.',T,T):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.',T,T);continue}XX($,T,T,L,B,U);continue;case"action":case"formAction":if(z=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(z===AO){B.delete(T.toLowerCase()),K5(T,"function",L,U);continue}XX($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":XX($,T,"xlink:href",L,B,U);continue;case"contentEditable":YX($,T,"contenteditable",L,B,U);continue;case"spellCheck":YX($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":YX($,T,T,L,B,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":mF($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{w=$;var b=z=T,f=U;if(B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&w==="")break $;break;default:if(W1(L,z),w===""+L)break $}K5(z,w,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,b=z=T,f=U,B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(W1(L,z),w===""+L))break $}K5(z,w,L,f)}continue;case"rowSpan":dF($,T,"rowspan",L,B,U);continue;case"start":dF($,T,T,L,B,U);continue;case"xHeight":D6($,T,"x-height",L,B,U);continue;case"xlinkActuate":D6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":D6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":D6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":D6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":D6($,T,"xlink:title",L,B,U);continue;case"xlinkType":D6($,T,"xlink:type",L,B,U);continue;case"xmlBase":D6($,T,"xml:base",L,B,U);continue;case"xmlLang":D6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":D6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||G3[T]||(G3[T]=!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.",T)),mF($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){w=cK(T),z=!1,Y.context===w2&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(b=T.toLowerCase(),b=MG.hasOwnProperty(b)?MG[b]||null:null,b!==null&&b!==T&&(z=!0,B.delete(b)),B.delete(w));$:if(b=$,f=w,w=L,O$(f))if(b.hasAttribute(f))b=b.getAttribute(f),W1(w,f),w=b===""+w?w:b;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(b=f.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;z||K5(T,w,L,U)}}}return 0<B.size&&Q.suppressHydrationWarning!==!0&&FT($,B,U),Object.keys(U).length===0?null:U}function zT($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function cF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MT(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,Q=performance.getEntriesByType("resource"),Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.transferSize,z=U.initiatorType,w=U.duration;if(B&&w&&cF(z)){z=0,w=U.responseEnd;for(Y+=1;Y<Q.length;Y++){var L=Q[Y],T=L.startTime;if(T>w)break;var{transferSize:b,initiatorType:f}=L;b&&cF(f)&&(L=L.responseEnd,z+=b*(L<w?1:(w-T)/(L-T)))}if(--Y,Z+=8*(B+z)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function tQ($){return $.nodeType===9?$:$.ownerDocument}function lF($){switch($){case V9:return J$;case zG:return Y3;default:return w2}}function rF($,Z){if($===w2)switch(Z){case"svg":return J$;case"math":return Y3;default:return w2}return $===J$&&Z==="foreignObject"?w2:$}function NX($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function wT(){var $=window.event;if($&&$.type==="popstate"){if($===cN)return!1;return cN=$,!0}return cN=null,!1}function $Z(){var $=window.event;return $&&$!==aZ?$.type:null}function ZZ(){var $=window.event;return $&&$!==aZ?$.timeStamp:-1.1}function RT($){setTimeout(function(){throw $})}function _T($,Z,Q){switch(Z){case"button":case"input":case"select":case"textarea":Q.autoFocus&&$.focus();break;case"img":Q.src?$.src=Q.src:Q.srcSet&&($.srcset=Q.srcSet)}}function LT(){}function PT($,Z,Q,Y){WT($,Z,Q,Y),$[g5]=Y}function sF($){A$($,"")}function TT($,Z,Q){$.nodeValue=Q}function nF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var Q=j0($);Q!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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 s2($){return $==="head"}function CT($,Z){$.removeChild(Z)}function OT($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function oF($,Z){var Q=Z,Y=0;do{var U=Q.nextSibling;if($.removeChild(Q),U&&U.nodeType===8)if(Q=U.data,Q===oZ||Q===q3){if(Y===0){$.removeChild(U),L9(Z);return}Y--}else if(Q===nZ||Q===w8||Q===S7||Q===Z$||Q===E7)Y++;else if(Q===SO)JZ($.ownerDocument.documentElement);else if(Q===jO){Q=$.ownerDocument.head,JZ(Q);for(var B=Q.firstChild;B;){var{nextSibling:z,nodeName:w}=B;B[UZ]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||Q.removeChild(B),B=z}}else Q===DO&&JZ($.ownerDocument.body);Q=U}while(Q);L9(Z)}function aF($,Z){var Q=$;$=0;do{var Y=Q.nextSibling;if(Q.nodeType===1?Z?(Q._stashedDisplay=Q.style.display,Q.style.display="none"):(Q.style.display=Q._stashedDisplay||"",Q.getAttribute("style")===""&&Q.removeAttribute("style")):Q.nodeType===3&&(Z?(Q._stashedText=Q.nodeValue,Q.nodeValue=""):Q.nodeValue=Q._stashedText||""),Y&&Y.nodeType===8)if(Q=Y.data,Q===oZ)if($===0)break;else $--;else Q!==nZ&&Q!==w8&&Q!==S7&&Q!==Z$||$++;Q=Y}while(Q)}function IT($){aF($,!0)}function VT($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function AT($){$.nodeValue=""}function ET($){aF($,!1)}function ST($,Z){Z=Z[vO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function DT($,Z){$.nodeValue=Z}function UX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var Q=Z;switch(Z=Z.nextSibling,Q.nodeName){case"HTML":case"HEAD":case"BODY":UX(Q),Z0(Q);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Q.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Q)}}function jT($,Z,Q,Y){for(;$.nodeType===1;){var U=Q;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){W1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[UZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=w6($.nextSibling),$===null)break}return null}function vT($,Z,Q){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=w6($.nextSibling),$===null)return null}return $}function iF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function KX($){return $.data===w8||$.data===S7}function BX($){return $.data===Z$||$.data===w8&&$.ownerDocument.readyState!==xM}function kT($,Z){var Q=$.ownerDocument;if($.data===S7)$._reactRetry=Z;else if($.data!==w8||Q.readyState!==xM)Z();else{var Y=function(){Z(),Q.removeEventListener("DOMContentLoaded",Y)};Q.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function w6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===nZ||Z===Z$||Z===w8||Z===S7||Z===E7||Z===mN||Z===uM)break;if(Z===oZ||Z===q3)return null}}return $}function tF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),Q={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];Q[uF(B.name)]=B.name.toLowerCase()==="style"?qX($):B.value}return{type:Z,props:Q}}return $.nodeType===8?$.data===E7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function eF($,Z,Q){return Q===null||Q[EO]!==!0?($.nodeValue===Z?$=null:(Z=r2(Z),$=r2($.nodeValue)===Z?null:$.nodeValue),$):null}function HX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===oZ||Q===q3){if(Z===0)return w6($.nextSibling);Z--}else Q!==nZ&&Q!==Z$&&Q!==w8&&Q!==S7&&Q!==E7||Z++}$=$.nextSibling}return null}function $W($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===nZ||Q===Z$||Q===w8||Q===S7||Q===E7){if(Z===0)return $;Z--}else Q!==oZ&&Q!==q3||Z++}$=$.previousSibling}return null}function bT($){L9($)}function fT($){L9($)}function yT($){L9($)}function ZW($,Z,Q,Y,U){switch(U&&Cq($,Y.ancestorInfo),Z=tQ(Q),$){case"html":if($=Z.documentElement,!$)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 $;case"head":if($=Z.head,!$)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 $;case"body":if($=Z.body,!$)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 $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function gT($,Z,Q,Y){if(!Q[i2]&&j0(Q)){var U=Q.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($){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=Q.attributes;U.length;)Q.removeAttributeNode(U[0]);R5(Q,$,Z),Q[_5]=Y,Q[g5]=Z}function JZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function eQ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function JW($,Z,Q){var Y=Q$;if(Y&&typeof Z==="string"&&Z){var U=S6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof Q==="string"&&(U+='[crossorigin="'+Q+'"]'),rM.has(U)||(rM.add(U),$={rel:$,crossOrigin:Q,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function QW($,Z,Q,Y){var U=(U=o2.current)?eQ(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof Q.precedence==="string"&&typeof Q.href==="string"?(Q=R9(Q.href),Z=Q1(U).hoistableStyles,Y=Z.get(Q),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(Q.rel==="stylesheet"&&typeof Q.href==="string"&&typeof Q.precedence==="string"){$=R9(Q.href);var B=Q1(U).hoistableStyles,z=B.get($);if(!z&&(U=U.ownerDocument||U,z={type:"stylesheet",instance:null,count:0,state:{loading:j7,preload:null}},B.set($,z),(B=U.querySelector(QZ($)))&&!B._p&&(z.instance=B,z.state.loading=iZ|m6),!d6.has($))){var w={rel:"preload",as:"style",href:Q.href,crossOrigin:Q.crossOrigin,integrity:Q.integrity,media:Q.media,hrefLang:Q.hrefLang,referrerPolicy:Q.referrerPolicy};d6.set($,w),B||hT(U,$,w,z.state)}if(Z&&Y===null)throw Q=`
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=`
177
177
 
178
- - `+$G(Z)+`
179
- + `+$G(Q),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."+Q);return z}if(Z&&Y!==null)throw Q=`
178
+ - `+nh(t)+`
179
+ + `+nh(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&&l!==null)throw o=`
180
180
 
181
- - `+$G(Z)+`
182
- + `+$G(Q),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."+Q);return null;case"script":return Z=Q.async,Q=Q.src,typeof Q==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Q=_9(Q),Z=Q1(U).hoistableScripts,Y=Z.get(Q),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function $G($){var Z=0,Q="<link";return typeof $.rel==="string"?(Z++,Q+=' rel="'+$.rel+'"'):Z4.call($,"rel")&&(Z++,Q+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,Q+=' href="'+$.href+'"'):Z4.call($,"href")&&(Z++,Q+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,Q+=' precedence="'+$.precedence+'"'):Z4.call($,"precedence")&&(Z++,Q+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(Q+=" ..."),Q+" />"}function R9($){return'href="'+S6($)+'"'}function QZ($){return'link[rel="stylesheet"]['+$+"]"}function GW($){return r0({},$,{"data-precedence":$.precedence,precedence:null})}function hT($,Z,Q,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=iZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=iZ}),Z.addEventListener("error",function(){return Y.loading|=cM}),R5(Z,"link",Q),_0(Z),$.head.appendChild(Z))}function _9($){return'[src="'+S6($)+'"]'}function GZ($){return"script[async]"+$}function qW($,Z,Q){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+S6(Q.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=r0({},Q,{"data-href":Q.href,"data-precedence":Q.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),R5(Y,"style",U),ZG(Y,Q.precedence,$),Z.instance=Y;case"stylesheet":U=R9(Q.href);var B=$.querySelector(QZ(U));if(B)return Z.state.loading|=m6,Z.instance=B,_0(B),B;Y=GW(Q),(U=d6.get(U))&&FX(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var z=B;return z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Z.state.loading|=m6,ZG(B,Q.precedence,$),Z.instance=B;case"script":if(B=_9(Q.src),U=$.querySelector(GZ(B)))return Z.instance=U,_0(U),U;if(Y=Q,U=d6.get(B))Y=r0({},Q),WX(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),R5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&m6)===j7&&(Y=Z.instance,Z.state.loading|=m6,ZG(Y,Q.precedence,$));return Z.instance}function ZG($,Z,Q){for(var Y=Q.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,z=0;z<Y.length;z++){var w=Y[z];if(w.dataset.precedence===Z)B=w;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=Q.nodeType===9?Q.head:Q,Z.insertBefore($,Z.firstChild))}function FX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function WX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function YW($,Z,Q){if(X3===null){var Y=new Map,U=X3=new Map;U.set(Q,Y)}else U=X3,Y=U.get(Q),Y||(Y=new Map,U.set(Q,Y));if(Y.has($))return Y;Y.set($,null),Q=Q.getElementsByTagName($);for(U=0;U<Q.length;U++){var B=Q[U];if(!(B[UZ]||B[_5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==V9){var z=B.getAttribute(Z)||"";z=$+z;var w=Y.get(z);w?w.push(B):Y.set(z,[B])}}return Y}function XW($,Z,Q){$=$.ownerDocument||$,$.head.insertBefore(Q,Z==="title"?$.querySelector("head > title"):null)}function uT($,Z,Q){var Y=!Q.ancestorInfo.containerTagInScope;if(Q.context===J$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="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.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&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 Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;Q=[],Z.onLoad&&Q.push("`onLoad`"),U&&Q.push("`onError`"),B!=null&&Q.push("`disabled`"),U=zT(Q,"and"),U+=Q.length===1?" prop":" props",B=Q.length===1?"an "+U:"the "+U,Q.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.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.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"):(Z.onError||Z.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(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&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 $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.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":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function NW($){return $.type==="stylesheet"&&($.state.loading&lM)===j7?!1:!0}function xT($,Z,Q,Y){if(Q.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(Q.state.loading&m6)===j7){if(Q.instance===null){var U=R9(Y.href),B=Z.querySelector(QZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=JG.bind($),Z.then($,$)),Q.state.loading|=m6,Q.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=GW(Y),(U=d6.get(U))&&FX(Y,U),B=B.createElement("link"),_0(B);var z=B;z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Q.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Q,Z),(Z=Q.state.preload)&&(Q.state.loading&lM)===j7&&($.count++,Q=JG.bind($),Z.addEventListener("load",Q),Z.addEventListener("error",Q))}}function mT($,Z){return $.stylesheets&&$.count===0&&QG($,$.stylesheets),0<$.count||0<$.imgCount?function(Q){var Y=setTimeout(function(){if($.stylesheets&&QG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},fO+Z);0<$.imgBytes&&rN===0&&(rN=125*MT()*gO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&QG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>rN?50:yO)+Z);return $.unsuspend=Q,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function JG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function QG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,N3=new Map,Z.forEach(dT,$),N3=null,JG.call($))}function dT($,Z){if(!(Z.state.loading&m6)){var Q=N3.get($);if(Q)var Y=Q.get(sN);else{Q=new Map,N3.set($,Q);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var z=U[B];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")Q.set(z.dataset.precedence,z),Y=z}Y&&Q.set(sN,Y)}U=Z.instance,z=U.getAttribute("data-precedence"),B=Q.get(z)||Y,B===Y&&Q.set(sN,U),Q.set(z,U),this.count++,Y=JG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=m6}}function pT($,Z,Q,Y,U,B,z,w,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=D7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=J9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J9(0),this.hiddenUpdates=J9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=Q?"hydrateRoot()":"createRoot()"}function UW($,Z,Q,Y,U,B,z,w,L,T,b,f){return $=new pT($,Z,Q,z,L,T,b,f,w),Z=NO,B===!0&&(Z|=D5|Q4),Z|=h0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=dq(),Q7(Z),$.pooledCache=Z,Q7(Z),B.memoizedState={element:Y,isDehydrated:Q,cache:Z},sq(B),$}function KW($){if(!$)return Z8;return $=Z8,$}function zX($,Z,Q,Y,U,B){if(S5&&typeof S5.onScheduleFiberRoot==="function")try{S5.onScheduleFiberRoot(O9,Y,Q)}catch(z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",z))}U=KW(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&_6!==null&&!aM&&(aM=!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
+ - `+nh(t)+`
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.
183
183
 
184
- Check the render method of %s.`,d(_6)||"Unknown")),Y=x2(Z),Y.payload={element:Q},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),Q=m2($,Y,Z),Q!==null&&(z4(Z,"root.render()",null),g1(Q,$,Z),h$(Q,$,Z))}function BW($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Q=$.retryLane;$.retryLane=Q!==0&&Q<Z?Q:Z}}function MX($,Z){BW($,Z),($=$.alternate)&&BW($,Z)}function HW($){if($.tag===13||$.tag===31){var Z=E5($,67108864);Z!==null&&g1(Z,$,67108864),MX($,67108864)}}function FW($){if($.tag===13||$.tag===31){var Z=M6($);Z=n8(Z);var Q=E5($,Z);Q!==null&&g1(Q,$,Z),MX($,Z)}}function cT(){return _6}function lT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=L6,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function rT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=J4,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function wX($,Z,Q,Y){if(K3){var U=RX(Y);if(U===null)JX($,Z,Y,B3,Q),zW($,Y);else if(sT(U,$,Z,Q,Y))Y.stopPropagation();else if(zW($,Y),Z&4&&-1<uO.indexOf($)){for(;U!==null;){var B=j0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var z=B4(B.pendingLanes);if(z!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;z;){var L=1<<31-y5(z);w.entanglements[1]|=L,z&=~L}V4(B),(J1&(Y5|O6))===W5&&(sG=B5()+OM,t$(0,!1))}}break;case 31:case 13:w=E5(B,2),w!==null&&g1(w,B,2),z9(),MX(B,2)}if(B=RX(Y),B===null&&JX($,Z,Y,B3,Q),B===U)break;U=B}U!==null&&Y.stopPropagation()}else JX($,Z,Y,null,Q)}}function RX($){return $=Oq($),_X($)}function _X($){if(B3=null,$=N0($),$!==null){var Z=j($);if(Z===null)$=null;else{var Q=Z.tag;if(Q===13){if($=h(Z),$!==null)return $;$=null}else if(Q===31){if($=p(Z),$!==null)return $;$=null}else if(Q===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return B3=$,null}function WW($){switch($){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 L6;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 J4;case"message":switch(JC()){case vX:return L6;case kX:return J4;case C9:case QC:return k4;case bX:return FG;default:return k4}default:return k4}}function zW($,Z){switch($){case"focusin":case"focusout":R8=null;break;case"dragenter":case"dragleave":_8=null;break;case"mouseover":case"mouseout":L8=null;break;case"pointerover":case"pointerout":eZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":$J.delete(Z.pointerId)}}function qZ($,Z,Q,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:Q,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&HW(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function sT($,Z,Q,Y,U){switch(Z){case"focusin":return R8=qZ(R8,$,Z,Q,Y,U),!0;case"dragenter":return _8=qZ(_8,$,Z,Q,Y,U),!0;case"mouseover":return L8=qZ(L8,$,Z,Q,Y,U),!0;case"pointerover":var B=U.pointerId;return eZ.set(B,qZ(eZ.get(B)||null,$,Z,Q,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,$J.set(B,qZ($J.get(B)||null,$,Z,Q,Y,U)),!0}return!1}function MW($){var Z=N0($.target);if(Z!==null){var Q=j(Z);if(Q!==null){if(Z=Q.tag,Z===13){if(Z=h(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===31){if(Z=p(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===3&&Q.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}$.blockedOn=null}function GG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var Q=RX($.nativeEvent);if(Q===null){Q=$.nativeEvent;var Y=new Q.constructor(Q.type,Q),U=Y;KZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),KZ=U,Q.target.dispatchEvent(Y),KZ===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."),KZ=null}else return Z=j0(Q),Z!==null&&HW(Z),$.blockedOn=Q,!1;Z.shift()}return!0}function wW($,Z,Q){GG($)&&Q.delete(Z)}function nT(){nN=!1,R8!==null&&GG(R8)&&(R8=null),_8!==null&&GG(_8)&&(_8=null),L8!==null&&GG(L8)&&(L8=null),eZ.forEach(wW),$J.forEach(wW)}function qG($,Z){$.blockedOn===Z&&($.blockedOn=null,nN||(nN=!0,q1.unstable_scheduleCallback(q1.unstable_NormalPriority,nT)))}function RW($){H3!==$&&(H3=$,q1.unstable_scheduleCallback(q1.unstable_NormalPriority,function(){H3===$&&(H3=null);for(var Z=0;Z<$.length;Z+=3){var Q=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(_X(Y||Q)===null)continue;else break;var B=j0(Q);B!==null&&($.splice(Z,3),Z-=3,Q={pending:!0,data:U,method:Q.method,action:Y},Object.freeze(Q),_Y(B,Q,Y,U))}}))}function L9($){function Z(L){return qG(L,$)}R8!==null&&qG(R8,$),_8!==null&&qG(_8,$),L8!==null&&qG(L8,$),eZ.forEach(Z),$J.forEach(Z);for(var Q=0;Q<P8.length;Q++){var Y=P8[Q];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<P8.length&&(Q=P8[0],Q.blockedOn===null);)MW(Q),Q.blockedOn===null&&P8.shift();if(Q=($.ownerDocument||$).$$reactFormReplay,Q!=null)for(Y=0;Y<Q.length;Y+=3){var U=Q[Y],B=Q[Y+1],z=U[g5]||null;if(typeof B==="function")z||RW(Q);else if(z){var w=null;if(B&&B.hasAttribute("formAction")){if(U=B,z=B[g5]||null)w=z.formAction;else if(_X(U)!==null)continue}else w=z.action;typeof w==="function"?Q[Y+1]=w:(Q.splice(Y,3),Y-=3),RW(Q)}}}function _W(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(z){return U=z})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(Q,20)}function Q(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(Q,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function LX($){this._internalRoot=$}function YG($){this._internalRoot=$}function LW($){$[i2]&&($._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 r0=Object.assign,oT=Symbol.for("react.element"),E4=Symbol.for("react.transitional.element"),P9=Symbol.for("react.portal"),T9=Symbol.for("react.fragment"),XG=Symbol.for("react.strict_mode"),PX=Symbol.for("react.profiler"),TX=Symbol.for("react.consumer"),S4=Symbol.for("react.context"),YZ=Symbol.for("react.forward_ref"),CX=Symbol.for("react.suspense"),OX=Symbol.for("react.suspense_list"),NG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),IX=Symbol.for("react.activity"),aT=Symbol.for("react.memo_cache_sentinel"),PW=Symbol.iterator,iT=Symbol.for("react.client.reference"),G5=Array.isArray,x=z$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=GK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tT=Object.freeze({pending:!1,data:null,method:null,action:null}),VX=[],AX=[],Q2=-1,n2=H0(null),XZ=H0(null),o2=H0(null),UG=H0(null),NZ=0,TW,CW,OW,IW,VW,AW,EW;v.__reactDisabledLog=!0;var EX,SW,SX=!1,DX=new(typeof WeakMap==="function"?WeakMap:Map),_6=null,D4=!1,Z4=Object.prototype.hasOwnProperty,jX=q1.unstable_scheduleCallback,eT=q1.unstable_cancelCallback,$C=q1.unstable_shouldYield,ZC=q1.unstable_requestPaint,B5=q1.unstable_now,JC=q1.unstable_getCurrentPriorityLevel,vX=q1.unstable_ImmediatePriority,kX=q1.unstable_UserBlockingPriority,C9=q1.unstable_NormalPriority,QC=q1.unstable_LowPriority,bX=q1.unstable_IdlePriority,GC=q1.log,qC=q1.unstable_setDisableYieldValue,O9=null,S5=null,j4=!1,v4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:iJ,YC=Math.log,XC=Math.LN2,KG=256,BG=262144,HG=4194304,L6=2,J4=8,k4=32,FG=268435456,a2=Math.random().toString(36).slice(2),_5="__reactFiber$"+a2,g5="__reactProps$"+a2,i2="__reactContainer$"+a2,fX="__reactEvents$"+a2,NC="__reactListeners$"+a2,UC="__reactHandles$"+a2,DW="__reactResources$"+a2,UZ="__reactMarker$"+a2,jW=new Set,K7={},yX={},KC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},BC=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]*$"),vW={},kW={},HC=/[\n"\\]/g,bW=!1,fW=!1,yW=!1,gW=!1,hW=!1,uW=!1,xW=["value","defaultValue"],mW=!1,dW=/["'&<>\n\t]|^\s|\s$/,FC="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(" "),pW="applet caption html table td th marquee object template foreignObject desc title".split(" "),WC=pW.concat(["button"]),zC="dd dt li option optgroup p rp rt".split(" "),cW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WG={},gX={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"]},lW=/([A-Z])/g,rW=/^ms-/,MC=/^(?:webkit|moz|o)[A-Z]/,wC=/^-ms-/,RC=/-(.)/g,sW=/;\s*$/,I9={},hX={},nW=!1,oW=!1,aW=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(" ")),zG="http://www.w3.org/1998/Math/MathML",V9="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"]]),MG={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"},iW={"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},A9={},LC=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]*$"),PC=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]*$"),tW=!1,h5={},eW=/^on./,TC=/^on[^A-Z]/,CC=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]*$"),OC=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]*$"),IC=/^[\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,KZ=null,E9=null,S9=null,uX=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xX=!1;if(b4)try{var BZ={};Object.defineProperty(BZ,"passive",{get:function(){xX=!0}}),window.addEventListener("test",BZ,BZ),window.removeEventListener("test",BZ,BZ)}catch($){xX=!1}var t2=null,mX=null,wG=null,B7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RG=c5(B7),HZ=r0({},B7,{view:0,detail:0}),VC=c5(HZ),dX,pX,FZ,_G=r0({},HZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iq,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==FZ&&(FZ&&$.type==="mousemove"?(dX=$.screenX-FZ.screenX,pX=$.screenY-FZ.screenY):pX=dX=0,FZ=$),dX},movementY:function($){return"movementY"in $?$.movementY:pX}}),$z=c5(_G),AC=r0({},_G,{dataTransfer:0}),EC=c5(AC),SC=r0({},HZ,{relatedTarget:0}),cX=c5(SC),DC=r0({},B7,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=c5(DC),vC=r0({},B7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),kC=c5(vC),bC=r0({},B7,{data:0}),Zz=c5(bC),fC=Zz,yC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gC={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"},hC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},uC=r0({},HZ,{key:function($){if($.key){var Z=yC[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=GQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?gC[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iq,charCode:function($){return $.type==="keypress"?GQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?GQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),xC=c5(uC),mC=r0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jz=c5(mC),dC=r0({},HZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iq}),pC=c5(dC),cC=r0({},B7,{propertyName:0,elapsedTime:0,pseudoElement:0}),lC=c5(cC),rC=r0({},_G,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),sC=c5(rC),nC=r0({},B7,{newState:0,oldState:0}),oC=c5(nC),aC=[9,13,27,32],Qz=229,lX=b4&&"CompositionEvent"in window,WZ=null;b4&&"documentMode"in document&&(WZ=document.documentMode);var iC=b4&&"TextEvent"in window&&!WZ,Gz=b4&&(!lX||WZ&&8<WZ&&11>=WZ),qz=32,Yz=String.fromCharCode(qz),Xz=!1,D9=!1,tC={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},zZ=null,MZ=null,Nz=!1;b4&&(Nz=_P("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:IP,eC=b4&&"documentMode"in document&&11>=document.documentMode,j9=null,rX=null,wZ=null,sX=!1,v9={animationend:a8("Animation","AnimationEnd"),animationiteration:a8("Animation","AnimationIteration"),animationstart:a8("Animation","AnimationStart"),transitionrun:a8("Transition","TransitionRun"),transitionstart:a8("Transition","TransitionStart"),transitioncancel:a8("Transition","TransitionCancel"),transitionend:a8("Transition","TransitionEnd")},nX={},Uz={};b4&&(Uz=document.createElement("div").style,("AnimationEvent"in window)||(delete v9.animationend.animation,delete v9.animationiteration.animation,delete v9.animationstart.animation),("TransitionEvent"in window)||delete v9.transitionend.transition);var Kz=i8("animationend"),Bz=i8("animationiteration"),Hz=i8("animationstart"),$O=i8("transitionrun"),ZO=i8("transitionstart"),JO=i8("transitioncancel"),Fz=i8("transitionend"),Wz=new Map,oX="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(" ");oX.push("scrollEnd");var zz=0;if(typeof performance==="object"&&typeof performance.now==="function")var QO=performance,Mz=function(){return QO.now()};else{var GO=Date;Mz=function(){return GO.now()}}var aX=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},qO="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.",LG=0,iX=1,tX=2,eX=3,PG="– ",TG="+ ",wz="  ",I1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",s0="Scheduler ⚛",o0="Blocking",e2=!1,G2={color:"primary",properties:null,tooltipText:"",track:j6},$8={start:-0,end:-0,detail:{devtools:G2}},YO=["Changed Props",""],Rz="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",Rz],RZ=1,q2=2,v6=[],k9=0,$N=0,Z8={};Object.freeze(Z8);var k6=null,b9=null,A0=0,NO=1,h0=2,D5=8,Q4=16,UO=32,_z=!1;try{var Lz=Object.preventExtensions({})}catch($){_z=!0}var ZN=new WeakMap,f9=[],y9=0,CG=null,_Z=0,b6=[],f6=0,H7=null,Y2=1,X2="",L5=null,V1=null,i0=!1,f4=!1,P6=null,J8=null,y6=!1,JN=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."),QN=H0(null),GN=H0(null),Pz={},OG=null,g9=null,h9=!1,KO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(Q,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(Q){return Q()})}},BO=q1.unstable_scheduleCallback,HO=q1.unstable_NormalPriority,a1={$$typeof:S4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i1=q1.unstable_now,IG=console.createTask?console.createTask:function(){return null},LZ=1,VG=2,H5=-0,Q8=-0,N2=-0,U2=null,x5=-1.1,F7=-0,k1=-0,L0=-1.1,T0=-1.1,v1=null,h1=!1,G8=-0,y4=-1.1,PZ=null,q8=0,qN=null,YN=null,W7=-1.1,TZ=null,u9=-1.1,AG=-1.1,g4=-0,K2=-1.1,g6=-1.1,XN=0,CZ=null,Tz=null,Cz=null,Y8=-1.1,z7=null,X8=-1.1,EG=-1.1,Oz=-0,Iz=-0,SG=0,B2=null,Vz=0,OZ=-1.1,DG=!1,jG=!1,IZ=null,NN=0,M7=0,x9=null,Az=x.S;x.S=function($,Z){if(TM=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K2&&0>g6){K2=i1();var Q=ZZ(),Y=$Z();if(Q!==X8||Y!==z7)X8=-1.1;Y8=Q,z7=Y}vP($,Z)}Az!==null&&Az($,Z)};var w7=H0(null),G4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],jZ=[],R7=new Set;G4.recordUnsafeLifecycleWarnings=function($,Z){R7.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&VZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillMount==="function"&&AZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&EZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&SZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&jZ.push($))},G4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<VZ.length&&(VZ.forEach(function(w){$.add(d(w)||"Component"),R7.add(w.type)}),VZ=[]);var Z=new Set;0<AZ.length&&(AZ.forEach(function(w){Z.add(d(w)||"Component"),R7.add(w.type)}),AZ=[]);var Q=new Set;0<EZ.length&&(EZ.forEach(function(w){Q.add(d(w)||"Component"),R7.add(w.type)}),EZ=[]);var Y=new Set;0<SZ.length&&(SZ.forEach(function(w){Y.add(d(w)||"Component"),R7.add(w.type)}),SZ=[]);var U=new Set;0<DZ.length&&(DZ.forEach(function(w){U.add(d(w)||"Component"),R7.add(w.type)}),DZ=[]);var B=new Set;if(0<jZ.length&&(jZ.forEach(function(w){B.add(d(w)||"Component"),R7.add(w.type)}),jZ=[]),0<Z.size){var z=_(Z);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")),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.
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`,z)}0<Y.size&&(z=_(Y),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
188
+ Please update the following components: %s`,m)}0<l.size&&(m=x(l),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,z)),0<B.size&&(z=_(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,m)),0<d.size&&(m=x(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
197
- Please update the following components: %s`,z)),0<$.size&&(z=_($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+ Please update the following components: %s`,m)),0<e.size&&(m=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
198
 
199
199
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
200
  * Rename componentWillMount to UNSAFE_componentWillMount 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.
201
201
 
202
- Please update the following components: %s`,z)),0<Q.size&&(z=_(Q),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,m)),0<o.size&&(m=x(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
203
 
204
204
  * Move data fetching code or side effects to componentDidUpdate.
205
205
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
206
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
207
 
208
- Please update the following components: %s`,z)),0<U.size&&(z=_(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,m)),0<u.size&&(m=x(u),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
209
 
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,z))};var vG=new Map,Ez=new Set;G4.recordLegacyContextWarning=function($,Z){var Q=null;for(var Y=$;Y!==null;)Y.mode&D5&&(Q=Y),Y=Y.return;Q===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."):!Ez.has($.type)&&(Y=vG.get(Q),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],vG.set(Q,Y)),Y.push($))},G4.flushLegacyContextWarning=function(){vG.forEach(function($){if($.length!==0){var Z=$[0],Q=new Set;$.forEach(function(U){Q.add(d(U)||"Component"),Ez.add(U.type)});var Y=_(Q);q0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,m))};var Bh=new Map,D1=new Set;ln.recordLegacyContextWarning=function(e,t){var o=null;for(var l=e;l!==null;)l.mode&_a&&(o=l),l=l.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."):!D1.has(e.type)&&(l=Bh.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(l===void 0&&(l=[],Bh.set(o,l)),l.push(e))},ln.flushLegacyContextWarning=function(){Bh.forEach(function(e){if(e.length!==0){var t=e[0],o=new Set;e.forEach(function(u){o.add(q(u)||"Component"),D1.add(u.type)});var l=x(o);le(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`,Y)})}})},G4.discardPendingWarnings=function(){VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],jZ=[],vG=new Map};var Sz={react_stack_bottom_frame:function($,Z,Q){var Y=D4;D4=!0;try{return $(Z,Q)}finally{D4=Y}}},UN=Sz.react_stack_bottom_frame.bind(Sz),Dz={react_stack_bottom_frame:function($){var Z=D4;D4=!0;try{return $.render()}finally{D4=Z}}},jz=Dz.react_stack_bottom_frame.bind(Dz),vz={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(Q){N1($,$.return,Q)}}},KN=vz.react_stack_bottom_frame.bind(vz),kz={react_stack_bottom_frame:function($,Z,Q,Y,U){try{Z.componentDidUpdate(Q,Y,U)}catch(B){N1($,$.return,B)}}},bz=kz.react_stack_bottom_frame.bind(kz),fz={react_stack_bottom_frame:function($,Z){var Q=Z.stack;$.componentDidCatch(Z.value,{componentStack:Q!==null?Q:""})}},FO=fz.react_stack_bottom_frame.bind(fz),yz={react_stack_bottom_frame:function($,Z,Q){try{Q.componentWillUnmount()}catch(Y){N1($,Z,Y)}}},gz=yz.react_stack_bottom_frame.bind(yz),hz={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},WO=hz.react_stack_bottom_frame.bind(hz),uz={react_stack_bottom_frame:function($,Z,Q){try{Q()}catch(Y){N1($,Z,Y)}}},zO=uz.react_stack_bottom_frame.bind(uz),xz={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},MO=xz.react_stack_bottom_frame.bind(xz),m9=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`."),BN=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."),kG=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."),bG={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.')}},_7=null,vZ=!1,d9=null,kZ=0,u0=null,HN,mz=HN=!1,dz={},pz={},cz={};R=function($,Z,Q){if(Q!==null&&typeof Q==="object"&&Q._store&&(!Q._store.validated&&Q.key==null||Q._store.validated===2)){if(typeof Q._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.");Q._store.validated=1;var Y=d($),U=Y||"null";if(!dz[U]){dz[U]=!0,Q=Q._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,l)})}})},ln.discardPendingWarnings=function(){kc=[],Rc=[],_c=[],Dc=[],Ec=[],Oc=[],Bh=new Map};var E1={react_stack_bottom_frame:function(e,t,o){var l=En;En=!0;try{return e(t,o)}finally{En=l}}},hb=E1.react_stack_bottom_frame.bind(E1),O1={react_stack_bottom_frame:function(e){var t=En;En=!0;try{return e.render()}finally{En=t}}},P1=O1.react_stack_bottom_frame.bind(O1),B1={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(o){ut(e,e.return,o)}}},pb=B1.react_stack_bottom_frame.bind(B1),N1={react_stack_bottom_frame:function(e,t,o,l,u){try{t.componentDidUpdate(o,l,u)}catch(d){ut(e,e.return,d)}}},z1=N1.react_stack_bottom_frame.bind(N1),U1={react_stack_bottom_frame:function(e,t){var o=t.stack;e.componentDidCatch(t.value,{componentStack:o!==null?o:""})}},yD=U1.react_stack_bottom_frame.bind(U1),H1={react_stack_bottom_frame:function(e,t,o){try{o.componentWillUnmount()}catch(l){ut(e,t,l)}}},F1=H1.react_stack_bottom_frame.bind(H1),q1={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},bD=q1.react_stack_bottom_frame.bind(q1),V1={react_stack_bottom_frame:function(e,t,o){try{o()}catch(l){ut(e,t,l)}}},xD=V1.react_stack_bottom_frame.bind(V1),j1={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},vD=j1.react_stack_bottom_frame.bind(j1),jr=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`."),mb=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."),Nh=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."),zh={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.')}},Li=null,Pc=!1,Gr=null,Bc=0,He=null,gb,G1=gb=!1,Y1={},X1={},$1={};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 l=q(e),u=l||"null";if(!Y1[u]){Y1[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+"`."),B||Y&&(B=`
221
+ Check the render method of \``+u+"`."),d||l&&(d=`
222
222
 
223
- Check the top-level render call using <`+Y+">.");var z="";Q!=null&&$!==Q&&(Y=null,typeof Q.tag==="number"?Y=d(Q):typeof Q.name==="string"&&(Y=Q.name),Y&&(z=" It was passed a child from "+Y+".")),q0(Z,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.',B,z)})}}};var L7=yB(!0),lz=yB(!1),rz=0,sz=1,nz=2,FN=3,N8=!1,oz=!1,WN=null,zN=!1,p9=H0(null),fG=H0(0),T6=H0(null),h6=null,c9=1,bZ=2,c1=H0(0),yG=0,u6=1,m5=2,C6=4,d5=8,l9,az=new Set,iz=new Set,MN=new Set,tz=new Set,H2=0,E0=null,R1=null,t1=null,gG=!1,r9=!1,P7=!1,hG=0,fZ=0,F2=null,wO=0,RO=25,u=null,x6=null,W2=-1,yZ=!1,gZ={readContext:j1,use:c2,useCallback:d1,useContext:d1,useEffect:d1,useImperativeHandle:d1,useLayoutEffect:d1,useInsertionEffect:d1,useMemo:d1,useReducer:d1,useRef:d1,useState:d1,useDebugValue:d1,useDeferredValue:d1,useTransition:d1,useSyncExternalStore:d1,useId:d1,useHostTransitionStatus:d1,useFormState:d1,useActionState:d1,useOptimistic:d1,useMemoCache:d1,useCacheRefresh:d1};gZ.useEffectEvent=d1;var wN=null,ez=null,RN=null,$M=null,h4=null,q4=null,uG=null;wN={readContext:function($){return j1($)},use:c2,useCallback:function($,Z){return u="useCallback",l0(),N9(Z),zY($,Z)},useContext:function($){return u="useContext",l0(),j1($)},useEffect:function($,Z){return u="useEffect",l0(),N9(Z),vQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",l0(),N9(Q),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",l0(),N9(Z),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",l0(),N9(Z),FY($,Z)},useMemo:function($,Z){u="useMemo",l0(),N9(Z);var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",l0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",l0(),BY($)},useState:function($){u="useState",l0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",l0()},useDeferredValue:function($,Z){return u="useDeferredValue",l0(),wY($,Z)},useTransition:function(){return u="useTransition",l0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",l0(),YY($,Z,Q)},useId:function(){return u="useId",l0(),PY()},useFormState:function($,Z){return u="useFormState",l0(),AQ(),K9($,Z)},useActionState:function($,Z){return u="useActionState",l0(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",l0(),UY($)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",l0(),TY()},useEffectEvent:function($){return u="useEffectEvent",l0(),HY($)}},ez={readContext:function($){return j1($)},use:c2,useCallback:function($,Z){return u="useCallback",c(),zY($,Z)},useContext:function($){return u="useContext",c(),j1($)},useEffect:function($,Z){return u="useEffect",c(),vQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),FY($,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),BY($)},useState:function($){u="useState",c();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),wY($,Z)},useTransition:function(){return u="useTransition",c(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),YY($,Z,Q)},useId:function(){return u="useId",c(),PY()},useActionState:function($,Z){return u="useActionState",c(),K9($,Z)},useFormState:function($,Z){return u="useFormState",c(),AQ(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",c(),UY($)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),TY()},useEffectEvent:function($){return u="useEffectEvent",c(),HY($)}},RN={readContext:function($){return j1($)},use:c2,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),j1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=q4;try{return U9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=q4;try{return U9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),GH($,Z)},useTransition:function(){return u="useTransition",c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),DQ($)},useActionState:function($){return u="useActionState",c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),nB($,Z)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),kQ($)}},$M={readContext:function($){return j1($)},use:c2,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),j1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=uG;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=uG;try{return d$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=uG;try{return d$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),qH($,Z)},useTransition:function(){return u="useTransition",c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),jQ($)},useActionState:function($){return u="useActionState",c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),aB($,Z)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),kQ($)}},h4={readContext:function($){return W(),j1($)},use:function($){return F(),c2($)},useCallback:function($,Z){return u="useCallback",F(),l0(),zY($,Z)},useContext:function($){return u="useContext",F(),l0(),j1($)},useEffect:function($,Z){return u="useEffect",F(),l0(),vQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),l0(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),l0(),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),l0(),FY($,Z)},useMemo:function($,Z){u="useMemo",F(),l0();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),l0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),l0(),BY($)},useState:function($){u="useState",F(),l0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),l0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),l0(),wY($,Z)},useTransition:function(){return u="useTransition",F(),l0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),l0(),YY($,Z,Q)},useId:function(){return u="useId",F(),l0(),PY()},useFormState:function($,Z){return u="useFormState",F(),l0(),K9($,Z)},useActionState:function($,Z){return u="useActionState",F(),l0(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",F(),l0(),UY($)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",l0(),TY()},useEffectEvent:function($){return u="useEffectEvent",F(),l0(),HY($)}},q4={readContext:function($){return W(),j1($)},use:function($){return F(),c2($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),j1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return U9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return U9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),GH($,Z)},useTransition:function(){return u="useTransition",F(),c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),DQ($)},useActionState:function($){return u="useActionState",F(),c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),nB($,Z)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),kQ($)}},uG={readContext:function($){return W(),j1($)},use:function($){return F(),c2($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),j1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return d$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return d$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),qH($,Z)},useTransition:function(){return u="useTransition",F(),c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),jQ($)},useActionState:function($){return u="useActionState",F(),c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),aB($,Z)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),kQ($)}};var ZM={},JM=new Set,QM=new Set,GM=new Set,qM=new Set,YM=new Set,XM=new Set,NM=new Set,UM=new Set,KM=new Set,BM=new Set;Object.freeze(ZM);var _N={enqueueSetState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x2(Y);U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m2($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),g1(Z,$,Y),h$(Z,$,Y))},enqueueReplaceState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x2(Y);U.tag=sz,U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m2($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),g1(Z,$,Y),h$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var Q=M6($),Y=x2(Q);Y.tag=nz,Z!==void 0&&Z!==null&&(OY(Z),Y.callback=Z),Z=m2($,Y,Q),Z!==null&&(z4(Q,"this.forceUpdate()",$),g1(Z,$,Q),h$(Z,$,Q))}},s9=null,LN=null,PN=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."),e1=!1,HM={},FM={},WM={},zM={},n9=!1,MM={},xG={},TN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},wM=!1,RM=null;RM=new Set;var z2=!1,$5=!1,CN=!1,_M=typeof WeakSet==="function"?WeakSet:Set,F5=null,o9=null,a9=null,Z5=null,n5=!1,Y4=null,q5=!1,hZ=8192,_O={getCacheForType:function($){var Z=j1(a1),Q=Z.data.get($);return Q===void 0&&(Q=$(),Z.data.set($,Q)),Q},cacheSignal:function(){return j1(a1).controller.signal},getOwner:function(){return _6}};if(typeof Symbol==="function"&&Symbol.for){var uZ=Symbol.for;uZ("selector.component"),uZ("selector.has_pseudo_class"),uZ("selector.role"),uZ("selector.test_id"),uZ("selector.text")}var LO=[],PO=typeof WeakMap==="function"?WeakMap:Map,W5=0,Y5=2,O6=4,M2=0,xZ=1,T7=2,mG=3,U8=4,dG=6,LM=5,J1=W5,_1=null,m0=null,x0=0,o5=0,pG=1,C7=2,mZ=3,PM=4,ON=5,dZ=6,cG=7,IN=8,O7=9,H1=o5,I6=null,K8=!1,i9=!1,VN=!1,u4=0,b1=M2,B8=0,H8=0,AN=0,a5=0,I7=0,pZ=null,p5=null,lG=!1,rG=0,TM=0,CM=300,sG=1/0,OM=500,cZ=null,p1=null,F8=null,nG=0,EN=1,SN=2,IM=3,W8=0,VM=1,AM=2,EM=3,SM=4,oG=5,J5=0,z8=null,t9=null,X4=0,DN=0,jN=-0,vN=null,DM=null,jM=null,N4=nG,vM=null,TO=50,lZ=0,kN=null,bN=!1,aG=!1,CO=50,V7=0,rZ=null,e9=!1,iG=null,kM=!1,bM=new Set,OO={},tG=null,$$=null,fN=!1,yN=!1,eG=!1,gN=!1,M8=0,hN={};(function(){for(var $=0;$<oX.length;$++){var Z=oX[$],Q=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),t6(Q,"on"+Z)}t6(Kz,"onAnimationEnd"),t6(Bz,"onAnimationIteration"),t6(Hz,"onAnimationStart"),t6("dblclick","onDoubleClick"),t6("focusin","onFocus"),t6("focusout","onBlur"),t6($O,"onTransitionRun"),t6(ZO,"onTransitionStart"),t6(JO,"onTransitionCancel"),t6(Fz,"onTransitionEnd")})(),U6("onMouseEnter",["mouseout","mouseover"]),U6("onMouseLeave",["mouseout","mouseover"]),U6("onPointerEnter",["pointerout","pointerover"]),U6("onPointerLeave",["pointerout","pointerover"]),A5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),A5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),A5("onBeforeInput",["compositionend","keypress","textInput","paste"]),A5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sZ="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(" "),uN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sZ)),$3="_reactListening"+Math.random().toString(36).slice(2),fM=!1,yM=!1,Z3=!1,gM=!1,J3=!1,Q3=!1,hM=!1,G3={},IO=/\r\n?/g,VO=/\u0000|\uFFFD/g,A7="http://www.w3.org/1999/xlink",xN="http://www.w3.org/XML/1998/namespace",AO="javascript:throw new Error('React form unexpectedly submitted.')",EO="suppressHydrationWarning",E7="&",q3="/&",nZ="$",oZ="/$",w8="$?",S7="$~",Z$="$!",SO="html",DO="body",jO="head",mN="F!",uM="F",xM="loading",vO="style",w2=0,J$=1,Y3=2,dN=null,pN=null,mM={dialog:!0,webview:!0},cN=null,aZ=void 0,dM=typeof setTimeout==="function"?setTimeout:void 0,kO=typeof clearTimeout==="function"?clearTimeout:void 0,D7=-1,pM=typeof Promise==="function"?Promise:void 0,bO=typeof queueMicrotask==="function"?queueMicrotask:typeof pM<"u"?function($){return pM.resolve(null).then($).catch(RT)}:dM,lN=null,j7=0,iZ=1,cM=2,lM=3,m6=4,d6=new Map,rM=new Set,R2=U1.d;U1.d={f:function(){var $=R2.f(),Z=z9();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?UH(Z):R2.r($)},D:function($){R2.D($),JW("dns-prefetch",$,null)},C:function($,Z){R2.C($,Z),JW("preconnect",$,Z)},L:function($,Z,Q){R2.L($,Z,Q);var Y=Q$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+S6(Z)+'"]';Z==="image"?Q&&Q.imageSrcSet?(U+='[imagesrcset="'+S6(Q.imageSrcSet)+'"]',typeof Q.imageSizes==="string"&&(U+='[imagesizes="'+S6(Q.imageSizes)+'"]')):U+='[href="'+S6($)+'"]':U+='[href="'+S6($)+'"]';var B=U;switch(Z){case"style":B=R9($);break;case"script":B=_9($)}d6.has(B)||($=r0({rel:"preload",href:Z==="image"&&Q&&Q.imageSrcSet?void 0:$,as:Z},Q),d6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(QZ(B))||Z==="script"&&Y.querySelector(GZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){R2.m($,Z);var Q=Q$;if(Q&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+S6(Y)+'"][href="'+S6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=_9($)}if(!d6.has(B)&&($=r0({rel:"modulepreload",href:$},Z),d6.set(B,$),Q.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Q.querySelector(GZ(B)))return}Y=Q.createElement("link"),R5(Y,"link",$),_0(Y),Q.head.appendChild(Y)}}},X:function($,Z){R2.X($,Z);var Q=Q$;if(Q&&$){var Y=Q1(Q).hoistableScripts,U=_9($),B=Y.get(U);B||(B=Q.querySelector(GZ(U)),B||($=r0({src:$,async:!0},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,Q){R2.S($,Z,Q);var Y=Q$;if(Y&&$){var U=Q1(Y).hoistableStyles,B=R9($);Z=Z||"default";var z=U.get(B);if(!z){var w={loading:j7,preload:null};if(z=Y.querySelector(QZ(B)))w.loading=iZ|m6;else{$=r0({rel:"stylesheet",href:$,"data-precedence":Z},Q),(Q=d6.get(B))&&FX($,Q);var L=z=Y.createElement("link");_0(L),R5(L,"link",$),L._p=new Promise(function(T,b){L.onload=T,L.onerror=b}),L.addEventListener("load",function(){w.loading|=iZ}),L.addEventListener("error",function(){w.loading|=cM}),w.loading|=m6,ZG(z,Z,Y)}z={type:"stylesheet",instance:z,count:1,state:w},U.set(B,z)}}},M:function($,Z){R2.M($,Z);var Q=Q$;if(Q&&$){var Y=Q1(Q).hoistableScripts,U=_9($),B=Y.get(U);B||(B=Q.querySelector(GZ(U)),B||($=r0({src:$,async:!0,type:"module"},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var Q$=typeof document>"u"?null:document,X3=null,fO=60000,yO=800,gO=500,rN=0,sN=null,N3=null,v7=tT,tZ={$$typeof:S4,Provider:null,Consumer:null,_currentValue:v7,_currentValue2:v7,_threadCount:0},sM="%c%s%c",nM="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",oM="",U3=" ",hO=Function.prototype.bind,aM=!1,iM=null,tM=null,eM=null,$w=null,Zw=null,Jw=null,Qw=null,Gw=null,qw=null,Yw=null;iM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=G(Z.memoizedState,Q,0,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=r0({},$.memoizedProps),Q=E5($,2),Q!==null&&g1(Q,$,2))},tM=function($,Z,Q){Z=J($,Z),Z!==null&&(Q=N(Z.memoizedState,Q,0),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=r0({},$.memoizedProps),Q=E5($,2),Q!==null&&g1(Q,$,2))},eM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=q(Z.memoizedState,Q,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=r0({},$.memoizedProps),Q=E5($,2),Q!==null&&g1(Q,$,2))},$w=function($,Z,Q){$.pendingProps=G($.memoizedProps,Z,0,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&g1(Z,$,2)},Zw=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&g1(Z,$,2)},Jw=function($,Z,Q){$.pendingProps=q($.memoizedProps,Z,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&g1(Z,$,2)},Qw=function($){var Z=E5($,2);Z!==null&&g1(Z,$,2)},Gw=function($){var Z=Z9(),Q=E5($,Z);Q!==null&&g1(Q,$,Z)},qw=function($){H=$},Yw=function($){K=$};var K3=!0,B3=null,nN=!1,R8=null,_8=null,L8=null,eZ=new Map,$J=new Map,P8=[],uO="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(" "),H3=null;if(YG.prototype.render=LX.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var Q=arguments;typeof Q[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()."):I(Q[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 Q[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Q=$;var Y=Z.current,U=M6(Y);zX(Y,U,Q,Z,null,null)},YG.prototype.unmount=LX.prototype.unmount=function(){var $=arguments;if(typeof $[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()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(J1&(Y5|O6))!==W5&&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."),zX($.current,2,null,$,null,null),z9(),Z[i2]=null}},YG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var Q=0;Q<P8.length&&Z!==0&&Z<P8[Q].priority;Q++);P8.splice(Q,0,$),Q===0&&MW($)}},function(){var $=z$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
- - react: `+($+`
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:
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"),U1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=iM,$.overrideHookStateDeletePath=tM,$.overrideHookStateRenamePath=eM,$.overrideProps=$w,$.overridePropsDeletePath=Zw,$.overridePropsRenamePath=Jw,$.scheduleUpdate=Qw,$.scheduleRetry=Gw,$.setErrorHandler=qw,$.setSuspenseHandler=Yw,$.scheduleRefresh=E,$.scheduleRoot=O,$.setRefreshHandler=V,$.getCurrentFiber=cT,$9($)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Xw=window.location.protocol;/^(https?|file):$/.test(Xw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Xw==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}YS.createRoot=function($,Z){if(!I($))throw Error("Target container is not a DOM element.");LW($);var Q=!1,Y="",U=wH,B=RH,z=_H;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===E4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),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=tw,e.overrideHookStateDeletePath=aw,e.overrideHookStateRenamePath=ow,e.overrideProps=nw,e.overridePropsDeletePath=sw,e.overridePropsRenamePath=lw,e.scheduleUpdate=iw,e.scheduleRetry=rw,e.setErrorHandler=uw,e.setSuspenseHandler=cw,e.scheduleRefresh=A,e.scheduleRoot=T,e.setRefreshHandler=M,e.getCurrentFiber=$R,or(e)}()&&Nn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var dw=window.location.protocol;/^(https?|file):$/.test(dw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(dw==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}cB.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");TC(e);var o=!1,l="",u=SS,d=LS,m=CS;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===_n&&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 />);`),Z.unstable_strictMode===!0&&(Q=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(z=Z.onRecoverableError)),Z=UW($,1,!1,null,null,Q,Y,null,U,B,z,_W),$[i2]=Z.current,ZX($),new LX(Z)},YS.hydrateRoot=function($,Z,Q){if(!I($))throw Error("Target container is not a DOM element.");LW($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=wH,z=RH,w=_H,L=null;return Q!==null&&Q!==void 0&&(Q.unstable_strictMode===!0&&(Y=!0),Q.identifierPrefix!==void 0&&(U=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(B=Q.onUncaughtError),Q.onCaughtError!==void 0&&(z=Q.onCaughtError),Q.onRecoverableError!==void 0&&(w=Q.onRecoverableError),Q.formState!==void 0&&(L=Q.formState)),Z=UW($,1,!0,Z,Q!=null?Q:null,Y,U,L,B,z,w,_W),Z.context=KW(null),Q=Z.current,Y=M6(Q),Y=n8(Y),U=x2(Y),U.callback=null,m2(Q,U,Y),z4(Y,"hydrateRoot()",null),Q=Y,Z.current.lanes=Q,k2(Z,Q),V4(Z),$[i2]=Z.current,ZX($),new YG(Z)},YS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var f_=T8((Rv,b_)=>{var XS=s(k_());b_.exports=XS});var U0=T8((fS)=>{var l7=s(L1());(function(){function J(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case n:var o=v.render;return v=v.displayName,v||(v=o.displayName||o.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return o=v.displayName||null,o!==null?o:J(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return J(v(o))}catch(W0){}}return null}function G(v){return""+v}function q(v){try{G(v);var o=!1}catch(c0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z0),G(v)}}function X(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=J(v);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(P0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function F(v,o){function W0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}W0.isReactWarning=!0,Object.defineProperty(v,"key",{get:W0,configurable:!0})}function W(){var v=J(this.type);return Y0[v]||(Y0[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function M(v,o,W0,z0,c0,m1){var b0=W0.ref;return v={$$typeof:O,type:v,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:W}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:c0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function R(v,o,W0,z0,c0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(v);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",p0[b0+z0]||(o1=0<o1.length?"{"+o1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=hC(e,1,!1,null,null,o,l,null,u,d,m,CC),e[el]=t.current,sy(e),new Ty(t)},cB.hydrateRoot=function(e,t,o){if(!w(e))throw Error("Target container is not a DOM element.");TC(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=!1,u="",d=SS,m=LS,y=CS,v=null;return o!==null&&o!==void 0&&(o.unstable_strictMode===!0&&(l=!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=hC(e,1,!0,t,o!=null?o:null,l,u,v,d,m,y,CC),t.context=pC(null),o=t.current,l=bo(o),l=Ql(l),u=Vs(l),u.callback=null,js(o,u,l),bn(l,"hydrateRoot()",null),o=l,t.current.lanes=o,Bs(t,o),kn(t),e[el]=t.current,sy(e),new ch(t)},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 UI=wl(function(LU,zI){var dB=X(NI());zI.exports=dB});var ce=wl(function(UB){var $i=X(St());(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 M: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 A: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 i(D){if(D===M)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 ie[D]||(ie[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,qt){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:qt}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function b(D,Z,me,ge,Ge,qt){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 Zt=Object.keys(Z).filter(function(Jo){return Jo!=="key"});ge=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",je[Pe+ge]||(Zt=0<Zt.length?"{"+Zt.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} />`,z0,b0,o1,b0),p0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof v==="function"?v.displayName||v.name||"Unknown":v),M(v,b0,W0,N(),c0,m1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=l7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,k0=console.createTask?console.createTask:function(){return null};l7={react_stack_bottom_frame:function(v){return v()}};var l,Y0={},F0=l7.react_stack_bottom_frame.bind(l7,K)(),a0=k0(X(K)),p0={};fS.Fragment=V,fS.jsxDEV=function(v,o,W0,z0){var c0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,W0,z0,c0?Error("react-stack-top-frame"):F0,c0?k0(X(v)):a0)}})()});var RL=T8((lS)=>{var s7=s(L1());(function(){function J(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case n:var o=v.render;return v=v.displayName,v||(v=o.displayName||o.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return o=v.displayName||null,o!==null?o:J(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return J(v(o))}catch(W0){}}return null}function G(v){return""+v}function q(v){try{G(v);var o=!1}catch(c0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z0),G(v)}}function X(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=J(v);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(P0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function F(v,o){function W0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}W0.isReactWarning=!0,Object.defineProperty(v,"key",{get:W0,configurable:!0})}function W(){var v=J(this.type);return Y0[v]||(Y0[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function M(v,o,W0,z0,c0,m1){var b0=W0.ref;return v={$$typeof:O,type:v,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:W}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:c0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function R(v,o,W0,z0,c0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(v);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",p0[b0+z0]||(o1=0<o1.length?"{"+o1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,ge,Pe,Zt,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 Ia in Z)Ia!=="key"&&(me[Ia]=Z[Ia])}else me=Z;return Pe&&h(me,typeof D==="function"?D.displayName||D.name||"Unknown":D),g(D,Pe,me,r(),Ge,qt)}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"),A=Symbol.for("react.portal"),M=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=$i.__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};$i={react_stack_bottom_frame:function(D){return D()}};var G,ie={},pe=$i.react_stack_bottom_frame.bind($i,c)(),Qe=Oe(i(c)),je={};UB.Fragment=M,UB.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(i(D)):Qe)}})()});var LA=wl(function(WB){var Zi=X(St());(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 M: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 A: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 i(D){if(D===M)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 ie[D]||(ie[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,qt){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:qt}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function b(D,Z,me,ge,Ge,qt){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 Zt=Object.keys(Z).filter(function(Jo){return Jo!=="key"});ge=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",je[Pe+ge]||(Zt=0<Zt.length?"{"+Zt.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} />`,z0,b0,o1,b0),p0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof v==="function"?v.displayName||v.name||"Unknown":v),M(v,b0,W0,N(),c0,m1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=s7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,k0=console.createTask?console.createTask:function(){return null};s7={react_stack_bottom_frame:function(v){return v()}};var l,Y0={},F0=s7.react_stack_bottom_frame.bind(s7,K)(),a0=k0(X(K)),p0={};lS.Fragment=V,lS.jsx=function(v,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,W0,!1,z0?Error("react-stack-top-frame"):F0,z0?k0(X(v)):a0)},lS.jsxs=function(v,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,W0,!0,z0?Error("react-stack-top-frame"):F0,z0?k0(X(v)):a0)}})()});/*!
240
+ <%s key={someKey} {...props} />`,ge,Pe,Zt,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 Ia in Z)Ia!=="key"&&(me[Ia]=Z[Ia])}else me=Z;return Pe&&h(me,typeof D==="function"?D.displayName||D.name||"Unknown":D),g(D,Pe,me,r(),Ge,qt)}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"),A=Symbol.for("react.portal"),M=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=Zi.__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};Zi={react_stack_bottom_frame:function(D){return D()}};var G,ie={},pe=Zi.react_stack_bottom_frame.bind(Zi,c)(),Qe=Oe(i(c)),je={};WB.Fragment=M,WB.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(i(D)):Qe)},WB.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(i(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 JJ(J){return J+0.5|0}var C8=(J,G,q)=>Math.max(Math.min(J,q),G);function ZJ(J){return C8(JJ(J*2.55),0,255)}function O8(J){return C8(JJ(J*255),0,255)}function L2(J){return C8(JJ(J/2.55)/100,0,1)}function Uw(J){return C8(JJ(J*100),0,100)}var p6={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},aN=[..."0123456789ABCDEF"],nO=(J)=>aN[J&15],oO=(J)=>aN[(J&240)>>4]+aN[J&15],F3=(J)=>(J&240)>>4===(J&15),aO=(J)=>F3(J.r)&&F3(J.g)&&F3(J.b)&&F3(J.a);function iO(J){var G=J.length,q;if(J[0]==="#"){if(G===4||G===5)q={r:255&p6[J[1]]*17,g:255&p6[J[2]]*17,b:255&p6[J[3]]*17,a:G===5?p6[J[4]]*17:255};else if(G===7||G===9)q={r:p6[J[1]]<<4|p6[J[2]],g:p6[J[3]]<<4|p6[J[4]],b:p6[J[5]]<<4|p6[J[6]],a:G===9?p6[J[7]]<<4|p6[J[8]]:255}}return q}var tO=(J,G)=>J<255?G(J):"";function eO(J){var G=aO(J)?nO:oO;return J?"#"+G(J.r)+G(J.g)+G(J.b)+tO(J.a,G):void 0}var $I=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Fw(J,G,q){let X=G*Math.min(q,1-q),N=(K,H=(K+J/30)%12)=>q-X*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function ZI(J,G,q){let X=(N,K=(N+J/60)%6)=>q-q*G*Math.max(Math.min(K,4-K,1),0);return[X(5),X(3),X(1)]}function JI(J,G,q){let X=Fw(J,1,0.5),N;if(G+q>1)N=1/(G+q),G*=N,q*=N;for(N=0;N<3;N++)X[N]*=1-G-q,X[N]+=G;return X}function QI(J,G,q,X,N){if(J===N)return(G-q)/X+(G<q?6:0);if(G===N)return(q-J)/X+2;return(J-G)/X+4}function iN(J){let q=J.r/255,X=J.g/255,N=J.b/255,K=Math.max(q,X,N),H=Math.min(q,X,N),F=(K+H)/2,W,M,R;if(K!==H)R=K-H,M=F>0.5?R/(2-K-H):R/(K+H),W=QI(q,X,N,R,K),W=W*60+0.5;return[W|0,M||0,F]}function tN(J,G,q,X){return(Array.isArray(G)?J(G[0],G[1],G[2]):J(G,q,X)).map(O8)}function eN(J,G,q){return tN(Fw,J,G,q)}function GI(J,G,q){return tN(JI,J,G,q)}function qI(J,G,q){return tN(ZI,J,G,q)}function Ww(J){return(J%360+360)%360}function YI(J){let G=$I.exec(J),q=255,X;if(!G)return;if(G[5]!==X)q=G[6]?ZJ(+G[5]):O8(+G[5]);let N=Ww(+G[2]),K=+G[3]/100,H=+G[4]/100;if(G[1]==="hwb")X=GI(N,K,H);else if(G[1]==="hsv")X=qI(N,K,H);else X=eN(N,K,H);return{r:X[0],g:X[1],b:X[2],a:q}}function XI(J,G){var q=iN(J);q[0]=Ww(q[0]+G),q=eN(q),J.r=q[0],J.g=q[1],J.b=q[2]}function NI(J){if(!J)return;let G=iN(J),q=G[0],X=Uw(G[1]),N=Uw(G[2]);return J.a<255?`hsla(${q}, ${X}%, ${N}%, ${L2(J.a)})`:`hsl(${q}, ${X}%, ${N}%)`}var Kw={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"},Bw={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 UI(){let J={},G=Object.keys(Bw),q=Object.keys(Kw),X,N,K,H,F;for(X=0;X<G.length;X++){H=F=G[X];for(N=0;N<q.length;N++)K=q[N],F=F.replace(K,Kw[K]);K=parseInt(Bw[H],16),J[F]=[K>>16&255,K>>8&255,K&255]}return J}var W3;function KI(J){if(!W3)W3=UI(),W3.transparent=[0,0,0,0];let G=W3[J.toLowerCase()];return G&&{r:G[0],g:G[1],b:G[2],a:G.length===4?G[3]:255}}var BI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function HI(J){let G=BI.exec(J),q=255,X,N,K;if(!G)return;if(G[7]!==X){let H=+G[7];q=G[8]?ZJ(H):C8(H*255,0,255)}return X=+G[1],N=+G[3],K=+G[5],X=255&(G[2]?ZJ(X):C8(X,0,255)),N=255&(G[4]?ZJ(N):C8(N,0,255)),K=255&(G[6]?ZJ(K):C8(K,0,255)),{r:X,g:N,b:K,a:q}}function FI(J){return J&&(J.a<255?`rgba(${J.r}, ${J.g}, ${J.b}, ${L2(J.a)})`:`rgb(${J.r}, ${J.g}, ${J.b})`)}var oN=(J)=>J<=0.0031308?J*12.92:Math.pow(J,0.4166666666666667)*1.055-0.055,G$=(J)=>J<=0.04045?J/12.92:Math.pow((J+0.055)/1.055,2.4);function WI(J,G,q){let X=G$(L2(J.r)),N=G$(L2(J.g)),K=G$(L2(J.b));return{r:O8(oN(X+q*(G$(L2(G.r))-X))),g:O8(oN(N+q*(G$(L2(G.g))-N))),b:O8(oN(K+q*(G$(L2(G.b))-K))),a:J.a+q*(G.a-J.a)}}function z3(J,G,q){if(J){let X=iN(J);X[G]=Math.max(0,Math.min(X[G]+X[G]*q,G===0?360:1)),X=eN(X),J.r=X[0],J.g=X[1],J.b=X[2]}}function zw(J,G){return J?Object.assign(G||{},J):J}function Hw(J){var G={r:0,g:0,b:0,a:255};if(Array.isArray(J)){if(J.length>=3){if(G={r:J[0],g:J[1],b:J[2],a:255},J.length>3)G.a=O8(J[3])}}else G=zw(J,{r:0,g:0,b:0,a:1}),G.a=O8(G.a);return G}function zI(J){if(J.charAt(0)==="r")return HI(J);return YI(J)}class q${constructor(J){if(J instanceof q$)return J;let G=typeof J,q;if(G==="object")q=Hw(J);else if(G==="string")q=iO(J)||KI(J)||zI(J);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var J=zw(this._rgb);if(J)J.a=L2(J.a);return J}set rgb(J){this._rgb=Hw(J)}rgbString(){return this._valid?FI(this._rgb):void 0}hexString(){return this._valid?eO(this._rgb):void 0}hslString(){return this._valid?NI(this._rgb):void 0}mix(J,G){if(J){let q=this.rgb,X=J.rgb,N,K=G===N?0.5:G,H=2*K-1,F=q.a-X.a,W=((H*F===-1?H:(H+F)/(1+H*F))+1)/2;N=1-W,q.r=255&W*q.r+N*X.r+0.5,q.g=255&W*q.g+N*X.g+0.5,q.b=255&W*q.b+N*X.b+0.5,q.a=K*q.a+(1-K)*X.a,this.rgb=q}return this}interpolate(J,G){if(J)this._rgb=WI(this._rgb,J._rgb,G);return this}clone(){return new q$(this.rgb)}alpha(J){return this._rgb.a=O8(J),this}clearer(J){let G=this._rgb;return G.a*=1-J,this}greyscale(){let J=this._rgb,G=JJ(J.r*0.3+J.g*0.59+J.b*0.11);return J.r=J.g=J.b=G,this}opaquer(J){let G=this._rgb;return G.a*=1+J,this}negate(){let J=this._rgb;return J.r=255-J.r,J.g=255-J.g,J.b=255-J.b,this}lighten(J){return z3(this._rgb,2,J),this}darken(J){return z3(this._rgb,2,-J),this}saturate(J){return z3(this._rgb,1,J),this}desaturate(J){return z3(this._rgb,1,-J),this}rotate(J){return XI(this._rgb,J),this}}/*!
245
+ */function sd(a){return a+0.5|0}var Ml=(a,n,s)=>Math.max(Math.min(a,s),n);function nd(a){return Ml(sd(a*2.55),0,255)}function Il(a){return Ml(sd(a*255),0,255)}function Cs(a){return Ml(sd(a/2.55)/100,0,1)}function hw(a){return Ml(sd(a*100),0,100)}var Go={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},ex=[..."0123456789ABCDEF"],KD=(a)=>ex[a&15],JD=(a)=>ex[(a&240)>>4]+ex[a&15],yp=(a)=>(a&240)>>4===(a&15),e2=(a)=>yp(a.r)&&yp(a.g)&&yp(a.b)&&yp(a.a);function t2(a){var n=a.length,s;if(a[0]==="#"){if(n===4||n===5)s={r:255&Go[a[1]]*17,g:255&Go[a[2]]*17,b:255&Go[a[3]]*17,a:n===5?Go[a[4]]*17:255};else if(n===7||n===9)s={r:Go[a[1]]<<4|Go[a[2]],g:Go[a[3]]<<4|Go[a[4]],b:Go[a[5]]<<4|Go[a[6]],a:n===9?Go[a[7]]<<4|Go[a[8]]:255}}return s}var a2=(a,n)=>a<255?n(a):"";function o2(a){var n=e2(a)?KD:JD;return a?"#"+n(a.r)+n(a.g)+n(a.b)+a2(a.a,n):void 0}var n2=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yw(a,n,s){let i=n*Math.min(s,1-s),r=(c,f=(c+a/30)%12)=>s-i*Math.max(Math.min(f-3,9-f,1),-1);return[r(0),r(8),r(4)]}function s2(a,n,s){let i=(r,c=(r+a/60)%6)=>s-s*n*Math.max(Math.min(c,4-c,1),0);return[i(5),i(3),i(1)]}function l2(a,n,s){let i=yw(a,1,0.5),r;if(n+s>1)r=1/(n+s),n*=r,s*=r;for(r=0;r<3;r++)i[r]*=1-n-s,i[r]+=n;return i}function i2(a,n,s,i,r){if(a===r)return(n-s)/i+(n<s?6:0);if(n===r)return(s-a)/i+2;return(a-n)/i+4}function tx(a){let s=a.r/255,i=a.g/255,r=a.b/255,c=Math.max(s,i,r),f=Math.min(s,i,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=i2(s,i,r,b,c),p=p*60+0.5;return[p|0,g||0,h]}function ax(a,n,s,i){return(Array.isArray(n)?a(n[0],n[1],n[2]):a(n,s,i)).map(Il)}function ox(a,n,s){return ax(yw,a,n,s)}function r2(a,n,s){return ax(l2,a,n,s)}function u2(a,n,s){return ax(s2,a,n,s)}function bw(a){return(a%360+360)%360}function c2(a){let n=n2.exec(a),s=255,i;if(!n)return;if(n[5]!==i)s=n[6]?nd(+n[5]):Il(+n[5]);let r=bw(+n[2]),c=+n[3]/100,f=+n[4]/100;if(n[1]==="hwb")i=r2(r,c,f);else if(n[1]==="hsv")i=u2(r,c,f);else i=ox(r,c,f);return{r:i[0],g:i[1],b:i[2],a:s}}function d2(a,n){var s=tx(a);s[0]=bw(s[0]+n),s=ox(s),a.r=s[0],a.g=s[1],a.b=s[2]}function f2(a){if(!a)return;let n=tx(a),s=n[0],i=hw(n[1]),r=hw(n[2]);return a.a<255?`hsla(${s}, ${i}%, ${r}%, ${Cs(a.a)})`:`hsl(${s}, ${i}%, ${r}%)`}var pw={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"},mw={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 h2(){let a={},n=Object.keys(mw),s=Object.keys(pw),i,r,c,f,h;for(i=0;i<n.length;i++){f=h=n[i];for(r=0;r<s.length;r++)c=s[r],h=h.replace(c,pw[c]);c=parseInt(mw[f],16),a[h]=[c>>16&255,c>>8&255,c&255]}return a}var bp;function p2(a){if(!bp)bp=h2(),bp.transparent=[0,0,0,0];let n=bp[a.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var m2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function g2(a){let n=m2.exec(a),s=255,i,r,c;if(!n)return;if(n[7]!==i){let f=+n[7];s=n[8]?nd(f):Ml(f*255,0,255)}return i=+n[1],r=+n[3],c=+n[5],i=255&(n[2]?nd(i):Ml(i,0,255)),r=255&(n[4]?nd(r):Ml(r,0,255)),c=255&(n[6]?nd(c):Ml(c,0,255)),{r:i,g:r,b:c,a:s}}function y2(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${Cs(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}var Jb=(a)=>a<=0.0031308?a*12.92:Math.pow(a,0.4166666666666667)*1.055-0.055,iu=(a)=>a<=0.04045?a/12.92:Math.pow((a+0.055)/1.055,2.4);function b2(a,n,s){let i=iu(Cs(a.r)),r=iu(Cs(a.g)),c=iu(Cs(a.b));return{r:Il(Jb(i+s*(iu(Cs(n.r))-i))),g:Il(Jb(r+s*(iu(Cs(n.g))-r))),b:Il(Jb(c+s*(iu(Cs(n.b))-c))),a:a.a+s*(n.a-a.a)}}function xp(a,n,s){if(a){let i=tx(a);i[n]=Math.max(0,Math.min(i[n]+i[n]*s,n===0?360:1)),i=ox(i),a.r=i[0],a.g=i[1],a.b=i[2]}}function xw(a,n){return a?Object.assign(n||{},a):a}function gw(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=Il(a[3])}}else n=xw(a,{r:0,g:0,b:0,a:1}),n.a=Il(n.a);return n}function x2(a){if(a.charAt(0)==="r")return g2(a);return c2(a)}class ru{constructor(a){if(a instanceof ru)return a;let n=typeof a,s;if(n==="object")s=gw(a);else if(n==="string")s=t2(a)||p2(a)||x2(a);this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var a=xw(this._rgb);if(a)a.a=Cs(a.a);return a}set rgb(a){this._rgb=gw(a)}rgbString(){return this._valid?y2(this._rgb):void 0}hexString(){return this._valid?o2(this._rgb):void 0}hslString(){return this._valid?f2(this._rgb):void 0}mix(a,n){if(a){let s=this.rgb,i=a.rgb,r,c=n===r?0.5:n,f=2*c-1,h=s.a-i.a,p=((f*h===-1?f:(f+h)/(1+f*h))+1)/2;r=1-p,s.r=255&p*s.r+r*i.r+0.5,s.g=255&p*s.g+r*i.g+0.5,s.b=255&p*s.b+r*i.b+0.5,s.a=c*s.a+(1-c)*i.a,this.rgb=s}return this}interpolate(a,n){if(a)this._rgb=b2(this._rgb,a._rgb,n);return this}clone(){return new ru(this.rgb)}alpha(a){return this._rgb.a=Il(a),this}clearer(a){let n=this._rgb;return n.a*=1-a,this}greyscale(){let a=this._rgb,n=sd(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 xp(this._rgb,2,a),this}darken(a){return xp(this._rgb,2,-a),this}saturate(a){return xp(this._rgb,1,a),this}desaturate(a){return xp(this._rgb,1,-a),this}rotate(a){return d2(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 m4(){}var Vw=(()=>{let J=0;return()=>J++})();function G1(J){return J===null||J===void 0}function E1(J){if(Array.isArray&&Array.isArray(J))return!0;let G=Object.prototype.toString.call(J);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function Z1(J){return J!==null&&Object.prototype.toString.call(J)==="[object Object]"}function u1(J){return(typeof J==="number"||J instanceof Number)&&isFinite(+J)}function Z6(J,G){return u1(J)?J:G}function n0(J,G){return typeof J>"u"?G:J}var Aw=(J,G)=>typeof J==="string"&&J.endsWith("%")?parseFloat(J)/100*G:+J;function O1(J,G,q){if(J&&typeof J.call==="function")return J.apply(q,G)}function F1(J,G,q,X){let N,K,H;if(E1(J))if(K=J.length,X)for(N=K-1;N>=0;N--)G.call(q,J[N],N);else for(N=0;N<K;N++)G.call(q,J[N],N);else if(Z1(J)){H=Object.keys(J),K=H.length;for(N=0;N<K;N++)G.call(q,J[H[N]],H[N])}}function qJ(J,G){let q,X,N,K;if(!J||!G||J.length!==G.length)return!1;for(q=0,X=J.length;q<X;++q)if(N=J[q],K=G[q],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function _3(J){if(E1(J))return J.map(_3);if(Z1(J)){let G=Object.create(null),q=Object.keys(J),X=q.length,N=0;for(;N<X;++N)G[q[N]]=_3(J[q[N]]);return G}return J}function Ew(J){return["__proto__","prototype","constructor"].indexOf(J)===-1}function MI(J,G,q,X){if(!Ew(J))return;let N=G[J],K=q[J];if(Z1(N)&&Z1(K))X$(N,K,X);else G[J]=_3(K)}function X$(J,G,q){let X=E1(G)?G:[G],N=X.length;if(!Z1(J))return J;q=q||{};let K=q.merger||MI,H;for(let F=0;F<N;++F){if(H=X[F],!Z1(H))continue;let W=Object.keys(H);for(let M=0,R=W.length;M<R;++M)K(W[M],J,H,q)}return J}function U$(J,G){return X$(J,G,{merger:wI})}function wI(J,G,q){if(!Ew(J))return;let X=G[J],N=q[J];if(Z1(X)&&Z1(N))U$(X,N);else if(!Object.prototype.hasOwnProperty.call(G,J))G[J]=_3(N)}var Mw={"":(J)=>J,x:(J)=>J.x,y:(J)=>J.y};function RI(J){let G=J.split("."),q=[],X="";for(let N of G)if(X+=N,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function _I(J){let G=RI(J);return(q)=>{for(let X of G){if(X==="")break;q=q&&q[X]}return q}}function y7(J,G){return(Mw[G]||(Mw[G]=_I(G)))(J)}function C3(J){return J.charAt(0).toUpperCase()+J.slice(1)}var K$=(J)=>typeof J<"u",P2=(J)=>typeof J==="function",JU=(J,G)=>{if(J.size!==G.size)return!1;for(let q of J)if(!G.has(q))return!1;return!0};function Sw(J){return J.type==="mouseup"||J.type==="click"||J.type==="contextmenu"}var r1=Math.PI,e5=2*r1,LI=e5+r1,L3=Number.POSITIVE_INFINITY,PI=r1/180,t5=r1/2,k7=r1/4,ww=r1*2/3,T2=Math.log10,U4=Math.sign;function B$(J,G,q){return Math.abs(J-G)<q}function QU(J){let G=Math.round(J);J=B$(J,G,J/1000)?G:J;let q=Math.pow(10,Math.floor(T2(J))),X=J/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function Dw(J){let G=[],q=Math.sqrt(J),X;for(X=1;X<q;X++)if(J%X===0)G.push(X),G.push(J/X);if(q===(q|0))G.push(q);return G.sort((N,K)=>N-K).pop(),G}function TI(J){return typeof J==="symbol"||typeof J==="object"&&J!==null&&!((Symbol.toPrimitive in J)||("toString"in J)||("valueOf"in J))}function H$(J){return!TI(J)&&!isNaN(parseFloat(J))&&isFinite(J)}function jw(J,G){let q=Math.round(J);return q-G<=J&&q+G>=J}function GU(J,G,q){let X,N,K;for(X=0,N=J.length;X<N;X++)if(K=J[X][q],!isNaN(K))G.min=Math.min(G.min,K),G.max=Math.max(G.max,K)}function C2(J){return J*(r1/180)}function O3(J){return J*(180/r1)}function qU(J){if(!u1(J))return;let G=1,q=0;while(Math.round(J*G)/G!==J)G*=10,q++;return q}function vw(J,G){let q=G.x-J.x,X=G.y-J.y,N=Math.sqrt(q*q+X*X),K=Math.atan2(X,q);if(K<-0.5*r1)K+=e5;return{angle:K,distance:N}}function P3(J,G){return Math.sqrt(Math.pow(G.x-J.x,2)+Math.pow(G.y-J.y,2))}function CI(J,G){return(J-G+LI)%e5-r1}function i5(J){return(J%e5+e5)%e5}function YU(J,G,q,X){let N=i5(J),K=i5(G),H=i5(q),F=i5(K-N),W=i5(H-N),M=i5(N-K),R=i5(N-H);return N===K||N===H||X&&K===H||F>W&&M<R}function $6(J,G,q){return Math.max(G,Math.min(q,J))}function kw(J){return $6(J,-32768,32767)}function O2(J,G,q,X=0.000001){return J>=Math.min(G,q)-X&&J<=Math.max(G,q)+X}function I3(J,G,q){q=q||((H)=>J[H]<G);let X=J.length-1,N=0,K;while(X-N>1)if(K=N+X>>1,q(K))N=K;else X=K;return{lo:N,hi:X}}var V8=(J,G,q,X)=>I3(J,q,X?(N)=>{let K=J[N][G];return K<q||K===q&&J[N+1][G]===q}:(N)=>J[N][G]<q),bw=(J,G,q)=>I3(J,q,(X)=>J[X][G]>=q);function fw(J,G,q){let X=0,N=J.length;while(X<N&&J[X]<G)X++;while(N>X&&J[N-1]>q)N--;return X>0||N<J.length?J.slice(X,N):J}var yw=["push","pop","shift","splice","unshift"];function gw(J,G){if(J._chartjs){J._chartjs.listeners.push(G);return}Object.defineProperty(J,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),yw.forEach((q)=>{let X="_onData"+C3(q),N=J[q];Object.defineProperty(J,q,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return J._chartjs.listeners.forEach((F)=>{if(typeof F[X]==="function")F[X](...K)}),H}})})}function XU(J,G){let q=J._chartjs;if(!q)return;let X=q.listeners,N=X.indexOf(G);if(N!==-1)X.splice(N,1);if(X.length>0)return;yw.forEach((K)=>{delete J[K]}),delete J._chartjs}function NU(J){let G=new Set(J);if(G.size===J.length)return J;return Array.from(G)}var UU=function(){if(typeof window>"u")return function(J){return J()};return window.requestAnimationFrame}();function KU(J,G){let q=[],X=!1;return function(...N){if(q=N,!X)X=!0,UU.call(window,()=>{X=!1,J.apply(G,q)})}}function hw(J,G){let q;return function(...X){if(G)clearTimeout(q),q=setTimeout(J,G,X);else J.apply(this,X);return G}}var V3=(J)=>J==="start"?"left":J==="end"?"right":"center",P5=(J,G,q)=>J==="start"?G:J==="end"?q:(G+q)/2,uw=(J,G,q,X)=>{return J===(X?"left":"right")?q:J==="center"?(G+q)/2:G};function xw(J,G,q){let X=G.length,N=0,K=X;if(J._sorted){let{iScale:H,vScale:F,_parsed:W}=J,M=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:O,maxDefined:E}=H.getUserBounds();if(O){if(N=Math.min(V8(W,R,_).lo,q?X:V8(G,R,H.getPixelForValue(_)).lo),M){let V=W.slice(0,N+1).reverse().findIndex((I)=>!G1(I[F.axis]));N-=Math.max(0,V)}N=$6(N,0,X-1)}if(E){let V=Math.max(V8(W,H.axis,P,!0).hi+1,q?0:V8(G,R,H.getPixelForValue(P),!0).hi+1);if(M){let I=W.slice(V-1).findIndex((j)=>!G1(j[F.axis]));V+=Math.max(0,I)}K=$6(V,N,X)-N}else K=X-N}return{start:N,count:K}}function mw(J){let{xScale:G,yScale:q,_scaleRanges:X}=J,N={xmin:G.min,xmax:G.max,ymin:q.min,ymax:q.max};if(!X)return J._scaleRanges=N,!0;let K=X.xmin!==G.min||X.xmax!==G.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,N),K}var M3=(J)=>J===0||J===1,Rw=(J,G,q)=>-(Math.pow(2,10*(J-=1))*Math.sin((J-G)*e5/q)),_w=(J,G,q)=>Math.pow(2,-10*J)*Math.sin((J-G)*e5/q)+1,Y$={linear:(J)=>J,easeInQuad:(J)=>J*J,easeOutQuad:(J)=>-J*(J-2),easeInOutQuad:(J)=>(J/=0.5)<1?0.5*J*J:-0.5*(--J*(J-2)-1),easeInCubic:(J)=>J*J*J,easeOutCubic:(J)=>(J-=1)*J*J+1,easeInOutCubic:(J)=>(J/=0.5)<1?0.5*J*J*J:0.5*((J-=2)*J*J+2),easeInQuart:(J)=>J*J*J*J,easeOutQuart:(J)=>-((J-=1)*J*J*J-1),easeInOutQuart:(J)=>(J/=0.5)<1?0.5*J*J*J*J:-0.5*((J-=2)*J*J*J-2),easeInQuint:(J)=>J*J*J*J*J,easeOutQuint:(J)=>(J-=1)*J*J*J*J+1,easeInOutQuint:(J)=>(J/=0.5)<1?0.5*J*J*J*J*J:0.5*((J-=2)*J*J*J*J+2),easeInSine:(J)=>-Math.cos(J*t5)+1,easeOutSine:(J)=>Math.sin(J*t5),easeInOutSine:(J)=>-0.5*(Math.cos(r1*J)-1),easeInExpo:(J)=>J===0?0:Math.pow(2,10*(J-1)),easeOutExpo:(J)=>J===1?1:-Math.pow(2,-10*J)+1,easeInOutExpo:(J)=>M3(J)?J:J<0.5?0.5*Math.pow(2,10*(J*2-1)):0.5*(-Math.pow(2,-10*(J*2-1))+2),easeInCirc:(J)=>J>=1?J:-(Math.sqrt(1-J*J)-1),easeOutCirc:(J)=>Math.sqrt(1-(J-=1)*J),easeInOutCirc:(J)=>(J/=0.5)<1?-0.5*(Math.sqrt(1-J*J)-1):0.5*(Math.sqrt(1-(J-=2)*J)+1),easeInElastic:(J)=>M3(J)?J:Rw(J,0.075,0.3),easeOutElastic:(J)=>M3(J)?J:_w(J,0.075,0.3),easeInOutElastic(J){return M3(J)?J:J<0.5?0.5*Rw(J*2,0.1125,0.45):0.5+0.5*_w(J*2-1,0.1125,0.45)},easeInBack(J){return J*J*(2.70158*J-1.70158)},easeOutBack(J){return(J-=1)*J*(2.70158*J+1.70158)+1},easeInOutBack(J){let G=1.70158;if((J/=0.5)<1)return 0.5*(J*J*(((G*=1.525)+1)*J-G));return 0.5*((J-=2)*J*(((G*=1.525)+1)*J+G)+2)},easeInBounce:(J)=>1-Y$.easeOutBounce(1-J),easeOutBounce(J){if(J<0.36363636363636365)return 7.5625*J*J;if(J<0.7272727272727273)return 7.5625*(J-=0.5454545454545454)*J+0.75;if(J<0.9090909090909091)return 7.5625*(J-=0.8181818181818182)*J+0.9375;return 7.5625*(J-=0.9545454545454546)*J+0.984375},easeInOutBounce:(J)=>J<0.5?Y$.easeInBounce(J*2)*0.5:Y$.easeOutBounce(J*2-1)*0.5+0.5};function BU(J){if(J&&typeof J==="object"){let G=J.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function HU(J){return BU(J)?J:new q$(J)}function $U(J){return BU(J)?J:new q$(J).saturate(0.5).darken(0.1).hexString()}var OI=["x","y","borderWidth","radius","tension"],II=["color","borderColor","backgroundColor"];function VI(J){J.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),J.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),J.set("animations",{colors:{type:"color",properties:II},numbers:{type:"number",properties:OI}}),J.describe("animations",{_fallback:"animation"}),J.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:(G)=>G|0}}}})}function AI(J){J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Lw=new Map;function EI(J,G){G=G||{};let q=J+JSON.stringify(G),X=Lw.get(q);if(!X)X=new Intl.NumberFormat(J,G),Lw.set(q,X);return X}function A3(J,G,q){return EI(G,q).format(J)}var dw={values(J){return E1(J)?J:""+J},numeric(J,G,q){if(J===0)return"0";let X=this.chart.options.locale,N,K=J;if(q.length>1){let M=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(M<0.0001||M>1000000000000000)N="scientific";K=SI(J,q)}let H=T2(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),W={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(W,this.options.ticks.format),A3(J,X,W)},logarithmic(J,G,q){if(J===0)return"0";let X=q[G].significand||J/Math.pow(10,Math.floor(T2(J)));if([1,2,3,5,10,15].includes(X)||G>0.8*q.length)return dw.numeric.call(this,J,G,q);return""}};function SI(J,G){let q=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(q)>=1&&J!==Math.floor(J))q=J-Math.floor(J);return q}var YJ={formatters:dw};function DI(J){J.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:(G,q)=>q.lineWidth,tickColor:(G,q)=>q.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:YJ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),J.route("scale.ticks","color","","color"),J.route("scale.grid","color","","borderColor"),J.route("scale.border","color","","borderColor"),J.route("scale.title","color","","color"),J.describe("scale",{_fallback:!1,_scriptable:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),J.describe("scales",{_fallback:"scale"}),J.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var E8=Object.create(null),E3=Object.create(null);function QJ(J,G){if(!G)return J;let q=G.split(".");for(let X=0,N=q.length;X<N;++X){let K=q[X];J=J[K]||(J[K]=Object.create(null))}return J}function ZU(J,G,q){if(typeof G==="string")return X$(QJ(J,G),q);return X$(QJ(J,""),G)}class pw{constructor(J,G){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=(q)=>q.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=(q,X)=>$U(X.backgroundColor),this.hoverBorderColor=(q,X)=>$U(X.borderColor),this.hoverColor=(q,X)=>$U(X.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(J),this.apply(G)}set(J,G){return ZU(this,J,G)}get(J){return QJ(this,J)}describe(J,G){return ZU(E3,J,G)}override(J,G){return ZU(E8,J,G)}route(J,G,q,X){let N=QJ(this,J),K=QJ(this,q),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let F=this[H],W=K[X];if(Z1(F))return Object.assign({},W,F);return n0(F,W)},set(F){this[H]=F}}})}apply(J){J.forEach((G)=>G(this))}}var x1=new pw({_scriptable:(J)=>!J.startsWith("on"),_indexable:(J)=>J!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[VI,AI,DI]);function jI(J){if(!J||G1(J.size)||G1(J.family))return null;return(J.style?J.style+" ":"")+(J.weight?J.weight+" ":"")+J.size+"px "+J.family}function GJ(J,G,q,X,N){let K=G[N];if(!K)K=G[N]=J.measureText(N).width,q.push(N);if(K>X)X=K;return X}function cw(J,G,q,X){X=X||{};let N=X.data=X.data||{},K=X.garbageCollect=X.garbageCollect||[];if(X.font!==G)N=X.data={},K=X.garbageCollect=[],X.font=G;J.save(),J.font=G;let H=0,F=q.length,W,M,R,_,P;for(W=0;W<F;W++)if(_=q[W],_!==void 0&&_!==null&&!E1(_))H=GJ(J,N,K,H,_);else if(E1(_)){for(M=0,R=_.length;M<R;M++)if(P=_[M],P!==void 0&&P!==null&&!E1(P))H=GJ(J,N,K,H,P)}J.restore();let O=K.length/2;if(O>q.length){for(W=0;W<O;W++)delete N[K[W]];K.splice(0,O)}return H}function S8(J,G,q){let X=J.currentDevicePixelRatio,N=q!==0?Math.max(q/2,0.5):0;return Math.round((G-N)*X)/X+N}function FU(J,G){if(!G&&!J)return;G=G||J.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,J.width,J.height),G.restore()}function S3(J,G,q,X){WU(J,G,q,X,null)}function WU(J,G,q,X,N){let K,H,F,W,M,R,_,P,O=G.pointStyle,E=G.rotation,V=G.radius,I=(E||0)*PI;if(O&&typeof O==="object"){if(K=O.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){J.save(),J.translate(q,X),J.rotate(I),J.drawImage(O,-O.width/2,-O.height/2,O.width,O.height),J.restore();return}}if(isNaN(V)||V<=0)return;switch(J.beginPath(),O){default:if(N)J.ellipse(q,X,N/2,V,0,0,e5);else J.arc(q,X,V,0,e5);J.closePath();break;case"triangle":R=N?N/2:V,J.moveTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),J.closePath();break;case"rectRounded":M=V*0.516,W=V-M,H=Math.cos(I+k7)*W,_=Math.cos(I+k7)*(N?N/2-M:W),F=Math.sin(I+k7)*W,P=Math.sin(I+k7)*(N?N/2-M:W),J.arc(q-_,X-F,M,I-r1,I-t5),J.arc(q+P,X-H,M,I-t5,I),J.arc(q+_,X+F,M,I,I+t5),J.arc(q-P,X+H,M,I+t5,I+r1),J.closePath();break;case"rect":if(!E){W=Math.SQRT1_2*V,R=N?N/2:W,J.rect(q-R,X-W,2*R,2*W);break}I+=k7;case"rectRot":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+P,X-H),J.lineTo(q+_,X+F),J.lineTo(q-P,X+H),J.closePath();break;case"crossRot":I+=k7;case"cross":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"star":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H),I+=k7,_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"line":H=N?N/2:Math.cos(I)*V,F=Math.sin(I)*V,J.moveTo(q-H,X-F),J.lineTo(q+H,X+F);break;case"dash":J.moveTo(q,X),J.lineTo(q+Math.cos(I)*(N?N/2:V),X+Math.sin(I)*V);break;case!1:J.closePath();break}if(J.fill(),G.borderWidth>0)J.stroke()}function x4(J,G,q){return q=q||0.5,!G||J&&J.x>G.left-q&&J.x<G.right+q&&J.y>G.top-q&&J.y<G.bottom+q}function XJ(J,G){J.save(),J.beginPath(),J.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),J.clip()}function NJ(J){J.restore()}function lw(J,G,q,X,N){if(!G)return J.lineTo(q.x,q.y);if(N==="middle"){let K=(G.x+q.x)/2;J.lineTo(K,G.y),J.lineTo(K,q.y)}else if(N==="after"!==!!X)J.lineTo(G.x,q.y);else J.lineTo(q.x,G.y);J.lineTo(q.x,q.y)}function rw(J,G,q,X){if(!G)return J.lineTo(q.x,q.y);J.bezierCurveTo(X?G.cp1x:G.cp2x,X?G.cp1y:G.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function vI(J,G){if(G.translation)J.translate(G.translation[0],G.translation[1]);if(!G1(G.rotation))J.rotate(G.rotation);if(G.color)J.fillStyle=G.color;if(G.textAlign)J.textAlign=G.textAlign;if(G.textBaseline)J.textBaseline=G.textBaseline}function kI(J,G,q,X,N){if(N.strikethrough||N.underline){let K=J.measureText(X),H=G-K.actualBoundingBoxLeft,F=G+K.actualBoundingBoxRight,W=q-K.actualBoundingBoxAscent,M=q+K.actualBoundingBoxDescent,R=N.strikethrough?(W+M)/2:M;J.strokeStyle=J.fillStyle,J.beginPath(),J.lineWidth=N.decorationWidth||2,J.moveTo(H,R),J.lineTo(F,R),J.stroke()}}function bI(J,G){let q=J.fillStyle;J.fillStyle=G.color,J.fillRect(G.left,G.top,G.width,G.height),J.fillStyle=q}function D8(J,G,q,X,N,K={}){let H=E1(G)?G:[G],F=K.strokeWidth>0&&K.strokeColor!=="",W,M;J.save(),J.font=N.string,vI(J,K);for(W=0;W<H.length;++W){if(M=H[W],K.backdrop)bI(J,K.backdrop);if(F){if(K.strokeColor)J.strokeStyle=K.strokeColor;if(!G1(K.strokeWidth))J.lineWidth=K.strokeWidth;J.strokeText(M,q,X,K.maxWidth)}J.fillText(M,q,X,K.maxWidth),kI(J,q,X,M,K),X+=Number(N.lineHeight)}J.restore()}function F$(J,G){let{x:q,y:X,w:N,h:K,radius:H}=G;J.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*r1,r1,!0),J.lineTo(q,X+K-H.bottomLeft),J.arc(q+H.bottomLeft,X+K-H.bottomLeft,H.bottomLeft,r1,t5,!0),J.lineTo(q+N-H.bottomRight,X+K),J.arc(q+N-H.bottomRight,X+K-H.bottomRight,H.bottomRight,t5,0,!0),J.lineTo(q+N,X+H.topRight),J.arc(q+N-H.topRight,X+H.topRight,H.topRight,0,-t5,!0),J.lineTo(q+H.topLeft,X)}var fI=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yI=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gI(J,G){let q=(""+J).match(fI);if(!q||q[1]==="normal")return G*1.2;switch(J=+q[2],q[3]){case"px":return J;case"%":J/=100;break}return G*J}var hI=(J)=>+J||0;function zU(J,G){let q={},X=Z1(G),N=X?Object.keys(G):G,K=Z1(J)?X?(H)=>n0(J[H],J[G[H]]):(H)=>J[H]:()=>J;for(let H of N)q[H]=hI(K(H));return q}function MU(J){return zU(J,{top:"y",right:"x",bottom:"y",left:"x"})}function j8(J){return zU(J,["topLeft","topRight","bottomLeft","bottomRight"])}function T5(J){let G=MU(J);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function Q5(J,G){J=J||{},G=G||x1.font;let q=n0(J.size,G.size);if(typeof q==="string")q=parseInt(q,10);let X=n0(J.style,G.style);if(X&&!(""+X).match(yI))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let N={family:n0(J.family,G.family),lineHeight:gI(n0(J.lineHeight,G.lineHeight),q),size:q,style:X,weight:n0(J.weight,G.weight),string:""};return N.string=jI(N),N}function UJ(J,G,q,X){let N=!0,K,H,F;for(K=0,H=J.length;K<H;++K){if(F=J[K],F===void 0)continue;if(G!==void 0&&typeof F==="function")F=F(G),N=!1;if(q!==void 0&&E1(F))F=F[q%F.length],N=!1;if(F!==void 0){if(X&&!N)X.cacheable=!1;return F}}}function sw(J,G,q){let{min:X,max:N}=J,K=Aw(G,(N-X)/2),H=(F,W)=>q&&F===0?0:F+W;return{min:H(X,-Math.abs(K)),max:H(N,K)}}function I2(J,G){return Object.assign(Object.create(J),G)}function D3(J,G=[""],q,X,N=()=>J[0]){let K=q||J;if(typeof X>"u")X=aw("_fallback",J);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:J,_rootScopes:K,_fallback:X,_getTarget:N,override:(F)=>D3([F,...J],G,K,X)};return new Proxy(H,{deleteProperty(F,W){return delete F[W],delete F._keys,delete J[0][W],!0},get(F,W){return nw(F,W,()=>rI(W,G,J,F))},getOwnPropertyDescriptor(F,W){return Reflect.getOwnPropertyDescriptor(F._scopes[0],W)},getPrototypeOf(){return Reflect.getPrototypeOf(J[0])},has(F,W){return Tw(F).includes(W)},ownKeys(F){return Tw(F)},set(F,W,M){let R=F._storage||(F._storage=N());return F[W]=R[W]=M,delete F._keys,!0}})}function f7(J,G,q,X){let N={_cacheable:!1,_proxy:J,_context:G,_subProxy:q,_stack:new Set,_descriptors:wU(J,X),setContext:(K)=>f7(J,K,q,X),override:(K)=>f7(J.override(K),G,q,X)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete J[H],!0},get(K,H,F){return nw(K,H,()=>xI(K,H,F))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(J,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(J,H)},getPrototypeOf(){return Reflect.getPrototypeOf(J)},has(K,H){return Reflect.has(J,H)},ownKeys(){return Reflect.ownKeys(J)},set(K,H,F){return J[H]=F,delete K[H],!0}})}function wU(J,G={scriptable:!0,indexable:!0}){let{_scriptable:q=G.scriptable,_indexable:X=G.indexable,_allKeys:N=G.allKeys}=J;return{allKeys:N,scriptable:q,indexable:X,isScriptable:P2(q)?q:()=>q,isIndexable:P2(X)?X:()=>X}}var uI=(J,G)=>J?J+C3(G):G,RU=(J,G)=>Z1(G)&&J!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function nw(J,G,q){if(Object.prototype.hasOwnProperty.call(J,G)||G==="constructor")return J[G];let X=q();return J[G]=X,X}function xI(J,G,q){let{_proxy:X,_context:N,_subProxy:K,_descriptors:H}=J,F=X[G];if(P2(F)&&H.isScriptable(G))F=mI(G,F,J,q);if(E1(F)&&F.length)F=dI(G,F,J,H.isIndexable);if(RU(G,F))F=f7(F,N,K&&K[G],H);return F}function mI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=q;if(F.has(J))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+J);F.add(J);let W=G(K,H||X);if(F.delete(J),RU(J,W))W=_U(N._scopes,N,J,W);return W}function dI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=q;if(typeof K.index<"u"&&X(J))return G[K.index%G.length];else if(Z1(G[0])){let W=G,M=N._scopes.filter((R)=>R!==W);G=[];for(let R of W){let _=_U(M,N,J,R);G.push(f7(_,K,H&&H[J],F))}}return G}function ow(J,G,q){return P2(J)?J(G,q):J}var pI=(J,G)=>J===!0?G:typeof J==="string"?y7(G,J):void 0;function cI(J,G,q,X,N){for(let K of G){let H=pI(q,K);if(H){J.add(H);let F=ow(H._fallback,q,N);if(typeof F<"u"&&F!==q&&F!==X)return F}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function _U(J,G,q,X){let N=G._rootScopes,K=ow(G._fallback,q,X),H=[...J,...N],F=new Set;F.add(X);let W=Pw(F,H,q,K||q,X);if(W===null)return!1;if(typeof K<"u"&&K!==q){if(W=Pw(F,H,K,W,X),W===null)return!1}return D3(Array.from(F),[""],N,K,()=>lI(G,q,X))}function Pw(J,G,q,X,N){while(q)q=cI(J,G,q,X,N);return q}function lI(J,G,q){let X=J._getTarget();if(!(G in X))X[G]={};let N=X[G];if(E1(N)&&Z1(q))return q;return N||{}}function rI(J,G,q,X){let N;for(let K of G)if(N=aw(uI(K,J),q),typeof N<"u")return RU(J,N)?_U(q,X,J,N):N}function aw(J,G){for(let q of G){if(!q)continue;let X=q[J];if(typeof X<"u")return X}}function Tw(J){let G=J._keys;if(!G)G=J._keys=sI(J._scopes);return G}function sI(J){let G=new Set;for(let q of J)for(let X of Object.keys(q).filter((N)=>!N.startsWith("_")))G.add(X);return Array.from(G)}var nI=Number.EPSILON||0.00000000000001,N$=(J,G)=>G<J.length&&!J[G].skip&&J[G],iw=(J)=>J==="x"?"y":"x";function oI(J,G,q,X){let N=J.skip?G:J,K=G,H=q.skip?G:q,F=P3(K,N),W=P3(H,K),M=F/(F+W),R=W/(F+W);M=isNaN(M)?0:M,R=isNaN(R)?0:R;let _=X*M,P=X*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function aI(J,G,q){let X=J.length,N,K,H,F,W,M=N$(J,0);for(let R=0;R<X-1;++R){if(W=M,M=N$(J,R+1),!W||!M)continue;if(B$(G[R],0,nI)){q[R]=q[R+1]=0;continue}if(N=q[R]/G[R],K=q[R+1]/G[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),q[R]=N*H*G[R],q[R+1]=K*H*G[R]}}function iI(J,G,q="x"){let X=iw(q),N=J.length,K,H,F,W=N$(J,0);for(let M=0;M<N;++M){if(H=F,F=W,W=N$(J,M+1),!F)continue;let R=F[q],_=F[X];if(H)K=(R-H[q])/3,F[`cp1${q}`]=R-K,F[`cp1${X}`]=_-K*G[M];if(W)K=(W[q]-R)/3,F[`cp2${q}`]=R+K,F[`cp2${X}`]=_+K*G[M]}}function tI(J,G="x"){let q=iw(G),X=J.length,N=Array(X).fill(0),K=Array(X),H,F,W,M=N$(J,0);for(H=0;H<X;++H){if(F=W,W=M,M=N$(J,H+1),!W)continue;if(M){let R=M[G]-W[G];N[H]=R!==0?(M[q]-W[q])/R:0}K[H]=!F?N[H]:!M?N[H-1]:U4(N[H-1])!==U4(N[H])?0:(N[H-1]+N[H])/2}aI(J,N,K),iI(J,K,G)}function w3(J,G,q){return Math.max(Math.min(J,q),G)}function eI(J,G){let q,X,N,K,H,F=x4(J[0],G);for(q=0,X=J.length;q<X;++q){if(H=K,K=F,F=q<X-1&&x4(J[q+1],G),!K)continue;if(N=J[q],H)N.cp1x=w3(N.cp1x,G.left,G.right),N.cp1y=w3(N.cp1y,G.top,G.bottom);if(F)N.cp2x=w3(N.cp2x,G.left,G.right),N.cp2y=w3(N.cp2y,G.top,G.bottom)}}function tw(J,G,q,X,N){let K,H,F,W;if(G.spanGaps)J=J.filter((M)=>!M.skip);if(G.cubicInterpolationMode==="monotone")tI(J,N);else{let M=X?J[J.length-1]:J[0];for(K=0,H=J.length;K<H;++K)F=J[K],W=oI(M,F,J[Math.min(K+1,H-(X?0:1))%H],G.tension),F.cp1x=W.previous.x,F.cp1y=W.previous.y,F.cp2x=W.next.x,F.cp2y=W.next.y,M=F}if(G.capBezierPoints)eI(J,q)}function j3(){return typeof window<"u"&&typeof document<"u"}function v3(J){let G=J.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function T3(J,G,q){let X;if(typeof J==="string"){if(X=parseInt(J,10),J.indexOf("%")!==-1)X=X/100*G.parentNode[q]}else X=J;return X}var k3=(J)=>J.ownerDocument.defaultView.getComputedStyle(J,null);function $V(J,G){return k3(J).getPropertyValue(G)}var ZV=["top","right","bottom","left"];function b7(J,G,q){let X={};q=q?"-"+q:"";for(let N=0;N<4;N++){let K=ZV[N];X[K]=parseFloat(J[G+"-"+K+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var JV=(J,G,q)=>(J>0||G>0)&&(!q||!q.shadowRoot);function QV(J,G){let q=J.touches,X=q&&q.length?q[0]:J,{offsetX:N,offsetY:K}=X,H=!1,F,W;if(JV(N,K,J.target))F=N,W=K;else{let M=G.getBoundingClientRect();F=X.clientX-M.left,W=X.clientY-M.top,H=!0}return{x:F,y:W,box:H}}function v8(J,G){if("native"in J)return J;let{canvas:q,currentDevicePixelRatio:X}=G,N=k3(q),K=N.boxSizing==="border-box",H=b7(N,"padding"),F=b7(N,"border","width"),{x:W,y:M,box:R}=QV(J,q),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:O,height:E}=G;if(K)O-=H.width+F.width,E-=H.height+F.height;return{x:Math.round((W-_)/O*q.width/X),y:Math.round((M-P)/E*q.height/X)}}function GV(J,G,q){let X,N;if(G===void 0||q===void 0){let K=J&&v3(J);if(!K)G=J.clientWidth,q=J.clientHeight;else{let H=K.getBoundingClientRect(),F=k3(K),W=b7(F,"border","width"),M=b7(F,"padding");G=H.width-M.width-W.width,q=H.height-M.height-W.height,X=T3(F.maxWidth,K,"clientWidth"),N=T3(F.maxHeight,K,"clientHeight")}}return{width:G,height:q,maxWidth:X||L3,maxHeight:N||L3}}var A8=(J)=>Math.round(J*10)/10;function ew(J,G,q,X){let N=k3(J),K=b7(N,"margin"),H=T3(N.maxWidth,J,"clientWidth")||L3,F=T3(N.maxHeight,J,"clientHeight")||L3,W=GV(J,G,q),{width:M,height:R}=W;if(N.boxSizing==="content-box"){let P=b7(N,"border","width"),O=b7(N,"padding");M-=O.width+P.width,R-=O.height+P.height}if(M=Math.max(0,M-K.width),R=Math.max(0,X?M/X:R-K.height),M=A8(Math.min(M,H,W.maxWidth)),R=A8(Math.min(R,F,W.maxHeight)),M&&!R)R=A8(M/2);if((G!==void 0||q!==void 0)&&X&&W.height&&R>W.height)R=W.height,M=A8(Math.floor(R*X));return{width:M,height:R}}function LU(J,G,q){let X=G||1,N=A8(J.height*X),K=A8(J.width*X);J.height=A8(J.height),J.width=A8(J.width);let H=J.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${J.height}px`,H.style.width=`${J.width}px`;if(J.currentDevicePixelRatio!==X||H.height!==N||H.width!==K)return J.currentDevicePixelRatio=X,H.height=N,H.width=K,J.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var $R=function(){let J=!1;try{let G={get passive(){return J=!0,!1}};if(j3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return J}();function PU(J,G){let q=$V(J,G),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}function I8(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:J.y+q*(G.y-J.y)}}function ZR(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:X==="middle"?q<0.5?J.y:G.y:X==="after"?q<1?J.y:G.y:q>0?G.y:J.y}}function JR(J,G,q,X){let N={x:J.cp2x,y:J.cp2y},K={x:G.cp1x,y:G.cp1y},H=I8(J,N,q),F=I8(N,K,q),W=I8(K,G,q),M=I8(H,F,q),R=I8(F,W,q);return I8(M,R,q)}var qV=function(J,G){return{x(q){return J+J+G-q},setWidth(q){G=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,X){return q-X},leftForLtr(q,X){return q-X}}},YV=function(){return{x(J){return J},setWidth(J){},textAlign(J){return J},xPlus(J,G){return J+G},leftForLtr(J,G){return J}}};function g7(J,G,q){return J?qV(G,q):YV()}function TU(J,G){let q,X;if(G==="ltr"||G==="rtl")q=J.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",G,"important"),J.prevTextDirection=X}function CU(J,G){if(G!==void 0)delete J.prevTextDirection,J.canvas.style.setProperty("direction",G[0],G[1])}function QR(J){if(J==="angle")return{between:YU,compare:CI,normalize:i5};return{between:O2,compare:(G,q)=>G-q,normalize:(G)=>G}}function Cw({start:J,end:G,count:q,loop:X,style:N}){return{start:J%q,end:G%q,loop:X&&(G-J+1)%q===0,style:N}}function XV(J,G,q){let{property:X,start:N,end:K}=q,{between:H,normalize:F}=QR(X),W=G.length,{start:M,end:R,loop:_}=J,P,O;if(_){M+=W,R+=W;for(P=0,O=W;P<O;++P){if(!H(F(G[M%W][X]),N,K))break;M--,R--}M%=W,R%=W}if(R<M)R+=W;return{start:M,end:R,loop:_,style:J.style}}function OU(J,G,q){if(!q)return[J];let{property:X,start:N,end:K}=q,H=G.length,{compare:F,between:W,normalize:M}=QR(X),{start:R,end:_,loop:P,style:O}=XV(J,G,q),E=[],V=!1,I=null,j,h,p,n=()=>W(N,p,j)&&F(N,p)!==0,a=()=>F(K,j)===0||W(K,p,j),Q0=()=>V||n(),t=()=>!V||a();for(let i=R,X0=R;i<=_;++i){if(h=G[i%H],h.skip)continue;if(j=M(h[X]),j===p)continue;if(V=W(j,N,K),I===null&&Q0())I=F(j,N)===0?i:X0;if(I!==null&&t())E.push(Cw({start:I,end:i,loop:P,count:H,style:O})),I=null;X0=i,p=j}if(I!==null)E.push(Cw({start:I,end:_,loop:P,count:H,style:O}));return E}function IU(J,G){let q=[],X=J.segments;for(let N=0;N<X.length;N++){let K=OU(X[N],J.points,G);if(K.length)q.push(...K)}return q}function NV(J,G,q,X){let N=0,K=G-1;if(q&&!X)while(N<G&&!J[N].skip)N++;while(N<G&&J[N].skip)N++;if(N%=G,q)K+=N;while(K>N&&J[K%G].skip)K--;return K%=G,{start:N,end:K}}function UV(J,G,q,X){let N=J.length,K=[],H=G,F=J[G],W;for(W=G+1;W<=q;++W){let M=J[W%N];if(M.skip||M.stop){if(!F.skip)X=!1,K.push({start:G%N,end:(W-1)%N,loop:X}),G=H=M.stop?W:null}else if(H=W,F.skip)G=W;F=M}if(H!==null)K.push({start:G%N,end:H%N,loop:X});return K}function GR(J,G){let q=J.points,X=J.options.spanGaps,N=q.length;if(!N)return[];let K=!!J._loop,{start:H,end:F}=NV(q,N,K,X);if(X===!0)return Ow(J,[{start:H,end:F,loop:K}],q,G);let W=F<H?F+N:F,M=!!J._fullLoop&&H===0&&F===N-1;return Ow(J,UV(q,H,W,M),q,G)}function Ow(J,G,q,X){if(!X||!X.setContext||!q)return G;return KV(J,G,q,X)}function KV(J,G,q,X){let N=J._chart.getContext(),K=Iw(J.options),{_datasetIndex:H,options:{spanGaps:F}}=J,W=q.length,M=[],R=K,_=G[0].start,P=_;function O(E,V,I,j){let h=F?-1:1;if(E===V)return;E+=W;while(q[E%W].skip)E-=h;while(q[V%W].skip)V+=h;if(E%W!==V%W)M.push({start:E%W,end:V%W,loop:I,style:j}),R=j,_=V%W}for(let E of G){_=F?_:E.start;let V=q[_%W],I;for(P=_+1;P<=E.end;P++){let j=q[P%W];if(I=Iw(X.setContext(I2(N,{type:"segment",p0:V,p1:j,p0DataIndex:(P-1)%W,p1DataIndex:P%W,datasetIndex:H}))),BV(I,R))O(_,P-1,E.loop,R);V=j,R=I}if(_<P-1)O(_,P-1,E.loop,R)}return M}function Iw(J){return{backgroundColor:J.backgroundColor,borderCapStyle:J.borderCapStyle,borderDash:J.borderDash,borderDashOffset:J.borderDashOffset,borderJoinStyle:J.borderJoinStyle,borderWidth:J.borderWidth,borderColor:J.borderColor}}function BV(J,G){if(!G)return!1;let q=[],X=function(N,K){if(!BU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(J,X)!==JSON.stringify(G,X)}function R3(J,G,q){return J.options.clip?J[q]:G[q]}function HV(J,G){let{xScale:q,yScale:X}=J;if(q&&X)return{left:R3(q,G,"left"),right:R3(q,G,"right"),top:R3(X,G,"top"),bottom:R3(X,G,"bottom")};return G}function VU(J,G){let q=G._clip;if(q.disabled)return!1;let X=HV(G,J.chartArea);return{left:q.left===!1?0:X.left-(q.left===!0?0:q.left),right:q.right===!1?J.width:X.right+(q.right===!0?0:q.right),top:q.top===!1?0:X.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?J.height:X.bottom+(q.bottom===!0?0:q.bottom)}}/*!
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)}}/*!
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 Z_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(J,G,q,X){let N=G.listeners[X],K=G.duration;N.forEach((H)=>H({chart:J,initial:G.initial,numSteps:K,currentStep:Math.min(q-G.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=UU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(J=Date.now()){let G=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let N=q.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>q.duration)q.duration=F._total;F.tick(J),H=!0}else N[K]=N[N.length-1],N.pop();if(H)X.draw(),this._notify(X,q,J,"progress");if(!N.length)q.running=!1,this._notify(X,q,J,"complete"),q.initial=!1;G+=N.length}),this._lastDate=J,G===0)this._running=!1}_getAnims(J){let G=this._charts,q=G.get(J);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(J,q);return q}listen(J,G,q){this._getAnims(J).listeners[G].push(q)}add(J,G){if(!G||!G.length)return;this._getAnims(J).items.push(...G)}has(J){return this._getAnims(J).items.length>0}start(J){let G=this._charts.get(J);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(J){if(!this._running)return!1;let G=this._charts.get(J);if(!G||!G.running||!G.items.length)return!1;return!0}stop(J){let G=this._charts.get(J);if(!G||!G.items.length)return;let q=G.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();G.items=[],this._notify(J,G,Date.now(),"complete")}remove(J){return this._charts.delete(J)}}var V2=new Z_,qR="transparent",FV={boolean(J,G,q){return q>0.5?G:J},color(J,G,q){let X=HU(J||qR),N=X.valid&&HU(G||qR);return N&&N.valid?N.mix(X,q).hexString():G},number(J,G,q){return J+(G-J)*q}};class J_{constructor(J,G,q,X){let N=G[q];X=UJ([J.to,X,N,J.from]);let K=UJ([J.from,N,X]);this._active=!0,this._fn=J.fn||FV[J.type||typeof K],this._easing=Y$[J.easing]||Y$.linear,this._start=Math.floor(Date.now()+(J.delay||0)),this._duration=this._total=Math.floor(J.duration),this._loop=!!J.loop,this._target=G,this._prop=q,this._from=K,this._to=X,this._promises=void 0}active(){return this._active}update(J,G,q){if(this._active){this._notify(!1);let X=this._target[this._prop],N=q-this._start,K=this._duration-N;this._start=q,this._duration=Math.floor(Math.max(K,J.duration)),this._total+=N,this._loop=!!J.loop,this._to=UJ([J.to,G,X,J.from]),this._from=UJ([J.from,X,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(J){let G=J-this._start,q=this._duration,X=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||G<q),!this._active){this._target[X]=H,this._notify(!0);return}if(G<0){this._target[X]=N;return}F=G/q%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[X]=this._fn(N,H,F)}wait(){let J=this._promises||(this._promises=[]);return new Promise((G,q)=>{J.push({res:G,rej:q})})}_notify(J){let G=J?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][G]()}}class rU{constructor(J,G){this._chart=J,this._properties=new Map,this.configure(G)}configure(J){if(!Z1(J))return;let G=Object.keys(x1.animation),q=this._properties;Object.getOwnPropertyNames(J).forEach((X)=>{let N=J[X];if(!Z1(N))return;let K={};for(let H of G)K[H]=N[H];(E1(N.properties)&&N.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,K)})})}_animateOptions(J,G){let q=G.options,X=zV(J,q);if(!X)return[];let N=this._createAnimations(X,q);if(q.$shared)WV(J.options.$animations,q).then(()=>{J.options=q},()=>{});return N}_createAnimations(J,G){let q=this._properties,X=[],N=J.$animations||(J.$animations={}),K=Object.keys(G),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let W=K[F];if(W.charAt(0)==="$")continue;if(W==="options"){X.push(...this._animateOptions(J,G));continue}let M=G[W],R=N[W],_=q.get(W);if(R)if(_&&R.active()){R.update(_,M,H);continue}else R.cancel();if(!_||!_.duration){J[W]=M;continue}N[W]=R=new J_(_,J,W,M),X.push(R)}return X}update(J,G){if(this._properties.size===0){Object.assign(J,G);return}let q=this._createAnimations(J,G);if(q.length)return V2.add(this._chart,q),!0}}function WV(J,G){let q=[],X=Object.keys(G);for(let N=0;N<X.length;N++){let K=J[X[N]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function zV(J,G){if(!G)return;let q=J.options;if(!q){J.options=G;return}if(q.$shared)J.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function YR(J,G){let q=J&&J.options||{},X=q.reverse,N=q.min===void 0?G:0,K=q.max===void 0?G:0;return{start:X?K:N,end:X?N:K}}function MV(J,G,q){if(q===!1)return!1;let X=YR(J,q),N=YR(G,q);return{top:N.end,right:X.end,bottom:N.start,left:X.start}}function wV(J){let G,q,X,N;if(Z1(J))G=J.top,q=J.right,X=J.bottom,N=J.left;else G=q=X=N=J;return{top:G,right:q,bottom:X,left:N,disabled:J===!1}}function Q_(J,G){let q=[],X=J._getSortedDatasetMetas(G),N,K;for(N=0,K=X.length;N<K;++N)q.push(X[N].index);return q}function XR(J,G,q,X={}){let N=J.keys,K=X.mode==="single",H,F,W,M;if(G===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(W=+N[H],W===q){if(R=!0,X.all)continue;break}if(M=J.values[W],u1(M)&&(K||G===0||U4(G)===U4(M)))G+=M}if(!R&&!X.all)return 0;return G}function RV(J,G){let{iScale:q,vScale:X}=G,N=q.axis==="x"?"x":"y",K=X.axis==="x"?"x":"y",H=Object.keys(J),F=Array(H.length),W,M,R;for(W=0,M=H.length;W<M;++W)R=H[W],F[W]={[N]:R,[K]:J[R]};return F}function AU(J,G){let q=J&&J.options.stacked;return q||q===void 0&&G.stack!==void 0}function _V(J,G,q){return`${J.id}.${G.id}.${q.stack||q.type}`}function LV(J){let{min:G,max:q,minDefined:X,maxDefined:N}=J.getUserBounds();return{min:X?G:Number.NEGATIVE_INFINITY,max:N?q:Number.POSITIVE_INFINITY}}function PV(J,G,q){let X=J[G]||(J[G]={});return X[q]||(X[q]={})}function NR(J,G,q,X){for(let N of G.getMatchingVisibleMetas(X).reverse()){let K=J[N.index];if(q&&K>0||!q&&K<0)return N.index}return null}function UR(J,G){let{chart:q,_cachedMeta:X}=J,N=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:F}=X,W=K.axis,M=H.axis,R=_V(K,H,X),_=G.length,P;for(let O=0;O<_;++O){let E=G[O],{[W]:V,[M]:I}=E,j=E._stacks||(E._stacks={});P=j[M]=PV(N,R,V),P[F]=I,P._top=NR(P,H,!0,X.type),P._bottom=NR(P,H,!1,X.type);let h=P._visualValues||(P._visualValues={});h[F]=I}}function EU(J,G){let q=J.scales;return Object.keys(q).filter((X)=>q[X].axis===G).shift()}function TV(J,G){return I2(J,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function CV(J,G,q){return I2(J,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:q,index:G,mode:"default",type:"data"})}function KJ(J,G){let q=J.controller.index,X=J.vScale&&J.vScale.axis;if(!X)return;G=G||J._parsed;for(let N of G){let K=N._stacks;if(!K||K[X]===void 0||K[X][q]===void 0)return;if(delete K[X][q],K[X]._visualValues!==void 0&&K[X]._visualValues[q]!==void 0)delete K[X]._visualValues[q]}}var SU=(J)=>J==="reset"||J==="none",KR=(J,G)=>G?J:Object.assign({},J),OV=(J,G,q)=>J&&!G.hidden&&G._stacked&&{keys:Q_(q,!0),values:null};class d3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(J,G){this.chart=J,this._ctx=J.ctx,this.index=G,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 J=this._cachedMeta;if(this.configure(),this.linkScales(),J._stacked=AU(J.vScale,J),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(J){if(this.index!==J)KJ(this._cachedMeta);this.index=J}linkScales(){let J=this.chart,G=this._cachedMeta,q=this.getDataset(),X=(R,_,P,O)=>R==="x"?_:R==="r"?O:P,N=G.xAxisID=n0(q.xAxisID,EU(J,"x")),K=G.yAxisID=n0(q.yAxisID,EU(J,"y")),H=G.rAxisID=n0(q.rAxisID,EU(J,"r")),F=G.indexAxis,W=G.iAxisID=X(F,N,K,H),M=G.vAxisID=X(F,K,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(K),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(W),G.vScale=this.getScaleForId(M)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(J){return this.chart.scales[J]}_getOtherScale(J){let G=this._cachedMeta;return J===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let J=this._cachedMeta;if(this._data)XU(this._data,this);if(J._stacked)KJ(J)}_dataCheck(){let J=this.getDataset(),G=J.data||(J.data=[]),q=this._data;if(Z1(G)){let X=this._cachedMeta;this._data=RV(G,X)}else if(q!==G){if(q){XU(q,this);let X=this._cachedMeta;KJ(X),X._parsed=[]}if(G&&Object.isExtensible(G))gw(G,this);this._syncList=[],this._data=G}}addElements(){let J=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)J.dataset=new this.datasetElementType}buildOrUpdateElements(J){let G=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let N=G._stacked;if(G._stacked=AU(G.vScale,G),G.stack!==q.stack)X=!0,KJ(G),G.stack=q.stack;if(this._resyncElements(J),X||N!==G._stacked)UR(this,G._parsed),G._stacked=AU(G.vScale,G)}configure(){let J=this.chart.config,G=J.datasetScopeKeys(this._type),q=J.getOptionScopes(this.getDataset(),G,!0);this.options=J.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(J,G){let{_cachedMeta:q,_data:X}=this,{iScale:N,_stacked:K}=q,H=N.axis,F=J===0&&G===X.length?!0:q._sorted,W=J>0&&q._parsed[J-1],M,R,_;if(this._parsing===!1)q._parsed=X,q._sorted=!0,_=X;else{if(E1(X[J]))_=this.parseArrayData(q,X,J,G);else if(Z1(X[J]))_=this.parseObjectData(q,X,J,G);else _=this.parsePrimitiveData(q,X,J,G);let P=()=>R[H]===null||W&&R[H]<W[H];for(M=0;M<G;++M)if(q._parsed[M+J]=R=_[M],F){if(P())F=!1;W=R}q._sorted=F}if(K)UR(this,_)}parsePrimitiveData(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.axis,F=K.axis,W=N.getLabels(),M=N===K,R=Array(X),_,P,O;for(_=0,P=X;_<P;++_)O=_+q,R[_]={[H]:M||N.parse(W[O],O),[F]:K.parse(G[O],O)};return R}parseArrayData(J,G,q,X){let{xScale:N,yScale:K}=J,H=Array(X),F,W,M,R;for(F=0,W=X;F<W;++F)M=F+q,R=G[M],H[F]={x:N.parse(R[0],M),y:K.parse(R[1],M)};return H}parseObjectData(J,G,q,X){let{xScale:N,yScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=Array(X),M,R,_,P;for(M=0,R=X;M<R;++M)_=M+q,P=G[_],W[M]={x:N.parse(y7(P,H),_),y:K.parse(y7(P,F),_)};return W}getParsed(J){return this._cachedMeta._parsed[J]}getDataElement(J){return this._cachedMeta.data[J]}applyStack(J,G,q){let X=this.chart,N=this._cachedMeta,K=G[J.axis],H={keys:Q_(X,!0),values:G._stacks[J.axis]._visualValues};return XR(H,K,N.index,{mode:q})}updateRangeFromParsed(J,G,q,X){let N=q[G.axis],K=N===null?NaN:N,H=X&&q._stacks[G.axis];if(X&&H)X.values=H,K=XR(X,N,this._cachedMeta.index);J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}getMinMax(J,G){let q=this._cachedMeta,X=q._parsed,N=q._sorted&&J===q.iScale,K=X.length,H=this._getOtherScale(J),F=OV(G,q,this.chart),W={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:M,max:R}=LV(H),_,P;function O(){P=X[_];let E=P[H.axis];return!u1(P[J.axis])||M>E||R<E}for(_=0;_<K;++_){if(O())continue;if(this.updateRangeFromParsed(W,J,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(O())continue;this.updateRangeFromParsed(W,J,P,F);break}return W}getAllParsedValues(J){let G=this._cachedMeta._parsed,q=[],X,N,K;for(X=0,N=G.length;X<N;++X)if(K=G[X][J.axis],u1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(J){let G=this._cachedMeta,q=G.iScale,X=G.vScale,N=this.getParsed(J);return{label:q?""+q.getLabelForValue(N[q.axis]):"",value:X?""+X.getLabelForValue(N[X.axis]):""}}_update(J){let G=this._cachedMeta;this.update(J||"default"),G._clip=wV(n0(this.options.clip,MV(G.xScale,G.yScale,this.getMaxOverflow())))}update(J){}draw(){let J=this._ctx,G=this.chart,q=this._cachedMeta,X=q.data||[],N=G.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||X.length-H,W=this.options.drawActiveElementsOnTop,M;if(q.dataset)q.dataset.draw(J,N,H,F);for(M=H;M<H+F;++M){let R=X[M];if(R.hidden)continue;if(R.active&&W)K.push(R);else R.draw(J,N)}for(M=0;M<K.length;++M)K[M].draw(J,N)}getStyle(J,G){let q=G?"active":"default";return J===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(J||0,q)}getContext(J,G,q){let X=this.getDataset(),N;if(J>=0&&J<this._cachedMeta.data.length){let K=this._cachedMeta.data[J];N=K.$context||(K.$context=CV(this.getContext(),J,K)),N.parsed=this.getParsed(J),N.raw=X.data[J],N.index=N.dataIndex=J}else N=this.$context||(this.$context=TV(this.chart.getContext(),this.index)),N.dataset=X,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=q,N}resolveDatasetElementOptions(J){return this._resolveElementOptions(this.datasetElementType.id,J)}resolveDataElementOptions(J,G){return this._resolveElementOptions(this.dataElementType.id,G,J)}_resolveElementOptions(J,G="default",q){let X=G==="active",N=this._cachedDataOpts,K=J+"-"+G,H=N[K],F=this.enableOptionSharing&&K$(q);if(H)return KR(H,F);let W=this.chart.config,M=W.datasetElementScopeKeys(this._type,J),R=X?[`${J}Hover`,"hover",J,""]:[J,""],_=W.getOptionScopes(this.getDataset(),M),P=Object.keys(x1.elements[J]),O=()=>this.getContext(q,X,G),E=W.resolveNamedOptions(_,P,O,R);if(E.$shared)E.$shared=F,N[K]=Object.freeze(KR(E,F));return E}_resolveAnimations(J,G,q){let X=this.chart,N=this._cachedDataOpts,K=`animation-${G}`,H=N[K];if(H)return H;let F;if(X.options.animation!==!1){let M=this.chart.config,R=M.datasetAnimationScopeKeys(this._type,G),_=M.getOptionScopes(this.getDataset(),R);F=M.createResolver(_,this.getContext(J,q,G))}let W=new rU(X,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(W);return W}getSharedOptions(J){if(!J.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},J))}includeOptions(J,G){return!G||SU(J)||this.chart._animationsDisabled}_getSharedOptions(J,G){let q=this.resolveDataElementOptions(J,G),X=this._sharedOptions,N=this.getSharedOptions(q),K=this.includeOptions(G,N)||N!==X;return this.updateSharedOptions(N,G,q),{sharedOptions:N,includeOptions:K}}updateElement(J,G,q,X){if(SU(X))Object.assign(J,q);else this._resolveAnimations(G,X).update(J,q)}updateSharedOptions(J,G,q){if(J&&!SU(G))this._resolveAnimations(void 0,G).update(J,q)}_setStyle(J,G,q,X){J.active=X;let N=this.getStyle(G,X);this._resolveAnimations(G,q,X).update(J,{options:!X&&this.getSharedOptions(N)||N})}removeHoverStyle(J,G,q){this._setStyle(J,q,"active",!1)}setHoverStyle(J,G,q){this._setStyle(J,q,"active",!0)}_removeDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!1)}_setDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!0)}_resyncElements(J){let G=this._data,q=this._cachedMeta.data;for(let[H,F,W]of this._syncList)this[H](F,W);this._syncList=[];let X=q.length,N=G.length,K=Math.min(N,X);if(K)this.parse(0,K);if(N>X)this._insertElements(X,N-X,J);else if(N<X)this._removeElements(N,X-N)}_insertElements(J,G,q=!0){let X=this._cachedMeta,N=X.data,K=J+G,H,F=(W)=>{W.length+=G;for(H=W.length-1;H>=K;H--)W[H]=W[H-G]};F(N);for(H=J;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(X._parsed);if(this.parse(J,G),q)this.updateElements(N,J,G,"reset")}updateElements(J,G,q,X){}_removeElements(J,G){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(J,G);if(q._stacked)KJ(q,X)}q.data.splice(J,G)}_sync(J){if(this._parsing)this._syncList.push(J);else{let[G,q,X]=J;this[G](q,X)}this.chart._dataChanges.push([this.index,...J])}_onDataPush(){let J=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-J,J])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(J,G){if(G)this._sync(["_removeElements",J,G]);let q=arguments.length-2;if(q)this._sync(["_insertElements",J,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function IV(J,G){if(!J._cache.$bar){let q=J.getMatchingVisibleMetas(G),X=[];for(let N=0,K=q.length;N<K;N++)X=X.concat(q[N].controller.getAllParsedValues(J));J._cache.$bar=NU(X.sort((N,K)=>N-K))}return J._cache.$bar}function VV(J){let G=J.iScale,q=IV(G,J.type),X=G._length,N,K,H,F,W=()=>{if(H===32767||H===-32768)return;if(K$(F))X=Math.min(X,Math.abs(H-F)||X);F=H};for(N=0,K=q.length;N<K;++N)H=G.getPixelForValue(q[N]),W();F=void 0;for(N=0,K=G.ticks.length;N<K;++N)H=G.getPixelForTick(N),W();return X}function AV(J,G,q,X){let N=q.barThickness,K,H;if(G1(N))K=G.min*q.categoryPercentage,H=q.barPercentage;else K=N*X,H=1;return{chunk:K/X,ratio:H,start:G.pixels[J]-K/2}}function EV(J,G,q,X){let N=G.pixels,K=N[J],H=J>0?N[J-1]:null,F=J<N.length-1?N[J+1]:null,W=q.categoryPercentage;if(H===null)H=K-(F===null?G.end-G.start:F-K);if(F===null)F=K+K-H;let M=K-(K-Math.min(H,F))/2*W;return{chunk:Math.abs(F-H)/2*W/X,ratio:q.barPercentage,start:M}}function SV(J,G,q,X){let N=q.parse(J[0],X),K=q.parse(J[1],X),H=Math.min(N,K),F=Math.max(N,K),W=H,M=F;if(Math.abs(H)>Math.abs(F))W=F,M=H;G[q.axis]=M,G._custom={barStart:W,barEnd:M,start:N,end:K,min:H,max:F}}function G_(J,G,q,X){if(E1(J))SV(J,G,q,X);else G[q.axis]=q.parse(J,X);return G}function BR(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.getLabels(),F=N===K,W=[],M,R,_,P;for(M=q,R=q+X;M<R;++M)P=G[M],_={},_[N.axis]=F||N.parse(H[M],M),W.push(G_(P,_,K,M));return W}function DU(J){return J&&J.barStart!==void 0&&J.barEnd!==void 0}function DV(J,G,q){if(J!==0)return U4(J);return(G.isHorizontal()?1:-1)*(G.min>=q?1:-1)}function jV(J){let G,q,X,N,K;if(J.horizontal)G=J.base>J.x,q="left",X="right";else G=J.base<J.y,q="bottom",X="top";if(G)N="end",K="start";else N="start",K="end";return{start:q,end:X,reverse:G,top:N,bottom:K}}function vV(J,G,q,X){let N=G.borderSkipped,K={};if(!N){J.borderSkipped=K;return}if(N===!0){J.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:W,top:M,bottom:R}=jV(J);if(N==="middle"&&q)if(J.enableBorderRadius=!0,(q._top||0)===X)N=M;else if((q._bottom||0)===X)N=R;else K[HR(R,H,F,W)]=!0,N=M;K[HR(N,H,F,W)]=!0,J.borderSkipped=K}function HR(J,G,q,X){if(X)J=kV(J,G,q),J=FR(J,q,G);else J=FR(J,G,q);return J}function kV(J,G,q){return J===G?q:J===q?G:J}function FR(J,G,q){return J==="start"?G:J==="end"?q:J}function bV(J,{inflateAmount:G},q){J.inflateAmount=G==="auto"?q===1?0.33:0:G}class sU extends d3{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(J,G,q,X){return BR(J,G,q,X)}parseArrayData(J,G,q,X){return BR(J,G,q,X)}parseObjectData(J,G,q,X){let{iScale:N,vScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=N.axis==="x"?H:F,M=K.axis==="x"?H:F,R=[],_,P,O,E;for(_=q,P=q+X;_<P;++_)E=G[_],O={},O[N.axis]=N.parse(y7(E,W),_),R.push(G_(y7(E,M),O,K,_));return R}updateRangeFromParsed(J,G,q,X){super.updateRangeFromParsed(J,G,q,X);let N=q._custom;if(N&&G===this._cachedMeta.vScale)J.min=Math.min(J.min,N.min),J.max=Math.max(J.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(J){let G=this._cachedMeta,{iScale:q,vScale:X}=G,N=this.getParsed(J),K=N._custom,H=DU(K)?"["+K.start+", "+K.end+"]":""+X.getLabelForValue(N[X.axis]);return{label:""+q.getLabelForValue(N[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let J=this._cachedMeta;J.stack=this.getDataset().stack}update(J){let G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,J)}updateElements(J,G,q,X){let N=X==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),W=H.isHorizontal(),M=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(G,X);for(let P=G;P<G+q;P++){let O=this.getParsed(P),E=N||G1(O[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,M),I=(O._stacks||{})[H.axis],j={horizontal:W,base:E.base,enableBorderRadius:!I||DU(O._custom)||K===I._top||K===I._bottom,x:W?E.head:V.center,y:W?V.center:E.head,height:W?V.size:Math.abs(E.size),width:W?Math.abs(E.size):V.size};if(_)j.options=R||this.resolveDataElementOptions(P,J[P].active?"active":X);let h=j.options||J[P].options;vV(j,h,I,K),bV(j,h,M.ratio),this.updateElement(J[P],P,j,X)}}_getStacks(J,G){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((M)=>M.controller.options.grouped),N=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(G),F=H&&H[q.axis],W=(M)=>{let R=M._parsed.find((P)=>P[q.axis]===F),_=R&&R[M.vScale.axis];if(G1(_)||isNaN(_))return!0};for(let M of X){if(G!==void 0&&W(M))continue;if(N===!1||K.indexOf(M.stack)===-1||N===void 0&&M.stack===void 0)K.push(M.stack);if(M.index===J)break}if(!K.length)K.push(void 0);return K}_getStackCount(J){return this._getStacks(void 0,J).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let J=this.chart.scales,G=this.chart.options.indexAxis;return Object.keys(J).filter((q)=>J[q].axis===G).shift()}_getAxis(){let J={},G=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)J[n0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,G)]=!0;return Object.keys(J)}_getStackIndex(J,G,q){let X=this._getStacks(J,q),N=G!==void 0?X.indexOf(G):-1;return N===-1?X.length-1:N}_getRuler(){let J=this.options,G=this._cachedMeta,q=G.iScale,X=[],N,K;for(N=0,K=G.data.length;N<K;++N)X.push(q.getPixelForValue(this.getParsed(N)[q.axis],N));let H=J.barThickness;return{min:H||VV(G),pixels:X,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:J.grouped,ratio:H?1:J.categoryPercentage*J.barPercentage}}_calculateBarValuePixels(J){let{_cachedMeta:{vScale:G,_stacked:q,index:X},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(J),W=F._custom,M=DU(W),R=F[G.axis],_=0,P=q?this.applyStack(G,F,q):R,O,E;if(P!==R)_=P-R,P=R;if(M){if(R=W.barStart,P=W.barEnd-W.barStart,R!==0&&U4(R)!==U4(W.barEnd))_=0;_+=R}let V=!G1(N)&&!M?N:_,I=G.getPixelForValue(V);if(this.chart.getDataVisibility(J))O=G.getPixelForValue(_+P);else O=I;if(E=O-I,Math.abs(E)<K){if(E=DV(E,G,H)*K,R===H)I-=E/2;let j=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(j,h),n=Math.max(j,h);if(I=Math.max(Math.min(I,n),p),O=I+E,q&&!M)F._stacks[G.axis]._visualValues[X]=G.getValueForPixel(O)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let j=U4(E)*G.getLineWidthForValue(H)/2;I+=j,E-=j}return{size:E,base:I,head:O,center:O+E/2}}_calculateBarIndexPixels(J,G){let q=G.scale,X=this.options,N=X.skipNull,K=n0(X.maxBarThickness,1/0),H,F,W=this._getAxisCount();if(G.grouped){let M=N?this._getStackCount(J):G.stackCount,R=X.barThickness==="flex"?EV(J,G,X,M*W):AV(J,G,X,M*W),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(n0(_,this.getFirstScaleIdForIndexAxis())),O=this._getStackIndex(this.index,this._cachedMeta.stack,N?J:void 0)+P;H=R.start+R.chunk*O+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=q.getPixelForValue(this.getParsed(J)[q.axis],J),F=Math.min(K,G.min*G.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let J=this._cachedMeta,G=J.vScale,q=J.data,X=q.length,N=0;for(;N<X;++N)if(this.getParsed(N)[G.axis]!==null&&!q[N].hidden)q[N].draw(this._ctx)}}class nU extends d3{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(J){let G=this._cachedMeta,{dataset:q,data:X=[],_dataset:N}=G,K=this.chart._animationsDisabled,{start:H,count:F}=xw(G,X,K);if(this._drawStart=H,this._drawCount=F,mw(G))H=0,F=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!N._decimated,q.points=X;let W=this.resolveDatasetElementOptions(J);if(!this.options.showLine)W.borderWidth=0;W.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:W},J),this.updateElements(X,H,F,J)}updateElements(J,G,q,X){let N=X==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:W}=this._cachedMeta,{sharedOptions:M,includeOptions:R}=this._getSharedOptions(G,X),_=K.axis,P=H.axis,{spanGaps:O,segment:E}=this.options,V=H$(O)?O:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||X==="none",j=G+q,h=J.length,p=G>0&&this.getParsed(G-1);for(let n=0;n<h;++n){let a=J[n],Q0=I?a:{};if(n<G||n>=j){Q0.skip=!0;continue}let t=this.getParsed(n),i=G1(t[P]),X0=Q0[_]=K.getPixelForValue(t[_],n),d=Q0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],n);if(Q0.skip=isNaN(X0)||isNaN(d)||i,Q0.stop=n>0&&Math.abs(t[_]-p[_])>V,E)Q0.parsed=t,Q0.raw=W.data[n];if(R)Q0.options=M||this.resolveDataElementOptions(n,a.active?"active":X);if(!I)this.updateElement(a,n,Q0,X);p=t}}getMaxOverflow(){let J=this._cachedMeta,G=J.dataset,q=G.options&&G.options.borderWidth||0,X=J.data||[];if(!X.length)return q;let N=X[0].size(this.resolveDataElementOptions(0)),K=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,N,K)/2}draw(){let J=this._cachedMeta;J.dataset.updateControlPoints(this.chart.chartArea,J.iScale.axis),super.draw()}}function h7(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class oU{static override(J){Object.assign(oU.prototype,J)}options;constructor(J){this.options=J||{}}init(){}formats(){return h7()}parse(){return h7()}format(){return h7()}add(){return h7()}diff(){return h7()}startOf(){return h7()}endOf(){return h7()}}var fV={_date:oU};function yV(J,G,q,X){let{controller:N,data:K,_sorted:H}=J,F=N._cachedMeta.iScale,W=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null;if(F&&G===F.axis&&G!=="r"&&H&&K.length){let M=F._reversePixels?bw:V8;if(!X){let R=M(K,G,q);if(W){let{vScale:_}=N._cachedMeta,{_parsed:P}=J,O=P.slice(0,R.lo+1).reverse().findIndex((V)=>!G1(V[_.axis]));R.lo-=Math.max(0,O);let E=P.slice(R.hi).findIndex((V)=>!G1(V[_.axis]));R.hi+=Math.max(0,E)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(G);if(_){let P=M(K,G,q-_),O=M(K,G,q+_);return{lo:P.lo,hi:O.hi}}}}return{lo:0,hi:K.length-1}}function PJ(J,G,q,X,N){let K=J.getSortedVisibleDatasetMetas(),H=q[G];for(let F=0,W=K.length;F<W;++F){let{index:M,data:R}=K[F],{lo:_,hi:P}=yV(K[F],G,H,N);for(let O=_;O<=P;++O){let E=R[O];if(!E.skip)X(E,M,O)}}}function gV(J){let G=J.indexOf("x")!==-1,q=J.indexOf("y")!==-1;return function(X,N){let K=G?Math.abs(X.x-N.x):0,H=q?Math.abs(X.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function jU(J,G,q,X,N){let K=[];if(!N&&!J.isPointInArea(G))return K;return PJ(J,q,G,function(F,W,M){if(!N&&!x4(F,J.chartArea,0))return;if(F.inRange(G.x,G.y,X))K.push({element:F,datasetIndex:W,index:M})},!0),K}function hV(J,G,q,X){let N=[];function K(H,F,W){let{startAngle:M,endAngle:R}=H.getProps(["startAngle","endAngle"],X),{angle:_}=vw(H,{x:G.x,y:G.y});if(YU(_,M,R))N.push({element:H,datasetIndex:F,index:W})}return PJ(J,q,G,K),N}function uV(J,G,q,X,N,K){let H=[],F=gV(q),W=Number.POSITIVE_INFINITY;function M(R,_,P){let O=R.inRange(G.x,G.y,N);if(X&&!O)return;let E=R.getCenterPoint(N);if(!(!!K||J.isPointInArea(E))&&!O)return;let I=F(G,E);if(I<W)H=[{element:R,datasetIndex:_,index:P}],W=I;else if(I===W)H.push({element:R,datasetIndex:_,index:P})}return PJ(J,q,G,M),H}function vU(J,G,q,X,N,K){if(!K&&!J.isPointInArea(G))return[];return q==="r"&&!X?hV(J,G,q,N):uV(J,G,q,X,N,K)}function WR(J,G,q,X,N){let K=[],H=q==="x"?"inXRange":"inYRange",F=!1;if(PJ(J,q,G,(W,M,R)=>{if(W[H]&&W[H](G[q],N))K.push({element:W,datasetIndex:M,index:R}),F=F||W.inRange(G.x,G.y,N)}),X&&!F)return[];return K}var xV={evaluateInteractionItems:PJ,modes:{index(J,G,q,X){let N=v8(G,J),K=q.axis||"x",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):vU(J,N,K,!1,X,H),W=[];if(!F.length)return[];return J.getSortedVisibleDatasetMetas().forEach((M)=>{let R=F[0].index,_=M.data[R];if(_&&!_.skip)W.push({element:_,datasetIndex:M.index,index:R})}),W},dataset(J,G,q,X){let N=v8(G,J),K=q.axis||"xy",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):vU(J,N,K,!1,X,H);if(F.length>0){let W=F[0].datasetIndex,M=J.getDatasetMeta(W).data;F=[];for(let R=0;R<M.length;++R)F.push({element:M[R],datasetIndex:W,index:R})}return F},point(J,G,q,X){let N=v8(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return jU(J,N,K,X,H)},nearest(J,G,q,X){let N=v8(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return vU(J,N,K,q.intersect,X,H)},x(J,G,q,X){let N=v8(G,J);return WR(J,N,"x",q.intersect,X)},y(J,G,q,X){let N=v8(G,J);return WR(J,N,"y",q.intersect,X)}}},q_=["left","top","right","bottom"];function BJ(J,G){return J.filter((q)=>q.pos===G)}function zR(J,G){return J.filter((q)=>q_.indexOf(q.pos)===-1&&q.box.axis===G)}function HJ(J,G){return J.sort((q,X)=>{let N=G?X:q,K=G?q:X;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function mV(J){let G=[],q,X,N,K,H,F;for(q=0,X=(J||[]).length;q<X;++q)N=J[q],{position:K,options:{stack:H,stackWeight:F=1}}=N,G.push({index:q,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return G}function dV(J){let G={};for(let q of J){let{stack:X,pos:N,stackWeight:K}=q;if(!X||!q_.includes(N))continue;let H=G[X]||(G[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return G}function pV(J,G){let q=dV(J),{vBoxMaxWidth:X,hBoxMaxHeight:N}=G,K,H,F;for(K=0,H=J.length;K<H;++K){F=J[K];let{fullSize:W}=F.box,M=q[F.stack],R=M&&F.stackWeight/M.weight;if(F.horizontal)F.width=R?R*X:W&&G.availableWidth,F.height=N;else F.width=X,F.height=R?R*N:W&&G.availableHeight}return q}function cV(J){let G=mV(J),q=HJ(G.filter((M)=>M.box.fullSize),!0),X=HJ(BJ(G,"left"),!0),N=HJ(BJ(G,"right")),K=HJ(BJ(G,"top"),!0),H=HJ(BJ(G,"bottom")),F=zR(G,"x"),W=zR(G,"y");return{fullSize:q,leftAndTop:X.concat(K),rightAndBottom:N.concat(W).concat(H).concat(F),chartArea:BJ(G,"chartArea"),vertical:X.concat(N).concat(W),horizontal:K.concat(H).concat(F)}}function MR(J,G,q,X){return Math.max(J[q],G[q])+Math.max(J[X],G[X])}function Y_(J,G){J.top=Math.max(J.top,G.top),J.left=Math.max(J.left,G.left),J.bottom=Math.max(J.bottom,G.bottom),J.right=Math.max(J.right,G.right)}function lV(J,G,q,X){let{pos:N,box:K}=q,H=J.maxPadding;if(!Z1(N)){if(q.size)J[N]-=q.size;let _=X[q.stack]||{size:0,count:1};_.size=Math.max(_.size,q.horizontal?K.height:K.width),q.size=_.size/_.count,J[N]+=q.size}if(K.getPadding)Y_(H,K.getPadding());let F=Math.max(0,G.outerWidth-MR(H,J,"left","right")),W=Math.max(0,G.outerHeight-MR(H,J,"top","bottom")),M=F!==J.w,R=W!==J.h;return J.w=F,J.h=W,q.horizontal?{same:M,other:R}:{same:R,other:M}}function rV(J){let G=J.maxPadding;function q(X){let N=Math.max(G[X]-J[X],0);return J[X]+=N,N}J.y+=q("top"),J.x+=q("left"),q("right"),q("bottom")}function sV(J,G){let q=G.maxPadding;function X(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(G[H],q[H])}),K}return J?X(["left","right"]):X(["top","bottom"])}function zJ(J,G,q,X){let N=[],K,H,F,W,M,R;for(K=0,H=J.length,M=0;K<H;++K){F=J[K],W=F.box,W.update(F.width||G.w,F.height||G.h,sV(F.horizontal,G));let{same:_,other:P}=lV(G,q,F,X);if(M|=_&&N.length,R=R||P,!W.fullSize)N.push(F)}return M&&zJ(N,G,q,X)||R}function b3(J,G,q,X,N){J.top=q,J.left=G,J.right=G+X,J.bottom=q+N,J.width=X,J.height=N}function wR(J,G,q,X){let N=q.padding,{x:K,y:H}=G;for(let F of J){let W=F.box,M=X[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/M.weight||1;if(F.horizontal){let _=G.w*R,P=M.size||W.height;if(K$(M.start))H=M.start;if(W.fullSize)b3(W,N.left,H,q.outerWidth-N.right-N.left,P);else b3(W,G.left+M.placed,H,_,P);M.start=H,M.placed+=_,H=W.bottom}else{let _=G.h*R,P=M.size||W.width;if(K$(M.start))K=M.start;if(W.fullSize)b3(W,K,N.top,P,q.outerHeight-N.bottom-N.top);else b3(W,K,G.top+M.placed,P,_);M.start=K,M.placed+=_,K=W.right}}G.x=K,G.y=H}var c6={addBox(J,G){if(!J.boxes)J.boxes=[];G.fullSize=G.fullSize||!1,G.position=G.position||"top",G.weight=G.weight||0,G._layers=G._layers||function(){return[{z:0,draw(q){G.draw(q)}}]},J.boxes.push(G)},removeBox(J,G){let q=J.boxes?J.boxes.indexOf(G):-1;if(q!==-1)J.boxes.splice(q,1)},configure(J,G,q){G.fullSize=q.fullSize,G.position=q.position,G.weight=q.weight},update(J,G,q,X){if(!J)return;let N=T5(J.options.layout.padding),K=Math.max(G-N.width,0),H=Math.max(q-N.height,0),F=cV(J.boxes),W=F.vertical,M=F.horizontal;F1(J.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=W.reduce((V,I)=>I.box.options&&I.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:G,outerHeight:q,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);Y_(P,T5(X));let O=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),E=pV(W.concat(M),_);if(zJ(F.fullSize,O,_,E),zJ(W,O,_,E),zJ(M,O,_,E))zJ(W,O,_,E);rV(O),wR(F.leftAndTop,O,_,E),O.x+=O.w,O.y+=O.h,wR(F.rightAndBottom,O,_,E),J.chartArea={left:O.left,top:O.top,right:O.left+O.w,bottom:O.top+O.h,height:O.h,width:O.w},F1(F.chartArea,(V)=>{let I=V.box;Object.assign(I,J.chartArea),I.update(O.w,O.h,{left:0,top:0,right:0,bottom:0})})}};class aU{acquireContext(J,G){}releaseContext(J){return!1}addEventListener(J,G,q){}removeEventListener(J,G,q){}getDevicePixelRatio(){return 1}getMaximumSize(J,G,q,X){return G=Math.max(0,G||J.width),q=q||J.height,{width:G,height:Math.max(0,X?Math.floor(G/X):q)}}isAttached(J){return!0}updateConfig(J){}}class X_ extends aU{acquireContext(J){return J&&J.getContext&&J.getContext("2d")||null}updateConfig(J){J.options.animation=!1}}var u3="$chartjs",nV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},RR=(J)=>J===null||J==="";function oV(J,G){let q=J.style,X=J.getAttribute("height"),N=J.getAttribute("width");if(J[u3]={initial:{height:X,width:N,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",RR(N)){let K=PU(J,"width");if(K!==void 0)J.width=K}if(RR(X))if(J.style.height==="")J.height=J.width/(G||2);else{let K=PU(J,"height");if(K!==void 0)J.height=K}return J}var N_=$R?{passive:!0}:!1;function aV(J,G,q){if(J)J.addEventListener(G,q,N_)}function iV(J,G,q){if(J&&J.canvas)J.canvas.removeEventListener(G,q,N_)}function tV(J,G){let q=nV[J.type]||J.type,{x:X,y:N}=v8(J,G);return{type:q,chart:G,native:J,x:X!==void 0?X:null,y:N!==void 0?N:null}}function m3(J,G){for(let q of J)if(q===G||q.contains(G))return!0}function eV(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.addedNodes,X),H=H&&!m3(F.removedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}function $A(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.removedNodes,X),H=H&&!m3(F.addedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}var RJ=new Map,_R=0;function U_(){let J=window.devicePixelRatio;if(J===_R)return;_R=J,RJ.forEach((G,q)=>{if(q.currentDevicePixelRatio!==J)G()})}function ZA(J,G){if(!RJ.size)window.addEventListener("resize",U_);RJ.set(J,G)}function JA(J){if(RJ.delete(J),!RJ.size)window.removeEventListener("resize",U_)}function QA(J,G,q){let X=J.canvas,N=X&&v3(X);if(!N)return;let K=KU((F,W)=>{let M=N.clientWidth;if(q(F,W),M<N.clientWidth)q()},window),H=new ResizeObserver((F)=>{let W=F[0],M=W.contentRect.width,R=W.contentRect.height;if(M===0&&R===0)return;K(M,R)});return H.observe(N),ZA(J,K),H}function kU(J,G,q){if(q)q.disconnect();if(G==="resize")JA(J)}function GA(J,G,q){let X=J.canvas,N=KU((K)=>{if(J.ctx!==null)q(tV(K,J))},J);return aV(X,G,N),N}class K_ extends aU{acquireContext(J,G){let q=J&&J.getContext&&J.getContext("2d");if(q&&q.canvas===J)return oV(J,G),q;return null}releaseContext(J){let G=J.canvas;if(!G[u3])return!1;let q=G[u3].initial;["height","width"].forEach((N)=>{let K=q[N];if(G1(K))G.removeAttribute(N);else G.setAttribute(N,K)});let X=q.style||{};return Object.keys(X).forEach((N)=>{G.style[N]=X[N]}),G.width=G.width,delete G[u3],!0}addEventListener(J,G,q){this.removeEventListener(J,G);let X=J.$proxies||(J.$proxies={}),K={attach:eV,detach:$A,resize:QA}[G]||GA;X[G]=K(J,G,q)}removeEventListener(J,G){let q=J.$proxies||(J.$proxies={}),X=q[G];if(!X)return;({attach:kU,detach:kU,resize:kU}[G]||iV)(J,G,X),q[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(J,G,q,X){return ew(J,G,q,X)}isAttached(J){let G=J&&v3(J);return!!(G&&G.isConnected)}}function qA(J){if(!j3()||typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas)return X_;return K_}class E2{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}hasValue(){return H$(this.x)&&H$(this.y)}getProps(J,G){let q=this.$animations;if(!G||!q)return this;let X={};return J.forEach((N)=>{X[N]=q[N]&&q[N].active()?q[N]._to:this[N]}),X}}function YA(J,G){let q=J.options.ticks,X=XA(J),N=Math.min(q.maxTicksLimit||X,X),K=q.major.enabled?UA(G):[],H=K.length,F=K[0],W=K[H-1],M=[];if(H>N)return KA(G,M,K,H/N),M;let R=NA(K,G,N);if(H>0){let _,P,O=H>1?Math.round((W-F)/(H-1)):null;f3(G,M,R,G1(O)?0:F-O,F);for(_=0,P=H-1;_<P;_++)f3(G,M,R,K[_],K[_+1]);return f3(G,M,R,W,G1(O)?G.length:W+O),M}return f3(G,M,R),M}function XA(J){let G=J.options.offset,q=J._tickSize(),X=J._length/q+(G?0:1),N=J._maxLength/q;return Math.floor(Math.min(X,N))}function NA(J,G,q){let X=BA(J),N=G.length/q;if(!X)return Math.max(N,1);let K=Dw(X);for(let H=0,F=K.length-1;H<F;H++){let W=K[H];if(W>N)return W}return Math.max(N,1)}function UA(J){let G=[],q,X;for(q=0,X=J.length;q<X;q++)if(J[q].major)G.push(q);return G}function KA(J,G,q,X){let N=0,K=q[0],H;X=Math.ceil(X);for(H=0;H<J.length;H++)if(H===K)G.push(J[H]),N++,K=q[N*X]}function f3(J,G,q,X,N){let K=n0(X,0),H=Math.min(n0(N,J.length),J.length),F=0,W,M,R;if(q=Math.ceil(q),N)W=N-X,q=W/Math.floor(W/q);R=K;while(R<0)F++,R=Math.round(K+F*q);for(M=Math.max(K,0);M<H;M++)if(M===R)G.push(J[M]),F++,R=Math.round(K+F*q)}function BA(J){let G=J.length,q,X;if(G<2)return!1;for(X=J[0],q=1;q<G;++q)if(J[q]-J[q-1]!==X)return!1;return X}var HA=(J)=>J==="left"?"right":J==="right"?"left":J,LR=(J,G,q)=>G==="top"||G==="left"?J[G]+q:J[G]-q,PR=(J,G)=>Math.min(G||J,J);function TR(J,G){let q=[],X=J.length/G,N=J.length,K=0;for(;K<N;K+=X)q.push(J[Math.floor(K)]);return q}function FA(J,G,q){let X=J.ticks.length,N=Math.min(G,X-1),K=J._startPixel,H=J._endPixel,F=0.000001,W=J.getPixelForTick(N),M;if(q){if(X===1)M=Math.max(W-K,H-W);else if(G===0)M=(J.getPixelForTick(1)-W)/2;else M=(W-J.getPixelForTick(N-1))/2;if(W+=N<G?M:-M,W<K-0.000001||W>H+0.000001)return}return W}function WA(J,G){F1(J,(q)=>{let X=q.gc,N=X.length/2,K;if(N>G){for(K=0;K<N;++K)delete q.data[X[K]];X.splice(0,N)}})}function FJ(J){return J.drawTicks?J.tickLength:0}function CR(J,G){if(!J.display)return 0;let q=Q5(J.font,G),X=T5(J.padding);return(E1(J.text)?J.text.length:1)*q.lineHeight+X.height}function zA(J,G){return I2(J,{scale:G,type:"scale"})}function MA(J,G,q){return I2(J,{tick:q,index:G,type:"tick"})}function wA(J,G,q){let X=V3(J);if(q&&G!=="right"||!q&&G==="right")X=HA(X);return X}function RA(J,G,q,X){let{top:N,left:K,bottom:H,right:F,chart:W}=J,{chartArea:M,scales:R}=W,_=0,P,O,E,V=H-N,I=F-K;if(J.isHorizontal()){if(O=P5(X,K,F),Z1(q)){let j=Object.keys(q)[0],h=q[j];E=R[j].getPixelForValue(h)+V-G}else if(q==="center")E=(M.bottom+M.top)/2+V-G;else E=LR(J,q,G);P=F-K}else{if(Z1(q)){let j=Object.keys(q)[0],h=q[j];O=R[j].getPixelForValue(h)-I+G}else if(q==="center")O=(M.left+M.right)/2-I+G;else O=LR(J,q,G);E=P5(X,H,N),_=q==="left"?-t5:t5}return{titleX:O,titleY:E,maxWidth:P,rotation:_}}class x7 extends E2{constructor(J){super();this.id=J.id,this.type=J.type,this.options=void 0,this.ctx=J.ctx,this.chart=J.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(J){this.options=J.setContext(this.getContext()),this.axis=J.axis,this._userMin=this.parse(J.min),this._userMax=this.parse(J.max),this._suggestedMin=this.parse(J.suggestedMin),this._suggestedMax=this.parse(J.suggestedMax)}parse(J,G){return J}getUserBounds(){let{_userMin:J,_userMax:G,_suggestedMin:q,_suggestedMax:X}=this;return J=Z6(J,Number.POSITIVE_INFINITY),G=Z6(G,Number.NEGATIVE_INFINITY),q=Z6(q,Number.POSITIVE_INFINITY),X=Z6(X,Number.NEGATIVE_INFINITY),{min:Z6(J,q),max:Z6(G,X),minDefined:u1(J),maxDefined:u1(G)}}getMinMax(J){let{min:G,max:q,minDefined:X,maxDefined:N}=this.getUserBounds(),K;if(X&&N)return{min:G,max:q};let H=this.getMatchingVisibleMetas();for(let F=0,W=H.length;F<W;++F){if(K=H[F].controller.getMinMax(this,J),!X)G=Math.min(G,K.min);if(!N)q=Math.max(q,K.max)}return G=N&&G>q?q:G,q=X&&G>q?G:q,{min:Z6(G,Z6(q,G)),max:Z6(q,Z6(G,q))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let J=this.chart.data;return this.options.labels||(this.isHorizontal()?J.xLabels:J.yLabels)||J.labels||[]}getLabelItems(J=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(J))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){O1(this.options.beforeUpdate,[this])}update(J,G,q){let{beginAtZero:X,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=J,this.maxHeight=G,this._margins=q=Object.assign({left:0,right:0,top:0,bottom:0},q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+q.left+q.right:this.height+q.top+q.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=sw(this,N,X),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?TR(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=YA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let J=this.options.reverse,G,q;if(this.isHorizontal())G=this.left,q=this.right;else G=this.top,q=this.bottom,J=!J;this._startPixel=G,this._endPixel=q,this._reversePixels=J,this._length=q-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){O1(this.options.afterUpdate,[this])}beforeSetDimensions(){O1(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(){O1(this.options.afterSetDimensions,[this])}_callHooks(J){this.chart.notifyPlugins(J,this.getContext()),O1(this.options[J],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){O1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(J){let G=this.options.ticks,q,X,N;for(q=0,X=J.length;q<X;q++)N=J[q],N.label=O1(G.callback,[N.value,q,J],this)}afterTickToLabelConversion(){O1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){O1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let J=this.options,G=J.ticks,q=PR(this.ticks.length,J.ticks.maxTicksLimit),X=G.minRotation||0,N=G.maxRotation,K=X,H,F,W;if(!this._isVisible()||!G.display||X>=N||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let M=this._getLabelSizes(),R=M.widest.width,_=M.highest.height,P=$6(this.chart.width-R,0,this.maxWidth);if(H=J.offset?this.maxWidth/q:P/(q-1),R+6>H)H=P/(q-(J.offset?0.5:1)),F=this.maxHeight-FJ(J.grid)-G.padding-CR(J.title,this.chart.options.font),W=Math.sqrt(R*R+_*_),K=O3(Math.min(Math.asin($6((M.highest.height+6)/H,-1,1)),Math.asin($6(F/W,-1,1))-Math.asin($6(_/W,-1,1)))),K=Math.max(X,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){O1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){O1(this.options.beforeFit,[this])}fit(){let J={width:0,height:0},{chart:G,options:{ticks:q,title:X,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=CR(X,G.options.font);if(H)J.width=this.maxWidth,J.height=FJ(N)+F;else J.height=this.maxHeight,J.width=FJ(N)+F;if(q.display&&this.ticks.length){let{first:W,last:M,widest:R,highest:_}=this._getLabelSizes(),P=q.padding*2,O=C2(this.labelRotation),E=Math.cos(O),V=Math.sin(O);if(H){let I=q.mirror?0:V*R.width+E*_.height;J.height=Math.min(this.maxHeight,J.height+I+P)}else{let I=q.mirror?0:E*R.width+V*_.height;J.width=Math.min(this.maxWidth,J.width+I+P)}this._calculatePadding(W,M,V,E)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=J.height;else this.width=J.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(J,G,q,X){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,W=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let M=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(W)_=X*J.width,P=q*G.height;else _=q*J.height,P=X*G.width;else if(N==="start")P=G.width;else if(N==="end")_=J.width;else if(N!=="inner")_=J.width/2,P=G.width/2;this.paddingLeft=Math.max((_-M+K)*this.width/(this.width-M),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let M=G.height/2,R=J.height/2;if(N==="start")M=0,R=J.height;else if(N==="end")M=G.height,R=0;this.paddingTop=M+K,this.paddingBottom=R+K}}_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(){O1(this.options.afterFit,[this])}isHorizontal(){let{axis:J,position:G}=this.options;return G==="top"||G==="bottom"||J==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(J){this.beforeTickToLabelConversion(),this.generateTickLabels(J);let G,q;for(G=0,q=J.length;G<q;G++)if(G1(J[G].label))J.splice(G,1),q--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let J=this._labelSizes;if(!J){let G=this.options.ticks.sampleSize,q=this.ticks;if(G<q.length)q=TR(q,G);this._labelSizes=J=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return J}_computeLabelSizes(J,G,q){let{ctx:X,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(G/PR(G,q)),W=0,M=0,R,_,P,O,E,V,I,j,h,p,n;for(R=0;R<G;R+=F){if(O=J[R].label,E=this._resolveTickFontOptions(R),X.font=V=E.string,I=N[V]=N[V]||{data:{},gc:[]},j=E.lineHeight,h=p=0,!G1(O)&&!E1(O))h=GJ(X,I.data,I.gc,h,O),p=j;else if(E1(O)){for(_=0,P=O.length;_<P;++_)if(n=O[_],!G1(n)&&!E1(n))h=GJ(X,I.data,I.gc,h,n),p+=j}K.push(h),H.push(p),W=Math.max(h,W),M=Math.max(p,M)}WA(N,G);let a=K.indexOf(W),Q0=H.indexOf(M),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(G-1),widest:t(a),highest:t(Q0),widths:K,heights:H}}getLabelForValue(J){return J}getPixelForValue(J,G){return NaN}getValueForPixel(J){}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getPixelForDecimal(J){if(this._reversePixels)J=1-J;let G=this._startPixel+J*this._length;return kw(this._alignToPixels?S8(this.chart,G,0):G)}getDecimalForPixel(J){let G=(J-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:J,max:G}=this;return J<0&&G<0?G:J>0&&G>0?J:0}getContext(J){let G=this.ticks||[];if(J>=0&&J<G.length){let q=G[J];return q.$context||(q.$context=MA(this.getContext(),J,q))}return this.$context||(this.$context=zA(this.chart.getContext(),this))}_tickSize(){let J=this.options.ticks,G=C2(this.labelRotation),q=Math.abs(Math.cos(G)),X=Math.abs(Math.sin(G)),N=this._getLabelSizes(),K=J.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*q>H*X?H/q:F/X:F*X<H*q?F/q:H/X}_isVisible(){let J=this.options.display;if(J!=="auto")return!!J;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(J){let G=this.axis,q=this.chart,X=this.options,{grid:N,position:K,border:H}=X,F=N.offset,W=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=FJ(N),P=[],O=H.setContext(this.getContext()),E=O.display?O.width:0,V=E/2,I=function(l){return S8(q,l,E)},j,h,p,n,a,Q0,t,i,X0,d,H0,P0;if(K==="top")j=I(this.bottom),Q0=this.bottom-_,i=j-V,d=I(J.top)+V,P0=J.bottom;else if(K==="bottom")j=I(this.top),d=J.top,P0=I(J.bottom)-V,Q0=j+V,i=this.top+_;else if(K==="left")j=I(this.right),a=this.right-_,t=j-V,X0=I(J.left)+V,H0=J.right;else if(K==="right")j=I(this.left),X0=J.left,H0=I(J.right)-V,a=j+V,t=this.left+_;else if(G==="x"){if(K==="center")j=I((J.top+J.bottom)/2+0.5);else if(Z1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}d=J.top,P0=J.bottom,Q0=j+V,i=Q0+_}else if(G==="y"){if(K==="center")j=I((J.left+J.right)/2);else if(Z1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}a=j-V,t=a-_,X0=J.left,H0=J.right}let O0=n0(X.ticks.maxTicksLimit,R),k0=Math.max(1,Math.ceil(R/O0));for(h=0;h<R;h+=k0){let l=this.getContext(h),Y0=N.setContext(l),F0=H.setContext(l),a0=Y0.lineWidth,p0=Y0.color,v=F0.dash||[],o=F0.dashOffset,W0=Y0.tickWidth,z0=Y0.tickColor,c0=Y0.tickBorderDash||[],m1=Y0.tickBorderDashOffset;if(p=FA(this,h,F),p===void 0)continue;if(n=S8(q,p,a0),W)a=t=X0=H0=n;else Q0=i=d=P0=n;P.push({tx1:a,ty1:Q0,tx2:t,ty2:i,x1:X0,y1:d,x2:H0,y2:P0,width:a0,color:p0,borderDash:v,borderDashOffset:o,tickWidth:W0,tickColor:z0,tickBorderDash:c0,tickBorderDashOffset:m1})}return this._ticksLength=R,this._borderValue=j,P}_computeLabelItems(J){let G=this.axis,q=this.options,{position:X,ticks:N}=q,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:W,padding:M,mirror:R}=N,_=FJ(q.grid),P=_+M,O=R?-M:P,E=-C2(this.labelRotation),V=[],I,j,h,p,n,a,Q0,t,i,X0,d,H0,P0="middle";if(X==="top")a=this.bottom-O,Q0=this._getXAxisLabelAlignment();else if(X==="bottom")a=this.top+O,Q0=this._getXAxisLabelAlignment();else if(X==="left"){let k0=this._getYAxisLabelAlignment(_);Q0=k0.textAlign,n=k0.x}else if(X==="right"){let k0=this._getYAxisLabelAlignment(_);Q0=k0.textAlign,n=k0.x}else if(G==="x"){if(X==="center")a=(J.top+J.bottom)/2+P;else if(Z1(X)){let k0=Object.keys(X)[0],l=X[k0];a=this.chart.scales[k0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(X==="center")n=(J.left+J.right)/2-P;else if(Z1(X)){let k0=Object.keys(X)[0],l=X[k0];n=this.chart.scales[k0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(_).textAlign}if(G==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let O0=this._getLabelSizes();for(I=0,j=H.length;I<j;++I){h=H[I],p=h.label;let k0=N.setContext(this.getContext(I));t=this.getPixelForTick(I)+N.labelOffset,i=this._resolveTickFontOptions(I),X0=i.lineHeight,d=E1(p)?p.length:1;let l=d/2,Y0=k0.color,F0=k0.textStrokeColor,a0=k0.textStrokeWidth,p0=Q0;if(K){if(n=t,Q0==="inner")if(I===j-1)p0=!this.options.reverse?"right":"left";else if(I===0)p0=!this.options.reverse?"left":"right";else p0="center";if(X==="top")if(W==="near"||E!==0)H0=-d*X0+X0/2;else if(W==="center")H0=-O0.highest.height/2-l*X0+X0;else H0=-O0.highest.height+X0/2;else if(W==="near"||E!==0)H0=X0/2;else if(W==="center")H0=O0.highest.height/2-l*X0;else H0=O0.highest.height-d*X0;if(R)H0*=-1;if(E!==0&&!k0.showLabelBackdrop)n+=X0/2*Math.sin(E)}else a=t,H0=(1-d)*X0/2;let v;if(k0.showLabelBackdrop){let o=T5(k0.backdropPadding),W0=O0.heights[I],z0=O0.widths[I],c0=H0-o.top,m1=0-o.left;switch(P0){case"middle":c0-=W0/2;break;case"bottom":c0-=W0;break}switch(Q0){case"center":m1-=z0/2;break;case"right":m1-=z0;break;case"inner":if(I===j-1)m1-=z0;else if(I>0)m1-=z0/2;break}v={left:m1,top:c0,width:z0+o.width,height:W0+o.height,color:k0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:Y0,strokeColor:F0,strokeWidth:a0,textAlign:p0,textBaseline:P0,translation:[n,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:J,ticks:G}=this.options;if(-C2(this.labelRotation))return J==="top"?"left":"right";let X="center";if(G.align==="start")X="left";else if(G.align==="end")X="right";else if(G.align==="inner")X="inner";return X}_getYAxisLabelAlignment(J){let{position:G,ticks:{crossAlign:q,mirror:X,padding:N}}=this.options,K=this._getLabelSizes(),H=J+N,F=K.widest.width,W,M;if(G==="left")if(X)if(M=this.right+N,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M+=F;else if(M=this.right-H,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M=this.left;else if(G==="right")if(X)if(M=this.left+N,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M-=F;else if(M=this.left+H,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M=this.right;else W="right";return{textAlign:W,x:M}}_computeLabelArea(){if(this.options.ticks.mirror)return;let J=this.chart,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:J.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:J.width}}drawBackground(){let{ctx:J,options:{backgroundColor:G},left:q,top:X,width:N,height:K}=this;if(G)J.save(),J.fillStyle=G,J.fillRect(q,X,N,K),J.restore()}getLineWidthForValue(J){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let X=this.ticks.findIndex((N)=>N.value===J);if(X>=0)return G.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(J){let G=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(J)),N,K,H=(F,W,M)=>{if(!M.width||!M.color)return;q.save(),q.lineWidth=M.width,q.strokeStyle=M.color,q.setLineDash(M.borderDash||[]),q.lineDashOffset=M.borderDashOffset,q.beginPath(),q.moveTo(F.x,F.y),q.lineTo(W.x,W.y),q.stroke(),q.restore()};if(G.display)for(N=0,K=X.length;N<K;++N){let F=X[N];if(G.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(G.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:J,ctx:G,options:{border:q,grid:X}}=this,N=q.setContext(this.getContext()),K=q.display?N.width:0;if(!K)return;let H=X.setContext(this.getContext(0)).lineWidth,F=this._borderValue,W,M,R,_;if(this.isHorizontal())W=S8(J,this.left,K)-K/2,M=S8(J,this.right,H)+H/2,R=_=F;else R=S8(J,this.top,K)-K/2,_=S8(J,this.bottom,H)+H/2,W=M=F;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(W,R),G.lineTo(M,_),G.stroke(),G.restore()}drawLabels(J){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)XJ(q,X);let N=this.getLabelItems(J);for(let K of N){let{options:H,font:F,label:W,textOffset:M}=K;D8(q,W,0,M,F,H)}if(X)NJ(q)}drawTitle(){let{ctx:J,options:{position:G,title:q,reverse:X}}=this;if(!q.display)return;let N=Q5(q.font),K=T5(q.padding),H=q.align,F=N.lineHeight/2;if(G==="bottom"||G==="center"||Z1(G)){if(F+=K.bottom,E1(q.text))F+=N.lineHeight*(q.text.length-1)}else F+=K.top;let{titleX:W,titleY:M,maxWidth:R,rotation:_}=RA(this,F,G,H);D8(J,q.text,0,0,N,{color:q.color,maxWidth:R,rotation:_,textAlign:wA(H,G,X),textBaseline:"middle",translation:[W,M]})}draw(J){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(J),this.drawBorder(),this.drawTitle(),this.drawLabels(J)}_layers(){let J=this.options,G=J.ticks&&J.ticks.z||0,q=n0(J.grid&&J.grid.z,-1),X=n0(J.border&&J.border.z,0);if(!this._isVisible()||this.draw!==x7.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:q,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(J){let G=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],N,K;for(N=0,K=G.length;N<K;++N){let H=G[N];if(H[q]===this.id&&(!J||H.type===J))X.push(H)}return X}_resolveTickFontOptions(J){let G=this.options.ticks.setContext(this.getContext(J));return Q5(G.font)}_maxDigits(){let J=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/J}}class MJ{constructor(J,G,q){this.type=J,this.scope=G,this.override=q,this.items=Object.create(null)}isForType(J){return Object.prototype.isPrototypeOf.call(this.type.prototype,J.prototype)}register(J){let G=Object.getPrototypeOf(J),q;if(PA(G))q=this.register(G);let X=this.items,N=J.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+J);if(N in X)return K;if(X[N]=J,_A(J,K,q),this.override)x1.override(J.id,J.overrides);return K}get(J){return this.items[J]}unregister(J){let G=this.items,q=J.id,X=this.scope;if(q in G)delete G[q];if(X&&q in x1[X]){if(delete x1[X][q],this.override)delete E8[q]}}}function _A(J,G,q){let X=X$(Object.create(null),[q?x1.get(q):{},x1.get(G),J.defaults]);if(x1.set(G,X),J.defaultRoutes)LA(G,J.defaultRoutes);if(J.descriptors)x1.describe(G,J.descriptors)}function LA(J,G){Object.keys(G).forEach((q)=>{let X=q.split("."),N=X.pop(),K=[J].concat(X).join("."),H=G[q].split("."),F=H.pop(),W=H.join(".");x1.route(K,N,W,F)})}function PA(J){return"id"in J&&"defaults"in J}class B_{constructor(){this.controllers=new MJ(d3,"datasets",!0),this.elements=new MJ(E2,"elements"),this.plugins=new MJ(Object,"plugins"),this.scales=new MJ(x7,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...J){this._each("register",J)}remove(...J){this._each("unregister",J)}addControllers(...J){this._each("register",J,this.controllers)}addElements(...J){this._each("register",J,this.elements)}addPlugins(...J){this._each("register",J,this.plugins)}addScales(...J){this._each("register",J,this.scales)}getController(J){return this._get(J,this.controllers,"controller")}getElement(J){return this._get(J,this.elements,"element")}getPlugin(J){return this._get(J,this.plugins,"plugin")}getScale(J){return this._get(J,this.scales,"scale")}removeControllers(...J){this._each("unregister",J,this.controllers)}removeElements(...J){this._each("unregister",J,this.elements)}removePlugins(...J){this._each("unregister",J,this.plugins)}removeScales(...J){this._each("unregister",J,this.scales)}_each(J,G,q){[...G].forEach((X)=>{let N=q||this._getRegistryForType(X);if(q||N.isForType(X)||N===this.plugins&&X.id)this._exec(J,N,X);else F1(X,(K)=>{let H=q||this._getRegistryForType(K);this._exec(J,H,K)})})}_exec(J,G,q){let X=C3(J);O1(q["before"+X],[],q),G[J](q),O1(q["after"+X],[],q)}_getRegistryForType(J){for(let G=0;G<this._typedRegistries.length;G++){let q=this._typedRegistries[G];if(q.isForType(J))return q}return this.plugins}_get(J,G,q){let X=G.get(J);if(X===void 0)throw Error('"'+J+'" is not a registered '+q+".");return X}}var p4=new B_;class H_{constructor(){this._init=void 0}notify(J,G,q,X){if(G==="beforeInit")this._init=this._createDescriptors(J,!0),this._notify(this._init,J,"install");if(this._init===void 0)return;let N=X?this._descriptors(J).filter(X):this._descriptors(J),K=this._notify(N,J,G,q);if(G==="afterDestroy")this._notify(N,J,"stop"),this._notify(this._init,J,"uninstall"),this._init=void 0;return K}_notify(J,G,q,X){X=X||{};for(let N of J){let K=N.plugin,H=K[q],F=[G,X,N.options];if(O1(H,F,K)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!G1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(J){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(J);return this._notifyStateChanges(J),G}_createDescriptors(J,G){let q=J&&J.config,X=n0(q.options&&q.options.plugins,{}),N=TA(q);return X===!1&&!G?[]:OA(J,N,X,G)}_notifyStateChanges(J){let G=this._oldCache||[],q=this._cache,X=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(X(G,q),J,"stop"),this._notify(X(q,G),J,"start")}}function TA(J){let G={},q=[],X=Object.keys(p4.plugins.items);for(let K=0;K<X.length;K++)q.push(p4.getPlugin(X[K]));let N=J.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(q.indexOf(H)===-1)q.push(H),G[H.id]=!0}return{plugins:q,localIds:G}}function CA(J,G){if(!G&&J===!1)return null;if(J===!0)return{};return J}function OA(J,{plugins:G,localIds:q},X,N){let K=[],H=J.getContext();for(let F of G){let W=F.id,M=CA(X[W],N);if(M===null)continue;K.push({plugin:F,options:IA(J.config,{plugin:F,local:q[W]},M,H)})}return K}function IA(J,{plugin:G,local:q},X,N){let K=J.pluginScopeKeys(G),H=J.getOptionScopes(X,K);if(q&&G.defaults)H.push(G.defaults);return J.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hU(J,G){let q=x1.datasets[J]||{};return((G.datasets||{})[J]||{}).indexAxis||G.indexAxis||q.indexAxis||"x"}function VA(J,G){let q=J;if(J==="_index_")q=G;else if(J==="_value_")q=G==="x"?"y":"x";return q}function AA(J,G){return J===G?"_index_":"_value_"}function OR(J){if(J==="x"||J==="y"||J==="r")return J}function EA(J){if(J==="top"||J==="bottom")return"x";if(J==="left"||J==="right")return"y"}function uU(J,...G){if(OR(J))return J;for(let q of G){let X=q.axis||EA(q.position)||J.length>1&&OR(J[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${J}' axis. Please provide 'axis' or 'position' option.`)}function IR(J,G,q){if(q[G+"AxisID"]===J)return{axis:G}}function SA(J,G){if(G.data&&G.data.datasets){let q=G.data.datasets.filter((X)=>X.xAxisID===J||X.yAxisID===J);if(q.length)return IR(J,"x",q[0])||IR(J,"y",q[0])}return{}}function DA(J,G){let q=E8[J.type]||{scales:{}},X=G.scales||{},N=hU(J.type,G),K=Object.create(null);return Object.keys(X).forEach((H)=>{let F=X[H];if(!Z1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let W=uU(H,F,SA(H,J),x1.scales[F.type]),M=AA(W,N),R=q.scales||{};K[H]=U$(Object.create(null),[{axis:W},F,R[W],R[M]])}),J.data.datasets.forEach((H)=>{let F=H.type||J.type,W=H.indexAxis||hU(F,G),R=(E8[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=VA(_,W),O=H[P+"AxisID"]||P;K[O]=K[O]||Object.create(null),U$(K[O],[{axis:P},X[O],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];U$(F,[x1.scales[F.type],x1.scale])}),K}function F_(J){let G=J.options||(J.options={});G.plugins=n0(G.plugins,{}),G.scales=DA(J,G)}function W_(J){return J=J||{},J.datasets=J.datasets||[],J.labels=J.labels||[],J}function jA(J){return J=J||{},J.data=W_(J.data),F_(J),J}var VR=new Map,z_=new Set;function y3(J,G){let q=VR.get(J);if(!q)q=G(),VR.set(J,q),z_.add(q);return q}var WJ=(J,G,q)=>{let X=y7(G,q);if(X!==void 0)J.add(X)};class M_{constructor(J){this._config=jA(J),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(J){this._config.type=J}get data(){return this._config.data}set data(J){this._config.data=W_(J)}get options(){return this._config.options}set options(J){this._config.options=J}get plugins(){return this._config.plugins}update(){let J=this._config;this.clearCache(),F_(J)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(J){return y3(J,()=>[[`datasets.${J}`,""]])}datasetAnimationScopeKeys(J,G){return y3(`${J}.transition.${G}`,()=>[[`datasets.${J}.transitions.${G}`,`transitions.${G}`],[`datasets.${J}`,""]])}datasetElementScopeKeys(J,G){return y3(`${J}-${G}`,()=>[[`datasets.${J}.elements.${G}`,`datasets.${J}`,`elements.${G}`,""]])}pluginScopeKeys(J){let G=J.id,q=this.type;return y3(`${q}-plugin-${G}`,()=>[[`plugins.${G}`,...J.additionalOptionScopes||[]]])}_cachedScopes(J,G){let q=this._scopeCache,X=q.get(J);if(!X||G)X=new Map,q.set(J,X);return X}getOptionScopes(J,G,q){let{options:X,type:N}=this,K=this._cachedScopes(J,q),H=K.get(G);if(H)return H;let F=new Set;G.forEach((M)=>{if(J)F.add(J),M.forEach((R)=>WJ(F,J,R));M.forEach((R)=>WJ(F,X,R)),M.forEach((R)=>WJ(F,E8[N]||{},R)),M.forEach((R)=>WJ(F,x1,R)),M.forEach((R)=>WJ(F,E3,R))});let W=Array.from(F);if(W.length===0)W.push(Object.create(null));if(z_.has(G))K.set(G,W);return W}chartOptionScopes(){let{options:J,type:G}=this;return[J,E8[G]||{},x1.datasets[G]||{},{type:G},x1,E3]}resolveNamedOptions(J,G,q,X=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=AR(this._resolverCache,J,X),F=K;if(kA(K,G)){N.$shared=!1,q=P2(q)?q():q;let W=this.createResolver(J,q,H);F=f7(K,q,W)}for(let W of G)N[W]=F[W];return N}createResolver(J,G,q=[""],X){let{resolver:N}=AR(this._resolverCache,J,q);return Z1(G)?f7(N,G,void 0,X):N}}function AR(J,G,q){let X=J.get(G);if(!X)X=new Map,J.set(G,X);let N=q.join(),K=X.get(N);if(!K)K={resolver:D3(G,q),subPrefixes:q.filter((F)=>!F.toLowerCase().includes("hover"))},X.set(N,K);return K}var vA=(J)=>Z1(J)&&Object.getOwnPropertyNames(J).some((G)=>P2(J[G]));function kA(J,G){let{isScriptable:q,isIndexable:X}=wU(J);for(let N of G){let K=q(N),H=X(N),F=(H||K)&&J[N];if(K&&(P2(F)||vA(F))||H&&E1(F))return!0}return!1}var bA="4.5.1",fA=["top","bottom","left","right","chartArea"];function ER(J,G){return J==="top"||J==="bottom"||fA.indexOf(J)===-1&&G==="x"}function SR(J,G){return function(q,X){return q[J]===X[J]?q[G]-X[G]:q[J]-X[J]}}function DR(J){let G=J.chart,q=G.options.animation;G.notifyPlugins("afterRender"),O1(q&&q.onComplete,[J],G)}function yA(J){let G=J.chart,q=G.options.animation;O1(q&&q.onProgress,[J],G)}function w_(J){if(j3()&&typeof J==="string")J=document.getElementById(J);else if(J&&J.length)J=J[0];if(J&&J.canvas)J=J.canvas;return J}var x3={},jR=(J)=>{let G=w_(J);return Object.values(x3).filter((q)=>q.canvas===G).pop()};function gA(J,G,q){let X=Object.keys(J);for(let N of X){let K=+N;if(K>=G){let H=J[N];if(delete J[N],q>0||K>G)J[K+q]=H}}}function hA(J,G,q,X){if(!q||J.type==="mouseout")return null;if(X)return G;return J}class m7{static defaults=x1;static instances=x3;static overrides=E8;static registry=p4;static version=bA;static getChart=jR;static register(...J){p4.add(...J),vR()}static unregister(...J){p4.remove(...J),vR()}constructor(J,G){let q=this.config=new M_(G),X=w_(J),N=jR(X);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||qA(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,K.aspectRatio),F=H&&H.canvas,W=F&&F.height,M=F&&F.width;if(this.id=Vw(),this.ctx=H,this.canvas=F,this.width=M,this.height=W,this._options=K,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 H_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hw((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],x3[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(V2.listen(this,"complete",DR),V2.listen(this,"progress",yA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:J,maintainAspectRatio:G},width:q,height:X,_aspectRatio:N}=this;if(!G1(J))return J;if(G&&N)return N;return X?q/X:null}get data(){return this.config.data}set data(J){this.config.data=J}get options(){return this._options}set options(J){this.config.options=J}get registry(){return p4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else LU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return FU(this.canvas,this.ctx),this}stop(){return V2.stop(this),this}resize(J,G){if(!V2.running(this))this._resize(J,G);else this._resizeBeforeDraw={width:J,height:G}}_resize(J,G){let q=this.options,X=this.canvas,N=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(X,J,G,N),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!LU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),O1(q.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};F1(G,(q,X)=>{q.id=X})}buildOrUpdateScales(){let J=this.options,G=J.scales,q=this.scales,X=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(G)N=N.concat(Object.keys(G).map((K)=>{let H=G[K],F=uU(K,H),W=F==="r",M=F==="x";return{options:H,dposition:W?"chartArea":M?"bottom":"left",dtype:W?"radialLinear":M?"category":"linear"}}));F1(N,(K)=>{let H=K.options,F=H.id,W=uU(F,H),M=n0(H.type,K.dtype);if(H.position===void 0||ER(H.position,W)!==ER(K.dposition))H.position=K.dposition;X[F]=!0;let R=null;if(F in q&&q[F].type===M)R=q[F];else R=new(p4.getScale(M))({id:F,type:M,ctx:this.ctx,chart:this}),q[R.id]=R;R.init(H,J)}),F1(X,(K,H)=>{if(!K)delete q[H]}),F1(q,(K)=>{c6.configure(this,K,K.options),c6.addBox(this,K)})}_updateMetasets(){let J=this._metasets,G=this.data.datasets.length,q=J.length;if(J.sort((X,N)=>X.index-N.index),q>G){for(let X=G;X<q;++X)this._destroyDatasetMeta(X);J.splice(G,q-G)}this._sortedMetasets=J.slice(0).sort(SR("order","index"))}_removeUnreferencedMetasets(){let{_metasets:J,data:{datasets:G}}=this;if(J.length>G.length)delete this._stacks;J.forEach((q,X)=>{if(G.filter((N)=>N===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let J=[],G=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=G.length;q<X;q++){let N=G[q],K=this.getDatasetMeta(q),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=N.indexAxis||hU(H,this.options),K.order=N.order||0,K.index=q,K.label=""+N.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let F=p4.getController(H),{datasetElementType:W,dataElementType:M}=x1.datasets[H];Object.assign(F,{dataElementType:p4.getElement(M),datasetElementType:W&&p4.getElement(W)}),K.controller=new F(this,q),J.push(K.controller)}}return this._updateMetasets(),J}_resetElements(){F1(this.data.datasets,(J,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(J){let G=this.config;G.update();let q=this._options=G.createResolver(G.chartOptionScopes(),this.getContext()),X=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:J,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let W=0,M=this.data.datasets.length;W<M;W++){let{controller:R}=this.getDatasetMeta(W),_=!X&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!X)F1(N,(W)=>{W.reset()});this._updateDatasets(J),this.notifyPlugins("afterUpdate",{mode:J}),this._layers.sort(SR("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){F1(this.scales,(J)=>{c6.removeBox(this,J)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let J=this.options,G=new Set(Object.keys(this._listeners)),q=new Set(J.events);if(!JU(G,q)||!!this._responsiveListeners!==J.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:J}=this,G=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:N}of G){let K=q==="_removeElements"?-N:N;gA(J,X,K)}}_getUniformDataChanges(){let J=this._dataChanges;if(!J||!J.length)return;this._dataChanges=[];let G=this.data.datasets.length,q=(N)=>new Set(J.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),X=q(0);for(let N=1;N<G;N++)if(!JU(X,q(N)))return;return Array.from(X).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(J){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;c6.update(this,this.width,this.height,J);let G=this.chartArea,q=G.width<=0||G.height<=0;this._layers=[],F1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,N)=>{X._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(J){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:J,cancelable:!0})===!1)return;for(let G=0,q=this.data.datasets.length;G<q;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,q=this.data.datasets.length;G<q;++G)this._updateDataset(G,P2(J)?J({datasetIndex:G}):J);this.notifyPlugins("afterDatasetsUpdate",{mode:J})}_updateDataset(J,G){let q=this.getDatasetMeta(J),X={meta:q,index:J,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(G),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(V2.has(this)){if(this.attached&&!V2.running(this))V2.start(this)}else this.draw(),DR({chart:this})}draw(){let J;if(this._resizeBeforeDraw){let{width:q,height:X}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,X)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let G=this._layers;for(J=0;J<G.length&&G[J].z<=0;++J)G[J].draw(this.chartArea);this._drawDatasets();for(;J<G.length;++J)G[J].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(J){let G=this._sortedMetasets,q=[],X,N;for(X=0,N=G.length;X<N;++X){let K=G[X];if(!J||K.visible)q.push(K)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let J=this.getSortedVisibleDatasetMetas();for(let G=J.length-1;G>=0;--G)this._drawDataset(J[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(J){let G=this.ctx,q={meta:J,index:J.index,cancelable:!0},X=VU(this,J);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)XJ(G,X);if(J.controller.draw(),X)NJ(G);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(J){return x4(J,this.chartArea,this._minPadding)}getElementsAtEventForMode(J,G,q,X){let N=xV.modes[G];if(typeof N==="function")return N(this,J,q,X);return[]}getDatasetMeta(J){let G=this.data.datasets[J],q=this._metasets,X=q.filter((N)=>N&&N._dataset===G).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:J,_dataset:G,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=I2(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(J){let G=this.data.datasets[J];if(!G)return!1;let q=this.getDatasetMeta(J);return typeof q.hidden==="boolean"?!q.hidden:!G.hidden}setDatasetVisibility(J,G){let q=this.getDatasetMeta(J);q.hidden=!G}toggleDataVisibility(J){this._hiddenIndices[J]=!this._hiddenIndices[J]}getDataVisibility(J){return!this._hiddenIndices[J]}_updateVisibility(J,G,q){let X=q?"show":"hide",N=this.getDatasetMeta(J),K=N.controller._resolveAnimations(void 0,X);if(K$(G))N.data[G].hidden=!q,this.update();else this.setDatasetVisibility(J,q),K.update(N,{visible:q}),this.update((H)=>H.datasetIndex===J?X:void 0)}hide(J,G){this._updateVisibility(J,G,!1)}show(J,G){this._updateVisibility(J,G,!0)}_destroyDatasetMeta(J){let G=this._metasets[J];if(G&&G.controller)G.controller._destroy();delete this._metasets[J]}_stop(){let J,G;this.stop(),V2.remove(this);for(J=0,G=this.data.datasets.length;J<G;++J)this._destroyDatasetMeta(J)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:J,ctx:G}=this;if(this._stop(),this.config.clearCache(),J)this.unbindEvents(),FU(J,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete x3[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...J){return this.canvas.toDataURL(...J)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let J=this._listeners,G=this.platform,q=(N,K)=>{G.addEventListener(this,N,K),J[N]=K},X=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};F1(this.options.events,(N)=>q(N,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let J=this._responsiveListeners,G=this.platform,q=(F,W)=>{G.addEventListener(this,F,W),J[F]=W},X=(F,W)=>{if(J[F])G.removeEventListener(this,F,W),delete J[F]},N=(F,W)=>{if(this.canvas)this.resize(F,W)},K,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",N),q("detach",K)};if(K=()=>{this.attached=!1,X("resize",N),this._stop(),this._resize(0,0),q("attach",H)},G.isAttached(this.canvas))H();else K()}unbindEvents(){F1(this._listeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._listeners={},F1(this._responsiveListeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._responsiveListeners=void 0}updateHoverStyle(J,G,q){let X=q?"set":"remove",N,K,H,F;if(G==="dataset")N=this.getDatasetMeta(J[0].datasetIndex),N.controller["_"+X+"DatasetHoverStyle"]();for(H=0,F=J.length;H<F;++H){K=J[H];let W=K&&this.getDatasetMeta(K.datasetIndex).controller;if(W)W[X+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(J){let G=this._active||[],q=J.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!qJ(q,G))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,G)}notifyPlugins(J,G,q){return this._plugins.notify(this,J,G,q)}isPluginEnabled(J){return this._plugins._cache.filter((G)=>G.plugin.id===J).length===1}_updateHoverStyles(J,G,q){let X=this.options.hover,N=(F,W)=>F.filter((M)=>!W.some((R)=>M.datasetIndex===R.datasetIndex&&M.index===R.index)),K=N(G,J),H=q?J:N(J,G);if(K.length)this.updateHoverStyle(K,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(J,G){let q={event:J,replay:G,cancelable:!0,inChartArea:this.isPointInArea(J)},X=(K)=>(K.options.events||this.options.events).includes(J.native.type);if(this.notifyPlugins("beforeEvent",q,X)===!1)return;let N=this._handleEvent(J,G,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),N||q.changed)this.render();return this}_handleEvent(J,G,q){let{_active:X=[],options:N}=this,K=G,H=this._getActiveElements(J,X,q,K),F=Sw(J),W=hA(J,this._lastEvent,q,F);if(q){if(this._lastEvent=null,O1(N.onHover,[J,H,this],this),F)O1(N.onClick,[J,H,this],this)}let M=!qJ(H,X);if(M||G)this._active=H,this._updateHoverStyles(H,X,G);return this._lastEvent=W,M}_getActiveElements(J,G,q,X){if(J.type==="mouseout")return[];if(!q)return G;let N=this.options.hover;return this.getElementsAtEventForMode(J,N.mode,N,X)}}function vR(){return F1(m7.instances,(J)=>J._plugins.invalidate())}function R_(J,G,q=G){J.lineCap=n0(q.borderCapStyle,G.borderCapStyle),J.setLineDash(n0(q.borderDash,G.borderDash)),J.lineDashOffset=n0(q.borderDashOffset,G.borderDashOffset),J.lineJoin=n0(q.borderJoinStyle,G.borderJoinStyle),J.lineWidth=n0(q.borderWidth,G.borderWidth),J.strokeStyle=n0(q.borderColor,G.borderColor)}function uA(J,G,q){J.lineTo(q.x,q.y)}function xA(J){if(J.stepped)return lw;if(J.tension||J.cubicInterpolationMode==="monotone")return rw;return uA}function __(J,G,q={}){let X=J.length,{start:N=0,end:K=X-1}=q,{start:H,end:F}=G,W=Math.max(N,H),M=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:X,start:W,loop:G.loop,ilen:M<W&&!R?X+M-W:M-W}}function mA(J,G,q,X){let{points:N,options:K}=G,{count:H,start:F,loop:W,ilen:M}=__(N,q,X),R=xA(K),{move:_=!0,reverse:P}=X||{},O,E,V;for(O=0;O<=M;++O){if(E=N[(F+(P?M-O:O))%H],E.skip)continue;else if(_)J.moveTo(E.x,E.y),_=!1;else R(J,V,E,P,K.stepped);V=E}if(W)E=N[(F+(P?M:0))%H],R(J,V,E,P,K.stepped);return!!W}function dA(J,G,q,X){let N=G.points,{count:K,start:H,ilen:F}=__(N,q,X),{move:W=!0,reverse:M}=X||{},R=0,_=0,P,O,E,V,I,j,h=(n)=>(H+(M?F-n:n))%K,p=()=>{if(V!==I)J.lineTo(R,I),J.lineTo(R,V),J.lineTo(R,j)};if(W)O=N[h(0)],J.moveTo(O.x,O.y);for(P=0;P<=F;++P){if(O=N[h(P)],O.skip)continue;let{x:n,y:a}=O,Q0=n|0;if(Q0===E){if(a<V)V=a;else if(a>I)I=a;R=(_*R+n)/++_}else p(),J.lineTo(n,a),E=Q0,_=0,V=I=a;j=a}p()}function xU(J){let G=J.options,q=G.borderDash&&G.borderDash.length;return!J._decimated&&!J._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!q?dA:mA}function pA(J){if(J.stepped)return ZR;if(J.tension||J.cubicInterpolationMode==="monotone")return JR;return I8}function cA(J,G,q,X){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,q,X))N.closePath()}R_(J,G.options),J.stroke(N)}function lA(J,G,q,X){let{segments:N,options:K}=G,H=xU(G);for(let F of N){if(R_(J,K,F.style),J.beginPath(),H(J,G,F,{start:q,end:q+X-1}))J.closePath();J.stroke()}}var rA=typeof Path2D==="function";function sA(J,G,q,X){if(rA&&!G.options.segment)cA(J,G,q,X);else lA(J,G,q,X)}class W$ extends E2{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:(J)=>J!=="borderDash"&&J!=="fill"};constructor(J){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,J)Object.assign(this,J)}updateControlPoints(J,G){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;tw(this._points,q,J,X,G),this._pointsUpdated=!0}}set points(J){this._points=J,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=GR(this,this.options.segment))}first(){let J=this.segments,G=this.points;return J.length&&G[J[0].start]}last(){let J=this.segments,G=this.points,q=J.length;return q&&G[J[q-1].end]}interpolate(J,G){let q=this.options,X=J[G],N=this.points,K=IU(this,{property:G,start:X,end:X});if(!K.length)return;let H=[],F=pA(q),W,M;for(W=0,M=K.length;W<M;++W){let{start:R,end:_}=K[W],P=N[R],O=N[_];if(P===O){H.push(P);continue}let E=Math.abs((X-P[G])/(O[G]-P[G])),V=F(P,O,E,q.stepped);V[G]=J[G],H.push(V)}return H.length===1?H[0]:H}pathSegment(J,G,q){return xU(this)(J,this,G,q)}path(J,G,q){let X=this.segments,N=xU(this),K=this._loop;G=G||0,q=q||this.points.length-G;for(let H of X)K&=N(J,this,H,{start:G,end:G+q-1});return!!K}draw(J,G,q,X){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)J.save(),sA(J,this,q,X),J.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function kR(J,G,q,X){let N=J.options,{[q]:K}=J.getProps([q],X);return Math.abs(G-K)<N.radius+N.hitRadius}class iU extends E2{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(J){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,J)Object.assign(this,J)}inRange(J,G,q){let X=this.options,{x:N,y:K}=this.getProps(["x","y"],q);return Math.pow(J-N,2)+Math.pow(G-K,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(J,G){return kR(this,J,"x",G)}inYRange(J,G){return kR(this,J,"y",G)}getCenterPoint(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}size(J){J=J||this.options||{};let G=J.radius||0;G=Math.max(G,G&&J.hoverRadius||0);let q=G&&J.borderWidth||0;return(G+q)*2}draw(J,G){let q=this.options;if(this.skip||q.radius<0.1||!x4(this,G,this.size(q)/2))return;J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.fillStyle=q.backgroundColor,S3(J,q,this.x,this.y)}getRange(){let J=this.options||{};return J.radius+J.hitRadius}}function L_(J,G){let{x:q,y:X,base:N,width:K,height:H}=J.getProps(["x","y","base","width","height"],G),F,W,M,R,_;if(J.horizontal)_=H/2,F=Math.min(q,N),W=Math.max(q,N),M=X-_,R=X+_;else _=K/2,F=q-_,W=q+_,M=Math.min(X,N),R=Math.max(X,N);return{left:F,top:M,right:W,bottom:R}}function k8(J,G,q,X){return J?0:$6(G,q,X)}function nA(J,G,q){let X=J.options.borderWidth,N=J.borderSkipped,K=MU(X);return{t:k8(N.top,K.top,0,q),r:k8(N.right,K.right,0,G),b:k8(N.bottom,K.bottom,0,q),l:k8(N.left,K.left,0,G)}}function oA(J,G,q){let{enableBorderRadius:X}=J.getProps(["enableBorderRadius"]),N=J.options.borderRadius,K=j8(N),H=Math.min(G,q),F=J.borderSkipped,W=X||Z1(N);return{topLeft:k8(!W||F.top||F.left,K.topLeft,0,H),topRight:k8(!W||F.top||F.right,K.topRight,0,H),bottomLeft:k8(!W||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:k8(!W||F.bottom||F.right,K.bottomRight,0,H)}}function aA(J){let G=L_(J),q=G.right-G.left,X=G.bottom-G.top,N=nA(J,q/2,X/2),K=oA(J,q/2,X/2);return{outer:{x:G.left,y:G.top,w:q,h:X,radius:K},inner:{x:G.left+N.l,y:G.top+N.t,w:q-N.l-N.r,h:X-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function bU(J,G,q,X){let N=G===null,K=q===null,F=J&&!(N&&K)&&L_(J,X);return F&&(N||O2(G,F.left,F.right))&&(K||O2(q,F.top,F.bottom))}function iA(J){return J.topLeft||J.topRight||J.bottomLeft||J.bottomRight}function tA(J,G){J.rect(G.x,G.y,G.w,G.h)}function fU(J,G,q={}){let X=J.x!==q.x?-G:0,N=J.y!==q.y?-G:0,K=(J.x+J.w!==q.x+q.w?G:0)-X,H=(J.y+J.h!==q.y+q.h?G:0)-N;return{x:J.x+X,y:J.y+N,w:J.w+K,h:J.h+H,radius:J.radius}}class tU extends E2{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(J){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,J)Object.assign(this,J)}draw(J){let{inflateAmount:G,options:{borderColor:q,backgroundColor:X}}=this,{inner:N,outer:K}=aA(this),H=iA(K.radius)?F$:tA;if(J.save(),K.w!==N.w||K.h!==N.h)J.beginPath(),H(J,fU(K,G,N)),J.clip(),H(J,fU(N,-G,K)),J.fillStyle=q,J.fill("evenodd");J.beginPath(),H(J,fU(N,G)),J.fillStyle=X,J.fill(),J.restore()}inRange(J,G,q){return bU(this,J,G,q)}inXRange(J,G){return bU(this,J,null,G)}inYRange(J,G){return bU(this,null,J,G)}getCenterPoint(J){let{x:G,y:q,base:X,horizontal:N}=this.getProps(["x","y","base","horizontal"],J);return{x:N?(G+X)/2:G,y:N?q:(q+X)/2}}getRange(J){return J==="x"?this.width/2:this.height/2}}function eA(J,G,q){let{segments:X,points:N}=J,K=G.points,H=[];for(let F of X){let{start:W,end:M}=F;M=p3(W,M,N);let R=mU(q,N[W],N[M],F.loop);if(!G.segments){H.push({source:F,target:R,start:N[W],end:N[M]});continue}let _=IU(G,R);for(let P of _){let O=mU(q,K[P.start],K[P.end],P.loop),E=OU(F,N,O);for(let V of E)H.push({source:V,target:P,start:{[q]:bR(R,O,"start",Math.max)},end:{[q]:bR(R,O,"end",Math.min)}})}}return H}function mU(J,G,q,X){if(X)return;let N=G[J],K=q[J];if(J==="angle")N=i5(N),K=i5(K);return{property:J,start:N,end:K}}function $E(J,G){let{x:q=null,y:X=null}=J||{},N=G.points,K=[];return G.segments.forEach(({start:H,end:F})=>{F=p3(H,F,N);let W=N[H],M=N[F];if(X!==null)K.push({x:W.x,y:X}),K.push({x:M.x,y:X});else if(q!==null)K.push({x:q,y:W.y}),K.push({x:q,y:M.y})}),K}function p3(J,G,q){for(;G>J;G--){let X=q[G];if(!isNaN(X.x)&&!isNaN(X.y))break}return G}function bR(J,G,q,X){if(J&&G)return X(J[q],G[q]);return J?J[q]:G?G[q]:0}function P_(J,G){let q=[],X=!1;if(E1(J))X=!0,q=J;else q=$E(J,G);return q.length?new W$({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function fR(J){return J&&J.fill!==!1}function ZE(J,G,q){let N=J[G].fill,K=[G],H;if(!q)return N;while(N!==!1&&K.indexOf(N)===-1){if(!u1(N))return N;if(H=J[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function JE(J,G,q){let X=YE(J);if(Z1(X))return isNaN(X.value)?!1:X;let N=parseFloat(X);if(u1(N)&&Math.floor(N)===N)return QE(X[0],G,N,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function QE(J,G,q,X){if(J==="-"||J==="+")q=G+q;if(q===G||q<0||q>=X)return!1;return q}function GE(J,G){let q=null;if(J==="start")q=G.bottom;else if(J==="end")q=G.top;else if(Z1(J))q=G.getPixelForValue(J.value);else if(G.getBasePixel)q=G.getBasePixel();return q}function qE(J,G,q){let X;if(J==="start")X=q;else if(J==="end")X=G.options.reverse?G.min:G.max;else if(Z1(J))X=J.value;else X=G.getBaseValue();return X}function YE(J){let G=J.options,q=G.fill,X=n0(q&&q.target,q);if(X===void 0)X=!!G.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function XE(J){let{scale:G,index:q,line:X}=J,N=[],K=X.segments,H=X.points,F=NE(G,q);F.push(P_({x:null,y:G.bottom},X));for(let W=0;W<K.length;W++){let M=K[W];for(let R=M.start;R<=M.end;R++)UE(N,H[R],F)}return new W$({points:N,options:{}})}function NE(J,G){let q=[],X=J.getMatchingVisibleMetas("line");for(let N=0;N<X.length;N++){let K=X[N];if(K.index===G)break;if(!K.hidden)q.unshift(K.dataset)}return q}function UE(J,G,q){let X=[];for(let N=0;N<q.length;N++){let K=q[N],{first:H,last:F,point:W}=KE(K,G,"x");if(!W||H&&F)continue;if(H)X.unshift(W);else if(J.push(W),!F)break}J.push(...X)}function KE(J,G,q){let X=J.interpolate(G,q);if(!X)return{};let N=X[q],K=J.segments,H=J.points,F=!1,W=!1;for(let M=0;M<K.length;M++){let R=K[M],_=H[R.start][q],P=H[R.end][q];if(O2(N,_,P)){F=N===_,W=N===P;break}}return{first:F,last:W,point:X}}class eU{constructor(J){this.x=J.x,this.y=J.y,this.radius=J.radius}pathSegment(J,G,q){let{x:X,y:N,radius:K}=this;return G=G||{start:0,end:e5},J.arc(X,N,K,G.end,G.start,!0),!q.bounds}interpolate(J){let{x:G,y:q,radius:X}=this,N=J.angle;return{x:G+Math.cos(N)*X,y:q+Math.sin(N)*X,angle:N}}}function BE(J){let{chart:G,fill:q,line:X}=J;if(u1(q))return HE(G,q);if(q==="stack")return XE(J);if(q==="shape")return!0;let N=FE(J);if(N instanceof eU)return N;return P_(N,X)}function HE(J,G){let q=J.getDatasetMeta(G);return q&&J.isDatasetVisible(G)?q.dataset:null}function FE(J){if((J.scale||{}).getPointPositionForValue)return zE(J);return WE(J)}function WE(J){let{scale:G={},fill:q}=J,X=GE(q,G);if(u1(X)){let N=G.isHorizontal();return{x:N?X:null,y:N?null:X}}return null}function zE(J){let{scale:G,fill:q}=J,X=G.options,N=G.getLabels().length,K=X.reverse?G.max:G.min,H=qE(q,G,K),F=[];if(X.grid.circular){let W=G.getPointPositionForValue(0,K);return new eU({x:W.x,y:W.y,radius:G.getDistanceFromCenterForValue(H)})}for(let W=0;W<N;++W)F.push(G.getPointPositionForValue(W,H));return F}function yU(J,G,q){let X=BE(G),{chart:N,index:K,line:H,scale:F,axis:W}=G,M=H.options,R=M.fill,_=M.backgroundColor,{above:P=_,below:O=_}=R||{},E=N.getDatasetMeta(K),V=VU(N,E);if(X&&H.points.length)XJ(J,q),ME(J,{line:H,target:X,above:P,below:O,area:q,scale:F,axis:W,clip:V}),NJ(J)}function ME(J,G){let{line:q,target:X,above:N,below:K,area:H,scale:F,clip:W}=G,M=q._loop?"angle":G.axis;J.save();let R=K;if(K!==N){if(M==="x")yR(J,X,H.top),gU(J,{line:q,target:X,color:N,scale:F,property:M,clip:W}),J.restore(),J.save(),yR(J,X,H.bottom);else if(M==="y")gR(J,X,H.left),gU(J,{line:q,target:X,color:K,scale:F,property:M,clip:W}),J.restore(),J.save(),gR(J,X,H.right),R=N}gU(J,{line:q,target:X,color:R,scale:F,property:M,clip:W}),J.restore()}function yR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(R.x,q),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(_.x,q)}J.lineTo(G.first().x,q),J.closePath(),J.clip()}function gR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(q,R.y),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(q,_.y)}J.lineTo(q,G.first().y),J.closePath(),J.clip()}function gU(J,G){let{line:q,target:X,property:N,color:K,scale:H,clip:F}=G,W=eA(q,X,N);for(let{source:M,target:R,start:_,end:P}of W){let{style:{backgroundColor:O=K}={}}=M,E=X!==!0;J.save(),J.fillStyle=O,wE(J,H,F,E&&mU(N,_,P)),J.beginPath();let V=!!q.pathSegment(J,M),I;if(E){if(V)J.closePath();else hR(J,X,P,N);let j=!!X.pathSegment(J,R,{move:V,reverse:!0});if(I=V&&j,!I)hR(J,X,_,N)}J.closePath(),J.fill(I?"evenodd":"nonzero"),J.restore()}}function wE(J,G,q,X){let N=G.chart.chartArea,{property:K,start:H,end:F}=X||{};if(K==="x"||K==="y"){let W,M,R,_;if(K==="x")W=H,M=N.top,R=F,_=N.bottom;else W=N.left,M=H,R=N.right,_=F;if(J.beginPath(),q)W=Math.max(W,q.left),R=Math.min(R,q.right),M=Math.max(M,q.top),_=Math.min(_,q.bottom);J.rect(W,M,R-W,_-M),J.clip()}}function hR(J,G,q,X){let N=G.interpolate(q,X);if(N)J.lineTo(N.x,N.y)}var T_={id:"filler",afterDatasetsUpdate(J,G,q){let X=(J.data.datasets||[]).length,N=[],K,H,F,W;for(H=0;H<X;++H){if(K=J.getDatasetMeta(H),F=K.dataset,W=null,F&&F.options&&F instanceof W$)W={visible:J.isDatasetVisible(H),index:H,fill:JE(F,H,X),chart:J,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=W,N.push(W)}for(H=0;H<X;++H){if(W=N[H],!W||W.fill===!1)continue;W.fill=ZE(N,H,q.propagate)}},beforeDraw(J,G,q){let X=q.drawTime==="beforeDraw",N=J.getSortedVisibleDatasetMetas(),K=J.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),X&&F.fill)yU(J.ctx,F,K)}},beforeDatasetsDraw(J,G,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=J.getSortedVisibleDatasetMetas();for(let N=X.length-1;N>=0;--N){let K=X[N].$filler;if(fR(K))yU(J.ctx,K,J.chartArea)}},beforeDatasetDraw(J,G,q){let X=G.meta.$filler;if(!fR(X)||q.drawTime!=="beforeDatasetDraw")return;yU(J.ctx,X,J.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},uR=(J,G)=>{let{boxHeight:q=G,boxWidth:X=G}=J;if(J.usePointStyle)q=Math.min(q,G),X=J.pointStyleWidth||Math.min(X,G);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(G,q)}},RE=(J,G)=>J!==null&&G!==null&&J.datasetIndex===G.datasetIndex&&J.index===G.index;class dU extends E2{constructor(J){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=J.chart,this.options=J.options,this.ctx=J.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(J,G,q){this.maxWidth=J,this.maxHeight=G,this._margins=q,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 J=this.options.labels||{},G=O1(J.generateLabels,[this.chart],this)||[];if(J.filter)G=G.filter((q)=>J.filter(q,this.chart.data));if(J.sort)G=G.sort((q,X)=>J.sort(q,X,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:J,ctx:G}=this;if(!J.display){this.width=this.height=0;return}let q=J.labels,X=Q5(q.font),N=X.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=uR(q,N),W,M;if(G.font=X.string,this.isHorizontal())W=this.maxWidth,M=this._fitRows(K,N,H,F)+10;else M=this.maxHeight,W=this._fitCols(K,X,H,F)+10;this.width=Math.min(W,J.maxWidth||this.maxWidth),this.height=Math.min(M,J.maxHeight||this.maxHeight)}_fitRows(J,G,q,X){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.lineWidths=[0],M=X+H,R=J;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-M;return this.legendItems.forEach((O,E)=>{let V=q+G/2+N.measureText(O.text).width;if(E===0||W[W.length-1]+V+2*H>K)R+=M,W[W.length-(E>0?0:1)]=0,P+=M,_++;F[E]={left:0,top:P,row:_,width:V,height:X},W[W.length-1]+=V+H}),R}_fitCols(J,G,q,X){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.columnSizes=[],M=K-J,R=H,_=0,P=0,O=0,E=0;return this.legendItems.forEach((V,I)=>{let{itemWidth:j,itemHeight:h}=_E(q,G,N,V,X);if(I>0&&P+h+2*H>M)R+=_+H,W.push({width:_,height:P}),O+=_+H,E++,_=P=0;F[I]={left:O,top:P,col:E,width:j,height:h},_=Math.max(_,j),P+=h+H}),R+=_,W.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let J=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:q,labels:{padding:X},rtl:N}}=this,K=g7(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=P5(q,this.left+X,this.right-this.lineWidths[H]);for(let W of G){if(H!==W.row)H=W.row,F=P5(q,this.left+X,this.right-this.lineWidths[H]);W.top+=this.top+J+X,W.left=K.leftForLtr(K.x(F),W.width),F+=W.width+X}}else{let H=0,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);for(let W of G){if(W.col!==H)H=W.col,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);W.top=F,W.left+=this.left+X,W.left=K.leftForLtr(K.x(W.left),W.width),F+=W.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let J=this.ctx;XJ(J,this),this._draw(),NJ(J)}}_draw(){let{options:J,columnSizes:G,lineWidths:q,ctx:X}=this,{align:N,labels:K}=J,H=x1.color,F=g7(J.rtl,this.left,this.width),W=Q5(K.font),{padding:M}=K,R=W.size,_=R/2,P;this.drawTitle(),X.textAlign=F.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=W.string;let{boxWidth:O,boxHeight:E,itemHeight:V}=uR(K,R),I=function(a,Q0,t){if(isNaN(O)||O<=0||isNaN(E)||E<0)return;X.save();let i=n0(t.lineWidth,1);if(X.fillStyle=n0(t.fillStyle,H),X.lineCap=n0(t.lineCap,"butt"),X.lineDashOffset=n0(t.lineDashOffset,0),X.lineJoin=n0(t.lineJoin,"miter"),X.lineWidth=i,X.strokeStyle=n0(t.strokeStyle,H),X.setLineDash(n0(t.lineDash,[])),K.usePointStyle){let X0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,O/2),H0=Q0+_;WU(X,X0,d,H0,K.pointStyleWidth&&O)}else{let X0=Q0+Math.max((R-E)/2,0),d=F.leftForLtr(a,O),H0=j8(t.borderRadius);if(X.beginPath(),Object.values(H0).some((P0)=>P0!==0))F$(X,{x:d,y:X0,w:O,h:E,radius:H0});else X.rect(d,X0,O,E);if(X.fill(),i!==0)X.stroke()}X.restore()},j=function(a,Q0,t){D8(X,t.text,a,Q0+V/2,W,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:P5(N,this.left+M,this.right-q[0]),y:this.top+M+p,line:0};else P={x:this.left+M,y:P5(N,this.top+p+M,this.bottom-G[0].height),line:0};TU(this.ctx,J.textDirection);let n=V+M;this.legendItems.forEach((a,Q0)=>{X.strokeStyle=a.fontColor,X.fillStyle=a.fontColor;let t=X.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),X0=O+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(Q0>0&&d+X0+M>this.right)H0=P.y+=n,P.line++,d=P.x=P5(N,this.left+M,this.right-q[P.line])}else if(Q0>0&&H0+n>this.bottom)d=P.x=d+G[P.line].width+M,P.line++,H0=P.y=P5(N,this.top+p+M,this.bottom-G[P.line].height);let P0=F.x(d);if(I(P0,H0,a),d=uw(i,d+O+_,h?d+X0:this.right,J.rtl),j(F.x(d),H0,a),h)P.x+=X0+M;else if(typeof a.text!=="string"){let O0=W.lineHeight;P.y+=C_(a,O0)+M}else P.y+=n}),CU(this.ctx,J.textDirection)}drawTitle(){let J=this.options,G=J.title,q=Q5(G.font),X=T5(G.padding);if(!G.display)return;let N=g7(J.rtl,this.left,this.width),K=this.ctx,H=G.position,F=q.size/2,W=X.top+F,M,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),M=this.top+W,R=P5(J.align,R,this.right-_);else{let O=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);M=W+P5(J.align,this.top,this.bottom-O-J.labels.padding-this._computeTitleHeight())}let P=P5(H,R,R+_);K.textAlign=N.textAlign(V3(H)),K.textBaseline="middle",K.strokeStyle=G.color,K.fillStyle=G.color,K.font=q.string,D8(K,G.text,P,M,q)}_computeTitleHeight(){let J=this.options.title,G=Q5(J.font),q=T5(J.padding);return J.display?G.lineHeight+q.height:0}_getLegendItemAt(J,G){let q,X,N;if(O2(J,this.left,this.right)&&O2(G,this.top,this.bottom)){N=this.legendHitBoxes;for(q=0;q<N.length;++q)if(X=N[q],O2(J,X.left,X.left+X.width)&&O2(G,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(J){let G=this.options;if(!TE(J.type,G))return;let q=this._getLegendItemAt(J.x,J.y);if(J.type==="mousemove"||J.type==="mouseout"){let X=this._hoveredItem,N=RE(X,q);if(X&&!N)O1(G.onLeave,[J,X,this],this);if(this._hoveredItem=q,q&&!N)O1(G.onHover,[J,q,this],this)}else if(q)O1(G.onClick,[J,q,this],this)}}function _E(J,G,q,X,N){let K=LE(X,J,G,q),H=PE(N,X,G.lineHeight);return{itemWidth:K,itemHeight:H}}function LE(J,G,q,X){let N=J.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return G+q.size/2+X.measureText(N).width}function PE(J,G,q){let X=J;if(typeof G.text!=="string")X=C_(G,q);return X}function C_(J,G){let q=J.text?J.text.length:0;return G*q}function TE(J,G){if((J==="mousemove"||J==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(J==="click"||J==="mouseup"))return!0;return!1}var O_={id:"legend",_element:dU,start(J,G,q){let X=J.legend=new dU({ctx:J.ctx,options:q,chart:J});c6.configure(J,X,q),c6.addBox(J,X)},stop(J){c6.removeBox(J,J.legend),delete J.legend},beforeUpdate(J,G,q){let X=J.legend;c6.configure(J,X,q),X.options=q},afterUpdate(J){let G=J.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(J,G){if(!G.replay)J.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(J,G,q){let X=G.datasetIndex,N=q.chart;if(N.isDatasetVisible(X))N.hide(X),G.hidden=!0;else N.show(X),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(J)=>J.chart.options.color,boxWidth:40,padding:10,generateLabels(J){let G=J.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=J.legend.options;return J._getSortedDatasetMetas().map((W)=>{let M=W.controller.getStyle(q?0:void 0),R=T5(M.borderWidth);return{text:G[W.index].label,fillStyle:M.backgroundColor,fontColor:K,hidden:!W.visible,lineCap:M.borderCapStyle,lineDash:M.borderDash,lineDashOffset:M.borderDashOffset,lineJoin:M.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:M.borderColor,pointStyle:X||M.pointStyle,rotation:M.rotation,textAlign:N||M.textAlign,borderRadius:H&&(F||M.borderRadius),datasetIndex:W.index}},this)}},title:{color:(J)=>J.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(J)=>!J.startsWith("on"),labels:{_scriptable:(J)=>!["generateLabels","filter","sort"].includes(J)}}};class $K extends E2{constructor(J){super();this.chart=J.chart,this.options=J.options,this.ctx=J.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(J,G){let q=this.options;if(this.left=0,this.top=0,!q.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=J,this.height=this.bottom=G;let X=E1(q.text)?q.text.length:1;this._padding=T5(q.padding);let N=X*Q5(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let J=this.options.position;return J==="top"||J==="bottom"}_drawArgs(J){let{top:G,left:q,bottom:X,right:N,options:K}=this,H=K.align,F=0,W,M,R;if(this.isHorizontal())M=P5(H,q,N),R=G+J,W=N-q;else{if(K.position==="left")M=q+J,R=P5(H,X,G),F=r1*-0.5;else M=N-J,R=P5(H,G,X),F=r1*0.5;W=X-G}return{titleX:M,titleY:R,maxWidth:W,rotation:F}}draw(){let J=this.ctx,G=this.options;if(!G.display)return;let q=Q5(G.font),N=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:W}=this._drawArgs(N);D8(J,G.text,0,0,q,{color:G.color,maxWidth:F,rotation:W,textAlign:V3(G.align),textBaseline:"middle",translation:[K,H]})}}function CE(J,G){let q=new $K({ctx:J.ctx,options:G,chart:J});c6.configure(J,q,G),c6.addBox(J,q),J.titleBlock=q}var I_={id:"title",_element:$K,start(J,G,q){CE(J,q)},stop(J){let G=J.titleBlock;c6.removeBox(J,G),delete J.titleBlock},beforeUpdate(J,G,q){let X=J.titleBlock;c6.configure(J,X,q),X.options=q},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 wJ={average(J){if(!J.length)return!1;let G,q,X=new Set,N=0,K=0;for(G=0,q=J.length;G<q;++G){let F=J[G].element;if(F&&F.hasValue()){let W=F.tooltipPosition();X.add(W.x),N+=W.y,++K}}if(K===0||X.size===0)return!1;return{x:[...X].reduce((F,W)=>F+W)/X.size,y:N/K}},nearest(J,G){if(!J.length)return!1;let{x:q,y:X}=G,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=J.length;K<H;++K){let W=J[K].element;if(W&&W.hasValue()){let M=W.getCenterPoint(),R=P3(G,M);if(R<N)N=R,F=W}}if(F){let W=F.tooltipPosition();q=W.x,X=W.y}return{x:q,y:X}}};function d4(J,G){if(G)if(E1(G))Array.prototype.push.apply(J,G);else J.push(G);return J}function A2(J){if((typeof J==="string"||J instanceof String)&&J.indexOf(`
256
- `)>-1)return J.split(`
257
- `);return J}function OE(J,G){let{element:q,datasetIndex:X,index:N}=G,K=J.getDatasetMeta(X).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:J,label:H,parsed:K.getParsed(N),raw:J.data.datasets[X].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:X,element:q}}function xR(J,G){let q=J.chart.ctx,{body:X,footer:N,title:K}=J,{boxWidth:H,boxHeight:F}=G,W=Q5(G.bodyFont),M=Q5(G.titleFont),R=Q5(G.footerFont),_=K.length,P=N.length,O=X.length,E=T5(G.padding),V=E.height,I=0,j=X.reduce((n,a)=>n+a.before.length+a.lines.length+a.after.length,0);if(j+=J.beforeBody.length+J.afterBody.length,_)V+=_*M.lineHeight+(_-1)*G.titleSpacing+G.titleMarginBottom;if(j){let n=G.displayColors?Math.max(F,W.lineHeight):W.lineHeight;V+=O*n+(j-O)*W.lineHeight+(j-1)*G.bodySpacing}if(P)V+=G.footerMarginTop+P*R.lineHeight+(P-1)*G.footerSpacing;let h=0,p=function(n){I=Math.max(I,q.measureText(n).width+h)};return q.save(),q.font=M.string,F1(J.title,p),q.font=W.string,F1(J.beforeBody.concat(J.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,F1(X,(n)=>{F1(n.before,p),F1(n.lines,p),F1(n.after,p)}),h=0,q.font=R.string,F1(J.footer,p),q.restore(),I+=E.width,{width:I,height:V}}function IE(J,G){let{y:q,height:X}=G;if(q<X/2)return"top";else if(q>J.height-X/2)return"bottom";return"center"}function VE(J,G,q,X){let{x:N,width:K}=X,H=q.caretSize+q.caretPadding;if(J==="left"&&N+K+H>G.width)return!0;if(J==="right"&&N-K-H<0)return!0}function AE(J,G,q,X){let{x:N,width:K}=q,{width:H,chartArea:{left:F,right:W}}=J,M="center";if(X==="center")M=N<=(F+W)/2?"left":"right";else if(N<=K/2)M="left";else if(N>=H-K/2)M="right";if(VE(M,J,G,q))M="center";return M}function mR(J,G,q){let X=q.yAlign||G.yAlign||IE(J,q);return{xAlign:q.xAlign||G.xAlign||AE(J,G,q,X),yAlign:X}}function EE(J,G){let{x:q,width:X}=J;if(G==="right")q-=X;else if(G==="center")q-=X/2;return q}function SE(J,G,q){let{y:X,height:N}=J;if(G==="top")X+=q;else if(G==="bottom")X-=N+q;else X-=N/2;return X}function dR(J,G,q,X){let{caretSize:N,caretPadding:K,cornerRadius:H}=J,{xAlign:F,yAlign:W}=q,M=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j8(H),E=EE(G,F),V=SE(G,W,M);if(W==="center"){if(F==="left")E+=M;else if(F==="right")E-=M}else if(F==="left")E-=Math.max(R,P)+N;else if(F==="right")E+=Math.max(_,O)+N;return{x:$6(E,0,X.width-G.width),y:$6(V,0,X.height-G.height)}}function g3(J,G,q){let X=T5(q.padding);return G==="center"?J.x+J.width/2:G==="right"?J.x+J.width-X.right:J.x+X.left}function pR(J){return d4([],A2(J))}function DE(J,G,q){return I2(J,{tooltip:G,tooltipItems:q,type:"tooltip"})}function cR(J,G){let q=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return q?J.override(q):J}var V_={beforeTitle:m4,title(J){if(J.length>0){let G=J[0],q=G.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(X>0&&G.dataIndex<X)return q[G.dataIndex]}return""},afterTitle:m4,beforeBody:m4,beforeLabel:m4,label(J){if(this&&this.options&&this.options.mode==="dataset")return J.label+": "+J.formattedValue||J.formattedValue;let G=J.dataset.label||"";if(G)G+=": ";let q=J.formattedValue;if(!G1(q))G+=q;return G},labelColor(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{borderColor:q.borderColor,backgroundColor:q.backgroundColor,borderWidth:q.borderWidth,borderDash:q.borderDash,borderDashOffset:q.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:m4,afterBody:m4,beforeFooter:m4,footer:m4,afterFooter:m4};function J6(J,G,q,X){let N=J[G].call(q,X);if(typeof N>"u")return V_[G].call(q,X);return N}class pU extends E2{static positioners=wJ;constructor(J){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=J.chart,this.options=J.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(J){this.options=J,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let J=this._cachedAnimations;if(J)return J;let G=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&G.options.animation&&q.animations,N=new rU(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=DE(this.chart.getContext(),this,this._tooltipItems))}getTitle(J,G){let{callbacks:q}=G,X=J6(q,"beforeTitle",this,J),N=J6(q,"title",this,J),K=J6(q,"afterTitle",this,J),H=[];return H=d4(H,A2(X)),H=d4(H,A2(N)),H=d4(H,A2(K)),H}getBeforeBody(J,G){return pR(J6(G.callbacks,"beforeBody",this,J))}getBody(J,G){let{callbacks:q}=G,X=[];return F1(J,(N)=>{let K={before:[],lines:[],after:[]},H=cR(q,N);d4(K.before,A2(J6(H,"beforeLabel",this,N))),d4(K.lines,J6(H,"label",this,N)),d4(K.after,A2(J6(H,"afterLabel",this,N))),X.push(K)}),X}getAfterBody(J,G){return pR(J6(G.callbacks,"afterBody",this,J))}getFooter(J,G){let{callbacks:q}=G,X=J6(q,"beforeFooter",this,J),N=J6(q,"footer",this,J),K=J6(q,"afterFooter",this,J),H=[];return H=d4(H,A2(X)),H=d4(H,A2(N)),H=d4(H,A2(K)),H}_createItems(J){let G=this._active,q=this.chart.data,X=[],N=[],K=[],H=[],F,W;for(F=0,W=G.length;F<W;++F)H.push(OE(this.chart,G[F]));if(J.filter)H=H.filter((M,R,_)=>J.filter(M,R,_,q));if(J.itemSort)H=H.sort((M,R)=>J.itemSort(M,R,q));return F1(H,(M)=>{let R=cR(J.callbacks,M);X.push(J6(R,"labelColor",this,M)),N.push(J6(R,"labelPointStyle",this,M)),K.push(J6(R,"labelTextColor",this,M))}),this.labelColors=X,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(J,G){let q=this.options.setContext(this.getContext()),X=this._active,N,K=[];if(!X.length){if(this.opacity!==0)N={opacity:0}}else{let H=wJ[q.position].call(this,X,this._eventPosition);K=this._createItems(q),this.title=this.getTitle(K,q),this.beforeBody=this.getBeforeBody(K,q),this.body=this.getBody(K,q),this.afterBody=this.getAfterBody(K,q),this.footer=this.getFooter(K,q);let F=this._size=xR(this,q),W=Object.assign({},H,F),M=mR(this.chart,q,W),R=dR(q,W,M,this.chart);this.xAlign=M.xAlign,this.yAlign=M.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(J&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:G})}drawCaret(J,G,q,X){let N=this.getCaretPosition(J,q,X);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(J,G,q){let{xAlign:X,yAlign:N}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:F,topRight:W,bottomLeft:M,bottomRight:R}=j8(H),{x:_,y:P}=J,{width:O,height:E}=G,V,I,j,h,p,n;if(N==="center"){if(p=P+E/2,X==="left")V=_,I=V-K,h=p+K,n=p-K;else V=_+O,I=V+K,h=p-K,n=p+K;j=V}else{if(X==="left")I=_+Math.max(F,M)+K;else if(X==="right")I=_+O-Math.max(W,R)-K;else I=this.caretX;if(N==="top")h=P,p=h-K,V=I-K,j=I+K;else h=P+E,p=h+K,V=I+K,j=I-K;n=h}return{x1:V,x2:I,x3:j,y1:h,y2:p,y3:n}}drawTitle(J,G,q){let X=this.title,N=X.length,K,H,F;if(N){let W=g7(q.rtl,this.x,this.width);J.x=g3(this,q.titleAlign,q),G.textAlign=W.textAlign(q.titleAlign),G.textBaseline="middle",K=Q5(q.titleFont),H=q.titleSpacing,G.fillStyle=q.titleColor,G.font=K.string;for(F=0;F<N;++F)if(G.fillText(X[F],W.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+H,F+1===N)J.y+=q.titleMarginBottom-H}}_drawColorBox(J,G,q,X,N){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:F,boxWidth:W}=N,M=Q5(N.bodyFont),R=g3(this,"left",N),_=X.x(R),P=F<M.lineHeight?(M.lineHeight-F)/2:0,O=G.y+P;if(N.usePointStyle){let E={radius:Math.min(W,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=X.leftForLtr(_,W)+W/2,I=O+F/2;J.strokeStyle=N.multiKeyBackground,J.fillStyle=N.multiKeyBackground,S3(J,E,V,I),J.strokeStyle=K.borderColor,J.fillStyle=K.backgroundColor,S3(J,E,V,I)}else{J.lineWidth=Z1(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,J.strokeStyle=K.borderColor,J.setLineDash(K.borderDash||[]),J.lineDashOffset=K.borderDashOffset||0;let E=X.leftForLtr(_,W),V=X.leftForLtr(X.xPlus(_,1),W-2),I=j8(K.borderRadius);if(Object.values(I).some((j)=>j!==0))J.beginPath(),J.fillStyle=N.multiKeyBackground,F$(J,{x:E,y:O,w:W,h:F,radius:I}),J.fill(),J.stroke(),J.fillStyle=K.backgroundColor,J.beginPath(),F$(J,{x:V,y:O+1,w:W-2,h:F-2,radius:I}),J.fill();else J.fillStyle=N.multiKeyBackground,J.fillRect(E,O,W,F),J.strokeRect(E,O,W,F),J.fillStyle=K.backgroundColor,J.fillRect(V,O+1,W-2,F-2)}J.fillStyle=this.labelTextColors[q]}drawBody(J,G,q){let{body:X}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:W,boxPadding:M}=q,R=Q5(q.bodyFont),_=R.lineHeight,P=0,O=g7(q.rtl,this.x,this.width),E=function(t){G.fillText(t,O.x(J.x+P),J.y+_/2),J.y+=_+N},V=O.textAlign(K),I,j,h,p,n,a,Q0;G.textAlign=K,G.textBaseline="middle",G.font=R.string,J.x=g3(this,V,q),G.fillStyle=q.bodyColor,F1(this.beforeBody,E),P=H&&V!=="right"?K==="center"?W/2+M:W+2+M:0;for(p=0,a=X.length;p<a;++p){if(I=X[p],j=this.labelTextColors[p],G.fillStyle=j,F1(I.before,E),h=I.lines,H&&h.length)this._drawColorBox(G,J,p,O,q),_=Math.max(R.lineHeight,F);for(n=0,Q0=h.length;n<Q0;++n)E(h[n]),_=R.lineHeight;F1(I.after,E)}P=0,_=R.lineHeight,F1(this.afterBody,E),J.y-=N}drawFooter(J,G,q){let X=this.footer,N=X.length,K,H;if(N){let F=g7(q.rtl,this.x,this.width);J.x=g3(this,q.footerAlign,q),J.y+=q.footerMarginTop,G.textAlign=F.textAlign(q.footerAlign),G.textBaseline="middle",K=Q5(q.footerFont),G.fillStyle=q.footerColor,G.font=K.string;for(H=0;H<N;++H)G.fillText(X[H],F.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+q.footerSpacing}}drawBackground(J,G,q,X){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=J,{width:W,height:M}=q,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j8(X.cornerRadius);if(G.fillStyle=X.backgroundColor,G.strokeStyle=X.borderColor,G.lineWidth=X.borderWidth,G.beginPath(),G.moveTo(H+R,F),K==="top")this.drawCaret(J,G,q,X);if(G.lineTo(H+W-_,F),G.quadraticCurveTo(H+W,F,H+W,F+_),K==="center"&&N==="right")this.drawCaret(J,G,q,X);if(G.lineTo(H+W,F+M-O),G.quadraticCurveTo(H+W,F+M,H+W-O,F+M),K==="bottom")this.drawCaret(J,G,q,X);if(G.lineTo(H+P,F+M),G.quadraticCurveTo(H,F+M,H,F+M-P),K==="center"&&N==="left")this.drawCaret(J,G,q,X);if(G.lineTo(H,F+R),G.quadraticCurveTo(H,F,H+R,F),G.closePath(),G.fill(),X.borderWidth>0)G.stroke()}_updateAnimationTarget(J){let G=this.chart,q=this.$animations,X=q&&q.x,N=q&&q.y;if(X||N){let K=wJ[J.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=xR(this,J),F=Object.assign({},K,this._size),W=mR(G,J,F),M=dR(J,F,W,G);if(X._to!==M.x||N._to!==M.y)this.xAlign=W.xAlign,this.yAlign=W.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,M)}}_willRender(){return!!this.opacity}draw(J){let G=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(G);let X={width:this.width,height:this.height},N={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=T5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)J.save(),J.globalAlpha=q,this.drawBackground(N,J,X,G),TU(J,G.textDirection),N.y+=K.top,this.drawTitle(N,J,G),this.drawBody(N,J,G),this.drawFooter(N,J,G),CU(J,G.textDirection),J.restore()}getActiveElements(){return this._active||[]}setActiveElements(J,G){let q=this._active,X=J.map(({datasetIndex:H,index:F})=>{let W=this.chart.getDatasetMeta(H);if(!W)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:W.data[F],index:F}}),N=!qJ(q,X),K=this._positionChanged(X,G);if(N||K)this._active=X,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(J,G,q=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,N=this._active||[],K=this._getActiveElements(J,N,G,q),H=this._positionChanged(K,J),F=G||!qJ(K,N)||H;if(F){if(this._active=K,X.enabled||X.external)this._eventPosition={x:J.x,y:J.y},this.update(!0,G)}return F}_getActiveElements(J,G,q,X){let N=this.options;if(J.type==="mouseout")return[];if(!X)return G.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(J,N.mode,N,q);if(N.reverse)K.reverse();return K}_positionChanged(J,G){let{caretX:q,caretY:X,options:N}=this,K=wJ[N.position].call(this,J,G);return K!==!1&&(q!==K.x||X!==K.y)}}var A_={id:"tooltip",_element:pU,positioners:wJ,afterInit(J,G,q){if(q)J.tooltip=new pU({chart:J,options:q})},beforeUpdate(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},reset(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},afterDraw(J){let G=J.tooltip;if(G&&G._willRender()){let q={tooltip:G};if(J.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;G.draw(J.ctx),J.notifyPlugins("afterTooltipDraw",q)}},afterEvent(J,G){if(J.tooltip){let q=G.replay;if(J.tooltip.handleEvent(G.event,q,G.inChartArea))G.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:(J,G)=>G.bodyFont.size,boxWidth:(J,G)=>G.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:V_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(J)=>J!=="filter"&&J!=="itemSort"&&J!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var jE=(J,G,q,X)=>{if(typeof G==="string")q=J.push(G)-1,X.unshift({index:q,label:G});else if(isNaN(G))q=null;return q};function vE(J,G,q,X){let N=J.indexOf(G);if(N===-1)return jE(J,G,q,X);let K=J.lastIndexOf(G);return N!==K?q:N}var kE=(J,G)=>J===null?null:$6(Math.round(J),0,G);function lR(J){let G=this.getLabels();if(J>=0&&J<G.length)return G[J];return J}class ZK extends x7{static id="category";static defaults={ticks:{callback:lR}};constructor(J){super(J);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(J){let G=this._addedLabels;if(G.length){let q=this.getLabels();for(let{index:X,label:N}of G)if(q[X]===N)q.splice(X,1);this._addedLabels=[]}super.init(J)}parse(J,G){if(G1(J))return null;let q=this.getLabels();return G=isFinite(G)&&q[G]===J?G:vE(q,J,n0(G,J),this._addedLabels),kE(G,q.length-1)}determineDataLimits(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!J)q=0;if(!G)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let J=this.min,G=this.max,q=this.options.offset,X=[],N=this.getLabels();N=J===0&&G===N.length-1?N:N.slice(J,G+1),this._valueRange=Math.max(N.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=J;K<=G;K++)X.push({value:K});return X}getLabelForValue(J){return lR.call(this,J)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(J){if(typeof J!=="number")J=this.parse(J);return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getValueForPixel(J){return Math.round(this._startValue+this.getDecimalForPixel(J)*this._valueRange)}getBasePixel(){return this.bottom}}function bE(J,G){let q=[],X=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:W,count:M,maxTicks:R,maxDigits:_,includeBounds:P}=J,O=K||1,E=R-1,{min:V,max:I}=G,j=!G1(H),h=!G1(F),p=!G1(M),n=(I-V)/(_+1),a=QU((I-V)/E/O)*O,Q0,t,i,X0;if(a<0.00000000000001&&!j&&!h)return[{value:V},{value:I}];if(X0=Math.ceil(I/a)-Math.floor(V/a),X0>E)a=QU(X0*a/E/O)*O;if(!G1(W))Q0=Math.pow(10,W),a=Math.ceil(a*Q0)/Q0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(I/a)*a;else t=V,i=I;if(j&&h&&K&&jw((F-H)/K,a/1000))X0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/X0,t=H,i=F;else if(p)t=j?H:t,i=h?F:i,X0=M-1,a=(i-t)/X0;else if(X0=(i-t)/a,B$(X0,Math.round(X0),a/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(qU(a),qU(t));Q0=Math.pow(10,G1(W)?d:W),t=Math.round(t*Q0)/Q0,i=Math.round(i*Q0)/Q0;let H0=0;if(j){if(P&&t!==H){if(q.push({value:H}),t<H)H0++;if(B$(Math.round((t+H0*a)*Q0)/Q0,H,rR(H,n,J)))H0++}else if(t<H)H0++}for(;H0<X0;++H0){let P0=Math.round((t+H0*a)*Q0)/Q0;if(h&&P0>F)break;q.push({value:P0})}if(h&&P&&i!==F)if(q.length&&B$(q[q.length-1].value,F,rR(F,n,J)))q[q.length-1].value=F;else q.push({value:F});else if(!h||i===F)q.push({value:i});return q}function rR(J,G,{horizontal:q,minRotation:X}){let N=C2(X),K=(q?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+J).length;return Math.min(G/K,H)}class _J extends x7{constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(J,G){if(G1(J))return null;if((typeof J==="number"||J instanceof Number)&&!isFinite(+J))return null;return+J}handleTickRangeOptions(){let{beginAtZero:J}=this.options,{minDefined:G,maxDefined:q}=this.getUserBounds(),{min:X,max:N}=this,K=(F)=>X=G?X:F,H=(F)=>N=q?N:F;if(J){let F=U4(X),W=U4(N);if(F<0&&W<0)H(0);else if(F>0&&W>0)K(0)}if(X===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!J)K(X-F)}this.min=X,this.max=N}getTickLimit(){let J=this.options.ticks,{maxTicksLimit:G,stepSize:q}=J,X;if(q){if(X=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,X>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${X} ticks. Limiting to 1000.`),X=1000}else X=this.computeTickLimit(),G=G||11;if(G)X=Math.min(G,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let J=this.options,G=J.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:J.bounds,min:J.min,max:J.max,precision:G.precision,step:G.stepSize,count:G.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:G.minRotation||0,includeBounds:G.includeBounds!==!1},N=this._range||this,K=bE(X,N);if(J.bounds==="ticks")GU(K,this,"value");if(J.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let J=this.ticks,G=this.min,q=this.max;if(super.configure(),this.options.offset&&J.length){let X=(q-G)/Math.max(J.length-1,1)/2;G-=X,q+=X}this._startValue=G,this._endValue=q,this._valueRange=q-G}getLabelForValue(J){return A3(J,this.chart.options.locale,this.options.ticks.format)}}class JK extends _J{static id="linear";static defaults={ticks:{callback:YJ.formatters.numeric}};determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);this.min=u1(J)?J:0,this.max=u1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let J=this.isHorizontal(),G=J?this.width:this.height,q=C2(this.options.ticks.minRotation),X=(J?Math.sin(q):Math.cos(q))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/Math.min(40,N.lineHeight/X))}getPixelForValue(J){return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getValueForPixel(J){return this._startValue+this.getDecimalForPixel(J)*this._valueRange}}var LJ=(J)=>Math.floor(T2(J)),u7=(J,G)=>Math.pow(10,LJ(J)+G);function sR(J){return J/Math.pow(10,LJ(J))===1}function nR(J,G,q){let X=Math.pow(10,q),N=Math.floor(J/X);return Math.ceil(G/X)-N}function fE(J,G){let q=G-J,X=LJ(q);while(nR(J,G,X)>10)X++;while(nR(J,G,X)<10)X--;return Math.min(X,LJ(J))}function yE(J,{min:G,max:q}){G=Z6(J.min,G);let X=[],N=LJ(G),K=fE(G,q),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),W=N>K?Math.pow(10,N):0,M=Math.round((G-W)*H)/H,R=Math.floor((G-W)/F/10)*F*10,_=Math.floor((M-R)/Math.pow(10,K)),P=Z6(J.min,Math.round((W+R+_*Math.pow(10,K))*H)/H);while(P<q){if(X.push({value:P,major:sR(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((W+R+_*Math.pow(10,K))*H)/H}let O=Z6(J.max,P);return X.push({value:O,major:sR(O),significand:_}),X}class gE extends x7{static id="logarithmic";static defaults={ticks:{callback:YJ.formatters.logarithmic,major:{enabled:!0}}};constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(J,G){let q=_J.prototype.parse.apply(this,[J,G]);if(q===0){this._zero=!0;return}return u1(q)&&q>0?q:null}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);if(this.min=u1(J)?Math.max(0,J):null,this.max=u1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!u1(this._userMin))this.min=J===u7(this.min,0)?u7(this.min,-1):u7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),q=this.min,X=this.max,N=(H)=>q=J?q:H,K=(H)=>X=G?X:H;if(q===X)if(q<=0)N(1),K(10);else N(u7(q,-1)),K(u7(X,1));if(q<=0)N(u7(X,-1));if(X<=0)K(u7(q,1));this.min=q,this.max=X}buildTicks(){let J=this.options,G={min:this._userMin,max:this._userMax},q=yE(G,this);if(J.bounds==="ticks")GU(q,this,"value");if(J.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(J){return J===void 0?"0":A3(J,this.chart.options.locale,this.options.ticks.format)}configure(){let J=this.min;super.configure(),this._startValue=T2(J),this._valueRange=T2(this.max)-T2(J)}getPixelForValue(J){if(J===void 0||J===0)J=this.min;if(J===null||isNaN(J))return NaN;return this.getPixelForDecimal(J===this.min?0:(T2(J)-this._startValue)/this._valueRange)}getValueForPixel(J){let G=this.getDecimalForPixel(J);return Math.pow(10,this._startValue+G*this._valueRange)}}function cU(J){let G=J.ticks;if(G.display&&J.display){let q=T5(G.backdropPadding);return n0(G.font&&G.font.size,x1.font.size)+q.height}return 0}function hE(J,G,q){return q=E1(q)?q:[q],{w:cw(J,G.string,q),h:q.length*G.lineHeight}}function oR(J,G,q,X,N){if(J===X||J===N)return{start:G-q/2,end:G+q/2};else if(J<X||J>N)return{start:G-q,end:G};return{start:G,end:G+q}}function uE(J){let G={l:J.left+J._padding.left,r:J.right-J._padding.right,t:J.top+J._padding.top,b:J.bottom-J._padding.bottom},q=Object.assign({},G),X=[],N=[],K=J._pointLabels.length,H=J.options.pointLabels,F=H.centerPointLabels?r1/K:0;for(let W=0;W<K;W++){let M=H.setContext(J.getPointLabelContext(W));N[W]=M.padding;let R=J.getPointPosition(W,J.drawingArea+N[W],F),_=Q5(M.font),P=hE(J.ctx,_,J._pointLabels[W]);X[W]=P;let O=i5(J.getIndexAngle(W)+F),E=Math.round(O3(O)),V=oR(E,R.x,P.w,0,180),I=oR(E,R.y,P.h,90,270);xE(q,G,O,V,I)}J.setCenterPoint(G.l-q.l,q.r-G.r,G.t-q.t,q.b-G.b),J._pointLabelItems=pE(J,X,N)}function xE(J,G,q,X,N){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),F=0,W=0;if(X.start<G.l)F=(G.l-X.start)/K,J.l=Math.min(J.l,G.l-F);else if(X.end>G.r)F=(X.end-G.r)/K,J.r=Math.max(J.r,G.r+F);if(N.start<G.t)W=(G.t-N.start)/H,J.t=Math.min(J.t,G.t-W);else if(N.end>G.b)W=(N.end-G.b)/H,J.b=Math.max(J.b,G.b+W)}function mE(J,G,q){let X=J.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=q,W=J.getPointPosition(G,X+N+H,K),M=Math.round(O3(i5(W.angle+t5))),R=rE(W.y,F.h,M),_=cE(M),P=lE(W.x,F.w,_);return{visible:!0,x:W.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function dE(J,G){if(!G)return!0;let{left:q,top:X,right:N,bottom:K}=J;return!(x4({x:q,y:X},G)||x4({x:q,y:K},G)||x4({x:N,y:X},G)||x4({x:N,y:K},G))}function pE(J,G,q){let X=[],N=J._pointLabels.length,K=J.options,{centerPointLabels:H,display:F}=K.pointLabels,W={extra:cU(K)/2,additionalAngle:H?r1/N:0},M;for(let R=0;R<N;R++){W.padding=q[R],W.size=G[R];let _=mE(J,R,W);if(X.push(_),F==="auto"){if(_.visible=dE(_,M),_.visible)M=_}}return X}function cE(J){if(J===0||J===180)return"center";else if(J<180)return"left";return"right"}function lE(J,G,q){if(q==="right")J-=G;else if(q==="center")J-=G/2;return J}function rE(J,G,q){if(q===90||q===270)J-=G/2;else if(q>270||q<90)J-=G;return J}function sE(J,G,q){let{left:X,top:N,right:K,bottom:H}=q,{backdropColor:F}=G;if(!G1(F)){let W=j8(G.borderRadius),M=T5(G.backdropPadding);J.fillStyle=F;let R=X-M.left,_=N-M.top,P=K-X+M.width,O=H-N+M.height;if(Object.values(W).some((E)=>E!==0))J.beginPath(),F$(J,{x:R,y:_,w:P,h:O,radius:W}),J.fill();else J.fillRect(R,_,P,O)}}function nE(J,G){let{ctx:q,options:{pointLabels:X}}=J;for(let N=G-1;N>=0;N--){let K=J._pointLabelItems[N];if(!K.visible)continue;let H=X.setContext(J.getPointLabelContext(N));sE(q,H,K);let F=Q5(H.font),{x:W,y:M,textAlign:R}=K;D8(q,J._pointLabels[N],W,M+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function E_(J,G,q,X){let{ctx:N}=J;if(q)N.arc(J.xCenter,J.yCenter,G,0,e5);else{let K=J.getPointPosition(0,G);N.moveTo(K.x,K.y);for(let H=1;H<X;H++)K=J.getPointPosition(H,G),N.lineTo(K.x,K.y)}}function oE(J,G,q,X,N){let K=J.ctx,H=G.circular,{color:F,lineWidth:W}=G;if(!H&&!X||!F||!W||q<0)return;K.save(),K.strokeStyle=F,K.lineWidth=W,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),E_(J,q,H,X),K.closePath(),K.stroke(),K.restore()}function aE(J,G,q){return I2(J,{label:q,index:G,type:"pointLabel"})}class iE extends _J{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:YJ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(J){return J},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(J){super(J);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let J=this._padding=T5(cU(this.options)/2),G=this.width=this.maxWidth-J.width,q=this.height=this.maxHeight-J.height;this.xCenter=Math.floor(this.left+G/2+J.left),this.yCenter=Math.floor(this.top+q/2+J.top),this.drawingArea=Math.floor(Math.min(G,q)/2)}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!1);this.min=u1(J)&&!isNaN(J)?J:0,this.max=u1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cU(this.options))}generateTickLabels(J){_J.prototype.generateTickLabels.call(this,J),this._pointLabels=this.getLabels().map((G,q)=>{let X=O1(this.options.pointLabels.callback,[G,q],this);return X||X===0?X:""}).filter((G,q)=>this.chart.getDataVisibility(q))}fit(){let J=this.options;if(J.display&&J.pointLabels.display)uE(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(J,G,q,X){this.xCenter+=Math.floor((J-G)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(J,G,q,X))}getIndexAngle(J){let G=e5/(this._pointLabels.length||1),q=this.options.startAngle||0;return i5(J*G+C2(q))}getDistanceFromCenterForValue(J){if(G1(J))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-J)*G;return(J-this.min)*G}getValueForDistanceFromCenter(J){if(G1(J))return NaN;let G=J/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(J){let G=this._pointLabels||[];if(J>=0&&J<G.length){let q=G[J];return aE(this.getContext(),J,q)}}getPointPosition(J,G,q=0){let X=this.getIndexAngle(J)-t5+q;return{x:Math.cos(X)*G+this.xCenter,y:Math.sin(X)*G+this.yCenter,angle:X}}getPointPositionForValue(J,G){return this.getPointPosition(J,this.getDistanceFromCenterForValue(G))}getBasePosition(J){return this.getPointPositionForValue(J||0,this.getBaseValue())}getPointLabelPosition(J){let{left:G,top:q,right:X,bottom:N}=this._pointLabelItems[J];return{left:G,top:q,right:X,bottom:N}}drawBackground(){let{backgroundColor:J,grid:{circular:G}}=this.options;if(J){let q=this.ctx;q.save(),q.beginPath(),E_(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),q.closePath(),q.fillStyle=J,q.fill(),q.restore()}}drawGrid(){let J=this.ctx,G=this.options,{angleLines:q,grid:X,border:N}=G,K=this._pointLabels.length,H,F,W;if(G.pointLabels.display)nE(this,K);if(X.display)this.ticks.forEach((M,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(M.value);let _=this.getContext(R),P=X.setContext(_),O=N.setContext(_);oE(this,P,F,K,O)}});if(q.display){J.save();for(H=K-1;H>=0;H--){let M=q.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=M;if(!_||!R)continue;J.lineWidth=_,J.strokeStyle=R,J.setLineDash(M.borderDash),J.lineDashOffset=M.borderDashOffset,F=this.getDistanceFromCenterForValue(G.reverse?this.min:this.max),W=this.getPointPosition(H,F),J.beginPath(),J.moveTo(this.xCenter,this.yCenter),J.lineTo(W.x,W.y),J.stroke()}J.restore()}}drawBorder(){}drawLabels(){let J=this.ctx,G=this.options,q=G.ticks;if(!q.display)return;let X=this.getIndexAngle(0),N,K;J.save(),J.translate(this.xCenter,this.yCenter),J.rotate(X),J.textAlign="center",J.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!G.reverse)return;let W=q.setContext(this.getContext(F)),M=Q5(W.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),W.showLabelBackdrop){J.font=M.string,K=J.measureText(H.label).width,J.fillStyle=W.backdropColor;let R=T5(W.backdropPadding);J.fillRect(-K/2-R.left,-N-M.size/2-R.top,K+R.width,M.size+R.height)}D8(J,H.label,0,-N,M,{color:W.color,strokeColor:W.textStrokeColor,strokeWidth:W.textStrokeWidth})}),J.restore()}drawTitle(){}}var c3={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}},Q6=Object.keys(c3);function aR(J,G){return J-G}function iR(J,G){if(G1(G))return null;let q=J._adapter,{parser:X,round:N,isoWeekday:K}=J._parseOpts,H=G;if(typeof X==="function")H=X(H);if(!u1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(N)H=N==="week"&&(H$(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,N);return+H}function tR(J,G,q,X){let N=Q6.length;for(let K=Q6.indexOf(J);K<N-1;++K){let H=c3[Q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-G)/(F*H.size))<=X)return Q6[K]}return Q6[N-1]}function tE(J,G,q,X,N){for(let K=Q6.length-1;K>=Q6.indexOf(q);K--){let H=Q6[K];if(c3[H].common&&J._adapter.diff(N,X,H)>=G-1)return H}return Q6[q?Q6.indexOf(q):0]}function eE(J){for(let G=Q6.indexOf(J)+1,q=Q6.length;G<q;++G)if(c3[Q6[G]].common)return Q6[G]}function eR(J,G,q){if(!q)J[G]=!0;else if(q.length){let{lo:X,hi:N}=I3(q,G),K=q[X]>=G?q[X]:q[N];J[K]=!0}}function $S(J,G,q,X){let N=J._adapter,K=+N.startOf(G[0].value,X),H=G[G.length-1].value,F,W;for(F=K;F<=H;F=+N.add(F,1,X))if(W=q[F],W>=0)G[W].major=!0;return G}function $_(J,G,q){let X=[],N={},K=G.length,H,F;for(H=0;H<K;++H)F=G[H],N[F]=H,X.push({value:F,major:!1});return K===0||!q?X:$S(J,X,N,q)}class lU extends x7{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(J){super(J);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(J,G={}){let q=J.time||(J.time={}),X=this._adapter=new fV._date(J.adapters.date);X.init(G),U$(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(J),this._normalized=G.normalized}parse(J,G){if(J===void 0)return null;return iR(this,J)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let J=this.options,G=this._adapter,q=J.time.unit||"day",{min:X,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(W){if(!K&&!isNaN(W.min))X=Math.min(X,W.min);if(!H&&!isNaN(W.max))N=Math.max(N,W.max)}if(!K||!H){if(F(this._getLabelBounds()),J.bounds!=="ticks"||J.ticks.source!=="labels")F(this.getMinMax(!1))}X=u1(X)&&!isNaN(X)?X:+G.startOf(Date.now(),q),N=u1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),q)+1,this.min=Math.min(X,N-1),this.max=Math.max(X+1,N)}_getLabelBounds(){let J=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(J.length)G=J[0],q=J[J.length-1];return{min:G,max:q}}buildTicks(){let J=this.options,G=J.time,q=J.ticks,X=q.source==="labels"?this.getLabelTimestamps():this._generate();if(J.bounds==="ticks"&&X.length)this.min=this._userMin||X[0],this.max=this._userMax||X[X.length-1];let N=this.min,K=this.max,H=fw(X,N,K);if(this._unit=G.unit||(q.autoSkip?tR(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):tE(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:eE(this._unit),this.initOffsets(X),J.reverse)H.reverse();return $_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((J)=>+J.value))}initOffsets(J=[]){let G=0,q=0,X,N;if(this.options.offset&&J.length){if(X=this.getDecimalForValue(J[0]),J.length===1)G=1-X;else G=(this.getDecimalForValue(J[1])-X)/2;if(N=this.getDecimalForValue(J[J.length-1]),J.length===1)q=N;else q=(N-this.getDecimalForValue(J[J.length-2]))/2}let K=J.length<3?0.5:0.25;G=$6(G,0,K),q=$6(q,0,K),this._offsets={start:G,end:q,factor:1/(G+1+q)}}_generate(){let J=this._adapter,G=this.min,q=this.max,X=this.options,N=X.time,K=N.unit||tR(N.minUnit,G,q,this._getLabelCapacity(G)),H=n0(X.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,W=H$(F)||F===!0,M={},R=G,_,P;if(W)R=+J.startOf(R,"isoWeek",F);if(R=+J.startOf(R,W?"day":K),J.diff(q,G,K)>1e5*H)throw Error(G+" and "+q+" are too far apart with stepSize of "+H+" "+K);let O=X.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<q;_=+J.add(_,H,K),P++)eR(M,_,O);if(_===q||X.bounds==="ticks"||P===1)eR(M,_,O);return Object.keys(M).sort(aR).map((E)=>+E)}getLabelForValue(J){let G=this._adapter,q=this.options.time;if(q.tooltipFormat)return G.format(J,q.tooltipFormat);return G.format(J,q.displayFormats.datetime)}format(J,G){let X=this.options.time.displayFormats,N=this._unit,K=G||X[N];return this._adapter.format(J,K)}_tickFormatFunction(J,G,q,X){let N=this.options,K=N.ticks.callback;if(K)return O1(K,[J,G,q],this);let H=N.time.displayFormats,F=this._unit,W=this._majorUnit,M=F&&H[F],R=W&&H[W],_=q[G],P=W&&R&&_&&_.major;return this._adapter.format(J,X||(P?R:M))}generateTickLabels(J){let G,q,X;for(G=0,q=J.length;G<q;++G)X=J[G],X.label=this._tickFormatFunction(X.value,G,J)}getDecimalForValue(J){return J===null?NaN:(J-this.min)/(this.max-this.min)}getPixelForValue(J){let G=this._offsets,q=this.getDecimalForValue(J);return this.getPixelForDecimal((G.start+q)*G.factor)}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return this.min+q*(this.max-this.min)}_getLabelSize(J){let G=this.options.ticks,q=this.ctx.measureText(J).width,X=C2(this.isHorizontal()?G.maxRotation:G.minRotation),N=Math.cos(X),K=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*N+H*K,h:q*K+H*N}}_getLabelCapacity(J){let G=this.options.time,q=G.displayFormats,X=q[G.unit]||q.millisecond,N=this._tickFormatFunction(J,0,$_(this,[J],this._majorUnit),X),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let J=this._cache.data||[],G,q;if(J.length)return J;let X=this.getMatchingVisibleMetas();if(this._normalized&&X.length)return this._cache.data=X[0].controller.getAllParsedValues(this);for(G=0,q=X.length;G<q;++G)J=J.concat(X[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(J)}getLabelTimestamps(){let J=this._cache.labels||[],G,q;if(J.length)return J;let X=this.getLabels();for(G=0,q=X.length;G<q;++G)J.push(iR(this,X[G]));return this._cache.labels=this._normalized?J:this.normalize(J)}normalize(J){return NU(J.sort(aR))}}function h3(J,G,q){let X=0,N=J.length-1,K,H,F,W;if(q){if(G>=J[X].pos&&G<=J[N].pos)({lo:X,hi:N}=V8(J,"pos",G));({pos:K,time:F}=J[X]),{pos:H,time:W}=J[N]}else{if(G>=J[X].time&&G<=J[N].time)({lo:X,hi:N}=V8(J,"time",G));({time:K,pos:F}=J[X]),{time:H,pos:W}=J[N]}let M=H-K;return M?F+(W-F)*(G-K)/M:F}class ZS extends lU{static id="timeseries";static defaults=lU.defaults;constructor(J){super(J);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let J=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(J);this._minPos=h3(G,this.min),this._tableRange=h3(G,this.max)-this._minPos,super.initOffsets(J)}buildLookupTable(J){let{min:G,max:q}=this,X=[],N=[],K,H,F,W,M;for(K=0,H=J.length;K<H;++K)if(W=J[K],W>=G&&W<=q)X.push(W);if(X.length<2)return[{time:G,pos:0},{time:q,pos:1}];for(K=0,H=X.length;K<H;++K)if(M=X[K+1],F=X[K-1],W=X[K],Math.round((M+F)/2)!==W)N.push({time:W,pos:K/(H-1)});return N}_generate(){let J=this.min,G=this.max,q=super.getDataTimestamps();if(!q.includes(J)||!q.length)q.splice(0,0,J);if(!q.includes(G)||q.length===1)q.push(G);return q.sort((X,N)=>X-N)}_getTimestampsForTable(){let J=this._cache.all||[];if(J.length)return J;let G=this.getDataTimestamps(),q=this.getLabelTimestamps();if(G.length&&q.length)J=this.normalize(G.concat(q));else J=G.length?G:q;return J=this._cache.all=J,J}getDecimalForValue(J){return(h3(this._table,J)-this._minPos)/this._tableRange}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return h3(this._table,q*this._tableRange+this._minPos,!0)}}m7.register(ZK,JK,tU,W$,iU,I_,A_,O_,T_);var qP=s(f_(),1);var j2=s(L1(),1);var n3=s(L1(),1);var r3=(...J)=>J.filter((G,q,X)=>{return Boolean(G)&&G.trim()!==""&&X.indexOf(G)===q}).join(" ").trim();var y_=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var g_=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,q,X)=>X?X.toUpperCase():q.toLowerCase());var qK=(J)=>{let G=g_(J);return G.charAt(0).toUpperCase()+G.slice(1)};var TJ=s(L1(),1);var s3={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 h_=(J)=>{for(let G in J)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var M$=s(L1(),1),NS=M$.createContext({});var u_=()=>M$.useContext(NS);var x_=TJ.forwardRef(({color:J,size:G,strokeWidth:q,absoluteStrokeWidth:X,className:N="",children:K,iconNode:H,...F},W)=>{let{size:M=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:O=""}=u_()??{},E=X??_?Number(q??R)*24/Number(G??M):q??R;return TJ.createElement("svg",{ref:W,...s3,width:G??M??s3.width,height:G??M??s3.height,stroke:J??P,strokeWidth:E,className:r3("lucide",O,N),...!K&&!h_(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,I])=>TJ.createElement(V,I)),...Array.isArray(K)?K:[K]])});var C0=(J,G)=>{let q=n3.forwardRef(({className:X,...N},K)=>n3.createElement(x_,{ref:K,iconNode:G,className:r3(`lucide-${y_(qK(J))}`,`lucide-${J}`,X),...N}));return q.displayName=qK(J),q};var US=[["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"}]],b8=C0("circle-alert",US);var KS=[["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"}]],f8=C0("face-slightly-smiling",KS);var BS=[["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"}]],CJ=C0("activity",BS);var HS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],OJ=C0("check",HS);var FS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],IJ=C0("chevron-down",FS);var WS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],VJ=C0("chevron-up",WS);var zS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],AJ=C0("clock",zS);var MS=[["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"}]],p7=C0("coins",MS);var wS=[["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"}]],EJ=C0("copy",wS);var RS=[["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"}]],SJ=C0("cpu",RS);var _S=[["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"}]],DJ=C0("folder",_S);var LS=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],jJ=C0("gauge",LS);var PS=[["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"}]],vJ=C0("hash",PS);var TS=[["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"}]],kJ=C0("inbox",TS);var CS=[["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"}]],bJ=C0("layout-dashboard",CS);var OS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],fJ=C0("menu",OS);var IS=[["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"}]],yJ=C0("monitor",IS);var VS=[["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"}]],gJ=C0("moon",VS);var AS=[["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"}]],hJ=C0("plug",AS);var ES=[["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"}]],uJ=C0("refresh-cw",ES);var SS=[["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"}]],xJ=C0("star",SS);var DS=[["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"}]],mJ=C0("sun",DS);var jS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],dJ=C0("trending-up",jS);var vS=[["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"}]],pJ=C0("wrench",vS);var kS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],c7=C0("x",kS);var bS=[["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"}]],cJ=C0("zap",bS);var UL=s(L1(),1);var lJ=[{id:"overview",label:"Overview",icon:bJ},{id:"requests",label:"Requests",icon:CJ},{id:"errors",label:"Errors",icon:b8},{id:"models",label:"Models",icon:SJ},{id:"providers",label:"Providers",icon:hJ},{id:"tools",label:"Tools",icon:pJ},{id:"costs",label:"Costs",icon:p7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:f8},{id:"projects",label:"Projects",icon:DJ},{id:"gain",label:"Gain",icon:dJ}];var l6=s(U0(),1);function YK({activeSection:J,onSectionChange:G,className:q=""}){return l6.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[l6.jsxDEV("div",{className:"stats-nav-rail-header",children:l6.jsxDEV("div",{className:"stats-logo-container",children:[l6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),l6.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),l6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lJ.map((X)=>{let N=X.id===J,K=X.icon;return l6.jsxDEV("button",{type:"button",onClick:()=>G(X.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[l6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),l6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:X.label},void 0,!1,void 0,this)]},X.id,!0,void 0,this)})},void 0,!1,void 0,this),l6.jsxDEV("div",{className:"stats-nav-rail-footer",children:l6.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 XK=s(U0(),1),yS=[{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 m_({value:J,onChange:G,className:q=""}){return XK.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:yS.map((X)=>{let N=X.value===J;return XK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var NK=s(L1(),1);class d_ extends Error{status;endpoint;constructor(J,G,q){super(q);this.name="ApiError",this.status=J,this.endpoint=G}}async function r6(J,G){let q=await fetch(J,G);if(!q.ok)throw new d_(q.status,J,`HTTP error ${q.status} on ${J}`);return q.json()}async function p_(J="24h",G){return r6(`/api/stats/overview?range=${encodeURIComponent(J)}`,{signal:G})}async function c_(J="24h",G){return r6(`/api/stats/model-dashboard?range=${encodeURIComponent(J)}`,{signal:G})}async function l_(J="24h",G){return r6(`/api/stats/costs?range=${encodeURIComponent(J)}`,{signal:G})}async function o3(J=50,G){return r6(`/api/stats/recent?limit=${J}`,{signal:G})}async function r_(J="24h",G=50,q){return r6(`/api/stats/errors?range=${encodeURIComponent(J)}&limit=${G}`,{signal:q})}async function s_(J,G){return r6(`/api/request/${J}`,{signal:G})}async function n_(J){return r6("/api/sync",{signal:J})}async function o_(J="24h",G){return r6(`/api/stats/behavior?range=${encodeURIComponent(J)}`,{signal:G})}async function a_(J="24h",G){return r6(`/api/stats/folders?range=${encodeURIComponent(J)}`,{signal:G})}async function i_(J="24h",G,q){let X=new URLSearchParams({range:J});if(G)X.set("project",G);return r6(`/api/stats/gain?${X}`,{signal:q})}async function t_(J="24h",G){return r6(`/api/stats/tools?range=${encodeURIComponent(J)}`,{signal:G})}async function e_(J="24h",G){return r6(`/api/stats/providers?range=${encodeURIComponent(J)}`,{signal:G})}var rJ=s(U0(),1);function $L({onSyncStart:J,onSyncComplete:G,className:q=""}){let[X,N]=NK.useState(!1),[K,H]=NK.useState(null),F=async()=>{if(X)return;if(N(!0),H(null),J)J();try{let W=await n_(),M={processed:typeof W?.processed==="number"?W.processed:0,files:typeof W?.files==="number"?W.files:0,totalMessages:typeof W?.totalMessages==="number"?W.totalMessages:0};if(H({type:"success",message:`Synced: ${M.processed} new request${M.processed===1?"":"s"} found.`}),G)G({success:!0,data:M})}catch(W){let M=W instanceof Error?W.message:String(W);if(H({type:"error",message:`Sync failed: ${M}`}),G)G({success:!1,error:M})}finally{N(!1)}};return rJ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[K&&rJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rJ.jsxDEV("button",{type:"button",onClick:F,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[rJ.jsxDEV(uJ,{size:14,className:`stats-sync-icon ${X?"stats-spin":""}`},void 0,!1,void 0,this),X?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var a3=s(L1(),1),ZL="omp-stats-theme",JL="(prefers-color-scheme: dark)";function gS(){if(typeof localStorage>"u")return"system";let J=localStorage.getItem(ZL);return J==="light"||J==="dark"||J==="system"?J:"system"}function QL(){if(typeof window>"u")return"dark";return window.matchMedia(JL).matches?"dark":"light"}var r7=gS(),sJ=r7==="system"?QL():r7,UK=new Set;function GL(){for(let J of UK)J()}function KK(){if(sJ=r7==="system"?QL():r7,typeof document<"u")document.documentElement.dataset.theme=sJ,document.documentElement.style.colorScheme=sJ}if(typeof window<"u")KK(),window.matchMedia(JL).addEventListener("change",()=>{if(r7==="system")KK(),GL()});function hS(J){if(r7=J,typeof localStorage<"u")localStorage.setItem(ZL,J);KK(),GL()}function BK(J){return UK.add(J),()=>UK.delete(J)}function z5(){return a3.useSyncExternalStore(BK,()=>sJ,()=>"dark")}function qL(){let J=a3.useSyncExternalStore(BK,()=>r7,()=>"system"),G=a3.useSyncExternalStore(BK,()=>sJ,()=>"dark");return{preference:J,resolved:G,setPreference:hS}}var HK=s(U0(),1),uS={system:"light",light:"dark",dark:"system"},xS={system:yJ,light:mJ,dark:gJ},YL={system:"System theme",light:"Light theme",dark:"Dark theme"};function XL(){let{preference:J,setPreference:G}=qL(),q=xS[J];return HK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(uS[J]),"aria-label":`${YL[J]} (click to switch)`,title:`${YL[J]} — click to switch`,children:HK.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s6=s(U0(),1);function NL({activeSection:J,range:G,onRangeChange:q,updatedAt:X,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let M=lJ.find((_)=>_.id===J)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return s6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[s6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&s6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:s6.jsxDEV(fJ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("h1",{className:"stats-page-title",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s6.jsxDEV("div",{className:"stats-top-bar-right",children:[s6.jsxDEV("div",{className:"stats-top-bar-meta",children:s6.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:R(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV(m_,{value:G,onChange:q},void 0,!1,void 0,this),s6.jsxDEV(XL,{},void 0,!1,void 0,this),s6.jsxDEV($L,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=s(U0(),1);function KL({activeSection:J,onSectionChange:G,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[W,M]=UL.useState(!1),R=(_)=>{G(_),M(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),W&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>M(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[j5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[j5.jsxDEV("div",{className:"stats-logo-container",children:[j5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),j5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV("button",{type:"button",onClick:()=>M(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j5.jsxDEV("div",{className:"stats-main-pane",children:[j5.jsxDEV(NL,{activeSection:J,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>M(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:F},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 S2=s(L1(),1),mS=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],BL=["1h","24h","7d","30d","90d","all"];function FK(J){let G=J.replace(/^#\/?/,""),[q,X]=G.split("?"),N=mS.includes(q)?q:"overview",K="24h";if(X){let F=new URLSearchParams(X).get("range");if(BL.includes(F))K=F}return{section:N,range:K}}function HL(){let[J,G]=S2.useState(()=>FK(window.location.hash));S2.useEffect(()=>{let K=()=>{G(FK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let q=S2.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),X=S2.useCallback((K)=>{q(K,J.range)},[J.range,q]),N=S2.useCallback((K)=>{let H=BL.includes(K)?K:"24h";q(J.section,H)},[J.section,q]);return S2.useEffect(()=>{let K=window.location.hash,H=FK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:J.section,setSection:X,range:J.range,setRange:N}}var FL=["January","February","March","April","May","June","July","August","September","October","November","December"],WL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dS=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function y8(J,G=2){return String(J).padStart(G,"0")}function pS(J,G){let q=J.getMonth(),X=J.getDay(),N=J.getHours(),K=N%12||12;switch(G){case"yyyy":return y8(J.getFullYear(),4);case"yy":return y8(J.getFullYear()%100);case"MMMM":return FL[q];case"MMM":return FL[q].slice(0,3);case"MM":return y8(q+1);case"M":return String(q+1);case"dd":return y8(J.getDate());case"d":return String(J.getDate());case"EEEE":return WL[X];case"EEE":return WL[X].slice(0,3);case"HH":return y8(N);case"H":return String(N);case"hh":return y8(K);case"h":return String(K);case"mm":return y8(J.getMinutes());case"m":return String(J.getMinutes());case"ss":return y8(J.getSeconds());case"s":return String(J.getSeconds());case"a":return N<12?"AM":"PM"}}function ML(J){let G=J instanceof Date?new Date(J.getTime()):new Date(J);if(Number.isNaN(G.getTime()))throw RangeError("Invalid time value");return G}function K4(J,G){let q=ML(J),X="";for(let N=0;N<G.length;){if(G[N]==="'"){if(G[N+1]==="'"){X+="'",N+=2;continue}N++;while(N<G.length){if(G[N]!=="'"){X+=G[N++];continue}if(G[N+1]==="'"){X+="'",N+=2;continue}N++;break}continue}let K=G.slice(N),H=dS.find((W)=>K.startsWith(W));if(H){X+=pS(q,H),N+=H.length;continue}let F=G[N++];if(/[A-Za-z]/.test(F))throw RangeError(`Format string contains an unescaped latin alphabet character \`${F}\``);X+=F}return X}function g8(J,G){return`${J} ${J===1?G:`${G}s`}`}function cS(J,G){let q=(G.getFullYear()-J.getFullYear())*12+G.getMonth()-J.getMonth();if(q===0)return 0;let X=new Date(J);X.setDate(1),X.setFullYear(J.getFullYear(),J.getMonth()+q,1);let N=new Date(X.getFullYear(),X.getMonth()+1,0).getDate();if(X.setDate(Math.min(J.getDate(),N)),X.getTime()>G.getTime())q--;return q}function zL(J,G){let q=(G.getTime()-J.getTime())/1000,X=(G.getTimezoneOffset()-J.getTimezoneOffset())*60,N=Math.round((q-X)/60);if(N<2)return N===0?"less than a minute":"1 minute";if(N<45)return g8(N,"minute");if(N<90)return"about 1 hour";if(N<1440)return`about ${g8(Math.round(N/60),"hour")}`;if(N<2520)return"1 day";if(N<43200)return g8(Math.round(N/1440),"day");if(N<86400)return`about ${g8(Math.round(N/43200),"month")}`;let K=cS(J,G);if(K<12)return g8(Math.round(N/43200),"month");let H=Math.trunc(K/12),F=K%12;if(F<3)return`about ${g8(H,"year")}`;if(F<9)return`over ${g8(H,"year")}`;return`almost ${g8(H+1,"year")}`}function wL(J,G={}){let q=ML(J),X=new Date(Date.now()),N=q.getTime()>X.getTime(),K=N?zL(X,q):zL(q,X);if(!G.addSuffix)return K;return N?`in ${K}`:`${K} ago`}var X5=s(L1(),1);var WK=s(RL(),1),V6=s(L1(),1);var LL="label";function _L(J,G){if(typeof J==="function")J(G);else if(J)J.current=G}function rS(J,G){let q=J.options;if(q&&G)Object.assign(q,G)}function PL(J,G){J.labels=G}function TL(J,G,q=LL){let X=[];J.datasets=G.map((N)=>{let K=J.datasets.find((H)=>H[q]===N[q]);if(!K||!N.data||X.includes(K))return{...N};return X.push(K),Object.assign(K,N),K})}function sS(J,G=LL){let q={labels:[],datasets:[]};return PL(q,J.labels),TL(q,J.datasets,G),q}function nS(J,G){let{height:q=150,width:X=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:W,plugins:M=[],fallbackContent:R,updateMode:_,...P}=J,O=V6.useRef(null),E=V6.useRef(null),V=()=>{if(!O.current)return;E.current=new m7(O.current,{type:H,data:sS(F,K),options:W&&{...W},plugins:M}),_L(G,E.current)},I=()=>{if(_L(G,null),E.current)E.current.destroy(),E.current=null};return V6.useEffect(()=>{if(!N&&E.current&&W)rS(E.current,W)},[N,W]),V6.useEffect(()=>{if(!N&&E.current)PL(E.current.config.data,F.labels)},[N,F.labels]),V6.useEffect(()=>{if(!N&&E.current&&F.datasets)TL(E.current.config.data,F.datasets,K)},[N,F.datasets]),V6.useEffect(()=>{if(!E.current)return;if(N)I(),setTimeout(V);else E.current.update(_)},[N,W,F.labels,F.datasets,_]),V6.useEffect(()=>{if(!E.current)return;I(),setTimeout(V)},[H]),V6.useEffect(()=>{return V(),()=>I()},[]),WK.jsx("canvas",{ref:O,role:"img",height:q,width:X,...P,children:R})}var oS=V6.forwardRef(nS);function CL(J,G){return m7.register(G),V6.forwardRef((q,X)=>WK.jsx(oS,{...q,ref:X,type:J}))}var v5=CL("line",nU),h8=CL("bar",sU);var K1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],s1={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 c4(J){let{chartTheme:G,showLegend:q,defaultLabel:X,formatValue:N,footer:K}=J;return{legend:{display:q,position:"top",align:"start",labels:{color:G.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:G.tooltipBackground,titleColor:G.tooltipTitle,bodyColor:G.tooltipBody,borderColor:G.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??X,W=H.parsed.y??0;return`${F}: ${N(W)}`},...K?{footer:K}:{}}}}}function l4(J){let{chartTheme:G,formatY:q}=J,X={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...X,ticks:{...X.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:X,yScale:N}}function w$(J){return{borderColor:J,backgroundColor:`${J}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function n7(J){return{backgroundColor:J,borderColor:J,borderWidth:0,borderRadius:4,maxBarThickness:56}}function u8(J,G){return J.datasets.map((q,X)=>({label:q.label,data:q.data,...G(X)}))}function i3(J,G,q){if(J.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:N,bucketToValue:K}=q,H=new Map;for(let W of J){let M=H.get(W.timestamp)??X();N(M,W),H.set(W.timestamp,M)}let F=[...H.entries()].sort((W,M)=>W[0]-M[0]);return{labels:F.map(([W])=>K4(new Date(W),"MMM d")),datasets:[{label:G,data:F.map(([,W])=>K(W))}]}}function R$(J,G){if(J.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:N,accumulate:K,bucketToValue:H}=G,F=new Map;for(let j of J){let h=`${j.model}::${j.provider}`,p=F.get(h);if(p)p.weight+=X(j);else F.set(h,{model:j.model,provider:j.provider,weight:X(j)})}let M=[...F.entries()].sort((j,h)=>h[1].weight-j[1].weight).slice(0,q),R=new Set(M.map(([j])=>j)),_=new Map;for(let[,{model:j}]of M)_.set(j,(_.get(j)??0)+1);let P=new Map;for(let[j,{model:h,provider:p}]of M)P.set(j,(_.get(h)??0)>1?`${h} (${p})`:h);let O=[...new Set(J.map((j)=>j.timestamp))].sort((j,h)=>j-h),E=M.map(([j])=>P.get(j)??j);if(J.some((j)=>!R.has(`${j.model}::${j.provider}`)))E.push("Other");let I=new Map;for(let j of O)I.set(j,{});for(let j of J){let h=`${j.model}::${j.provider}`,p=R.has(h)?P.get(h)??j.model:"Other",n=I.get(j.timestamp);if(!n)continue;let a=n[p]??N();K(a,j),n[p]=a}return{labels:O.map((j)=>K4(new Date(j),"MMM d")),datasets:E.map((j)=>({label:j,data:O.map((h)=>{let p=I.get(h)?.[j];return p?H(p):0})}))}}var f1=s(U0(),1);function D2(J){return{borderColor:J,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function t3({timestamps:J,values:G,color:q}){let X={labels:J.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:G,...D2(q)}]};return f1.jsxDEV(v5,{data:X,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 e3(J){return{legend:{display:!0,position:"top",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,cornerRadius:8}}}function OL(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}},min:0}}}function IL(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:J.tick,font:{size:11}}}}}function $q({title:J,subtitle:G,children:q}){return f1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[f1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[f1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),G?f1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),f1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aS(J){if(J==="right")return"text-right";if(J==="center")return"text-center";return""}function Zq({columns:J,gridTemplate:G}){return f1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:G},children:[J.map((q)=>f1.jsxDEV("div",{className:aS(q.align),children:q.label},q.label,!1,void 0,this)),f1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Jq({children:J}){return f1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:J},void 0,!1,void 0,this)}function Qq({model:J,provider:G}){return f1.jsxDEV("div",{children:[f1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),f1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq({gridTemplate:J,cells:G,trendCell:q,isExpanded:X,onToggle:N,expandedContent:K}){return f1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[f1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:f1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:J},children:[G,f1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),f1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?f1.jsxDEV(VJ,{size:16},void 0,!1,void 0,this):f1.jsxDEV(IJ,{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),X?f1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function qq(){return f1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Yq({message:J="No data available"}){return f1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:J},void 0,!1,void 0,this)}function D0(J){return J.toLocaleString()}function X1(J){return J.toLocaleString(void 0,{notation:"compact"})}function z1(J,G){if(J===0)return"$0";let q=G!==void 0?G:J>0&&J<0.01?4:2;return`$${J.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function S1(J,G=1){return`${(J*100).toFixed(G)}%`}function k5(J,G){if(J===null)return"-";let q=J/1000,X=G!==void 0?G:q<1?2:1;return`${q.toFixed(X)}s`}function Xq(J){if(J===null)return"-";return J.toFixed(1)}function G6(J){return wL(new Date(J),{addSuffix:!0})}function zK(J){if(J>=1e9)return`${(J/1e9).toFixed(1)} GB`;if(J>=1e6)return`${(J/1e6).toFixed(1)} MB`;if(J>=1000)return`${(J/1000).toFixed(1)} KB`;return`${J} B`}var C5=s(L1(),1),x8=new Map,iS=64;function n1(J,G,q){let X=JSON.stringify(J),[N,K]=C5.useState(()=>x8.get(X)?.data??null),[H,F]=C5.useState(null),[W,M]=C5.useState(()=>!x8.has(X)),[R,_]=C5.useState(!1),[P,O]=C5.useState(()=>x8.get(X)?.updatedAt??null),E=C5.useRef(G);E.current=G;let V=C5.useRef(X);V.current=X;let I=q?.enabled??!0,j=q?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let n=C5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)_(!0);else M(!0),K(null);F(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(x8.set(V.current,{data:i,updatedAt:Date.now()}),x8.size>iS){let X0=x8.keys().next().value;if(X0!==void 0)x8.delete(X0)}K(i),O(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(M(!1),_(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!I){M(!1),_(!1);return}let Q0=x8.get(X);if(Q0)K(Q0.data),O(Q0.updatedAt),M(!1),n(!0);else n(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,I,n]),C5.useEffect(()=>{if(!I||!j)return;let Q0=setInterval(()=>{if(document.hidden)return;n(!0)},j);return()=>{clearInterval(Q0)}},[I,j,n]);let a=C5.useCallback(async()=>{await n(!0)},[n]);return{data:N,error:H,loading:W,refreshing:R,refetch:a,updatedAt:P}}var VL=3600000,Nq=24*VL,tS=300000,AL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:tS,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:VL,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Nq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Nq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Nq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Nq,bucketCount:0,tickFormat:"MMM d"}};function o7(J){return AL[J]}function nJ(J,G){return K4(new Date(J),AL[G].tickFormat)}var eS=["main","subagent","advisor"];function Uq(J){return J.totalInputTokens+J.totalOutputTokens+J.totalCacheReadTokens+J.totalCacheWriteTokens}function EL(J){let G=new Map;for(let H of J)G.set(H.agentType,H);let q=eS.map((H)=>G.get(H)).filter((H)=>H!==void 0),X=q.reduce((H,F)=>H+Uq(F),0),N=q.reduce((H,F)=>H+F.totalCost,0),K=q.map((H)=>{let F=Uq(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:X>0?F/X:0}});return{totalTokens:X,totalCost:N,segments:K}}function SL(J){let G=J.reduce((F,W)=>F+W.cost,0),q=new Set(J.map((F)=>F.timestamp)).size,X=q>0?G/q:0,N=new Map;for(let F of J)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,W]of N)if(W>H)K=F,H=W;return{totalCost:G,avgDailyCost:X,topModelName:K,topModelCost:H}}function DL(J,G){if(J.length===0)return new Map;let q=o7(G),X=q.bucketMs,N=q.bucketCount,K=N>0?(()=>{let W=J.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(W>0?W:Math.floor(Date.now()/X)*X)-(N-1)*X;return Array.from({length:N},(_,P)=>R+P*X)})():Array.from(new Set(J.map((W)=>W.timestamp))).sort((W,M)=>W-M),H=new Map(K.map((W,M)=>[W,M])),F=new Map;for(let W of J){let M=`${W.model}::${W.provider}`,R=F.get(M);if(!R)R={label:`${W.model} (${W.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(M,R);let _=H.get(W.timestamp);if(_===void 0)continue;R.data[_]={timestamp:W.timestamp,avgTtftSeconds:W.avgTtft!==null?W.avgTtft/1000:null,avgTokensPerSecond:W.avgTokensPerSecond,requests:W.requests}}return F}function jL(J,G){let q=J.totalNegation+J.totalRepetition+J.totalBlame,X=new Map;for(let K of G){let H=`${K.model}::${K.provider}`,F=X.get(H),W=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=W;else X.set(H,{model:K.model,provider:K.provider,score:W})}let N=null;for(let K of X.values())if(!N||K.score>N.score)N=K;return{totalMessages:J.totalMessages,totalYelling:J.totalYelling,totalProfanity:J.totalProfanity,totalAnguish:J.totalAnguish,totalFrustration:q,highestFrictionModel:N}}function vL(J){let G=[...J].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),q=G.reduce((N,K)=>Math.max(N,K.totalCost),0),X=G.reduce((N,K)=>Math.max(N,K.totalRequests),0);return G.map((N)=>({...N,costPercentage:q>0?N.totalCost/q*100:0,requestsPercentage:X>0?N.totalRequests/X*100:0}))}function kL(J){let G=J.reduce((q,X)=>Math.max(q,X.calls),0);return J.map((q)=>({...q,errorRate:q.calls>0?q.errors/q.calls:0,callsPercentage:G>0?q.calls/G*100:0}))}var Kq=s(U0(),1);function _$({message:J="No data available",icon:G=kJ,className:q=""}){return Kq.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[Kq.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Kq.jsxDEV("p",{className:"stats-empty-state-message",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var L$=s(U0(),1);function bL({error:J,onRetry:G,className:q=""}){return L$.jsxDEV("div",{className:`stats-error-state ${q}`,children:L$.jsxDEV("div",{className:"stats-error-state-content",children:[L$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),J&&L$.jsxDEV("p",{className:"stats-error-state-message",children:J.message},void 0,!1,void 0,this),G&&L$.jsxDEV("button",{type:"button",onClick:G,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 fL=s(U0(),1);function q6({variant:J="text",width:G,height:q,className:X=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return fL.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":J,style:N},void 0,!1,void 0,this)}var A6=s(U0(),1);function y1({loading:J,error:G,data:q,empty:X=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(G&&q===null)return A6.jsxDEV(bL,{error:G,onRetry:H},void 0,!1,void 0,this);if(J&&q===null){if(K)return A6.jsxDEV(A6.Fragment,{children:K},void 0,!1,void 0,this);return A6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[A6.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!J&&(X||q===null))return A6.jsxDEV(_$,{message:N},void 0,!1,void 0,this);return A6.jsxDEV(A6.Fragment,{children:F},void 0,!1,void 0,this)}var Y6=s(U0(),1);function X6({columns:J,data:G,keyExtractor:q,onRowClick:X,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,W)=>{if(X&&(F.key==="Enter"||F.key===" "))F.preventDefault(),X(W)};if(G.length===0)return Y6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Y6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Y6.jsxDEV("div",{className:"stats-table-mobile-only",children:Y6.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((F)=>{let W=String(q(F));return Y6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,X?()=>X(F):void 0)},W,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Y6.jsxDEV("table",{className:"stats-table",children:[Y6.jsxDEV("thead",{children:Y6.jsxDEV("tr",{children:J.map((F)=>{let W=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("th",{className:W,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("tbody",{children:G.map((F)=>{let W=String(q(F)),M=typeof X==="function",R=["stats-table-tr",M?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Y6.jsxDEV("tr",{className:R,onClick:M?()=>X(F):void 0,onKeyDown:M?(_)=>H(_,F):void 0,tabIndex:M?0:void 0,role:M?"button":void 0,children:J.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.key,!1,void 0,this)})},W,!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 a7=s(L1(),1),n6=s(U0(),1);function MK({data:J,title:G,initialCollapsed:q=!1}){let[X,N]=a7.useState(q),[K,H]=a7.useState(!1),F=a7.useRef(0),W=JSON.stringify(J,null,2);return a7.useEffect(()=>()=>window.clearTimeout(F.current),[]),n6.jsxDEV("div",{className:"stats-json-block",children:[n6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!X),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[n6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),n6.jsxDEV("div",{className:"stats-json-actions",children:[n6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(W),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?n6.jsxDEV(OJ,{size:13},void 0,!1,void 0,this):n6.jsxDEV(EJ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),n6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":X,children:X?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!X&&n6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:n6.jsxDEV("pre",{className:"stats-json-block-content",children:n6.jsxDEV("code",{children:W},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var y0=s(U0(),1);function yL({stats:J}){let G=Uq(J);return y0.jsxDEV("div",{className:"stats-metric-cluster",children:[y0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[y0.jsxDEV("div",{className:"stats-metric-card primary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:z1(J.totalCost,J.totalCost>0&&J.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card primary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:D0(J.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.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:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Savings"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:S1(J.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card primary",title:"Prompt input served from cache: cache reads / (uncached input + cache reads)",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:S1(J.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card primary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:S1(J.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[y0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:X1(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:D0(J.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:Xq(J.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:k5(J.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"stats-metric-card secondary",children:[y0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"stats-metric-value",children:k5(J.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 m8=s(U0(),1);function Y1({title:J,subtitle:G,actions:q,children:X,className:N="",...K}){return m8.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(J||G||q)&&m8.jsxDEV("div",{className:"stats-panel-header",children:[m8.jsxDEV("div",{className:"stats-panel-header-titles",children:[J&&m8.jsxDEV("h3",{className:"stats-panel-title",children:J},void 0,!1,void 0,this),G&&m8.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&m8.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m8.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=s(L1(),1);var gL=s(U0(),1);function O5({variant:J,children:G,className:q=""}){return gL.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":J,children:G},void 0,!1,void 0,this)}var M0=s(U0(),1);function hL({id:J,onClose:G}){let[q,X]=r4.useState(null),[N,K]=r4.useState(!1),[H,F]=r4.useState(null),W=r4.useRef(null),M=r4.useRef(null);if(r4.useEffect(()=>{if(J===null){X(null);return}W.current=document.activeElement,K(!0),F(null),X(null);let _=new AbortController;return s_(J,_.signal).then((P)=>{if(_.signal.aborted)return;X(P),setTimeout(()=>M.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[J]),r4.useEffect(()=>{if(J===null)return;let _=(P)=>{if(P.key==="Escape")G()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),W.current)W.current.focus()}},[J,G]),J===null)return null;return M0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)G()},role:"presentation",children:M0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[M0.jsxDEV("div",{className:"stats-drawer-header",children:[M0.jsxDEV("div",{className:"stats-drawer-header-left",children:[M0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&M0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",J]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("button",{ref:M,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:M0.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&M0.jsxDEV("div",{className:"stats-drawer-loading",children:[M0.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&M0.jsxDEV("div",{className:"stats-drawer-error",children:[M0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),M0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&M0.jsxDEV("div",{className:"stats-drawer-content",children:[M0.jsxDEV("div",{className:"stats-drawer-status-card",children:[M0.jsxDEV("div",{className:"stats-drawer-status-row",children:[M0.jsxDEV("div",{children:[M0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV(O5,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&M0.jsxDEV("div",{className:"stats-drawer-error-block",children:[M0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-error-text",children:q.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(p7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:z1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(xJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:D0(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(vJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:D0(q.usage.totalTokens)},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[D0(q.usage.input)," in · ",D0(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(AJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:k5(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(cJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:k5(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(jJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),M0.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),M0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[M0.jsxDEV(MK,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),M0.jsxDEV(MK,{data:q,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 wK=s(U0(),1);function i7({options:J,value:G,onChange:q,className:X=""}){return wK.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:J.map((N)=>{let K=N.value===G;return wK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>q(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=s(U0(),1);function cL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["behavior",G,q],(H)=>o_(G,H),{pollMs:30000,enabled:J});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(y1,{loading:K,error:N,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV($D,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(ZD,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(JD,{models:X.byModel,behaviorSeries:X.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 Bq(J,G){if(G<=0)return;return`${(J/G).toFixed(2)} / msg`}function $D({overall:J,behaviorSeries:G}){let q=X5.useMemo(()=>jL(J,G),[J,G]),X=J.totalMessages,N=[{label:"User Messages",value:D0(J.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:D0(J.totalYelling),sub:Bq(J.totalYelling,X)},{label:"Profanity Hits",value:D0(J.totalProfanity),sub:Bq(J.totalProfanity,X)},{label:"Anguish Signals",value:D0(J.totalAnguish),sub:Bq(J.totalAnguish,X)},{label:"Friction Signals",value:D0(q.totalFrustration),sub:Bq(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${D0(q.highestFrictionModel.score)} hits`:void 0}];return w0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>w0.jsxDEV(Y1,{className:"stats-behavior-summary-card py-3 px-4",children:[w0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&w0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var RK=[{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 uL(J){if(!Number.isFinite(J))return"-";if(J===0)return"0%";if(Math.abs(J)<1)return`${J.toFixed(1)}%`;return`${J.toFixed(0)}%`}function xL(J,G){if(G==="frustration")return J.negation+J.repetition+J.blame;if(G==="total")return J.yelling+J.profanity+J.anguish+J.negation+J.repetition+J.blame;return J[G]}function mL(J,G){if(G<=0)return 0;return J/G*100}function ZD({behaviorSeries:J}){let[G,q]=X5.useState(!1),[X,N]=X5.useState("total"),K=z5(),H=s1[K],F=X5.useMemo(()=>{if(G)return R$(J,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)});let j=RK.find((h)=>h.value===X)?.title??"Hits";return i3(J,j,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)})},[J,G,X]),W=X5.useMemo(()=>{return c4({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:uL})},[H,G]),{sharedScaleBase:M,yScale:R}=X5.useMemo(()=>{return l4({chartTheme:H,formatY:uL})},[H]),_=X5.useMemo(()=>{return RK.find((j)=>j.value===X)?.title??""},[X]),P=X5.useMemo(()=>{if(!G)return null;return{labels:F.labels,datasets:u8(F,(j)=>w$(K1[j%K1.length]))}},[F,G]),O=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:M,y:R}}},[W,M,R]),E=X5.useMemo(()=>{if(G)return null;return{labels:F.labels,datasets:u8(F,(j)=>n7(K1[j%K1.length]))}},[F,G]),V=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[W,M,R]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(Y1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(i7,{options:RK.map((j)=>({value:j.value,label:j.label,title:j.title})),value:X,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(i7,{options:I,value:G,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:F.labels.length===0?w0.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):G&&P?w0.jsxDEV(v5,{data:P,options:O},void 0,!1,void 0,this):E?w0.jsxDEV(h8,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dL="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function pL(J){if(J.totalMessages===0)return 0;return(J.totalYelling+J.totalProfanity+J.totalAnguish+J.totalNegation+J.totalRepetition+J.totalBlame)/J.totalMessages}function P$(J,G){if(G===0)return"-";let q=J/G*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function JD({models:J,behaviorSeries:G}){let[q,X]=X5.useState(null),N=z5(),K=s1[N],H=X5.useMemo(()=>GD(G),[G]),F=X5.useMemo(()=>{return[...J].sort((W,M)=>{if(M.totalMessages!==W.totalMessages)return M.totalMessages-W.totalMessages;return pL(M)-pL(W)})},[J]);return w0.jsxDEV($q,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(Zq,{gridTemplate:dL,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),w0.jsxDEV(Jq,{children:[F.map((W,M)=>{let R=`${W.model}::${W.provider}`,_=H.get(R)?.data??[],P=K1[M%K1.length],O=q===R,E=W.totalNegation+W.totalRepetition+W.totalBlame,V=W.totalYelling+W.totalProfanity+W.totalAnguish+E;return w0.jsxDEV(Gq,{gridTemplate:dL,isExpanded:O,onToggle:()=>X(O?null:R),cells:[w0.jsxDEV(Qq,{model:W.model,provider:W.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:D0(W.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalYelling,W.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalProfanity,W.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalAnguish,W.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(E,W.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(V,W.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?w0.jsxDEV(qq,{},void 0,!1,void 0,this):w0.jsxDEV(t3,{timestamps:_.map((I)=>I.timestamp),values:_.map((I)=>I.total),color:P},void 0,!1,void 0,this),expandedContent:w0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[w0.jsxDEV("div",{className:"space-y-4 text-sm",children:[w0.jsxDEV(t7,{label:"Yelling (CAPS)",total:W.totalYelling,messages:W.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Profanity",total:W.totalProfanity,messages:W.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Anguish (!!!, nooo, dude, ..)",total:W.totalAnguish,messages:W.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Negation (no/nope/wrong)",total:W.totalNegation,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Repetition (i meant, still doesnt)",total:W.totalRepetition,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Blame (you didnt, stop X-ing)",total:W.totalBlame,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Avg chars / msg",total:W.totalChars,messages:W.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?w0.jsxDEV(Yq,{},void 0,!1,void 0,this):w0.jsxDEV(QD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?w0.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 t7({label:J,total:G,messages:q,valueClass:X,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=X5.useMemo(()=>{if(q===0)return"-";return N==="rate"?P$(G,q):(G/q).toFixed(0)},[G,q,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:J},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),w0.jsxDEV("span",{className:`font-mono text-xs ${X}`,children:D0(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),w0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},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 Hq={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function QD({data:J,chartTheme:G}){let q=X5.useMemo(()=>{return{labels:J.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:J.map((N)=>N.yelling),...D2(Hq.yelling)},{label:"Profanity",data:J.map((N)=>N.profanity),...D2(Hq.profanity)},{label:"Anguish",data:J.map((N)=>N.anguish),...D2(Hq.anguish)},{label:"Frustration",data:J.map((N)=>N.frustration),...D2(Hq.frustration)}]}},[J]),X=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(G),scales:OL(G)}},[G]);return w0.jsxDEV(v5,{data:q,options:X},void 0,!1,void 0,this)}function GD(J){if(J.length===0)return new Map;let G=[...new Set(J.map((N)=>N.timestamp))].sort((N,K)=>N-K),q=new Map;for(let N of J){let K=`${N.model}::${N.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let X=new Map;for(let[N,K]of q){let H=G.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(N,{data:H})}return X}var o6=s(L1(),1);var N5=s(U0(),1);function lL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["costs",G,q],(H)=>l_(G,H),{pollMs:30000,enabled:J});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(y1,{loading:K,error:N,data:X,children:X&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(qD,{costSeries:X.costSeries},void 0,!1,void 0,this),N5.jsxDEV(ND,{costSeries:X.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 qD({costSeries:J}){let G=o6.useMemo(()=>SL(J),[J]),q=[{label:"Total Cost",value:z1(G.totalCost)},{label:"Average / Day",value:z1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?z1(G.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>N5.jsxDEV(Y1,{className:"stats-cost-overview-card py-4 px-5",children:[N5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),N5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:X.value,children:X.value},void 0,!1,void 0,this),X.sub&&N5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",X.sub]},void 0,!0,void 0,this)]},X.label,!0,void 0,this))},void 0,!1,void 0,this)}var YD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function XD(J){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:q}=G;if(!G.data.datasets[0])return;let N=G.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=J,q.textAlign="center",q.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:W,y:M}=K.getProps(["x","y"],!0);q.fillText(F,W,M-3)}q.restore()}}}function ND({costSeries:J}){let[G,q]=o6.useState(!1),X=z5(),N=s1[X],K=o6.useMemo(()=>{if(G)return R$(J,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total});return i3(J,"Cost",{initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total})},[J,G]),H=o6.useMemo(()=>{return c4({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!G||V.length<2)return;return`Total: $${V.reduce((j,h)=>j+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:F,yScale:W}=o6.useMemo(()=>{return l4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),M=o6.useMemo(()=>{return XD(YD[X])},[X]),R=o6.useMemo(()=>{if(!G)return null;return{labels:K.labels,datasets:u8(K,(V)=>w$(K1[V%K1.length]))}},[K,G]),_=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:W}}},[H,F,W]),P=o6.useMemo(()=>{if(G)return null;return{labels:K.labels,datasets:u8(K,(V)=>n7(K1[V%K1.length]))}},[K,G]),O=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...W,stacked:!0}},layout:{padding:{top:24}}}},[H,F,W]);return N5.jsxDEV(Y1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(i7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:q},void 0,!1,void 0,this),children:N5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?N5.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):G&&R?N5.jsxDEV(v5,{data:R,options:_},void 0,!1,void 0,this):P?N5.jsxDEV(h8,{data:P,options:O,plugins:[M]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rL=s(L1(),1);var D1=s(U0(),1);function sL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["recent-errors-dense",G,q],(M)=>r_(G,50,M),{pollMs:30000,enabled:J}),F=rL.useMemo(()=>[{key:"model",header:"Model",render:(M)=>D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>G6(M.timestamp)},{key:"errorMessage",header:"Error Message",render:(M)=>D1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:M.errorMessage||"",children:M.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>D0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>z1(M.usage.cost.total,4)}],[]);return D1.jsxDEV("div",{className:"stats-route-container",children:D1.jsxDEV(Y1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:D1.jsxDEV(y1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:D1.jsxDEV(X6,{columns:F,data:N||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,R)=>D1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[D1.jsxDEV("div",{className:"stats-mobile-card-header",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV(O5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:D0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&D1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:M.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 Fq=s(L1(),1);var I0=s(U0(),1);function nL({active:J,range:G,refreshTrigger:q}){let[X,N]=Fq.useState(null),{data:K,error:H,loading:F}=n1(["gain",G,q,X],(W)=>i_(G,X,W),{pollMs:30000,enabled:J});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(y1,{loading:F,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(UD,{projects:K.projects,selected:X,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(KD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(HD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(WD,{timeSeries:K.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 UD({projects:J,selected:G,onChange:q}){if(J.length===0)return null;return I0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[I0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),I0.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(X)=>q(X.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),J.map((X)=>I0.jsxDEV("option",{value:X,children:X},X,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KD({overall:J}){return I0.jsxDEV(Y1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:I0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:zK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:J.reductionPercent!==null?S1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:D0(J.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 BD({title:J,totals:G}){return I0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[I0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:J},void 0,!1,void 0,this),I0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:X1(G.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:zK(G.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:D0(G.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:G.reductionPercent!==null?S1(G.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 HD({bySource:J}){return I0.jsxDEV(Y1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(BD,{title:"Snapcompact",totals:J.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var FD={snapcompact:"rgb(34, 197, 94)"};function WD({timeSeries:J}){let G=z5(),q=s1[G],{data:X,options:N}=Fq.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:J.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:J.map((_)=>_.snapcompact),...w$(FD.snapcompact)}]},{sharedScaleBase:W,yScale:M}=l4({chartTheme:q,formatY:(_)=>X1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:q,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:X1}),scales:{x:{...W,stacked:!0},y:{...M,stacked:!0}}};return{data:F,options:R}},[J,q]);return I0.jsxDEV(Y1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:J.length===0?I0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):I0.jsxDEV(v5,{data:X,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=s(L1(),1);var V0=s(U0(),1);function aL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["models",G,q],(H)=>c_(G,H),{pollMs:30000,enabled:J});return V0.jsxDEV("div",{className:"stats-route-container space-y-6",children:V0.jsxDEV(y1,{loading:K,error:N,data:X,children:X&&V0.jsxDEV(V0.Fragment,{children:[V0.jsxDEV(zD,{modelSeries:X.modelSeries,timeRange:G},void 0,!1,void 0,this),V0.jsxDEV(wD,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange:G},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 zD({modelSeries:J,timeRange:G}){let q=z5(),X=s1[q],N=o7(G),K=s4.useMemo(()=>MD(J),[J]),H=s4.useMemo(()=>{return{labels:K.data.map((W)=>nJ(W.timestamp,G)),datasets:K.series.map((W,M)=>({label:W,data:K.data.map((R)=>R[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,G]),F=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(W)=>{let M=W.dataset.label??"",R=W.parsed.y;return`${M}: ${(R??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},callback:(W)=>`${W}%`},min:0,max:100}}}},[X]);return V0.jsxDEV(Y1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:V0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?V0.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):V0.jsxDEV(v5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MD(J,G=5){if(J.length===0)return{data:[],series:[]};let q=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=q.get(P);if(O)O.total+=_.requests;else q.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...q.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,G),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let W=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=W.get(_.timestamp)??{timestamp:_.timestamp,total:0};O.total+=_.requests;let E=K.has(P)?F.get(P)??_.model:"Other";O[E]=(O[E]??0)+_.requests,W.set(_.timestamp,O)}let M=N.map((_)=>F.get(_.key)??_.model);if([...W.values()].some((_)=>(_.Other??0)>0))M.push("Other");return{data:[...W.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let O of M)_[O]=P>0?(_[O]??0)/P*100:0;return _}),series:M}}var oL="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function wD({models:J,performanceSeries:G,timeRange:q}){let[X,N]=s4.useState(null),K=o7(q),H=s4.useMemo(()=>DL(G,q),[G,q]),F=z5(),W=s1[F],M=s4.useMemo(()=>{return[...J].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[J]);return V0.jsxDEV($q,{title:"Model Statistics",children:[V0.jsxDEV(Zq,{gridTemplate:oL,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:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),V0.jsxDEV(Jq,{children:M.map((R,_)=>{let P=`${R.model}::${R.provider}`,E=H.get(P)?.data??[],V=K1[_%K1.length],I=X===P,j=R.errorRate*100;return V0.jsxDEV(Gq,{gridTemplate:oL,isExpanded:I,onToggle:()=>N(I?null:P),cells:[V0.jsxDEV(Qq,{model:R.model,provider:R.provider},"name",!1,void 0,this),V0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),V0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),V0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),V0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),V0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?V0.jsxDEV(qq,{},void 0,!1,void 0,this):V0.jsxDEV(t3,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:V0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[V0.jsxDEV("div",{className:"space-y-4 text-sm",children:[V0.jsxDEV("div",{children:[V0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Efficiency"},void 0,!1,void 0,this),V0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[V0.jsxDEV("div",{className:"flex items-center justify-between",children:[V0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),V0.jsxDEV("span",{className:j>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[j.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V0.jsxDEV("div",{className:"flex items-center justify-between",children:[V0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),V0.jsxDEV("span",{className:"font-mono",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V0.jsxDEV("div",{className:"flex items-center justify-between",children:[V0.jsxDEV("span",{children:"Cache savings"},void 0,!1,void 0,this),V0.jsxDEV("span",{className:R.cacheSavings<0?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[(R.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),V0.jsxDEV("div",{children:[V0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),V0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[V0.jsxDEV("div",{className:"flex items-center justify-between",children:[V0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),V0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V0.jsxDEV("div",{className:"flex items-center justify-between",children:[V0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),V0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.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),V0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?V0.jsxDEV(Yq,{},void 0,!1,void 0,this):V0.jsxDEV(RD,{data:E,color:V,chartTheme:W,timeRange:q},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RD({data:J,color:G,chartTheme:q,timeRange:X}){let N=s4.useMemo(()=>{return{labels:J.map((H)=>nJ(H.timestamp,X)),datasets:[{label:"TTFT",data:J.map((H)=>H.avgTtftSeconds??null),...D2("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:J.map((H)=>H.avgTokensPerSecond??null),...D2(G),yAxisID:"y1"}]}},[J,G,X]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(q),scales:IL(q)}},[q]);return V0.jsxDEV(v5,{data:N,options:K},void 0,!1,void 0,this)}var oJ=s(L1(),1);var iL=s(L1(),1);var N6=s(U0(),1),Wq={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function tL({stats:J}){let G=iL.useMemo(()=>EL(J),[J]);if(G.totalTokens===0)return N6.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 N6.jsxDEV("div",{className:"space-y-4",children:[N6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:G.segments.map((q)=>q.share>0&&N6.jsxDEV("div",{className:"h-full",style:{width:`${q.share*100}%`,background:Wq[q.agentType].color},title:`${Wq[q.agentType].label}: ${S1(q.share)}`},q.agentType,!1,void 0,this))},void 0,!1,void 0,this),N6.jsxDEV("div",{className:"space-y-2",children:G.segments.map((q)=>N6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[N6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[N6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Wq[q.agentType].color}},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-primary truncate",children:Wq[q.agentType].label},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[D0(q.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[N6.jsxDEV("span",{className:"stats-text-secondary",children:[X1(q.tokens)," tok"]},void 0,!0,void 0,this),N6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:S1(q.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},q.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K0=s(U0(),1);function eL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["overview",G,q],(j)=>p_(G,j),{pollMs:30000,enabled:J}),{data:F,error:W,loading:M}=n1(["recent-requests",q],(j)=>o3(50,j),{pollMs:30000,enabled:J}),R=z5(),_=s1[R],P=oJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let j=N.timeSeries.map((p)=>K4(new Date(p.timestamp),G==="1h"||G==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:j,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,G]),O=oJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),E=oJ.useMemo(()=>[{key:"model",header:"Model",render:(j)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(j)=>G6(j.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(j)=>D0(j.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(j)=>z1(j.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(j)=>k5(j.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(j)=>K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(j,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(j.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:D0(j.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:k5(j.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I=oJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(y1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(yL,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(Y1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(y1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(tL,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(Y1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(y1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(v5,{data:P,options:O},void 0,!1,void 0,this):K0.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),K0.jsxDEV("div",{children:K0.jsxDEV(Y1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(y1,{loading:M,error:W,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((j,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(q6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(q6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(q6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((j)=>{let h=!!j.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>j.id&&X(j.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:j.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[j.duration?k5(j.duration):""," ",j.usage?.cost?.total?`· ${z1(j.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},j.id||`${j.sessionFile}-${j.entryId}`,!0,void 0,this)}),I.length===0&&K0.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),K0.jsxDEV(Y1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${G}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(y1,{loading:M,error:W,data:F,children:K0.jsxDEV(X6,{columns:E,data:I,keyExtractor:(j)=>j.id||`${j.sessionFile}-${j.entryId}`,onRowClick:(j)=>j.id&&X(j.id),renderMobileCard:V,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 _K=s(L1(),1);var t0=s(U0(),1);function $P({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["projects",G,q],(M)=>a_(G,M),{pollMs:30000,enabled:J}),H=_K.useMemo(()=>{if(!X)return[];return vL(X)},[X]),F=_K.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(M)=>t0.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:M.folder||"(root)",children:M.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(M)=>t0.jsxDEV("div",{className:"stats-text-right",children:[t0.jsxDEV("div",{className:"font-mono",children:D0(M.totalRequests)},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:t0.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${M.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:(M)=>t0.jsxDEV("div",{className:"stats-text-right",children:[t0.jsxDEV("div",{className:"font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:t0.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${M.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:(M)=>t0.jsxDEV("div",{className:"font-mono",children:D0(M.totalInputTokens+M.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(M)=>t0.jsxDEV("span",{className:"font-mono",children:S1(M.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache Savings",numeric:!0,render:(M)=>t0.jsxDEV("span",{className:`${M.cacheSavings<0?"stats-text-danger":"stats-text-success"} font-medium`,children:S1(M.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(M)=>t0.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:S1(M.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(M)=>k5(M.avgDuration)}],[]);return t0.jsxDEV("div",{className:"stats-route-container",children:t0.jsxDEV(Y1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:t0.jsxDEV(y1,{loading:K,error:N,data:X,emptyText:"No project folders recorded for this range.",children:t0.jsxDEV(X6,{columns:F,data:H,keyExtractor:(M)=>M.folder,renderMobileCard:(M)=>t0.jsxDEV("div",{className:"stats-mobile-card",children:[t0.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[t0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.folder||"(root)"},void 0,!1,void 0,this),t0.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:[S1(M.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[t0.jsxDEV("div",{children:[t0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:D0(M.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV("div",{children:[t0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV("div",{children:[t0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Rate"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-value",children:S1(M.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV("div",{children:[t0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache Savings"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-value",children:S1(M.cacheSavings)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV("div",{children:[t0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"stats-mobile-card-value",children:k5(M.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 b5=s(L1(),1);var d0=s(U0(),1);function ZP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["providers",G,q],(H)=>e_(G,H),{pollMs:30000,enabled:J});return d0.jsxDEV("div",{className:"stats-route-container space-y-6",children:d0.jsxDEV(y1,{loading:K,error:N,data:X,children:X&&d0.jsxDEV(d0.Fragment,{children:[d0.jsxDEV(_D,{providers:X.providers},void 0,!1,void 0,this),d0.jsxDEV(LD,{stats:X},void 0,!1,void 0,this),d0.jsxDEV(PD,{hourly:X.hourly,providers:X.providers},void 0,!1,void 0,this),d0.jsxDEV(TD,{insights:X.windowInsights},void 0,!1,void 0,this),d0.jsxDEV(CD,{usageSeries:X.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 _D({providers:J}){let G=b5.useMemo(()=>J.reduce((X,N)=>X+N.totalTokens,0),[J]);return d0.jsxDEV(Y1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:d0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(X)=>d0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(X)=>D0(X.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(X)=>S1(X.totalRequests>0?X.failedRequests/X.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(X)=>D0(X.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(X)=>d0.jsxDEV("span",{title:`Input ${X1(X.totalInputTokens)} · Output ${X1(X.totalOutputTokens)} · Cache read ${X1(X.totalCacheReadTokens)} · Cache write ${X1(X.totalCacheWriteTokens)}`,children:X1(X.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(X)=>S1(G>0?X.totalTokens/G:0)},{key:"cost",header:"Cost",numeric:!0,render:(X)=>z1(X.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(X)=>Xq(X.avgTokensPerSecond)}],data:J,keyExtractor:(X)=>X.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LD({stats:J}){let[G,q]=b5.useState("tokens"),X=z5(),N=s1[X],K=b5.useMemo(()=>{let M=J.series.map((R)=>({...R,model:R.provider}));return R$(M,{topN:6,rankWeight:(R)=>G==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=G==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[J.series,G]),H=G==="tokens"?X1:(M)=>z1(M),F=b5.useMemo(()=>{let{sharedScaleBase:M,yScale:R}=l4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:c4({chartTheme:N,showLegend:!0,defaultLabel:G==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((O,E)=>O+(E.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}}}},[N,G,H]),W=b5.useMemo(()=>({labels:K.labels,datasets:u8(K,(M)=>n7(K1[M%K1.length]))}),[K]);return d0.jsxDEV(Y1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:d0.jsxDEV(i7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:G,onChange:q},void 0,!1,void 0,this),children:d0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?d0.jsxDEV(_$,{message:"No provider activity in this range"},void 0,!1,void 0,this):d0.jsxDEV(h8,{data:W,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var LK="__all__";function PD({hourly:J,providers:G}){let[q,X]=b5.useState(LK),N=z5(),K=s1[N],{tokensByHour:H,peakHour:F}=b5.useMemo(()=>{let _=Array(24).fill(0);for(let O of J){if(q!==LK&&O.provider!==q)continue;_[O.hour]+=O.totalTokens}let P=0;for(let O=1;O<24;O++)if(_[O]>_[P])P=O;return{tokensByHour:_,peakHour:P}},[J,q]),W=H.some((_)=>_>0),M=b5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...n7(K1[2]),backgroundColor:H.map((_,P)=>P===F?K1[0]:K1[2])}]}),[H,F]),R=b5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=l4({chartTheme:K,formatY:X1});return{responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:X1}),scales:{x:_,y:P}}},[K]);return d0.jsxDEV(Y1,{title:"Peak Burn Hours",subtitle:W?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:d0.jsxDEV("select",{className:"stats-select",value:q,onChange:(_)=>X(_.target.value),"aria-label":"Provider",children:[d0.jsxDEV("option",{value:LK,children:"All providers"},void 0,!1,void 0,this),G.map((_)=>d0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:d0.jsxDEV("div",{className:"h-[260px]",children:W?d0.jsxDEV(h8,{data:M,options:R},void 0,!1,void 0,this):d0.jsxDEV(_$,{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 TD({insights:J}){return d0.jsxDEV(Y1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:d0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(q)=>d0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(q)=>q.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(q)=>D0(q.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(q)=>d0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:q.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(q)=>d0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:q.estTokensPerWindow!==null?X1(q.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(q)=>d0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:S1(q.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(q)=>d0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:q.idealAccounts>q.accounts?"stats-text-warning font-semibold":void 0,children:[D0(q.idealAccounts),q.idealAccounts>q.accounts?` (have ${q.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(q)=>d0.jsxDEV("span",{className:q.exhaustedEvents>0?"stats-text-warning":void 0,children:D0(q.exhaustedEvents)},void 0,!1,void 0,this)}],data:J,keyExtractor:(q)=>`${q.provider}::${q.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 PK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function CD({usageSeries:J}){let G=b5.useMemo(()=>[...new Set(J.map((R)=>R.provider))],[J]),[q,X]=b5.useState(null),N=q!==null&&G.includes(q)?q:G[0]??null,K=z5(),H=s1[K],F=b5.useMemo(()=>{return J.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[J,N]),W=b5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?PK.exhausted:R.fraction>=0.8?PK.warning:PK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),M=b5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=l4({chartTheme:H,formatY:(E)=>`${Math.round(E)}%`}),P=Math.max(100,...F.map((E)=>E.fraction*100)),O=c4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(E)=>`${E.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...O,tooltip:{...O.tooltip,callbacks:{label:(E)=>{let V=F[E.dataIndex],I=`${(E.parsed.x??0).toFixed(1)}% used`;return V?`${I} · recorded ${G6(V.recordedAt)}`:I}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return d0.jsxDEV(Y1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:G.length>1?d0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>X(R.target.value),"aria-label":"Provider",children:G.map((R)=>d0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:d0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?d0.jsxDEV(_$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):d0.jsxDEV(h8,{data:W,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JP=s(L1(),1);var M1=s(U0(),1);function QP({active:J,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:K}=n1(["recent-requests-dense",G],(W)=>o3(50,W),{pollMs:30000,enabled:J}),H=JP.useMemo(()=>[{key:"model",header:"Model",render:(W)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(W)=>G6(W.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(W)=>D0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>z1(W.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(W)=>k5(W.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(W)=>M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(Y1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(y1,{loading:K,error:N,data:X,children:M1.jsxDEV(X6,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,M)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:M,children:[M1.jsxDEV("div",{className:"stats-mobile-card-header",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:D0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:k5(W.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&M1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:W.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 a6=s(L1(),1);var e=s(U0(),1);function GP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["tools",G,q],(H)=>t_(G,H),{pollMs:30000,enabled:J});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(y1,{loading:K,error:N,data:X,emptyText:"No tool calls recorded for this range.",children:X&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(OD,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(AD,{series:X.series,timeRange:G},void 0,!1,void 0,this),e.jsxDEV(ED,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(SD,{byToolModel:X.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 OD({byTool:J}){let G=a6.useMemo(()=>{let q=0,X=0,N=0,K=0,H=0,F=0,W=0;for(let M of J)q+=M.calls,X+=M.errors,N+=M.totalTokensShare,K+=M.outputTokensShare,H+=M.costShare,F+=M.resultChars,W+=M.argsChars;return{calls:q,errors:X,tokens:N,output:K,cost:H,resultChars:F,argsChars:W,tools:J.length}},[J]);return e.jsxDEV(Y1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:D0(G.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:D0(G.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S1(G.calls>0?G.errors/G.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:z1(G.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.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 ID=6;function VD(J){let G=new Map;for(let M of J)G.set(M.tool,(G.get(M.tool)??0)+M.calls);let q=[...G.entries()].sort((M,R)=>R[1]-M[1]),X=q.slice(0,ID).map(([M])=>M),N=new Set(X),H=q.length>X.length?[...X,"Other"]:X,F=[...new Set(J.map((M)=>M.timestamp))].sort((M,R)=>M-R),W=new Map;for(let M of F)W.set(M,{});for(let M of J){let R=N.has(M.tool)?M.tool:"Other",_=W.get(M.timestamp);if(_)_[R]=(_[R]??0)+M.calls}return{buckets:F,tools:H,data:W}}function AD({series:J,timeRange:G}){let q=z5(),X=s1[q],N=o7(G),K=a6.useMemo(()=>VD(J),[J]),H=a6.useMemo(()=>({labels:K.buckets.map((W)=>nJ(W,G)),datasets:K.tools.map((W,M)=>({label:W,data:K.buckets.map((R)=>K.data.get(R)?.[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,G]),F=a6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(W)=>`${W.dataset.label??""}: ${D0(W.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},precision:0},min:0}}}),[X]);return e.jsxDEV(Y1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.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):e.jsxDEV(v5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TK(J){return J>0.1?"danger":J>0?"warning":"success"}function ED({byTool:J}){let G=a6.useMemo(()=>kL(J),[J]),q=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:D0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.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:(N)=>e.jsxDEV(O5,{variant:TK(N.errorRate),children:S1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:X1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:G6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(Y1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(X6,{columns:q,data:G,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(O5,{variant:TK(N.errorRate),children:[S1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:D0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(N.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 SD({byToolModel:J}){let[G,q]=a6.useState(null),X=a6.useMemo(()=>[...new Set(J.map((H)=>H.tool))].sort(),[J]),N=a6.useMemo(()=>{return(G?J.filter((F)=>F.tool===G):J).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[J,G]),K=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:D0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(O5,{variant:TK(H.errorRate),children:S1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:X1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:z1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(Y1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(H)=>q(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),X.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(X6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I5=s(U0(),1);function CK(){let{section:J,setSection:G,range:q,setRange:X}=HL(),[N,K]=j2.useState(0),[H,F]=j2.useState(null),[W,M]=j2.useState(()=>Date.now()),R=j2.useCallback((V)=>{if(V.success)K((I)=>I+1),M(Date.now())},[]),_=j2.useCallback(()=>F(null),[]),P=J,O=j2.useRef(new Set);O.current.add(P);let E=(V)=>{let I=V===P;switch(V){case"overview":return I5.jsxDEV(eL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return I5.jsxDEV(QP,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return I5.jsxDEV(sL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return I5.jsxDEV(aL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return I5.jsxDEV(ZP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return I5.jsxDEV(GP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return I5.jsxDEV(lL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return I5.jsxDEV(cL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return I5.jsxDEV($P,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return I5.jsxDEV(nL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this)}};return I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(KL,{activeSection:P,onSectionChange:G,range:q,onRangeChange:X,updatedAt:W,onSyncComplete:R,children:[...O.current].map((V)=>I5.jsxDEV("div",{hidden:V!==P,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),I5.jsxDEV(hL,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YP=s(U0(),1),DD=qP.createRoot(document.getElementById("root"));DD.render(YP.jsxDEV(CK,{},void 0,!1,void 0,this));
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(`
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));