@oh-my-pi/omp-stats 16.3.0 → 16.3.3

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,4 +1,4 @@
1
- var IV=Object.create;var{getPrototypeOf:VV,defineProperty:zR,getOwnPropertyNames:OV}=Object;var EV=Object.prototype.hasOwnProperty;function AV(Q){return this[Q]}var SV,jV,i=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?SV??=new WeakMap:jV??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?IV(VV(Q)):{};let H=J||!Q||!Q.__esModule?zR(X,"default",{value:Q,enumerable:!0}):X;for(let M of OV(Q))if(!EV.call(H,M))zR(H,M,{get:AV.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var P2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var uT=P2((uS)=>{(function(){function Q(){if(s=!1,a){var l=uS.unstable_now();K0=l;var X0=!0;try{$:{h=!1,p&&(p=!1,Q0(q0),q0=-1),D=!0;var B0=V;try{Z:{K(l);for(O=X(P);O!==null&&!(O.expirationTime>l&&M());){var r0=O.callback;if(typeof r0==="function"){O.callback=null,V=O.priorityLevel;var u0=r0(O.expirationTime<=l);if(l=uS.unstable_now(),typeof u0==="function"){O.callback=u0,K(l),X0=!0;break Z}O===X(P)&&q(P),K(l)}else q(P);O=X(P)}if(O!==null)X0=!0;else{var v=X(I);v!==null&&F(H,v.startTime-l),X0=!1}}break $}finally{O=null,V=B0,D=!1}X0=void 0}}finally{X0?L0():a=!1}}}function J(l,X0){var B0=l.length;l.push(X0);$:for(;0<B0;){var r0=B0-1>>>1,u0=l[r0];if(0<N(u0,X0))l[r0]=X0,l[B0]=u0,B0=r0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var X0=l[0],B0=l.pop();if(B0!==X0){l[0]=B0;$:for(var r0=0,u0=l.length,v=u0>>>1;r0<v;){var n=2*(r0+1)-1,H0=l[n],F0=n+1,x0=l[F0];if(0>N(H0,B0))F0<u0&&0>N(x0,H0)?(l[r0]=x0,l[F0]=B0,r0=F0):(l[r0]=H0,l[n]=B0,r0=n);else if(F0<u0&&0>N(x0,B0))l[r0]=x0,l[F0]=B0,r0=F0;else break $}}return X0}function N(l,X0){var B0=l.sortIndex-X0.sortIndex;return B0!==0?B0:l.id-X0.id}function K(l){for(var X0=X(I);X0!==null;){if(X0.callback===null)q(I);else if(X0.startTime<=l)q(I),X0.sortIndex=X0.expirationTime,J(P,X0);else break;X0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,a||(a=!0,L0());else{var X0=X(I);X0!==null&&F(H,X0.startTime-l)}}function M(){return s?!0:uS.unstable_now()-K0<d?!1:!0}function F(l,X0){q0=o(function(){l(uS.unstable_now())},X0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),uS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;uS.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();uS.unstable_now=function(){return z.now()-T}}var P=[],I=[],A=1,O=null,V=3,D=!1,h=!1,p=!1,s=!1,o=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,a=!1,q0=-1,d=5,K0=-1;if(typeof t==="function")var L0=function(){t(Q)};else if(typeof MessageChannel<"u"){var _0=new MessageChannel,D0=_0.port2;_0.port1.onmessage=Q,L0=function(){D0.postMessage(null)}}else L0=function(){o(Q,0)};uS.unstable_IdlePriority=5,uS.unstable_ImmediatePriority=1,uS.unstable_LowPriority=4,uS.unstable_NormalPriority=3,uS.unstable_Profiling=null,uS.unstable_UserBlockingPriority=2,uS.unstable_cancelCallback=function(l){l.callback=null},uS.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},uS.unstable_getCurrentPriorityLevel=function(){return V},uS.unstable_next=function(l){switch(V){case 1:case 2:case 3:var X0=3;break;default:X0=V}var B0=V;V=X0;try{return l()}finally{V=B0}},uS.unstable_requestPaint=function(){s=!0},uS.unstable_runWithPriority=function(l,X0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var B0=V;V=l;try{return X0()}finally{V=B0}},uS.unstable_scheduleCallback=function(l,X0,B0){var r0=uS.unstable_now();switch(typeof B0==="object"&&B0!==null?(B0=B0.delay,B0=typeof B0==="number"&&0<B0?r0+B0:r0):B0=r0,l){case 1:var u0=-1;break;case 2:u0=250;break;case 5:u0=1073741823;break;case 4:u0=1e4;break;default:u0=5000}return u0=B0+u0,l={id:A++,callback:X0,priorityLevel:l,startTime:B0,expirationTime:u0,sortIndex:-1},B0>r0?(l.sortIndex=B0,J(I,l),X(P)===null&&l===X(I)&&(p?(Q0(q0),q0=-1):p=!0,F(H,B0-r0))):(l.sortIndex=u0,J(P,l),h||D||(h=!0,a||(a=!0,L0()))),l},uS.unstable_shouldYield=M,uS.unstable_wrapCallback=function(l){var X0=V;return function(){var B0=V;V=X0;try{return l.apply(this,arguments)}finally{V=B0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=P2((xS,n3)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=eQ&&C[eQ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;G0[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),G0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=D8,this.updater=r||n9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=D8,this.updater=r||n9}function H(){}function M(C){return""+C}function F(C){try{M(C);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,$0=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.",$0),M(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===C$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case u0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case y1:return"Suspense";case v0:return"SuspenseList";case r6: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 r0:return"Portal";case F0:return C.displayName||"Context";case H0:return(C._context.displayName||"Context")+".Consumer";case x0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case p1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case L5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function z(C){if(C===u0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===L5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var C=k0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function I(C){if(o9.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function A(C,y){function r(){$J||($J=!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 O(){var C=w(this.type);return u2[C]||(u2[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 V(C,y,r,$0,Y0,S0){var j0=r.ref;return C={$$typeof:B0,type:C,key:y,props:r,_owner:$0},(j0!==void 0?j0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:O}):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:Y0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=V(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===L5&&(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===B0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function o(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(F(C.key),s(""+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,$0,Y0){var S0=typeof C;if(S0==="undefined"||S0==="boolean")C=null;var j0=!1;if(C===null)j0=!0;else switch(S0){case"bigint":case"string":case"number":j0=!0;break;case"object":switch(C.$$typeof){case B0:case r0:j0=!0;break;case L5:return j0=C._init,t(j0(C._payload),y,r,$0,Y0)}}if(j0){j0=C,Y0=Y0(j0);var e0=$0===""?"."+o(j0,0):$0;return B1(Y0)?(r="",e0!=null&&(r=e0.replace(i9,"$&/")+"/"),t(Y0,y,r,"",function(P5){return P5})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(j0&&j0.key===Y0.key||F(Y0.key)),r=D(Y0,r+(Y0.key==null||j0&&j0.key===Y0.key?"":(""+Y0.key).replace(i9,"$&/")+"/")+e0),$0!==""&&j0!=null&&p(j0)&&j0.key==null&&j0._store&&!j0._store.validated&&(r._store.validated=2),Y0=r),y.push(Y0)),1}if(j0=0,e0=$0===""?".":$0+":",B1(C))for(var z0=0;z0<C.length;z0++)$0=C[z0],S0=e0+o($0,z0),j0+=t($0,y,r,S0,Y0);else if(z0=J(C),typeof z0==="function")for(z0===C.entries&&(a9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),a9=!0),C=z0.call(C),z0=0;!($0=C.next()).done;)$0=$0.value,S0=e0+o($0,z0++),j0+=t($0,y,r,S0,Y0);else if(S0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,$0,Y0);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 j0}function a(C,y,r){if(C==null)return C;var $0=[],Y0=0;return t(C,$0,"","",function(S0){return y.call(r,S0,Y0++)}),$0}function q0(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(Y0){if(C._status===0||C._status===-1){C._status=1,C._result=Y0;var S0=C._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(C._status===0||C._status===-1){C._status=2,C._result=Y0;var S0=C._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=C._ioInfo,y!=null){y.value=r;var $0=r.displayName;typeof $0==="string"&&(y.name=$0)}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 DO=Object.create;var{getPrototypeOf:vO,defineProperty:PR,getOwnPropertyNames:bO}=Object;var kO=Object.prototype.hasOwnProperty;function fO(Q){return this[Q]}var yO,gO,o=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?yO??=new WeakMap:gO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?DO(vO(Q)):{};let H=J||!Q||!Q.__esModule?PR(X,"default",{value:Q,enumerable:!0}):X;for(let M of bO(Q))if(!kO.call(H,M))PR(H,M,{get:fO.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var I8=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var pT=I8((rS)=>{(function(){function Q(){if(s=!1,i){var l=rS.unstable_now();H0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,J0(Y0),Y0=-1),D=!0;var M0=O;try{Z:{K(l);for(V=X(_);V!==null&&!(V.expirationTime>l&&M());){var n0=V.callback;if(typeof n0==="function"){V.callback=null,O=V.priorityLevel;var m0=n0(V.expirationTime<=l);if(l=rS.unstable_now(),typeof m0==="function"){V.callback=m0,K(l),q0=!0;break Z}V===X(_)&&q(_),K(l)}else q(_);V=X(_)}if(V!==null)q0=!0;else{var v=X(I);v!==null&&F(H,v.startTime-l),q0=!1}}break $}finally{V=null,O=M0,D=!1}q0=void 0}}finally{q0?_0():i=!1}}}function J(l,q0){var M0=l.length;l.push(q0);$:for(;0<M0;){var n0=M0-1>>>1,m0=l[n0];if(0<N(m0,q0))l[n0]=q0,l[M0]=m0,M0=n0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var q0=l[0],M0=l.pop();if(M0!==q0){l[0]=M0;$:for(var n0=0,m0=l.length,v=m0>>>1;n0<v;){var n=2*(n0+1)-1,F0=l[n],W0=n+1,d0=l[W0];if(0>N(F0,M0))W0<m0&&0>N(d0,F0)?(l[n0]=d0,l[W0]=M0,n0=W0):(l[n0]=F0,l[n]=M0,n0=n);else if(W0<m0&&0>N(d0,M0))l[n0]=d0,l[W0]=M0,n0=W0;else break $}}return q0}function N(l,q0){var M0=l.sortIndex-q0.sortIndex;return M0!==0?M0:l.id-q0.id}function K(l){for(var q0=X(I);q0!==null;){if(q0.callback===null)q(I);else if(q0.startTime<=l)q(I),q0.sortIndex=q0.expirationTime,J(_,q0);else break;q0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(_)!==null)h=!0,i||(i=!0,_0());else{var q0=X(I);q0!==null&&F(H,q0.startTime-l)}}function M(){return s?!0:rS.unstable_now()-H0<d?!1:!0}function F(l,q0){Y0=a(function(){l(rS.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),rS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;rS.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();rS.unstable_now=function(){return z.now()-T}}var _=[],I=[],E=1,V=null,O=3,D=!1,h=!1,p=!1,s=!1,a=typeof setTimeout==="function"?setTimeout:null,J0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,H0=-1;if(typeof t==="function")var _0=function(){t(Q)};else if(typeof MessageChannel<"u"){var C0=new MessageChannel,v0=C0.port2;C0.port1.onmessage=Q,_0=function(){v0.postMessage(null)}}else _0=function(){a(Q,0)};rS.unstable_IdlePriority=5,rS.unstable_ImmediatePriority=1,rS.unstable_LowPriority=4,rS.unstable_NormalPriority=3,rS.unstable_Profiling=null,rS.unstable_UserBlockingPriority=2,rS.unstable_cancelCallback=function(l){l.callback=null},rS.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},rS.unstable_getCurrentPriorityLevel=function(){return O},rS.unstable_next=function(l){switch(O){case 1:case 2:case 3:var q0=3;break;default:q0=O}var M0=O;O=q0;try{return l()}finally{O=M0}},rS.unstable_requestPaint=function(){s=!0},rS.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var M0=O;O=l;try{return q0()}finally{O=M0}},rS.unstable_scheduleCallback=function(l,q0,M0){var n0=rS.unstable_now();switch(typeof M0==="object"&&M0!==null?(M0=M0.delay,M0=typeof M0==="number"&&0<M0?n0+M0:n0):M0=n0,l){case 1:var m0=-1;break;case 2:m0=250;break;case 5:m0=1073741823;break;case 4:m0=1e4;break;default:m0=5000}return m0=M0+m0,l={id:E++,callback:q0,priorityLevel:l,startTime:M0,expirationTime:m0,sortIndex:-1},M0>n0?(l.sortIndex=M0,J(I,l),X(_)===null&&l===X(I)&&(p?(J0(Y0),Y0=-1):p=!0,F(H,M0-n0))):(l.sortIndex=m0,J(_,l),h||D||(h=!0,i||(i=!0,_0()))),l},rS.unstable_shouldYield=M,rS.unstable_wrapCallback=function(l){var q0=O;return function(){var M0=O;O=q0;try{return l.apply(this,arguments)}finally{O=M0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var P1=I8((sS,t3)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=JJ&&C[JJ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;X0[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),X0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=k2,this.updater=r||i9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=k2,this.updater=r||i9}function H(){}function M(C){return""+C}function F(C){try{M(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),M(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===V$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case m0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case u1:return"Suspense";case b0:return"SuspenseList";case a6: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 n0:return"Portal";case W0:return C.displayName||"Context";case F0:return(C._context.displayName||"Context")+".Consumer";case d0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case r1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case O5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function z(C){if(C===m0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===O5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var C=f0.A;return C===null?null:C.getOwner()}function _(){return Error("react-stack-top-frame")}function I(C){if(t9.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(){GJ||(GJ=!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=w(this.type);return m8[C]||(m8[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 O(C,y,r,Z0,N0,j0){var D0=r.ref;return C={$$typeof:M0,type:C,key:y,props:r,_owner:Z0},(D0!==void 0?D0: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 D(C,y){return y=O(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===O5&&(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===M0}function s(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?(F(C.key),s(""+C.key)):y.toString(36)}function J0(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 D0=!1;if(C===null)D0=!0;else switch(j0){case"bigint":case"string":case"number":D0=!0;break;case"object":switch(C.$$typeof){case M0:case n0:D0=!0;break;case O5:return D0=C._init,t(D0(C._payload),y,r,Z0,N0)}}if(D0){D0=C,N0=N0(D0);var $1=Z0===""?"."+a(D0,0):Z0;return H1(N0)?(r="",$1!=null&&(r=$1.replace($7,"$&/")+"/"),t(N0,y,r,"",function(V5){return V5})):N0!=null&&(p(N0)&&(N0.key!=null&&(D0&&D0.key===N0.key||F(N0.key)),r=D(N0,r+(N0.key==null||D0&&D0.key===N0.key?"":(""+N0.key).replace($7,"$&/")+"/")+$1),Z0!==""&&D0!=null&&p(D0)&&D0.key==null&&D0._store&&!D0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(D0=0,$1=Z0===""?".":Z0+":",H1(C))for(var T0=0;T0<C.length;T0++)Z0=C[T0],j0=$1+a(Z0,T0),D0+=t(Z0,y,r,j0,N0);else if(T0=J(C),typeof T0==="function")for(T0===C.entries&&(e9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),e9=!0),C=T0.call(C),T0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=$1+a(Z0,T0++),D0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(J0(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 D0}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 Y0(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
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -6,71 +6,71 @@ Your code should look like:
6
6
  Did you accidentally put curly braces around the import?`,y),"default"in y||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=k0.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'))`,y),y.default;throw C._result}function d(){var C=f0.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 K0(){k0.asyncTransitions--}function L0(C){if(m2===null)try{var y=("require"+Math.random()).slice(0,7);m2=(n3&&n3[y]).call(n3,"timers").setImmediate}catch(r){m2=function($0){ZJ===!1&&(ZJ=!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 Y0=new MessageChannel;Y0.port1.onmessage=$0,Y0.port2.postMessage(void 0)}}return m2(C)}function _0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function D0(C,y){y!==d2-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. "),d2=y}function l(C,y,r){var $0=k0.actQueue;if($0!==null)if($0.length!==0)try{X0($0),L0(function(){return l(C,y,r)});return}catch(Y0){k0.thrownErrors.push(Y0)}else k0.actQueue=null;0<k0.thrownErrors.length?($0=_0(k0.thrownErrors),k0.thrownErrors.length=0,r($0)):y(C)}function X0(C){if(!c2){c2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{k0.didUsePromise=!1;var $0=r(!1);if($0!==null){if(k0.didUsePromise){C[y]=r,C.splice(0,y);return}r=$0}else break}while(1)}C.length=0}catch(Y0){C.splice(0,y+1),k0.thrownErrors.push(Y0)}finally{c2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B0=Symbol.for("react.transitional.element"),r0=Symbol.for("react.portal"),u0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),H0=Symbol.for("react.consumer"),F0=Symbol.for("react.context"),x0=Symbol.for("react.forward_ref"),y1=Symbol.for("react.suspense"),v0=Symbol.for("react.suspense_list"),p1=Symbol.for("react.memo"),L5=Symbol.for("react.lazy"),r6=Symbol.for("react.activity"),eQ=Symbol.iterator,G0={},n9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},h2=Object.assign,D8={};Object.freeze(D8),q.prototype.isReactComponent={},q.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")},q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var X5={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(b8 in X5)X5.hasOwnProperty(b8)&&Q(b8,X5[b8]);N.prototype=q.prototype,X5=K.prototype=new N,X5.constructor=K,h2(X5,q.prototype),X5.isPureReactComponent=!0;var B1=Array.isArray,C$=Symbol.for("react.client.reference"),k0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},o9=Object.prototype.hasOwnProperty,w1=console.createTask?console.createTask:function(){return null};X5={react_stack_bottom_frame:function(C){return C()}};var $J,q4,u2={},x2=X5.react_stack_bottom_frame.bind(X5,P)(),CX=w1(z(P)),a9=!1,i9=/\/+/g,v8=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)},ZJ=!1,m2=null,d2=0,p2=!1,c2=!1,I$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:L0;X5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b8={map:a,forEach:function(C,y,r){a(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return a(C,function(){y++}),y},toArray:function(C){return a(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}};xS.Activity=r6,xS.Children=b8,xS.Component=q,xS.Fragment=u0,xS.Profiler=n,xS.PureComponent=K,xS.StrictMode=v,xS.Suspense=y1,xS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k0,xS.__COMPILER_RUNTIME=X5,xS.act=function(C){var y=k0.actQueue,r=d2;d2++;var $0=k0.actQueue=y!==null?y:[],Y0=!1;try{var S0=C()}catch(z0){k0.thrownErrors.push(z0)}if(0<k0.thrownErrors.length)throw D0(y,r),C=_0(k0.thrownErrors),k0.thrownErrors.length=0,C;if(S0!==null&&typeof S0==="object"&&typeof S0.then==="function"){var j0=S0;return I$(function(){Y0||p2||(p2=!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(z0,P5){Y0=!0,j0.then(function(G6){if(D0(y,r),r===0){try{X0($0),L0(function(){return l(G6,z0,P5)})}catch(V$){k0.thrownErrors.push(V$)}if(0<k0.thrownErrors.length){var k8=_0(k0.thrownErrors);k0.thrownErrors.length=0,P5(k8)}}else z0(G6)},function(G6){D0(y,r),0<k0.thrownErrors.length?(G6=_0(k0.thrownErrors),k0.thrownErrors.length=0,P5(G6)):P5(G6)})}}}var e0=S0;if(D0(y,r),r===0&&(X0($0),$0.length!==0&&I$(function(){Y0||p2||(p2=!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(() => ...)"))}),k0.actQueue=null),0<k0.thrownErrors.length)throw C=_0(k0.thrownErrors),k0.thrownErrors.length=0,C;return{then:function(z0,P5){Y0=!0,r===0?(k0.actQueue=$0,L0(function(){return l(e0,z0,P5)})):z0(e0)}}},xS.cache=function(C){return function(){return C.apply(null,arguments)}},xS.cacheSignal=function(){return null},xS.captureOwnerStack=function(){var C=k0.getCurrentStack;return C===null?null:C()},xS.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 $0=h2({},C.props),Y0=C.key,S0=C._owner;if(y!=null){var j0;$:{if(o9.call(y,"ref")&&(j0=Object.getOwnPropertyDescriptor(y,"ref").get)&&j0.isReactWarning){j0=!1;break $}j0=y.ref!==void 0}j0&&(S0=T()),I(y)&&(F(y.key),Y0=""+y.key);for(e0 in y)!o9.call(y,e0)||e0==="key"||e0==="__self"||e0==="__source"||e0==="ref"&&y.ref===void 0||($0[e0]=y[e0])}var e0=arguments.length-2;if(e0===1)$0.children=r;else if(1<e0){j0=Array(e0);for(var z0=0;z0<e0;z0++)j0[z0]=arguments[z0+2];$0.children=j0}$0=V(C.type,Y0,$0,S0,C._debugStack,C._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return $0},xS.createContext=function(C){return C={$$typeof:F0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:H0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},xS.createElement=function(C,y,r){for(var $0=2;$0<arguments.length;$0++)h(arguments[$0]);$0={};var Y0=null;if(y!=null)for(z0 in q4||!("__self"in y)||"key"in y||(q4=!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")),I(y)&&(F(y.key),Y0=""+y.key),y)o9.call(y,z0)&&z0!=="key"&&z0!=="__self"&&z0!=="__source"&&($0[z0]=y[z0]);var S0=arguments.length-2;if(S0===1)$0.children=r;else if(1<S0){for(var j0=Array(S0),e0=0;e0<S0;e0++)j0[e0]=arguments[e0+2];Object.freeze&&Object.freeze(j0),$0.children=j0}if(C&&C.defaultProps)for(z0 in S0=C.defaultProps,S0)$0[z0]===void 0&&($0[z0]=S0[z0]);Y0&&A($0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var z0=1e4>k0.recentlyCreatedOwnerStacks++;return V(C,Y0,$0,T(),z0?Error("react-stack-top-frame"):x2,z0?w1(z(C)):CX)},xS.createRef=function(){var C={current:null};return Object.seal(C),C},xS.forwardRef=function(C){C!=null&&C.$$typeof===p1?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:x0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},xS.isValidElement=p,xS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:L5,_payload:C,_init:q0},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},xS.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:p1,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($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},xS.startTransition=function(C){var y=k0.T,r={};r._updatedFibers=new Set,k0.T=r;try{var $0=C(),Y0=k0.S;Y0!==null&&Y0(r,$0),typeof $0==="object"&&$0!==null&&typeof $0.then==="function"&&(k0.asyncTransitions++,$0.then(K0,K0),$0.then(H,v8))}catch(S0){v8(S0)}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),k0.T=y}},xS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},xS.use=function(C){return d().use(C)},xS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},xS.useCallback=function(C,y){return d().useCallback(C,y)},xS.useContext=function(C){var y=d();return C.$$typeof===H0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},xS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},xS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},xS.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)},xS.useEffectEvent=function(C){return d().useEffectEvent(C)},xS.useId=function(){return d().useId()},xS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},xS.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)},xS.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)},xS.useMemo=function(C,y){return d().useMemo(C,y)},xS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},xS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},xS.useRef=function(C){return d().useRef(C)},xS.useState=function(C){return d().useState(C)},xS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},xS.useTransition=function(){return d().useTransition()},xS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xT=P2((mS)=>{var BK=i(I1());(function(){function Q(){}function J(z){return""+z}function X(z,T,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var A=!1}catch(O){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&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:F,key:I==null?null:""+I,children:z,containerInfo:T,implementation:P}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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 H0(){f0.asyncTransitions--}function _0(C){if(p8===null)try{var y=("require"+Math.random()).slice(0,7);p8=(t3&&t3[y]).call(t3,"timers").setImmediate}catch(r){p8=function(Z0){XJ===!1&&(XJ=!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 p8(C)}function C0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function v0(C,y){y!==c8-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. "),c8=y}function l(C,y,r){var Z0=f0.actQueue;if(Z0!==null)if(Z0.length!==0)try{q0(Z0),_0(function(){return l(C,y,r)});return}catch(N0){f0.thrownErrors.push(N0)}else f0.actQueue=null;0<f0.thrownErrors.length?(Z0=C0(f0.thrownErrors),f0.thrownErrors.length=0,r(Z0)):y(C)}function q0(C){if(!r8){r8=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{f0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(f0.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),f0.thrownErrors.push(N0)}finally{r8=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M0=Symbol.for("react.transitional.element"),n0=Symbol.for("react.portal"),m0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),F0=Symbol.for("react.consumer"),W0=Symbol.for("react.context"),d0=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),r1=Symbol.for("react.memo"),O5=Symbol.for("react.lazy"),a6=Symbol.for("react.activity"),JJ=Symbol.iterator,X0={},i9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},x8=Object.assign,k2={};Object.freeze(k2),q.prototype.isReactComponent={},q.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")},q.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(y2 in U5)U5.hasOwnProperty(y2)&&Q(y2,U5[y2]);N.prototype=q.prototype,U5=K.prototype=new N,U5.constructor=K,x8(U5,q.prototype),U5.isPureReactComponent=!0;var H1=Array.isArray,V$=Symbol.for("react.client.reference"),f0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},t9=Object.prototype.hasOwnProperty,z1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var GJ,H4,m8={},d8=U5.react_stack_bottom_frame.bind(U5,_)(),AX=z1(z(_)),e9=!1,$7=/\/+/g,f2=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)},XJ=!1,p8=null,c8=0,l8=!1,r8=!1,A$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:_0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var y2={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}};sS.Activity=a6,sS.Children=y2,sS.Component=q,sS.Fragment=m0,sS.Profiler=n,sS.PureComponent=K,sS.StrictMode=v,sS.Suspense=u1,sS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f0,sS.__COMPILER_RUNTIME=U5,sS.act=function(C){var y=f0.actQueue,r=c8;c8++;var Z0=f0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(T0){f0.thrownErrors.push(T0)}if(0<f0.thrownErrors.length)throw v0(y,r),C=C0(f0.thrownErrors),f0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var D0=j0;return A$(function(){N0||l8||(l8=!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(T0,V5){N0=!0,D0.then(function(N6){if(v0(y,r),r===0){try{q0(Z0),_0(function(){return l(N6,T0,V5)})}catch(E$){f0.thrownErrors.push(E$)}if(0<f0.thrownErrors.length){var g2=C0(f0.thrownErrors);f0.thrownErrors.length=0,V5(g2)}}else T0(N6)},function(N6){v0(y,r),0<f0.thrownErrors.length?(N6=C0(f0.thrownErrors),f0.thrownErrors.length=0,V5(N6)):V5(N6)})}}}var $1=j0;if(v0(y,r),r===0&&(q0(Z0),Z0.length!==0&&A$(function(){N0||l8||(l8=!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(() => ...)"))}),f0.actQueue=null),0<f0.thrownErrors.length)throw C=C0(f0.thrownErrors),f0.thrownErrors.length=0,C;return{then:function(T0,V5){N0=!0,r===0?(f0.actQueue=Z0,_0(function(){return l($1,T0,V5)})):T0($1)}}},sS.cache=function(C){return function(){return C.apply(null,arguments)}},sS.cacheSignal=function(){return null},sS.captureOwnerStack=function(){var C=f0.getCurrentStack;return C===null?null:C()},sS.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=x8({},C.props),N0=C.key,j0=C._owner;if(y!=null){var D0;$:{if(t9.call(y,"ref")&&(D0=Object.getOwnPropertyDescriptor(y,"ref").get)&&D0.isReactWarning){D0=!1;break $}D0=y.ref!==void 0}D0&&(j0=T()),I(y)&&(F(y.key),N0=""+y.key);for($1 in y)!t9.call(y,$1)||$1==="key"||$1==="__self"||$1==="__source"||$1==="ref"&&y.ref===void 0||(Z0[$1]=y[$1])}var $1=arguments.length-2;if($1===1)Z0.children=r;else if(1<$1){D0=Array($1);for(var T0=0;T0<$1;T0++)D0[T0]=arguments[T0+2];Z0.children=D0}Z0=O(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},sS.createContext=function(C){return C={$$typeof:W0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:F0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},sS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(T0 in H4||!("__self"in y)||"key"in y||(H4=!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")),I(y)&&(F(y.key),N0=""+y.key),y)t9.call(y,T0)&&T0!=="key"&&T0!=="__self"&&T0!=="__source"&&(Z0[T0]=y[T0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var D0=Array(j0),$1=0;$1<j0;$1++)D0[$1]=arguments[$1+2];Object.freeze&&Object.freeze(D0),Z0.children=D0}if(C&&C.defaultProps)for(T0 in j0=C.defaultProps,j0)Z0[T0]===void 0&&(Z0[T0]=j0[T0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var T0=1e4>f0.recentlyCreatedOwnerStacks++;return O(C,N0,Z0,T(),T0?Error("react-stack-top-frame"):d8,T0?z1(z(C)):AX)},sS.createRef=function(){var C={current:null};return Object.seal(C),C},sS.forwardRef=function(C){C!=null&&C.$$typeof===r1?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:d0,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},sS.isValidElement=p,sS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:O5,_payload:C,_init:Y0},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},sS.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:r1,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},sS.startTransition=function(C){var y=f0.T,r={};r._updatedFibers=new Set,f0.T=r;try{var Z0=C(),N0=f0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(f0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,f2))}catch(j0){f2(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),f0.T=y}},sS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},sS.use=function(C){return d().use(C)},sS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},sS.useCallback=function(C,y){return d().useCallback(C,y)},sS.useContext=function(C){var y=d();return C.$$typeof===F0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},sS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},sS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},sS.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)},sS.useEffectEvent=function(C){return d().useEffectEvent(C)},sS.useId=function(){return d().useId()},sS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},sS.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)},sS.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)},sS.useMemo=function(C,y){return d().useMemo(C,y)},sS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},sS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},sS.useRef=function(C){return d().useRef(C)},sS.useState=function(C){return d().useState(C)},sS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},sS.useTransition=function(){return d().useTransition()},sS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cT=I8((nS)=>{var WK=o(P1());(function(){function Q(){}function J(z){return""+z}function X(z,T,_){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);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&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:F,key:I==null?null:""+I,children:z,containerInfo:T,implementation:_}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),w=BK.__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"),mS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,mS.createPortal=function(z,T){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,P)},mS.flushSync=function(z){var T=w.T,P=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=P,M.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.")}},mS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},mS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},mS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var P=T.as,I=q(P,T.crossOrigin),A=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;P==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:A,fetchPriority:O}):P==="script"&&M.d.X(z,{crossOrigin:I,integrity:A,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},mS.preinitModule=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(P+=" The `as` option encountered was "+K(T.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=T&&typeof T.as==="string"?T.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,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")P=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},mS.preload=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(P+=" The `as` option encountered was "+N(T.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 z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){P=T.as;var I=q(P,T.crossOrigin);M.d.L(z,P,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},mS.preloadModule=function(z,T){var P="";typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(P+=" The `as` option encountered was "+N(T.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 z==="string"&&(T?(P=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},mS.requestFormReset=function(z){M.d.r(z)},mS.unstable_batchedUpdates=function(z,T){return z(T)},mS.useFormState=function(z,T,P){return H().useFormState(z,T,P)},mS.useFormStatus=function(){return H().useHostTransitionStatus()},mS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dT=P2((wb,mT)=>{var dS=i(xT());mT.exports=dS});var pT=P2((pS)=>{var Z1=i(uT()),K$=i(I1()),HK=i(dT());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=$5($)?$.slice():d0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=$5($)?$.slice():d0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],$5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=$5($)?$.slice():d0({},$);if(G+1===Z.length)return $5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function M(){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 F(){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 w(){}function z(){}function T($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function P($,Z,G,Y){return new M_($,Z,G,Y)}function I($,Z){$.context===$2&&(CY($.current,2,Z,$,null,null),K7())}function A($,Z){if(S6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,i$(),IB($.current,Z,G),K7()}}function O($){S6=$}function V($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G: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 s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function o($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,R=U.child;R;){if(R===G){W=!0,G=U,Y=B;break}if(R===Y){W=!0,Y=U,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,Y=U;break}if(R===Y){W=!0,Y=B,G=U;break}R=R.sibling}if(!W)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(G.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(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$: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 $=DF&&$[DF]||$["@@iterator"],typeof $==="function"?$:null}function a($){if($==null)return null;if(typeof $==="function")return $.$$typeof===kC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case R7:return"Fragment";case SY:return"Profiler";case KG:return"StrictMode";case DY:return"Suspense";case vY:return"SuspenseList";case bY: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 w7:return"Portal";case I4:return $.displayName||"Context";case jY:return($._context.displayName||"Context")+".Consumer";case YZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case BG:return Z=$.displayName||null,Z!==null?Z:a($.type)||"Memo";case M6:Z=$._payload,$=$._init;try{return a($(Z))}catch(G){}}return null}function q0($){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 a(Z);case 8:return Z===KG?"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 G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function K0($){return{current:$}}function L0($,Z){0>$8?console.error("Unexpected pop."):(Z!==fY[$8]&&console.error("Unexpected Fiber popped."),$.current=kY[$8],kY[$8]=null,fY[$8]=null,$8--)}function _0($,Z,G){$8++,kY[$8]=$.current,fY[$8]=G,$.current=Z}function D0($){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){_0(n8,Z,$),_0(NZ,$,$),_0(s8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?ZF(Z):F8:F8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=ZF(Z),Z=QF(Z,G);else switch(G){case"svg":Z=i7;break;case"math":Z=U3;break;default:Z=F8}}G=G.toLowerCase(),G=oK(null,G),G={context:Z,ancestorInfo:G},L0(s8,$),_0(s8,G,$)}function X0($){L0(s8,$),L0(NZ,$),L0(n8,$)}function B0(){return D0(s8.current)}function r0($){$.memoizedState!==null&&_0(HG,$,$);var Z=D0(s8.current),G=$.type,Y=QF(Z.context,G);G=oK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(_0(NZ,$,$),_0(s8,Y,$))}function u0($){NZ.current===$&&(L0(s8,$),L0(NZ,$)),HG.current===$&&(L0(HG,$),eZ._currentValue=A9)}function v(){}function n(){if(UZ===0){vF=console.log,bF=console.info,kF=console.warn,fF=console.error,yF=console.group,gF=console.groupCollapsed,hF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}UZ++}function H0(){if(UZ--,UZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d0({},$,{value:vF}),info:d0({},$,{value:bF}),warn:d0({},$,{value:kF}),error:d0({},$,{value:fF}),group:d0({},$,{value:yF}),groupCollapsed:d0({},$,{value:gF}),groupEnd:d0({},$,{value:hF})})}0>UZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function F0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),w=WK.__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"),nS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,nS.createPortal=function(z,T){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,_)},nS.flushSync=function(z){var T=w.T,_=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=_,M.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.")}},nS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},nS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},nS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var _=T.as,I=q(_,T.crossOrigin),E=typeof T.integrity==="string"?T.integrity:void 0,V=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;_==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:E,fetchPriority:V}):_==="script"&&M.d.X(z,{crossOrigin:I,integrity:E,fetchPriority:V,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},nS.preinitModule=function(z,T){var _="";if(typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(_+=" The `as` option encountered was "+K(T.as)+"."),_)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",_);else switch(_=T&&typeof T.as==="string"?T.as:"script",_){case"script":break;default:_=K(_),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)',_,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")_=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:_,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},nS.preload=function(z,T){var _="";if(typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(_+=" The `as` option encountered was "+N(T.as)+"."),_&&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',_),typeof z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){_=T.as;var I=q(_,T.crossOrigin);M.d.L(z,_,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},nS.preloadModule=function(z,T){var _="";typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(_+=" The `as` option encountered was "+N(T.as)+"."),_&&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',_),typeof z==="string"&&(T?(_=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:_,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},nS.requestFormReset=function(z){M.d.r(z)},nS.unstable_batchedUpdates=function(z,T){return z(T)},nS.useFormState=function(z,T,_){return H().useFormState(z,T,_)},nS.useFormStatus=function(){return H().useHostTransitionStatus()},nS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rT=I8((jb,lT)=>{var oS=o(cT());lT.exports=oS});var sT=I8((aS)=>{var Q1=o(pT()),M$=o(P1()),wK=o(rT());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=Q5($)?$.slice():c0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=Q5($)?$.slice():c0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],Q5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=Q5($)?$.slice():c0({},$);if(G+1===Z.length)return Q5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function M(){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 F(){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 w(){}function z(){}function T($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function _($,Z,G,Y){return new LP($,Z,G,Y)}function I($,Z){$.context===J8&&(AY($.current,2,Z,$,null,null),M7())}function E($,Z){if(v6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,$Z(),EB($.current,Z,G),M7()}}function V($){v6=$}function O($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G: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 s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,R=U.child;R;){if(R===G){W=!0,G=U,Y=B;break}if(R===Y){W=!0,Y=U,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,Y=U;break}if(R===Y){W=!0,Y=B,G=U;break}R=R.sibling}if(!W)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(G.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(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function J0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=J0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=fF&&$[fF]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===mC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case L7:return"Fragment";case bY:return"Profiler";case FG:return"StrictMode";case fY:return"Suspense";case yY:return"SuspenseList";case gY: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 T7:return"Portal";case j4:return $.displayName||"Context";case kY:return($._context.displayName||"Context")+".Consumer";case KZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case WG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){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===FG?"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 G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function _0($,Z){0>J2?console.error("Unexpected pop."):(Z!==uY[J2]&&console.error("Unexpected Fiber popped."),$.current=hY[J2],hY[J2]=null,uY[J2]=null,J2--)}function C0($,Z,G){J2++,hY[J2]=$.current,uY[J2]=G,$.current=Z}function v0($){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){C0(i2,Z,$),C0(BZ,$,$),C0(a2,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?XF(Z):R2:R2;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=XF(Z),Z=qF(Z,G);else switch(G){case"svg":Z=$$;break;case"math":Z=M3;break;default:Z=R2}}G=G.toLowerCase(),G=eK(null,G),G={context:Z,ancestorInfo:G},_0(a2,$),C0(a2,G,$)}function q0($){_0(a2,$),_0(BZ,$),_0(i2,$)}function M0(){return v0(a2.current)}function n0($){$.memoizedState!==null&&C0(wG,$,$);var Z=v0(a2.current),G=$.type,Y=qF(Z.context,G);G=eK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(C0(BZ,$,$),C0(a2,Y,$))}function m0($){BZ.current===$&&(_0(a2,$),_0(BZ,$)),wG.current===$&&(_0(wG,$),QQ._currentValue=j9)}function v(){}function n(){if(HZ===0){yF=console.log,gF=console.info,hF=console.warn,uF=console.error,xF=console.group,mF=console.groupCollapsed,dF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}HZ++}function F0(){if(HZ--,HZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c0({},$,{value:yF}),info:c0({},$,{value:gF}),warn:c0({},$,{value:hF}),error:c0({},$,{value:uF}),group:c0({},$,{value:xF}),groupCollapsed:c0({},$,{value:mF}),groupEnd:c0({},$,{value:dF})})}0>HZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
18
18
  `)&&($=$.slice(29)),Z=$.indexOf(`
19
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 x0($){if(yY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);yY=Z&&Z[1]||"",uF=-1<G.stack.indexOf(`
20
+ `,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function d0($){if(xY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);xY=Z&&Z[1]||"",pF=-1<G.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+yY+$+uF}function y1($,Z){if(!$||gY)return"";var G=hY.get($);if(G!==void 0)return G;gY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,n();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(e){var g=e}Reflect.construct($,[],S)}else{try{S.call()}catch(e){g=e}$.call(S.prototype)}}else{try{throw Error()}catch(e){g=e}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch(e){if(e&&g&&typeof e.stack==="string")return[e.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 W=U.DetermineComponentFrameRoot(),R=W[0],L=W[1];if(R&&L){var _=R.split(`
22
+ `+xY+$+pF}function u1($,Z){if(!$||mY)return"";var G=dY.get($);if(G!==void 0)return G;mY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,n();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 W=U.DetermineComponentFrameRoot(),R=W[0],L=W[1];if(R&&L){var P=R.split(`
23
23
  `),k=L.split(`
24
- `);for(W=B=0;B<_.length&&!_[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===_.length||W===k.length)for(B=_.length-1,W=k.length-1;1<=B&&0<=W&&_[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(_[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||_[B]!==k[W]){var f=`
25
- `+_[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&hY.set($,f),f}while(1<=B&&0<=W);break}}}finally{gY=!1,x.H=Y,H0(),Error.prepareStackTrace=G}return _=(_=$?$.displayName||$.name:"")?x0(_):"",typeof $==="function"&&hY.set($,_),_}function v0($,Z){switch($.tag){case 26:case 27:case 5:return x0($.type);case 16:return x0("Lazy");case 13:return $.child!==Z&&Z!==null?x0("Suspense Fallback"):x0("Suspense");case 19:return x0("SuspenseList");case 0:case 15:return y1($.type,!1);case 11:return y1($.type.render,!1);case 1:return y1($.type,!0);case 31:return x0("Activity");default:return""}}function p1($){try{var Z="",G=null;do{Z+=v0($,G);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var W=Z;$:{var{name:R,env:L,debugLocation:_}=B;if(_!=null){var k=F0(_),f=k.lastIndexOf(`
24
+ `);for(W=B=0;B<P.length&&!P[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===P.length||W===k.length)for(B=P.length-1,W=k.length-1;1<=B&&0<=W&&P[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(P[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||P[B]!==k[W]){var f=`
25
+ `+P[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&dY.set($,f),f}while(1<=B&&0<=W);break}}}finally{mY=!1,x.H=Y,F0(),Error.prepareStackTrace=G}return P=(P=$?$.displayName||$.name:"")?d0(P):"",typeof $==="function"&&dY.set($,P),P}function b0($,Z){switch($.tag){case 26:case 27:case 5:return d0($.type);case 16:return d0("Lazy");case 13:return $.child!==Z&&Z!==null?d0("Suspense Fallback"):d0("Suspense");case 19:return d0("SuspenseList");case 0:case 15:return u1($.type,!1);case 11:return u1($.type.render,!1);case 1:return u1($.type,!0);case 31:return d0("Activity");default:return""}}function r1($){try{var Z="",G=null;do{Z+=b0($,G);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var W=Z;$:{var{name:R,env:L,debugLocation:P}=B;if(P!=null){var k=W0(P),f=k.lastIndexOf(`
26
26
  `),S=f===-1?k:k.slice(f+1);if(S.indexOf(R)!==-1){var g=`
27
- `+S;break $}}g=x0(R+(L?" ["+L+"]":""))}Z=W+g}}G=$,$=$.return}while($);return Z}catch(e){return`
28
- Error generating stack: `+e.message+`
29
- `+e.stack}}function L5($){return($=$?$.displayName||$.name:"")?x0($):""}function r6(){if(F6===null)return null;var $=F6._debugOwner;return $!=null?q0($):null}function eQ(){if(F6===null)return"";var $=F6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=x0($.type);break;case 13:Z+=x0("Suspense");break;case 19:Z+=x0("SuspenseList");break;case 31:Z+=x0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=L5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=L5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var Y=G._debugStack;if($&&Y){var U=F0(Y);U!==""&&(Z+=`
27
+ `+S;break $}}g=d0(R+(L?" ["+L+"]":""))}Z=W+g}}G=$,$=$.return}while($);return Z}catch($0){return`
28
+ Error generating stack: `+$0.message+`
29
+ `+$0.stack}}function O5($){return($=$?$.displayName||$.name:"")?d0($):""}function a6(){if(z6===null)return null;var $=z6._debugOwner;return $!=null?Y0($):null}function JJ(){if(z6===null)return"";var $=z6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=d0($.type);break;case 13:Z+=d0("Suspense");break;case 19:Z+=d0("SuspenseList");break;case 31:Z+=d0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=O5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=O5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var Y=G._debugStack;if($&&Y){var U=W0(Y);U!==""&&(Z+=`
30
30
  `+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
31
- `+F0(B))}else break;var W=Z}catch(R){W=`
31
+ `+W0(B))}else break;var W=Z}catch(R){W=`
32
32
  Error generating stack: `+R.message+`
33
- `+R.stack}return W}function G0($,Z,G,Y,U,B,W){var R=F6;n9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{n9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function n9($){x.getCurrentStack=$===null?null:eQ,V4=!1,F6=$}function h2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function D8($){try{return X5($),!1}catch(Z){return!0}}function X5($){return""+$}function B1($,Z){if(D8($))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,h2($)),X5($)}function C$($,Z){if(D8($))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,h2($)),X5($)}function k0($){if(D8($))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.",h2($)),X5($)}function o9($){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{T7=Z.inject($),C5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function w1($){if(typeof mC==="function"&&dC($),C5&&typeof C5.setStrictMode==="function")try{C5.setStrictMode(T7,$)}catch(Z){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function $J($){return $>>>=0,$===0?32:31-(pC($)/cC|0)|0}function q4($){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 u2($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=q4(Y):(W&=R,W!==0?U=q4(W):G||(G=R&~$,G!==0&&(U=q4(G))))):(R=Y&~B,R!==0?U=q4(R):W!==0?U=q4(W):G||(G=Y&~$,G!==0&&(U=q4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function x2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function CX($,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 a9(){var $=WG;return WG<<=1,(WG&62914560)===0&&(WG=4194304),$}function i9($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function v8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function ZJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:L,hiddenUpdates:_}=$;for(G=W&~G;0<G;){var k=31-S5(G),f=1<<k;R[k]=0,L[k]=-1;var S=_[k];if(S!==null)for(_[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&m2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function m2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-S5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function d2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-S5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function p2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:c2(G),(G&($.suspendedLanes|Z))!==0?0:G}function c2($){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 I$($,Z,G){if(E4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-S5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function b8($,Z){if(E4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-S5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,W6!==0&&W6<$?i6!==0&&i6<$?($&134217727)!==0?A4:wG:i6:W6}function y(){var $=q1.p;if($!==0)return $;return $=window.event,$===void 0?A4:IF($.type)}function r($,Z){var G=q1.p;try{return q1.p=$,Z()}finally{q1.p=G}}function $0($){delete $[F5],delete $[j5],delete $[pY],delete $[lC],delete $[rC]}function Y0($){var Z=$[F5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[a8]||G[F5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=KF($);$!==null;){if(G=$[F5])return G;$=KF($)}return Z}$=G,G=$.parentNode}return null}function S0($){if($=$[F5]||$[a8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function j0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function e0($){var Z=$[xF];return Z||(Z=$[xF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function z0($){$[KZ]=!0}function P5($,Z){G6($,Z),G6($+"Capture",Z)}function G6($,Z){q9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),q9[$]=Z;var G=$.toLowerCase();cY[G]=$,$==="onDoubleClick"&&(cY.ondblclick=$);for($=0;$<Z.length;$++)mF.add(Z[$])}function k8($,Z){sC[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 V$($){if(a6.call(pF,$))return!0;if(a6.call(dF,$))return!1;if(nC.test($))return pF[$]=!0;return dF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function kK($,Z,G){if(V$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return B1(G,Z),$===""+G?G:$}}function QJ($,Z,G){if(V$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){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}}B1(G,Z),$.setAttribute(Z,""+G)}}function JJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}B1(G,Z),$.setAttribute(Z,""+G)}}function l4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}B1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function I6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return k0($),$;default:return""}}function fK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function cP($,Z,G){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(W){k0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){k0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function IX($){if(!$._valueTracker){var Z=fK($)?"checked":"value";$._valueTracker=cP($,Z,""+$[Z])}}function yK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=fK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function GJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function V6($){return $.replace(oC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function gK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||lF||(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",r6()||"A component",Z.type),lF=!0),Z.value===void 0||Z.defaultValue===void 0||cF||(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",r6()||"A component",Z.type),cF=!0)}function VX($,Z,G,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(B1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+I6(Z)}else $.value!==""+I6(Z)&&($.value=""+I6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?OX($,W,I6(Z)):G!=null?OX($,W,I6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(B1(R,"name"),$.name=""+I6(R)):$.removeAttribute("name")}function hK($,Z,G,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(B1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){IX($);return}G=G!=null?""+I6(G):"",Z=Z!=null?""+I6(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(B1(W,"name"),$.name=W),IX($)}function OX($,Z,G){Z==="number"&&GJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function uK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?K$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||sF||(sF=!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||nF||(nF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||rF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),rF=!0)}function xK(){var $=r6();return $?`
33
+ `+R.stack}return W}function X0($,Z,G,Y,U,B,W){var R=z6;i9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{i9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function i9($){x.getCurrentStack=$===null?null:JJ,D4=!1,z6=$}function x8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function k2($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function H1($,Z){if(k2($))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,x8($)),U5($)}function V$($,Z){if(k2($))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,x8($)),U5($)}function f0($){if(k2($))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.",x8($)),U5($)}function t9($){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{P7=Z.inject($),E5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function z1($){if(typeof nC==="function"&&oC($),E5&&typeof E5.setStrictMode==="function")try{E5.setStrictMode(P7,$)}catch(Z){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function GJ($){return $>>>=0,$===0?32:31-(aC($)/iC|0)|0}function H4($){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 m8($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=H4(Y):(W&=R,W!==0?U=H4(W):G||(G=R&~$,G!==0&&(U=H4(G))))):(R=Y&~B,R!==0?U=H4(R):W!==0?U=H4(W):G||(G=Y&~$,G!==0&&(U=H4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function d8($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function AX($,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 e9(){var $=TG;return TG<<=1,(TG&62914560)===0&&(TG=4194304),$}function $7($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function f2($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function XJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:L,hiddenUpdates:P}=$;for(G=W&~G;0<G;){var k=31-y5(G),f=1<<k;R[k]=0,L[k]=-1;var S=P[k];if(S!==null)for(P[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&p8($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function p8($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function c8($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-y5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function l8($,Z){var G=Z&-Z;return G=(G&42)!==0?1:r8(G),(G&($.suspendedLanes|Z))!==0?0:G}function r8($){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 A$($,Z,G){if(b4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-y5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function y2($,Z){if(b4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,T6!==0&&T6<$?Z4!==0&&Z4<$?($&134217727)!==0?k4:LG:Z4:T6}function y(){var $=Y1.p;if($!==0)return $;return $=window.event,$===void 0?k4:EF($.type)}function r($,Z){var G=Y1.p;try{return Y1.p=$,Z()}finally{Y1.p=G}}function Z0($){delete $[z5],delete $[g5],delete $[sY],delete $[tC],delete $[eC]}function N0($){var Z=$[z5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[e2]||G[z5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=FF($);$!==null;){if(G=$[z5])return G;$=FF($)}return Z}$=G,G=$.parentNode}return null}function j0($){if($=$[z5]||$[e2]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function D0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $1($){var Z=$[cF];return Z||(Z=$[cF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function T0($){$[MZ]=!0}function V5($,Z){N6($,Z),N6($+"Capture",Z)}function N6($,Z){N9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),N9[$]=Z;var G=$.toLowerCase();nY[G]=$,$==="onDoubleClick"&&(nY.ondblclick=$);for($=0;$<Z.length;$++)lF.add(Z[$])}function g2($,Z){$I[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 E$($){if($4.call(sF,$))return!0;if($4.call(rF,$))return!1;if(ZI.test($))return sF[$]=!0;return rF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function hK($,Z,G){if(E$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return H1(G,Z),$===""+G?G:$}}function qJ($,Z,G){if(E$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){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}}H1(G,Z),$.setAttribute(Z,""+G)}}function YJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}H1(G,Z),$.setAttribute(Z,""+G)}}function n4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}H1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function A6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return f0($),$;default:return""}}function uK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function i_($,Z,G){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(W){f0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){f0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function EX($){if(!$._valueTracker){var Z=uK($)?"checked":"value";$._valueTracker=i_($,Z,""+$[Z])}}function xK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=uK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function NJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function E6($){return $.replace(QI,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function mK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||oF||(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",a6()||"A component",Z.type),oF=!0),Z.value===void 0||Z.defaultValue===void 0||nF||(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",a6()||"A component",Z.type),nF=!0)}function SX($,Z,G,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(H1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+A6(Z)}else $.value!==""+A6(Z)&&($.value=""+A6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?jX($,W,A6(Z)):G!=null?jX($,W,A6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(H1(R,"name"),$.name=""+A6(R)):$.removeAttribute("name")}function dK($,Z,G,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(H1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){EX($);return}G=G!=null?""+A6(G):"",Z=Z!=null?""+A6(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(H1(W,"name"),$.name=W),EX($)}function jX($,Z,G){Z==="number"&&NJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function pK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?M$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||iF||(iF=!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||tF||(tF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||aF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),aF=!0)}function cK(){var $=a6();return $?`
34
34
 
35
- Check the render method of \``+$+"`.":""}function t9($,Z,G,Y){if($=$.options,Z){Z={};for(var U=0;U<G.length;U++)Z["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&Y&&($[G].defaultSelected=!0)}else{G=""+I6(G),Z=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function mK($,Z){for($=0;$<aF.length;$++){var G=aF[$];if(Z[G]!=null){var Y=$5(Z[G]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,xK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,xK())}}Z.value===void 0||Z.defaultValue===void 0||oF||(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"),oF=!0)}function dK($,Z){Z.value===void 0||Z.defaultValue===void 0||iF||(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",r6()||"A component"),iF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function pK($,Z,G){if(Z!=null&&(Z=""+I6(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+I6(G):""}function cK($,Z,G,Y){if(Z==null){if(Y!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}G=Y}G==null&&(G=""),Z=G}G=I6(Z),$.defaultValue=G,Y=$.textContent,Y===G&&Y!==""&&Y!==null&&($.value=Y),IX($)}function lK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?lK($.children[0],Z):$}function X6($){return" "+" ".repeat($)}function e9($){return"+ "+" ".repeat($)}function l2($){return"- "+" ".repeat($)}function rK($){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 O$($,Z){return tF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function XJ($,Z,G){var Y=120-2*G;if(Z===null)return e9(G)+O$($,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)),e9(G)+O$($,Y)+`
37
- `+l2(G)+O$(Z,Y)+`
38
- `}return X6(G)+O$($,Y)+`
39
- `}function EX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function E$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if($5($))return"[...]";if($.$$typeof===C4)return(Z=a($.type))?"<"+Z+">":"<...>";var G=EX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=E$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function $7($,Z){return typeof $!=="string"||tF.test($)?"{"+E$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function AX($,Z,G){var Y=120-G.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=$7(Z[B],120-G.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?G+"<"+$+`>
35
+ Check the render method of \``+$+"`.":""}function Z7($,Z,G,Y){if($=$.options,Z){Z={};for(var U=0;U<G.length;U++)Z["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&Y&&($[G].defaultSelected=!0)}else{G=""+A6(G),Z=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function lK($,Z){for($=0;$<$W.length;$++){var G=$W[$];if(Z[G]!=null){var Y=Q5(Z[G]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,cK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,cK())}}Z.value===void 0||Z.defaultValue===void 0||eF||(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"),eF=!0)}function rK($,Z){Z.value===void 0||Z.defaultValue===void 0||ZW||(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",a6()||"A component"),ZW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function sK($,Z,G){if(Z!=null&&(Z=""+A6(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+A6(G):""}function nK($,Z,G,Y){if(Z==null){if(Y!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Q5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}G=Y}G==null&&(G=""),Z=G}G=A6(Z),$.defaultValue=G,Y=$.textContent,Y===G&&Y!==""&&Y!==null&&($.value=Y),EX($)}function oK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?oK($.children[0],Z):$}function U6($){return" "+" ".repeat($)}function Q7($){return"+ "+" ".repeat($)}function s8($){return"- "+" ".repeat($)}function aK($){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 S$($,Z){return QW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function UJ($,Z,G){var Y=120-2*G;if(Z===null)return Q7(G)+S$($,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)),Q7(G)+S$($,Y)+`
37
+ `+s8(G)+S$(Z,Y)+`
38
+ `}return U6(G)+S$($,Y)+`
39
+ `}function DX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function j$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(Q5($))return"[...]";if($.$$typeof===S4)return(Z=i($.type))?"<"+Z+">":"<...>";var G=DX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=j$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function J7($,Z){return typeof $!=="string"||QW.test($)?"{"+j$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function vX($,Z,G){var Y=120-G.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=J7(Z[B],120-G.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?G+"<"+$+`>
40
40
  `:0<Y?G+"<"+$+" "+U.join(" ")+`>
41
41
  `:G+"<"+$+`
42
42
  `+G+" "+U.join(`
43
43
  `+G+" ")+`
44
44
  `+G+`>
45
- `}function lP($,Z,G){var Y="",U=d0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,R=E$($[B],W);Z.hasOwnProperty(B)?(W=E$(Z[B],W),Y+=e9(G)+B+": "+R+`
46
- `,Y+=l2(G)+B+": "+W+`
47
- `):Y+=e9(G)+B+": "+R+`
48
- `}for(var L in U)U.hasOwnProperty(L)&&($=E$(U[L],120-2*G-L.length-2),Y+=l2(G)+L+": "+$+`
49
- `);return Y}function rP($,Z,G,Y){var U="",B=new Map;for(_ in G)G.hasOwnProperty(_)&&B.set(_.toLowerCase(),_);if(B.size===1&&B.has("children"))U+=AX($,Z,X6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var R=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var _=Z[W];L=G[L];var k=$7(_,R);R=$7(L,R),typeof _==="object"&&_!==null&&typeof L==="object"&&L!==null&&EX(_)==="Object"&&EX(L)==="Object"&&(2<Object.keys(_).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=X6(Y+1)+W+`={{
50
- `+lP(_,L,Y+2)+X6(Y+1)+`}}
51
- `:(U+=e9(Y+1)+W+"="+k+`
52
- `,U+=l2(Y+1)+W+"="+R+`
53
- `)}else U+=X6(Y+1)+W+"="+$7(Z[W],R)+`
54
- `}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=l2(Y+1)+f+"="+$7(G[f],S)+`
55
- `}}),U=U===""?X6(Y)+"<"+$+`>
56
- `:X6(Y)+"<"+$+`
57
- `+U+X6(Y)+`>
58
- `}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=XJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+XJ(""+Z,null,Y+1):U+XJ(""+Z,void 0,Y+1);return U}function sK($,Z){var G=rK($);if(G===null){G="";for($=$.child;$;)G+=sK($,Z),$=$.sibling;return G}return X6(Z)+"<"+G+`>
59
- `}function SX($,Z){var G=lK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return X6(Z)+`...
60
- `+SX(G,Z+1);G="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(G+=X6(Z)+"<"+B+`>
61
- `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=XJ(U,$.serverProps,Z),Z++;else if(B=rK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,R="";for(_ in U)if(U.hasOwnProperty(_)&&_!=="children"){var L=$7(U[_],15);if(W-=_.length+L.length+2,0>W){R+=" ...";break}R+=" "+_+"="+L}Y=X6(Y)+"<"+B+R+`>
62
- `,Z++}else $.serverProps===null?(Y=AX(B,U,e9(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=rP(B,U,$.serverProps,Z),Z++);var _="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(_+=SX(W,Z),B++):_+=sK(U,Z),U=U.sibling;U&&0<$.children.length&&(_+=X6(Z)+`...
63
- `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],_=typeof B==="string"?_+(l2(Z)+O$(B,120-2*Z)+`
64
- `):_+AX(B.type,B.props,l2(Z));return G+Y+_}function jX($){try{return`
65
-
66
- `+SX($,0)}catch(Z){return""}}function nK($,Z,G){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?G:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?jX(U).replaceAll(/^[+-]/gm,">"):""}function oK($,Z){var G=d0({},$||$W),Y={tag:Z};if(eF.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),iC.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),aC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=Y,Z==="form"&&(G.formTag=Y),Z==="a"&&(G.aTagInScope=Y),Z==="button"&&(G.buttonTagInScope=Y),Z==="nobr"&&(G.nobrTagInScope=Y),Z==="p"&&(G.pTagInButtonScope=Y),Z==="li"&&(G.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function aK($,Z,G){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(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)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 tC.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 G||Z===null;case"html":return G&&Z==="#document"||Z===null;case"body":return G&&(Z==="#document"||Z==="html")||Z===null}return!0}function sP($,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 iK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function DX($,Z){Z=Z||$W;var G=Z.current;if(Z=(G=aK($,G&&G.tag,Z.implicitRootScope)?null:G)?null:sP($,Z),Z=G||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!G)+"|"+$+"|"+Y,RG[Z])return!1;RG[Z]=!0;var U=(Z=F6)?iK(Z.return,Y):null,B=Z!==null&&U!==null?nK(U,Z,null):"",W="<"+$+">";return G?(G="",Y==="table"&&$==="tr"&&(G+=" 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
45
+ `}function t_($,Z,G){var Y="",U=c0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,R=j$($[B],W);Z.hasOwnProperty(B)?(W=j$(Z[B],W),Y+=Q7(G)+B+": "+R+`
46
+ `,Y+=s8(G)+B+": "+W+`
47
+ `):Y+=Q7(G)+B+": "+R+`
48
+ `}for(var L in U)U.hasOwnProperty(L)&&($=j$(U[L],120-2*G-L.length-2),Y+=s8(G)+L+": "+$+`
49
+ `);return Y}function e_($,Z,G,Y){var U="",B=new Map;for(P in G)G.hasOwnProperty(P)&&B.set(P.toLowerCase(),P);if(B.size===1&&B.has("children"))U+=vX($,Z,U6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var R=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var P=Z[W];L=G[L];var k=J7(P,R);R=J7(L,R),typeof P==="object"&&P!==null&&typeof L==="object"&&L!==null&&DX(P)==="Object"&&DX(L)==="Object"&&(2<Object.keys(P).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=U6(Y+1)+W+`={{
50
+ `+t_(P,L,Y+2)+U6(Y+1)+`}}
51
+ `:(U+=Q7(Y+1)+W+"="+k+`
52
+ `,U+=s8(Y+1)+W+"="+R+`
53
+ `)}else U+=U6(Y+1)+W+"="+J7(Z[W],R)+`
54
+ `}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=s8(Y+1)+f+"="+J7(G[f],S)+`
55
+ `}}),U=U===""?U6(Y)+"<"+$+`>
56
+ `:U6(Y)+"<"+$+`
57
+ `+U+U6(Y)+`>
58
+ `}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=UJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+UJ(""+Z,null,Y+1):U+UJ(""+Z,void 0,Y+1);return U}function iK($,Z){var G=aK($);if(G===null){G="";for($=$.child;$;)G+=iK($,Z),$=$.sibling;return G}return U6(Z)+"<"+G+`>
59
+ `}function bX($,Z){var G=oK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return U6(Z)+`...
60
+ `+bX(G,Z+1);G="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(G+=U6(Z)+"<"+B+`>
61
+ `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=UJ(U,$.serverProps,Z),Z++;else if(B=aK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,R="";for(P in U)if(U.hasOwnProperty(P)&&P!=="children"){var L=J7(U[P],15);if(W-=P.length+L.length+2,0>W){R+=" ...";break}R+=" "+P+"="+L}Y=U6(Y)+"<"+B+R+`>
62
+ `,Z++}else $.serverProps===null?(Y=vX(B,U,Q7(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=e_(B,U,$.serverProps,Z),Z++);var P="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(P+=bX(W,Z),B++):P+=iK(U,Z),U=U.sibling;U&&0<$.children.length&&(P+=U6(Z)+`...
63
+ `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],P=typeof B==="string"?P+(s8(Z)+S$(B,120-2*Z)+`
64
+ `):P+vX(B.type,B.props,s8(Z));return G+Y+P}function kX($){try{return`
65
+
66
+ `+bX($,0)}catch(Z){return""}}function tK($,Z,G){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?G:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?kX(U).replaceAll(/^[+-]/gm,">"):""}function eK($,Z){var G=c0({},$||GW),Y={tag:Z};if(JW.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),GI.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),JI.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=Y,Z==="form"&&(G.formTag=Y),Z==="a"&&(G.aTagInScope=Y),Z==="button"&&(G.buttonTagInScope=Y),Z==="nobr"&&(G.nobrTagInScope=Y),Z==="p"&&(G.pTagInButtonScope=Y),Z==="li"&&(G.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function $B($,Z,G){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(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)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 XI.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 G||Z===null;case"html":return G&&Z==="#document"||Z===null;case"body":return G&&(Z==="#document"||Z==="html")||Z===null}return!0}function $P($,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 ZB($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function fX($,Z){Z=Z||GW;var G=Z.current;if(Z=(G=$B($,G&&G.tag,Z.implicitRootScope)?null:G)?null:$P($,Z),Z=G||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!G)+"|"+$+"|"+Y,_G[Z])return!1;_G[Z]=!0;var U=(Z=z6)?ZB(Z.return,Y):null,B=Z!==null&&U!==null?tK(U,Z,null):"",W="<"+$+">";return G?(G="",Y==="table"&&$==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
67
  This will cause a hydration error.%s`,W,Y,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,W,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||G0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,Y,W)})),!1}function qJ($,Z,G){if(G||aK("#text",Z,!1))return!0;if(G="#text|"+Z,RG[G])return!1;RG[G]=!0;var Y=(G=F6)?iK(G,Z):null;return G=G!==null&&Y!==null?nK(Y,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
68
+ This will cause a hydration error.%s`,W,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||X0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,Y,W)})),!1}function KJ($,Z,G){if(G||$B("#text",Z,!1))return!0;if(G="#text|"+Z,_G[G])return!1;_G[G]=!0;var Y=(G=z6)?ZB(G,Z):null;return G=G!==null&&Y!==null?tK(Y,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,Z,G):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,G),!1}function A$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function nP($){return $.replace(ZI,function(Z,G){return G.toUpperCase()})}function tK($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?L7.hasOwnProperty(Z)&&L7[Z]||(L7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,nP(Z.replace($I,"ms-")))):eC.test(Z)?L7.hasOwnProperty(Z)&&L7[Z]||(L7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!JW.test(G)||rY.hasOwnProperty(G)&&rY[G]||(rY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(JW,""))),typeof G==="number"&&(isNaN(G)?GW||(GW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||XW||(XW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||qW.has(Z)?Z==="float"?$.cssFloat=G:(C$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function eK($,Z,G){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,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=lY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(U=lY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var L in Z)for(U=lY[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var _ in Y)if(U=Y[_],(B=R[_])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%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.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)_=Z[S],Z.hasOwnProperty(S)&&G[S]!==_&&tK($,S,_)}else for(Y in Z)Z.hasOwnProperty(Y)&&tK($,Y,Z[Y])}function S$($){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 $B($){return QI.get($)||$}function oP($,Z){if(a6.call(_7,Z)&&_7[Z])return!0;if(GI.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),_7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),_7[Z]=!0}if(JI.test(Z)){if($=Z.toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return _7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),_7[Z]=!0)}return!0}function aP($,Z){var G=[],Y;for(Y in Z)oP($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function iP($,Z,G,Y){if(a6.call(D5,Z)&&D5[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."),D5[Z]=!0;if(typeof G==="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),D5[Z]=!0;if(UW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),D5[Z]=!0}else if(UW.test(Z))return XI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),D5[Z]=!0;if(qI.test(Z)||YI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),D5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),D5[Z]=!0;if(U==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),D5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),D5[Z]=!0;if(TG.hasOwnProperty(U)){if(U=TG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),D5[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),D5[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 G){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 G?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()}.',G,Z,Z,G,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.',G,Z,Z,G,Z,Z,Z),D5[Z]=!0}case"function":case"symbol":return D5[Z]=!0,!1;case"string":if(G==="false"||G==="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}?",G,Z,G==="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,G),D5[Z]=!0}}return!0}function tP($,Z,G){var Y=[],U;for(U in Z)iP($,U,Z[U],G)||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 j$($){return NI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function r4(){}function vX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function ZB($){var Z=S0($);if(Z&&($=Z.stateNode)){var G=$[j5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(VX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;B1(Z,"name"),G=G.querySelectorAll('input[name="'+V6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[Z];if(Y!==$&&Y.form===$.form){var U=Y[j5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");VX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&yK(Y)}break $;case"textarea":pK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&t9($,!!G.multiple,Z,!1)}}}function QB($,Z,G){if(sY)return $(Z,G);sY=!0;try{var Y=$(Z);return Y}finally{if(sY=!1,C7!==null||I7!==null){if(K7(),C7&&(Z=C7,$=I7,I7=C7=null,ZB(Z),$))for(Z=0;Z<$.length;Z++)ZB($[Z])}}}function D$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[j5]||null;if(Y===null)return null;G=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(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function JB(){if(LG)return LG;var $,Z=oY,G=Z.length,Y,U="value"in i8?i8.value:i8.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return LG=U.slice($,1<Y?1-Y:void 0)}function YJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function NJ(){return!0}function GB(){return!1}function u5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?NJ:GB,this.isPropagationStopped=GB,this}return d0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=NJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=NJ)},persist:function(){},isPersistent:NJ}),Z}function eP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=PI[$])?!!Z[$]:!1}function bX(){return eP}function XB($,Z){switch($){case"keyup":return bI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==MW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function $_($,Z){switch($){case"compositionend":return qB(Z);case"keypress":if(Z.which!==WW)return null;return RW=!0,wW;case"textInput":return $=Z.data,$===wW&&RW?null:$;default:return null}}function Z_($,Z){if(V7)return $==="compositionend"||!eY&&XB($,Z)?($=JB(),LG=oY=i8=null,V7=!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 FW&&Z.locale!=="ko"?null:Z.data;default:return null}}function YB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!fI[$.type]:Z==="textarea"?!0:!1}function Q_($){if(!S4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function NB($,Z,G,Y){C7?I7?I7.push(Y):I7=[Y]:C7=Y,Z=$G(Z,"onChange"),0<Z.length&&(G=new PG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function J_($){cM($,0)}function UJ($){var Z=j0($);if(yK(Z))return $}function UB($,Z){if($==="change")return Z}function KB(){wZ&&(wZ.detachEvent("onpropertychange",BB),RZ=wZ=null)}function BB($){if($.propertyName==="value"&&UJ(RZ)){var Z=[];NB(Z,RZ,$,vX($)),QB(J_,Z)}}function G_($,Z,G){$==="focusin"?(KB(),wZ=Z,RZ=G,wZ.attachEvent("onpropertychange",BB)):$==="focusout"&&KB()}function X_($){if($==="selectionchange"||$==="keyup"||$==="keydown")return UJ(RZ)}function q_($,Z){if($==="click")return UJ(Z)}function Y_($,Z){if($==="input"||$==="change")return UJ(Z)}function N_($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function v$($,Z){if(v5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!a6.call(Z,U)||!v5($[U],Z[U]))return!1}return!0}function HB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function MB($,Z){var G=HB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=HB(G)}}function FB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?FB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function WB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=GJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=GJ($.document)}return Z}function kX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function wB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;ZN||O7==null||O7!==GJ(Y)||(Y=O7,("selectionStart"in Y)&&kX(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}),zZ&&v$(zZ,Y)||(zZ=Y,Y=$G($N,"onSelect"),0<Y.length&&(Z=new PG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=O7)))}function r2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function s2($){if(QN[$])return QN[$];if(!E7[$])return $;var Z=E7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in TW)return QN[$]=Z[G];return $}function s6($,Z){IW.set($,Z),P5(Z,[$])}function U_($){for(var Z=CG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if($5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==CG&&Z!==YN)return XN;Z=YN}else return XN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==CG&&Z!==qN)return XN;Z=qN}}return Z}function fX($,Z,G,Y){for(var U in $)a6.call($,U)&&U[0]!=="_"&&Y4(U,$[U],Z,G,Y)}function Y4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===C4){var B=a(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),L=R.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+"  ".repeat(Y)+$,"<"+B]),W!==null&&Y4("key",W,G,Y+1,U),$=!1;for(var _ in Z)_==="children"?Z.children!=null&&(!$5(Z.children)||0<Z.children.length)&&($=!0):a6.call(Z,_)&&_[0]!=="_"&&Y4(_,Z[_],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(_=U_(Z),_===qN||_===CG){Z=JSON.stringify(Z);break}else if(_===YN){G.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],Y4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,Y4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,Y4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push(["  ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(_=Object.getPrototypeOf(Z))&&typeof _.constructor==="function"&&(B=_.constructor.name),G.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&fX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===dI?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+"  ".repeat(Y)+$,Z])}function RB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([IG+"  ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U="  ".repeat(Y)+B,G.push([IG+U,"…"],[VG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===C4){if(W.type===R.type&&W.key===R.key){W=a(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",G.push([IG+U,W],[VG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),_=Object.prototype.toString.call(R);if(L===_&&(_==="[object Object]"||_==="[object Array]")){L=[EW+"  ".repeat(Y)+B,_==="[object Array]"?"Array":""],G.push(L),_=G.length,RB(W,R,G,Y+1)?_===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(L=Function.prototype.toString.call(W),_=Function.prototype.toString.call(R),L===_)){W=R.name===""?"() => {}":R.name+"() {}",G.push([EW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}Y4(B,W,G,Y,IG),Y4(B,R,G,Y,VG)}U=!1}}else G.push([VG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function q6($){l0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function N4($,Z,G,Y){L1&&(e8.start=Z,e8.end=G,Z8.color="warning",Z8.tooltipText=Y,Z8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,e8)):performance.measure(Y,e8))}function KJ($,Z,G){N4($,Z,G,"Reconnect")}function BJ($,Z,G,Y,U){var B=d($);if(B!==null&&L1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var _=$.memoizedProps;R=$._debugTask,_!==null&&W!==null&&W.memoizedProps!==_?(L=[pI],_=RB(W.memoizedProps,_,L,0),1<L.length&&(_&&!t8&&(W.lanes&U)===0&&100<$.actualDuration?(t8=!0,L[0]=cI,Z8.color="warning",Z8.tooltipText=AW):(Z8.color=Y,Z8.tooltipText=B),Z8.properties=L,e8.start=Z,e8.end=G,R!=null?R.run(performance.measure.bind(performance,"​"+B,e8)):performance.measure("​"+B,e8))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,Y)):console.timeStamp(B,Z,G,E6,void 0,Y)}}function yX($,Z,G,Y){if(L1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var L=Y[R];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&Y4("key",$.key,W,0,""),$.memoizedProps!==null&&fX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:E6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function U4($,Z,G,Y,U){if(U!==null){if(L1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&Y4("key",$.key,Y,0,""),$.memoizedProps!==null&&fX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:E6,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&&L1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,U)):console.timeStamp(B,Z,G,E6,void 0,U))}function K_($,Z,G,Y){if(L1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,l0,p0,U)):console.timeStamp(G,$,Z,l0,p0,U)}}function zB($,Z,G,Y){!L1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,l0,p0,G)):console.timeStamp("Prewarm",$,Z,l0,p0,G))}function TB($,Z,G,Y){!L1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,l0,p0,G)):console.timeStamp("Suspended",$,Z,l0,p0,G))}function B_($,Z,G,Y,U,B){if(L1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:l0,trackGroup:p0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function gX($,Z,G,Y){!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,l0,p0,"error")):console.timeStamp("Errored",$,Z,l0,p0,"error"))}function H_($,Z,G,Y){!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,l0,p0,"secondary-light")):console.timeStamp(G,$,Z,l0,p0,"secondary-light"))}function LB($,Z,G,Y,U){if(L1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:l0,trackGroup:p0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function b$($,Z,G){!L1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,l0,p0,"secondary-dark")):console.timeStamp("Animating",$,Z,l0,p0,"secondary-dark"))}function HJ(){for(var $=A7,Z=NN=A7=0;Z<$;){var G=A6[Z];A6[Z++]=null;var Y=A6[Z];A6[Z++]=null;var U=A6[Z];A6[Z++]=null;var B=A6[Z];if(A6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&PB(G,U,B)}}function MJ($,Z,G,Y){A6[A7++]=$,A6[A7++]=Z,A6[A7++]=G,A6[A7++]=Y,NN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function hX($,Z,G,Y){return MJ($,Z,G,Y),FJ($)}function _5($,Z){return MJ($,null,null,Z),FJ($)}function PB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&TZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-S5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function FJ($){if(rZ>XV)throw _9=rZ=0,sZ=mN=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.");_9>qV&&(_9=0,sZ=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&&gM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&gM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function n2($){if(S6===null)return $;var Z=S6($);return Z===void 0?$:Z.current}function uX($){if(S6===null)return $;var Z=S6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=n2($.render),$.render!==Z)?(Z={$$typeof:YZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function _B($,Z){if(S6===null)return!1;var G=$.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===M6&&(Y=!0);break;case 11:U===YZ?Y=!0:U===M6&&(Y=!0);break;case 14:case 15:U===BG?Y=!0:U===M6&&(Y=!0);break;default:return!1}return Y&&($=S6(G),$!==void 0&&$===S6(Z))?!0:!1}function CB($){S6!==null&&typeof WeakSet==="function"&&(S7===null&&(S7=new WeakSet),S7.add($))}function IB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var L=null;switch(R){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(S6===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(Y=!1,L!==null&&(L=S6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(R===1?Y=!0:_=!0))),S7!==null&&(S7.has($)||U!==null&&S7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||_)U=_5($,2),U!==null&&D1(U,$,2);if(B===null||Y||IB(B,Z,G),W===null)break;$=W}while(1)}function M_($,Z,G,Y){this.tag=$,this.key=G,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,SW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function xX($){return $=$.prototype,!(!$||!$.isReactComponent)}function s4($,Z){var G=$.alternate;switch(G===null?(G=P($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=n2($.type);break;case 1:G.type=n2($.type);break;case 11:G.type=uX($.type)}return G}function VB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function mX($,Z,G,Y,U,B){var W=0,R=$;if(typeof $==="function")xX($)&&(W=1),R=n2(R);else if(typeof $==="string")W=B0(),W=_C($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case bY:return Z=P(31,G,Z,U),Z.elementType=bY,Z.lanes=B,Z;case R7:return o2(G.children,U,B,Z);case KG:W=8,U|=I5,U|=t6;break;case SY:return $=G,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|f0),Z.elementType=SY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case DY:return Z=P(13,G,Z,U),Z.elementType=DY,Z.lanes=B,Z;case vY:return Z=P(19,G,Z,U),Z.elementType=vY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case I4:W=10;break $;case jY:W=9;break $;case YZ:W=11,R=uX(R);break $;case BG:W=14;break $;case M6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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?G="null":$5($)?G="array":$!==void 0&&$.$$typeof===C4?(G="<"+(a($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?q0(Y):null)&&(R+=`
71
+ This will cause a hydration error.%s`,Z,G),!1}function D$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function ZP($){return $.replace(NI,function(Z,G){return G.toUpperCase()})}function QB($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,ZP(Z.replace(YI,"ms-")))):qI.test(Z)?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!YW.test(G)||aY.hasOwnProperty(G)&&aY[G]||(aY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(YW,""))),typeof G==="number"&&(isNaN(G)?NW||(NW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||UW||(UW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||KW.has(Z)?Z==="float"?$.cssFloat=G:(V$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function JB($,Z,G){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,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=oY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(U=oY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var L in Z)for(U=oY[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var P in Y)if(U=Y[P],(B=R[P])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%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.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)P=Z[S],Z.hasOwnProperty(S)&&G[S]!==P&&QB($,S,P)}else for(Y in Z)Z.hasOwnProperty(Y)&&QB($,Y,Z[Y])}function v$($){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 GB($){return UI.get($)||$}function QP($,Z){if($4.call(O7,Z)&&O7[Z])return!0;if(BI.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=BW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),O7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),O7[Z]=!0}if(KI.test(Z)){if($=Z.toLowerCase(),$=BW.hasOwnProperty($)?$:null,$==null)return O7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),O7[Z]=!0)}return!0}function JP($,Z){var G=[],Y;for(Y in Z)QP($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function GP($,Z,G,Y){if($4.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 G==="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(MW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(MW.test(Z))return HI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(MI.test(Z)||FI.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"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),h5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(CG.hasOwnProperty(U)){if(U=CG[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 G){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 G?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()}.',G,Z,Z,G,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.',G,Z,Z,G,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(G==="false"||G==="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}?",G,Z,G==="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,G),h5[Z]=!0}}return!0}function XP($,Z,G){var Y=[],U;for(U in Z)GP($,U,Z[U],G)||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 b$($){return WI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function yX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function XB($){var Z=j0($);if(Z&&($=Z.stateNode)){var G=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(SX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;H1(Z,"name"),G=G.querySelectorAll('input[name="'+E6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[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.");SX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&xK(Y)}break $;case"textarea":sK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&Z7($,!!G.multiple,Z,!1)}}}function qB($,Z,G){if(iY)return $(Z,G);iY=!0;try{var Y=$(Z);return Y}finally{if(iY=!1,V7!==null||A7!==null){if(M7(),V7&&(Z=V7,$=A7,A7=V7=null,XB(Z),$))for(Z=0;Z<$.length;Z++)XB($[Z])}}}function k$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[g5]||null;if(Y===null)return null;G=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(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function YB(){if(IG)return IG;var $,Z=eY,G=Z.length,Y,U="value"in $8?$8.value:$8.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return IG=U.slice($,1<Y?1-Y:void 0)}function BJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function HJ(){return!0}function NB(){return!1}function c5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?HJ:NB,this.isPropagationStopped=NB,this}return c0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=HJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=HJ)},persist:function(){},isPersistent:HJ}),Z}function qP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=EI[$])?!!Z[$]:!1}function gX(){return qP}function UB($,Z){switch($){case"keyup":return xI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==RW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function YP($,Z){switch($){case"compositionend":return KB(Z);case"keypress":if(Z.which!==TW)return null;return _W=!0,LW;case"textInput":return $=Z.data,$===LW&&_W?null:$;default:return null}}function NP($,Z){if(E7)return $==="compositionend"||!JN&&UB($,Z)?($=YB(),IG=eY=$8=null,E7=!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 zW&&Z.locale!=="ko"?null:Z.data;default:return null}}function BB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!dI[$.type]:Z==="textarea"?!0:!1}function UP($){if(!f4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function HB($,Z,G,Y){V7?A7?A7.push(Y):A7=[Y]:V7=Y,Z=GG(Z,"onChange"),0<Z.length&&(G=new OG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function KP($){nM($,0)}function MJ($){var Z=D0($);if(xK(Z))return $}function MB($,Z){if($==="change")return Z}function FB(){TZ&&(TZ.detachEvent("onpropertychange",WB),LZ=TZ=null)}function WB($){if($.propertyName==="value"&&MJ(LZ)){var Z=[];HB(Z,LZ,$,yX($)),qB(KP,Z)}}function BP($,Z,G){$==="focusin"?(FB(),TZ=Z,LZ=G,TZ.attachEvent("onpropertychange",WB)):$==="focusout"&&FB()}function HP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return MJ(LZ)}function MP($,Z){if($==="click")return MJ(Z)}function FP($,Z){if($==="input"||$==="change")return MJ(Z)}function WP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function f$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!$4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function wB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function RB($,Z){var G=wB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=wB(G)}}function zB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?zB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function TB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=NJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=NJ($.document)}return Z}function hX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function LB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;XN||S7==null||S7!==NJ(Y)||(Y=S7,("selectionStart"in Y)&&hX(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}),_Z&&f$(_Z,Y)||(_Z=Y,Y=GG(GN,"onSelect"),0<Y.length&&(Z=new OG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=S7)))}function n8($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function o8($){if(qN[$])return qN[$];if(!j7[$])return $;var Z=j7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in CW)return qN[$]=Z[G];return $}function i6($,Z){EW.set($,Z),V5(Z,[$])}function wP($){for(var Z=AG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if(Q5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==AG&&Z!==BN)return UN;Z=BN}else return UN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==AG&&Z!==KN)return UN;Z=KN}}return Z}function uX($,Z,G,Y){for(var U in $)$4.call($,U)&&U[0]!=="_"&&M4(U,$[U],Z,G,Y)}function M4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===S4){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),L=R.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+"  ".repeat(Y)+$,"<"+B]),W!==null&&M4("key",W,G,Y+1,U),$=!1;for(var P in Z)P==="children"?Z.children!=null&&(!Q5(Z.children)||0<Z.children.length)&&($=!0):$4.call(Z,P)&&P[0]!=="_"&&M4(P,Z[P],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(P=wP(Z),P===KN||P===AG){Z=JSON.stringify(Z);break}else if(P===BN){G.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],M4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,M4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,M4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push(["  ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(P=Object.getPrototypeOf(Z))&&typeof P.constructor==="function"&&(B=P.constructor.name),G.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&uX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===oI?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+"  ".repeat(Y)+$,Z])}function _B($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([EG+"  ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U="  ".repeat(Y)+B,G.push([EG+U,"…"],[SG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===S4){if(W.type===R.type&&W.key===R.key){W=i(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",G.push([EG+U,W],[SG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),P=Object.prototype.toString.call(R);if(L===P&&(P==="[object Object]"||P==="[object Array]")){L=[DW+"  ".repeat(Y)+B,P==="[object Array]"?"Array":""],G.push(L),P=G.length,_B(W,R,G,Y+1)?P===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(L=Function.prototype.toString.call(W),P=Function.prototype.toString.call(R),L===P)){W=R.name===""?"() => {}":R.name+"() {}",G.push([DW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}M4(B,W,G,Y,EG),M4(B,R,G,Y,SG)}U=!1}}else G.push([SG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function K6($){s0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,G,Y){C1&&(Q8.start=Z,Q8.end=G,G2.color="warning",G2.tooltipText=Y,G2.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,Q8)):performance.measure(Y,Q8))}function FJ($,Z,G){F4($,Z,G,"Reconnect")}function WJ($,Z,G,Y,U){var B=d($);if(B!==null&&C1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var P=$.memoizedProps;R=$._debugTask,P!==null&&W!==null&&W.memoizedProps!==P?(L=[aI],P=_B(W.memoizedProps,P,L,0),1<L.length&&(P&&!Z8&&(W.lanes&U)===0&&100<$.actualDuration?(Z8=!0,L[0]=iI,G2.color="warning",G2.tooltipText=vW):(G2.color=Y,G2.tooltipText=B),G2.properties=L,Q8.start=Z,Q8.end=G,R!=null?R.run(performance.measure.bind(performance,"​"+B,Q8)):performance.measure("​"+B,Q8))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,j6,void 0,Y)):console.timeStamp(B,Z,G,j6,void 0,Y)}}function xX($,Z,G,Y){if(C1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var L=Y[R];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&M4("key",$.key,W,0,""),$.memoizedProps!==null&&uX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function W4($,Z,G,Y,U){if(U!==null){if(C1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&M4("key",$.key,Y,0,""),$.memoizedProps!==null&&uX($.memoizedProps,Y,0,""),Z={start:Z,end:G,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&&C1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,j6,void 0,U)):console.timeStamp(B,Z,G,j6,void 0,U))}function RP($,Z,G,Y){if(C1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,s0,l0,U)):console.timeStamp(G,$,Z,s0,l0,U)}}function PB($,Z,G,Y){!C1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,s0,l0,G)):console.timeStamp("Prewarm",$,Z,s0,l0,G))}function CB($,Z,G,Y){!C1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,s0,l0,G)):console.timeStamp("Suspended",$,Z,s0,l0,G))}function zP($,Z,G,Y,U,B){if(C1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:s0,trackGroup:l0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function mX($,Z,G,Y){!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,s0,l0,"error")):console.timeStamp("Errored",$,Z,s0,l0,"error"))}function TP($,Z,G,Y){!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,s0,l0,"secondary-light")):console.timeStamp(G,$,Z,s0,l0,"secondary-light"))}function IB($,Z,G,Y,U){if(C1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:s0,trackGroup:l0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function y$($,Z,G){!C1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,s0,l0,"secondary-dark")):console.timeStamp("Animating",$,Z,s0,l0,"secondary-dark"))}function wJ(){for(var $=D7,Z=HN=D7=0;Z<$;){var G=D6[Z];D6[Z++]=null;var Y=D6[Z];D6[Z++]=null;var U=D6[Z];D6[Z++]=null;var B=D6[Z];if(D6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&OB(G,U,B)}}function RJ($,Z,G,Y){D6[D7++]=$,D6[D7++]=Z,D6[D7++]=G,D6[D7++]=Y,HN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function dX($,Z,G,Y){return RJ($,Z,G,Y),zJ($)}function A5($,Z){return RJ($,null,null,Z),zJ($)}function OB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&PZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function zJ($){if(oZ>HO)throw I9=oZ=0,aZ=lN=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.");I9>MO&&(I9=0,aZ=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&&mM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&mM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function a8($){if(v6===null)return $;var Z=v6($);return Z===void 0?$:Z.current}function pX($){if(v6===null)return $;var Z=v6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=a8($.render),$.render!==Z)?(Z={$$typeof:KZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function VB($,Z){if(v6===null)return!1;var G=$.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===KZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===WG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=v6(G),$!==void 0&&$===v6(Z))?!0:!1}function AB($){v6!==null&&typeof WeakSet==="function"&&(v7===null&&(v7=new WeakSet),v7.add($))}function EB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var L=null;switch(R){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(v6===null)throw Error("Expected resolveFamily to be set during hot reload.");var P=!1;if(Y=!1,L!==null&&(L=v6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(R===1?Y=!0:P=!0))),v7!==null&&(v7.has($)||U!==null&&v7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||P)U=A5($,2),U!==null&&f1(U,$,2);if(B===null||Y||EB(B,Z,G),W===null)break;$=W}while(1)}function LP($,Z,G,Y){this.tag=$,this.key=G,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,bW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function cX($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var G=$.alternate;switch(G===null?(G=_($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=a8($.type);break;case 1:G.type=a8($.type);break;case 11:G.type=pX($.type)}return G}function SB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function lX($,Z,G,Y,U,B){var W=0,R=$;if(typeof $==="function")cX($)&&(W=1),R=a8(R);else if(typeof $==="string")W=M0(),W=SC($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case gY:return Z=_(31,G,Z,U),Z.elementType=gY,Z.lanes=B,Z;case L7:return i8(G.children,U,B,Z);case FG:W=8,U|=S5,U|=Q4;break;case bY:return $=G,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=_(12,$,Z,Y|y0),Z.elementType=bY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case fY:return Z=_(13,G,Z,U),Z.elementType=fY,Z.lanes=B,Z;case yY:return Z=_(19,G,Z,U),Z.elementType=yY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case j4:W=10;break $;case kY:W=9;break $;case KZ:W=11,R=pX(R);break $;case WG:W=14;break $;case R6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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?G="null":Q5($)?G="array":$!==void 0&&$.$$typeof===S4?(G="<"+(i($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?Y0(Y):null)&&(R+=`
72
72
 
73
- Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+R)),R=null}return Z=P(W,G,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function WJ($,Z,G){return Z=mX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function o2($,Z,G,Y){return $=P(7,$,Y,Z),$.lanes=G,$}function dX($,Z,G){return $=P(6,$,null,Z),$.lanes=G,$}function OB($){var Z=P(18,null,null,I0);return Z.stateNode=$,Z}function pX($,Z,G){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function Y6($,Z){if(typeof $==="object"&&$!==null){var G=UN.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:p1(Z)},UN.set($,Z),Z}return{value:$,source:Z,stack:p1(Z)}}function n4($,Z){f8(),j7[D7++]=LZ,j7[D7++]=OG,OG=$,LZ=Z}function EB($,Z,G){f8(),j6[D6++]=J8,j6[D6++]=G8,j6[D6++]=N9,N9=$;var Y=J8;$=G8;var U=32-S5(Y)-1;Y&=~(1<<U),G+=1;var B=32-S5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,J8=1<<32-S5(Z)+U|G<<U|Y,G8=B+$}else J8=1<<B|G<<U|Y,G8=$}function cX($){f8(),$.return!==null&&(n4($,1),EB($,1,0))}function lX($){for(;$===OG;)OG=j7[--D7],j7[D7]=null,LZ=j7[--D7],j7[D7]=null;for(;$===N9;)N9=j6[--D6],j6[D6]=null,G8=j6[--D6],j6[D6]=null,J8=j6[--D6],j6[D6]=null}function AB(){return f8(),N9!==null?{id:J8,overflow:G8}:null}function SB($,Z){f8(),j6[D6++]=J8,j6[D6++]=G8,j6[D6++]=N9,J8=Z.id,G8=Z.overflow,N9=$}function f8(){s0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function a2($,Z){if($.return===null){if(w6===null)w6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(w6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");w6.distanceFromLeaf>Z&&(w6.distanceFromLeaf=Z)}return w6}var G=a2($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function jB(){s0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function wJ($,Z){j4||($=a2($,0),$.serverProps=null,Z!==null&&(Z=NF(Z),$.serverTail.push(Z)))}function y8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=w6;throw Y!==null&&(w6=null,G=jX(Y)),k$(Y6(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:
73
+ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+R)),R=null}return Z=_(W,G,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function TJ($,Z,G){return Z=lX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function i8($,Z,G,Y){return $=_(7,$,Y,Z),$.lanes=G,$}function rX($,Z,G){return $=_(6,$,null,Z),$.lanes=G,$}function jB($){var Z=_(18,null,null,O0);return Z.stateNode=$,Z}function sX($,Z,G){return Z=_(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function B6($,Z){if(typeof $==="object"&&$!==null){var G=MN.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:r1(Z)},MN.set($,Z),Z}return{value:$,source:Z,stack:r1(Z)}}function i4($,Z){h2(),b7[k7++]=CZ,b7[k7++]=jG,jG=$,CZ=Z}function DB($,Z,G){h2(),b6[k6++]=q2,b6[k6++]=Y2,b6[k6++]=K9,K9=$;var Y=q2;$=Y2;var U=32-y5(Y)-1;Y&=~(1<<U),G+=1;var B=32-y5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,q2=1<<32-y5(Z)+U|G<<U|Y,Y2=B+$}else q2=1<<B|G<<U|Y,Y2=$}function nX($){h2(),$.return!==null&&(i4($,1),DB($,1,0))}function oX($){for(;$===jG;)jG=b7[--k7],b7[k7]=null,CZ=b7[--k7],b7[k7]=null;for(;$===K9;)K9=b6[--k6],b6[k6]=null,Y2=b6[--k6],b6[k6]=null,q2=b6[--k6],b6[k6]=null}function vB(){return h2(),K9!==null?{id:q2,overflow:Y2}:null}function bB($,Z){h2(),b6[k6++]=q2,b6[k6++]=Y2,b6[k6++]=K9,q2=Z.id,Y2=Z.overflow,K9=$}function h2(){o0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function t8($,Z){if($.return===null){if(L6===null)L6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(L6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");L6.distanceFromLeaf>Z&&(L6.distanceFromLeaf=Z)}return L6}var G=t8($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function kB(){o0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function LJ($,Z){y4||($=t8($,0),$.serverProps=null,Z!==null&&(Z=HF(Z),$.serverTail.push(Z)))}function u2($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=L6;throw Y!==null&&(L6=null,G=kX(Y)),g$(B6(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:
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 \``+W+"`."),W=29,G=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`+G),$)),KN}function DB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[F5]=$,Z[j5]=Y,BY(G,Y),G){case"dialog":n0("cancel",Z),n0("close",Z);break;case"iframe":case"object":case"embed":n0("load",Z);break;case"video":case"audio":for(G=0;G<nZ.length;G++)n0(nZ[G],Z);break;case"source":n0("error",Z);break;case"img":case"image":case"link":n0("error",Z),n0("load",Z);break;case"details":n0("toggle",Z);break;case"input":k8("input",Y),n0("invalid",Z),gK(Z,Y),hK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":uK(Z,Y);break;case"select":k8("select",Y),n0("invalid",Z),mK(Z,Y);break;case"textarea":k8("textarea",Y),n0("invalid",Z),dK(Z,Y),cK(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||nM(Z.textContent,G)?(Y.popover!=null&&(n0("beforetoggle",Z),n0("toggle",Z)),Y.onScroll!=null&&n0("scroll",Z),Y.onScrollEnd!=null&&n0("scrollend",Z),Y.onClick!=null&&(Z.onclick=r4),Z=!0):Z=!1,Z||y8($,!0)}function vB($){for(W5=$.return;W5;)switch(W5.tag){case 5:case 31:case 13:v6=!1;return;case 27:case 3:v6=!0;return;default:W5=W5.return}}function Z7($){if($!==W5)return!1;if(!s0)return vB($),s0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||wY($.type,$.memoizedProps);G=!G}if(G&&P1){for(G=P1;G;){var Y=a2($,0),U=NF(G);Y.serverTail.push(U),G=U.type==="Suspense"?LY(G):H6(G.nextSibling)}y8($)}if(vB($),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.");P1=LY($)}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.");P1=LY($)}else Z===27?(Z=P1,r8($.type)?($=eN,eN=null,P1=$):P1=Z):P1=W5?H6($.stateNode.nextSibling):null;return!0}function i2(){P1=W5=null,j4=s0=!1}function rX(){var $=Z2;return $!==null&&(y5===null?y5=$:y5.push.apply(y5,$),Z2=null),$}function k$($){Z2===null?Z2=[$]:Z2.push($)}function sX(){var $=w6;if($!==null){w6=null;for(var Z=jX($);0<$.children.length;)$=$.children[0];G0($.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`+G),$)),FN}function fB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[z5]=$,Z[g5]=Y,WY(G,Y),G){case"dialog":a0("cancel",Z),a0("close",Z);break;case"iframe":case"object":case"embed":a0("load",Z);break;case"video":case"audio":for(G=0;G<iZ.length;G++)a0(iZ[G],Z);break;case"source":a0("error",Z);break;case"img":case"image":case"link":a0("error",Z),a0("load",Z);break;case"details":a0("toggle",Z);break;case"input":g2("input",Y),a0("invalid",Z),mK(Z,Y),dK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":pK(Z,Y);break;case"select":g2("select",Y),a0("invalid",Z),lK(Z,Y);break;case"textarea":g2("textarea",Y),a0("invalid",Z),rK(Z,Y),nK(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||tM(Z.textContent,G)?(Y.popover!=null&&(a0("beforetoggle",Z),a0("toggle",Z)),Y.onScroll!=null&&a0("scroll",Z),Y.onScrollEnd!=null&&a0("scrollend",Z),Y.onClick!=null&&(Z.onclick=o4),Z=!0):Z=!1,Z||u2($,!0)}function yB($){for(T5=$.return;T5;)switch(T5.tag){case 5:case 31:case 13:f6=!1;return;case 27:case 3:f6=!0;return;default:T5=T5.return}}function G7($){if($!==T5)return!1;if(!o0)return yB($),o0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||LY($.type,$.memoizedProps);G=!G}if(G&&I1){for(G=I1;G;){var Y=t8($,0),U=HF(G);Y.serverTail.push(U),G=U.type==="Suspense"?IY(G):w6(G.nextSibling)}u2($)}if(yB($),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.");I1=IY($)}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.");I1=IY($)}else Z===27?(Z=I1,o2($.type)?($=JU,JU=null,I1=$):I1=Z):I1=T5?w6($.stateNode.nextSibling):null;return!0}function e8(){I1=T5=null,y4=o0=!1}function aX(){var $=G8;return $!==null&&(p5===null?p5=$:p5.push.apply(p5,$),G8=null),$}function g$($){G8===null?G8=[$]:G8.push($)}function iX(){var $=L6;if($!==null){L6=null;for(var Z=kX($);0<$.children.length;)$=$.children[0];X0($.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,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+G),$)),KN}function DB($){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 RJ(){v7=EG=null,b7=!1}function g8($,Z,G){_0(BN,Z._currentValue,$),Z._currentValue=G,_0(HN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==DW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=DW}function o4($,Z){$._currentValue=BN.current;var G=HN.current;L0(HN,Z),$._currentRenderer=G,L0(BN,Z)}function nX($,Z,G){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),$===G)break;$=$.return}$!==G&&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 oX($,Z,G,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Z.length;L++)if(R.context===Z[L]){B.lanes|=G,R=B.alternate,R!==null&&(R.lanes|=G),nX(B.return,G,$),Y||(W=null);break $}B=R.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),nX(W,G,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function Q7($,Z,G,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 W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var R=U.type;v5(U.pendingProps.value,W.value)||($!==null?$.push(R):$=[R])}}else if(U===HG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(eZ):$=[eZ])}U=U.return}$!==null&&oX(Z,$,G,Y),Z.flags|=262144}function zJ($){for($=$.firstContext;$!==null;){if(!v5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function t2($){EG=$,v7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function O1($){return b7&&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()."),bB(EG,$)}function TJ($,Z){return EG===null&&t2($),bB($,Z)}function bB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},v7===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().");v7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else v7=v7.next=Z;return G}function aX(){return{controller:new sI,data:new Map,refCount:0}}function e2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function f$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&nI(oI,function(){$.controller.abort()})}function K4($,Z,G){if(($&127)!==0)0>D4&&(D4=l1(),_Z=AG(Z),MN=Z,G!=null&&(FN=d(G)),(i0&(Q5|T6))!==K5&&(v1=!0,G2=PZ),$=QZ(),Z=ZZ(),$!==k7||Z!==CZ?k7=-1.1:Z!==null&&(G2=PZ),K9=$,CZ=Z);else if(($&4194048)!==0&&0>b6&&(b6=l1(),IZ=AG(Z),vW=Z,G!=null&&(bW=d(G)),0>Y8)){if($=QZ(),Z=ZZ(),$!==q2||Z!==B9)q2=-1.1;X2=$,B9=Z}}function F_($){if(0>D4){D4=l1(),_Z=$._debugTask!=null?$._debugTask:null,(i0&(Q5|T6))!==K5&&(G2=PZ);var Z=QZ(),G=ZZ();Z!==k7||G!==CZ?k7=-1.1:G!==null&&(G2=PZ),K9=Z,CZ=G}if(0>b6&&(b6=l1(),IZ=$._debugTask!=null?$._debugTask:null,0>Y8)){if($=QZ(),Z=ZZ(),$!==q2||Z!==B9)q2=-1.1;X2=$,B9=Z}}function a4(){var $=U9;return U9=0,$}function LJ($){var Z=U9;return U9=$,Z}function y$($){var Z=U9;return U9+=$,Z}function PJ(){P0=T0=-1.1}function N6(){var $=T0;return T0=-1.1,$}function U6($){0<=$&&(T0=$)}function B4(){var $=A1;return A1=-0,$}function H4($){0<=$&&(A1=$)}function M4(){var $=E1;return E1=null,$}function F4(){var $=v1;return v1=!1,$}function iX($){b5=l1(),0>$.actualStartTime&&($.actualStartTime=b5)}function tX($){if(0<=b5){var Z=l1()-b5;$.actualDuration+=Z,$.selfBaseDuration=Z,b5=-1}}function kB($){if(0<=b5){var Z=l1()-b5;$.actualDuration+=Z,b5=-1}}function W4(){if(0<=b5){var $=l1(),Z=$-b5;b5=-1,U9+=Z,A1+=Z,P0=$}}function fB($){E1===null&&(E1=[]),E1.push($),q8===null&&(q8=[]),q8.push($)}function w4(){b5=l1(),0>T0&&(T0=b5)}function g$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function W_($,Z){if(OZ===null){var G=OZ=[];wN=0,H9=YY(),f7={status:"pending",value:void 0,then:function(Y){G.push(Y)}}}return wN++,Z.then(yB,yB),Z}function yB(){if(--wN===0&&(-1<b6||(Y8=-1.1),OZ!==null)){f7!==null&&(f7.status="fulfilled");var $=OZ;OZ=null,H9=0,f7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function w_($,Z){var G=[],Y={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<G.length;U++)(0,G[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),Y}function eX(){var $=M9.current;return $!==null?$:W1.pooledCache}function _J($,Z){Z===null?_0(M9,M9.current,$):_0(M9,Z.pool,$)}function gB(){var $=eX();return $===null?null:{parent:c1._currentValue,pool:$}}function hB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function uB($){return $=$.status,$==="fulfilled"||$==="rejected"}function xB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(G=Y[G],G===void 0?Y.push(Z):G!==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(r4,r4),Z=G),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,dB($),$;default:if(typeof Z.status==="string")Z.then(r4,r4);else{if($=W1,$!==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 W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,dB($),$}throw W9=Z,bZ=!0,y7}}function h8($){try{return eI($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw W9=Z,bZ=!0,y7;throw Z}}function mB(){if(W9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=W9;return W9=null,bZ=!1,$}function dB($){if($===y7||$===yG)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 B5($){var Z=y0;return $!=null&&(y0=Z===null?$:Z.concat($)),Z}function $q(){var $=y0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function CJ($,Z,G){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=WJ($,G.mode,0),Z._debugInfo=y0,Z.return=G),G0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function IJ($){var Z=kZ;return kZ+=1,g7===null&&(g7=hB()),xB(g7,$,Z)}function h$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function pB($,Z){if(Z.$$typeof===vC)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",Z)})}}function _J(){f7=DG=null,y7=!1}function x2($,Z,G){C0(WN,Z._currentValue,$),Z._currentValue=G,C0(wN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==fW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=fW}function t4($,Z){$._currentValue=WN.current;var G=wN.current;_0(wN,Z),$._currentRenderer=G,_0(WN,Z)}function tX($,Z,G){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),$===G)break;$=$.return}$!==G&&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 eX($,Z,G,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Z.length;L++)if(R.context===Z[L]){B.lanes|=G,R=B.alternate,R!==null&&(R.lanes|=G),tX(B.return,G,$),Y||(W=null);break $}B=R.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),tX(W,G,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function X7($,Z,G,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 W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var R=U.type;u5(U.pendingProps.value,W.value)||($!==null?$.push(R):$=[R])}}else if(U===wG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(QQ):$=[QQ])}U=U.return}$!==null&&eX(Z,$,G,Y),Z.flags|=262144}function PJ($){for($=$.firstContext;$!==null;){if(!u5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function $9($){DG=$,f7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function S1($){return y7&&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()."),gB(DG,$)}function CJ($,Z){return DG===null&&$9($),gB($,Z)}function gB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},f7===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().");f7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else f7=f7.next=Z;return G}function $q(){return{controller:new $O,data:new Map,refCount:0}}function Z9($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function h$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&ZO(QO,function(){$.controller.abort()})}function w4($,Z,G){if(($&127)!==0)0>g4&&(g4=n1(),OZ=vG(Z),RN=Z,G!=null&&(zN=d(G)),(e0&(G5|C6))!==F5&&(y1=!0,Y8=IZ),$=XZ(),Z=GZ(),$!==g7||Z!==VZ?g7=-1.1:Z!==null&&(Y8=IZ),H9=$,VZ=Z);else if(($&4194048)!==0&&0>y6&&(y6=n1(),AZ=vG(Z),yW=Z,G!=null&&(gW=d(G)),0>K2)){if($=XZ(),Z=GZ(),$!==U8||Z!==M9)U8=-1.1;N8=$,M9=Z}}function _P($){if(0>g4){g4=n1(),OZ=$._debugTask!=null?$._debugTask:null,(e0&(G5|C6))!==F5&&(Y8=IZ);var Z=XZ(),G=GZ();Z!==g7||G!==VZ?g7=-1.1:G!==null&&(Y8=IZ),H9=Z,VZ=G}if(0>y6&&(y6=n1(),AZ=$._debugTask!=null?$._debugTask:null,0>K2)){if($=XZ(),Z=GZ(),$!==U8||Z!==M9)U8=-1.1;N8=$,M9=Z}}function e4(){var $=B9;return B9=0,$}function IJ($){var Z=B9;return B9=$,Z}function u$($){var Z=B9;return B9+=$,Z}function OJ(){P0=L0=-1.1}function H6(){var $=L0;return L0=-1.1,$}function M6($){0<=$&&(L0=$)}function R4(){var $=v1;return v1=-0,$}function z4($){0<=$&&(v1=$)}function T4(){var $=j1;return j1=null,$}function L4(){var $=y1;return y1=!1,$}function Zq($){x5=n1(),0>$.actualStartTime&&($.actualStartTime=x5)}function Qq($){if(0<=x5){var Z=n1()-x5;$.actualDuration+=Z,$.selfBaseDuration=Z,x5=-1}}function hB($){if(0<=x5){var Z=n1()-x5;$.actualDuration+=Z,x5=-1}}function _4(){if(0<=x5){var $=n1(),Z=$-x5;x5=-1,B9+=Z,v1+=Z,P0=$}}function uB($){j1===null&&(j1=[]),j1.push($),U2===null&&(U2=[]),U2.push($)}function P4(){x5=n1(),0>L0&&(L0=x5)}function x$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function PP($,Z){if(SZ===null){var G=SZ=[];LN=0,F9=BY(),h7={status:"pending",value:void 0,then:function(Y){G.push(Y)}}}return LN++,Z.then(xB,xB),Z}function xB(){if(--LN===0&&(-1<y6||(K2=-1.1),SZ!==null)){h7!==null&&(h7.status="fulfilled");var $=SZ;SZ=null,F9=0,h7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function CP($,Z){var G=[],Y={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<G.length;U++)(0,G[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),Y}function Jq(){var $=W9.current;return $!==null?$:w1.pooledCache}function VJ($,Z){Z===null?C0(W9,W9.current,$):C0(W9,Z.pool,$)}function mB(){var $=Jq();return $===null?null:{parent:s1._currentValue,pool:$}}function dB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function pB($){return $=$.status,$==="fulfilled"||$==="rejected"}function cB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(G=Y[G],G===void 0?Y.push(Z):G!==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=G),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,rB($),$;default:if(typeof Z.status==="string")Z.then(o4,o4);else{if($=w1,$!==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 W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,rB($),$}throw R9=Z,yZ=!0,u7}}function m2($){try{return qO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw R9=Z,yZ=!0,u7;throw Z}}function lB(){if(R9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=R9;return R9=null,yZ=!1,$}function rB($){if($===u7||$===xG)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 W5($){var Z=g0;return $!=null&&(g0=Z===null?$:Z.concat($)),Z}function Gq(){var $=g0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function AJ($,Z,G){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=TJ($,G.mode,0),Z._debugInfo=g0,Z.return=G),X0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function EJ($){var Z=gZ;return gZ+=1,x7===null&&(x7=dB()),cB(x7,$,Z)}function m$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function sB($,Z){if(Z.$$typeof===uC)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 VJ($,Z){var G=$q();G!==null?G.run(pB.bind(null,$,Z)):pB($,Z)}function cB($,Z){var G=d($)||"Component";eW[G]||(eW[G]=!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.
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 SJ($,Z){var G=Gq();G!==null?G.run(sB.bind(null,$,Z)):sB($,Z)}function nB($,Z){var G=d($)||"Component";Jw[G]||(Jw[G]=!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
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,G,Z,G))}function OJ($,Z){var G=$q();G!==null?G.run(cB.bind(null,$,Z)):cB($,Z)}function lB($,Z){var G=d($)||"Component";$w[G]||($w[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,Z,Z,G,Z,G))}function jJ($,Z){var G=Gq();G!==null?G.run(nB.bind(null,$,Z)):nB($,Z)}function oB($,Z){var G=d($)||"Component";Gw[G]||(Gw[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,G,Z,G))}function EJ($,Z){var G=$q();G!==null?G.run(lB.bind(null,$,Z)):lB($,Z)}function rB($){function Z(E,j){if($){var b=E.deletions;b===null?(E.deletions=[j],E.flags|=16):b.push(j)}}function G(E,j){if(!$)return null;for(;j!==null;)Z(E,j),j=j.sibling;return null}function Y(E){for(var j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function U(E,j){return E=s4(E,j),E.index=0,E.sibling=null,E}function B(E,j,b){if(E.index=b,!$)return E.flags|=1048576,j;if(b=E.alternate,b!==null)return b=b.index,b<j?(E.flags|=67108866,j):b;return E.flags|=67108866,j}function W(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function R(E,j,b,m){if(j===null||j.tag!==6)return j=dX(b,E.mode,m),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=E,j._debugInfo=y0,j}function L(E,j,b,m){var Z0=b.type;if(Z0===R7)return j=k(E,j,b.props.children,m,b.key),CJ(b,j,E),j;if(j!==null&&(j.elementType===Z0||_B(j,b)||typeof Z0==="object"&&Z0!==null&&Z0.$$typeof===M6&&h8(Z0)===j.type))return j=U(j,b.props),h$(j,b),j.return=E,j._debugOwner=b._owner,j._debugInfo=y0,j;return j=WJ(b,E.mode,m),h$(j,b),j.return=E,j._debugInfo=y0,j}function _(E,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=pX(b,E.mode,m),j.return=E,j._debugInfo=y0,j;return j=U(j,b.children||[]),j.return=E,j._debugInfo=y0,j}function k(E,j,b,m,Z0){if(j===null||j.tag!==7)return j=o2(b,E.mode,m,Z0),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=E,j._debugInfo=y0,j}function f(E,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=dX(""+j,E.mode,b),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case C4:return b=WJ(j,E.mode,b),h$(b,j),b.return=E,E=B5(j._debugInfo),b._debugInfo=y0,y0=E,b;case w7:return j=pX(j,E.mode,b),j.return=E,j._debugInfo=y0,j;case M6:var m=B5(j._debugInfo);return j=h8(j),E=f(E,j,b),y0=m,E}if($5(j)||t(j))return b=o2(j,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=B5(j._debugInfo),b._debugInfo=y0,y0=E,b;if(typeof j.then==="function")return m=B5(j._debugInfo),E=f(E,IJ(j),b),y0=m,E;if(j.$$typeof===I4)return f(E,TJ(E,j),b);VJ(E,j)}return typeof j==="function"&&OJ(E,j),typeof j==="symbol"&&EJ(E,j),null}function S(E,j,b,m){var Z0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0!==null?null:R(E,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case C4:return b.key===Z0?(Z0=B5(b._debugInfo),E=L(E,j,b,m),y0=Z0,E):null;case w7:return b.key===Z0?_(E,j,b,m):null;case M6:return Z0=B5(b._debugInfo),b=h8(b),E=S(E,j,b,m),y0=Z0,E}if($5(b)||t(b)){if(Z0!==null)return null;return Z0=B5(b._debugInfo),E=k(E,j,b,m,null),y0=Z0,E}if(typeof b.then==="function")return Z0=B5(b._debugInfo),E=S(E,j,IJ(b),m),y0=Z0,E;if(b.$$typeof===I4)return S(E,j,TJ(E,b),m);VJ(E,b)}return typeof b==="function"&&OJ(E,b),typeof b==="symbol"&&EJ(E,b),null}function g(E,j,b,m,Z0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,R(j,E,""+m,Z0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case C4:return b=E.get(m.key===null?b:m.key)||null,E=B5(m._debugInfo),j=L(j,b,m,Z0),y0=E,j;case w7:return E=E.get(m.key===null?b:m.key)||null,_(j,E,m,Z0);case M6:var O0=B5(m._debugInfo);return m=h8(m),j=g(E,j,b,m,Z0),y0=O0,j}if($5(m)||t(m))return b=E.get(b)||null,E=B5(m._debugInfo),j=k(j,b,m,Z0,null),y0=E,j;if(typeof m.then==="function")return O0=B5(m._debugInfo),j=g(E,j,b,IJ(m),Z0),y0=O0,j;if(m.$$typeof===I4)return g(E,j,b,TJ(j,m),Z0);VJ(j,m)}return typeof m==="function"&&OJ(j,m),typeof m==="symbol"&&EJ(j,m),null}function e(E,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case C4:case w7:z(E,j,b);var Z0=b.key;if(typeof Z0!=="string")break;if(m===null){m=new Set,m.add(Z0);break}if(!m.has(Z0)){m.add(Z0);break}G0(j,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.",Z0)});break;case M6:b=h8(b),e(E,j,b,m)}return m}function J0(E,j,b,m){for(var Z0=null,O0=null,R0=null,U0=j,b0=j=0,_1=null;U0!==null&&b0<b.length;b0++){U0.index>b0?(_1=U0,U0=null):_1=U0.sibling;var x1=S(E,U0,b[b0],m);if(x1===null){U0===null&&(U0=_1);break}Z0=e(E,x1,b[b0],Z0),$&&U0&&x1.alternate===null&&Z(E,U0),j=B(x1,j,b0),R0===null?O0=x1:R0.sibling=x1,R0=x1,U0=_1}if(b0===b.length)return G(E,U0),s0&&n4(E,b0),O0;if(U0===null){for(;b0<b.length;b0++)U0=f(E,b[b0],m),U0!==null&&(Z0=e(E,U0,b[b0],Z0),j=B(U0,j,b0),R0===null?O0=U0:R0.sibling=U0,R0=U0);return s0&&n4(E,b0),O0}for(U0=Y(U0);b0<b.length;b0++)_1=g(U0,E,b0,b[b0],m),_1!==null&&(Z0=e(E,_1,b[b0],Z0),$&&_1.alternate!==null&&U0.delete(_1.key===null?b0:_1.key),j=B(_1,j,b0),R0===null?O0=_1:R0.sibling=_1,R0=_1);return $&&U0.forEach(function(w8){return Z(E,w8)}),s0&&n4(E,b0),O0}function z1(E,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Z0=null,O0=null,R0=j,U0=j=0,b0=null,_1=null,x1=b.next();R0!==null&&!x1.done;U0++,x1=b.next()){R0.index>U0?(b0=R0,R0=null):b0=R0.sibling;var w8=S(E,R0,x1.value,m);if(w8===null){R0===null&&(R0=b0);break}_1=e(E,w8,x1.value,_1),$&&R0&&w8.alternate===null&&Z(E,R0),j=B(w8,j,U0),O0===null?Z0=w8:O0.sibling=w8,O0=w8,R0=b0}if(x1.done)return G(E,R0),s0&&n4(E,U0),Z0;if(R0===null){for(;!x1.done;U0++,x1=b.next())R0=f(E,x1.value,m),R0!==null&&(_1=e(E,R0,x1.value,_1),j=B(R0,j,U0),O0===null?Z0=R0:O0.sibling=R0,O0=R0);return s0&&n4(E,U0),Z0}for(R0=Y(R0);!x1.done;U0++,x1=b.next())b0=g(R0,E,U0,x1.value,m),b0!==null&&(_1=e(E,b0,x1.value,_1),$&&b0.alternate!==null&&R0.delete(b0.key===null?U0:b0.key),j=B(b0,j,U0),O0===null?Z0=b0:O0.sibling=b0,O0=b0);return $&&R0.forEach(function(CV){return Z(E,CV)}),s0&&n4(E,U0),Z0}function o0(E,j,b,m){if(typeof b==="object"&&b!==null&&b.type===R7&&b.key===null&&(CJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case C4:var Z0=B5(b._debugInfo);$:{for(var O0=b.key;j!==null;){if(j.key===O0){if(O0=b.type,O0===R7){if(j.tag===7){G(E,j.sibling),m=U(j,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=y0,CJ(b,m,E),E=m;break $}}else if(j.elementType===O0||_B(j,b)||typeof O0==="object"&&O0!==null&&O0.$$typeof===M6&&h8(O0)===j.type){G(E,j.sibling),m=U(j,b.props),h$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=y0,E=m;break $}G(E,j);break}else Z(E,j);j=j.sibling}b.type===R7?(m=o2(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=y0,CJ(b,m,E),E=m):(m=WJ(b,E.mode,m),h$(m,b),m.return=E,m._debugInfo=y0,E=m)}return E=W(E),y0=Z0,E;case w7:$:{Z0=b;for(b=Z0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Z0.containerInfo&&j.stateNode.implementation===Z0.implementation){G(E,j.sibling),m=U(j,Z0.children||[]),m.return=E,E=m;break $}else{G(E,j);break}else Z(E,j);j=j.sibling}m=pX(Z0,E.mode,m),m.return=E,E=m}return W(E);case M6:return Z0=B5(b._debugInfo),b=h8(b),E=o0(E,j,b,m),y0=Z0,E}if($5(b))return Z0=B5(b._debugInfo),E=J0(E,j,b,m),y0=Z0,E;if(t(b)){if(Z0=B5(b._debugInfo),O0=t(b),typeof O0!=="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=O0.call(b);if(R0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")iW||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."),iW=!0}else b.entries!==O0||LN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),LN=!0);return E=z1(E,j,R0,m),y0=Z0,E}if(typeof b.then==="function")return Z0=B5(b._debugInfo),E=o0(E,j,IJ(b),m),y0=Z0,E;if(b.$$typeof===I4)return o0(E,j,TJ(E,b),m);VJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0=""+b,j!==null&&j.tag===6?(G(E,j.sibling),m=U(j,Z0),m.return=E,E=m):(G(E,j),m=dX(Z0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=y0,E=m),W(E);return typeof b==="function"&&OJ(E,b),typeof b==="symbol"&&EJ(E,b),G(E,j)}return function(E,j,b,m){var Z0=y0;y0=null;try{kZ=0;var O0=o0(E,j,b,m);return g7=null,O0}catch(_1){if(_1===y7||_1===yG)throw _1;var R0=P(29,_1,null,E.mode);R0.lanes=m,R0.return=E;var U0=R0._debugInfo=y0;if(R0._debugOwner=E._debugOwner,R0._debugTask=E._debugTask,U0!=null){for(var b0=U0.length-1;0<=b0;b0--)if(typeof U0[b0].stack==="string"){R0._debugOwner=U0[b0],R0._debugTask=U0[b0].debugTask;break}}return R0}finally{y0=Z0}}}function sB($,Z){var G=$5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"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>",G,Z,G),!1):!0}function Zq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function u8($){return{lane:$,tag:Qw,payload:null,callback:null,next:null}}function x8($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,_N===Y&&!Xw){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.
100
+ <%s>%s</%s>`,G,Z,G))}function DJ($,Z){var G=Gq();G!==null?G.run(oB.bind(null,$,Z)):oB($,Z)}function aB($){function Z(A,j){if($){var b=A.deletions;b===null?(A.deletions=[j],A.flags|=16):b.push(j)}}function G(A,j){if(!$)return null;for(;j!==null;)Z(A,j),j=j.sibling;return null}function Y(A){for(var j=new Map;A!==null;)A.key!==null?j.set(A.key,A):j.set(A.index,A),A=A.sibling;return j}function U(A,j){return A=a4(A,j),A.index=0,A.sibling=null,A}function B(A,j,b){if(A.index=b,!$)return A.flags|=1048576,j;if(b=A.alternate,b!==null)return b=b.index,b<j?(A.flags|=67108866,j):b;return A.flags|=67108866,j}function W(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function R(A,j,b,m){if(j===null||j.tag!==6)return j=rX(b,A.mode,m),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;return j=U(j,b),j.return=A,j._debugInfo=g0,j}function L(A,j,b,m){var Q0=b.type;if(Q0===L7)return j=k(A,j,b.props.children,m,b.key),AJ(b,j,A),j;if(j!==null&&(j.elementType===Q0||VB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===R6&&m2(Q0)===j.type))return j=U(j,b.props),m$(j,b),j.return=A,j._debugOwner=b._owner,j._debugInfo=g0,j;return j=TJ(b,A.mode,m),m$(j,b),j.return=A,j._debugInfo=g0,j}function P(A,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=sX(b,A.mode,m),j.return=A,j._debugInfo=g0,j;return j=U(j,b.children||[]),j.return=A,j._debugInfo=g0,j}function k(A,j,b,m,Q0){if(j===null||j.tag!==7)return j=i8(b,A.mode,m,Q0),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;return j=U(j,b),j.return=A,j._debugInfo=g0,j}function f(A,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=rX(""+j,A.mode,b),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case S4:return b=TJ(j,A.mode,b),m$(b,j),b.return=A,A=W5(j._debugInfo),b._debugInfo=g0,g0=A,b;case T7:return j=sX(j,A.mode,b),j.return=A,j._debugInfo=g0,j;case R6:var m=W5(j._debugInfo);return j=m2(j),A=f(A,j,b),g0=m,A}if(Q5(j)||t(j))return b=i8(j,A.mode,b,null),b.return=A,b._debugOwner=A,b._debugTask=A._debugTask,A=W5(j._debugInfo),b._debugInfo=g0,g0=A,b;if(typeof j.then==="function")return m=W5(j._debugInfo),A=f(A,EJ(j),b),g0=m,A;if(j.$$typeof===j4)return f(A,CJ(A,j),b);SJ(A,j)}return typeof j==="function"&&jJ(A,j),typeof j==="symbol"&&DJ(A,j),null}function S(A,j,b,m){var Q0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:R(A,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case S4:return b.key===Q0?(Q0=W5(b._debugInfo),A=L(A,j,b,m),g0=Q0,A):null;case T7:return b.key===Q0?P(A,j,b,m):null;case R6:return Q0=W5(b._debugInfo),b=m2(b),A=S(A,j,b,m),g0=Q0,A}if(Q5(b)||t(b)){if(Q0!==null)return null;return Q0=W5(b._debugInfo),A=k(A,j,b,m,null),g0=Q0,A}if(typeof b.then==="function")return Q0=W5(b._debugInfo),A=S(A,j,EJ(b),m),g0=Q0,A;if(b.$$typeof===j4)return S(A,j,CJ(A,b),m);SJ(A,b)}return typeof b==="function"&&jJ(A,b),typeof b==="symbol"&&DJ(A,b),null}function g(A,j,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(b)||null,R(j,A,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case S4:return b=A.get(m.key===null?b:m.key)||null,A=W5(m._debugInfo),j=L(j,b,m,Q0),g0=A,j;case T7:return A=A.get(m.key===null?b:m.key)||null,P(j,A,m,Q0);case R6:var E0=W5(m._debugInfo);return m=m2(m),j=g(A,j,b,m,Q0),g0=E0,j}if(Q5(m)||t(m))return b=A.get(b)||null,A=W5(m._debugInfo),j=k(j,b,m,Q0,null),g0=A,j;if(typeof m.then==="function")return E0=W5(m._debugInfo),j=g(A,j,b,EJ(m),Q0),g0=E0,j;if(m.$$typeof===j4)return g(A,j,b,CJ(j,m),Q0);SJ(j,m)}return typeof m==="function"&&jJ(j,m),typeof m==="symbol"&&DJ(j,m),null}function $0(A,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case S4:case T7:z(A,j,b);var Q0=b.key;if(typeof Q0!=="string")break;if(m===null){m=new Set,m.add(Q0);break}if(!m.has(Q0)){m.add(Q0);break}X0(j,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.",Q0)});break;case R6:b=m2(b),$0(A,j,b,m)}return m}function G0(A,j,b,m){for(var Q0=null,E0=null,z0=null,K0=j,k0=j=0,O1=null;K0!==null&&k0<b.length;k0++){K0.index>k0?(O1=K0,K0=null):O1=K0.sibling;var c1=S(A,K0,b[k0],m);if(c1===null){K0===null&&(K0=O1);break}Q0=$0(A,c1,b[k0],Q0),$&&K0&&c1.alternate===null&&Z(A,K0),j=B(c1,j,k0),z0===null?E0=c1:z0.sibling=c1,z0=c1,K0=O1}if(k0===b.length)return G(A,K0),o0&&i4(A,k0),E0;if(K0===null){for(;k0<b.length;k0++)K0=f(A,b[k0],m),K0!==null&&(Q0=$0(A,K0,b[k0],Q0),j=B(K0,j,k0),z0===null?E0=K0:z0.sibling=K0,z0=K0);return o0&&i4(A,k0),E0}for(K0=Y(K0);k0<b.length;k0++)O1=g(K0,A,k0,b[k0],m),O1!==null&&(Q0=$0(A,O1,b[k0],Q0),$&&O1.alternate!==null&&K0.delete(O1.key===null?k0:O1.key),j=B(O1,j,k0),z0===null?E0=O1:z0.sibling=O1,z0=O1);return $&&K0.forEach(function(T2){return Z(A,T2)}),o0&&i4(A,k0),E0}function L1(A,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,E0=null,z0=j,K0=j=0,k0=null,O1=null,c1=b.next();z0!==null&&!c1.done;K0++,c1=b.next()){z0.index>K0?(k0=z0,z0=null):k0=z0.sibling;var T2=S(A,z0,c1.value,m);if(T2===null){z0===null&&(z0=k0);break}O1=$0(A,T2,c1.value,O1),$&&z0&&T2.alternate===null&&Z(A,z0),j=B(T2,j,K0),E0===null?Q0=T2:E0.sibling=T2,E0=T2,z0=k0}if(c1.done)return G(A,z0),o0&&i4(A,K0),Q0;if(z0===null){for(;!c1.done;K0++,c1=b.next())z0=f(A,c1.value,m),z0!==null&&(O1=$0(A,z0,c1.value,O1),j=B(z0,j,K0),E0===null?Q0=z0:E0.sibling=z0,E0=z0);return o0&&i4(A,K0),Q0}for(z0=Y(z0);!c1.done;K0++,c1=b.next())k0=g(z0,A,K0,c1.value,m),k0!==null&&(O1=$0(A,k0,c1.value,O1),$&&k0.alternate!==null&&z0.delete(k0.key===null?K0:k0.key),j=B(k0,j,K0),E0===null?Q0=k0:E0.sibling=k0,E0=k0);return $&&z0.forEach(function(jO){return Z(A,jO)}),o0&&i4(A,K0),Q0}function i0(A,j,b,m){if(typeof b==="object"&&b!==null&&b.type===L7&&b.key===null&&(AJ(b,null,A),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case S4:var Q0=W5(b._debugInfo);$:{for(var E0=b.key;j!==null;){if(j.key===E0){if(E0=b.type,E0===L7){if(j.tag===7){G(A,j.sibling),m=U(j,b.props.children),m.return=A,m._debugOwner=b._owner,m._debugInfo=g0,AJ(b,m,A),A=m;break $}}else if(j.elementType===E0||VB(j,b)||typeof E0==="object"&&E0!==null&&E0.$$typeof===R6&&m2(E0)===j.type){G(A,j.sibling),m=U(j,b.props),m$(m,b),m.return=A,m._debugOwner=b._owner,m._debugInfo=g0,A=m;break $}G(A,j);break}else Z(A,j);j=j.sibling}b.type===L7?(m=i8(b.props.children,A.mode,m,b.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=g0,AJ(b,m,A),A=m):(m=TJ(b,A.mode,m),m$(m,b),m.return=A,m._debugInfo=g0,A=m)}return A=W(A),g0=Q0,A;case T7:$:{Q0=b;for(b=Q0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Q0.containerInfo&&j.stateNode.implementation===Q0.implementation){G(A,j.sibling),m=U(j,Q0.children||[]),m.return=A,A=m;break $}else{G(A,j);break}else Z(A,j);j=j.sibling}m=sX(Q0,A.mode,m),m.return=A,A=m}return W(A);case R6:return Q0=W5(b._debugInfo),b=m2(b),A=i0(A,j,b,m),g0=Q0,A}if(Q5(b))return Q0=W5(b._debugInfo),A=G0(A,j,b,m),g0=Q0,A;if(t(b)){if(Q0=W5(b._debugInfo),E0=t(b),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var z0=E0.call(b);if(z0===b){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")Zw||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."),Zw=!0}else b.entries!==E0||IN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IN=!0);return A=L1(A,j,z0,m),g0=Q0,A}if(typeof b.then==="function")return Q0=W5(b._debugInfo),A=i0(A,j,EJ(b),m),g0=Q0,A;if(b.$$typeof===j4)return i0(A,j,CJ(A,b),m);SJ(A,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,j!==null&&j.tag===6?(G(A,j.sibling),m=U(j,Q0),m.return=A,A=m):(G(A,j),m=rX(Q0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=g0,A=m),W(A);return typeof b==="function"&&jJ(A,b),typeof b==="symbol"&&DJ(A,b),G(A,j)}return function(A,j,b,m){var Q0=g0;g0=null;try{gZ=0;var E0=i0(A,j,b,m);return x7=null,E0}catch(O1){if(O1===u7||O1===xG)throw O1;var z0=_(29,O1,null,A.mode);z0.lanes=m,z0.return=A;var K0=z0._debugInfo=g0;if(z0._debugOwner=A._debugOwner,z0._debugTask=A._debugTask,K0!=null){for(var k0=K0.length-1;0<=k0;k0--)if(typeof K0[k0].stack==="string"){z0._debugOwner=K0[k0],z0._debugTask=K0[k0].debugTask;break}}return z0}finally{g0=Q0}}}function iB($,Z){var G=Q5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"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>",G,Z,G),!1):!0}function Xq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function d2($){return{lane:$,tag:qw,payload:null,callback:null,next:null}}function p2($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,VN===Y&&!Uw){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.
101
101
 
102
- Please update the following component: %s`,U),Xw=!0}if((i0&Q5)!==K5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=FJ($),PB($,null,G),Z;return MJ($,Y,Z,G),FJ($)}function u$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,d2($,G)}}function AJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function x$(){if(CN){var $=f7;if($!==null)throw $}}function m$($,Z,G,Y){CN=!1;var U=$.updateQueue;Y2=!1,_N=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,_=L.next;L.next=null,W===null?B=_:W.next=_,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=_:R.next=_,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=_=L=null,R=B;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(g0&S)===S:(Y&S)===S){S!==0&&S===H9&&(CN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{S=$;var e=R,J0=Z,z1=G;switch(e.tag){case Jw:if(e=e.payload,typeof e==="function"){b7=!0;var o0=e.call(z1,f,J0);if(S.mode&I5){w1(!0);try{e.call(z1,f,J0)}finally{w1(!1)}}b7=!1,f=o0;break $}f=e;break $;case PN:S.flags=S.flags&-65537|128;case Qw:if(o0=e.payload,typeof o0==="function"){if(b7=!0,e=o0.call(z1,f,J0),S.mode&I5){w1(!0);try{o0.call(z1,f,J0)}finally{w1(!1)}}b7=!1}else e=o0;if(e===null||e===void 0)break $;f=d0({},f,e);break $;case Gw:Y2=!0}}S=R.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:R.tag,payload:R.payload,callback:R.callback,next:null},k===null?(_=k=g,L=f):k=k.next=g,W|=S;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=_,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),K2|=W,$.lanes=W,$.memoizedState=f}_N=null}function nB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function R_($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)nB(G[$],Z)}function oB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)nB(G[$],Z)}function aB($,Z){var G=k4;_0(hG,G,$),_0(h7,Z,$),k4=G|Z.baseLanes}function Jq($){_0(hG,k4,$),_0(h7,h7.current,$)}function Gq($){k4=hG.current,L0(h7,$),L0(hG,$)}function m8($){var Z=$.alternate;_0(u1,u1.current&u7,$),_0(R6,$,$),k6===null&&(Z===null||h7.current!==null?k6=$:Z.memoizedState!==null&&(k6=$))}function Xq($){_0(u1,u1.current,$),_0(R6,$,$),k6===null&&(k6=$)}function iB($){$.tag===22?(_0(u1,u1.current,$),_0(R6,$,$),k6===null&&(k6=$)):d8($)}function d8($){_0(u1,u1.current,$),_0(R6,R6.current,$)}function K6($){L0(R6,$),k6===$&&(k6=null),L0(u1,$)}function SJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||zY(G)||TY(G)))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 m0(){var $=u;y6===null?y6=[$]:y6.push($)}function c(){var $=u;if(y6!==null&&(B8++,y6[B8]!==$)){var Z=d(V0);if(!qw.has(Z)&&(qw.add(Z),y6!==null)){for(var G="",Y=0;Y<=B8;Y++){var U=y6[Y],B=Y===B8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
102
+ Please update the following component: %s`,U),Uw=!0}if((e0&G5)!==F5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=zJ($),OB($,null,G),Z;return RJ($,Y,Z,G),zJ($)}function d$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,c8($,G)}}function vJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function p$(){if(AN){var $=h7;if($!==null)throw $}}function c$($,Z,G,Y){AN=!1;var U=$.updateQueue;K8=!1,VN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,P=L.next;L.next=null,W===null?B=P:W.next=P,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=P:R.next=P,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=P=L=null,R=B;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(h0&S)===S:(Y&S)===S){S!==0&&S===F9&&(AN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{S=$;var $0=R,G0=Z,L1=G;switch($0.tag){case Yw:if($0=$0.payload,typeof $0==="function"){y7=!0;var i0=$0.call(L1,f,G0);if(S.mode&S5){z1(!0);try{$0.call(L1,f,G0)}finally{z1(!1)}}y7=!1,f=i0;break $}f=$0;break $;case ON:S.flags=S.flags&-65537|128;case qw:if(i0=$0.payload,typeof i0==="function"){if(y7=!0,$0=i0.call(L1,f,G0),S.mode&S5){z1(!0);try{i0.call(L1,f,G0)}finally{z1(!1)}}y7=!1}else $0=i0;if($0===null||$0===void 0)break $;f=c0({},f,$0);break $;case Nw:K8=!0}}S=R.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:R.tag,payload:R.payload,callback:R.callback,next:null},k===null?(P=k=g,L=f):k=k.next=g,W|=S;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=P,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),M8|=W,$.lanes=W,$.memoizedState=f}VN=null}function tB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function IP($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)tB(G[$],Z)}function eB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)tB(G[$],Z)}function $H($,Z){var G=x4;C0(dG,G,$),C0(m7,Z,$),x4=G|Z.baseLanes}function Yq($){C0(dG,x4,$),C0(m7,m7.current,$)}function Nq($){x4=dG.current,_0(m7,$),_0(dG,$)}function c2($){var Z=$.alternate;C0(p1,p1.current&d7,$),C0(_6,$,$),g6===null&&(Z===null||m7.current!==null?g6=$:Z.memoizedState!==null&&(g6=$))}function Uq($){C0(p1,p1.current,$),C0(_6,$,$),g6===null&&(g6=$)}function ZH($){$.tag===22?(C0(p1,p1.current,$),C0(_6,$,$),g6===null&&(g6=$)):l2($)}function l2($){C0(p1,p1.current,$),C0(_6,_6.current,$)}function F6($){_0(_6,$),g6===$&&(g6=null),_0(p1,$)}function bJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||PY(G)||CY(G)))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 p0(){var $=u;u6===null?u6=[$]:u6.push($)}function c(){var $=u;if(u6!==null&&(F2++,u6[F2]!==$)){var Z=d(A0);if(!Kw.has(Z)&&(Kw.add(Z),u6!==null)){for(var G="",Y=0;Y<=F2;Y++){var U=u6[Y],B=Y===F2?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
103
103
  `,G+=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,G)}}}function J7($){$===void 0||$===null||$5($)||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 jJ(){var $=d(V0);Nw.has($)||(Nw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function g1(){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
+ `,Z,G)}}}function q7($){$===void 0||$===null||Q5($)||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 kJ(){var $=d(A0);Hw.has($)||(Hw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function x1(){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 qq($,Z){if(gZ)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 Kq($,Z){if(xZ)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.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!v5($[G],Z[G]))return!1;return!0}function Yq($,Z,G,Y,U,B){if(U8=B,V0=Z,y6=$!==null?$._debugHookTypes:null,B8=-1,gZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(V0),IN.has(B)||(IN.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?ON:y6!==null?Uw:VN,R9=B=(Z.mode&I5)!==I0;var W=RN(G,Y,U);if(R9=!1,m7&&(W=Nq(Z,G,Y,U)),B){w1(!0);try{W=Nq(Z,G,Y,U)}finally{w1(!1)}}return tB($,Z),W}function tB($,Z){Z._debugHookTypes=y6,Z.dependencies===null?K8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:K8}):Z.dependencies._debugThenableState=K8,x.H=hZ;var G=F1!==null&&F1.next!==null;if(U8=0,y6=u=r1=F1=V0=null,B8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xG=!1,yZ=0,K8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||s1||($=$.dependencies,$!==null&&zJ($)&&(s1=!0)),bZ?(bZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Yw.has(Z)||IN.has(Z)||(Yw.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 Nq($,Z,G,Y){V0=$;var U=0;do{if(m7&&(K8=null),yZ=0,m7=!1,U>=ZV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,gZ=!1,r1=F1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}B8=-1,x.H=Kw,B=RN(Z,G,Y)}while(m7);return B}function z_(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?d$(Z):Z,$=$.useState()[0],(F1!==null?F1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function Uq(){var $=mG!==0;return mG=0,$}function Kq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&t6)!==I0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Bq($){if(xG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}xG=!1}U8=0,y6=r1=F1=V0=null,B8=-1,u=null,m7=!1,yZ=mG=0,K8=null}function A5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r1===null?V0.memoizedState=r1=$:r1=r1.next=$,r1}function N1(){if(F1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=F1.next;var Z=r1===null?V0.memoizedState:r1.next;if(Z!==null)r1=Z,F1=$;else{if($===null){if(V0.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.")}F1=$,$={memoizedState:F1.memoizedState,baseState:F1.baseState,baseQueue:F1.baseQueue,queue:F1.queue,next:null},r1===null?V0.memoizedState=r1=$:r1=r1.next=$}return r1}function DJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d$($){var Z=yZ;return yZ+=1,K8===null&&(K8=hB()),$=xB(K8,$,Z),Z=V0,(r1===null?Z.memoizedState:r1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?ON:VN),$}function p8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return d$($);if($.$$typeof===I4)return O1($)}throw Error("An unsupported type was passed to use(): "+String($))}function $9($){var Z=null,G=V0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=V0.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}),G===null&&(G=DJ(),V0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||gZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=bC;else G.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.",G.length,$);return Z.index++,G}function n6($,Z){return typeof Z==="function"?Z($):Z}function Hq($,Z,G){var Y=A5();if(G!==void 0){var U=G(Z);if(R9){w1(!0);try{G(Z)}finally{w1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=C_.bind(null,V0,$),[Y.memoizedState,$]}function G7($){var Z=N1();return Mq(Z,F1,$)}function Mq($,Z,G){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=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}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 R=W=null,L=null,_=Z,k=!1;do{var f=_.lane&-536870913;if(f!==_.lane?(g0&f)===f:(U8&f)===f){var S=_.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),f===H9&&(k=!0);else if((U8&S)===S){_=_.next,S===H9&&(k=!0);continue}else f={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=f,W=B):L=L.next=f,V0.lanes|=S,K2|=S;f=_.action,R9&&G(B,f),B=_.hasEagerState?_.eagerState:G(B,f)}else S={lane:f,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=S,W=B):L=L.next=S,V0.lanes|=f,K2|=f;_=_.next}while(_!==null&&_!==Z);if(L===null?W=B:L.next=R,!v5(B,$.memoizedState)&&(s1=!0,k&&(G=f7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function p$($){var Z=N1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);v5(B,Z.memoizedState)||(s1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Fq($,Z,G){var Y=V0,U=A5();if(s0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();x7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),x7=!0)}else{if(B=Z(),x7||(G=Z(),v5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x7=!0)),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(g0&127)!==0||eB(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,fJ(ZH.bind(null,Y,G,$),[$]),Y.flags|=2048,q7(f6|f5,{destroy:void 0},$H.bind(null,Y,G,B,Z),null),B}function vJ($,Z,G){var Y=V0,U=N1(),B=s0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!x7){var W=Z();v5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x7=!0)}if(W=!v5((F1||U).memoizedState,G))U.memoizedState=G,s1=!0;U=U.queue;var R=ZH.bind(null,Y,U,$);if(x5(2048,f5,R,[$]),U.getSnapshot!==Z||W||r1!==null&&r1.memoizedState.tag&f6){if(Y.flags|=2048,q7(f6|f5,{destroy:void 0},$H.bind(null,Y,U,G,Z),null),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(U8&127)!==0||eB(Y,Z,G)}return G}function eB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=V0.updateQueue,Z===null?(Z=DJ(),V0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function $H($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,QH(Z)&&JH($)}function ZH($,Z,G){return G(function(){QH(Z)&&(K4(2,"updateSyncExternalStore()",$),JH($))})}function QH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!v5($,G)}catch(Y){return!0}}function JH($){var Z=_5($,2);Z!==null&&D1(Z,$,2)}function Wq($){var Z=A5();if(typeof $==="function"){var G=$;if($=G(),R9){w1(!0);try{G()}finally{w1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:$},Z}function wq($){$=Wq($);var Z=$.queue,G=_H.bind(null,V0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Rq($){var Z=A5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=Dq.bind(null,V0,!0,G),G.dispatch=Z,[$,Z]}function GH($,Z){var G=N1();return XH(G,F1,$,Z)}function XH($,Z,G,Y){return $.baseState=G,Mq($,F1,typeof Y==="function"?Y:n6)}function qH($,Z){var G=N1();if(F1!==null)return XH(G,F1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function T_($,Z,G,Y,U){if(mJ($))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(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,YH(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function YH($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var R=G(U,Y),L=x.S;L!==null&&L(W,R),NH($,Z,R)}catch(_){zq($,Z,_)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.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."),B.types=W.types),x.T=B,B===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."))}}else try{W=G(U,Y),NH($,Z,W)}catch(_){zq($,Z,_)}}function NH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(xJ,xJ),G.then(function(Y){UH($,Z,Y)},function(Y){return zq($,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.")):UH($,Z,G)}function UH($,Z,G){Z.status="fulfilled",Z.value=G,KH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,YH($,G)))}function zq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,KH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function KH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function BH($,Z){return Z}function X7($,Z){if(s0){var G=W1.formState;if(G!==null){$:{var Y=V0;if(s0){if(P1){Z:{var U=P1;for(var B=v6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=H6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===oN||B===ow?U:null}if(U){P1=H6(U.nextSibling),Y=U.data===oN;break $}}y8(Y)}Y=!1}Y&&(Z=G[0])}}return G=A5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BH,lastRenderedState:Z},G.queue=Y,G=_H.bind(null,V0,Y),Y.dispatch=G,Y=Wq(!1),B=Dq.bind(null,V0,!1,Y.queue),Y=A5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=T_.bind(null,V0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function bJ($){var Z=N1();return HH(Z,F1,$)}function HH($,Z,G){if(Z=Mq($,Z,BH)[0],$=G7(n6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=d$(Z)}catch(W){if(W===y7)throw yG;throw W}else Y=Z;Z=N1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(V0.flags|=2048,q7(f6|f5,{destroy:void 0},L_.bind(null,U,G),null)),[Y,B,$]}function L_($,Z){$.action=Z}function kJ($){var Z=N1(),G=F1;if(G!==null)return HH(Z,G,$);N1(),Z=Z.memoizedState,G=N1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function q7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=DJ(),V0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Tq($){var Z=A5();return $={current:$},Z.memoizedState=$}function Z9($,Z,G,Y){var U=A5();V0.flags|=$,U.memoizedState=q7(f6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function x5($,Z,G,Y){var U=N1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;F1!==null&&Y!==null&&qq(Y,F1.memoizedState.deps)?U.memoizedState=q7(Z,B,G,Y):(V0.flags|=$,U.memoizedState=q7(f6|Z,B,G,Y))}function fJ($,Z){(V0.mode&t6)!==I0?Z9(276826112,f5,$,Z):Z9(8390656,f5,$,Z)}function P_($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=DJ(),V0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Lq($){var Z=A5(),G={impl:$};return Z.memoizedState=G,function(){if((i0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function yJ($){var Z=N1().memoizedState;return P_({ref:Z,nextImpl:$}),function(){if((i0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Pq($,Z){var G=4194308;return(V0.mode&t6)!==I0&&(G|=134217728),Z9(G,z6,$,Z)}function MH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():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 _q($,Z,G){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"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(V0.mode&t6)!==I0&&(Y|=134217728),Z9(Y,z6,MH.bind(null,Z,$),G)}function gJ($,Z,G){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"),G=G!==null&&G!==void 0?G.concat([$]):null,x5(4,z6,MH.bind(null,Z,$),G)}function Cq($,Z){return A5().memoizedState=[$,Z===void 0?null:Z],$}function hJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function Iq($,Z){var G=A5();Z=Z===void 0?null:Z;var Y=$();if(R9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function uJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];if(Y=$(),R9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function Vq($,Z){var G=A5();return Oq(G,$,Z)}function FH($,Z){var G=N1();return wH(G,F1.memoizedState,$,Z)}function WH($,Z){var G=N1();return F1===null?Oq(G,$,Z):wH(G,F1.memoizedState,$,Z)}function Oq($,Z,G){if(G===void 0||(U8&1073741824)!==0&&(g0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=RM(),V0.lanes|=$,K2|=$,G}function wH($,Z,G,Y){if(v5(G,Z))return G;if(h7.current!==null)return $=Oq($,G,Y),v5($,Z)||(s1=!0),$;if((U8&42)===0||(U8&1073741824)!==0&&(g0&261930)===0)return s1=!0,$.memoizedState=G;return $=RM(),V0.lanes|=$,K2|=$,Z}function xJ(){x.asyncTransitions--}function RH($,Z,G,Y,U){var B=q1.p;q1.p=B!==0&&B<i6?B:i6;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,Dq($,!1,Z,G);try{var L=U(),_=x.S;if(_!==null&&_(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(xJ,xJ);var k=w_(L,Y);c$($,Z,k,B6($))}else c$($,Z,Y,B6($))}catch(f){c$($,Z,{then:function(){},status:"rejected",reason:f},B6($))}finally{q1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.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."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 Eq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=zH($).queue;F_($),RH($,U,Z,A9,G===null?w:function(){return TH($),G(Y)})}function zH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:A9,baseState:A9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:A9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function TH($){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=zH($);Z.next===null&&(Z=$.alternate.memoizedState),c$($,Z.next.queue,{},B6($))}function Aq(){var $=Wq(!1);return $=RH.bind(null,V0,$.queue,!0,!1),A5().memoizedState=$,[!1,$]}function LH(){var $=G7(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:d$($),Z]}function PH(){var $=p$(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:d$($),Z]}function Q9(){return O1(eZ)}function Sq(){var $=A5(),Z=W1.identifierPrefix;if(s0){var G=G8,Y=J8;G=(Y&~(1<<32-S5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=mG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=$V++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function jq(){return A5().memoizedState=__.bind(null,V0)}function __($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=B6(G),U=u8(Y),B=x8(G,U,Y);B!==null&&(K4(Y,"refresh()",$),D1(B,G,Y),u$(B,G,Y)),$=aX(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function C_($,Z,G){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=B6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};mJ($)?CH(Z,U):(U=hX($,Z,U,Y),U!==null&&(K4(Y,"dispatch()",$),D1(U,$,Y),IH(U,Z,Y)))}function _H($,Z,G){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=B6($),c$($,Z,G,Y)&&K4(Y,"setState()",$)}function c$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(mJ($))CH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=$4;try{var R=Z.lastRenderedState,L=B(R,G);if(U.hasEagerState=!0,U.eagerState=L,v5(L,R))return MJ($,Z,U,0),W1===null&&HJ(),!1}catch(_){}finally{x.H=W}}if(G=hX($,Z,U,Y),G!==null)return D1(G,$,Y),IH(G,Z,Y),!0}return!1}function Dq($,Z,G,Y){if(x.T===null&&H9===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:YY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},mJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=hX($,G,Y,2),Z!==null&&(K4(2,"setOptimistic()",$),D1(Z,$,2))}function mJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function CH($,Z){m7=xG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function IH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,d2($,G)}}function vq($){if($!==null&&typeof $!=="function"){var Z=String($);Pw.has(Z)||(Pw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function bq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&I5){w1(!0);try{B=G(Y,U)}finally{w1(!1)}}B===void 0&&(Z=a(Z)||"Component",Rw.has(Z)||(Rw.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:d0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function VH($,Z,G,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(Y,B,W),$.mode&I5){w1(!0);try{G=R.shouldComponentUpdate(Y,B,W)}finally{w1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",a(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!v$(G,Y)||!v$(U,B):!0}function OH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",Hw.has($)||(Hw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),EN.enqueueReplaceState(Z,Z.state,null))}function J9($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=d0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function EH($){GN($),console.warn(`%s
115
+ Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!u5($[G],Z[G]))return!1;return!0}function Bq($,Z,G,Y,U,B){if(H2=B,A0=Z,u6=$!==null?$._debugHookTypes:null,F2=-1,xZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(A0),EN.has(B)||(EN.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?jN:u6!==null?Mw:SN,T9=B=(Z.mode&S5)!==O0;var W=_N(G,Y,U);if(T9=!1,c7&&(W=Hq(Z,G,Y,U)),B){z1(!0);try{W=Hq(Z,G,Y,U)}finally{z1(!1)}}return QH($,Z),W}function QH($,Z){Z._debugHookTypes=u6,Z.dependencies===null?M2!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:M2}):Z.dependencies._debugThenableState=M2,x.H=mZ;var G=W1!==null&&W1.next!==null;if(H2=0,u6=u=o1=W1=A0=null,F2=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),cG=!1,uZ=0,M2=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||a1||($=$.dependencies,$!==null&&PJ($)&&(a1=!0)),yZ?(yZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Bw.has(Z)||EN.has(Z)||(Bw.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 Hq($,Z,G,Y){A0=$;var U=0;do{if(c7&&(M2=null),uZ=0,c7=!1,U>=NO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,xZ=!1,o1=W1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}F2=-1,x.H=Fw,B=_N(Z,G,Y)}while(c7);return B}function OP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?l$(Z):Z,$=$.useState()[0],(W1!==null?W1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function Mq(){var $=lG!==0;return lG=0,$}function Fq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==O0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Wq($){if(cG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}cG=!1}H2=0,u6=o1=W1=A0=null,F2=-1,u=null,c7=!1,uZ=lG=0,M2=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return o1===null?A0.memoizedState=o1=$:o1=o1.next=$,o1}function U1(){if(W1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=W1.next;var Z=o1===null?A0.memoizedState:o1.next;if(Z!==null)o1=Z,W1=$;else{if($===null){if(A0.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.")}W1=$,$={memoizedState:W1.memoizedState,baseState:W1.baseState,baseQueue:W1.baseQueue,queue:W1.queue,next:null},o1===null?A0.memoizedState=o1=$:o1=o1.next=$}return o1}function fJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function l$($){var Z=uZ;return uZ+=1,M2===null&&(M2=dB()),$=cB(M2,$,Z),Z=A0,(o1===null?Z.memoizedState:o1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?jN:SN),$}function r2($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return l$($);if($.$$typeof===j4)return S1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q9($){var Z=null,G=A0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=A0.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}),G===null&&(G=fJ(),A0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||xZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=xC;else G.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.",G.length,$);return Z.index++,G}function t6($,Z){return typeof Z==="function"?Z($):Z}function wq($,Z,G){var Y=f5();if(G!==void 0){var U=G(Z);if(T9){z1(!0);try{G(Z)}finally{z1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=jP.bind(null,A0,$),[Y.memoizedState,$]}function Y7($){var Z=U1();return Rq(Z,W1,$)}function Rq($,Z,G){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=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}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 R=W=null,L=null,P=Z,k=!1;do{var f=P.lane&-536870913;if(f!==P.lane?(h0&f)===f:(H2&f)===f){var S=P.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),f===F9&&(k=!0);else if((H2&S)===S){P=P.next,S===F9&&(k=!0);continue}else f={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=f,W=B):L=L.next=f,A0.lanes|=S,M8|=S;f=P.action,T9&&G(B,f),B=P.hasEagerState?P.eagerState:G(B,f)}else S={lane:f,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=S,W=B):L=L.next=S,A0.lanes|=f,M8|=f;P=P.next}while(P!==null&&P!==Z);if(L===null?W=B:L.next=R,!u5(B,$.memoizedState)&&(a1=!0,k&&(G=h7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function r$($){var Z=U1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);u5(B,Z.memoizedState)||(a1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function zq($,Z,G){var Y=A0,U=f5();if(o0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();p7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p7=!0)}else{if(B=Z(),p7||(G=Z(),u5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)),w1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(h0&127)!==0||JH(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,uJ(XH.bind(null,Y,G,$),[$]),Y.flags|=2048,U7(h6|d5,{destroy:void 0},GH.bind(null,Y,G,B,Z),null),B}function yJ($,Z,G){var Y=A0,U=U1(),B=o0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!p7){var W=Z();u5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)}if(W=!u5((W1||U).memoizedState,G))U.memoizedState=G,a1=!0;U=U.queue;var R=XH.bind(null,Y,U,$);if(l5(2048,d5,R,[$]),U.getSnapshot!==Z||W||o1!==null&&o1.memoizedState.tag&h6){if(Y.flags|=2048,U7(h6|d5,{destroy:void 0},GH.bind(null,Y,U,G,Z),null),w1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H2&127)!==0||JH(Y,Z,G)}return G}function JH($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=A0.updateQueue,Z===null?(Z=fJ(),A0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function GH($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,qH(Z)&&YH($)}function XH($,Z,G){return G(function(){qH(Z)&&(w4(2,"updateSyncExternalStore()",$),YH($))})}function qH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!u5($,G)}catch(Y){return!0}}function YH($){var Z=A5($,2);Z!==null&&f1(Z,$,2)}function Tq($){var Z=f5();if(typeof $==="function"){var G=$;if($=G(),T9){z1(!0);try{G()}finally{z1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:$},Z}function Lq($){$=Tq($);var Z=$.queue,G=VH.bind(null,A0,Z);return Z.dispatch=G,[$.memoizedState,G]}function _q($){var Z=f5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=fq.bind(null,A0,!0,G),G.dispatch=Z,[$,Z]}function NH($,Z){var G=U1();return UH(G,W1,$,Z)}function UH($,Z,G,Y){return $.baseState=G,Rq($,W1,typeof Y==="function"?Y:t6)}function KH($,Z){var G=U1();if(W1!==null)return UH(G,W1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function VP($,Z,G,Y,U){if(lJ($))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(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,BH(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function BH($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var R=G(U,Y),L=x.S;L!==null&&L(W,R),HH($,Z,R)}catch(P){Pq($,Z,P)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.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."),B.types=W.types),x.T=B,B===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."))}}else try{W=G(U,Y),HH($,Z,W)}catch(P){Pq($,Z,P)}}function HH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(cJ,cJ),G.then(function(Y){MH($,Z,Y)},function(Y){return Pq($,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.")):MH($,Z,G)}function MH($,Z,G){Z.status="fulfilled",Z.value=G,FH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,BH($,G)))}function Pq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,FH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function FH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function WH($,Z){return Z}function N7($,Z){if(o0){var G=w1.formState;if(G!==null){$:{var Y=A0;if(o0){if(I1){Z:{var U=I1;for(var B=f6;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===eN||B===ew?U:null}if(U){I1=w6(U.nextSibling),Y=U.data===eN;break $}}u2(Y)}Y=!1}Y&&(Z=G[0])}}return G=f5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:WH,lastRenderedState:Z},G.queue=Y,G=VH.bind(null,A0,Y),Y.dispatch=G,Y=Tq(!1),B=fq.bind(null,A0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=VP.bind(null,A0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function gJ($){var Z=U1();return wH(Z,W1,$)}function wH($,Z,G){if(Z=Rq($,Z,WH)[0],$=Y7(t6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=l$(Z)}catch(W){if(W===u7)throw xG;throw W}else Y=Z;Z=U1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(A0.flags|=2048,U7(h6|d5,{destroy:void 0},AP.bind(null,U,G),null)),[Y,B,$]}function AP($,Z){$.action=Z}function hJ($){var Z=U1(),G=W1;if(G!==null)return wH(Z,G,$);U1(),Z=Z.memoizedState,G=U1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function U7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=fJ(),A0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Cq($){var Z=f5();return $={current:$},Z.memoizedState=$}function J9($,Z,G,Y){var U=f5();A0.flags|=$,U.memoizedState=U7(h6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function l5($,Z,G,Y){var U=U1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;W1!==null&&Y!==null&&Kq(Y,W1.memoizedState.deps)?U.memoizedState=U7(Z,B,G,Y):(A0.flags|=$,U.memoizedState=U7(h6|Z,B,G,Y))}function uJ($,Z){(A0.mode&Q4)!==O0?J9(276826112,d5,$,Z):J9(8390656,d5,$,Z)}function EP($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=fJ(),A0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Iq($){var Z=f5(),G={impl:$};return Z.memoizedState=G,function(){if((e0&G5)!==F5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function xJ($){var Z=U1().memoizedState;return EP({ref:Z,nextImpl:$}),function(){if((e0&G5)!==F5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Oq($,Z){var G=4194308;return(A0.mode&Q4)!==O0&&(G|=134217728),J9(G,P6,$,Z)}function RH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():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 Vq($,Z,G){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"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(A0.mode&Q4)!==O0&&(Y|=134217728),J9(Y,P6,RH.bind(null,Z,$),G)}function mJ($,Z,G){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"),G=G!==null&&G!==void 0?G.concat([$]):null,l5(4,P6,RH.bind(null,Z,$),G)}function Aq($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function dJ($,Z){var G=U1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&Kq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function Eq($,Z){var G=f5();Z=Z===void 0?null:Z;var Y=$();if(T9){z1(!0);try{$()}finally{z1(!1)}}return G.memoizedState=[Y,Z],Y}function pJ($,Z){var G=U1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&Kq(Z,Y[1]))return Y[0];if(Y=$(),T9){z1(!0);try{$()}finally{z1(!1)}}return G.memoizedState=[Y,Z],Y}function Sq($,Z){var G=f5();return jq(G,$,Z)}function zH($,Z){var G=U1();return LH(G,W1.memoizedState,$,Z)}function TH($,Z){var G=U1();return W1===null?jq(G,$,Z):LH(G,W1.memoizedState,$,Z)}function jq($,Z,G){if(G===void 0||(H2&1073741824)!==0&&(h0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=_M(),A0.lanes|=$,M8|=$,G}function LH($,Z,G,Y){if(u5(G,Z))return G;if(m7.current!==null)return $=jq($,G,Y),u5($,Z)||(a1=!0),$;if((H2&42)===0||(H2&1073741824)!==0&&(h0&261930)===0)return a1=!0,$.memoizedState=G;return $=_M(),A0.lanes|=$,M8|=$,Z}function cJ(){x.asyncTransitions--}function _H($,Z,G,Y,U){var B=Y1.p;Y1.p=B!==0&&B<Z4?B:Z4;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,fq($,!1,Z,G);try{var L=U(),P=x.S;if(P!==null&&P(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(cJ,cJ);var k=CP(L,Y);s$($,Z,k,W6($))}else s$($,Z,Y,W6($))}catch(f){s$($,Z,{then:function(){},status:"rejected",reason:f},W6($))}finally{Y1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.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."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 Dq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=PH($).queue;_P($),_H($,U,Z,j9,G===null?w:function(){return CH($),G(Y)})}function PH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:j9,baseState:j9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:j9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function CH($){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=PH($);Z.next===null&&(Z=$.alternate.memoizedState),s$($,Z.next.queue,{},W6($))}function vq(){var $=Tq(!1);return $=_H.bind(null,A0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function IH(){var $=Y7(t6)[0],Z=U1().memoizedState;return[typeof $==="boolean"?$:l$($),Z]}function OH(){var $=r$(t6)[0],Z=U1().memoizedState;return[typeof $==="boolean"?$:l$($),Z]}function G9(){return S1(QQ)}function bq(){var $=f5(),Z=w1.identifierPrefix;if(o0){var G=Y2,Y=q2;G=(Y&~(1<<32-y5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=lG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=YO++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function kq(){return f5().memoizedState=SP.bind(null,A0)}function SP($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=W6(G),U=d2(Y),B=p2(G,U,Y);B!==null&&(w4(Y,"refresh()",$),f1(B,G,Y),d$(B,G,Y)),$=$q(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function jP($,Z,G){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=W6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};lJ($)?AH(Z,U):(U=dX($,Z,U,Y),U!==null&&(w4(Y,"dispatch()",$),f1(U,$,Y),EH(U,Z,Y)))}function VH($,Z,G){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=W6($),s$($,Z,G,Y)&&w4(Y,"setState()",$)}function s$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(lJ($))AH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=G4;try{var R=Z.lastRenderedState,L=B(R,G);if(U.hasEagerState=!0,U.eagerState=L,u5(L,R))return RJ($,Z,U,0),w1===null&&wJ(),!1}catch(P){}finally{x.H=W}}if(G=dX($,Z,U,Y),G!==null)return f1(G,$,Y),EH(G,Z,Y),!0}return!1}function fq($,Z,G,Y){if(x.T===null&&F9===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:BY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},lJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=dX($,G,Y,2),Z!==null&&(w4(2,"setOptimistic()",$),f1(Z,$,2))}function lJ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function AH($,Z){c7=cG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function EH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,c8($,G)}}function yq($){if($!==null&&typeof $!=="function"){var Z=String($);Ow.has(Z)||(Ow.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function gq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&S5){z1(!0);try{B=G(Y,U)}finally{z1(!1)}}B===void 0&&(Z=i(Z)||"Component",_w.has(Z)||(_w.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:c0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function SH($,Z,G,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(Y,B,W),$.mode&S5){z1(!0);try{G=R.shouldComponentUpdate(Y,B,W)}finally{z1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!f$(G,Y)||!f$(U,B):!0}function jH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",ww.has($)||(ww.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),DN.enqueueReplaceState(Z,Z.state,null))}function X9($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=c0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function DH($){NN($),console.warn(`%s
116
116
 
117
117
  %s
118
- `,d7?"An error occurred in the <"+d7+"> 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 AH($){var Z=d7?"The above error occurred in the <"+d7+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((AN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
118
+ `,l7?"An error occurred in the <"+l7+"> 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 vH($){var Z=l7?"The above error occurred in the <"+l7+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((vN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,JR+" "+$[0],GR,H3+Y+H3,XR):$.splice(0,0,JR,GR,H3+Y+H3,XR),$.unshift(console),Y=PV.apply(console.error,$),Y()}else console.error(`%o
124
+ `,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,YR+" "+$[0],NR,w3+Y+w3,UR):$.splice(0,0,YR,NR,w3+Y+w3,UR),$.unshift(console),Y=EO.apply(console.error,$),Y()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,$,Z,G)}function SH($){GN($)}function dJ($,Z){try{d7=Z.source?d(Z.source):null,AN=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var Y=$.onUncaughtError;Y(G,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function jH($,Z,G){try{d7=G.source?d(G.source):null,AN=d(Z);var Y=$.onCaughtError;Y(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function kq($,Z,G){return G=u8(G),G.tag=PN,G.payload={element:null},G.callback=function(){G0(Z.source,dJ,$,Z)},G}function fq($){return $=u8($),$.tag=PN,$}function yq($,Z,G,Y){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){CB(G),G0(Y.source,jH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){CB(G),G0(Y.source,jH,Z,G,Y),typeof U!=="function"&&(H2===null?H2=new Set([this]):H2.add(this)),aI(this,Y),typeof U==="function"||(G.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(G)||"Unknown")})}function I_($,Z,G,Y,U){if(G.flags|=32768,E4&&t$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&Q7(Z,G,U,!0),s0&&(j4=!0),G=R6.current,G!==null){switch(G.tag){case 31:case 13:return k6===null?iJ():G.alternate===null&&S1===M8&&(S1=cG),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===gG?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([Y]):Z.add(Y),JY($,Y,U)),!1;case 22:return G.flags|=65536,Y===gG?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([Y]):G.add(Y)),JY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return JY($,Y,U),iJ(),!1}if(s0)return j4=!0,Z=R6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==KN&&k$(Y6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),G))):(Y!==KN&&k$(Y6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=Y6(Y,G),U=kq($.stateNode,Y,U),AJ($,U),S1!==N2&&(S1=z9)),!1;var B=Y6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),G);if(cZ===null?cZ=[B]:cZ.push(B),S1!==N2&&(S1=z9),Z===null)return!0;Y=Y6(Y,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=kq(G.stateNode,Y,$),AJ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(H2===null||!H2.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=fq(U),yq(U,$,G,Y),AJ(G,U),!1}G=G.return}while(G!==null);return!1}function H5($,Z,G,Y){Z.child=$===null?Zw(Z,null,G,Y):w9(Z,$.child,G,Y)}function DH($,Z,G,Y,U){G=G.render;var B=Z.ref;if("ref"in Y){var W={};for(var R in Y)R!=="ref"&&(W[R]=Y[R])}else W=Y;if(t2(Z),Y=Yq($,Z,G,W,B,U),R=Uq(),$!==null&&!s1)return Kq($,Z,U),i4($,Z,U);return s0&&R&&cX(Z),Z.flags|=1,H5($,Z,Y,U),Z.child}function vH($,Z,G,Y,U){if($===null){var B=G.type;if(typeof B==="function"&&!xX(B)&&B.defaultProps===void 0&&G.compare===null)return G=n2(B),Z.tag=15,Z.type=G,hq(Z,B),bH($,Z,G,Y,U);return $=mX(G.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!cq($,U)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:v$,G(W,Y)&&$.ref===Z.ref)return i4($,Z,U)}return Z.flags|=1,$=s4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function bH($,Z,G,Y,U){if($!==null){var B=$.memoizedProps;if(v$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(s1=!1,Z.pendingProps=Y=B,cq($,U))($.flags&131072)!==0&&(s1=!0);else return Z.lanes=$.lanes,i4($,Z,U)}return gq($,Z,G,Y,U)}function kH($,Z,G,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:TZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==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 fH($,Z,B,G,Y)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&_J(Z,B!==null?B.cachePool:null),B!==null?aB(Z,B):Jq(Z),iB(Z);else return Y=Z.lanes=536870912,fH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(_J(Z,B.cachePool),aB(Z,B),d8(Z),Z.memoizedState=null):($!==null&&_J(Z,null),Jq(Z),d8(Z));return H5($,Z,U,G),Z.child}function l$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:TZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function fH($,Z,G,Y,U){var B=eX();return B=B===null?null:{parent:c1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&_J(Z,null),Jq(Z),iB(Z),$!==null&&Q7($,Z,Y,!0),Z.childLanes=U,null}function pJ($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,$,Z,G)}function bH($){NN($)}function rJ($,Z){try{l7=Z.source?d(Z.source):null,vN=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var Y=$.onUncaughtError;Y(G,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function kH($,Z,G){try{l7=G.source?d(G.source):null,vN=d(Z);var Y=$.onCaughtError;Y(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function hq($,Z,G){return G=d2(G),G.tag=ON,G.payload={element:null},G.callback=function(){X0(Z.source,rJ,$,Z)},G}function uq($){return $=d2($),$.tag=ON,$}function xq($,Z,G,Y){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){AB(G),X0(Y.source,kH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){AB(G),X0(Y.source,kH,Z,G,Y),typeof U!=="function"&&(W8===null?W8=new Set([this]):W8.add(this)),JO(this,Y),typeof U==="function"||(G.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(G)||"Unknown")})}function DP($,Z,G,Y,U){if(G.flags|=32768,b4&&ZZ($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&X7(Z,G,U,!0),o0&&(y4=!0),G=_6.current,G!==null){switch(G.tag){case 31:case 13:return g6===null?ZG():G.alternate===null&&b1===w2&&(b1=nG),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===mG?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([Y]):Z.add(Y),YY($,Y,U)),!1;case 22:return G.flags|=65536,Y===mG?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([Y]):G.add(Y)),YY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return YY($,Y,U),ZG(),!1}if(o0)return y4=!0,Z=_6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==FN&&g$(B6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),G))):(Y!==FN&&g$(B6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=B6(Y,G),U=hq($.stateNode,Y,U),vJ($,U),b1!==B8&&(b1=L9)),!1;var B=B6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),G);if(sZ===null?sZ=[B]:sZ.push(B),b1!==B8&&(b1=L9),Z===null)return!0;Y=B6(Y,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=hq(G.stateNode,Y,$),vJ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(W8===null||!W8.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=uq(U),xq(U,$,G,Y),vJ(G,U),!1}G=G.return}while(G!==null);return!1}function w5($,Z,G,Y){Z.child=$===null?Xw(Z,null,G,Y):z9(Z,$.child,G,Y)}function fH($,Z,G,Y,U){G=G.render;var B=Z.ref;if("ref"in Y){var W={};for(var R in Y)R!=="ref"&&(W[R]=Y[R])}else W=Y;if($9(Z),Y=Bq($,Z,G,W,B,U),R=Mq(),$!==null&&!a1)return Fq($,Z,U),$2($,Z,U);return o0&&R&&nX(Z),Z.flags|=1,w5($,Z,Y,U),Z.child}function yH($,Z,G,Y,U){if($===null){var B=G.type;if(typeof B==="function"&&!cX(B)&&B.defaultProps===void 0&&G.compare===null)return G=a8(B),Z.tag=15,Z.type=G,dq(Z,B),gH($,Z,G,Y,U);return $=lX(G.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!nq($,U)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:f$,G(W,Y)&&$.ref===Z.ref)return $2($,Z,U)}return Z.flags|=1,$=a4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function gH($,Z,G,Y,U){if($!==null){var B=$.memoizedProps;if(f$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(a1=!1,Z.pendingProps=Y=B,nq($,U))($.flags&131072)!==0&&(a1=!0);else return Z.lanes=$.lanes,$2($,Z,U)}return mq($,Z,G,Y,U)}function hH($,Z,G,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:PZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==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 uH($,Z,B,G,Y)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&VJ(Z,B!==null?B.cachePool:null),B!==null?$H(Z,B):Yq(Z),ZH(Z);else return Y=Z.lanes=536870912,uH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(VJ(Z,B.cachePool),$H(Z,B),l2(Z),Z.memoizedState=null):($!==null&&VJ(Z,null),Yq(Z),l2(Z));return w5($,Z,U,G),Z.child}function n$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:PZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function uH($,Z,G,Y,U){var B=Jq();return B=B===null?null:{parent:s1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&VJ(Z,null),Yq(Z),ZH(Z),$!==null&&X7($,Z,Y,!0),Z.childLanes=U,null}function sJ($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=lJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function yH($,Z,G){return w9(Z,$.child,null,G),$=pJ(Z,Z.pendingProps),$.flags|=2,K6(Z),Z.memoizedState=null,$}function V_($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(s0){if(Y.mode==="hidden")return $=pJ(Z,Y),Z.lanes=536870912,l$(null,$);if(Xq(Z),($=P1)?(G=YF($,v6),G=G!==null&&G.data===I9?G:null,G!==null&&(Y={dehydrated:G,treeContext:AB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=OB(G),Y.return=Z,Z.child=Y,W5=Z,P1=null)):G=null,G===null)throw wJ(Z,$),y8(Z);return Z.lanes=536870912,null}return pJ(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Xq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=yH($,Z,G);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(jB(),(G&536870912)!==0&&aJ(Z),s1||Q7($,Z,G,!1),U=(G&$.childLanes)!==0,s1||U){if(Y=W1,Y!==null&&(W=p2(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,_5($,W),D1(Y,$,W),SN;iJ(),Z=yH($,Z,G)}else $=B.treeContext,P1=H6(W.nextSibling),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=pJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&aJ(Z),$=s4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function cJ($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function gq($,Z,G,Y,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=a(G)||"Unknown";_w[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),_w[B]=!0)}if(Z.mode&I5&&e6.recordLegacyContextWarning(Z,null),$===null&&(hq(Z,Z.type),G.contextTypes&&(B=a(G)||"Unknown",Iw[B]||(Iw[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)))),t2(Z),G=Yq($,Z,G,Y,void 0,U),Y=Uq(),$!==null&&!s1)return Kq($,Z,U),i4($,Z,U);return s0&&Y&&cX(Z),Z.flags|=1,H5($,Z,G,U),Z.child}function gH($,Z,G,Y,U,B){if(t2(Z),B8=-1,gZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=Nq(Z,Y,G,U),tB($,Z),Y=Uq(),$!==null&&!s1)return Kq($,Z,B),i4($,Z,B);return s0&&Y&&cX(Z),Z.flags|=1,H5($,Z,G,B),Z.child}function hH($,Z,G,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,W=W1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=fq(R),yq(R,W,Z,Y6(B,Z)),AJ(Z,R)}if(t2(Z),Z.stateNode===null){if(W=$2,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==I4)&&!Lw.has(G)&&(Lw.add(G),R=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===jY?" 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",a(G)||"Component",R)),typeof B==="object"&&B!==null&&(W=O1(B)),B=new G(Y,W),Z.mode&I5){w1(!0);try{B=new G(Y,W)}finally{w1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=EN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Bw,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=a(G)||"Component",Mw.has(W)||(Mw.add(W),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.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||R!==null||L!==null){B=a(G)||"Component";var _=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ww.has(B)||(Ww.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=oJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function xH($,Z,G){return z9(Z,$.child,null,G),$=sJ(Z,Z.pendingProps),$.flags|=2,F6(Z),Z.memoizedState=null,$}function vP($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(o0){if(Y.mode==="hidden")return $=sJ(Z,Y),Z.lanes=536870912,n$(null,$);if(Uq(Z),($=I1)?(G=BF($,f6),G=G!==null&&G.data===V9?G:null,G!==null&&(Y={dehydrated:G,treeContext:vB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=jB(G),Y.return=Z,Z.child=Y,T5=Z,I1=null)):G=null,G===null)throw LJ(Z,$),u2(Z);return Z.lanes=536870912,null}return sJ(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Uq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=xH($,Z,G);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(kB(),(G&536870912)!==0&&$G(Z),a1||X7($,Z,G,!1),U=(G&$.childLanes)!==0,a1||U){if(Y=w1,Y!==null&&(W=l8(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,A5($,W),f1(Y,$,W),bN;ZG(),Z=xH($,Z,G)}else $=B.treeContext,I1=w6(W.nextSibling),T5=Z,o0=!0,G8=null,y4=!1,L6=null,f6=!1,$!==null&&bB(Z,$),Z=sJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&$G(Z),$=a4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function nJ($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function mq($,Z,G,Y,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";Vw[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),Vw[B]=!0)}if(Z.mode&S5&&J4.recordLegacyContextWarning(Z,null),$===null&&(dq(Z,Z.type),G.contextTypes&&(B=i(G)||"Unknown",Ew[B]||(Ew[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)))),$9(Z),G=Bq($,Z,G,Y,void 0,U),Y=Mq(),$!==null&&!a1)return Fq($,Z,U),$2($,Z,U);return o0&&Y&&nX(Z),Z.flags|=1,w5($,Z,G,U),Z.child}function mH($,Z,G,Y,U,B){if($9(Z),F2=-1,xZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=Hq(Z,Y,G,U),QH($,Z),Y=Mq(),$!==null&&!a1)return Fq($,Z,B),$2($,Z,B);return o0&&Y&&nX(Z),Z.flags|=1,w5($,Z,G,B),Z.child}function dH($,Z,G,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,W=w1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=uq(R),xq(R,W,Z,B6(B,Z)),vJ(Z,R)}if($9(Z),Z.stateNode===null){if(W=J8,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==j4)&&!Iw.has(G)&&(Iw.add(G),R=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===kY?" 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(G)||"Component",R)),typeof B==="object"&&B!==null&&(W=S1(B)),B=new G(Y,W),Z.mode&S5){z1(!0);try{B=new G(Y,W)}finally{z1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=DN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Ww,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=i(G)||"Component",Rw.has(W)||(Rw.add(W),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.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||R!==null||L!==null){B=i(G)||"Component";var P=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Tw.has(B)||(Tw.add(B),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,_,W!==null?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,B,P,W!==null?`
137
137
  `+W:"",R!==null?`
138
138
  `+R:"",L!==null?`
139
- `+L:""))}}B=Z.stateNode,W=a(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Tw.has(G)&&(Tw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!zw.has(G)&&(zw.add(G),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)",W)),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.",W),G.prototype&&G.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.",a(G)||"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()?",W),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().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),R=B.props!==Y,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),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.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Fw.has(G)||(Fw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",a(G))),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.",W),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.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(R=B.state)&&(typeof R!=="object"||$5(R))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Zq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?O1(W):$2,B.state===Y&&(W=a(G)||"Component",ww.has(W)||(ww.add(W),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.",W))),Z.mode&I5&&e6.recordLegacyContextWarning(Z,B),e6.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(bq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==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"),EN.enqueueReplaceState(B,B.state,null)),m$(Z,Y,B,U),x$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;R=J9(G,k),B.props=R;var f=B.context;L=G.contextType,W=$2,typeof L==="object"&&L!==null&&(W=O1(L)),_=G.getDerivedStateFromProps,L=typeof _==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&OH(Z,B,Y,W),Y2=!1;var S=Z.memoizedState;B.state=S,m$(Z,Y,B,U),x$(),f=Z.memoizedState,k||S!==f||Y2?(typeof _==="function"&&(bq(Z,G,_,Y),f=Z.memoizedState),(R=Y2||VH(Z,G,R,Y,S,f,W))?(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&t6)!==I0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=R):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,Qq($,Z),W=Z.memoizedProps,L=J9(G,W),B.props=L,_=Z.pendingProps,S=B.context,f=G.contextType,R=$2,typeof f==="object"&&f!==null&&(R=O1(f)),k=G.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==_||S!==R)&&OH(Z,B,Y,R),Y2=!1,S=Z.memoizedState,B.state=S,m$(Z,Y,B,U),x$();var g=Z.memoizedState;W!==_||S!==g||Y2||$!==null&&$.dependencies!==null&&zJ($.dependencies)?(typeof k==="function"&&(bq(Z,G,k,Y),g=Z.memoizedState),(L=Y2||VH(Z,G,L,Y,S,g,R)||$!==null&&$.dependencies!==null&&zJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,R)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(R=B,cJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,n9(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,b5=-1;else if(G=mW(R),Z.mode&I5){w1(!0);try{mW(R)}finally{w1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=w9(Z,$.child,null,U),Z.child=w9(Z,null,G,U)):H5($,Z,G,U),Z.memoizedState=R.state,$=Z.child}else $=i4($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(p7||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"),p7=!0),$}function uH($,Z,G,Y){return i2(),Z.flags|=256,H5($,Z,G,Y),Z.child}function hq($,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"&&($=a(Z)||"Unknown",Vw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Vw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=a(Z)||"Unknown",Cw[Z]||(console.error("%s: Function components do not support contextType.",Z),Cw[Z]=!0))}function uq($){return{baseLanes:$,cachePool:gB()}}function xq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=l5),$}function xH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(u1.current&fZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(s0){if(B?m8(Z):d8(Z),($=P1)?(G=YF($,v6),G=G!==null&&G.data!==I9?G:null,G!==null&&(Y={dehydrated:G,treeContext:AB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=OB(G),Y.return=Z,Z.child=Y,W5=Z,P1=null)):G=null,G===null)throw wJ(Z,$),y8(Z);return TY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){d8(Z);var L=Z.mode;return R=lJ({mode:"hidden",children:R},L),U=o2(U,L,G,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=jN,l$(null,U)}return m8(Z),mq(Z,R)}var _=$.memoizedState;if(_!==null){var k=_.dehydrated;if(k!==null){if(W)Z.flags&256?(m8(Z),Z.flags&=-257,Z=dq($,Z,G)):Z.memoizedState!==null?(d8(Z),Z.child=$.child,Z.flags|=128,Z=null):(d8(Z),R=U.fallback,L=Z.mode,U=lJ({mode:"visible",children:U.children},L),R=o2(R,L,G,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,w9(Z,$.child,null,G),U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=jN,Z=l$(null,U));else if(m8(Z),jB(),(G&536870912)!==0&&aJ(Z),TY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=R,U=L,k=S,R=B,L=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=L===void 0?null:L,U={value:R,source:null,stack:Y},typeof Y==="string"&&UN.set(R,U),k$(U),Z=dq($,Z,G)}else if(s1||Q7($,Z,G,!1),Y=(G&$.childLanes)!==0,s1||Y){if(Y=W1,Y!==null&&(U=p2(Y,G),U!==0&&U!==_.retryLane))throw _.retryLane=U,_5($,U),D1(Y,$,U),SN;zY(k)||iJ(),Z=dq($,Z,G)}else zY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=_.treeContext,P1=H6(k.nextSibling),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=mq(Z,U.children),Z.flags|=4096);return Z}}if(B)return d8(Z),R=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=s4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?R=s4(k,R):(R=o2(R,L,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,l$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=uq(G):(L=R.cachePool,L!==null?(S=c1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=gB(),R={baseLanes:R.baseLanes|G,cachePool:L}),U.memoizedState=R,U.childLanes=xq($,Y,G),Z.memoizedState=jN,l$($.child,U);return _!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&aJ(Z),m8(Z),G=$.child,$=G.sibling,G=s4(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function mq($,Z){return Z=lJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function lJ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function dq($,Z,G){return w9(Z,$.child,null,G),$=mq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function mH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),nX($.return,Z,G)}function pq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function dH($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=u1.current;if((Y=(R&fZ)!==0)?(R=R&u7|fZ,Z.flags|=128):R&=u7,_0(u1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!Ow[R])if(Ow[R]=!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(R=B==null?"null":B,!pG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")pG[R]=!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"?(pG[R]=!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"&&(pG[R]=!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")&&W!==void 0&&W!==null&&W!==!1)if($5(W)){for(R=0;R<W.length;R++)if(!sB(W[R],R))break $}else if(R=t(W),typeof R==="function"){if(R=R.call(W))for(var L=R.next(),_=0;!L.done;L=R.next()){if(!sB(L.value,_))break $;_++}}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(H5($,Z,W,G),s0?(f8(),W=LZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&mH($,G,Z);else if($.tag===19)mH($,G,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":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&SJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),pq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&SJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}pq(Z,!0,G,null,B,W);break;case"together":pq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function i4($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),b5=-1,K2|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(Q7($,Z,G,!1),(G&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,G=s4($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=s4($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function cq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zJ($)?!0:!1}function O_($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),g8(Z,c1,$.memoizedState.cache),i2();break;case 27:case 5:r0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:g8(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&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,Xq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return m8(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return xH($,Z,G);return m8(Z),$=i4($,Z,G),$!==null?$.sibling:null}m8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(Q7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return dH($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),_0(u1,u1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,kH($,Z,G,Z.pendingProps);case 24:g8(Z,c1,$.memoizedState.cache)}return i4($,Z,G)}function lq($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=mX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;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=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)s1=!0;else{if(!cq($,G)&&(Z.flags&128)===0)return s1=!1,O_($,Z,G);s1=($.flags&131072)!==0?!0:!1}else{if(s1=!1,Y=s0)f8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,f8(),EB(Z,LZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=h8(Z.elementType),Z.type=$,typeof $==="function")xX($)?(Y=J9($,Y),Z.tag=1,Z.type=$=n2($),Z=hH(null,Z,$,Y,G)):(Z.tag=0,hq(Z,$),Z.type=$=n2($),Z=gq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===YZ){Z.tag=11,Z.type=$=uX($),Z=DH(null,Z,$,Y,G);break $}else if(U===BG){Z.tag=14,Z=vH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===M6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=a($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return gq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=J9(Y,Z.pendingProps),hH($,Z,Y,U,G);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,Qq($,Z),m$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,g8(Z,c1,Y),Y!==B.cache&&oX(Z,[c1],G,!0),x$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=uH($,Z,Y,G);break $}else if(Y!==U){U=Y6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),k$(U),Z=uH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}P1=H6($.firstChild),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!0,G=Zw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(i2(),Y===U){Z=i4($,Z,G);break $}H5($,Z,Y,G)}Z=Z.child}return Z;case 26:return cJ($,Z),$===null?(G=MF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:s0||(G=Z.type,$=Z.pendingProps,Y=D0(n8.current),Y=ZG(Y).createElement(G),Y[F5]=Z,Y[j5]=$,M5(Y,G,$),z0(Y),Z.stateNode=Y):Z.memoizedState=MF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return r0(Z),$===null&&s0&&(Y=D0(n8.current),U=B0(),Y=Z.stateNode=BF(Z.type,Z.pendingProps,Y,U,!1),j4||(U=eM(Y,Z.type,Z.pendingProps,U),U!==null&&(a2(Z,0).serverProps=U)),W5=Z,v6=!0,U=P1,r8(Z.type)?(eN=U,P1=H6(Y.firstChild)):P1=U),H5($,Z,Z.pendingProps.children,G),cJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&s0&&(B=B0(),Y=DX(Z.type,B.ancestorInfo),U=P1,(W=!U)||(W=FC(U,Z.type,Z.pendingProps,v6),W!==null?(Z.stateNode=W,j4||(B=eM(W,Z.type,Z.pendingProps,B),B!==null&&(a2(Z,0).serverProps=B)),W5=Z,P1=H6(W.firstChild),v6=!1,B=!0):B=!1,W=!B),W&&(Y&&wJ(Z,U),y8(Z))),r0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,wY(U,B)?Y=null:W!==null&&wY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Yq($,Z,z_,null,null,G),eZ._currentValue=U),cJ($,Z),H5($,Z,Y,G),Z.child;case 6:return $===null&&s0&&(G=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,G=Y!=null?qJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=P1,(Y=!$)||(Y=WC($,Z.pendingProps,v6),Y!==null?(Z.stateNode=Y,W5=Z,P1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&wJ(Z,$),y8(Z))),null;case 13:return xH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=w9(Z,null,Y,G):H5($,Z,Y,G),Z.child;case 11:return DH($,Z,Z.type,Z.pendingProps,G);case 7:return H5($,Z,Z.pendingProps,G),Z.child;case 8:return H5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,H5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Ew||(Ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),g8(Z,Y,B),H5($,Z,U.children,G),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."),t2(Z),U=O1(U),Y=RN(Y,U,void 0),Z.flags|=1,H5($,Z,Y,G),Z.child;case 14:return vH($,Z,Z.type,Z.pendingProps,G);case 15:return bH($,Z,Z.type,Z.pendingProps,G);case 19:return dH($,Z,G);case 31:return V_($,Z,G);case 22:return kH($,Z,G,Z.pendingProps);case 24:return t2(Z),Y=O1(c1),$===null?(U=eX(),U===null&&(U=W1,B=aX(),U.pooledCache=B,e2(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Zq(Z),g8(Z,c1,U)):(($.lanes&G)!==0&&(Qq($,Z),m$(Z,null,null,G),x$()),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),g8(Z,c1,Y)):(Y=B.cache,g8(Z,c1,Y),Y!==U.cache&&oX(Z,[c1],G,!0))),H5($,Z,Z.pendingProps.children,G),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 t4($){$.flags|=4}function rq($,Z,G,Y,U){if(Z=($.mode&rI)!==I0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(PM())$.flags|=8192;else throw W9=gG,TN}else $.flags&=-16777217}function pH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&g6)!==E9)$.flags&=-16777217;else if($.flags|=16777216,!zF(Z))if(PM())$.flags|=8192;else throw W9=gG,TN}function rJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?a9():536870912,$.lanes|=Z,P9|=Z)}function r$($,Z){if(!s0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function R1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&f0)!==I0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=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;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&f0)!==I0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function E_($,Z,G){var Y=Z.pendingProps;switch(lX(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return R1(Z),null;case 1:return R1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),o4(c1,Z),X0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)Z7(Z)?(sX(),t4(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,rX());return R1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(t4(Z),B!==null?(R1(Z),pH(Z,B)):(R1(Z),rq(Z,U,null,Y,G))):B?B!==$.memoizedState?(t4(Z),R1(Z),pH(Z,B)):(R1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&t4(Z),R1(Z),rq(Z,U,$,Y,G)),null;case 27:if(u0(Z),G=D0(n8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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 R1(Z),null}$=B0(),Z7(Z)?DB(Z,$):($=BF(U,Y,G,$,!0),Z.stateNode=$,t4(Z))}return R1(Z),null;case 5:if(u0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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 R1(Z),null}var W=B0();if(Z7(Z))DB(Z,W);else{switch(B=D0(n8.current),DX(U,W.ancestorInfo),W=W.context,B=ZG(B),W){case i7:B=B.createElementNS(P7,U);break;case U3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(P7,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]"||a6.call(iw,U)||(iw[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[F5]=Z,B[j5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(M5(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&&t4(Z)}}return R1(Z),rq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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($=D0(n8.current),G=B0(),Z7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!j4,Y=null,B=W5,B!==null)switch(B.tag){case 3:U&&(U=UF($,G,Y),U!==null&&(a2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=UF($,G,Y),U!==null&&(a2(Z,0).serverProps=U))}$[F5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||nM($.nodeValue,G)?!0:!1,$||y8(Z,!0)}else U=G.ancestorInfo.current,U!=null&&qJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=ZG($).createTextNode(Y),$[F5]=Z,Z.stateNode=$}return R1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=Z7(Z),G!==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.");$[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else sX(),i2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return R1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=Z7(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[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else sX(),i2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}}if(K6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&f0)!==I0&&g$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(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)),G!==$&&G&&(Z.child.flags|=8192),rJ(Z,Z.updateQueue),R1(Z),(Z.mode&f0)!==I0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return X0(Z),$===null&&UY(Z.stateNode.containerInfo),R1(Z),null;case 10:return o4(Z.type,Z),R1(Z),null;case 19:if(L0(u1,Z),Y=Z.memoizedState,Y===null)return R1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)r$(Y,!1);else{if(S1!==M8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=SJ($),B!==null){Z.flags|=128,r$(Y,!1),$=B.updateQueue,Z.updateQueue=$,rJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)VB(G,$),G=G.sibling;return _0(u1,u1.current&u7|fZ,Z),s0&&n4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&Y5()>aG&&(Z.flags|=128,U=!0,r$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=SJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,rJ(Z,$),r$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!s0)return R1(Z),null}else 2*Y5()-Y.renderingStartTime>aG&&G!==536870912&&(Z.flags|=128,U=!0,r$(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=Y5(),$.sibling=null,G=u1.current,G=U?G&u7|fZ:G&u7,_0(u1,G,Z),s0&&n4(Z,Y.treeForkCount),$;return R1(Z),null;case 22:case 23:return K6(Z),Gq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(R1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):R1(Z),G=Z.updateQueue,G!==null&&rJ(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&L0(M9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),o4(c1,Z),R1(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 A_($,Z){switch(lX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 3:return o4(c1,Z),X0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return u0(Z),null;case 31:if(Z.memoizedState!==null){if(K6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 13:if(K6(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.");i2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 19:return L0(u1,Z),null;case 4:return X0(Z),null;case 10:return o4(Z.type,Z),null;case 22:case 23:return K6(Z),Gq(Z),$!==null&&L0(M9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 24:return o4(c1,Z),null;case 25:return null;default:return null}}function cH($,Z){switch(lX(Z),Z.tag){case 3:o4(c1,Z),X0(Z);break;case 26:case 27:case 5:u0(Z);break;case 4:X0(Z);break;case 31:Z.memoizedState!==null&&K6(Z);break;case 13:K6(Z);break;case 19:L0(u1,Z);break;case 10:o4(Z.type,Z);break;case 22:case 23:K6(Z),Gq(Z),$!==null&&L0(M9,Z);break;case 24:o4(c1,Z)}}function R4($){return($.mode&f0)!==I0}function lH($,Z){R4($)?(w4(),s$(Z,$),W4()):s$(Z,$)}function sq($,Z,G){R4($)?(w4(),Y7(G,$,Z),W4()):Y7(G,$,Z)}function s$($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&k5)!==uG&&(n7=!0),Y=G0(Z,iI,G),($&k5)!==uG&&(n7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&z6)!==0?"useLayoutEffect":(G.tag&k5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
139
+ `+L:""))}}B=Z.stateNode,W=i(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Cw.has(G)&&(Cw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!Pw.has(G)&&(Pw.add(G),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)",W)),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.",W),G.prototype&&G.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(G)||"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()?",W),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().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),R=B.props!==Y,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),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.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||zw.has(G)||(zw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(G))),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.",W),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.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(R=B.state)&&(typeof R!=="object"||Q5(R))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Xq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?S1(W):J8,B.state===Y&&(W=i(G)||"Component",Lw.has(W)||(Lw.add(W),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.",W))),Z.mode&S5&&J4.recordLegacyContextWarning(Z,B),J4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(gq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==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"),DN.enqueueReplaceState(B,B.state,null)),c$(Z,Y,B,U),p$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;R=X9(G,k),B.props=R;var f=B.context;L=G.contextType,W=J8,typeof L==="object"&&L!==null&&(W=S1(L)),P=G.getDerivedStateFromProps,L=typeof P==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&jH(Z,B,Y,W),K8=!1;var S=Z.memoizedState;B.state=S,c$(Z,Y,B,U),p$(),f=Z.memoizedState,k||S!==f||K8?(typeof P==="function"&&(gq(Z,G,P,Y),f=Z.memoizedState),(R=K8||SH(Z,G,R,Y,S,f,W))?(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)!==O0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=R):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,qq($,Z),W=Z.memoizedProps,L=X9(G,W),B.props=L,P=Z.pendingProps,S=B.context,f=G.contextType,R=J8,typeof f==="object"&&f!==null&&(R=S1(f)),k=G.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==P||S!==R)&&jH(Z,B,Y,R),K8=!1,S=Z.memoizedState,B.state=S,c$(Z,Y,B,U),p$();var g=Z.memoizedState;W!==P||S!==g||K8||$!==null&&$.dependencies!==null&&PJ($.dependencies)?(typeof k==="function"&&(gq(Z,G,k,Y),g=Z.memoizedState),(L=K8||SH(Z,G,L,Y,S,g,R)||$!==null&&$.dependencies!==null&&PJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,R)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(R=B,nJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,i9(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,x5=-1;else if(G=lW(R),Z.mode&S5){z1(!0);try{lW(R)}finally{z1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=z9(Z,$.child,null,U),Z.child=z9(Z,null,G,U)):w5($,Z,G,U),Z.memoizedState=R.state,$=Z.child}else $=$2($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(r7||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"),r7=!0),$}function pH($,Z,G,Y){return e8(),Z.flags|=256,w5($,Z,G,Y),Z.child}function dq($,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",Sw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Sw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",Aw[Z]||(console.error("%s: Function components do not support contextType.",Z),Aw[Z]=!0))}function pq($){return{baseLanes:$,cachePool:mB()}}function cq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=a5),$}function cH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(p1.current&hZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(o0){if(B?c2(Z):l2(Z),($=I1)?(G=BF($,f6),G=G!==null&&G.data!==V9?G:null,G!==null&&(Y={dehydrated:G,treeContext:vB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=jB(G),Y.return=Z,Z.child=Y,T5=Z,I1=null)):G=null,G===null)throw LJ(Z,$),u2(Z);return CY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){l2(Z);var L=Z.mode;return R=oJ({mode:"hidden",children:R},L),U=i8(U,L,G,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=pq(G),U.childLanes=cq($,Y,G),Z.memoizedState=kN,n$(null,U)}return c2(Z),lq(Z,R)}var P=$.memoizedState;if(P!==null){var k=P.dehydrated;if(k!==null){if(W)Z.flags&256?(c2(Z),Z.flags&=-257,Z=rq($,Z,G)):Z.memoizedState!==null?(l2(Z),Z.child=$.child,Z.flags|=128,Z=null):(l2(Z),R=U.fallback,L=Z.mode,U=oJ({mode:"visible",children:U.children},L),R=i8(R,L,G,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,z9(Z,$.child,null,G),U=Z.child,U.memoizedState=pq(G),U.childLanes=cq($,Y,G),Z.memoizedState=kN,Z=n$(null,U));else if(c2(Z),kB(),(G&536870912)!==0&&$G(Z),CY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=R,U=L,k=S,R=B,L=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=L===void 0?null:L,U={value:R,source:null,stack:Y},typeof Y==="string"&&MN.set(R,U),g$(U),Z=rq($,Z,G)}else if(a1||X7($,Z,G,!1),Y=(G&$.childLanes)!==0,a1||Y){if(Y=w1,Y!==null&&(U=l8(Y,G),U!==0&&U!==P.retryLane))throw P.retryLane=U,A5($,U),f1(Y,$,U),bN;PY(k)||ZG(),Z=rq($,Z,G)}else PY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=P.treeContext,I1=w6(k.nextSibling),T5=Z,o0=!0,G8=null,y4=!1,L6=null,f6=!1,$!==null&&bB(Z,$),Z=lq(Z,U.children),Z.flags|=4096);return Z}}if(B)return l2(Z),R=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?R=a4(k,R):(R=i8(R,L,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,n$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=pq(G):(L=R.cachePool,L!==null?(S=s1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=mB(),R={baseLanes:R.baseLanes|G,cachePool:L}),U.memoizedState=R,U.childLanes=cq($,Y,G),Z.memoizedState=kN,n$($.child,U);return P!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&$G(Z),c2(Z),G=$.child,$=G.sibling,G=a4(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function lq($,Z){return Z=oJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function oJ($,Z){return $=_(22,$,null,Z),$.lanes=0,$}function rq($,Z,G){return z9(Z,$.child,null,G),$=lq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function lH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),tX($.return,Z,G)}function sq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function rH($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=p1.current;if((Y=(R&hZ)!==0)?(R=R&d7|hZ,Z.flags|=128):R&=d7,C0(p1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!jw[R])if(jw[R]=!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(R=B==null?"null":B,!sG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")sG[R]=!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"?(sG[R]=!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"&&(sG[R]=!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")&&W!==void 0&&W!==null&&W!==!1)if(Q5(W)){for(R=0;R<W.length;R++)if(!iB(W[R],R))break $}else if(R=t(W),typeof R==="function"){if(R=R.call(W))for(var L=R.next(),P=0;!L.done;L=R.next()){if(!iB(L.value,P))break $;P++}}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,W,G),o0?(h2(),W=CZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&lH($,G,Z);else if($.tag===19)lH($,G,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":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&bJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),sq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&bJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}sq(Z,!0,G,null,B,W);break;case"together":sq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function $2($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,M8|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(X7($,Z,G,!1),(G&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,G=a4($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=a4($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function nq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&PJ($)?!0:!1}function bP($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),x2(Z,s1,$.memoizedState.cache),e8();break;case 27:case 5:n0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:x2(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&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,Uq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return c2(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return cH($,Z,G);return c2(Z),$=$2($,Z,G),$!==null?$.sibling:null}c2(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(X7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return rH($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),C0(p1,p1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,hH($,Z,G,Z.pendingProps);case 24:x2(Z,s1,$.memoizedState.cache)}return $2($,Z,G)}function oq($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=lX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;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=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)a1=!0;else{if(!nq($,G)&&(Z.flags&128)===0)return a1=!1,bP($,Z,G);a1=($.flags&131072)!==0?!0:!1}else{if(a1=!1,Y=o0)h2(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,h2(),DB(Z,CZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=m2(Z.elementType),Z.type=$,typeof $==="function")cX($)?(Y=X9($,Y),Z.tag=1,Z.type=$=a8($),Z=dH(null,Z,$,Y,G)):(Z.tag=0,dq(Z,$),Z.type=$=a8($),Z=mq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===KZ){Z.tag=11,Z.type=$=pX($),Z=fH(null,Z,$,Y,G);break $}else if(U===WG){Z.tag=14,Z=yH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return mq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=X9(Y,Z.pendingProps),dH($,Z,Y,U,G);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,qq($,Z),c$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,x2(Z,s1,Y),Y!==B.cache&&eX(Z,[s1],G,!0),p$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=pH($,Z,Y,G);break $}else if(Y!==U){U=B6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),g$(U),Z=pH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}I1=w6($.firstChild),T5=Z,o0=!0,G8=null,y4=!1,L6=null,f6=!0,G=Xw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(e8(),Y===U){Z=$2($,Z,G);break $}w5($,Z,Y,G)}Z=Z.child}return Z;case 26:return nJ($,Z),$===null?(G=RF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:o0||(G=Z.type,$=Z.pendingProps,Y=v0(i2.current),Y=XG(Y).createElement(G),Y[z5]=Z,Y[g5]=$,R5(Y,G,$),T0(Y),Z.stateNode=Y):Z.memoizedState=RF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return n0(Z),$===null&&o0&&(Y=v0(i2.current),U=M0(),Y=Z.stateNode=WF(Z.type,Z.pendingProps,Y,U,!1),y4||(U=JF(Y,Z.type,Z.pendingProps,U),U!==null&&(t8(Z,0).serverProps=U)),T5=Z,f6=!0,U=I1,o2(Z.type)?(JU=U,I1=w6(Y.firstChild)):I1=U),w5($,Z,Z.pendingProps.children,G),nJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&o0&&(B=M0(),Y=fX(Z.type,B.ancestorInfo),U=I1,(W=!U)||(W=_C(U,Z.type,Z.pendingProps,f6),W!==null?(Z.stateNode=W,y4||(B=JF(W,Z.type,Z.pendingProps,B),B!==null&&(t8(Z,0).serverProps=B)),T5=Z,I1=w6(W.firstChild),f6=!1,B=!0):B=!1,W=!B),W&&(Y&&LJ(Z,U),u2(Z))),n0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,LY(U,B)?Y=null:W!==null&&LY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Bq($,Z,OP,null,null,G),QQ._currentValue=U),nJ($,Z),w5($,Z,Y,G),Z.child;case 6:return $===null&&o0&&(G=Z.pendingProps,$=M0(),Y=$.ancestorInfo.current,G=Y!=null?KJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=I1,(Y=!$)||(Y=PC($,Z.pendingProps,f6),Y!==null?(Z.stateNode=Y,T5=Z,I1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&LJ(Z,$),u2(Z))),null;case 13:return cH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=z9(Z,null,Y,G):w5($,Z,Y,G),Z.child;case 11:return fH($,Z,Z.type,Z.pendingProps,G);case 7:return w5($,Z,Z.pendingProps,G),Z.child;case 8:return w5($,Z,Z.pendingProps.children,G),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,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Dw||(Dw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),x2(Z,Y,B),w5($,Z,U.children,G),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."),$9(Z),U=S1(U),Y=_N(Y,U,void 0),Z.flags|=1,w5($,Z,Y,G),Z.child;case 14:return yH($,Z,Z.type,Z.pendingProps,G);case 15:return gH($,Z,Z.type,Z.pendingProps,G);case 19:return rH($,Z,G);case 31:return vP($,Z,G);case 22:return hH($,Z,G,Z.pendingProps);case 24:return $9(Z),Y=S1(s1),$===null?(U=Jq(),U===null&&(U=w1,B=$q(),U.pooledCache=B,Z9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Xq(Z),x2(Z,s1,U)):(($.lanes&G)!==0&&(qq($,Z),c$(Z,null,null,G),p$()),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),x2(Z,s1,Y)):(Y=B.cache,x2(Z,s1,Y),Y!==U.cache&&eX(Z,[s1],G,!0))),w5($,Z,Z.pendingProps.children,G),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 aq($,Z,G,Y,U){if(Z=($.mode&eI)!==O0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(OM())$.flags|=8192;else throw R9=mG,CN}else $.flags&=-16777217}function sH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&x6)!==S9)$.flags&=-16777217;else if($.flags|=16777216,!PF(Z))if(OM())$.flags|=8192;else throw R9=mG,CN}function aJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?e9():536870912,$.lanes|=Z,C9|=Z)}function o$($,Z){if(!o0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&y0)!==O0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=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;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&y0)!==O0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function kP($,Z,G){var Y=Z.pendingProps;switch(oX(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(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(s1,Z),q0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)G7(Z)?(iX(),Z2(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,aX());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z2(Z),B!==null?(T1(Z),sH(Z,B)):(T1(Z),aq(Z,U,null,Y,G))):B?B!==$.memoizedState?(Z2(Z),T1(Z),sH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z2(Z),T1(Z),aq(Z,U,$,Y,G)),null;case 27:if(m0(Z),G=v0(i2.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}$=M0(),G7(Z)?fB(Z,$):($=WF(U,Y,G,$,!0),Z.stateNode=$,Z2(Z))}return T1(Z),null;case 5:if(m0(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 W=M0();if(G7(Z))fB(Z,W);else{switch(B=v0(i2.current),fX(U,W.ancestorInfo),W=W.context,B=XG(B),W){case $$:B=B.createElementNS(I7,U);break;case M3:B=B.createElementNS(PG,U);break;default:switch(U){case"svg":B=B.createElementNS(I7,U);break;case"math":B=B.createElementNS(PG,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]"||$4.call(ZR,U)||(ZR[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[z5]=Z,B[g5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.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),aq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),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($=v0(i2.current),G=M0(),G7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!y4,Y=null,B=T5,B!==null)switch(B.tag){case 3:U&&(U=MF($,G,Y),U!==null&&(t8(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=MF($,G,Y),U!==null&&(t8(Z,0).serverProps=U))}$[z5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||tM($.nodeValue,G)?!0:!1,$||u2(Z,!0)}else U=G.ancestorInfo.current,U!=null&&KJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=XG($).createTextNode(Y),$[z5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=G7(Z),G!==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.");$[z5]=Z,T1(Z),(Z.mode&y0)!==O0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else iX(),e8(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&y0)!==O0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=aX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return F6(Z),Z;return F6(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=G7(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[z5]=Z,T1(Z),(Z.mode&y0)!==O0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else iX(),e8(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&y0)!==O0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=aX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return F6(Z),Z;return F6(Z),null}}if(F6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&y0)!==O0&&x$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(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)),G!==$&&G&&(Z.child.flags|=8192),aJ(Z,Z.updateQueue),T1(Z),(Z.mode&y0)!==O0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&MY(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(_0(p1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)o$(Y,!1);else{if(b1!==w2||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=bJ($),B!==null){Z.flags|=128,o$(Y,!1),$=B.updateQueue,Z.updateQueue=$,aJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)SB(G,$),G=G.sibling;return C0(p1,p1.current&d7|hZ,Z),o0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>$3&&(Z.flags|=128,U=!0,o$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=bJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,aJ(Z,$),o$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!o0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>$3&&G!==536870912&&(Z.flags|=128,U=!0,o$(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,G=p1.current,G=U?G&d7|hZ:G&d7,C0(p1,G,Z),o0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return F6(Z),Nq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),G=Z.updateQueue,G!==null&&aJ(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&_0(W9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),t4(s1,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 fP($,Z){switch(oX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 3:return t4(s1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return m0(Z),null;case 31:if(Z.memoizedState!==null){if(F6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");e8()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 13:if(F6(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.");e8()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 19:return _0(p1,Z),null;case 4:return q0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return F6(Z),Nq(Z),$!==null&&_0(W9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 24:return t4(s1,Z),null;case 25:return null;default:return null}}function nH($,Z){switch(oX(Z),Z.tag){case 3:t4(s1,Z),q0(Z);break;case 26:case 27:case 5:m0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&F6(Z);break;case 13:F6(Z);break;case 19:_0(p1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:F6(Z),Nq(Z),$!==null&&_0(W9,Z);break;case 24:t4(s1,Z)}}function C4($){return($.mode&y0)!==O0}function oH($,Z){C4($)?(P4(),a$(Z,$),_4()):a$(Z,$)}function iq($,Z,G){C4($)?(P4(),K7(G,$,Z),_4()):K7(G,$,Z)}function a$($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&m5)!==pG&&(i7=!0),Y=X0(Z,GO,G),($&m5)!==pG&&(i7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&P6)!==0?"useLayoutEffect":(G.tag&m5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+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,G0(Z,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,W)}G=G.next}while(G!==U)}}catch(R){X1(Z,Z.return,R)}}function Y7($,Z,G){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 W=Y.inst,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&k5)!==uG&&(n7=!0),U=Z,G0(U,tI,U,G,R),($&k5)!==uG&&(n7=!1))}Y=Y.next}while(Y!==B)}}catch(L){X1(Z,Z.return,L)}}function rH($,Z){R4($)?(w4(),s$(Z,$),W4()):s$(Z,$)}function nq($,Z,G){R4($)?(w4(),Y7(G,$,Z),W4()):Y7(G,$,Z)}function sH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||p7||(G.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"),G.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{G0($,oB,Z,G)}catch(Y){X1($,$.return,Y)}}}function S_($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function j_($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||p7||(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=J9($.type,G),B=G0($,S_,Z,U,Y);G=Aw,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){X1($,$.return,W)}}function nH($,Z,G){G.props=J9($.type,$.memoizedProps),G.state=$.memoizedState,R4($)?(w4(),G0($,sW,$,Z,G),W4()):G0($,sW,$,Z,G)}function D_($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(R4($))try{w4(),$.refCleanup=Z(G)}finally{W4()}else $.refCleanup=Z(G);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=G}}function n$($,Z){try{G0($,D_,$)}catch(G){X1($,Z,G)}}function z4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(R4($))try{w4(),G0($,Y)}finally{W4($)}else G0($,Y)}catch(U){X1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(R4($))try{w4(),G0($,G,null)}finally{W4($)}else G0($,G,null)}catch(U){X1($,Z,U)}else G.current=null}function oH($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",bG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function v_($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",bG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function aH($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{G0($,QC,Y,Z,G,$)}catch(U){X1($,$.return,U)}}function oq($,Z,G){try{G0($,GC,$.stateNode,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function iH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&r8($.type)||$.tag===4}function aq($){$:for(;;){for(;$.sibling===null;){if($.return===null||iH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&r8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function iq($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(GF(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(GF(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=r4));else if(Y!==4&&(Y===27&&r8($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(iq($,Z,G),$=$.sibling;$!==null;)iq($,Z,G),$=$.sibling}function sJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&r8($.type)&&(G=$.stateNode),$=$.child,$!==null))for(sJ($,Z,G),$=$.sibling;$!==null;)sJ($,Z,G),$=$.sibling}function b_($){for(var Z,G=$.return;G!==null;){if(iH(G)){Z=G;break}G=G.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,G=aq($),sJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(JF(G),Z.flags&=-33),Z=aq($),sJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=aq($),iq($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function tH($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,LC,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function eH($,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 k_($,Z){if($=$.containerInfo,aN=M3,$=WB($),kX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch(e){G=null;break $}var W=0,R=-1,L=-1,_=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(R=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++_===U&&(R=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=R===-1||L===-1?null:{start:R,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;iN={focusedElem:$,selectionRange:G},M3=!1;for(U5=Z;U5!==null;)if(Z=U5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,U5=$;else for(;U5!==null;){switch($=Z=U5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&j_($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)RY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":RY($);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,U5=$;break}U5=Z.return}}function $M($,Z,G){var Y=N6(),U=B4(),B=M4(),W=F4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:T4($,G),R&4&&lH(G,z6|f6);break;case 1:if(T4($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||p7||($.props!==G.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(G)||"instance"),$.state!==G.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(G)||"instance")),R4(G)?(w4(),G0(G,zN,G,$),W4()):G0(G,zN,G,$);else{var L=J9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||p7||($.props!==G.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(G)||"instance"),$.state!==G.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(G)||"instance")),R4(G)?(w4(),G0(G,cW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),W4()):G0(G,cW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&sH(G),R&512&&n$(G,G.return);break;case 3:if(Z=a4(),T4($,G),R&64&&(R=G.updateQueue,R!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{G0(G,oB,R,L)}catch(k){X1(G,G.return,k)}}$.effectDuration+=LJ(Z);break;case 27:Z===null&&R&4&&tH(G);case 26:case 5:if(T4($,G),Z===null){if(R&4)aH(G);else if(R&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{G0(G,JC,L,$,Z,G)}catch(k){X1(G,G.return,k)}}}R&512&&n$(G,G.return);break;case 12:if(R&4){R=a4(),T4($,G),$=G.stateNode,$.effectDuration+=y$(R);try{G0(G,oH,G,Z,Q2,$.effectDuration)}catch(k){X1(G,G.return,k)}}else T4($,G);break;case 31:T4($,G),R&4&&JM($,G);break;case 13:T4($,G),R&4&&GM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=p_.bind(null,G),wC($,R))));break;case 22:if(R=G.memoizedState!==null||H8,!R){Z=Z!==null&&Z.memoizedState!==null||n1,L=H8;var _=n1;H8=R,(n1=Z)&&!_?(L4($,G,(G.subtreeFlags&8772)!==0),(G.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&KJ(G,T0,P0)):T4($,G),H8=L,n1=_}break;case 30:break;default:T4($,G)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&((v1||0.05<A1)&&U4(G,T0,P0,A1,E1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<P0-T0&&(eH(G.return.alternate,G.return)||N4(G,T0,P0,"Mount"))),U6(Y),H4(U),E1=B,v1=W}function ZM($){var Z=$.alternate;Z!==null&&($.alternate=null,ZM(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&$0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function e4($,Z,G){for(G=G.child;G!==null;)QM($,Z,G),G=G.sibling}function QM($,Z,G){if(C5&&typeof C5.onCommitFiberUnmount==="function")try{C5.onCommitFiberUnmount(T7,G)}catch(_){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",_))}var Y=N6(),U=B4(),B=M4(),W=F4();switch(G.tag){case 26:n1||z4(G,Z),e4($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:n1||z4(G,Z);var R=o1,L=p5;r8(G.type)&&(o1=G.stateNode,p5=!1),e4($,Z,G),G0(G,JZ,G.stateNode),o1=R,p5=L;break;case 5:n1||z4(G,Z);case 6:if(R=o1,L=p5,o1=null,e4($,Z,G),o1=R,p5=L,o1!==null)if(p5)try{G0(G,YC,o1,G.stateNode)}catch(_){X1(G,Z,_)}else try{G0(G,qC,o1,G.stateNode)}catch(_){X1(G,Z,_)}break;case 18:o1!==null&&(p5?($=o1,XF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),W7($)):XF(o1,G.stateNode));break;case 4:R=o1,L=p5,o1=G.stateNode.containerInfo,p5=!0,e4($,Z,G),o1=R,p5=L;break;case 0:case 11:case 14:case 15:Y7(k5,G,Z),n1||sq(G,Z,z6),e4($,Z,G);break;case 1:n1||(z4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&nH(G,Z,R)),e4($,Z,G);break;case 21:e4($,Z,G);break;case 22:n1=(R=n1)||G.memoizedState!==null,e4($,Z,G),n1=R;break;default:e4($,Z,G)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(G,T0,P0,A1,E1),U6(Y),H4(U),E1=B,v1=W}function JM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,zC,$)}catch(G){X1(Z,Z.return,G)}}}function GM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,TC,$)}catch(G){X1(Z,Z.return,G)}}function f_($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new Sw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new Sw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function nJ($,Z){var G=f_($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),E4)if(c7!==null&&l7!==null)t$(l7,c7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=c_.bind(null,$,Y);Y.then(U,U)}})}function m5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],R=N6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(r8(L.type)){o1=L.stateNode,p5=!1;break $}break;case 5:o1=L.stateNode,p5=!1;break $;case 3:case 4:o1=L.stateNode.containerInfo,p5=!0;break $}L=L.return}if(o1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");QM(U,B,W),o1=null,p5=!1,(W.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(W,T0,P0,"Unmount"),U6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)XM(Z,$),Z=Z.sibling}function XM($,Z){var G=N6(),Y=B4(),U=M4(),B=F4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:m5(Z,$),d5($),R&4&&(Y7(k5|f6,$,$.return),s$(k5|f6,$),sq($,$.return,z6|f6));break;case 1:if(m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&64&&H8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=Z4,m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&4){var _=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(R){case"title":if(_=L.getElementsByTagName("title")[0],!_||_[KZ]||_[F5]||_.namespaceURI===P7||_.hasAttribute("itemprop"))_=L.createElement(R),L.head.insertBefore(_,L.querySelector("head > title"));M5(_,R,W),_[F5]=$,z0(_),R=_;break $;case"link":var k=wF("link","href",L).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(_=k[f],_.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&_.getAttribute("rel")===(W.rel==null?null:W.rel)&&_.getAttribute("title")===(W.title==null?null:W.title)&&_.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}_=L.createElement(R),M5(_,R,W),L.head.appendChild(_);break;case"meta":if(k=wF("meta","content",L).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(_=k[f],B1(W.content,"content"),_.getAttribute("content")===(W.content==null?null:""+W.content)&&_.getAttribute("name")===(W.name==null?null:W.name)&&_.getAttribute("property")===(W.property==null?null:W.property)&&_.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&_.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}_=L.createElement(R),M5(_,R,W),L.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}_[F5]=$,z0(_),R=_}$.stateNode=R}else RF(L,$.type,$.stateNode);else $.stateNode=WF(L,R,$.memoizedProps);else _!==R?(_===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):_.count--,R===null?RF(L,$.type,$.stateNode):WF(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&oq($,$.memoizedProps,W.memoizedProps)}break;case 27:m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),W!==null&&R&4&&oq($,$.memoizedProps,W.memoizedProps);break;case 5:if(m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),$.flags&32){L=$.stateNode;try{G0($,JF,L)}catch(J0){X1($,$.return,J0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,oq($,L,W!==null?W.memoizedProps:L)),R&1024&&(DN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(m5(Z,$),d5($),R&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.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,L=$.stateNode;try{G0($,XC,L,W,R)}catch(J0){X1($,$.return,J0)}}break;case 3:if(L=a4(),K3=null,_=Z4,Z4=QG(Z.containerInfo),m5(Z,$),Z4=_,d5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,RC,Z.containerInfo)}catch(J0){X1($,$.return,J0)}DN&&(DN=!1,qM($)),Z.effectDuration+=LJ(L);break;case 4:R=Z4,Z4=QG($.stateNode.containerInfo),m5(Z,$),d5($),Z4=R;break;case 12:R=a4(),m5(Z,$),d5($),$.stateNode.effectDuration+=y$(R);break;case 31:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 13:m5(Z,$),d5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(oG=Y5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=H8,e=n1;if(H8=g||L,n1=e||S,m5(Z,$),n1=e,H8=g,S&&!L&&!g&&!e&&($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&KJ($,T0,P0),d5($),R&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~TZ:Z._visibility|TZ,!L||W===null||S||H8||n1||(G9($),($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4($,T0,P0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{_=S.stateNode,L?G0(S,UC,_):G0(S,HC,S.stateNode,S.memoizedProps)}catch(J0){X1(S,S.return,J0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?G0(S,KC,k):G0(S,MC,k,S.memoizedProps)}catch(J0){X1(S,S.return,J0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?G0(S,NC,f):G0(S,BC,S.stateNode)}catch(J0){X1(S,S.return,J0)}}}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 $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,nJ($,W))));break;case 19:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 30:break;case 21:break;default:m5(Z,$),d5($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&((v1||0.05<A1)&&U4($,T0,P0,A1,E1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-T0&&(eH($.return.alternate,$.return)||N4($,T0,P0,"Mount"))),U6(G),H4(Y),E1=U,v1=B}function d5($){var Z=$.flags;if(Z&2){try{G0($,b_,$)}catch(G){X1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function qM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;qM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function T4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)$M($,Z.alternate,Z),Z=Z.sibling}function YM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 14:case 15:sq($,$.return,z6),G9($);break;case 1:z4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&nH($,$.return,B),G9($);break;case 27:G0($,JZ,$.stateNode);case 26:case 5:z4($,$.return),G9($);break;case 22:$.memoizedState===null&&G9($);break;case 30:G9($);break;default:G9($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),E1=Y,v1=U}function G9($){for($=$.child;$!==null;)YM($),$=$.sibling}function NM($,Z,G,Y){var U=N6(),B=B4(),W=M4(),R=F4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:L4($,G,Y),lH(G,z6);break;case 1:if(L4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,zN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,R_,Z,$)}catch(_){X1(G,G.return,_)}}Y&&L&64&&sH(G),n$(G,G.return);break;case 27:tH(G);case 26:case 5:L4($,G,Y),Y&&Z===null&&L&4&&aH(G),n$(G,G.return);break;case 12:if(Y&&L&4){L=a4(),L4($,G,Y),Y=G.stateNode,Y.effectDuration+=y$(L);try{G0(G,oH,G,Z,Q2,Y.effectDuration)}catch(_){X1(G,G.return,_)}}else L4($,G,Y);break;case 31:L4($,G,Y),Y&&L&4&&JM($,G);break;case 13:L4($,G,Y),Y&&L&4&&GM($,G);break;case 22:G.memoizedState===null&&L4($,G,Y),n$(G,G.return);break;case 30:break;default:L4($,G,Y)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(G,T0,P0,A1,E1),U6(U),H4(B),E1=W,v1=R}function L4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)NM($,Z.alternate,Z,G),Z=Z.sibling}function tq($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&e2($),G!=null&&f$(G))}function eq($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(e2(Z),$!=null&&f$($))}function o6($,Z,G,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;UM($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function UM($,Z,G,Y,U){var B=N6(),W=B4(),R=M4(),L=F4(),_=t8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,U,Z5,G),o6($,Z,G,Y,U),k&2048&&rH(Z,f5|f6);break;case 1:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&((Z.flags&128)!==0?yX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,U,Z5,G)),o6($,Z,G,Y,U);break;case 3:var f=a4(),S=Z5;Z5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,o6($,Z,G,Y,U),Z5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(e2(Y),G!=null&&f$(G))),$.passiveEffectDuration+=LJ(f);break;case 12:if(k&2048){k=a4(),o6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=y$(k);try{G0(Z,v_,Z,Z.alternate,Q2,$.passiveEffectDuration)}catch(g){X1(Z,Z.return,g)}}else o6($,Z,G,Y,U);break;case 31:k=Z5,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?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0):Z5=!1,o6($,Z,G,Y,U),Z5=k;break;case 13:k=Z5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?Z5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0),o6($,Z,G,Y,U),Z5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&Q8?o6($,Z,G,Y,U):o$($,Z,G,Y,U):S._visibility&Q8?o6($,Z,G,Y,U):(S._visibility|=Q8,N7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&f0)===I0||Z5||($=Z.actualStartTime,0<=$&&0.05<U-$&&KJ(Z,$,U),0<=T0&&0<=P0&&0.05<P0-T0&&KJ(Z,T0,P0))),k&2048&&tq(f,Z);break;case 24:o6($,Z,G,Y,U),k&2048&&eq(Z.alternate,Z);break;default:o6($,Z,G,Y,U)}if((Z.mode&f0)!==I0){if($=!Z5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&N4(Z,G,U,"Mount");0<=T0&&0<=P0&&((v1||0.05<A1)&&U4(Z,T0,P0,A1,E1),$&&0.05<P0-T0&&N4(Z,T0,P0,"Mount"))}U6(B),H4(W),E1=R,v1=L,t8=_}function N7($,Z,G,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 W=Z.sibling;KM($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function KM($,Z,G,Y,U,B){var W=N6(),R=B4(),L=M4(),_=F4(),k=t8;U&&(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,B,Z5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:N7($,Z,G,Y,U,B),rH(Z,f5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&Q8?N7($,Z,G,Y,U,B):o$($,Z,G,Y,B):(S._visibility|=Q8,N7($,Z,G,Y,U,B)),U&&f&2048&&tq(Z.alternate,Z);break;case 24:N7($,Z,G,Y,U,B),U&&f&2048&&eq(Z.alternate,Z);break;default:N7($,Z,G,Y,U,B)}(Z.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(Z,T0,P0,A1,E1),U6(W),H4(R),E1=L,v1=_,t8=k}function o$($,Z,G,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 W=$,R=G,L=Y,_=Z!==null?Z.actualStartTime:U,k=t8;(B.mode&f0)!==I0&&0<B.actualStartTime&&(B.flags&1)!==0&&BJ(B,B.actualStartTime,_,Z5,R);var f=B.flags;switch(B.tag){case 22:o$(W,B,R,L,_),f&2048&&tq(B.alternate,B);break;case 24:o$(W,B,R,L,_),f&2048&&eq(B.alternate,B);break;default:o$(W,B,R,L,_)}t8=k,B=Z}}function U7($,Z,G){if($.subtreeFlags&uZ)for($=$.child;$!==null;)BM($,Z,G),$=$.sibling}function BM($,Z,G){switch($.tag){case 26:U7($,Z,G),$.flags&uZ&&$.memoizedState!==null&&CC(G,Z4,$.memoizedState,$.memoizedProps);break;case 5:U7($,Z,G);break;case 3:case 4:var Y=Z4;Z4=QG($.stateNode.containerInfo),U7($,Z,G),Z4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=uZ,uZ=16777216,U7($,Z,G),uZ=Y):U7($,Z,G));break;default:U7($,Z,G)}}function HM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function a$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(Y,T0,P0,"Unmount"),U6(U)}HM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)MM($),$=$.sibling}function MM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 15:a$($),$.flags&2048&&nq($,$.return,f5|f6);break;case 3:var B=a4();a$($),$.stateNode.passiveEffectDuration+=LJ(B);break;case 12:B=a4(),a$($),$.stateNode.passiveEffectDuration+=y$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&Q8&&($.return===null||$.return.tag!==13)?(B._visibility&=~Q8,oJ($),($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4($,T0,P0,"Disconnect")):a$($);break;default:a$($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),v1=U,E1=Y}function oJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(Y,T0,P0,"Unmount"),U6(U)}HM($)}for($=$.child;$!==null;)FM($),$=$.sibling}function FM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 15:nq($,$.return,f5),oJ($);break;case 22:var B=$.stateNode;B._visibility&Q8&&(B._visibility&=~Q8,oJ($));break;default:oJ($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),v1=U,E1=Y}function WM($,Z){for(;U5!==null;){var G=U5,Y=G,U=Z,B=N6(),W=B4(),R=M4(),L=F4();switch(Y.tag){case 0:case 11:case 15:nq(Y,U,f5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&e2(U));break;case 24:f$(Y.memoizedState.cache)}if((Y.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(Y,T0,P0,A1,E1),U6(B),H4(W),v1=L,E1=R,Y=G.child,Y!==null)Y.return=G,U5=Y;else $:for(G=$;U5!==null;){if(Y=U5,B=Y.sibling,W=Y.return,ZM(Y),Y===G){U5=null;break $}if(B!==null){B.return=W,U5=B;break $}U5=W}}}function y_(){JV.forEach(function($){return $()})}function wM(){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 B6($){if((i0&Q5)!==K5&&g0!==0)return g0&-g0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),YY()):y()}function RM(){if(l5===0)if((g0&536870912)===0||s0){var $=FG;FG<<=1,(FG&3932160)===0&&(FG=262144),l5=$}else l5=536870912;return $=R6.current,$!==null&&($.flags|=32),l5}function D1($,Z,G){if(n7&&console.error("useInsertionEffect must not schedule updates."),dN&&(eG=!0),$===W1&&(U1===T9||U1===L9)||$.cancelPendingCommit!==null)B7($,0),c8($,g0,l5,!1);if(v8($,G),(i0&Q5)!==K5&&$===W1){if(V4)switch(Z.tag){case 0:case 11:case 15:$=h0&&d(h0)||"Unknown",cw.has($)||(cw.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:pw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),pw=!0)}}else E4&&I$($,Z,G),r_(Z),$===W1&&((i0&Q5)===K5&&(B2|=G),S1===N2&&c8($,g0,l5,!1)),P4($)}function zM($,Z,G){if((i0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(g0!==0&&h0!==null){var Y=h0,U=Y5();switch(yW){case dZ:case T9:var B=VZ;L1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,E6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,E6,void 0,"primary-light"));break;case L9:B=VZ,L1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,E6,void 0,"primary-light")):console.timeStamp("Action",B,U,E6,void 0,"primary-light"));break;default:L1&&(Y=U-VZ,3>Y||console.timeStamp("Blocked",VZ,U,E6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||x2($,Z))?h_($,Z):ZY($,Z,!0);var W=G;do{if(B===M8){r7&&!G&&c8($,Z,0,!1),Z=U1,VZ=l1(),yW=Z;break}else{if(Y=Y5(),U=$.current.alternate,W&&!g_(U)){q6(Z),U=N5,B=Y,!L1||B<=U||(h1?h1.run(console.timeStamp.bind(console,"Teared Render",U,B,l0,p0,"error")):console.timeStamp("Teared Render",U,B,l0,p0,"error")),X9(Z,Y),B=ZY($,Z,!1),W=!1;continue}if(B===z9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){q6(Z),gX(N5,Y,Z,h1),X9(Z,Y),Z=R;$:{Y=$,B=W,W=cZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(B7(Y,R).flags|=256),R=ZY(Y,R,!1),R!==z9){if(kN&&!L){Y.errorRecoveryDisabledLanes|=B,B2|=B,B=N2;break $}Y=y5,y5=W,Y!==null&&(y5===null?y5=Y:y5.push.apply(y5,Y))}B=R}if(W=!1,B!==z9)continue;else Y=Y5()}}if(B===mZ){q6(Z),gX(N5,Y,Z,h1),X9(Z,Y),B7($,0),c8($,Z,0,!0);break}$:{switch(G=$,B){case M8:case mZ:throw Error("Root did not complete. This is a bug in React.");case N2:if((Z&4194048)!==Z)break;case lG:q6(Z),zB(N5,Y,Z,h1),X9(Z,Y),U=Z,(U&127)!==0?jG=Y:(U&4194048)!==0&&(DG=Y),c8(G,Z,l5,!U2);break $;case z9:y5=null;break;case cG:case jw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)QY(G,U,Z,y5,lZ,nG,l5,B2,P9,B,null,null,N5,Y);else{if((Z&62914560)===Z&&(W=oG+bw-Y5(),10<W)){if(c8(G,Z,l5,!U2),u2(G,0,!0)!==0)break $;Q4=Z,G.timeoutHandle=tw(TM.bind(null,G,U,y5,lZ,nG,Z,l5,B2,P9,U2,B,"Throttled",N5,Y),W);break $}TM(G,U,y5,lZ,nG,Z,l5,B2,P9,U2,B,null,N5,Y)}}}break}while(1);P4($)}function TM($,Z,G,Y,U,B,W,R,L,_,k,f,S,g){$.timeoutHandle=O9;var e=Z.subtreeFlags,J0=null;if(e&8192||(e&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:r4},BM(Z,B,J0),e=(B&62914560)===B?oG-Y5():(B&4194048)===B?vw-Y5():0,e=IC(J0,e),e!==null){Q4=B,$.cancelPendingCommit=e(QY.bind(null,$,Z,B,G,Y,U,W,R,L,k,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,S,g)),c8($,B,W,!_);return}}QY($,Z,B,G,Y,U,W,R,L,k,J0,f,S,g)}function g_($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!v5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;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 c8($,Z,G,Y){Z&=~fN,Z&=~B2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-S5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&m2($,G,Z)}function K7(){return(i0&(Q5|T6))===K5?(e$(0,!1),!1):!0}function $Y(){if(h0!==null){if(U1===c5)var $=h0.return;else $=h0,RJ(),Bq($),g7=null,kZ=0,$=h0;for(;$!==null;)cH($.alternate,$),$=$.return;h0=null}}function X9($,Z){($&127)!==0&&(J2=Z),($&4194048)!==0&&(v4=Z),($&62914560)!==0&&(kW=Z),($&2080374784)!==0&&(fW=Z)}function B7($,Z){L1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",p0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",p0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",p0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",p0,"primary-light"));var G=N5;if(N5=l1(),g0!==0&&0<G){if(q6(g0),S1===cG||S1===N2)zB(G,N5,Z,h1);else{var Y=N5,U=h1;if(L1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,l0,p0,B)):console.timeStamp(W,G,Y,l0,p0,B)}}X9(g0,N5)}if(G=h1,h1=null,(Z&127)!==0){h1=_Z,U=0<=D4&&D4<J2?J2:D4,Y=0<=K9&&K9<J2?J2:K9,B=0<=Y?Y:0<=U?U:N5,0<=jG?(q6(2),TB(jG,B,Z,G)):(vG&127)!==0&&(q6(2),b$(J2,B,N8)),G=U;var R=Y,L=CZ,_=0<k7,k=G2===PZ,f=G2===SG;if(U=N5,Y=_Z,B=MN,W=FN,L1){if(l0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,L!==null&&G>R){var S=_?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+L,R,G,l0,p0,S)):console.timeStamp(_?"Consecutive":"Event: "+L,R,G,l0,p0,S)}U>G&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:l0,trackGroup:p0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}D4=-1.1,G2=0,FN=MN=null,jG=-1.1,k7=K9,K9=-1.1,J2=l1()}if((Z&4194048)!==0&&(h1=IZ,U=0<=Y8&&Y8<v4?v4:Y8,G=0<=b6&&b6<v4?v4:b6,Y=0<=X2&&X2<v4?v4:X2,B=0<=Y?Y:0<=G?G:N5,0<=DG?(q6(256),TB(DG,B,Z,h1)):(vG&4194048)!==0&&(q6(256),b$(v4,B,N8)),f=Y,R=B9,L=0<q2,_=WN===SG,B=N5,Y=IZ,W=vW,k=bW,L1&&(l0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&R!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,f,U,l0,p0,S)):console.timeStamp(L?"Consecutive":"Event: "+R,f,U,l0,p0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,l0,p0,"primary-dark")):console.timeStamp("Action",U,G,l0,p0,"primary-dark")),B>G&&(U=_?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:l0,trackGroup:p0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),b6=Y8=-1.1,WN=0,DG=-1.1,q2=X2,X2=-1.1,v4=l1()),(Z&62914560)!==0&&(vG&62914560)!==0&&(q6(4194304),b$(kW,N5,N8)),(Z&2080374784)!==0&&(vG&2080374784)!==0&&(q6(268435456),b$(fW,N5,N8)),G=$.timeoutHandle,G!==O9&&($.timeoutHandle=O9,wV(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),Q4=0,$Y(),W1=$,h0=G=s4($.current,null),g0=Z,U1=c5,L6=null,U2=!1,r7=x2($,Z),kN=!1,S1=M8,P9=l5=fN=B2=K2=0,y5=cZ=null,nG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-S5(Y),B=1<<U,Z|=$[U],Y&=~B;return k4=Z,HJ(),$=OW(),1000<$-VW&&(x.recentlyCreatedOwnerStacks=0,VW=$),e6.discardPendingWarnings(),G}function LM($,Z){V0=null,x.H=hZ,x.getCurrentStack=null,V4=!1,F6=null,Z===y7||Z===yG?(Z=mB(),U1=dZ):Z===TN?(Z=mB(),U1=Dw):U1=Z===SN?bN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?pZ:rG,L6=Z;var G=h0;G===null?(S1=mZ,dJ($,Y6(Z,$.current))):G.mode&f0&&tX(G)}function PM(){var $=R6.current;return $===null?!0:(g0&4194048)===g0?k6===null?!0:!1:(g0&62914560)===g0||(g0&536870912)!==0?$===k6:!1}function _M(){var $=x.H;return x.H=hZ,$===null?hZ:$}function CM(){var $=x.A;return x.A=QV,$}function aJ($){h1===null&&(h1=$._debugTask==null?null:$._debugTask)}function iJ(){S1=N2,U2||(g0&4194048)!==g0&&R6.current!==null||(r7=!0),(K2&134217727)===0&&(B2&134217727)===0||W1===null||c8(W1,g0,l5,!1)}function ZY($,Z,G){var Y=i0;i0|=Q5;var U=_M(),B=CM();if(W1!==$||g0!==Z){if(E4){var W=$.memoizedUpdaters;0<W.size&&(t$($,g0),W.clear()),b8($,Z)}lZ=null,B7($,Z)}Z=!1,W=S1;$:do try{if(U1!==c5&&h0!==null){var R=h0,L=L6;switch(U1){case bN:$Y(),W=lG;break $;case dZ:case T9:case L9:case pZ:R6.current===null&&(Z=!0);var _=U1;if(U1=c5,L6=null,H7($,R,L,_),G&&r7){W=M8;break $}break;default:_=U1,U1=c5,L6=null,H7($,R,L,_)}}IM(),W=S1;break}catch(k){LM($,k)}while(1);return Z&&$.shellSuspendCounter++,RJ(),i0=Y,x.H=U,x.A=B,h0===null&&(W1=null,g0=0,HJ()),W}function IM(){for(;h0!==null;)VM(h0)}function h_($,Z){var G=i0;i0|=Q5;var Y=_M(),U=CM();if(W1!==$||g0!==Z){if(E4){var B=$.memoizedUpdaters;0<B.size&&(t$($,g0),B.clear()),b8($,Z)}lZ=null,aG=Y5()+kw,B7($,Z)}else r7=x2($,Z);$:do try{if(U1!==c5&&h0!==null)Z:switch(Z=h0,B=L6,U1){case rG:U1=c5,L6=null,H7($,Z,B,rG);break;case T9:case L9:if(uB(B)){U1=c5,L6=null,OM(Z);break}Z=function(){U1!==T9&&U1!==L9||W1!==$||(U1=sG),P4($)},B.then(Z,Z);break $;case dZ:U1=sG;break $;case Dw:U1=vN;break $;case sG:uB(B)?(U1=c5,L6=null,OM(Z)):(U1=c5,L6=null,H7($,Z,B,sG));break;case vN:var W=null;switch(h0.tag){case 26:W=h0.memoizedState;case 5:case 27:var R=h0;if(W?zF(W):R.stateNode.complete){U1=c5,L6=null;var L=R.sibling;if(L!==null)h0=L;else{var _=R.return;_!==null?(h0=_,tJ(_)):h0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}U1=c5,L6=null,H7($,Z,B,vN);break;case pZ:U1=c5,L6=null,H7($,Z,B,pZ);break;case bN:$Y(),S1=lG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?IM():u_();break}catch(k){LM($,k)}while(1);if(RJ(),x.H=Y,x.A=U,i0=G,h0!==null)return M8;return W1=null,g0=0,HJ(),S1}function u_(){for(;h0!==null&&!gC();)VM(h0)}function VM($){var Z=$.alternate;($.mode&f0)!==I0?(iX($),Z=G0($,lq,Z,$,k4),tX($)):Z=G0($,lq,Z,$,k4),$.memoizedProps=$.pendingProps,Z===null?tJ($):h0=Z}function OM($){var Z=G0($,x_,$);$.memoizedProps=$.pendingProps,Z===null?tJ($):h0=Z}function x_($){var Z=$.alternate,G=($.mode&f0)!==I0;switch(G&&iX($),$.tag){case 15:case 0:Z=gH(Z,$,$.pendingProps,$.type,void 0,g0);break;case 11:Z=gH(Z,$,$.pendingProps,$.type.render,$.ref,g0);break;case 5:Bq($);default:cH(Z,$),$=h0=VB($,k4),Z=lq(Z,$,k4)}return G&&tX($),Z}function H7($,Z,G,Y){RJ(),Bq(Z),g7=null,kZ=0;var U=Z.return;try{if(I_($,U,Z,G,g0)){S1=mZ,dJ($,Y6(G,$.current)),h0=null;return}}catch(B){if(U!==null)throw h0=U,B;S1=mZ,dJ($,Y6(G,$.current)),h0=null;return}if(Z.flags&32768){if(s0||Y===rG)$=!0;else if(r7||(g0&536870912)!==0)$=!1;else if(U2=$=!0,Y===T9||Y===L9||Y===dZ||Y===pZ)Y=R6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);EM(Z,$)}else tJ(Z)}function tJ($){var Z=$;do{if((Z.flags&32768)!==0){EM(Z,U2);return}var G=Z.alternate;if($=Z.return,iX(Z),G=G0(Z,E_,G,Z,k4),(Z.mode&f0)!==I0&&kB(Z),G!==null){h0=G;return}if(Z=Z.sibling,Z!==null){h0=Z;return}h0=Z=$}while(Z!==null);S1===M8&&(S1=jw)}function EM($,Z){do{var G=A_($.alternate,$);if(G!==null){G.flags&=32767,h0=G;return}if(($.mode&f0)!==I0){kB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){h0=$;return}h0=$=G}while($!==null);S1=lG,h0=null}function QY($,Z,G,Y,U,B,W,R,L,_,k,f,S,g){$.cancelPendingCommit=null;do i$();while(a1!==M2);if(e6.flushLegacyContextWarning(),e6.flushPendingUnsafeLifecycleWarnings(),(i0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(q6(G),_===z9?gX(S,g,G,h1):Y!==null?B_(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,h1):K_(S,g,G,h1),Z!==null){if(G===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|=NN,ZJ($,G,B,W,R,L),$===W1&&(h0=W1=null,g0=0),s7=Z,F2=$,Q4=G,hN=B,xN=U,xw=Y,uN=g,mw=f,J4=iG,dw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,l_(z7,function(){return iZ=window.event,J4===iG&&(J4=gN),vM(),null})):($.callbackNode=null,$.callbackPriority=0),q8=null,Q2=l1(),f!==null&&H_(g,Q2,f,h1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=q1.p,q1.p=W6,W=i0,i0|=T6;try{k_($,Z,G)}finally{i0=W,q1.p=U,x.T=Y}}a1=yw,AM(),SM(),jM()}}function AM(){if(a1===yw){a1=M2;var $=F2,Z=s7,G=Q4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=i0;i0|=T6;try{c7=G,l7=$,PJ(),XM(Z,$),l7=c7=null,G=iN;var W=WB($.containerInfo),R=G.focusedElem,L=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&FB(R.ownerDocument.documentElement,R)){if(L!==null&&kX(R)){var{start:_,end:k}=L;if(k===void 0&&(k=_),"selectionStart"in R)R.selectionStart=_,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),e=R.textContent.length,J0=Math.min(L.start,e),z1=L.end===void 0?J0:Math.min(L.end,e);!g.extend&&J0>z1&&(W=z1,z1=J0,J0=W);var o0=MB(R,J0),E=MB(R,z1);if(o0&&E&&(g.rangeCount!==1||g.anchorNode!==o0.node||g.anchorOffset!==o0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var j=f.createRange();j.setStart(o0.node,o0.offset),g.removeAllRanges(),J0>z1?(g.addRange(j),g.extend(E.node,E.offset)):(j.setEnd(E.node,E.offset),g.addRange(j))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}M3=!!aN,iN=aN=null}finally{i0=B,q1.p=U,x.T=Y}}$.current=Z,a1=gw}}function SM(){if(a1===gw){a1=M2;var $=dw;if($!==null){Q2=l1();var Z=X8,G=Q2;!L1||G<=Z||(N8?N8.run(console.timeStamp.bind(console,$,Z,G,l0,p0,"secondary-light")):console.timeStamp($,Z,G,l0,p0,"secondary-light"))}$=F2,Z=s7,G=Q4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=i0;i0|=T6;try{c7=G,l7=$,PJ(),$M($,Z.alternate,Z),l7=c7=null}finally{i0=B,q1.p=U,x.T=Y}}$=uN,Z=mw,X8=l1(),$=Z===null?$:Q2,Z=X8,G=J4===yN,Y=h1,q8!==null?LB($,Z,q8,!1,Y):!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")),a1=hw}}function jM(){if(a1===uw||a1===hw){if(a1===uw){var $=X8;X8=l1();var Z=X8,G=J4===yN;!L1||Z<=$||(N8?N8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?" error":"secondary-light")),J4!==yN&&(J4=fw)}a1=M2,hC(),$=F2;var Y=s7;Z=Q4,G=xw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?a1=tG:(a1=M2,s7=F2=null,DM($,$.pendingLanes),_9=0,sZ=null);var B=$.pendingLanes;if(B===0&&(H2=null),U||yM($),B=C(Z),Y=Y.stateNode,C5&&typeof C5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case W6:var R=xY;break;case i6:R=mY;break;case A4:R=z7;break;case wG:R=dY;break;default:R=z7}C5.onCommitFiberRoot(T7,Y,R,W)}catch(f){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",f))}if(E4&&$.memoizedUpdaters.clear(),y_(),G!==null){W=x.T,R=q1.p,q1.p=W6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var _=G[Y],k=m_(_.stack);G0(_.source,L,_.value,k)}}finally{x.T=W,q1.p=R}}(Q4&3)!==0&&i$(),P4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(kG=!0,$===mN?rZ++:(rZ=0,mN=$)):rZ=0,U||X9(Z,X8),e$(0,!1)}}function m_($){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 DM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,f$(Z)))}function i$(){return AM(),SM(),jM(),vM()}function vM(){if(a1!==tG)return!1;var $=F2,Z=hN;hN=0;var G=C(Q4),Y=A4===0||A4>G?A4:G;G=x.T;var U=q1.p;try{q1.p=Y,x.T=null;var B=xN;xN=null,Y=F2;var W=Q4;if(a1=M2,s7=F2=null,Q4=0,(i0&(Q5|T6))!==K5)throw Error("Cannot flush passive effects while already rendering.");q6(W),dN=!0,eG=!1;var R=0;if(q8=null,R=Y5(),J4===fw)b$(X8,R,N8);else{var L=X8,_=R,k=J4===gN;!L1||_<=L||(h1?h1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,_,l0,p0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,_,l0,p0,"secondary-light"))}L=i0,i0|=T6;var f=Y.current;PJ(),MM(f);var S=Y.current;f=uN,PJ(),UM(Y,S,W,B,f),yM(Y),i0=L;var g=Y5();if(S=R,f=h1,q8!==null?LB(S,g,q8,!0,f):!L1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,l0,p0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,l0,p0,"secondary-dark")),X9(W,g),e$(0,!1),eG?Y===sZ?_9++:(_9=0,sZ=Y):_9=0,eG=dN=!1,C5&&typeof C5.onPostCommitFiberRoot==="function")try{C5.onPostCommitFiberRoot(T7,Y)}catch(J0){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",J0))}var e=Y.current.stateNode;return e.effectDuration=0,e.passiveEffectDuration=0,!0}finally{q1.p=U,x.T=G,DM($,Z)}}function bM($,Z,G){Z=Y6(G,Z),fB(Z),Z=kq($.stateNode,Z,2),$=x8($,Z,2),$!==null&&(v8($,2),P4($))}function X1($,Z,G){if(n7=!1,$.tag===3)bM($,$,G);else{for(;Z!==null;){if(Z.tag===3){bM(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(H2===null||!H2.has(Y))){$=Y6(G,$),fB($),G=fq(2),Y=x8(Z,G,2),Y!==null&&(yq(G,Y,Z,$),v8(Y,2),P4(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: "+Y,X0(Z,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,W)}G=G.next}while(G!==U)}}catch(R){q1(Z,Z.return,R)}}function K7($,Z,G){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 W=Y.inst,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&m5)!==pG&&(i7=!0),U=Z,X0(U,XO,U,G,R),($&m5)!==pG&&(i7=!1))}Y=Y.next}while(Y!==B)}}catch(L){q1(Z,Z.return,L)}}function aH($,Z){C4($)?(P4(),a$(Z,$),_4()):a$(Z,$)}function tq($,Z,G){C4($)?(P4(),K7(G,$,Z),_4()):K7(G,$,Z)}function iH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||r7||(G.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"),G.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{X0($,eB,Z,G)}catch(Y){q1($,$.return,Y)}}}function yP($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function gP($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||r7||(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=X9($.type,G),B=X0($,yP,Z,U,Y);G=vw,B!==void 0||G.has($.type)||(G.add($.type),X0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){q1($,$.return,W)}}function tH($,Z,G){G.props=X9($.type,$.memoizedProps),G.state=$.memoizedState,C4($)?(P4(),X0($,iW,$,Z,G),_4()):X0($,iW,$,Z,G)}function hP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(C4($))try{P4(),$.refCleanup=Z(G)}finally{_4()}else $.refCleanup=Z(G);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=G}}function i$($,Z){try{X0($,hP,$)}catch(G){q1($,Z,G)}}function I4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(C4($))try{P4(),X0($,Y)}finally{_4($)}else X0($,Y)}catch(U){q1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(C4($))try{P4(),X0($,G,null)}finally{_4($)}else X0($,G,null)}catch(U){q1($,Z,U)}else G.current=null}function eH($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",gG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function uP($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",gG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function $M($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{X0($,UC,Y,Z,G,$)}catch(U){q1($,$.return,U)}}function eq($,Z,G){try{X0($,BC,$.stateNode,$.type,G,Z,$)}catch(Y){q1($,$.return,Y)}}function ZM($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&o2($.type)||$.tag===4}function $Y($){$:for(;;){for(;$.sibling===null;){if($.return===null||ZM($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&o2($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function ZY($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(NF(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(NF(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&o2($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(ZY($,Z,G),$=$.sibling;$!==null;)ZY($,Z,G),$=$.sibling}function iJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&o2($.type)&&(G=$.stateNode),$=$.child,$!==null))for(iJ($,Z,G),$=$.sibling;$!==null;)iJ($,Z,G),$=$.sibling}function xP($){for(var Z,G=$.return;G!==null;){if(ZM(G)){Z=G;break}G=G.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,G=$Y($),iJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(YF(G),Z.flags&=-33),Z=$Y($),iJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=$Y($),ZY($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function QM($){var{stateNode:Z,memoizedProps:G}=$;try{X0($,AC,$.type,G,Z,$)}catch(Y){q1($,$.return,Y)}}function JM($,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 mP($,Z){if($=$.containerInfo,$U=R3,$=TB($),hX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var W=0,R=-1,L=-1,P=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(R=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++P===U&&(R=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=R===-1||L===-1?null:{start:R,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;ZU={focusedElem:$,selectionRange:G},R3=!1;for(M5=Z;M5!==null;)if(Z=M5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,M5=$;else for(;M5!==null;){switch($=Z=M5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&gP($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)_Y($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":_Y($);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,M5=$;break}M5=Z.return}}function GM($,Z,G){var Y=H6(),U=R4(),B=T4(),W=L4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:O4($,G),R&4&&oH(G,P6|h6);break;case 1:if(O4($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||r7||($.props!==G.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(G)||"instance"),$.state!==G.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(G)||"instance")),C4(G)?(P4(),X0(G,PN,G,$),_4()):X0(G,PN,G,$);else{var L=X9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||r7||($.props!==G.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(G)||"instance"),$.state!==G.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(G)||"instance")),C4(G)?(P4(),X0(G,nW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),_4()):X0(G,nW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&iH(G),R&512&&i$(G,G.return);break;case 3:if(Z=e4(),O4($,G),R&64&&(R=G.updateQueue,R!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{X0(G,eB,R,L)}catch(k){q1(G,G.return,k)}}$.effectDuration+=IJ(Z);break;case 27:Z===null&&R&4&&QM(G);case 26:case 5:if(O4($,G),Z===null){if(R&4)$M(G);else if(R&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{X0(G,KC,L,$,Z,G)}catch(k){q1(G,G.return,k)}}}R&512&&i$(G,G.return);break;case 12:if(R&4){R=e4(),O4($,G),$=G.stateNode,$.effectDuration+=u$(R);try{X0(G,eH,G,Z,X8,$.effectDuration)}catch(k){q1(G,G.return,k)}}else O4($,G);break;case 31:O4($,G),R&4&&YM($,G);break;case 13:O4($,G),R&4&&NM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=aP.bind(null,G),CC($,R))));break;case 22:if(R=G.memoizedState!==null||W2,!R){Z=Z!==null&&Z.memoizedState!==null||i1,L=W2;var P=i1;W2=R,(i1=Z)&&!P?(V4($,G,(G.subtreeFlags&8772)!==0),(G.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&FJ(G,L0,P0)):O4($,G),W2=L,i1=P}break;case 30:break;default:O4($,G)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&((y1||0.05<v1)&&W4(G,L0,P0,v1,j1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<P0-L0&&(JM(G.return.alternate,G.return)||F4(G,L0,P0,"Mount"))),M6(Y),z4(U),j1=B,y1=W}function XM($){var Z=$.alternate;Z!==null&&($.alternate=null,XM(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 Q2($,Z,G){for(G=G.child;G!==null;)qM($,Z,G),G=G.sibling}function qM($,Z,G){if(E5&&typeof E5.onCommitFiberUnmount==="function")try{E5.onCommitFiberUnmount(P7,G)}catch(P){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",P))}var Y=H6(),U=R4(),B=T4(),W=L4();switch(G.tag){case 26:i1||I4(G,Z),Q2($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:i1||I4(G,Z);var R=t1,L=n5;o2(G.type)&&(t1=G.stateNode,n5=!1),Q2($,Z,G),X0(G,qZ,G.stateNode),t1=R,n5=L;break;case 5:i1||I4(G,Z);case 6:if(R=t1,L=n5,t1=null,Q2($,Z,G),t1=R,n5=L,t1!==null)if(n5)try{X0(G,FC,t1,G.stateNode)}catch(P){q1(G,Z,P)}else try{X0(G,MC,t1,G.stateNode)}catch(P){q1(G,Z,P)}break;case 18:t1!==null&&(n5?($=t1,UF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),z7($)):UF(t1,G.stateNode));break;case 4:R=t1,L=n5,t1=G.stateNode.containerInfo,n5=!0,Q2($,Z,G),t1=R,n5=L;break;case 0:case 11:case 14:case 15:K7(m5,G,Z),i1||iq(G,Z,P6),Q2($,Z,G);break;case 1:i1||(I4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&tH(G,Z,R)),Q2($,Z,G);break;case 21:Q2($,Z,G);break;case 22:i1=(R=i1)||G.memoizedState!==null,Q2($,Z,G),i1=R;break;default:Q2($,Z,G)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(G,L0,P0,v1,j1),M6(Y),z4(U),j1=B,y1=W}function YM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{X0(Z,OC,$)}catch(G){q1(Z,Z.return,G)}}}function NM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{X0(Z,VC,$)}catch(G){q1(Z,Z.return,G)}}function dP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new bw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new bw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function tJ($,Z){var G=dP($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),b4)if(s7!==null&&n7!==null)ZZ(n7,s7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=iP.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],R=H6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(o2(L.type)){t1=L.stateNode,n5=!1;break $}break;case 5:t1=L.stateNode,n5=!1;break $;case 3:case 4:t1=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(t1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");qM(U,B,W),t1=null,n5=!1,(W.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(W,L0,P0,"Unmount"),M6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)UM(Z,$),Z=Z.sibling}function UM($,Z){var G=H6(),Y=R4(),U=T4(),B=L4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),R&4&&(K7(m5|h6,$,$.return),a$(m5|h6,$),iq($,$.return,P6|h6));break;case 1:if(r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),R&64&&W2&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=X4,r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),R&4){var P=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(R){case"title":if(P=L.getElementsByTagName("title")[0],!P||P[MZ]||P[z5]||P.namespaceURI===I7||P.hasAttribute("itemprop"))P=L.createElement(R),L.head.insertBefore(P,L.querySelector("head > title"));R5(P,R,W),P[z5]=$,T0(P),R=P;break $;case"link":var k=LF("link","href",L).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(P=k[f],P.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&P.getAttribute("rel")===(W.rel==null?null:W.rel)&&P.getAttribute("title")===(W.title==null?null:W.title)&&P.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}P=L.createElement(R),R5(P,R,W),L.head.appendChild(P);break;case"meta":if(k=LF("meta","content",L).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(P=k[f],H1(W.content,"content"),P.getAttribute("content")===(W.content==null?null:""+W.content)&&P.getAttribute("name")===(W.name==null?null:W.name)&&P.getAttribute("property")===(W.property==null?null:W.property)&&P.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&P.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}P=L.createElement(R),R5(P,R,W),L.head.appendChild(P);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}P[z5]=$,T0(P),R=P}$.stateNode=R}else _F(L,$.type,$.stateNode);else $.stateNode=TF(L,R,$.memoizedProps);else P!==R?(P===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):P.count--,R===null?_F(L,$.type,$.stateNode):TF(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&eq($,$.memoizedProps,W.memoizedProps)}break;case 27:r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),W!==null&&R&4&&eq($,$.memoizedProps,W.memoizedProps);break;case 5:if(r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),$.flags&32){L=$.stateNode;try{X0($,YF,L)}catch(G0){q1($,$.return,G0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,eq($,L,W!==null?W.memoizedProps:L)),R&1024&&(fN=!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($),R&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.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,L=$.stateNode;try{X0($,HC,L,W,R)}catch(G0){q1($,$.return,G0)}}break;case 3:if(L=e4(),F3=null,P=X4,X4=qG(Z.containerInfo),r5(Z,$),X4=P,s5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{X0($,IC,Z.containerInfo)}catch(G0){q1($,$.return,G0)}fN&&(fN=!1,KM($)),Z.effectDuration+=IJ(L);break;case 4:R=X4,X4=qG($.stateNode.containerInfo),r5(Z,$),s5($),X4=R;break;case 12:R=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=u$(R);break;case 31:r5(Z,$),s5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(eG=B5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=W2,$0=i1;if(W2=g||L,i1=$0||S,r5(Z,$),i1=$0,W2=g,S&&!L&&!g&&!$0&&($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&FJ($,L0,P0),s5($),R&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~PZ:Z._visibility|PZ,!L||W===null||S||W2||i1||(q9($),($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4($,L0,P0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{P=S.stateNode,L?X0(S,wC,P):X0(S,TC,S.stateNode,S.memoizedProps)}catch(G0){q1(S,S.return,G0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?X0(S,RC,k):X0(S,LC,k,S.memoizedProps)}catch(G0){q1(S,S.return,G0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?X0(S,WC,f):X0(S,zC,S.stateNode)}catch(G0){q1(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 $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,tJ($,W))));break;case 19:r5(Z,$),s5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&((y1||0.05<v1)&&W4($,L0,P0,v1,j1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-L0&&(JM($.return.alternate,$.return)||F4($,L0,P0,"Mount"))),M6(G),z4(Y),j1=U,y1=B}function s5($){var Z=$.flags;if(Z&2){try{X0($,xP,$)}catch(G){q1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function KM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;KM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)GM($,Z.alternate,Z),Z=Z.sibling}function BM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 14:case 15:iq($,$.return,P6),q9($);break;case 1:I4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&tH($,$.return,B),q9($);break;case 27:X0($,qZ,$.stateNode);case 26:case 5:I4($,$.return),q9($);break;case 22:$.memoizedState===null&&q9($);break;case 30:q9($);break;default:q9($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),j1=Y,y1=U}function q9($){for($=$.child;$!==null;)BM($),$=$.sibling}function HM($,Z,G,Y){var U=H6(),B=R4(),W=T4(),R=L4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:V4($,G,Y),oH(G,P6);break;case 1:if(V4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&X0(G,PN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{X0(G,IP,Z,$)}catch(P){q1(G,G.return,P)}}Y&&L&64&&iH(G),i$(G,G.return);break;case 27:QM(G);case 26:case 5:V4($,G,Y),Y&&Z===null&&L&4&&$M(G),i$(G,G.return);break;case 12:if(Y&&L&4){L=e4(),V4($,G,Y),Y=G.stateNode,Y.effectDuration+=u$(L);try{X0(G,eH,G,Z,X8,Y.effectDuration)}catch(P){q1(G,G.return,P)}}else V4($,G,Y);break;case 31:V4($,G,Y),Y&&L&4&&YM($,G);break;case 13:V4($,G,Y),Y&&L&4&&NM($,G);break;case 22:G.memoizedState===null&&V4($,G,Y),i$(G,G.return);break;case 30:break;default:V4($,G,Y)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(G,L0,P0,v1,j1),M6(U),z4(B),j1=W,y1=R}function V4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)HM($,Z.alternate,Z,G),Z=Z.sibling}function QY($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&Z9($),G!=null&&h$(G))}function JY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Z9(Z),$!=null&&h$($))}function e6($,Z,G,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;MM($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function MM($,Z,G,Y,U){var B=H6(),W=R4(),R=T4(),L=L4(),P=Z8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&y0)!==O0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,U,J5,G),e6($,Z,G,Y,U),k&2048&&aH(Z,d5|h6);break;case 1:(Z.mode&y0)!==O0&&0<Z.actualStartTime&&((Z.flags&128)!==0?xX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,U,J5,G)),e6($,Z,G,Y,U);break;case 3:var f=e4(),S=J5;J5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,e6($,Z,G,Y,U),J5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Z9(Y),G!=null&&h$(G))),$.passiveEffectDuration+=IJ(f);break;case 12:if(k&2048){k=e4(),e6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=u$(k);try{X0(Z,uP,Z,Z.alternate,X8,$.passiveEffectDuration)}catch(g){q1(Z,Z.return,g)}}else e6($,Z,G,Y,U);break;case 31:k=J5,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?(J5=!1,f=f.hydrationErrors,f!==null&&xX(Z,Z.actualStartTime,U,f)):J5=!0):J5=!1,e6($,Z,G,Y,U),J5=k;break;case 13:k=J5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?J5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(J5=!1,f=f.hydrationErrors,f!==null&&xX(Z,Z.actualStartTime,U,f)):J5=!0),e6($,Z,G,Y,U),J5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&X2?e6($,Z,G,Y,U):t$($,Z,G,Y,U):S._visibility&X2?e6($,Z,G,Y,U):(S._visibility|=X2,B7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&y0)===O0||J5||($=Z.actualStartTime,0<=$&&0.05<U-$&&FJ(Z,$,U),0<=L0&&0<=P0&&0.05<P0-L0&&FJ(Z,L0,P0))),k&2048&&QY(f,Z);break;case 24:e6($,Z,G,Y,U),k&2048&&JY(Z.alternate,Z);break;default:e6($,Z,G,Y,U)}if((Z.mode&y0)!==O0){if($=!J5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&F4(Z,G,U,"Mount");0<=L0&&0<=P0&&((y1||0.05<v1)&&W4(Z,L0,P0,v1,j1),$&&0.05<P0-L0&&F4(Z,L0,P0,"Mount"))}M6(B),z4(W),j1=R,y1=L,Z8=P}function B7($,Z,G,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 W=Z.sibling;FM($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function FM($,Z,G,Y,U,B){var W=H6(),R=R4(),L=T4(),P=L4(),k=Z8;U&&(Z.mode&y0)!==O0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,B,J5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:B7($,Z,G,Y,U,B),aH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&X2?B7($,Z,G,Y,U,B):t$($,Z,G,Y,B):(S._visibility|=X2,B7($,Z,G,Y,U,B)),U&&f&2048&&QY(Z.alternate,Z);break;case 24:B7($,Z,G,Y,U,B),U&&f&2048&&JY(Z.alternate,Z);break;default:B7($,Z,G,Y,U,B)}(Z.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(Z,L0,P0,v1,j1),M6(W),z4(R),j1=L,y1=P,Z8=k}function t$($,Z,G,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 W=$,R=G,L=Y,P=Z!==null?Z.actualStartTime:U,k=Z8;(B.mode&y0)!==O0&&0<B.actualStartTime&&(B.flags&1)!==0&&WJ(B,B.actualStartTime,P,J5,R);var f=B.flags;switch(B.tag){case 22:t$(W,B,R,L,P),f&2048&&QY(B.alternate,B);break;case 24:t$(W,B,R,L,P),f&2048&&JY(B.alternate,B);break;default:t$(W,B,R,L,P)}Z8=k,B=Z}}function H7($,Z,G){if($.subtreeFlags&dZ)for($=$.child;$!==null;)WM($,Z,G),$=$.sibling}function WM($,Z,G){switch($.tag){case 26:H7($,Z,G),$.flags&dZ&&$.memoizedState!==null&&jC(G,X4,$.memoizedState,$.memoizedProps);break;case 5:H7($,Z,G);break;case 3:case 4:var Y=X4;X4=qG($.stateNode.containerInfo),H7($,Z,G),X4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=dZ,dZ=16777216,H7($,Z,G),dZ=Y):H7($,Z,G));break;default:H7($,Z,G)}}function wM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function e$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=H6();M5=Y,TM(Y,$),(Y.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(Y,L0,P0,"Unmount"),M6(U)}wM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)RM($),$=$.sibling}function RM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 15:e$($),$.flags&2048&&tq($,$.return,d5|h6);break;case 3:var B=e4();e$($),$.stateNode.passiveEffectDuration+=IJ(B);break;case 12:B=e4(),e$($),$.stateNode.passiveEffectDuration+=u$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&X2&&($.return===null||$.return.tag!==13)?(B._visibility&=~X2,eJ($),($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4($,L0,P0,"Disconnect")):e$($);break;default:e$($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),y1=U,j1=Y}function eJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=H6();M5=Y,TM(Y,$),(Y.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(Y,L0,P0,"Unmount"),M6(U)}wM($)}for($=$.child;$!==null;)zM($),$=$.sibling}function zM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 15:tq($,$.return,d5),eJ($);break;case 22:var B=$.stateNode;B._visibility&X2&&(B._visibility&=~X2,eJ($));break;default:eJ($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),y1=U,j1=Y}function TM($,Z){for(;M5!==null;){var G=M5,Y=G,U=Z,B=H6(),W=R4(),R=T4(),L=L4();switch(Y.tag){case 0:case 11:case 15:tq(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Z9(U));break;case 24:h$(Y.memoizedState.cache)}if((Y.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(Y,L0,P0,v1,j1),M6(B),z4(W),y1=L,j1=R,Y=G.child,Y!==null)Y.return=G,M5=Y;else $:for(G=$;M5!==null;){if(Y=M5,B=Y.sibling,W=Y.return,XM(Y),Y===G){M5=null;break $}if(B!==null){B.return=W,M5=B;break $}M5=W}}}function pP(){KO.forEach(function($){return $()})}function LM(){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 W6($){if((e0&G5)!==F5&&h0!==0)return h0&-h0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),BY()):y()}function _M(){if(a5===0)if((h0&536870912)===0||o0){var $=zG;zG<<=1,(zG&3932160)===0&&(zG=262144),a5=$}else a5=536870912;return $=_6.current,$!==null&&($.flags|=32),a5}function f1($,Z,G){if(i7&&console.error("useInsertionEffect must not schedule updates."),rN&&(J3=!0),$===w1&&(K1===_9||K1===P9)||$.cancelPendingCommit!==null)F7($,0),s2($,h0,a5,!1);if(f2($,G),(e0&G5)!==F5&&$===w1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",nw.has($)||(nw.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:sw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sw=!0)}}else b4&&A$($,Z,G),eP(Z),$===w1&&((e0&G5)===F5&&(F8|=G),b1===B8&&s2($,h0,a5,!1)),A4($)}function PM($,Z,G){if((e0&(G5|C6))!==F5)throw Error("Should not already be working.");if(h0!==0&&x0!==null){var Y=x0,U=B5();switch(xW){case lZ:case _9:var B=EZ;C1&&((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 P9:B=EZ,C1&&((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:C1&&(Y=U-EZ,3>Y||console.timeStamp("Blocked",EZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||d8($,Z))?lP($,Z):XY($,Z,!0);var W=G;do{if(B===w2){o7&&!G&&s2($,Z,0,!1),Z=K1,EZ=n1(),xW=Z;break}else{if(Y=B5(),U=$.current.alternate,W&&!cP(U)){K6(Z),U=H5,B=Y,!C1||B<=U||(m1?m1.run(console.timeStamp.bind(console,"Teared Render",U,B,s0,l0,"error")):console.timeStamp("Teared Render",U,B,s0,l0,"error")),Y9(Z,Y),B=XY($,Z,!1),W=!1;continue}if(B===L9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){K6(Z),mX(H5,Y,Z,m1),Y9(Z,Y),Z=R;$:{Y=$,B=W,W=sZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(F7(Y,R).flags|=256),R=XY(Y,R,!1),R!==L9){if(hN&&!L){Y.errorRecoveryDisabledLanes|=B,F8|=B,B=B8;break $}Y=p5,p5=W,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=R}if(W=!1,B!==L9)continue;else Y=B5()}}if(B===cZ){K6(Z),mX(H5,Y,Z,m1),Y9(Z,Y),F7($,0),s2($,Z,0,!0);break}$:{switch(G=$,B){case w2:case cZ:throw Error("Root did not complete. This is a bug in React.");case B8:if((Z&4194048)!==Z)break;case oG:K6(Z),PB(H5,Y,Z,m1),Y9(Z,Y),U=Z,(U&127)!==0?kG=Y:(U&4194048)!==0&&(fG=Y),s2(G,Z,a5,!H8);break $;case L9:p5=null;break;case nG:case kw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)qY(G,U,Z,p5,nZ,tG,a5,F8,C9,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(W=eG+gw-B5(),10<W)){if(s2(G,Z,a5,!H8),m8(G,0,!0)!==0)break $;q4=Z,G.timeoutHandle=QR(CM.bind(null,G,U,p5,nZ,tG,Z,a5,F8,C9,H8,B,"Throttled",H5,Y),W);break $}CM(G,U,p5,nZ,tG,Z,a5,F8,C9,H8,B,null,H5,Y)}}}break}while(1);A4($)}function CM($,Z,G,Y,U,B,W,R,L,P,k,f,S,g){$.timeoutHandle=E9;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},WM(Z,B,G0),$0=(B&62914560)===B?eG-B5():(B&4194048)===B?yw-B5():0,$0=DC(G0,$0),$0!==null){q4=B,$.cancelPendingCommit=$0(qY.bind(null,$,Z,B,G,Y,U,W,R,L,k,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)),s2($,B,W,!P);return}}qY($,Z,B,G,Y,U,W,R,L,k,G0,f,S,g)}function cP($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;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 s2($,Z,G,Y){Z&=~uN,Z&=~F8,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&p8($,G,Z)}function M7(){return(e0&(G5|C6))===F5?(QZ(0,!1),!1):!0}function GY(){if(x0!==null){if(K1===o5)var $=x0.return;else $=x0,_J(),Wq($),x7=null,gZ=0,$=x0;for(;$!==null;)nH($.alternate,$),$=$.return;x0=null}}function Y9($,Z){($&127)!==0&&(q8=Z),($&4194048)!==0&&(h4=Z),($&62914560)!==0&&(hW=Z),($&2080374784)!==0&&(uW=Z)}function F7($,Z){C1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",l0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",l0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",l0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",l0,"primary-light"));var G=H5;if(H5=n1(),h0!==0&&0<G){if(K6(h0),b1===nG||b1===B8)PB(G,H5,Z,m1);else{var Y=H5,U=m1;if(C1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,s0,l0,B)):console.timeStamp(W,G,Y,s0,l0,B)}}Y9(h0,H5)}if(G=m1,m1=null,(Z&127)!==0){m1=OZ,U=0<=g4&&g4<q8?q8:g4,Y=0<=H9&&H9<q8?q8:H9,B=0<=Y?Y:0<=U?U:H5,0<=kG?(K6(2),CB(kG,B,Z,G)):(yG&127)!==0&&(K6(2),y$(q8,B,B2)),G=U;var R=Y,L=VZ,P=0<g7,k=Y8===IZ,f=Y8===bG;if(U=H5,Y=OZ,B=RN,W=zN,C1){if(s0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,L!==null&&G>R){var S=P?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,P?"Consecutive":"Event: "+L,R,G,s0,l0,S)):console.timeStamp(P?"Consecutive":"Event: "+L,R,G,s0,l0,S)}U>G&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:s0,trackGroup:l0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}g4=-1.1,Y8=0,zN=RN=null,kG=-1.1,g7=H9,H9=-1.1,q8=n1()}if((Z&4194048)!==0&&(m1=AZ,U=0<=K2&&K2<h4?h4:K2,G=0<=y6&&y6<h4?h4:y6,Y=0<=N8&&N8<h4?h4:N8,B=0<=Y?Y:0<=G?G:H5,0<=fG?(K6(256),CB(fG,B,Z,m1)):(yG&4194048)!==0&&(K6(256),y$(h4,B,B2)),f=Y,R=M9,L=0<U8,P=TN===bG,B=H5,Y=AZ,W=yW,k=gW,C1&&(s0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&R!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,f,U,s0,l0,S)):console.timeStamp(L?"Consecutive":"Event: "+R,f,U,s0,l0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,s0,l0,"primary-dark")):console.timeStamp("Action",U,G,s0,l0,"primary-dark")),B>G&&(U=P?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:s0,trackGroup:l0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),y6=K2=-1.1,TN=0,fG=-1.1,U8=N8,N8=-1.1,h4=n1()),(Z&62914560)!==0&&(yG&62914560)!==0&&(K6(4194304),y$(hW,H5,B2)),(Z&2080374784)!==0&&(yG&2080374784)!==0&&(K6(268435456),y$(uW,H5,B2)),G=$.timeoutHandle,G!==E9&&($.timeoutHandle=E9,CO(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),q4=0,GY(),w1=$,x0=G=a4($.current,null),h0=Z,K1=o5,I6=null,H8=!1,o7=d8($,Z),hN=!1,b1=w2,C9=a5=uN=F8=M8=0,p5=sZ=null,tG=!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 x4=Z,wJ(),$=jW(),1000<$-SW&&(x.recentlyCreatedOwnerStacks=0,SW=$),J4.discardPendingWarnings(),G}function IM($,Z){A0=null,x.H=mZ,x.getCurrentStack=null,D4=!1,z6=null,Z===u7||Z===xG?(Z=lB(),K1=lZ):Z===CN?(Z=lB(),K1=fw):K1=Z===bN?gN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?rZ:aG,I6=Z;var G=x0;G===null?(b1=cZ,rJ($,B6(Z,$.current))):G.mode&y0&&Qq(G)}function OM(){var $=_6.current;return $===null?!0:(h0&4194048)===h0?g6===null?!0:!1:(h0&62914560)===h0||(h0&536870912)!==0?$===g6:!1}function VM(){var $=x.H;return x.H=mZ,$===null?mZ:$}function AM(){var $=x.A;return x.A=UO,$}function $G($){m1===null&&(m1=$._debugTask==null?null:$._debugTask)}function ZG(){b1=B8,H8||(h0&4194048)!==h0&&_6.current!==null||(o7=!0),(M8&134217727)===0&&(F8&134217727)===0||w1===null||s2(w1,h0,a5,!1)}function XY($,Z,G){var Y=e0;e0|=G5;var U=VM(),B=AM();if(w1!==$||h0!==Z){if(b4){var W=$.memoizedUpdaters;0<W.size&&(ZZ($,h0),W.clear()),y2($,Z)}nZ=null,F7($,Z)}Z=!1,W=b1;$:do try{if(K1!==o5&&x0!==null){var R=x0,L=I6;switch(K1){case gN:GY(),W=oG;break $;case lZ:case _9:case P9:case rZ:_6.current===null&&(Z=!0);var P=K1;if(K1=o5,I6=null,W7($,R,L,P),G&&o7){W=w2;break $}break;default:P=K1,K1=o5,I6=null,W7($,R,L,P)}}EM(),W=b1;break}catch(k){IM($,k)}while(1);return Z&&$.shellSuspendCounter++,_J(),e0=Y,x.H=U,x.A=B,x0===null&&(w1=null,h0=0,wJ()),W}function EM(){for(;x0!==null;)SM(x0)}function lP($,Z){var G=e0;e0|=G5;var Y=VM(),U=AM();if(w1!==$||h0!==Z){if(b4){var B=$.memoizedUpdaters;0<B.size&&(ZZ($,h0),B.clear()),y2($,Z)}nZ=null,$3=B5()+hw,F7($,Z)}else o7=d8($,Z);$:do try{if(K1!==o5&&x0!==null)Z:switch(Z=x0,B=I6,K1){case aG:K1=o5,I6=null,W7($,Z,B,aG);break;case _9:case P9:if(pB(B)){K1=o5,I6=null,jM(Z);break}Z=function(){K1!==_9&&K1!==P9||w1!==$||(K1=iG),A4($)},B.then(Z,Z);break $;case lZ:K1=iG;break $;case fw:K1=yN;break $;case iG:pB(B)?(K1=o5,I6=null,jM(Z)):(K1=o5,I6=null,W7($,Z,B,iG));break;case yN:var W=null;switch(x0.tag){case 26:W=x0.memoizedState;case 5:case 27:var R=x0;if(W?PF(W):R.stateNode.complete){K1=o5,I6=null;var L=R.sibling;if(L!==null)x0=L;else{var P=R.return;P!==null?(x0=P,QG(P)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}K1=o5,I6=null,W7($,Z,B,yN);break;case rZ:K1=o5,I6=null,W7($,Z,B,rZ);break;case gN:GY(),b1=oG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?EM():rP();break}catch(k){IM($,k)}while(1);if(_J(),x.H=Y,x.A=U,e0=G,x0!==null)return w2;return w1=null,h0=0,wJ(),b1}function rP(){for(;x0!==null&&!cC();)SM(x0)}function SM($){var Z=$.alternate;($.mode&y0)!==O0?(Zq($),Z=X0($,oq,Z,$,x4),Qq($)):Z=X0($,oq,Z,$,x4),$.memoizedProps=$.pendingProps,Z===null?QG($):x0=Z}function jM($){var Z=X0($,sP,$);$.memoizedProps=$.pendingProps,Z===null?QG($):x0=Z}function sP($){var Z=$.alternate,G=($.mode&y0)!==O0;switch(G&&Zq($),$.tag){case 15:case 0:Z=mH(Z,$,$.pendingProps,$.type,void 0,h0);break;case 11:Z=mH(Z,$,$.pendingProps,$.type.render,$.ref,h0);break;case 5:Wq($);default:nH(Z,$),$=x0=SB($,x4),Z=oq(Z,$,x4)}return G&&Qq($),Z}function W7($,Z,G,Y){_J(),Wq(Z),x7=null,gZ=0;var U=Z.return;try{if(DP($,U,Z,G,h0)){b1=cZ,rJ($,B6(G,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;b1=cZ,rJ($,B6(G,$.current)),x0=null;return}if(Z.flags&32768){if(o0||Y===aG)$=!0;else if(o7||(h0&536870912)!==0)$=!1;else if(H8=$=!0,Y===_9||Y===P9||Y===lZ||Y===rZ)Y=_6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);DM(Z,$)}else QG(Z)}function QG($){var Z=$;do{if((Z.flags&32768)!==0){DM(Z,H8);return}var G=Z.alternate;if($=Z.return,Zq(Z),G=X0(Z,kP,G,Z,x4),(Z.mode&y0)!==O0&&hB(Z),G!==null){x0=G;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);b1===w2&&(b1=kw)}function DM($,Z){do{var G=fP($.alternate,$);if(G!==null){G.flags&=32767,x0=G;return}if(($.mode&y0)!==O0){hB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=G}while($!==null);b1=oG,x0=null}function qY($,Z,G,Y,U,B,W,R,L,P,k,f,S,g){$.cancelPendingCommit=null;do $Z();while(e1!==w8);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(e0&(G5|C6))!==F5)throw Error("Should not already be working.");if(K6(G),P===L9?mX(S,g,G,m1):Y!==null?zP(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,m1):RP(S,g,G,m1),Z!==null){if(G===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|=HN,XJ($,G,B,W,R,L),$===w1&&(x0=w1=null,h0=0),a7=Z,R8=$,q4=G,dN=B,cN=U,cw=Y,pN=g,lw=f,Y4=Z3,rw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,tP(_7,function(){return $Q=window.event,Y4===Z3&&(Y4=mN),yM(),null})):($.callbackNode=null,$.callbackPriority=0),U2=null,X8=n1(),f!==null&&TP(g,X8,f,m1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=Y1.p,Y1.p=T6,W=e0,e0|=C6;try{mP($,Z,G)}finally{e0=W,Y1.p=U,x.T=Y}}e1=xw,vM(),bM(),kM()}}function vM(){if(e1===xw){e1=w8;var $=R8,Z=a7,G=q4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=Y1.p;Y1.p=T6;var B=e0;e0|=C6;try{s7=G,n7=$,OJ(),UM(Z,$),n7=s7=null,G=ZU;var W=TB($.containerInfo),R=G.focusedElem,L=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&zB(R.ownerDocument.documentElement,R)){if(L!==null&&hX(R)){var{start:P,end:k}=L;if(k===void 0&&(k=P),"selectionStart"in R)R.selectionStart=P,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=R.textContent.length,G0=Math.min(L.start,$0),L1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>L1&&(W=L1,L1=G0,G0=W);var i0=RB(R,G0),A=RB(R,L1);if(i0&&A&&(g.rangeCount!==1||g.anchorNode!==i0.node||g.anchorOffset!==i0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var j=f.createRange();j.setStart(i0.node,i0.offset),g.removeAllRanges(),G0>L1?(g.addRange(j),g.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),g.addRange(j))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}R3=!!$U,ZU=$U=null}finally{e0=B,Y1.p=U,x.T=Y}}$.current=Z,e1=mw}}function bM(){if(e1===mw){e1=w8;var $=rw;if($!==null){X8=n1();var Z=N2,G=X8;!C1||G<=Z||(B2?B2.run(console.timeStamp.bind(console,$,Z,G,s0,l0,"secondary-light")):console.timeStamp($,Z,G,s0,l0,"secondary-light"))}$=R8,Z=a7,G=q4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=Y1.p;Y1.p=T6;var B=e0;e0|=C6;try{s7=G,n7=$,OJ(),GM($,Z.alternate,Z),n7=s7=null}finally{e0=B,Y1.p=U,x.T=Y}}$=pN,Z=lw,N2=n1(),$=Z===null?$:X8,Z=N2,G=Y4===xN,Y=m1,U2!==null?IB($,Z,U2,!1,Y):!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,s0,l0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,s0,l0,G?"error":"secondary-dark")),e1=dw}}function kM(){if(e1===pw||e1===dw){if(e1===pw){var $=N2;N2=n1();var Z=N2,G=Y4===xN;!C1||Z<=$||(B2?B2.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,s0,l0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,s0,l0,G?" error":"secondary-light")),Y4!==xN&&(Y4=uw)}e1=w8,lC(),$=R8;var Y=a7;Z=q4,G=cw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?e1=Q3:(e1=w8,a7=R8=null,fM($,$.pendingLanes),I9=0,aZ=null);var B=$.pendingLanes;if(B===0&&(W8=null),U||xM($),B=C(Z),Y=Y.stateNode,E5&&typeof E5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case T6:var R=cY;break;case Z4:R=lY;break;case k4:R=_7;break;case LG:R=rY;break;default:R=_7}E5.onCommitFiberRoot(P7,Y,R,W)}catch(f){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",f))}if(b4&&$.memoizedUpdaters.clear(),pP(),G!==null){W=x.T,R=Y1.p,Y1.p=T6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var P=G[Y],k=nP(P.stack);X0(P.source,L,P.value,k)}}finally{x.T=W,Y1.p=R}}(q4&3)!==0&&$Z(),A4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(hG=!0,$===lN?oZ++:(oZ=0,lN=$)):oZ=0,U||Y9(Z,N2),QZ(0,!1)}}function nP($){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 fM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,h$(Z)))}function $Z(){return vM(),bM(),kM(),yM()}function yM(){if(e1!==Q3)return!1;var $=R8,Z=dN;dN=0;var G=C(q4),Y=k4===0||k4>G?k4:G;G=x.T;var U=Y1.p;try{Y1.p=Y,x.T=null;var B=cN;cN=null,Y=R8;var W=q4;if(e1=w8,a7=R8=null,q4=0,(e0&(G5|C6))!==F5)throw Error("Cannot flush passive effects while already rendering.");K6(W),rN=!0,J3=!1;var R=0;if(U2=null,R=B5(),Y4===uw)y$(N2,R,B2);else{var L=N2,P=R,k=Y4===mN;!C1||P<=L||(m1?m1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,P,s0,l0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,P,s0,l0,"secondary-light"))}L=e0,e0|=C6;var f=Y.current;OJ(),RM(f);var S=Y.current;f=pN,OJ(),MM(Y,S,W,B,f),xM(Y),e0=L;var g=B5();if(S=R,f=m1,U2!==null?IB(S,g,U2,!0,f):!C1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,s0,l0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,s0,l0,"secondary-dark")),Y9(W,g),QZ(0,!1),J3?Y===aZ?I9++:(I9=0,aZ=Y):I9=0,J3=rN=!1,E5&&typeof E5.onPostCommitFiberRoot==="function")try{E5.onPostCommitFiberRoot(P7,Y)}catch(G0){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{Y1.p=U,x.T=G,fM($,Z)}}function gM($,Z,G){Z=B6(G,Z),uB(Z),Z=hq($.stateNode,Z,2),$=p2($,Z,2),$!==null&&(f2($,2),A4($))}function q1($,Z,G){if(i7=!1,$.tag===3)gM($,$,G);else{for(;Z!==null;){if(Z.tag===3){gM(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(W8===null||!W8.has(Y))){$=B6(G,$),uB($),G=uq(2),Y=p2(Z,G,2),Y!==null&&(xq(G,Y,Z,$),f2(Y,2),A4(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.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,G)}}function JY($,Z,G){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new GV;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(G)||(kN=!0,U.add(G),Y=d_.bind(null,$,Z,G),E4&&t$($,G),Z.then(Y,Y))}function d_($,Z,G){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>D4&&(J2=D4=l1(),_Z=AG("Promise Resolved"),G2=SG):(G&4194048)!==0&&0>b6&&(v4=b6=l1(),IZ=AG("Promise Resolved"),WN=SG),wM()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,G)}}function YY($,Z,G){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new BO;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(G)||(hN=!0,U.add(G),Y=oP.bind(null,$,Z,G),b4&&ZZ($,G),Z.then(Y,Y))}function oP($,Z,G){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>g4&&(q8=g4=n1(),OZ=vG("Promise Resolved"),Y8=bG):(G&4194048)!==0&&0>y6&&(h4=y6=n1(),AZ=vG("Promise Resolved"),TN=bG),LM()&&x.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`),W1===$&&(g0&G)===G&&(S1===N2||S1===cG&&(g0&62914560)===g0&&Y5()-oG<bw?(i0&Q5)===K5&&B7($,0):fN|=G,P9===g0&&(P9=0)),P4($)}function kM($,Z){Z===0&&(Z=a9()),$=_5($,Z),$!==null&&(v8($,Z),P4($))}function p_($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),kM($,G)}function c_($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(G=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),kM($,G)}function GY($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===KG;B=G||B,U.tag!==22?U.flags&67108864?B&&G0(U,fM,Y,U):GY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?G0(U,fM,Y,U):U.subtreeFlags&67108864&&G0(U,GY,Y,U,B)),Z=Z.sibling}}function fM($,Z){w1(!0);try{YM(Z),FM(Z),NM($,Z.alternate,Z,!1),KM($,Z,0,null,!1,0)}finally{w1(!1)}}function yM($){var Z=!0;$.current.mode&(I5|t6)||(Z=!1),GY($,$.current,Z)}function gM($){if((i0&Q5)===K5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",$3!==null){if($3.has(Z))return;$3.add(Z)}else $3=new Set([Z]);G0($,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 t$($,Z){E4&&$.memoizedUpdaters.forEach(function(G){I$($,G,Z)})}function l_($,Z){var G=x.actQueue;return G!==null?(G.push(Z),YV):uY($,Z)}function r_($){wM()&&x.actQueue===null&&G0($,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`),w1===$&&(h0&G)===G&&(b1===B8||b1===nG&&(h0&62914560)===h0&&B5()-eG<gw?(e0&G5)===F5&&F7($,0):uN|=G,C9===h0&&(C9=0)),A4($)}function hM($,Z){Z===0&&(Z=e9()),$=A5($,Z),$!==null&&(f2($,Z),A4($))}function aP($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),hM($,G)}function iP($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(G=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),hM($,G)}function NY($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===FG;B=G||B,U.tag!==22?U.flags&67108864?B&&X0(U,uM,Y,U):NY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?X0(U,uM,Y,U):U.subtreeFlags&67108864&&X0(U,NY,Y,U,B)),Z=Z.sibling}}function uM($,Z){z1(!0);try{BM(Z),zM(Z),HM($,Z.alternate,Z,!1),FM($,Z,0,null,!1,0)}finally{z1(!1)}}function xM($){var Z=!0;$.current.mode&(S5|Q4)||(Z=!1),NY($,$.current,Z)}function mM($){if((e0&G5)===F5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",G3!==null){if(G3.has(Z))return;G3.add(Z)}else G3=new Set([Z]);X0($,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 ZZ($,Z){b4&&$.memoizedUpdaters.forEach(function(G){A$($,G,Z)})}function tP($,Z){var G=x.actQueue;return G!==null?(G.push(Z),FO):pY($,Z)}function eP($){LM()&&x.actQueue===null&&X0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function P4($){$!==o7&&$.next===null&&(o7===null?Z3=o7=$:o7=o7.next=$),Q3=!0,x.actQueue!==null?cN||(cN=!0,mM()):pN||(pN=!0,mM())}function e$($,Z){if(!lN&&Q3){lN=!0;do{var G=!1;for(var Y=Z3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-S5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,xM(Y,B))}else B=g0,B=u2(Y,Y===W1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==O9),(B&3)===0||x2(Y,B)||(G=!0,xM(Y,B));Y=Y.next}}while(G);lN=!1}}function s_(){iZ=window.event,XY()}function XY(){Q3=cN=pN=!1;var $=0;W2!==0&&$C()&&($=W2);for(var Z=Y5(),G=null,Y=Z3;Y!==null;){var U=Y.next,B=hM(Y,Z);if(B===0)Y.next=null,G===null?Z3=U:G.next=U,U===null&&(o7=G);else if(G=Y,$!==0||(B&3)!==0)Q3=!0;Y=U}a1!==M2&&a1!==tG||e$($,!1),W2!==0&&(W2=0)}function hM($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-S5(B),R=1<<W,L=U[W];if(L===-1){if((R&G)===0||(R&Y)!==0)U[W]=CX(R,Z)}else L<=Z&&($.expiredLanes|=R);B&=~R}if(Z=W1,G=g0,G=u2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==O9),Y=$.callbackNode,G===0||$===Z&&(U1===T9||U1===L9)||$.cancelPendingCommit!==null)return Y!==null&&qY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||x2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==rN)qY(Y);else return Z;switch(C(G)){case W6:case i6:G=mY;break;case A4:G=z7;break;case wG:G=dY;break;default:G=z7}return Y=uM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=rN):G=uY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&qY(Y),$.callbackPriority=2,$.callbackNode=null,2}function uM($,Z){if(kG=bG=!1,iZ=window.event,a1!==M2&&a1!==tG)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(J4===iG&&(J4=gN),i$()&&$.callbackNode!==G)return null;var Y=g0;if(Y=u2($,$===W1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==O9),Y===0)return null;return zM($,Y,Z),hM($,Y5()),$.callbackNode!=null&&$.callbackNode===G?uM.bind(null,$):null}function xM($,Z){if(i$())return null;bG=kG,kG=!1,zM($,Z,!0)}function qY($){$!==rN&&$!==null&&yC($)}function mM(){x.actQueue!==null&&x.actQueue.push(function(){return XY(),null}),RV(function(){(i0&(Q5|T6))!==K5?uY(xY,s_):XY()})}function YY(){if(W2===0){var $=H9;$===0&&($=MG,MG<<=1,(MG&261888)===0&&(MG=256)),W2=$}return W2}function dM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return B1($,"action"),j$(""+$)}function pM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function n_($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=dM((U[j5]||null).action),W=Y.submitter;W&&(Z=(Z=W[j5]||null)?dM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new PG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(W2!==0){var L=W?pM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B};Object.freeze(_),Eq(G,_,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=W?pM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B},Object.freeze(_),Eq(G,_,B,L))},currentTarget:U}]})}}function eJ($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){GN(Y)}$.currentTarget=null}function cM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var R=Y[W],L=R.instance,_=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,eJ,B,R,_):eJ(B,R,_),U=L}else for(W=0;W<Y.length;W++){if(R=Y[W],L=R.instance,_=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,eJ,B,R,_):eJ(B,R,_),U=L}}}}function n0($,Z){sN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[pY];G===void 0&&(G=Z[pY]=new Set);var Y=$+"__bubble";G.has(Y)||(lM(Z,$,2,!1),G.add(Y))}function NY($,Z,G){sN.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),lM(G,$,Y,Z)}function UY($){if(!$[J3]){$[J3]=!0,mF.forEach(function(G){G!=="selectionchange"&&(sN.has(G)||NY(G,!1,$),NY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[J3]||(Z[J3]=!0,NY("selectionchange",!1,Z))}}function lM($,Z,G,Y){switch(IF(Z)){case W6:var U=AC;break;case i6:U=SC;break;default:U=VY}G=U.bind(null,Z,G,$),U=void 0,!nY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function KY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var R=Y.stateNode.containerInfo;if(R===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;R!==null;){if(W=Y0(R),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}QB(function(){var _=B,k=vX(G),f=[];$:{var S=IW.get($);if(S!==void 0){var g=PG,e=$;switch($){case"keypress":if(YJ(G)===0)break $;case"keydown":case"keyup":g=CI;break;case"focusin":e="focus",g=tY;break;case"focusout":e="blur",g=tY;break;case"beforeblur":case"afterblur":g=tY;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=KW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=BI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=OI;break;case LW:case PW:case _W:g=FI;break;case CW:g=AI;break;case"scroll":case"scrollend":g=UI;break;case"wheel":g=jI;break;case"copy":case"cut":case"paste":g=wI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=HW;break;case"toggle":case"beforetoggle":g=vI}var J0=(Z&4)!==0,z1=!J0&&($==="scroll"||$==="scrollend"),o0=J0?S!==null?S+"Capture":null:S;J0=[];for(var E=_,j;E!==null;){var b=E;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||o0===null||(b=D$(E,o0),b!=null&&J0.push($Z(E,b,j))),z1)break;E=E.return}0<J0.length&&(S=new g(S,e,null,G,k),f.push({event:S,listeners:J0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==BZ&&(e=G.relatedTarget||G.fromElement)&&(Y0(e)||e[a8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if(e=G.relatedTarget||G.toElement,g=_,e=e?Y0(e):null,e!==null&&(z1=D(e),J0=e.tag,e!==z1||J0!==5&&J0!==27&&J0!==6))e=null}else g=null,e=_;if(g!==e){if(J0=KW,b="onMouseLeave",o0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")J0=HW,b="onPointerLeave",o0="onPointerEnter",E="pointer";if(z1=g==null?S:j0(g),j=e==null?S:j0(e),S=new J0(b,E+"leave",g,G,k),S.target=z1,S.relatedTarget=j,b=null,Y0(k)===_&&(J0=new J0(o0,E+"enter",e,G,k),J0.target=j,J0.relatedTarget=z1,b=J0),z1=b,g&&e)Z:{J0=o_,o0=g,E=e,j=0;for(b=o0;b;b=J0(b))j++;b=0;for(var m=E;m;m=J0(m))b++;for(;0<j-b;)o0=J0(o0),j--;for(;0<b-j;)E=J0(E),b--;for(;j--;){if(o0===E||E!==null&&o0===E.alternate){J0=o0;break Z}o0=J0(o0),E=J0(E)}J0=null}else J0=null;g!==null&&rM(f,S,g,J0,!1),e!==null&&z1!==null&&rM(f,z1,e,J0,!0)}}}$:{if(S=_?j0(_):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Z0=UB;else if(YB(S))if(zW)Z0=Y_;else{Z0=X_;var O0=G_}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?_&&S$(_.elementType)&&(Z0=UB):Z0=q_;if(Z0&&(Z0=Z0($,_))){NB(f,Z0,G,k);break $}O0&&O0($,S,_),$==="focusout"&&_&&S.type==="number"&&_.memoizedProps.value!=null&&OX(S,"number",S.value)}switch(O0=_?j0(_):window,$){case"focusin":if(YB(O0)||O0.contentEditable==="true")O7=O0,$N=_,zZ=null;break;case"focusout":zZ=$N=O7=null;break;case"mousedown":ZN=!0;break;case"contextmenu":case"mouseup":case"dragend":ZN=!1,wB(f,G,k);break;case"selectionchange":if(yI)break;case"keydown":case"keyup":wB(f,G,k)}var R0;if(eY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else V7?XB($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===MW&&(U0="onCompositionStart");if(U0&&(FW&&G.locale!=="ko"&&(V7||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&V7&&(R0=JB()):(i8=k,oY=("value"in i8)?i8.value:i8.textContent,V7=!0)),O0=$G(_,U0),0<O0.length&&(U0=new BW(U0,$,null,G,k),f.push({event:U0,listeners:O0}),R0?U0.data=R0:(R0=qB(G),R0!==null&&(U0.data=R0)))),R0=kI?$_($,G):Z_($,G))U0=$G(_,"onBeforeInput"),0<U0.length&&(O0=new zI("onBeforeInput","beforeinput",null,G,k),f.push({event:O0,listeners:U0}),O0.data=R0);n_(f,$,_,G,k)}cM(f,Z)})}function $Z($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function $G($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=D$($,G),U!=null&&Y.unshift($Z($,U,B)),U=D$($,Z),U!=null&&Y.push($Z($,U,B))),$.tag===3)return Y;$=$.return}return[]}function o_($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function rM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var R=G,L=R.alternate,_=R.stateNode;if(R=R.tag,L!==null&&L===Y)break;R!==5&&R!==26&&R!==27||_===null||(L=_,U?(_=D$(G,B),_!=null&&W.unshift($Z(G,_,L))):U||(_=D$(G,B),_!=null&&W.push($Z(G,_,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function BY($,Z){aP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||NW||(NW=!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 G={registrationNameDependencies:q9,possibleRegistrationNames:cY};S$($)||typeof Z.is==="string"||tP($,Z,G),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 q5($,Z,G,Y){Z!==G&&(G=l8(G),l8(Z)!==G&&(Y[$]=Z))}function a_($,Z,G){Z.forEach(function(Y){G[oM(Y)]=Y==="style"?MY($):$.getAttribute(Y)})}function _4($,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 sM($,Z){return $=$.namespaceURI===zG||$.namespaceURI===P7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function l8($){return D8($)&&(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.",h2($)),X5($)),(typeof $==="string"?$:""+$).replace(NV,`
176
- `).replace(UV,"")}function nM($,Z){return Z=l8(Z),l8($)===Z?!0:!1}function M1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")qJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||A$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")qJ(""+Y,Z,!1),Z!=="body"&&A$($,""+Y);break;case"className":JJ($,"class",Y);break;case"tabIndex":JJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":JJ($,G,Y);break;case"style":eK($,Y,B);break;case"data":if(Z!=="object"){JJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}B1(Y,G),Y=j$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="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||X3||(X3=!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"?G==="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"||G3?Z!=="button"||U.type==null||U.type==="submit"||G3?typeof Y==="function"&&(U.name==null||sw||(sw=!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||X3||(X3=!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."))):(G3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(G3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="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(G,"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"&&(G==="formAction"?(Z!=="input"&&M1($,Z,"name",U.name,U,null),M1($,Z,"formEncType",U.formEncType,U,null),M1($,Z,"formMethod",U.formMethod,U,null),M1($,Z,"formTarget",U.formTarget,U,null)):(M1($,Z,"encType",U.encType,U,null),M1($,Z,"method",U.method,U,null),M1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}B1(Y,G),Y=j$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=r4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("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(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}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}B1(Y,G),G=j$(""+Y),$.setAttributeNS(C9,"xlink:href",G);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"?(B1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||Y3[G]||(Y3[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));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(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(B1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(B1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(B1(Y,G),$.setAttribute(G,Y));break;case"popover":n0("beforetoggle",$),n0("toggle",$),QJ($,"popover",Y);break;case"xlinkActuate":l4($,C9,"xlink:actuate",Y);break;case"xlinkArcrole":l4($,C9,"xlink:arcrole",Y);break;case"xlinkRole":l4($,C9,"xlink:role",Y);break;case"xlinkShow":l4($,C9,"xlink:show",Y);break;case"xlinkTitle":l4($,C9,"xlink:title",Y);break;case"xlinkType":l4($,C9,"xlink:type",Y);break;case"xmlBase":l4($,nN,"xml:base",Y);break;case"xmlLang":l4($,nN,"xml:lang",Y);break;case"xmlSpace":l4($,nN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),QJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":nw||Y==null||typeof Y!=="object"||(nw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=$B(G),QJ($,G,Y)):q9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&_4(G,Y)}}function HY($,Z,G,Y,U,B){switch(G){case"style":eK($,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(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?A$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&A$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=r4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(q9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&_4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[j5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):QJ($,G,Y)}}}function M5($,Z,G){switch(BY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":n0("error",$),n0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=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:M1($,Z,B,W,G,null)}}U&&M1($,Z,"srcSet",G.srcSet,G,null),Y&&M1($,Z,"src",G.src,G,null);return;case"input":k8("input",G),n0("invalid",$);var R=B=W=U=null,L=null,_=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":_=k;break;case"value":B=k;break;case"defaultValue":R=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:M1($,Z,Y,k,G,null)}}gK($,G),hK($,B,R,L,_,W,U,!1);return;case"select":k8("select",G),n0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:M1($,Z,U,R,G,null)}mK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?t9($,!!Y,Z,!1):G!=null&&t9($,!!Y,G,!0);return;case"textarea":k8("textarea",G),n0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:M1($,Z,W,R,G,null)}dK($,G),cK($,Y,U,B);return;case"option":uK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:M1($,Z,L,Y,G,null)}return;case"dialog":n0("beforetoggle",$),n0("toggle",$),n0("cancel",$),n0("close",$);break;case"iframe":case"object":n0("load",$);break;case"video":case"audio":for(Y=0;Y<nZ.length;Y++)n0(nZ[Y],$);break;case"image":n0("error",$),n0("load",$);break;case"details":n0("toggle",$);break;case"embed":case"source":case"link":n0("error",$),n0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in G)if(G.hasOwnProperty(_)&&(Y=G[_],Y!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:M1($,Z,_,Y,G,null)}return;default:if(S$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&HY($,Z,k,Y,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(Y=G[R],Y!=null&&M1($,Z,R,Y,G,null))}function i_($,Z,G,Y){switch(BY(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,W=null,R=null,L=null,_=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||M1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":_=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=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&&M1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||rw||(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"),rw=!0),!Z||Y||lw||(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"),lw=!0),VX($,W,R,L,_,k,B,U);return;case"select":g=W=R=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||M1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==L&&M1($,Z,U,B,Y,L)}Y=R,Z=W,G=g,S!=null?t9($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?t9($,!!Z,Y,!0):t9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:M1($,Z,R,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){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&&M1($,Z,W,U,Y,B)}pK($,S,g);return;case"option":for(var e in G)if(S=G[e],G.hasOwnProperty(e)&&S!=null&&!Y.hasOwnProperty(e))switch(e){case"selected":$.selected=!1;break;default:M1($,Z,e,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:M1($,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 J0 in G)S=G[J0],G.hasOwnProperty(J0)&&S!=null&&!Y.hasOwnProperty(J0)&&M1($,Z,J0,null,Y,S);for(_ in Y)if(S=Y[_],g=G[_],Y.hasOwnProperty(_)&&S!==g&&(S!=null||g!=null))switch(_){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:M1($,Z,_,S,Y,g)}return;default:if(S$(Z)){for(var z1 in G)S=G[z1],G.hasOwnProperty(z1)&&S!==void 0&&!Y.hasOwnProperty(z1)&&HY($,Z,z1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||HY($,Z,k,S,Y,g);return}}for(var o0 in G)S=G[o0],G.hasOwnProperty(o0)&&S!=null&&!Y.hasOwnProperty(o0)&&M1($,Z,o0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||M1($,Z,f,S,Y,g)}function oM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function MY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function aM($,Z,G){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 W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(C$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||qW.has(B)?(C$(W,B),Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=l8(Y),l8(Z)!==Y&&(G.style=MY($)))}}function O6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(B1(Y,Z),$===""+Y)return}q5(Z,$,Y,B)}function iM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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}q5(Z,$,Y,B)}function FY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(B1(Y,G),$===""+Y)return}q5(Z,$,Y,B)}function tM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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)&&(B1(Y,Z),$===""+Y))return}q5(Z,$,Y,B)}function WY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(B1(Y,Z),G=j$(""+Y),$===G)return}q5(Z,$,Y,B)}function eM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(S$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var _=G[L];if(_!=null){if(q9.hasOwnProperty(L))typeof _!=="function"&&_4(L,_);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof _!=="string"&&typeof _!=="number"||q5("children",$.textContent,_,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,_=_?_.__html:void 0,_!=null&&(_=sM($,_),q5(L,W,_,U));continue;case"style":B.delete(L),aM($,_,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"),W=kK($,"class",_),q5("className",W,_,U);continue;default:Y.context===F8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=kK($,L,_),q5(L,W,_,U)}}}}else for(_ in G)if(G.hasOwnProperty(_)&&(L=G[_],L!=null)){if(q9.hasOwnProperty(_))typeof L!=="function"&&_4(_,L);else if(G.suppressHydrationWarning!==!0)switch(_){case"children":typeof L!=="string"&&typeof L!=="number"||q5("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":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=sM($,L),W!==L&&(U[_]={__html:W}));continue;case"className":O6($,_,"class",L,B,U);continue;case"tabIndex":O6($,_,"tabindex",L,B,U);continue;case"style":B.delete(_),aM($,L,U);continue;case"multiple":B.delete(_),q5(_,$.multiple,L,U);continue;case"muted":B.delete(_),q5(_,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),q5(_,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(_),W=$.getAttribute("data"),q5(_,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&_==="href"||Z==="object"&&_==="data")){_==="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.',_,_):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.',_,_);continue}WY($,_,_,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(_),typeof L==="function"){B.delete(_.toLowerCase()),_==="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(W===KV){B.delete(_.toLowerCase()),q5(_,"function",L,U);continue}WY($,_,_.toLowerCase(),L,B,U);continue;case"xlinkHref":WY($,_,"xlink:href",L,B,U);continue;case"contentEditable":FY($,_,"contenteditable",L,B,U);continue;case"spellCheck":FY($,_,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":FY($,_,_,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":iM($,_,_.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var k=W=_,f=U;if(B.delete(k),R=R.getAttribute(k),R===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&&R==="")break $;break;default:if(B1(L,W),R===""+L)break $}q5(W,R,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=_,f=U,B.delete(k),R=R.getAttribute(k),R===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)&&(B1(L,W),R===""+L))break $}q5(W,R,L,f)}continue;case"rowSpan":tM($,_,"rowspan",L,B,U);continue;case"start":tM($,_,_,L,B,U);continue;case"xHeight":O6($,_,"x-height",L,B,U);continue;case"xlinkActuate":O6($,_,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":O6($,_,"xlink:arcrole",L,B,U);continue;case"xlinkRole":O6($,_,"xlink:role",L,B,U);continue;case"xlinkShow":O6($,_,"xlink:show",L,B,U);continue;case"xlinkTitle":O6($,_,"xlink:title",L,B,U);continue;case"xlinkType":O6($,_,"xlink:type",L,B,U);continue;case"xmlBase":O6($,_,"xml:base",L,B,U);continue;case"xmlLang":O6($,_,"xml:lang",L,B,U);continue;case"xmlSpace":O6($,_,"xml:space",L,B,U);continue;case"inert":L!==""||Y3[_]||(Y3[_]=!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.",_)),iM($,_,_,L,B,U);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){R=$B(_),W=!1,Y.context===F8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=_.toLowerCase(),k=TG.hasOwnProperty(k)?TG[k]||null:null,k!==null&&k!==_&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=L,V$(f))if(k.hasAttribute(f))k=k.getAttribute(f),B1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||q5(_,R,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&a_($,B,U),Object.keys(U).length===0?null:U}function t_($,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 $F($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e_(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,R=U.duration;if(B&&R&&$F(W)){W=0,R=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],_=L.startTime;if(_>R)break;var{transferSize:k,initiatorType:f}=L;k&&$F(f)&&(L=L.responseEnd,W+=k*(L<R?1:(R-_)/(L-_)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function ZG($){return $.nodeType===9?$:$.ownerDocument}function ZF($){switch($){case P7:return i7;case zG:return U3;default:return F8}}function QF($,Z){if($===F8)switch(Z){case"svg":return i7;case"math":return U3;default:return F8}return $===i7&&Z==="foreignObject"?F8:$}function wY($,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 $C(){var $=window.event;if($&&$.type==="popstate"){if($===tN)return!1;return tN=$,!0}return tN=null,!1}function ZZ(){var $=window.event;return $&&$!==iZ?$.type:null}function QZ(){var $=window.event;return $&&$!==iZ?$.timeStamp:-1.1}function ZC($){setTimeout(function(){throw $})}function QC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function JC(){}function GC($,Z,G,Y){i_($,Z,G,Y),$[j5]=Y}function JF($){A$($,"")}function XC($,Z,G){$.nodeValue=G}function GF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[j5]||null;if(Z!==null){var G=S0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(G,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,G0(G,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 r8($){return $==="head"}function qC($,Z){$.removeChild(Z)}function YC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function XF($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===aZ||G===N3){if(Y===0){$.removeChild(U),W7(Z);return}Y--}else if(G===oZ||G===w2||G===V9||G===a7||G===I9)Y++;else if(G===HV)JZ($.ownerDocument.documentElement);else if(G===FV){G=$.ownerDocument.head,JZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[KZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===MV&&JZ($.ownerDocument.body);G=U}while(G);W7(Z)}function qF($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===aZ)if($===0)break;else $--;else G!==oZ&&G!==w2&&G!==V9&&G!==a7||$++;G=Y}while(G)}function NC($){qF($,!0)}function UC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function KC($){$.nodeValue=""}function BC($){qF($,!1)}function HC($,Z){Z=Z[WV],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function MC($,Z){$.nodeValue=Z}function RY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":RY(G),$0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function FC($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){B1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[KZ])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($=H6($.nextSibling),$===null)break}return null}function WC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=H6($.nextSibling),$===null)return null}return $}function YF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=H6($.nextSibling),$===null)return null}return $}function zY($){return $.data===w2||$.data===V9}function TY($){return $.data===a7||$.data===w2&&$.ownerDocument.readyState!==aw}function wC($,Z){var G=$.ownerDocument;if($.data===V9)$._reactRetry=Z;else if($.data!==w2||G.readyState!==aw)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function H6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===oZ||Z===a7||Z===w2||Z===V9||Z===I9||Z===oN||Z===ow)break;if(Z===aZ||Z===N3)return null}}return $}function NF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[oM(B.name)]=B.name.toLowerCase()==="style"?MY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===I9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function UF($,Z,G){return G===null||G[BV]!==!0?($.nodeValue===Z?$=null:(Z=l8(Z),$=l8($.nodeValue)===Z?null:$.nodeValue),$):null}function LY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===aZ||G===N3){if(Z===0)return H6($.nextSibling);Z--}else G!==oZ&&G!==a7&&G!==w2&&G!==V9&&G!==I9||Z++}$=$.nextSibling}return null}function KF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===oZ||G===a7||G===w2||G===V9||G===I9){if(Z===0)return $;Z--}else G!==aZ&&G!==N3||Z++}$=$.previousSibling}return null}function RC($){W7($)}function zC($){W7($)}function TC($){W7($)}function BF($,Z,G,Y,U){switch(U&&DX($,Y.ancestorInfo),Z=ZG(G),$){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 LC($,Z,G,Y){if(!G[a8]&&S0(G)){var U=G.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=G.attributes;U.length;)G.removeAttributeNode(U[0]);M5(G,$,Z),G[F5]=Y,G[j5]=Z}function JZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);$0($)}function QG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function HF($,Z,G){var Y=t7;if(Y&&typeof Z==="string"&&Z){var U=V6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),QR.has(U)||(QR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}}function MF($,Z,G,Y){var U=(U=n8.current)?QG(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 G.precedence==="string"&&typeof G.href==="string"?(G=M7(G.href),Z=e0(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=M7(G.href);var B=e0(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:E9,preload:null}},B.set($,W),(B=U.querySelector(GZ($)))&&!B._p&&(W.instance=B,W.state.loading=tZ|g6),!h6.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};h6.set($,R),B||PC(U,$,R,W.state)}if(Z&&Y===null)throw G=`
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 A4($){$!==t7&&$.next===null&&(t7===null?X3=t7=$:t7=t7.next=$),q3=!0,x.actQueue!==null?nN||(nN=!0,lM()):sN||(sN=!0,lM())}function QZ($,Z){if(!oN&&q3){oN=!0;do{var G=!1;for(var Y=X3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,cM(Y,B))}else B=h0,B=m8(Y,Y===w1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==E9),(B&3)===0||d8(Y,B)||(G=!0,cM(Y,B));Y=Y.next}}while(G);oN=!1}}function $C(){$Q=window.event,UY()}function UY(){q3=nN=sN=!1;var $=0;z8!==0&&YC()&&($=z8);for(var Z=B5(),G=null,Y=X3;Y!==null;){var U=Y.next,B=dM(Y,Z);if(B===0)Y.next=null,G===null?X3=U:G.next=U,U===null&&(t7=G);else if(G=Y,$!==0||(B&3)!==0)q3=!0;Y=U}e1!==w8&&e1!==Q3||QZ($,!1),z8!==0&&(z8=0)}function dM($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-y5(B),R=1<<W,L=U[W];if(L===-1){if((R&G)===0||(R&Y)!==0)U[W]=AX(R,Z)}else L<=Z&&($.expiredLanes|=R);B&=~R}if(Z=w1,G=h0,G=m8($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==E9),Y=$.callbackNode,G===0||$===Z&&(K1===_9||K1===P9)||$.cancelPendingCommit!==null)return Y!==null&&KY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||d8($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==aN)KY(Y);else return Z;switch(C(G)){case T6:case Z4:G=lY;break;case k4:G=_7;break;case LG:G=rY;break;default:G=_7}return Y=pM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=aN):G=pY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&KY(Y),$.callbackPriority=2,$.callbackNode=null,2}function pM($,Z){if(hG=gG=!1,$Q=window.event,e1!==w8&&e1!==Q3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(Y4===Z3&&(Y4=mN),$Z()&&$.callbackNode!==G)return null;var Y=h0;if(Y=m8($,$===w1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==E9),Y===0)return null;return PM($,Y,Z),dM($,B5()),$.callbackNode!=null&&$.callbackNode===G?pM.bind(null,$):null}function cM($,Z){if($Z())return null;gG=hG,hG=!1,PM($,Z,!0)}function KY($){$!==aN&&$!==null&&pC($)}function lM(){x.actQueue!==null&&x.actQueue.push(function(){return UY(),null}),IO(function(){(e0&(G5|C6))!==F5?pY(cY,$C):UY()})}function BY(){if(z8===0){var $=F9;$===0&&($=RG,RG<<=1,(RG&261888)===0&&(RG=256)),z8=$}return z8}function rM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return H1($,"action"),b$(""+$)}function sM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function ZC($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=rM((U[g5]||null).action),W=Y.submitter;W&&(Z=(Z=W[g5]||null)?rM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new OG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(z8!==0){var L=W?sM(U,W):new FormData(U),P={pending:!0,data:L,method:U.method,action:B};Object.freeze(P),Dq(G,P,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=W?sM(U,W):new FormData(U),P={pending:!0,data:L,method:U.method,action:B},Object.freeze(P),Dq(G,P,B,L))},currentTarget:U}]})}}function JG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){NN(Y)}$.currentTarget=null}function nM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var R=Y[W],L=R.instance,P=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,JG,B,R,P):JG(B,R,P),U=L}else for(W=0;W<Y.length;W++){if(R=Y[W],L=R.instance,P=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,JG,B,R,P):JG(B,R,P),U=L}}}}function a0($,Z){iN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[sY];G===void 0&&(G=Z[sY]=new Set);var Y=$+"__bubble";G.has(Y)||(oM(Z,$,2,!1),G.add(Y))}function HY($,Z,G){iN.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),oM(G,$,Y,Z)}function MY($){if(!$[Y3]){$[Y3]=!0,lF.forEach(function(G){G!=="selectionchange"&&(iN.has(G)||HY(G,!1,$),HY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[Y3]||(Z[Y3]=!0,HY("selectionchange",!1,Z))}}function oM($,Z,G,Y){switch(EF(Z)){case T6:var U=fC;break;case Z4:U=yC;break;default:U=SY}G=U.bind(null,Z,G,$),U=void 0,!tY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function FY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var R=Y.stateNode.containerInfo;if(R===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;R!==null;){if(W=N0(R),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}qB(function(){var P=B,k=yX(G),f=[];$:{var S=EW.get($);if(S!==void 0){var g=OG,$0=$;switch($){case"keypress":if(BJ(G)===0)break $;case"keydown":case"keyup":g=jI;break;case"focusin":$0="focus",g=QN;break;case"focusout":$0="blur",g=QN;break;case"beforeblur":case"afterblur":g=QN;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=FW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=zI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=bI;break;case IW:case OW:case VW:g=_I;break;case AW:g=fI;break;case"scroll":case"scrollend":g=wI;break;case"wheel":g=gI;break;case"copy":case"cut":case"paste":g=CI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=wW;break;case"toggle":case"beforetoggle":g=uI}var G0=(Z&4)!==0,L1=!G0&&($==="scroll"||$==="scrollend"),i0=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=P,j;A!==null;){var b=A;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||i0===null||(b=k$(A,i0),b!=null&&G0.push(JZ(A,b,j))),L1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,G,k),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==FZ&&($0=G.relatedTarget||G.fromElement)&&(N0($0)||$0[e2]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=P,$0=$0?N0($0):null,$0!==null&&(L1=D($0),G0=$0.tag,$0!==L1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=P;if(g!==$0){if(G0=FW,b="onMouseLeave",i0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=wW,b="onPointerLeave",i0="onPointerEnter",A="pointer";if(L1=g==null?S:D0(g),j=$0==null?S:D0($0),S=new G0(b,A+"leave",g,G,k),S.target=L1,S.relatedTarget=j,b=null,N0(k)===P&&(G0=new G0(i0,A+"enter",$0,G,k),G0.target=j,G0.relatedTarget=L1,b=G0),L1=b,g&&$0)Z:{G0=QC,i0=g,A=$0,j=0;for(b=i0;b;b=G0(b))j++;b=0;for(var m=A;m;m=G0(m))b++;for(;0<j-b;)i0=G0(i0),j--;for(;0<b-j;)A=G0(A),b--;for(;j--;){if(i0===A||A!==null&&i0===A.alternate){G0=i0;break Z}i0=G0(i0),A=G0(A)}G0=null}else G0=null;g!==null&&aM(f,S,g,G0,!1),$0!==null&&L1!==null&&aM(f,L1,$0,G0,!0)}}}$:{if(S=P?D0(P):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=MB;else if(BB(S))if(PW)Q0=FP;else{Q0=HP;var E0=BP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?P&&v$(P.elementType)&&(Q0=MB):Q0=MP;if(Q0&&(Q0=Q0($,P))){HB(f,Q0,G,k);break $}E0&&E0($,S,P),$==="focusout"&&P&&S.type==="number"&&P.memoizedProps.value!=null&&jX(S,"number",S.value)}switch(E0=P?D0(P):window,$){case"focusin":if(BB(E0)||E0.contentEditable==="true")S7=E0,GN=P,_Z=null;break;case"focusout":_Z=GN=S7=null;break;case"mousedown":XN=!0;break;case"contextmenu":case"mouseup":case"dragend":XN=!1,LB(f,G,k);break;case"selectionchange":if(pI)break;case"keydown":case"keyup":LB(f,G,k)}var z0;if(JN)$:{switch($){case"compositionstart":var K0="onCompositionStart";break $;case"compositionend":K0="onCompositionEnd";break $;case"compositionupdate":K0="onCompositionUpdate";break $}K0=void 0}else E7?UB($,G)&&(K0="onCompositionEnd"):$==="keydown"&&G.keyCode===RW&&(K0="onCompositionStart");if(K0&&(zW&&G.locale!=="ko"&&(E7||K0!=="onCompositionStart"?K0==="onCompositionEnd"&&E7&&(z0=YB()):($8=k,eY=("value"in $8)?$8.value:$8.textContent,E7=!0)),E0=GG(P,K0),0<E0.length&&(K0=new WW(K0,$,null,G,k),f.push({event:K0,listeners:E0}),z0?K0.data=z0:(z0=KB(G),z0!==null&&(K0.data=z0)))),z0=mI?YP($,G):NP($,G))K0=GG(P,"onBeforeInput"),0<K0.length&&(E0=new OI("onBeforeInput","beforeinput",null,G,k),f.push({event:E0,listeners:K0}),E0.data=z0);ZC(f,$,P,G,k)}nM(f,Z)})}function JZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function GG($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=k$($,G),U!=null&&Y.unshift(JZ($,U,B)),U=k$($,Z),U!=null&&Y.push(JZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function QC($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function aM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var R=G,L=R.alternate,P=R.stateNode;if(R=R.tag,L!==null&&L===Y)break;R!==5&&R!==26&&R!==27||P===null||(L=P,U?(P=k$(G,B),P!=null&&W.unshift(JZ(G,P,L))):U||(P=k$(G,B),P!=null&&W.push(JZ(G,P,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function WY($,Z){JP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||HW||(HW=!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 G={registrationNameDependencies:N9,possibleRegistrationNames:nY};v$($)||typeof Z.is==="string"||XP($,Z,G),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,G,Y){Z!==G&&(G=n2(G),n2(Z)!==G&&(Y[$]=Z))}function JC($,Z,G){Z.forEach(function(Y){G[eM(Y)]=Y==="style"?RY($):$.getAttribute(Y)})}function E4($,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 iM($,Z){return $=$.namespaceURI===PG||$.namespaceURI===I7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function n2($){return k2($)&&(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.",x8($)),U5($)),(typeof $==="string"?$:""+$).replace(WO,`
176
+ `).replace(wO,"")}function tM($,Z){return Z=n2(Z),n2($)===Z?!0:!1}function F1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")KJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||D$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")KJ(""+Y,Z,!1),Z!=="body"&&D$($,""+Y);break;case"className":YJ($,"class",Y);break;case"tabIndex":YJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":YJ($,G,Y);break;case"style":JB($,Y,B);break;case"data":if(Z!=="object"){YJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}H1(Y,G),Y=b$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="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||K3||(K3=!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||U3||(U3=!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"?G==="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"||N3?Z!=="button"||U.type==null||U.type==="submit"||N3?typeof Y==="function"&&(U.name==null||iw||(iw=!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||K3||(K3=!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||U3||(U3=!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."))):(N3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(N3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="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(G,"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"&&(G==="formAction"?(Z!=="input"&&F1($,Z,"name",U.name,U,null),F1($,Z,"formEncType",U.formEncType,U,null),F1($,Z,"formMethod",U.formMethod,U,null),F1($,Z,"formTarget",U.formTarget,U,null)):(F1($,Z,"encType",U.encType,U,null),F1($,Z,"method",U.method,U,null),F1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}H1(Y,G),Y=b$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&E4(G,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("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(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}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}H1(Y,G),G=b$(""+Y),$.setAttributeNS(O9,"xlink:href",G);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"?(H1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||B3[G]||(B3[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));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(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(H1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(H1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(H1(Y,G),$.setAttribute(G,Y));break;case"popover":a0("beforetoggle",$),a0("toggle",$),qJ($,"popover",Y);break;case"xlinkActuate":n4($,O9,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,O9,"xlink:arcrole",Y);break;case"xlinkRole":n4($,O9,"xlink:role",Y);break;case"xlinkShow":n4($,O9,"xlink:show",Y);break;case"xlinkTitle":n4($,O9,"xlink:title",Y);break;case"xlinkType":n4($,O9,"xlink:type",Y);break;case"xmlBase":n4($,tN,"xml:base",Y);break;case"xmlLang":n4($,tN,"xml:lang",Y);break;case"xmlSpace":n4($,tN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),qJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":tw||Y==null||typeof Y!=="object"||(tw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=GB(G),qJ($,G,Y)):N9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&E4(G,Y)}}function wY($,Z,G,Y,U,B){switch(G){case"style":JB($,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(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?D$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&D$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&E4(G,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(N9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&E4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[g5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):qJ($,G,Y)}}}function R5($,Z,G){switch(WY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":a0("error",$),a0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=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:F1($,Z,B,W,G,null)}}U&&F1($,Z,"srcSet",G.srcSet,G,null),Y&&F1($,Z,"src",G.src,G,null);return;case"input":g2("input",G),a0("invalid",$);var R=B=W=U=null,L=null,P=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":P=k;break;case"value":B=k;break;case"defaultValue":R=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1($,Z,Y,k,G,null)}}mK($,G),dK($,B,R,L,P,W,U,!1);return;case"select":g2("select",G),a0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:F1($,Z,U,R,G,null)}lK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?Z7($,!!Y,Z,!1):G!=null&&Z7($,!!Y,G,!0);return;case"textarea":g2("textarea",G),a0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:F1($,Z,W,R,G,null)}rK($,G),nK($,Y,U,B);return;case"option":pK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:F1($,Z,L,Y,G,null)}return;case"dialog":a0("beforetoggle",$),a0("toggle",$),a0("cancel",$),a0("close",$);break;case"iframe":case"object":a0("load",$);break;case"video":case"audio":for(Y=0;Y<iZ.length;Y++)a0(iZ[Y],$);break;case"image":a0("error",$),a0("load",$);break;case"details":a0("toggle",$);break;case"embed":case"source":case"link":a0("error",$),a0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in G)if(G.hasOwnProperty(P)&&(Y=G[P],Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1($,Z,P,Y,G,null)}return;default:if(v$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&wY($,Z,k,Y,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(Y=G[R],Y!=null&&F1($,Z,R,Y,G,null))}function GC($,Z,G,Y){switch(WY(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,W=null,R=null,L=null,P=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||F1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":P=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=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&&F1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||aw||(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"),aw=!0),!Z||Y||ow||(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"),ow=!0),SX($,W,R,L,P,k,B,U);return;case"select":g=W=R=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||F1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==L&&F1($,Z,U,B,Y,L)}Y=R,Z=W,G=g,S!=null?Z7($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?Z7($,!!Z,Y,!0):Z7($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:F1($,Z,R,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){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&&F1($,Z,W,U,Y,B)}sK($,S,g);return;case"option":for(var $0 in G)if(S=G[$0],G.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:F1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:F1($,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 G)S=G[G0],G.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&F1($,Z,G0,null,Y,S);for(P in Y)if(S=Y[P],g=G[P],Y.hasOwnProperty(P)&&S!==g&&(S!=null||g!=null))switch(P){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:F1($,Z,P,S,Y,g)}return;default:if(v$(Z)){for(var L1 in G)S=G[L1],G.hasOwnProperty(L1)&&S!==void 0&&!Y.hasOwnProperty(L1)&&wY($,Z,L1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||wY($,Z,k,S,Y,g);return}}for(var i0 in G)S=G[i0],G.hasOwnProperty(i0)&&S!=null&&!Y.hasOwnProperty(i0)&&F1($,Z,i0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||F1($,Z,f,S,Y,g)}function eM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function RY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function $F($,Z,G){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 W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(V$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||KW.has(B)?(V$(W,B),Y+=U+B.replace(XW,"-$1").toLowerCase().replace(qW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(XW,"-$1").toLowerCase().replace(qW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=n2(Y),n2(Z)!==Y&&(G.style=RY($)))}}function S6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(H1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function ZF($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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 zY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(H1(Y,G),$===""+Y)return}K5(Z,$,Y,B)}function QF($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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)&&(H1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function TY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===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(H1(Y,Z),G=b$(""+Y),$===G)return}K5(Z,$,Y,B)}function JF($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(v$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var P=G[L];if(P!=null){if(N9.hasOwnProperty(L))typeof P!=="function"&&E4(L,P);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof P!=="string"&&typeof P!=="number"||K5("children",$.textContent,P,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,P=P?P.__html:void 0,P!=null&&(P=iM($,P),K5(L,W,P,U));continue;case"style":B.delete(L),$F($,P,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"),W=hK($,"class",P),K5("className",W,P,U);continue;default:Y.context===R2&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=hK($,L,P),K5(L,W,P,U)}}}}else for(P in G)if(G.hasOwnProperty(P)&&(L=G[P],L!=null)){if(N9.hasOwnProperty(P))typeof L!=="function"&&E4(P,L);else if(G.suppressHydrationWarning!==!0)switch(P){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":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=iM($,L),W!==L&&(U[P]={__html:W}));continue;case"className":S6($,P,"class",L,B,U);continue;case"tabIndex":S6($,P,"tabindex",L,B,U);continue;case"style":B.delete(P),$F($,L,U);continue;case"multiple":B.delete(P),K5(P,$.multiple,L,U);continue;case"muted":B.delete(P),K5(P,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(P,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(P),W=$.getAttribute("data"),K5(P,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&P==="href"||Z==="object"&&P==="data")){P==="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.',P,P):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.',P,P);continue}TY($,P,P,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(P),typeof L==="function"){B.delete(P.toLowerCase()),P==="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(W===RO){B.delete(P.toLowerCase()),K5(P,"function",L,U);continue}TY($,P,P.toLowerCase(),L,B,U);continue;case"xlinkHref":TY($,P,"xlink:href",L,B,U);continue;case"contentEditable":zY($,P,"contenteditable",L,B,U);continue;case"spellCheck":zY($,P,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":zY($,P,P,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":ZF($,P,P.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var k=W=P,f=U;if(B.delete(k),R=R.getAttribute(k),R===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&&R==="")break $;break;default:if(H1(L,W),R===""+L)break $}K5(W,R,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=P,f=U,B.delete(k),R=R.getAttribute(k),R===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)&&(H1(L,W),R===""+L))break $}K5(W,R,L,f)}continue;case"rowSpan":QF($,P,"rowspan",L,B,U);continue;case"start":QF($,P,P,L,B,U);continue;case"xHeight":S6($,P,"x-height",L,B,U);continue;case"xlinkActuate":S6($,P,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":S6($,P,"xlink:arcrole",L,B,U);continue;case"xlinkRole":S6($,P,"xlink:role",L,B,U);continue;case"xlinkShow":S6($,P,"xlink:show",L,B,U);continue;case"xlinkTitle":S6($,P,"xlink:title",L,B,U);continue;case"xlinkType":S6($,P,"xlink:type",L,B,U);continue;case"xmlBase":S6($,P,"xml:base",L,B,U);continue;case"xmlLang":S6($,P,"xml:lang",L,B,U);continue;case"xmlSpace":S6($,P,"xml:space",L,B,U);continue;case"inert":L!==""||B3[P]||(B3[P]=!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.",P)),ZF($,P,P,L,B,U);continue;default:if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){R=GB(P),W=!1,Y.context===R2&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=P.toLowerCase(),k=CG.hasOwnProperty(k)?CG[k]||null:null,k!==null&&k!==P&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=L,E$(f))if(k.hasAttribute(f))k=k.getAttribute(f),H1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||K5(P,R,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&JC($,B,U),Object.keys(U).length===0?null:U}function XC($,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 GF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qC(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,R=U.duration;if(B&&R&&GF(W)){W=0,R=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],P=L.startTime;if(P>R)break;var{transferSize:k,initiatorType:f}=L;k&&GF(f)&&(L=L.responseEnd,W+=k*(L<R?1:(R-P)/(L-P)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function XG($){return $.nodeType===9?$:$.ownerDocument}function XF($){switch($){case I7:return $$;case PG:return M3;default:return R2}}function qF($,Z){if($===R2)switch(Z){case"svg":return $$;case"math":return M3;default:return R2}return $===$$&&Z==="foreignObject"?R2:$}function LY($,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 YC(){var $=window.event;if($&&$.type==="popstate"){if($===QU)return!1;return QU=$,!0}return QU=null,!1}function GZ(){var $=window.event;return $&&$!==$Q?$.type:null}function XZ(){var $=window.event;return $&&$!==$Q?$.timeStamp:-1.1}function NC($){setTimeout(function(){throw $})}function UC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function KC(){}function BC($,Z,G,Y){GC($,Z,G,Y),$[g5]=Y}function YF($){D$($,"")}function HC($,Z,G){$.nodeValue=G}function NF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var G=j0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,X0(G,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,X0(G,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 o2($){return $==="head"}function MC($,Z){$.removeChild(Z)}function FC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function UF($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===eZ||G===H3){if(Y===0){$.removeChild(U),z7(Z);return}Y--}else if(G===tZ||G===T8||G===A9||G===e7||G===V9)Y++;else if(G===TO)qZ($.ownerDocument.documentElement);else if(G===_O){G=$.ownerDocument.head,qZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[MZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===LO&&qZ($.ownerDocument.body);G=U}while(G);z7(Z)}function KF($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===eZ)if($===0)break;else $--;else G!==tZ&&G!==T8&&G!==A9&&G!==e7||$++;G=Y}while(G)}function WC($){KF($,!0)}function wC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function RC($){$.nodeValue=""}function zC($){KF($,!1)}function TC($,Z){Z=Z[PO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function LC($,Z){$.nodeValue=Z}function _Y($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":_Y(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function _C($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){H1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[MZ])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 PC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=w6($.nextSibling),$===null)return null}return $}function BF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function PY($){return $.data===T8||$.data===A9}function CY($){return $.data===e7||$.data===T8&&$.ownerDocument.readyState!==$R}function CC($,Z){var G=$.ownerDocument;if($.data===A9)$._reactRetry=Z;else if($.data!==T8||G.readyState!==$R)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.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===tZ||Z===e7||Z===T8||Z===A9||Z===V9||Z===eN||Z===ew)break;if(Z===eZ||Z===H3)return null}}return $}function HF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[eM(B.name)]=B.name.toLowerCase()==="style"?RY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===V9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function MF($,Z,G){return G===null||G[zO]!==!0?($.nodeValue===Z?$=null:(Z=n2(Z),$=n2($.nodeValue)===Z?null:$.nodeValue),$):null}function IY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===eZ||G===H3){if(Z===0)return w6($.nextSibling);Z--}else G!==tZ&&G!==e7&&G!==T8&&G!==A9&&G!==V9||Z++}$=$.nextSibling}return null}function FF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===tZ||G===e7||G===T8||G===A9||G===V9){if(Z===0)return $;Z--}else G!==eZ&&G!==H3||Z++}$=$.previousSibling}return null}function IC($){z7($)}function OC($){z7($)}function VC($){z7($)}function WF($,Z,G,Y,U){switch(U&&fX($,Y.ancestorInfo),Z=XG(G),$){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 AC($,Z,G,Y){if(!G[e2]&&j0(G)){var U=G.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=G.attributes;U.length;)G.removeAttributeNode(U[0]);R5(G,$,Z),G[z5]=Y,G[g5]=Z}function qZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function qG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function wF($,Z,G){var Y=Z$;if(Y&&typeof Z==="string"&&Z){var U=E6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),qR.has(U)||(qR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),T0(Z),Y.head.appendChild(Z)))}}function RF($,Z,G,Y){var U=(U=i2.current)?qG(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 G.precedence==="string"&&typeof G.href==="string"?(G=w7(G.href),Z=$1(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=w7(G.href);var B=$1(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:S9,preload:null}},B.set($,W),(B=U.querySelector(YZ($)))&&!B._p&&(W.instance=B,W.state.loading=ZQ|x6),!m6.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};m6.set($,R),B||EC(U,$,R,W.state)}if(Z&&Y===null)throw G=`
177
177
 
178
- - `+JG(Z)+`
179
- + `+JG(G),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."+G);return W}if(Z&&Y!==null)throw G=`
178
+ - `+YG(Z)+`
179
+ + `+YG(G),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."+G);return W}if(Z&&Y!==null)throw G=`
180
180
 
181
- - `+JG(Z)+`
182
- + `+JG(G),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."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=F7(G),Z=e0(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,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 JG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):a6.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):a6.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):a6.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function M7($){return'href="'+V6($)+'"'}function GZ($){return'link[rel="stylesheet"]['+$+"]"}function FF($){return d0({},$,{"data-precedence":$.precedence,precedence:null})}function PC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=tZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=tZ}),Z.addEventListener("error",function(){return Y.loading|=$R}),M5(Z,"link",G),z0(Z),$.head.appendChild(Z))}function F7($){return'[src="'+V6($)+'"]'}function XZ($){return"script[async]"+$}function WF($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+V6(G.href)+'"]');if(Y)return Z.instance=Y,z0(Y),Y;var U=d0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),z0(Y),M5(Y,"style",U),GG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=M7(G.href);var B=$.querySelector(GZ(U));if(B)return Z.state.loading|=g6,Z.instance=B,z0(B),B;Y=FF(G),(U=h6.get(U))&&PY(Y,U),B=($.ownerDocument||$).createElement("link"),z0(B);var W=B;return W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),M5(B,"link",Y),Z.state.loading|=g6,GG(B,G.precedence,$),Z.instance=B;case"script":if(B=F7(G.src),U=$.querySelector(XZ(B)))return Z.instance=U,z0(U),U;if(Y=G,U=h6.get(B))Y=d0({},G),_Y(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),z0(U),M5(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&g6)===E9&&(Y=Z.instance,Z.state.loading|=g6,GG(Y,G.precedence,$));return Z.instance}function GG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function PY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function _Y($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function wF($,Z,G){if(K3===null){var Y=new Map,U=K3=new Map;U.set(G,Y)}else U=K3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[KZ]||B[F5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==P7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function RF($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function _C($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===i7||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;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=t_(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.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 zF($){return $.type==="stylesheet"&&($.state.loading&ZR)===E9?!1:!0}function CC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&g6)===E9){if(G.instance===null){var U=M7(Y.href),B=Z.querySelector(GZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=XG.bind($),Z.then($,$)),G.state.loading|=g6,G.instance=B,z0(B);return}B=Z.ownerDocument||Z,Y=FF(Y),(U=h6.get(U))&&PY(Y,U),B=B.createElement("link"),z0(B);var W=B;W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),M5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&ZR)===E9&&($.count++,G=XG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function IC($,Z){return $.stylesheets&&$.count===0&&qG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&qG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},zV+Z);0<$.imgBytes&&$U===0&&($U=125*e_()*LV);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&qG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>$U?50:TV)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function XG(){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++,B3=new Map,Z.forEach(VC,$),B3=null,XG.call($))}function VC($,Z){if(!(Z.state.loading&g6)){var G=B3.get($);if(G)var Y=G.get(ZU);else{G=new Map,B3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(ZU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(ZU,U),G.set(W,U),this.count++,Y=XG.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|=g6}}function OC($,Z,G,Y,U,B,W,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=O9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=i9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=i9(0),this.hiddenUpdates=i9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,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=G?"hydrateRoot()":"createRoot()"}function TF($,Z,G,Y,U,B,W,R,L,_,k,f){return $=new OC($,Z,G,W,L,_,k,f,R),Z=lI,B===!0&&(Z|=I5|t6),Z|=f0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=aX(),e2(Z),$.pooledCache=Z,e2(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Zq(B),$}function LF($){if(!$)return $2;return $=$2,$}function CY($,Z,G,Y,U,B){if(C5&&typeof C5.onScheduleFiberRoot==="function")try{C5.onScheduleFiberRoot(T7,Y,G)}catch(W){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",W))}U=LF(U),Y.context===null?Y.context=U:Y.pendingContext=U,V4&&F6!==null&&!qR&&(qR=!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
+ - `+YG(Z)+`
182
+ + `+YG(G),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."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=R7(G),Z=$1(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,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 YG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):$4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):$4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):$4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function w7($){return'href="'+E6($)+'"'}function YZ($){return'link[rel="stylesheet"]['+$+"]"}function zF($){return c0({},$,{"data-precedence":$.precedence,precedence:null})}function EC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=ZQ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=ZQ}),Z.addEventListener("error",function(){return Y.loading|=GR}),R5(Z,"link",G),T0(Z),$.head.appendChild(Z))}function R7($){return'[src="'+E6($)+'"]'}function NZ($){return"script[async]"+$}function TF($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+E6(G.href)+'"]');if(Y)return Z.instance=Y,T0(Y),Y;var U=c0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),T0(Y),R5(Y,"style",U),NG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=w7(G.href);var B=$.querySelector(YZ(U));if(B)return Z.state.loading|=x6,Z.instance=B,T0(B),B;Y=zF(G),(U=m6.get(U))&&OY(Y,U),B=($.ownerDocument||$).createElement("link"),T0(B);var W=B;return W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),R5(B,"link",Y),Z.state.loading|=x6,NG(B,G.precedence,$),Z.instance=B;case"script":if(B=R7(G.src),U=$.querySelector(NZ(B)))return Z.instance=U,T0(U),U;if(Y=G,U=m6.get(B))Y=c0({},G),VY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),T0(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&x6)===S9&&(Y=Z.instance,Z.state.loading|=x6,NG(Y,G.precedence,$));return Z.instance}function NG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function OY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function VY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function LF($,Z,G){if(F3===null){var Y=new Map,U=F3=new Map;U.set(G,Y)}else U=F3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[MZ]||B[z5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==I7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function _F($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function SC($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===$$||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;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=XC(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.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 PF($){return $.type==="stylesheet"&&($.state.loading&XR)===S9?!1:!0}function jC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&x6)===S9){if(G.instance===null){var U=w7(Y.href),B=Z.querySelector(YZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=UG.bind($),Z.then($,$)),G.state.loading|=x6,G.instance=B,T0(B);return}B=Z.ownerDocument||Z,Y=zF(Y),(U=m6.get(U))&&OY(Y,U),B=B.createElement("link"),T0(B);var W=B;W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),R5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&XR)===S9&&($.count++,G=UG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function DC($,Z){return $.stylesheets&&$.count===0&&KG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&KG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},OO+Z);0<$.imgBytes&&GU===0&&(GU=125*qC()*AO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&KG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>GU?50:VO)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function UG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)KG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function KG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,W3=new Map,Z.forEach(vC,$),W3=null,UG.call($))}function vC($,Z){if(!(Z.state.loading&x6)){var G=W3.get($);if(G)var Y=G.get(XU);else{G=new Map,W3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(XU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(XU,U),G.set(W,U),this.count++,Y=UG.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|=x6}}function bC($,Z,G,Y,U,B,W,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=E9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$7(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$7(0),this.hiddenUpdates=$7(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,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=G?"hydrateRoot()":"createRoot()"}function CF($,Z,G,Y,U,B,W,R,L,P,k,f){return $=new bC($,Z,G,W,L,P,k,f,R),Z=tI,B===!0&&(Z|=S5|Q4),Z|=y0,B=_(3,null,null,Z),$.current=B,B.stateNode=$,Z=$q(),Z9(Z),$.pooledCache=Z,Z9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Xq(B),$}function IF($){if(!$)return J8;return $=J8,$}function AY($,Z,G,Y,U,B){if(E5&&typeof E5.onScheduleFiberRoot==="function")try{E5.onScheduleFiberRoot(P7,Y,G)}catch(W){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",W))}U=IF(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&z6!==null&&!KR&&(KR=!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(F6)||"Unknown")),Y=u8(Z),Y.payload={element:G},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),G=x8($,Y,Z),G!==null&&(K4(Z,"root.render()",null),D1(G,$,Z),u$(G,$,Z))}function PF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function IY($,Z){PF($,Z),($=$.alternate)&&PF($,Z)}function _F($){if($.tag===13||$.tag===31){var Z=_5($,67108864);Z!==null&&D1(Z,$,67108864),IY($,67108864)}}function CF($){if($.tag===13||$.tag===31){var Z=B6($);Z=c2(Z);var G=_5($,Z);G!==null&&D1(G,$,Z),IY($,Z)}}function EC(){return F6}function AC($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=W6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function SC($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=i6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function VY($,Z,G,Y){if(M3){var U=OY(Y);if(U===null)KY($,Z,Y,F3,G),VF($,Y);else if(jC(U,$,Z,G,Y))Y.stopPropagation();else if(VF($,Y),Z&4&&-1<_V.indexOf($)){for(;U!==null;){var B=S0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=q4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var L=1<<31-S5(W);R.entanglements[1]|=L,W&=~L}P4(B),(i0&(Q5|T6))===K5&&(aG=Y5()+kw,e$(0,!1))}}break;case 31:case 13:R=_5(B,2),R!==null&&D1(R,B,2),K7(),IY(B,2)}if(B=OY(Y),B===null&&KY($,Z,Y,F3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else KY($,Z,Y,null,G)}}function OY($){return $=vX($),EY($)}function EY($){if(F3=null,$=Y0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return F3=$,null}function IF($){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 W6;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 i6;case"message":switch(uC()){case xY:return W6;case mY:return i6;case z7:case xC:return A4;case dY:return wG;default:return A4}default:return A4}}function VF($,Z){switch($){case"focusin":case"focusout":R2=null;break;case"dragenter":case"dragleave":z2=null;break;case"mouseover":case"mouseout":T2=null;break;case"pointerover":case"pointerout":$Q.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":ZQ.delete(Z.pointerId)}}function qZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=S0(Z),Z!==null&&_F(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function jC($,Z,G,Y,U){switch(Z){case"focusin":return R2=qZ(R2,$,Z,G,Y,U),!0;case"dragenter":return z2=qZ(z2,$,Z,G,Y,U),!0;case"mouseover":return T2=qZ(T2,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return $Q.set(B,qZ($Q.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,ZQ.set(B,qZ(ZQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function OF($){var Z=Y0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){CF(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){CF(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function YG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=OY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;BZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),BZ=U,G.target.dispatchEvent(Y),BZ===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."),BZ=null}else return Z=S0(G),Z!==null&&_F(Z),$.blockedOn=G,!1;Z.shift()}return!0}function EF($,Z,G){YG($)&&G.delete(Z)}function DC(){QU=!1,R2!==null&&YG(R2)&&(R2=null),z2!==null&&YG(z2)&&(z2=null),T2!==null&&YG(T2)&&(T2=null),$Q.forEach(EF),ZQ.forEach(EF)}function NG($,Z){$.blockedOn===Z&&($.blockedOn=null,QU||(QU=!0,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,DC)))}function AF($){W3!==$&&(W3=$,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,function(){W3===$&&(W3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(EY(Y||G)===null)continue;else break;var B=S0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),Eq(B,G,Y,U))}}))}function W7($){function Z(L){return NG(L,$)}R2!==null&&NG(R2,$),z2!==null&&NG(z2,$),T2!==null&&NG(T2,$),$Q.forEach(Z),ZQ.forEach(Z);for(var G=0;G<L2.length;G++){var Y=L2[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<L2.length&&(G=L2[0],G.blockedOn===null);)OF(G),G.blockedOn===null&&L2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[j5]||null;if(typeof B==="function")W||AF(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[j5]||null)R=W.formAction;else if(EY(U)!==null)continue}else R=W.action;typeof R==="function"?G[Y+1]=R:(G.splice(Y,3),Y-=3),AF(G)}}}function SF(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){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(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function AY($){this._internalRoot=$}function UG($){this._internalRoot=$}function jF($){$[a8]&&($._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 d0=Object.assign,vC=Symbol.for("react.element"),C4=Symbol.for("react.transitional.element"),w7=Symbol.for("react.portal"),R7=Symbol.for("react.fragment"),KG=Symbol.for("react.strict_mode"),SY=Symbol.for("react.profiler"),jY=Symbol.for("react.consumer"),I4=Symbol.for("react.context"),YZ=Symbol.for("react.forward_ref"),DY=Symbol.for("react.suspense"),vY=Symbol.for("react.suspense_list"),BG=Symbol.for("react.memo"),M6=Symbol.for("react.lazy"),bY=Symbol.for("react.activity"),bC=Symbol.for("react.memo_cache_sentinel"),DF=Symbol.iterator,kC=Symbol.for("react.client.reference"),$5=Array.isArray,x=K$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=HK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fC=Object.freeze({pending:!1,data:null,method:null,action:null}),kY=[],fY=[],$8=-1,s8=K0(null),NZ=K0(null),n8=K0(null),HG=K0(null),UZ=0,vF,bF,kF,fF,yF,gF,hF;v.__reactDisabledLog=!0;var yY,uF,gY=!1,hY=new(typeof WeakMap==="function"?WeakMap:Map),F6=null,V4=!1,a6=Object.prototype.hasOwnProperty,uY=Z1.unstable_scheduleCallback,yC=Z1.unstable_cancelCallback,gC=Z1.unstable_shouldYield,hC=Z1.unstable_requestPaint,Y5=Z1.unstable_now,uC=Z1.unstable_getCurrentPriorityLevel,xY=Z1.unstable_ImmediatePriority,mY=Z1.unstable_UserBlockingPriority,z7=Z1.unstable_NormalPriority,xC=Z1.unstable_LowPriority,dY=Z1.unstable_IdlePriority,mC=Z1.log,dC=Z1.unstable_setDisableYieldValue,T7=null,C5=null,O4=!1,E4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",S5=Math.clz32?Math.clz32:$J,pC=Math.log,cC=Math.LN2,MG=256,FG=262144,WG=4194304,W6=2,i6=8,A4=32,wG=268435456,o8=Math.random().toString(36).slice(2),F5="__reactFiber$"+o8,j5="__reactProps$"+o8,a8="__reactContainer$"+o8,pY="__reactEvents$"+o8,lC="__reactListeners$"+o8,rC="__reactHandles$"+o8,xF="__reactResources$"+o8,KZ="__reactMarker$"+o8,mF=new Set,q9={},cY={},sC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},nC=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]*$"),dF={},pF={},oC=/[\n"\\]/g,cF=!1,lF=!1,rF=!1,sF=!1,nF=!1,oF=!1,aF=["value","defaultValue"],iF=!1,tF=/["'&<>\n\t]|^\s|\s$/,aC="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(" "),eF="applet caption html table td th marquee object template foreignObject desc title".split(" "),iC=eF.concat(["button"]),tC="dd dt li option optgroup p rp rt".split(" "),$W={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},RG={},lY={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"]},ZW=/([A-Z])/g,QW=/^ms-/,eC=/^(?:webkit|moz|o)[A-Z]/,$I=/^-ms-/,ZI=/-(.)/g,JW=/;\s*$/,L7={},rY={},GW=!1,XW=!1,qW=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",P7="http://www.w3.org/2000/svg",QI=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"]]),TG={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"},YW={"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},_7={},JI=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]*$"),GI=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]*$"),NW=!1,D5={},UW=/^on./,XI=/^on[^A-Z]/,qI=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]*$"),YI=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]*$"),NI=/^[\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,BZ=null,C7=null,I7=null,sY=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nY=!1;if(S4)try{var HZ={};Object.defineProperty(HZ,"passive",{get:function(){nY=!0}}),window.addEventListener("test",HZ,HZ),window.removeEventListener("test",HZ,HZ)}catch($){nY=!1}var i8=null,oY=null,LG=null,Y9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PG=u5(Y9),MZ=d0({},Y9,{view:0,detail:0}),UI=u5(MZ),aY,iY,FZ,_G=d0({},MZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bX,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"?(aY=$.screenX-FZ.screenX,iY=$.screenY-FZ.screenY):iY=aY=0,FZ=$),aY},movementY:function($){return"movementY"in $?$.movementY:iY}}),KW=u5(_G),KI=d0({},_G,{dataTransfer:0}),BI=u5(KI),HI=d0({},MZ,{relatedTarget:0}),tY=u5(HI),MI=d0({},Y9,{animationName:0,elapsedTime:0,pseudoElement:0}),FI=u5(MI),WI=d0({},Y9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),wI=u5(WI),RI=d0({},Y9,{data:0}),BW=u5(RI),zI=BW,TI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LI={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"},PI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_I=d0({},MZ,{key:function($){if($.key){var Z=TI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=YJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?LI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bX,charCode:function($){return $.type==="keypress"?YJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?YJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),CI=u5(_I),II=d0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HW=u5(II),VI=d0({},MZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bX}),OI=u5(VI),EI=d0({},Y9,{propertyName:0,elapsedTime:0,pseudoElement:0}),AI=u5(EI),SI=d0({},_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}),jI=u5(SI),DI=d0({},Y9,{newState:0,oldState:0}),vI=u5(DI),bI=[9,13,27,32],MW=229,eY=S4&&"CompositionEvent"in window,WZ=null;S4&&"documentMode"in document&&(WZ=document.documentMode);var kI=S4&&"TextEvent"in window&&!WZ,FW=S4&&(!eY||WZ&&8<WZ&&11>=WZ),WW=32,wW=String.fromCharCode(WW),RW=!1,V7=!1,fI={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},wZ=null,RZ=null,zW=!1;S4&&(zW=Q_("input")&&(!document.documentMode||9<document.documentMode));var v5=typeof Object.is==="function"?Object.is:N_,yI=S4&&"documentMode"in document&&11>=document.documentMode,O7=null,$N=null,zZ=null,ZN=!1,E7={animationend:r2("Animation","AnimationEnd"),animationiteration:r2("Animation","AnimationIteration"),animationstart:r2("Animation","AnimationStart"),transitionrun:r2("Transition","TransitionRun"),transitionstart:r2("Transition","TransitionStart"),transitioncancel:r2("Transition","TransitionCancel"),transitionend:r2("Transition","TransitionEnd")},QN={},TW={};S4&&(TW=document.createElement("div").style,("AnimationEvent"in window)||(delete E7.animationend.animation,delete E7.animationiteration.animation,delete E7.animationstart.animation),("TransitionEvent"in window)||delete E7.transitionend.transition);var LW=s2("animationend"),PW=s2("animationiteration"),_W=s2("animationstart"),gI=s2("transitionrun"),hI=s2("transitionstart"),uI=s2("transitioncancel"),CW=s2("transitionend"),IW=new Map,JN="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(" ");JN.push("scrollEnd");var VW=0;if(typeof performance==="object"&&typeof performance.now==="function")var xI=performance,OW=function(){return xI.now()};else{var mI=Date;OW=function(){return mI.now()}}var GN=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($)},dI="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.",CG=0,XN=1,qN=2,YN=3,IG="– ",VG="+ ",EW="  ",L1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",E6="Components ⚛",p0="Scheduler ⚛",l0="Blocking",t8=!1,Z8={color:"primary",properties:null,tooltipText:"",track:E6},e8={start:-0,end:-0,detail:{devtools:Z8}},pI=["Changed Props",""],AW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cI=["Changed Props",AW],TZ=1,Q8=2,A6=[],A7=0,NN=0,$2={};Object.freeze($2);var S6=null,S7=null,I0=0,lI=1,f0=2,I5=8,t6=16,rI=32,SW=!1;try{var jW=Object.preventExtensions({})}catch($){SW=!0}var UN=new WeakMap,j7=[],D7=0,OG=null,LZ=0,j6=[],D6=0,N9=null,J8=1,G8="",W5=null,P1=null,s0=!1,j4=!1,w6=null,Z2=null,v6=!1,KN=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."),BN=K0(null),HN=K0(null),DW={},EG=null,v7=null,b7=!1,sI=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},nI=Z1.unstable_scheduleCallback,oI=Z1.unstable_NormalPriority,c1={$$typeof:I4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},l1=Z1.unstable_now,AG=console.createTask?console.createTask:function(){return null},PZ=1,SG=2,N5=-0,Q2=-0,X8=-0,q8=null,b5=-1.1,U9=-0,A1=-0,T0=-1.1,P0=-1.1,E1=null,v1=!1,J2=-0,D4=-1.1,_Z=null,G2=0,MN=null,FN=null,K9=-1.1,CZ=null,k7=-1.1,jG=-1.1,v4=-0,Y8=-1.1,b6=-1.1,WN=0,IZ=null,vW=null,bW=null,X2=-1.1,B9=null,q2=-1.1,DG=-1.1,kW=-0,fW=-0,vG=0,N8=null,yW=0,VZ=-1.1,bG=!1,kG=!1,OZ=null,wN=0,H9=0,f7=null,gW=x.S;x.S=function($,Z){if(vw=Y5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>Y8&&0>b6){Y8=l1();var G=QZ(),Y=ZZ();if(G!==q2||Y!==B9)q2=-1.1;X2=G,B9=Y}W_($,Z)}gW!==null&&gW($,Z)};var M9=K0(null),e6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},EZ=[],AZ=[],SZ=[],jZ=[],DZ=[],vZ=[],F9=new Set;e6.recordUnsafeLifecycleWarnings=function($,Z){F9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&EZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillMount==="function"&&AZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&SZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&jZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&vZ.push($))},e6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<EZ.length&&(EZ.forEach(function(R){$.add(d(R)||"Component"),F9.add(R.type)}),EZ=[]);var Z=new Set;0<AZ.length&&(AZ.forEach(function(R){Z.add(d(R)||"Component"),F9.add(R.type)}),AZ=[]);var G=new Set;0<SZ.length&&(SZ.forEach(function(R){G.add(d(R)||"Component"),F9.add(R.type)}),SZ=[]);var Y=new Set;0<jZ.length&&(jZ.forEach(function(R){Y.add(d(R)||"Component"),F9.add(R.type)}),jZ=[]);var U=new Set;0<DZ.length&&(DZ.forEach(function(R){U.add(d(R)||"Component"),F9.add(R.type)}),DZ=[]);var B=new Set;if(0<vZ.length&&(vZ.forEach(function(R){B.add(d(R)||"Component"),F9.add(R.type)}),vZ=[]),0<Z.size){var W=T(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.`,d(z6)||"Unknown")),Y=d2(Z),Y.payload={element:G},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),G=p2($,Y,Z),G!==null&&(w4(Z,"root.render()",null),f1(G,$,Z),d$(G,$,Z))}function OF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function EY($,Z){OF($,Z),($=$.alternate)&&OF($,Z)}function VF($){if($.tag===13||$.tag===31){var Z=A5($,67108864);Z!==null&&f1(Z,$,67108864),EY($,67108864)}}function AF($){if($.tag===13||$.tag===31){var Z=W6($);Z=r8(Z);var G=A5($,Z);G!==null&&f1(G,$,Z),EY($,Z)}}function kC(){return z6}function fC($,Z,G,Y){var U=x.T;x.T=null;var B=Y1.p;try{Y1.p=T6,SY($,Z,G,Y)}finally{Y1.p=B,x.T=U}}function yC($,Z,G,Y){var U=x.T;x.T=null;var B=Y1.p;try{Y1.p=Z4,SY($,Z,G,Y)}finally{Y1.p=B,x.T=U}}function SY($,Z,G,Y){if(R3){var U=jY(Y);if(U===null)FY($,Z,Y,z3,G),SF($,Y);else if(gC(U,$,Z,G,Y))Y.stopPropagation();else if(SF($,Y),Z&4&&-1<SO.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 W=H4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var L=1<<31-y5(W);R.entanglements[1]|=L,W&=~L}A4(B),(e0&(G5|C6))===F5&&($3=B5()+hw,QZ(0,!1))}}break;case 31:case 13:R=A5(B,2),R!==null&&f1(R,B,2),M7(),EY(B,2)}if(B=jY(Y),B===null&&FY($,Z,Y,z3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else FY($,Z,Y,null,G)}}function jY($){return $=yX($),DY($)}function DY($){if(z3=null,$=N0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return z3=$,null}function EF($){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 T6;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 Z4;case"message":switch(rC()){case cY:return T6;case lY:return Z4;case _7:case sC:return k4;case rY:return LG;default:return k4}default:return k4}}function SF($,Z){switch($){case"focusin":case"focusout":L8=null;break;case"dragenter":case"dragleave":_8=null;break;case"mouseover":case"mouseout":P8=null;break;case"pointerover":case"pointerout":JQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":GQ.delete(Z.pointerId)}}function UZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&VF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function gC($,Z,G,Y,U){switch(Z){case"focusin":return L8=UZ(L8,$,Z,G,Y,U),!0;case"dragenter":return _8=UZ(_8,$,Z,G,Y,U),!0;case"mouseover":return P8=UZ(P8,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return JQ.set(B,UZ(JQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,GQ.set(B,UZ(GQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function jF($){var Z=N0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){AF(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){AF(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function BG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=jY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;FZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),FZ=U,G.target.dispatchEvent(Y),FZ===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."),FZ=null}else return Z=j0(G),Z!==null&&VF(Z),$.blockedOn=G,!1;Z.shift()}return!0}function DF($,Z,G){BG($)&&G.delete(Z)}function hC(){qU=!1,L8!==null&&BG(L8)&&(L8=null),_8!==null&&BG(_8)&&(_8=null),P8!==null&&BG(P8)&&(P8=null),JQ.forEach(DF),GQ.forEach(DF)}function HG($,Z){$.blockedOn===Z&&($.blockedOn=null,qU||(qU=!0,Q1.unstable_scheduleCallback(Q1.unstable_NormalPriority,hC)))}function vF($){T3!==$&&(T3=$,Q1.unstable_scheduleCallback(Q1.unstable_NormalPriority,function(){T3===$&&(T3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(DY(Y||G)===null)continue;else break;var B=j0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),Dq(B,G,Y,U))}}))}function z7($){function Z(L){return HG(L,$)}L8!==null&&HG(L8,$),_8!==null&&HG(_8,$),P8!==null&&HG(P8,$),JQ.forEach(Z),GQ.forEach(Z);for(var G=0;G<C8.length;G++){var Y=C8[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<C8.length&&(G=C8[0],G.blockedOn===null);)jF(G),G.blockedOn===null&&C8.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[g5]||null;if(typeof B==="function")W||vF(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[g5]||null)R=W.formAction;else if(DY(U)!==null)continue}else R=W.action;typeof R==="function"?G[Y+1]=R:(G.splice(Y,3),Y-=3),vF(G)}}}function bF(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){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(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function vY($){this._internalRoot=$}function MG($){this._internalRoot=$}function kF($){$[e2]&&($._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 c0=Object.assign,uC=Symbol.for("react.element"),S4=Symbol.for("react.transitional.element"),T7=Symbol.for("react.portal"),L7=Symbol.for("react.fragment"),FG=Symbol.for("react.strict_mode"),bY=Symbol.for("react.profiler"),kY=Symbol.for("react.consumer"),j4=Symbol.for("react.context"),KZ=Symbol.for("react.forward_ref"),fY=Symbol.for("react.suspense"),yY=Symbol.for("react.suspense_list"),WG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),gY=Symbol.for("react.activity"),xC=Symbol.for("react.memo_cache_sentinel"),fF=Symbol.iterator,mC=Symbol.for("react.client.reference"),Q5=Array.isArray,x=M$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y1=wK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dC=Object.freeze({pending:!1,data:null,method:null,action:null}),hY=[],uY=[],J2=-1,a2=H0(null),BZ=H0(null),i2=H0(null),wG=H0(null),HZ=0,yF,gF,hF,uF,xF,mF,dF;v.__reactDisabledLog=!0;var xY,pF,mY=!1,dY=new(typeof WeakMap==="function"?WeakMap:Map),z6=null,D4=!1,$4=Object.prototype.hasOwnProperty,pY=Q1.unstable_scheduleCallback,pC=Q1.unstable_cancelCallback,cC=Q1.unstable_shouldYield,lC=Q1.unstable_requestPaint,B5=Q1.unstable_now,rC=Q1.unstable_getCurrentPriorityLevel,cY=Q1.unstable_ImmediatePriority,lY=Q1.unstable_UserBlockingPriority,_7=Q1.unstable_NormalPriority,sC=Q1.unstable_LowPriority,rY=Q1.unstable_IdlePriority,nC=Q1.log,oC=Q1.unstable_setDisableYieldValue,P7=null,E5=null,v4=!1,b4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:GJ,aC=Math.log,iC=Math.LN2,RG=256,zG=262144,TG=4194304,T6=2,Z4=8,k4=32,LG=268435456,t2=Math.random().toString(36).slice(2),z5="__reactFiber$"+t2,g5="__reactProps$"+t2,e2="__reactContainer$"+t2,sY="__reactEvents$"+t2,tC="__reactListeners$"+t2,eC="__reactHandles$"+t2,cF="__reactResources$"+t2,MZ="__reactMarker$"+t2,lF=new Set,N9={},nY={},$I={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ZI=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]*$"),rF={},sF={},QI=/[\n"\\]/g,nF=!1,oF=!1,aF=!1,iF=!1,tF=!1,eF=!1,$W=["value","defaultValue"],ZW=!1,QW=/["'&<>\n\t]|^\s|\s$/,JI="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(" "),JW="applet caption html table td th marquee object template foreignObject desc title".split(" "),GI=JW.concat(["button"]),XI="dd dt li option optgroup p rp rt".split(" "),GW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_G={},oY={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"]},XW=/([A-Z])/g,qW=/^ms-/,qI=/^(?:webkit|moz|o)[A-Z]/,YI=/^-ms-/,NI=/-(.)/g,YW=/;\s*$/,C7={},aY={},NW=!1,UW=!1,KW=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(" ")),PG="http://www.w3.org/1998/Math/MathML",I7="http://www.w3.org/2000/svg",UI=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"]]),CG={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"},BW={"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},O7={},KI=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]*$"),BI=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]*$"),HW=!1,h5={},MW=/^on./,HI=/^on[^A-Z]/,MI=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]*$"),FI=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]*$"),WI=/^[\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,FZ=null,V7=null,A7=null,iY=!1,f4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tY=!1;if(f4)try{var WZ={};Object.defineProperty(WZ,"passive",{get:function(){tY=!0}}),window.addEventListener("test",WZ,WZ),window.removeEventListener("test",WZ,WZ)}catch($){tY=!1}var $8=null,eY=null,IG=null,U9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OG=c5(U9),wZ=c0({},U9,{view:0,detail:0}),wI=c5(wZ),$N,ZN,RZ,VG=c0({},wZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==RZ&&(RZ&&$.type==="mousemove"?($N=$.screenX-RZ.screenX,ZN=$.screenY-RZ.screenY):ZN=$N=0,RZ=$),$N},movementY:function($){return"movementY"in $?$.movementY:ZN}}),FW=c5(VG),RI=c0({},VG,{dataTransfer:0}),zI=c5(RI),TI=c0({},wZ,{relatedTarget:0}),QN=c5(TI),LI=c0({},U9,{animationName:0,elapsedTime:0,pseudoElement:0}),_I=c5(LI),PI=c0({},U9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),CI=c5(PI),II=c0({},U9,{data:0}),WW=c5(II),OI=WW,VI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AI={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"},EI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},SI=c0({},wZ,{key:function($){if($.key){var Z=VI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=BJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?AI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gX,charCode:function($){return $.type==="keypress"?BJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?BJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),jI=c5(SI),DI=c0({},VG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wW=c5(DI),vI=c0({},wZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gX}),bI=c5(vI),kI=c0({},U9,{propertyName:0,elapsedTime:0,pseudoElement:0}),fI=c5(kI),yI=c0({},VG,{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}),gI=c5(yI),hI=c0({},U9,{newState:0,oldState:0}),uI=c5(hI),xI=[9,13,27,32],RW=229,JN=f4&&"CompositionEvent"in window,zZ=null;f4&&"documentMode"in document&&(zZ=document.documentMode);var mI=f4&&"TextEvent"in window&&!zZ,zW=f4&&(!JN||zZ&&8<zZ&&11>=zZ),TW=32,LW=String.fromCharCode(TW),_W=!1,E7=!1,dI={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},TZ=null,LZ=null,PW=!1;f4&&(PW=UP("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:WP,pI=f4&&"documentMode"in document&&11>=document.documentMode,S7=null,GN=null,_Z=null,XN=!1,j7={animationend:n8("Animation","AnimationEnd"),animationiteration:n8("Animation","AnimationIteration"),animationstart:n8("Animation","AnimationStart"),transitionrun:n8("Transition","TransitionRun"),transitionstart:n8("Transition","TransitionStart"),transitioncancel:n8("Transition","TransitionCancel"),transitionend:n8("Transition","TransitionEnd")},qN={},CW={};f4&&(CW=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var IW=o8("animationend"),OW=o8("animationiteration"),VW=o8("animationstart"),cI=o8("transitionrun"),lI=o8("transitionstart"),rI=o8("transitioncancel"),AW=o8("transitionend"),EW=new Map,YN="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(" ");YN.push("scrollEnd");var SW=0;if(typeof performance==="object"&&typeof performance.now==="function")var sI=performance,jW=function(){return sI.now()};else{var nI=Date;jW=function(){return nI.now()}}var NN=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($)},oI="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.",AG=0,UN=1,KN=2,BN=3,EG="– ",SG="+ ",DW="  ",C1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",l0="Scheduler ⚛",s0="Blocking",Z8=!1,G2={color:"primary",properties:null,tooltipText:"",track:j6},Q8={start:-0,end:-0,detail:{devtools:G2}},aI=["Changed Props",""],vW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",iI=["Changed Props",vW],PZ=1,X2=2,D6=[],D7=0,HN=0,J8={};Object.freeze(J8);var v6=null,v7=null,O0=0,tI=1,y0=2,S5=8,Q4=16,eI=32,bW=!1;try{var kW=Object.preventExtensions({})}catch($){bW=!0}var MN=new WeakMap,b7=[],k7=0,jG=null,CZ=0,b6=[],k6=0,K9=null,q2=1,Y2="",T5=null,I1=null,o0=!1,y4=!1,L6=null,G8=null,f6=!1,FN=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."),WN=H0(null),wN=H0(null),fW={},DG=null,f7=null,y7=!1,$O=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},ZO=Q1.unstable_scheduleCallback,QO=Q1.unstable_NormalPriority,s1={$$typeof:j4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},n1=Q1.unstable_now,vG=console.createTask?console.createTask:function(){return null},IZ=1,bG=2,H5=-0,X8=-0,N2=-0,U2=null,x5=-1.1,B9=-0,v1=-0,L0=-1.1,P0=-1.1,j1=null,y1=!1,q8=-0,g4=-1.1,OZ=null,Y8=0,RN=null,zN=null,H9=-1.1,VZ=null,g7=-1.1,kG=-1.1,h4=-0,K2=-1.1,y6=-1.1,TN=0,AZ=null,yW=null,gW=null,N8=-1.1,M9=null,U8=-1.1,fG=-1.1,hW=-0,uW=-0,yG=0,B2=null,xW=0,EZ=-1.1,gG=!1,hG=!1,SZ=null,LN=0,F9=0,h7=null,mW=x.S;x.S=function($,Z){if(yw=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K2&&0>y6){K2=n1();var G=XZ(),Y=GZ();if(G!==U8||Y!==M9)U8=-1.1;N8=G,M9=Y}PP($,Z)}mW!==null&&mW($,Z)};var W9=H0(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],fZ=[],w9=new Set;J4.recordUnsafeLifecycleWarnings=function($,Z){w9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&jZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillMount==="function"&&DZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&vZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&bZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&kZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&fZ.push($))},J4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<jZ.length&&(jZ.forEach(function(R){$.add(d(R)||"Component"),w9.add(R.type)}),jZ=[]);var Z=new Set;0<DZ.length&&(DZ.forEach(function(R){Z.add(d(R)||"Component"),w9.add(R.type)}),DZ=[]);var G=new Set;0<vZ.length&&(vZ.forEach(function(R){G.add(d(R)||"Component"),w9.add(R.type)}),vZ=[]);var Y=new Set;0<bZ.length&&(bZ.forEach(function(R){Y.add(d(R)||"Component"),w9.add(R.type)}),bZ=[]);var U=new Set;0<kZ.length&&(kZ.forEach(function(R){U.add(d(R)||"Component"),w9.add(R.type)}),kZ=[]);var B=new Set;if(0<fZ.length&&(fZ.forEach(function(R){B.add(d(R)||"Component"),w9.add(R.type)}),fZ=[]),0<Z.size){var W=T(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.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -210,48 +210,48 @@ Please update the following components: %s`,W)),0<U.size&&(W=T(U),console.warn(`
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,W))};var fG=new Map,hW=new Set;e6.recordLegacyContextWarning=function($,Z){var G=null;for(var Y=$;Y!==null;)Y.mode&I5&&(G=Y),Y=Y.return;G===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."):!hW.has($.type)&&(Y=fG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],fG.set(G,Y)),Y.push($))},e6.flushLegacyContextWarning=function(){fG.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(U){G.add(d(U)||"Component"),hW.add(U.type)});var Y=T(G);G0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,W))};var uG=new Map,dW=new Set;J4.recordLegacyContextWarning=function($,Z){var G=null;for(var Y=$;Y!==null;)Y.mode&S5&&(G=Y),Y=Y.return;G===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."):!dW.has($.type)&&(Y=uG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],uG.set(G,Y)),Y.push($))},J4.flushLegacyContextWarning=function(){uG.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(U){G.add(d(U)||"Component"),dW.add(U.type)});var Y=T(G);X0(Z,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)})}})},e6.discardPendingWarnings=function(){EZ=[],AZ=[],SZ=[],jZ=[],DZ=[],vZ=[],fG=new Map};var uW={react_stack_bottom_frame:function($,Z,G){var Y=V4;V4=!0;try{return $(Z,G)}finally{V4=Y}}},RN=uW.react_stack_bottom_frame.bind(uW),xW={react_stack_bottom_frame:function($){var Z=V4;V4=!0;try{return $.render()}finally{V4=Z}}},mW=xW.react_stack_bottom_frame.bind(xW),dW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){X1($,$.return,G)}}},zN=dW.react_stack_bottom_frame.bind(dW),pW={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){X1($,$.return,B)}}},cW=pW.react_stack_bottom_frame.bind(pW),lW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},aI=lW.react_stack_bottom_frame.bind(lW),rW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){X1($,Z,Y)}}},sW=rW.react_stack_bottom_frame.bind(rW),nW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},iI=nW.react_stack_bottom_frame.bind(nW),oW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){X1($,Z,Y)}}},tI=oW.react_stack_bottom_frame.bind(oW),aW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},eI=aW.react_stack_bottom_frame.bind(aW),y7=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`."),TN=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."),yG=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."),gG={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.')}},W9=null,bZ=!1,g7=null,kZ=0,y0=null,LN,iW=LN=!1,tW={},eW={},$w={};z=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._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.");G._store.validated=1;var Y=d($),U=Y||"null";if(!tW[U]){tW[U]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},J4.discardPendingWarnings=function(){jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],fZ=[],uG=new Map};var pW={react_stack_bottom_frame:function($,Z,G){var Y=D4;D4=!0;try{return $(Z,G)}finally{D4=Y}}},_N=pW.react_stack_bottom_frame.bind(pW),cW={react_stack_bottom_frame:function($){var Z=D4;D4=!0;try{return $.render()}finally{D4=Z}}},lW=cW.react_stack_bottom_frame.bind(cW),rW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){q1($,$.return,G)}}},PN=rW.react_stack_bottom_frame.bind(rW),sW={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){q1($,$.return,B)}}},nW=sW.react_stack_bottom_frame.bind(sW),oW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},JO=oW.react_stack_bottom_frame.bind(oW),aW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){q1($,Z,Y)}}},iW=aW.react_stack_bottom_frame.bind(aW),tW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},GO=tW.react_stack_bottom_frame.bind(tW),eW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){q1($,Z,Y)}}},XO=eW.react_stack_bottom_frame.bind(eW),$w={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},qO=$w.react_stack_bottom_frame.bind($w),u7=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`."),CN=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."),xG=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."),mG={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.')}},R9=null,yZ=!1,x7=null,gZ=0,g0=null,IN,Zw=IN=!1,Qw={},Jw={},Gw={};z=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._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.");G._store.validated=1;var Y=d($),U=Y||"null";if(!Qw[U]){Qw[U]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
220
220
 
221
221
  Check the render method of \``+U+"`."),B||Y&&(B=`
222
222
 
223
- Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),G0(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,W)})}}};var w9=rB(!0),Zw=rB(!1),Qw=0,Jw=1,Gw=2,PN=3,Y2=!1,Xw=!1,_N=null,CN=!1,h7=K0(null),hG=K0(0),R6=K0(null),k6=null,u7=1,fZ=2,u1=K0(0),uG=0,f6=1,k5=2,z6=4,f5=8,x7,qw=new Set,Yw=new Set,IN=new Set,Nw=new Set,U8=0,V0=null,F1=null,r1=null,xG=!1,m7=!1,R9=!1,mG=0,yZ=0,K8=null,$V=0,ZV=25,u=null,y6=null,B8=-1,gZ=!1,hZ={readContext:O1,use:p8,useCallback:g1,useContext:g1,useEffect:g1,useImperativeHandle:g1,useLayoutEffect:g1,useInsertionEffect:g1,useMemo:g1,useReducer:g1,useRef:g1,useState:g1,useDebugValue:g1,useDeferredValue:g1,useTransition:g1,useSyncExternalStore:g1,useId:g1,useHostTransitionStatus:g1,useFormState:g1,useActionState:g1,useOptimistic:g1,useMemoCache:g1,useCacheRefresh:g1};hZ.useEffectEvent=g1;var VN=null,Uw=null,ON=null,Kw=null,b4=null,$4=null,dG=null;VN={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",m0(),J7(Z),Cq($,Z)},useContext:function($){return u="useContext",m0(),O1($)},useEffect:function($,Z){return u="useEffect",m0(),J7(Z),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",m0(),J7(G),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",m0(),J7(Z),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",m0(),J7(Z),Pq($,Z)},useMemo:function($,Z){u="useMemo",m0(),J7(Z);var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",m0();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",m0(),Tq($)},useState:function($){u="useState",m0();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",m0()},useDeferredValue:function($,Z){return u="useDeferredValue",m0(),Vq($,Z)},useTransition:function(){return u="useTransition",m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",m0(),Fq($,Z,G)},useId:function(){return u="useId",m0(),Sq()},useFormState:function($,Z){return u="useFormState",m0(),jJ(),X7($,Z)},useActionState:function($,Z){return u="useActionState",m0(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",m0(),Rq($)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",m0(),Lq($)}},Uw={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),Cq($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){return u="useEffect",c(),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Pq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Tq($)},useState:function($){u="useState",c();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),Vq($,Z)},useTransition:function(){return u="useTransition",c(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Fq($,Z,G)},useId:function(){return u="useId",c(),Sq()},useActionState:function($,Z){return u="useActionState",c(),X7($,Z)},useFormState:function($,Z){return u="useFormState",c(),jJ(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Rq($)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),jq()},useEffectEvent:function($){return u="useEffectEvent",c(),Lq($)}},ON={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),hJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=$4;try{return G7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=$4;try{return G7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),FH($,Z)},useTransition:function(){return u="useTransition",c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),vJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),jJ(),bJ($)},useActionState:function($){return u="useActionState",c(),bJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),GH($,Z)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),yJ($)}},Kw={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),hJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=dG;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=dG;try{return p$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=dG;try{return p$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),WH($,Z)},useTransition:function(){return u="useTransition",c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),vJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),jJ(),kJ($)},useActionState:function($){return u="useActionState",c(),kJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),qH($,Z)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),yJ($)}},b4={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),m0(),Cq($,Z)},useContext:function($){return u="useContext",M(),m0(),O1($)},useEffect:function($,Z){return u="useEffect",M(),m0(),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),m0(),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),m0(),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),m0(),Pq($,Z)},useMemo:function($,Z){u="useMemo",M(),m0();var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),m0();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),m0(),Tq($)},useState:function($){u="useState",M(),m0();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),m0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),m0(),Vq($,Z)},useTransition:function(){return u="useTransition",M(),m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),m0(),Fq($,Z,G)},useId:function(){return u="useId",M(),m0(),Sq()},useFormState:function($,Z){return u="useFormState",M(),m0(),X7($,Z)},useActionState:function($,Z){return u="useActionState",M(),m0(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),m0(),Rq($)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",M(),m0(),Lq($)}},$4={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),c(),hJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return G7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return G7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),FH($,Z)},useTransition:function(){return u="useTransition",M(),c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),vJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),bJ($)},useActionState:function($){return u="useActionState",M(),c(),bJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),GH($,Z)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),yJ($)}},dG={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),c(),hJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return p$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return p$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),WH($,Z)},useTransition:function(){return u="useTransition",M(),c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),vJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),kJ($)},useActionState:function($){return u="useActionState",M(),c(),kJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),qH($,Z)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),yJ($)}};var Bw={},Hw=new Set,Mw=new Set,Fw=new Set,Ww=new Set,ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Lw=new Set,Pw=new Set;Object.freeze(Bw);var EN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u8(Y);U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x8($,U,Y),Z!==null&&(K4(Y,"this.setState()",$),D1(Z,$,Y),u$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u8(Y);U.tag=Jw,U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x8($,U,Y),Z!==null&&(K4(Y,"this.replaceState()",$),D1(Z,$,Y),u$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=B6($),Y=u8(G);Y.tag=Gw,Z!==void 0&&Z!==null&&(vq(Z),Y.callback=Z),Z=x8($,Y,G),Z!==null&&(K4(G,"this.forceUpdate()",$),D1(Z,$,G),u$(Z,$,G))}},d7=null,AN=null,SN=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."),s1=!1,_w={},Cw={},Iw={},Vw={},p7=!1,Ow={},pG={},jN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Aw=null;Aw=new Set;var H8=!1,n1=!1,DN=!1,Sw=typeof WeakSet==="function"?WeakSet:Set,U5=null,c7=null,l7=null,o1=null,p5=!1,Z4=null,Z5=!1,uZ=8192,QV={getCacheForType:function($){var Z=O1(c1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return O1(c1).controller.signal},getOwner:function(){return F6}};if(typeof Symbol==="function"&&Symbol.for){var xZ=Symbol.for;xZ("selector.component"),xZ("selector.has_pseudo_class"),xZ("selector.role"),xZ("selector.test_id"),xZ("selector.text")}var JV=[],GV=typeof WeakMap==="function"?WeakMap:Map,K5=0,Q5=2,T6=4,M8=0,mZ=1,z9=2,cG=3,N2=4,lG=6,jw=5,i0=K5,W1=null,h0=null,g0=0,c5=0,rG=1,T9=2,dZ=3,Dw=4,vN=5,pZ=6,sG=7,bN=8,L9=9,U1=c5,L6=null,U2=!1,r7=!1,kN=!1,k4=0,S1=M8,K2=0,B2=0,fN=0,l5=0,P9=0,cZ=null,y5=null,nG=!1,oG=0,vw=0,bw=300,aG=1/0,kw=500,lZ=null,h1=null,H2=null,iG=0,yN=1,gN=2,fw=3,M2=0,yw=1,gw=2,hw=3,uw=4,tG=5,a1=0,F2=null,s7=null,Q4=0,hN=0,uN=-0,xN=null,xw=null,mw=null,J4=iG,dw=null,XV=50,rZ=0,mN=null,dN=!1,eG=!1,qV=50,_9=0,sZ=null,n7=!1,$3=null,pw=!1,cw=new Set,YV={},Z3=null,o7=null,pN=!1,cN=!1,Q3=!1,lN=!1,W2=0,rN={};(function(){for(var $=0;$<JN.length;$++){var Z=JN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),s6(G,"on"+Z)}s6(LW,"onAnimationEnd"),s6(PW,"onAnimationIteration"),s6(_W,"onAnimationStart"),s6("dblclick","onDoubleClick"),s6("focusin","onFocus"),s6("focusout","onBlur"),s6(gI,"onTransitionRun"),s6(hI,"onTransitionStart"),s6(uI,"onTransitionCancel"),s6(CW,"onTransitionEnd")})(),G6("onMouseEnter",["mouseout","mouseover"]),G6("onMouseLeave",["mouseout","mouseover"]),G6("onPointerEnter",["pointerout","pointerover"]),G6("onPointerLeave",["pointerout","pointerover"]),P5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),P5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),P5("onBeforeInput",["compositionend","keypress","textInput","paste"]),P5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),P5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),P5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nZ="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(" "),sN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nZ)),J3="_reactListening"+Math.random().toString(36).slice(2),lw=!1,rw=!1,G3=!1,sw=!1,X3=!1,q3=!1,nw=!1,Y3={},NV=/\r\n?/g,UV=/\u0000|\uFFFD/g,C9="http://www.w3.org/1999/xlink",nN="http://www.w3.org/XML/1998/namespace",KV="javascript:throw new Error('React form unexpectedly submitted.')",BV="suppressHydrationWarning",I9="&",N3="/&",oZ="$",aZ="/$",w2="$?",V9="$~",a7="$!",HV="html",MV="body",FV="head",oN="F!",ow="F",aw="loading",WV="style",F8=0,i7=1,U3=2,aN=null,iN=null,iw={dialog:!0,webview:!0},tN=null,iZ=void 0,tw=typeof setTimeout==="function"?setTimeout:void 0,wV=typeof clearTimeout==="function"?clearTimeout:void 0,O9=-1,ew=typeof Promise==="function"?Promise:void 0,RV=typeof queueMicrotask==="function"?queueMicrotask:typeof ew<"u"?function($){return ew.resolve(null).then($).catch(ZC)}:tw,eN=null,E9=0,tZ=1,$R=2,ZR=3,g6=4,h6=new Map,QR=new Set,W8=q1.d;q1.d={f:function(){var $=W8.f(),Z=K7();return $||Z},r:function($){var Z=S0($);Z!==null&&Z.tag===5&&Z.type==="form"?TH(Z):W8.r($)},D:function($){W8.D($),HF("dns-prefetch",$,null)},C:function($,Z){W8.C($,Z),HF("preconnect",$,Z)},L:function($,Z,G){W8.L($,Z,G);var Y=t7;if(Y&&$&&Z){var U='link[rel="preload"][as="'+V6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+V6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+V6(G.imageSizes)+'"]')):U+='[href="'+V6($)+'"]':U+='[href="'+V6($)+'"]';var B=U;switch(Z){case"style":B=M7($);break;case"script":B=F7($)}h6.has(B)||($=d0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),h6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(GZ(B))||Z==="script"&&Y.querySelector(XZ(B))||(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}},m:function($,Z){W8.m($,Z);var G=t7;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+V6(Y)+'"][href="'+V6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=F7($)}if(!h6.has(B)&&($=d0({rel:"modulepreload",href:$},Z),h6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(XZ(B)))return}Y=G.createElement("link"),M5(Y,"link",$),z0(Y),G.head.appendChild(Y)}}},X:function($,Z){W8.X($,Z);var G=t7;if(G&&$){var Y=e0(G).hoistableScripts,U=F7($),B=Y.get(U);B||(B=G.querySelector(XZ(U)),B||($=d0({src:$,async:!0},Z),(Z=h6.get(U))&&_Y($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){W8.S($,Z,G);var Y=t7;if(Y&&$){var U=e0(Y).hoistableStyles,B=M7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:E9,preload:null};if(W=Y.querySelector(GZ(B)))R.loading=tZ|g6;else{$=d0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=h6.get(B))&&PY($,G);var L=W=Y.createElement("link");z0(L),M5(L,"link",$),L._p=new Promise(function(_,k){L.onload=_,L.onerror=k}),L.addEventListener("load",function(){R.loading|=tZ}),L.addEventListener("error",function(){R.loading|=$R}),R.loading|=g6,GG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){W8.M($,Z);var G=t7;if(G&&$){var Y=e0(G).hoistableScripts,U=F7($),B=Y.get(U);B||(B=G.querySelector(XZ(U)),B||($=d0({src:$,async:!0,type:"module"},Z),(Z=h6.get(U))&&_Y($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var t7=typeof document>"u"?null:document,K3=null,zV=60000,TV=800,LV=500,$U=0,ZU=null,B3=null,A9=fC,eZ={$$typeof:I4,Provider:null,Consumer:null,_currentValue:A9,_currentValue2:A9,_threadCount:0},JR="%c%s%c",GR="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",XR="",H3=" ",PV=Function.prototype.bind,qR=!1,YR=null,NR=null,UR=null,KR=null,BR=null,HR=null,MR=null,FR=null,WR=null,wR=null;YR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},NR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},UR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},KR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},BR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},HR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},MR=function($){var Z=_5($,2);Z!==null&&D1(Z,$,2)},FR=function($){var Z=a9(),G=_5($,Z);G!==null&&D1(G,$,Z)},WR=function($){H=$},wR=function($){K=$};var M3=!0,F3=null,QU=!1,R2=null,z2=null,T2=null,$Q=new Map,ZQ=new Map,L2=[],_V="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(" "),W3=null;if(UG.prototype.render=AY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[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()."):V(G[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 G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=B6(Y);CY(Y,U,G,Z,null,null)},UG.prototype.unmount=AY.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;(i0&(Q5|T6))!==K5&&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."),CY($.current,2,null,$,null,null),K7(),Z[a8]=null}},UG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<L2.length&&Z!==0&&Z<L2[G].priority;G++);L2.splice(G,0,$),G===0&&OF($)}},function(){var $=K$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),X0(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,W)})}}};var z9=aB(!0),Xw=aB(!1),qw=0,Yw=1,Nw=2,ON=3,K8=!1,Uw=!1,VN=null,AN=!1,m7=H0(null),dG=H0(0),_6=H0(null),g6=null,d7=1,hZ=2,p1=H0(0),pG=0,h6=1,m5=2,P6=4,d5=8,p7,Kw=new Set,Bw=new Set,EN=new Set,Hw=new Set,H2=0,A0=null,W1=null,o1=null,cG=!1,c7=!1,T9=!1,lG=0,uZ=0,M2=null,YO=0,NO=25,u=null,u6=null,F2=-1,xZ=!1,mZ={readContext:S1,use:r2,useCallback:x1,useContext:x1,useEffect:x1,useImperativeHandle:x1,useLayoutEffect:x1,useInsertionEffect:x1,useMemo:x1,useReducer:x1,useRef:x1,useState:x1,useDebugValue:x1,useDeferredValue:x1,useTransition:x1,useSyncExternalStore:x1,useId:x1,useHostTransitionStatus:x1,useFormState:x1,useActionState:x1,useOptimistic:x1,useMemoCache:x1,useCacheRefresh:x1};mZ.useEffectEvent=x1;var SN=null,Mw=null,jN=null,Fw=null,u4=null,G4=null,rG=null;SN={readContext:function($){return S1($)},use:r2,useCallback:function($,Z){return u="useCallback",p0(),q7(Z),Aq($,Z)},useContext:function($){return u="useContext",p0(),S1($)},useEffect:function($,Z){return u="useEffect",p0(),q7(Z),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",p0(),q7(G),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",p0(),q7(Z),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",p0(),q7(Z),Oq($,Z)},useMemo:function($,Z){u="useMemo",p0(),q7(Z);var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",p0();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",p0(),Cq($)},useState:function($){u="useState",p0();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",p0()},useDeferredValue:function($,Z){return u="useDeferredValue",p0(),Sq($,Z)},useTransition:function(){return u="useTransition",p0(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",p0(),zq($,Z,G)},useId:function(){return u="useId",p0(),bq()},useFormState:function($,Z){return u="useFormState",p0(),kJ(),N7($,Z)},useActionState:function($,Z){return u="useActionState",p0(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",p0(),_q($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",p0(),kq()},useEffectEvent:function($){return u="useEffectEvent",p0(),Iq($)}},Mw={readContext:function($){return S1($)},use:r2,useCallback:function($,Z){return u="useCallback",c(),Aq($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){return u="useEffect",c(),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Oq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Cq($)},useState:function($){u="useState",c();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),Sq($,Z)},useTransition:function(){return u="useTransition",c(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),zq($,Z,G)},useId:function(){return u="useId",c(),bq()},useActionState:function($,Z){return u="useActionState",c(),N7($,Z)},useFormState:function($,Z){return u="useFormState",c(),kJ(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),_q($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),kq()},useEffectEvent:function($){return u="useEffectEvent",c(),Iq($)}},jN={readContext:function($){return S1($)},use:r2,useCallback:function($,Z){return u="useCallback",c(),dJ($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=G4;try{return Y7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),U1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=G4;try{return Y7(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),zH($,Z)},useTransition:function(){return u="useTransition",c(),IH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),yJ($,Z,G)},useId:function(){return u="useId",c(),U1().memoizedState},useFormState:function($){return u="useFormState",c(),kJ(),gJ($)},useActionState:function($){return u="useActionState",c(),gJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),NH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),xJ($)}},Fw={readContext:function($){return S1($)},use:r2,useCallback:function($,Z){return u="useCallback",c(),dJ($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=rG;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=rG;try{return r$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),U1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=rG;try{return r$(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),TH($,Z)},useTransition:function(){return u="useTransition",c(),OH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),yJ($,Z,G)},useId:function(){return u="useId",c(),U1().memoizedState},useFormState:function($){return u="useFormState",c(),kJ(),hJ($)},useActionState:function($){return u="useActionState",c(),hJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),KH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),xJ($)}},u4={readContext:function($){return F(),S1($)},use:function($){return M(),r2($)},useCallback:function($,Z){return u="useCallback",M(),p0(),Aq($,Z)},useContext:function($){return u="useContext",M(),p0(),S1($)},useEffect:function($,Z){return u="useEffect",M(),p0(),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),p0(),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),p0(),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),p0(),Oq($,Z)},useMemo:function($,Z){u="useMemo",M(),p0();var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),p0();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),p0(),Cq($)},useState:function($){u="useState",M(),p0();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),p0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),p0(),Sq($,Z)},useTransition:function(){return u="useTransition",M(),p0(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),p0(),zq($,Z,G)},useId:function(){return u="useId",M(),p0(),bq()},useFormState:function($,Z){return u="useFormState",M(),p0(),N7($,Z)},useActionState:function($,Z){return u="useActionState",M(),p0(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),p0(),_q($)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",p0(),kq()},useEffectEvent:function($){return u="useEffectEvent",M(),p0(),Iq($)}},G4={readContext:function($){return F(),S1($)},use:function($){return M(),r2($)},useCallback:function($,Z){return u="useCallback",M(),c(),dJ($,Z)},useContext:function($){return u="useContext",M(),c(),S1($)},useEffect:function($,Z){u="useEffect",M(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=G4;try{return Y7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),U1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=G4;try{return Y7(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),zH($,Z)},useTransition:function(){return u="useTransition",M(),c(),IH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),yJ($,Z,G)},useId:function(){return u="useId",M(),c(),U1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),gJ($)},useActionState:function($){return u="useActionState",M(),c(),gJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),NH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),xJ($)}},rG={readContext:function($){return F(),S1($)},use:function($){return M(),r2($)},useCallback:function($,Z){return u="useCallback",M(),c(),dJ($,Z)},useContext:function($){return u="useContext",M(),c(),S1($)},useEffect:function($,Z){u="useEffect",M(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=G4;try{return r$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),U1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=G4;try{return r$(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),TH($,Z)},useTransition:function(){return u="useTransition",M(),c(),OH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),yJ($,Z,G)},useId:function(){return u="useId",M(),c(),U1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),hJ($)},useActionState:function($){return u="useActionState",M(),c(),hJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),KH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),xJ($)}};var Ww={},ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Lw=new Set,_w=new Set,Pw=new Set,Cw=new Set,Iw=new Set,Ow=new Set;Object.freeze(Ww);var DN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=W6($),U=d2(Y);U.payload=Z,G!==void 0&&G!==null&&(yq(G),U.callback=G),Z=p2($,U,Y),Z!==null&&(w4(Y,"this.setState()",$),f1(Z,$,Y),d$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=W6($),U=d2(Y);U.tag=Yw,U.payload=Z,G!==void 0&&G!==null&&(yq(G),U.callback=G),Z=p2($,U,Y),Z!==null&&(w4(Y,"this.replaceState()",$),f1(Z,$,Y),d$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=W6($),Y=d2(G);Y.tag=Nw,Z!==void 0&&Z!==null&&(yq(Z),Y.callback=Z),Z=p2($,Y,G),Z!==null&&(w4(G,"this.forceUpdate()",$),f1(Z,$,G),d$(Z,$,G))}},l7=null,vN=null,bN=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."),a1=!1,Vw={},Aw={},Ew={},Sw={},r7=!1,jw={},sG={},kN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Dw=!1,vw=null;vw=new Set;var W2=!1,i1=!1,fN=!1,bw=typeof WeakSet==="function"?WeakSet:Set,M5=null,s7=null,n7=null,t1=null,n5=!1,X4=null,J5=!1,dZ=8192,UO={getCacheForType:function($){var Z=S1(s1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return S1(s1).controller.signal},getOwner:function(){return z6}};if(typeof Symbol==="function"&&Symbol.for){var pZ=Symbol.for;pZ("selector.component"),pZ("selector.has_pseudo_class"),pZ("selector.role"),pZ("selector.test_id"),pZ("selector.text")}var KO=[],BO=typeof WeakMap==="function"?WeakMap:Map,F5=0,G5=2,C6=4,w2=0,cZ=1,L9=2,nG=3,B8=4,oG=6,kw=5,e0=F5,w1=null,x0=null,h0=0,o5=0,aG=1,_9=2,lZ=3,fw=4,yN=5,rZ=6,iG=7,gN=8,P9=9,K1=o5,I6=null,H8=!1,o7=!1,hN=!1,x4=0,b1=w2,M8=0,F8=0,uN=0,a5=0,C9=0,sZ=null,p5=null,tG=!1,eG=0,yw=0,gw=300,$3=1/0,hw=500,nZ=null,m1=null,W8=null,Z3=0,xN=1,mN=2,uw=3,w8=0,xw=1,mw=2,dw=3,pw=4,Q3=5,e1=0,R8=null,a7=null,q4=0,dN=0,pN=-0,cN=null,cw=null,lw=null,Y4=Z3,rw=null,HO=50,oZ=0,lN=null,rN=!1,J3=!1,MO=50,I9=0,aZ=null,i7=!1,G3=null,sw=!1,nw=new Set,FO={},X3=null,t7=null,sN=!1,nN=!1,q3=!1,oN=!1,z8=0,aN={};(function(){for(var $=0;$<YN.length;$++){var Z=YN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),i6(G,"on"+Z)}i6(IW,"onAnimationEnd"),i6(OW,"onAnimationIteration"),i6(VW,"onAnimationStart"),i6("dblclick","onDoubleClick"),i6("focusin","onFocus"),i6("focusout","onBlur"),i6(cI,"onTransitionRun"),i6(lI,"onTransitionStart"),i6(rI,"onTransitionCancel"),i6(AW,"onTransitionEnd")})(),N6("onMouseEnter",["mouseout","mouseover"]),N6("onMouseLeave",["mouseout","mouseover"]),N6("onPointerEnter",["pointerout","pointerover"]),N6("onPointerLeave",["pointerout","pointerover"]),V5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),V5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),V5("onBeforeInput",["compositionend","keypress","textInput","paste"]),V5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),V5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),V5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iZ="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(" "),iN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iZ)),Y3="_reactListening"+Math.random().toString(36).slice(2),ow=!1,aw=!1,N3=!1,iw=!1,U3=!1,K3=!1,tw=!1,B3={},WO=/\r\n?/g,wO=/\u0000|\uFFFD/g,O9="http://www.w3.org/1999/xlink",tN="http://www.w3.org/XML/1998/namespace",RO="javascript:throw new Error('React form unexpectedly submitted.')",zO="suppressHydrationWarning",V9="&",H3="/&",tZ="$",eZ="/$",T8="$?",A9="$~",e7="$!",TO="html",LO="body",_O="head",eN="F!",ew="F",$R="loading",PO="style",R2=0,$$=1,M3=2,$U=null,ZU=null,ZR={dialog:!0,webview:!0},QU=null,$Q=void 0,QR=typeof setTimeout==="function"?setTimeout:void 0,CO=typeof clearTimeout==="function"?clearTimeout:void 0,E9=-1,JR=typeof Promise==="function"?Promise:void 0,IO=typeof queueMicrotask==="function"?queueMicrotask:typeof JR<"u"?function($){return JR.resolve(null).then($).catch(NC)}:QR,JU=null,S9=0,ZQ=1,GR=2,XR=3,x6=4,m6=new Map,qR=new Set,z2=Y1.d;Y1.d={f:function(){var $=z2.f(),Z=M7();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?CH(Z):z2.r($)},D:function($){z2.D($),wF("dns-prefetch",$,null)},C:function($,Z){z2.C($,Z),wF("preconnect",$,Z)},L:function($,Z,G){z2.L($,Z,G);var Y=Z$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+E6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+E6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+E6(G.imageSizes)+'"]')):U+='[href="'+E6($)+'"]':U+='[href="'+E6($)+'"]';var B=U;switch(Z){case"style":B=w7($);break;case"script":B=R7($)}m6.has(B)||($=c0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),m6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(YZ(B))||Z==="script"&&Y.querySelector(NZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),T0(Z),Y.head.appendChild(Z)))}},m:function($,Z){z2.m($,Z);var G=Z$;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+E6(Y)+'"][href="'+E6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=R7($)}if(!m6.has(B)&&($=c0({rel:"modulepreload",href:$},Z),m6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(NZ(B)))return}Y=G.createElement("link"),R5(Y,"link",$),T0(Y),G.head.appendChild(Y)}}},X:function($,Z){z2.X($,Z);var G=Z$;if(G&&$){var Y=$1(G).hoistableScripts,U=R7($),B=Y.get(U);B||(B=G.querySelector(NZ(U)),B||($=c0({src:$,async:!0},Z),(Z=m6.get(U))&&VY($,Z),B=G.createElement("script"),T0(B),R5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){z2.S($,Z,G);var Y=Z$;if(Y&&$){var U=$1(Y).hoistableStyles,B=w7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:S9,preload:null};if(W=Y.querySelector(YZ(B)))R.loading=ZQ|x6;else{$=c0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=m6.get(B))&&OY($,G);var L=W=Y.createElement("link");T0(L),R5(L,"link",$),L._p=new Promise(function(P,k){L.onload=P,L.onerror=k}),L.addEventListener("load",function(){R.loading|=ZQ}),L.addEventListener("error",function(){R.loading|=GR}),R.loading|=x6,NG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){z2.M($,Z);var G=Z$;if(G&&$){var Y=$1(G).hoistableScripts,U=R7($),B=Y.get(U);B||(B=G.querySelector(NZ(U)),B||($=c0({src:$,async:!0,type:"module"},Z),(Z=m6.get(U))&&VY($,Z),B=G.createElement("script"),T0(B),R5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var Z$=typeof document>"u"?null:document,F3=null,OO=60000,VO=800,AO=500,GU=0,XU=null,W3=null,j9=dC,QQ={$$typeof:j4,Provider:null,Consumer:null,_currentValue:j9,_currentValue2:j9,_threadCount:0},YR="%c%s%c",NR="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",UR="",w3=" ",EO=Function.prototype.bind,KR=!1,BR=null,HR=null,MR=null,FR=null,WR=null,wR=null,RR=null,zR=null,TR=null,LR=null;BR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},HR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},MR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},FR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},WR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},wR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},RR=function($){var Z=A5($,2);Z!==null&&f1(Z,$,2)},zR=function($){var Z=e9(),G=A5($,Z);G!==null&&f1(G,$,Z)},TR=function($){H=$},LR=function($){K=$};var R3=!0,z3=null,qU=!1,L8=null,_8=null,P8=null,JQ=new Map,GQ=new Map,C8=[],SO="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(" "),T3=null;if(MG.prototype.render=vY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[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()."):O(G[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 G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=W6(Y);AY(Y,U,G,Z,null,null)},MG.prototype.unmount=vY.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;(e0&(G5|C6))!==F5&&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."),AY($.current,2,null,$,null,null),M7(),Z[e2]=null}},MG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<C8.length&&Z!==0&&Z<C8[G].priority;G++);C8.splice(G,0,$),G===0&&jF($)}},function(){var $=M$.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
224
  - react: `+($+`
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"),q1.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 $=o(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=YR,$.overrideHookStateDeletePath=NR,$.overrideHookStateRenamePath=UR,$.overrideProps=KR,$.overridePropsDeletePath=BR,$.overridePropsRenamePath=HR,$.scheduleUpdate=MR,$.scheduleRetry=FR,$.setErrorHandler=WR,$.setSuspenseHandler=wR,$.scheduleRefresh=A,$.scheduleRoot=I,$.setRefreshHandler=O,$.getCurrentFiber=EC,o9($)}()&&S4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var RR=window.location.protocol;/^(https?|file):$/.test(RR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(RR==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}pS.createRoot=function($,Z){if(!V($))throw Error("Target container is not a DOM element.");jF($);var G=!1,Y="",U=EH,B=AH,W=SH;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===C4&&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"),Y1.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?J0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=BR,$.overrideHookStateDeletePath=HR,$.overrideHookStateRenamePath=MR,$.overrideProps=FR,$.overridePropsDeletePath=WR,$.overridePropsRenamePath=wR,$.scheduleUpdate=RR,$.scheduleRetry=zR,$.setErrorHandler=TR,$.setSuspenseHandler=LR,$.scheduleRefresh=E,$.scheduleRoot=I,$.setRefreshHandler=V,$.getCurrentFiber=kC,t9($)}()&&f4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var _R=window.location.protocol;/^(https?|file):$/.test(_R)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(_R==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}aS.createRoot=function($,Z){if(!O($))throw Error("Target container is not a DOM element.");kF($);var G=!1,Y="",U=DH,B=vH,W=bH;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===S4&&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&&(G=!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&&(W=Z.onRecoverableError)),Z=TF($,1,!1,null,null,G,Y,null,U,B,W,SF),$[a8]=Z.current,UY($),new AY(Z)},pS.hydrateRoot=function($,Z,G){if(!V($))throw Error("Target container is not a DOM element.");jF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=EH,W=AH,R=SH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(R=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=TF($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,R,SF),Z.context=LF(null),G=Z.current,Y=B6(G),Y=c2(Y),U=u8(Y),U.callback=null,x8(G,U,Y),K4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,v8(Z,G),P4(Z),$[a8]=Z.current,UY($),new UG(Z)},pS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var lT=P2((Ib,cT)=>{var cS=i(pT());cT.exports=cS});var M0=P2((wj)=>{var m9=i(I1());(function(){function Q(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 O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0: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 A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(x0){n=!0}if(n){n=console;var H0=n.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F0),J(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[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 w(v,n,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:n,props:H0,_owner:F0},(v0!==void 0?v0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):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:x0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,F0,x0,y1){var v0=n.children;if(v0!==void 0)if(F0)if(_0(v0)){for(F0=0;F0<v0.length;F0++)T(v0[F0]);Object.freeze&&Object.freeze(v0)}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 T(v0);if(L0.call(n,"key")){v0=Q(v);var p1=Object.keys(n).filter(function(r6){return r6!=="key"});F0=0<p1.length?"{key: someKey, "+p1.join(": ..., ")+": ...}":"{key: someKey}",u0[v0+F0]||(p1=0<p1.length?"{"+p1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!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&&(W=Z.onRecoverableError)),Z=CF($,1,!1,null,null,G,Y,null,U,B,W,bF),$[e2]=Z.current,MY($),new vY(Z)},aS.hydrateRoot=function($,Z,G){if(!O($))throw Error("Target container is not a DOM element.");kF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=DH,W=vH,R=bH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(R=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=CF($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,R,bF),Z.context=IF(null),G=Z.current,Y=W6(G),Y=r8(Y),U=d2(Y),U.callback=null,p2(G,U,Y),w4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,f2(Z,G),A4(Z),$[e2]=Z.current,MY($),new MG(Z)},aS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var oT=I8((hb,nT)=>{var iS=o(sT());nT.exports=iS});var B0=I8((Ij)=>{var p9=o(P1());(function(){function Q(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 D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0: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 s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case i:n=v._payload,v=v._init;try{return Q(v(n))}catch(F0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(d0){n=!0}if(n){n=console;var F0=n.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return F0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(F0){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(_0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function F0(){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)",n))}F0.isReactWarning=!0,Object.defineProperty(v,"key",{get:F0,configurable:!0})}function F(){var v=Q(this.type);return q0[v]||(q0[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 w(v,n,F0,W0,d0,u1){var b0=F0.ref;return v={$$typeof:I,type:v,key:n,props:F0,_owner:W0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):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:d0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:u1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,F0,W0,d0,u1){var b0=n.children;if(b0!==void 0)if(W0)if(C0(b0)){for(W0=0;W0<b0.length;W0++)T(b0[W0]);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 T(b0);if(_0.call(n,"key")){b0=Q(v);var r1=Object.keys(n).filter(function(a6){return a6!=="key"});W0=0<r1.length?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}",m0[b0+W0]||(r1=0<r1.length?"{"+r1.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} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(n)&&(X(n.key),v0=""+n.key),"key"in n){H0={};for(var L5 in n)L5!=="key"&&(H0[L5]=n[L5])}else H0=n;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(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===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=m9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};m9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=m9.react_stack_bottom_frame.bind(m9,K)(),r0=D0(q(K)),u0={};wj.Fragment=O,wj.jsxDEV=function(v,n,H0,F0){var x0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,F0,x0?Error("react-stack-top-frame"):B0,x0?D0(q(v)):r0)}})()});var QP=P2((ND)=>{var l9=i(I1());(function(){function Q(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 O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0: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 A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(x0){n=!0}if(n){n=console;var H0=n.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F0),J(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[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 w(v,n,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:n,props:H0,_owner:F0},(v0!==void 0?v0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):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:x0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,F0,x0,y1){var v0=n.children;if(v0!==void 0)if(F0)if(_0(v0)){for(F0=0;F0<v0.length;F0++)T(v0[F0]);Object.freeze&&Object.freeze(v0)}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 T(v0);if(L0.call(n,"key")){v0=Q(v);var p1=Object.keys(n).filter(function(r6){return r6!=="key"});F0=0<p1.length?"{key: someKey, "+p1.join(": ..., ")+": ...}":"{key: someKey}",u0[v0+F0]||(p1=0<p1.length?"{"+p1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,W0,b0,r1,b0),m0[b0+W0]=!0)}if(b0=null,F0!==void 0&&(X(F0),b0=""+F0),H(n)&&(X(n.key),b0=""+n.key),"key"in n){F0={};for(var O5 in n)O5!=="key"&&(F0[O5]=n[O5])}else F0=n;return b0&&M(F0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,b0,F0,N(),d0,u1)}function T(v){_(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?_(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function _(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=p9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_0=Object.prototype.hasOwnProperty,C0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};p9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},M0=p9.react_stack_bottom_frame.bind(p9,K)(),n0=v0(q(K)),m0={};Ij.Fragment=V,Ij.jsxDEV=function(v,n,F0,W0){var d0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,W0,d0?Error("react-stack-top-frame"):M0,d0?v0(q(v)):n0)}})()});var Y_=I8((wD)=>{var s9=o(P1());(function(){function Q(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 D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0: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 s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case i:n=v._payload,v=v._init;try{return Q(v(n))}catch(F0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(d0){n=!0}if(n){n=console;var F0=n.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return F0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(F0){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(_0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function F0(){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)",n))}F0.isReactWarning=!0,Object.defineProperty(v,"key",{get:F0,configurable:!0})}function F(){var v=Q(this.type);return q0[v]||(q0[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 w(v,n,F0,W0,d0,u1){var b0=F0.ref;return v={$$typeof:I,type:v,key:n,props:F0,_owner:W0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):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:d0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:u1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,F0,W0,d0,u1){var b0=n.children;if(b0!==void 0)if(W0)if(C0(b0)){for(W0=0;W0<b0.length;W0++)T(b0[W0]);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 T(b0);if(_0.call(n,"key")){b0=Q(v);var r1=Object.keys(n).filter(function(a6){return a6!=="key"});W0=0<r1.length?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}",m0[b0+W0]||(r1=0<r1.length?"{"+r1.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} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(n)&&(X(n.key),v0=""+n.key),"key"in n){H0={};for(var L5 in n)L5!=="key"&&(H0[L5]=n[L5])}else H0=n;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(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===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=l9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};l9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=l9.react_stack_bottom_frame.bind(l9,K)(),r0=D0(q(K)),u0={};ND.Fragment=O,ND.jsx=function(v,n,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!1,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)},ND.jsxs=function(v,n,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!0,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)}})()});/*!
240
+ <%s key={someKey} {...props} />`,W0,b0,r1,b0),m0[b0+W0]=!0)}if(b0=null,F0!==void 0&&(X(F0),b0=""+F0),H(n)&&(X(n.key),b0=""+n.key),"key"in n){F0={};for(var O5 in n)O5!=="key"&&(F0[O5]=n[O5])}else F0=n;return b0&&M(F0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,b0,F0,N(),d0,u1)}function T(v){_(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?_(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function _(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=s9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_0=Object.prototype.hasOwnProperty,C0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};s9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},M0=s9.react_stack_bottom_frame.bind(s9,K)(),n0=v0(q(K)),m0={};wD.Fragment=V,wD.jsx=function(v,n,F0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,!1,W0?Error("react-stack-top-frame"):M0,W0?v0(q(v)):n0)},wD.jsxs=function(v,n,F0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,!0,W0?Error("react-stack-top-frame"):M0,W0?v0(q(v)):n0)}})()});/*!
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 JQ(Q){return Q+0.5|0}var _2=(Q,J,X)=>Math.max(Math.min(Q,X),J);function QQ(Q){return _2(JQ(Q*2.55),0,255)}function C2(Q){return _2(JQ(Q*255),0,255)}function R8(Q){return _2(JQ(Q/2.55)/100,0,1)}function TR(Q){return _2(JQ(Q*100),0,100)}var u6={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},GU=[..."0123456789ABCDEF"],DV=(Q)=>GU[Q&15],vV=(Q)=>GU[(Q&240)>>4]+GU[Q&15],w3=(Q)=>(Q&240)>>4===(Q&15),bV=(Q)=>w3(Q.r)&&w3(Q.g)&&w3(Q.b)&&w3(Q.a);function kV(Q){var J=Q.length,X;if(Q[0]==="#"){if(J===4||J===5)X={r:255&u6[Q[1]]*17,g:255&u6[Q[2]]*17,b:255&u6[Q[3]]*17,a:J===5?u6[Q[4]]*17:255};else if(J===7||J===9)X={r:u6[Q[1]]<<4|u6[Q[2]],g:u6[Q[3]]<<4|u6[Q[4]],b:u6[Q[5]]<<4|u6[Q[6]],a:J===9?u6[Q[7]]<<4|u6[Q[8]]:255}}return X}var fV=(Q,J)=>Q<255?J(Q):"";function yV(Q){var J=bV(Q)?DV:vV;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+fV(Q.a,J):void 0}var gV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function CR(Q,J,X){let q=J*Math.min(X,1-X),N=(K,H=(K+Q/30)%12)=>X-q*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function hV(Q,J,X){let q=(N,K=(N+Q/60)%6)=>X-X*J*Math.max(Math.min(K,4-K,1),0);return[q(5),q(3),q(1)]}function uV(Q,J,X){let q=CR(Q,1,0.5),N;if(J+X>1)N=1/(J+X),J*=N,X*=N;for(N=0;N<3;N++)q[N]*=1-J-X,q[N]+=J;return q}function xV(Q,J,X,q,N){if(Q===N)return(J-X)/q+(J<X?6:0);if(J===N)return(X-Q)/q+2;return(Q-J)/q+4}function XU(Q){let X=Q.r/255,q=Q.g/255,N=Q.b/255,K=Math.max(X,q,N),H=Math.min(X,q,N),M=(K+H)/2,F,w,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),F=xV(X,q,N,z,K),F=F*60+0.5;return[F|0,w||0,M]}function qU(Q,J,X,q){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,X,q)).map(C2)}function YU(Q,J,X){return qU(CR,Q,J,X)}function mV(Q,J,X){return qU(uV,Q,J,X)}function dV(Q,J,X){return qU(hV,Q,J,X)}function IR(Q){return(Q%360+360)%360}function pV(Q){let J=gV.exec(Q),X=255,q;if(!J)return;if(J[5]!==q)X=J[6]?QQ(+J[5]):C2(+J[5]);let N=IR(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")q=mV(N,K,H);else if(J[1]==="hsv")q=dV(N,K,H);else q=YU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function cV(Q,J){var X=XU(Q);X[0]=IR(X[0]+J),X=YU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}function lV(Q){if(!Q)return;let J=XU(Q),X=J[0],q=TR(J[1]),N=TR(J[2]);return Q.a<255?`hsla(${X}, ${q}%, ${N}%, ${R8(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var LR={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"},PR={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 rV(){let Q={},J=Object.keys(PR),X=Object.keys(LR),q,N,K,H,M;for(q=0;q<J.length;q++){H=M=J[q];for(N=0;N<X.length;N++)K=X[N],M=M.replace(K,LR[K]);K=parseInt(PR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var R3;function sV(Q){if(!R3)R3=rV(),R3.transparent=[0,0,0,0];let J=R3[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var nV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function oV(Q){let J=nV.exec(Q),X=255,q,N,K;if(!J)return;if(J[7]!==q){let H=+J[7];X=J[8]?QQ(H):_2(H*255,0,255)}return q=+J[1],N=+J[3],K=+J[5],q=255&(J[2]?QQ(q):_2(q,0,255)),N=255&(J[4]?QQ(N):_2(N,0,255)),K=255&(J[6]?QQ(K):_2(K,0,255)),{r:q,g:N,b:K,a:X}}function aV(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${R8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var JU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,e7=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function iV(Q,J,X){let q=e7(R8(Q.r)),N=e7(R8(Q.g)),K=e7(R8(Q.b));return{r:C2(JU(q+X*(e7(R8(J.r))-q))),g:C2(JU(N+X*(e7(R8(J.g))-N))),b:C2(JU(K+X*(e7(R8(J.b))-K))),a:Q.a+X*(J.a-Q.a)}}function z3(Q,J,X){if(Q){let q=XU(Q);q[J]=Math.max(0,Math.min(q[J]+q[J]*X,J===0?360:1)),q=YU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}}function VR(Q,J){return Q?Object.assign(J||{},Q):Q}function _R(Q){var J={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(J={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)J.a=C2(Q[3])}}else J=VR(Q,{r:0,g:0,b:0,a:1}),J.a=C2(J.a);return J}function tV(Q){if(Q.charAt(0)==="r")return oV(Q);return pV(Q)}class $${constructor(Q){if(Q instanceof $$)return Q;let J=typeof Q,X;if(J==="object")X=_R(Q);else if(J==="string")X=kV(Q)||sV(Q)||tV(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=VR(this._rgb);if(Q)Q.a=R8(Q.a);return Q}set rgb(Q){this._rgb=_R(Q)}rgbString(){return this._valid?aV(this._rgb):void 0}hexString(){return this._valid?yV(this._rgb):void 0}hslString(){return this._valid?lV(this._rgb):void 0}mix(Q,J){if(Q){let X=this.rgb,q=Q.rgb,N,K=J===N?0.5:J,H=2*K-1,M=X.a-q.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,X.r=255&F*X.r+N*q.r+0.5,X.g=255&F*X.g+N*q.g+0.5,X.b=255&F*X.b+N*q.b+0.5,X.a=K*X.a+(1-K)*q.a,this.rgb=X}return this}interpolate(Q,J){if(Q)this._rgb=iV(this._rgb,Q._rgb,J);return this}clone(){return new $$(this.rgb)}alpha(Q){return this._rgb.a=C2(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=JQ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=J,this}opaquer(Q){let J=this._rgb;return J.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return z3(this._rgb,2,Q),this}darken(Q){return z3(this._rgb,2,-Q),this}saturate(Q){return z3(this._rgb,1,Q),this}desaturate(Q){return z3(this._rgb,1,-Q),this}rotate(Q){return cV(this._rgb,Q),this}}/*!
245
+ */function qQ(Q){return Q+0.5|0}var O8=(Q,J,X)=>Math.max(Math.min(Q,X),J);function XQ(Q){return O8(qQ(Q*2.55),0,255)}function V8(Q){return O8(qQ(Q*255),0,255)}function L2(Q){return O8(qQ(Q/2.55)/100,0,1)}function CR(Q){return O8(qQ(Q*100),0,100)}var d6={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},NU=[..."0123456789ABCDEF"],hO=(Q)=>NU[Q&15],uO=(Q)=>NU[(Q&240)>>4]+NU[Q&15],L3=(Q)=>(Q&240)>>4===(Q&15),xO=(Q)=>L3(Q.r)&&L3(Q.g)&&L3(Q.b)&&L3(Q.a);function mO(Q){var J=Q.length,X;if(Q[0]==="#"){if(J===4||J===5)X={r:255&d6[Q[1]]*17,g:255&d6[Q[2]]*17,b:255&d6[Q[3]]*17,a:J===5?d6[Q[4]]*17:255};else if(J===7||J===9)X={r:d6[Q[1]]<<4|d6[Q[2]],g:d6[Q[3]]<<4|d6[Q[4]],b:d6[Q[5]]<<4|d6[Q[6]],a:J===9?d6[Q[7]]<<4|d6[Q[8]]:255}}return X}var dO=(Q,J)=>Q<255?J(Q):"";function pO(Q){var J=xO(Q)?hO:uO;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+dO(Q.a,J):void 0}var cO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function AR(Q,J,X){let q=J*Math.min(X,1-X),N=(K,H=(K+Q/30)%12)=>X-q*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function lO(Q,J,X){let q=(N,K=(N+Q/60)%6)=>X-X*J*Math.max(Math.min(K,4-K,1),0);return[q(5),q(3),q(1)]}function rO(Q,J,X){let q=AR(Q,1,0.5),N;if(J+X>1)N=1/(J+X),J*=N,X*=N;for(N=0;N<3;N++)q[N]*=1-J-X,q[N]+=J;return q}function sO(Q,J,X,q,N){if(Q===N)return(J-X)/q+(J<X?6:0);if(J===N)return(X-Q)/q+2;return(Q-J)/q+4}function UU(Q){let X=Q.r/255,q=Q.g/255,N=Q.b/255,K=Math.max(X,q,N),H=Math.min(X,q,N),M=(K+H)/2,F,w,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),F=sO(X,q,N,z,K),F=F*60+0.5;return[F|0,w||0,M]}function KU(Q,J,X,q){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,X,q)).map(V8)}function BU(Q,J,X){return KU(AR,Q,J,X)}function nO(Q,J,X){return KU(rO,Q,J,X)}function oO(Q,J,X){return KU(lO,Q,J,X)}function ER(Q){return(Q%360+360)%360}function aO(Q){let J=cO.exec(Q),X=255,q;if(!J)return;if(J[5]!==q)X=J[6]?XQ(+J[5]):V8(+J[5]);let N=ER(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")q=nO(N,K,H);else if(J[1]==="hsv")q=oO(N,K,H);else q=BU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function iO(Q,J){var X=UU(Q);X[0]=ER(X[0]+J),X=BU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}function tO(Q){if(!Q)return;let J=UU(Q),X=J[0],q=CR(J[1]),N=CR(J[2]);return Q.a<255?`hsla(${X}, ${q}%, ${N}%, ${L2(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var IR={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"},OR={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 eO(){let Q={},J=Object.keys(OR),X=Object.keys(IR),q,N,K,H,M;for(q=0;q<J.length;q++){H=M=J[q];for(N=0;N<X.length;N++)K=X[N],M=M.replace(K,IR[K]);K=parseInt(OR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var _3;function $V(Q){if(!_3)_3=eO(),_3.transparent=[0,0,0,0];let J=_3[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var ZV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function QV(Q){let J=ZV.exec(Q),X=255,q,N,K;if(!J)return;if(J[7]!==q){let H=+J[7];X=J[8]?XQ(H):O8(H*255,0,255)}return q=+J[1],N=+J[3],K=+J[5],q=255&(J[2]?XQ(q):O8(q,0,255)),N=255&(J[4]?XQ(N):O8(N,0,255)),K=255&(J[6]?XQ(K):O8(K,0,255)),{r:q,g:N,b:K,a:X}}function JV(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${L2(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var YU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,Q$=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function GV(Q,J,X){let q=Q$(L2(Q.r)),N=Q$(L2(Q.g)),K=Q$(L2(Q.b));return{r:V8(YU(q+X*(Q$(L2(J.r))-q))),g:V8(YU(N+X*(Q$(L2(J.g))-N))),b:V8(YU(K+X*(Q$(L2(J.b))-K))),a:Q.a+X*(J.a-Q.a)}}function P3(Q,J,X){if(Q){let q=UU(Q);q[J]=Math.max(0,Math.min(q[J]+q[J]*X,J===0?360:1)),q=BU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}}function SR(Q,J){return Q?Object.assign(J||{},Q):Q}function VR(Q){var J={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(J={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)J.a=V8(Q[3])}}else J=SR(Q,{r:0,g:0,b:0,a:1}),J.a=V8(J.a);return J}function XV(Q){if(Q.charAt(0)==="r")return QV(Q);return aO(Q)}class J${constructor(Q){if(Q instanceof J$)return Q;let J=typeof Q,X;if(J==="object")X=VR(Q);else if(J==="string")X=mO(Q)||$V(Q)||XV(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=SR(this._rgb);if(Q)Q.a=L2(Q.a);return Q}set rgb(Q){this._rgb=VR(Q)}rgbString(){return this._valid?JV(this._rgb):void 0}hexString(){return this._valid?pO(this._rgb):void 0}hslString(){return this._valid?tO(this._rgb):void 0}mix(Q,J){if(Q){let X=this.rgb,q=Q.rgb,N,K=J===N?0.5:J,H=2*K-1,M=X.a-q.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,X.r=255&F*X.r+N*q.r+0.5,X.g=255&F*X.g+N*q.g+0.5,X.b=255&F*X.b+N*q.b+0.5,X.a=K*X.a+(1-K)*q.a,this.rgb=X}return this}interpolate(Q,J){if(Q)this._rgb=GV(this._rgb,Q._rgb,J);return this}clone(){return new J$(this.rgb)}alpha(Q){return this._rgb.a=V8(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=qQ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=J,this}opaquer(Q){let J=this._rgb;return J.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return P3(this._rgb,2,Q),this}darken(Q){return P3(this._rgb,2,-Q),this}saturate(Q){return P3(this._rgb,1,Q),this}desaturate(Q){return P3(this._rgb,1,-Q),this}rotate(Q){return iO(this._rgb,Q),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 y4(){}var yR=(()=>{let Q=0;return()=>Q++})();function $1(Q){return Q===null||Q===void 0}function C1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function a0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function b1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function a5(Q,J){return b1(Q)?Q:J}function c0(Q,J){return typeof Q>"u"?J:Q}var gR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function T1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function K1(Q,J,X,q){let N,K,H;if(C1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if(a0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function qQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function _3(Q){if(C1(Q))return Q.map(_3);if(a0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=_3(Q[X[N]]);return J}return Q}function hR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function eV(Q,J,X,q){if(!hR(Q))return;let N=J[Q],K=X[Q];if(a0(N)&&a0(K))Q$(N,K,q);else J[Q]=_3(K)}function Q$(Q,J,X){let q=C1(J)?J:[J],N=q.length;if(!a0(Q))return Q;X=X||{};let K=X.merger||eV,H;for(let M=0;M<N;++M){if(H=q[M],!a0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function G$(Q,J){return Q$(Q,J,{merger:$O})}function $O(Q,J,X){if(!hR(Q))return;let q=J[Q],N=X[Q];if(a0(q)&&a0(N))G$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=_3(N)}var OR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function ZO(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function QO(Q){let J=ZO(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function v9(Q,J){return(OR[J]||(OR[J]=QO(J)))(Q)}function O3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var X$=(Q)=>typeof Q<"u",z8=(Q)=>typeof Q==="function",KU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function uR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var m1=Math.PI,n5=2*m1,JO=n5+m1,C3=Number.POSITIVE_INFINITY,GO=m1/180,s5=m1/2,S9=m1/4,ER=m1*2/3,T8=Math.log10,G4=Math.sign;function q$(Q,J,X){return Math.abs(Q-J)<X}function BU(Q){let J=Math.round(Q);Q=q$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(T8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function xR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function XO(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function Y$(Q){return!XO(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function mR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function HU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function L8(Q){return Q*(m1/180)}function E3(Q){return Q*(180/m1)}function MU(Q){if(!b1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function dR(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*m1)K+=n5;return{angle:K,distance:N}}function I3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function qO(Q,J){return(Q-J+JO)%n5-m1}function r5(Q){return(Q%n5+n5)%n5}function FU(Q,J,X,q){let N=r5(Q),K=r5(J),H=r5(X),M=r5(K-N),F=r5(H-N),w=r5(N-K),z=r5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function o5(Q,J,X){return Math.max(J,Math.min(X,Q))}function pR(Q){return o5(Q,-32768,32767)}function P8(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function A3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var V2=(Q,J,X,q)=>A3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),cR=(Q,J,X)=>A3(Q,X,(q)=>Q[q][J]>=X);function lR(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var rR=["push","pop","shift","splice","unshift"];function sR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),rR.forEach((X)=>{let q="_onData"+O3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function WU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;rR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function wU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var RU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function zU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,RU.call(window,()=>{q=!1,Q.apply(J,X)})}}function nR(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var S3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",w5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,oR=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function aR(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:P,minDefined:I,maxDefined:A}=H.getUserBounds();if(I){if(N=Math.min(V2(F,z,T).lo,X?q:V2(J,z,H.getPixelForValue(T)).lo),w){let O=F.slice(0,N+1).reverse().findIndex((V)=>!$1(V[M.axis]));N-=Math.max(0,O)}N=o5(N,0,q-1)}if(A){let O=Math.max(V2(F,H.axis,P,!0).hi+1,X?0:V2(J,z,H.getPixelForValue(P),!0).hi+1);if(w){let V=F.slice(O-1).findIndex((D)=>!$1(D[M.axis]));O+=Math.max(0,V)}K=o5(O,N,q)-N}else K=q-N}return{start:N,count:K}}function iR(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var T3=(Q)=>Q===0||Q===1,AR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*n5/X)),SR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*n5/X)+1,Z$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*s5)+1,easeOutSine:(Q)=>Math.sin(Q*s5),easeInOutSine:(Q)=>-0.5*(Math.cos(m1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>T3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>T3(Q)?Q:AR(Q,0.075,0.3),easeOutElastic:(Q)=>T3(Q)?Q:SR(Q,0.075,0.3),easeInOutElastic(Q){return T3(Q)?Q:Q<0.5?0.5*AR(Q*2,0.1125,0.45):0.5+0.5*SR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-Z$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?Z$.easeInBounce(Q*2)*0.5:Z$.easeOutBounce(Q*2-1)*0.5+0.5};function TU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function LU(Q){return TU(Q)?Q:new $$(Q)}function NU(Q){return TU(Q)?Q:new $$(Q).saturate(0.5).darken(0.1).hexString()}var YO=["x","y","borderWidth","radius","tension"],NO=["color","borderColor","backgroundColor"];function UO(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:NO},numbers:{type:"number",properties:YO}}),Q.describe("animations",{_fallback:"animation"}),Q.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:(J)=>J|0}}}})}function KO(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var jR=new Map;function BO(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=jR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),jR.set(X,q);return q}function j3(Q,J,X){return BO(J,X).format(Q)}var tR={values(Q){return C1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=HO(Q,X)}let H=T8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),j3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(T8(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return tR.numeric.call(this,Q,J,X);return""}};function HO(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var YQ={formatters:tR};function MO(Q){Q.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:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.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:YQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var E2=Object.create(null),D3=Object.create(null);function GQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function UU(Q,J,X){if(typeof J==="string")return Q$(GQ(Q,J),X);return Q$(GQ(Q,""),J)}class eR{constructor(Q,J){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=(X)=>X.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=(X,q)=>NU(q.backgroundColor),this.hoverBorderColor=(X,q)=>NU(q.borderColor),this.hoverColor=(X,q)=>NU(q.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(Q),this.apply(J)}set(Q,J){return UU(this,Q,J)}get(Q){return GQ(this,Q)}describe(Q,J){return UU(D3,Q,J)}override(Q,J){return UU(E2,Q,J)}route(Q,J,X,q){let N=GQ(this,Q),K=GQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[q];if(a0(M))return Object.assign({},F,M);return c0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var k1=new eR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[UO,KO,MO]);function FO(Q){if(!Q||$1(Q.size)||$1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function XQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function $z(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,M=X.length,F,w,z,T,P;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!C1(T))H=XQ(Q,N,K,H,T);else if(C1(T)){for(w=0,z=T.length;w<z;w++)if(P=T[w],P!==void 0&&P!==null&&!C1(P))H=XQ(Q,N,K,H,P)}Q.restore();let I=K.length/2;if(I>X.length){for(F=0;F<I;F++)delete N[K[F]];K.splice(0,I)}return H}function A2(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function PU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function v3(Q,J,X,q){_U(Q,J,X,q,null)}function _U(Q,J,X,q,N){let K,H,M,F,w,z,T,P,I=J.pointStyle,A=J.rotation,O=J.radius,V=(A||0)*GO;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(V),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(O)||O<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,O,0,0,n5);else Q.arc(X,q,O,0,n5);Q.closePath();break;case"triangle":z=N?N/2:O,Q.moveTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),Q.closePath();break;case"rectRounded":w=O*0.516,F=O-w,H=Math.cos(V+S9)*F,T=Math.cos(V+S9)*(N?N/2-w:F),M=Math.sin(V+S9)*F,P=Math.sin(V+S9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,V-m1,V-s5),Q.arc(X+P,q-H,w,V-s5,V),Q.arc(X+T,q+M,w,V,V+s5),Q.arc(X-P,q+H,w,V+s5,V+m1),Q.closePath();break;case"rect":if(!A){F=Math.SQRT1_2*O,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}V+=S9;case"rectRot":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+P,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":V+=S9;case"cross":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),V+=S9,T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(V)*O,M=Math.sin(V)*O,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(V)*(N?N/2:O),q+Math.sin(V)*O);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function f4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function NQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function UQ(Q){Q.restore()}function Zz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function Qz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function WO(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!$1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function wO(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function RO(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function S2(Q,J,X,q,N,K={}){let H=C1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,WO(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)RO(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!$1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),wO(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function N$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*m1,m1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,m1,s5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,s5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-s5,!0),Q.lineTo(X+H.topLeft,q)}var zO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,TO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function LO(Q,J){let X=(""+Q).match(zO);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var PO=(Q)=>+Q||0;function CU(Q,J){let X={},q=a0(J),N=q?Object.keys(J):J,K=a0(Q)?q?(H)=>c0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=PO(K(H));return X}function IU(Q){return CU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function j2(Q){return CU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function R5(Q){let J=IU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function i1(Q,J){Q=Q||{},J=J||k1.font;let X=c0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=c0(Q.style,J.style);if(q&&!(""+q).match(TO))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:c0(Q.family,J.family),lineHeight:LO(c0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:c0(Q.weight,J.weight),string:""};return N.string=FO(N),N}function KQ(Q,J,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),N=!1;if(X!==void 0&&C1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function Jz(Q,J,X){let{min:q,max:N}=Q,K=gR(J,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function _8(Q,J){return Object.assign(Object.create(Q),J)}function b3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=qz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>b3([M,...Q],J,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return Gz(M,F,()=>SO(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return vR(M).includes(F)},ownKeys(M){return vR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function D9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:VU(Q,q),setContext:(K)=>D9(Q,K,X,q),override:(K)=>D9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return Gz(K,H,()=>CO(K,H,M))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,M){return Q[H]=M,delete K[H],!0}})}function VU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:z8(X)?X:()=>X,isIndexable:z8(q)?q:()=>q}}var _O=(Q,J)=>Q?Q+O3(J):J,OU=(Q,J)=>a0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function Gz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function CO(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(z8(M)&&H.isScriptable(J))M=IO(J,M,Q,X);if(C1(M)&&M.length)M=VO(J,M,Q,H.isIndexable);if(OU(J,M))M=D9(M,N,K&&K[J],H);return M}function IO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||q);if(M.delete(Q),OU(Q,F))F=EU(N._scopes,N,Q,F);return F}function VO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if(a0(J[0])){let F=J,w=N._scopes.filter((z)=>z!==F);J=[];for(let z of F){let T=EU(w,N,Q,z);J.push(D9(T,K,H&&H[Q],M))}}return J}function Xz(Q,J,X){return z8(Q)?Q(J,X):Q}var OO=(Q,J)=>Q===!0?J:typeof Q==="string"?v9(J,Q):void 0;function EO(Q,J,X,q,N){for(let K of J){let H=OO(X,K);if(H){Q.add(H);let M=Xz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function EU(Q,J,X,q){let N=J._rootScopes,K=Xz(J._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=DR(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=DR(M,H,K,F,q),F===null)return!1}return b3(Array.from(M),[""],N,K,()=>AO(J,X,q))}function DR(Q,J,X,q,N){while(X)X=EO(Q,J,X,q,N);return X}function AO(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(C1(N)&&a0(X))return X;return N||{}}function SO(Q,J,X,q){let N;for(let K of J)if(N=qz(_O(K,Q),X),typeof N<"u")return OU(Q,N)?EU(X,q,Q,N):N}function qz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function vR(Q){let J=Q._keys;if(!J)J=Q._keys=jO(Q._scopes);return J}function jO(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var DO=Number.EPSILON||0.00000000000001,J$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Yz=(Q)=>Q==="x"?"y":"x";function vO(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=I3(K,N),F=I3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,P=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function bO(Q,J,X){let q=Q.length,N,K,H,M,F,w=J$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=J$(Q,z+1),!F||!w)continue;if(q$(J[z],0,DO)){X[z]=X[z+1]=0;continue}if(N=X[z]/J[z],K=X[z+1]/J[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*J[z],X[z+1]=K*H*J[z]}}function kO(Q,J,X="x"){let q=Yz(X),N=Q.length,K,H,M,F=J$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=J$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*J[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*J[w]}}function fO(Q,J="x"){let X=Yz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=J$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=J$(Q,H+1),!F)continue;if(w){let z=w[J]-F[J];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:G4(N[H-1])!==G4(N[H])?0:(N[H-1]+N[H])/2}bO(Q,N,K),kO(Q,K,J)}function L3(Q,J,X){return Math.max(Math.min(Q,X),J)}function yO(Q,J){let X,q,N,K,H,M=f4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&f4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=L3(N.cp1x,J.left,J.right),N.cp1y=L3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=L3(N.cp2x,J.left,J.right),N.cp2y=L3(N.cp2y,J.top,J.bottom)}}function Nz(Q,J,X,q,N){let K,H,M,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")fO(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=vO(w,M,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(J.capBezierPoints)yO(Q,X)}function k3(){return typeof window<"u"&&typeof document<"u"}function f3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function V3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var y3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function gO(Q,J){return y3(Q).getPropertyValue(J)}var hO=["top","right","bottom","left"];function j9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=hO[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var uO=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function xO(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(uO(N,K,Q.target))M=N,F=K;else{let w=J.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function D2(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=y3(X),K=N.boxSizing==="border-box",H=j9(N,"padding"),M=j9(N,"border","width"),{x:F,y:w,box:z}=xO(Q,X),T=H.left+(z&&M.left),P=H.top+(z&&M.top),{width:I,height:A}=J;if(K)I-=H.width+M.width,A-=H.height+M.height;return{x:Math.round((F-T)/I*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function mO(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&f3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=y3(K),F=j9(M,"border","width"),w=j9(M,"padding");J=H.width-w.width-F.width,X=H.height-w.height-F.height,q=V3(M.maxWidth,K,"clientWidth"),N=V3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||C3,maxHeight:N||C3}}var O2=(Q)=>Math.round(Q*10)/10;function Uz(Q,J,X,q){let N=y3(Q),K=j9(N,"margin"),H=V3(N.maxWidth,Q,"clientWidth")||C3,M=V3(N.maxHeight,Q,"clientHeight")||C3,F=mO(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let P=j9(N,"border","width"),I=j9(N,"padding");w-=I.width+P.width,z-=I.height+P.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=O2(Math.min(w,H,F.maxWidth)),z=O2(Math.min(z,M,F.maxHeight)),w&&!z)z=O2(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=O2(Math.floor(z*q));return{width:w,height:z}}function AU(Q,J,X){let q=J||1,N=O2(Q.height*q),K=O2(Q.width*q);Q.height=O2(Q.height),Q.width=O2(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Kz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(k3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function SU(Q,J){let X=gO(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function I2(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Bz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function Hz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=I2(Q,N,X),M=I2(N,K,X),F=I2(K,J,X),w=I2(H,M,X),z=I2(M,F,X);return I2(w,z,X)}var dO=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},pO=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function b9(Q,J,X){return Q?dO(J,X):pO()}function jU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function DU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Mz(Q){if(Q==="angle")return{between:FU,compare:qO,normalize:r5};return{between:P8,compare:(J,X)=>J-X,normalize:(J)=>J}}function bR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function cO(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Mz(q),F=J.length,{start:w,end:z,loop:T}=Q,P,I;if(T){w+=F,z+=F;for(P=0,I=F;P<I;++P){if(!H(M(J[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function vU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:M,between:F,normalize:w}=Mz(q),{start:z,end:T,loop:P,style:I}=cO(Q,J,X),A=[],O=!1,V=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,o=()=>M(K,D)===0||F(K,p,D),Q0=()=>O||s(),t=()=>!O||o();for(let a=z,q0=z;a<=T;++a){if(h=J[a%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(O=F(D,N,K),V===null&&Q0())V=M(D,N)===0?a:q0;if(V!==null&&t())A.push(bR({start:V,end:a,loop:P,count:H,style:I})),V=null;q0=a,p=D}if(V!==null)A.push(bR({start:V,end:T,loop:P,count:H,style:I}));return A}function bU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=vU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function lO(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function rO(Q,J,X,q){let N=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:J%N,end:(F-1)%N,loop:q}),J=H=w.stop?F:null}else if(H=F,M.skip)J=F;M=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Fz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=lO(X,N,K,q);if(q===!0)return kR(Q,[{start:H,end:M,loop:K}],X,J);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return kR(Q,rO(X,H,F,w),X,J)}function kR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return sO(Q,J,X,q)}function sO(Q,J,X,q){let N=Q._chart.getContext(),K=fR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=J[0].start,P=T;function I(A,O,V,D){let h=M?-1:1;if(A===O)return;A+=F;while(X[A%F].skip)A-=h;while(X[O%F].skip)O+=h;if(A%F!==O%F)w.push({start:A%F,end:O%F,loop:V,style:D}),z=D,T=O%F}for(let A of J){T=M?T:A.start;let O=X[T%F],V;for(P=T+1;P<=A.end;P++){let D=X[P%F];if(V=fR(q.setContext(_8(N,{type:"segment",p0:O,p1:D,p0DataIndex:(P-1)%F,p1DataIndex:P%F,datasetIndex:H}))),nO(V,z))I(T,P-1,A.loop,z);O=D,z=V}if(T<P-1)I(T,P-1,A.loop,z)}return w}function fR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function nO(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!TU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function P3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function oO(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:P3(X,J,"left"),right:P3(X,J,"right"),top:P3(q,J,"top"),bottom:P3(q,J,"bottom")};return J}function kU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=oO(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.bottom)}}/*!
250
+ */function d4(){}var xR=(()=>{let Q=0;return()=>Q++})();function Z1(Q){return Q===null||Q===void 0}function V1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function t0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function g1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function Z6(Q,J){return g1(Q)?Q:J}function r0(Q,J){return typeof Q>"u"?J:Q}var mR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function _1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function B1(Q,J,X,q){let N,K,H;if(V1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if(t0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function UQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function V3(Q){if(V1(Q))return Q.map(V3);if(t0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=V3(Q[X[N]]);return J}return Q}function dR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function qV(Q,J,X,q){if(!dR(Q))return;let N=J[Q],K=X[Q];if(t0(N)&&t0(K))X$(N,K,q);else J[Q]=V3(K)}function X$(Q,J,X){let q=V1(J)?J:[J],N=q.length;if(!t0(Q))return Q;X=X||{};let K=X.merger||qV,H;for(let M=0;M<N;++M){if(H=q[M],!t0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function Y$(Q,J){return X$(Q,J,{merger:YV})}function YV(Q,J,X){if(!dR(Q))return;let q=J[Q],N=X[Q];if(t0(q)&&t0(N))Y$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=V3(N)}var jR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function NV(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function UV(Q){let J=NV(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function k9(Q,J){return(jR[J]||(jR[J]=UV(J)))(Q)}function j3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var N$=(Q)=>typeof Q<"u",_2=(Q)=>typeof Q==="function",FU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function pR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var l1=Math.PI,e5=2*l1,KV=e5+l1,A3=Number.POSITIVE_INFINITY,BV=l1/180,t5=l1/2,D9=l1/4,DR=l1*2/3,P2=Math.log10,N4=Math.sign;function U$(Q,J,X){return Math.abs(Q-J)<X}function WU(Q){let J=Math.round(Q);Q=U$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(P2(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function cR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function HV(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function K$(Q){return!HV(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function lR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function wU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function C2(Q){return Q*(l1/180)}function D3(Q){return Q*(180/l1)}function RU(Q){if(!g1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function rR(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*l1)K+=e5;return{angle:K,distance:N}}function E3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function MV(Q,J){return(Q-J+KV)%e5-l1}function i5(Q){return(Q%e5+e5)%e5}function zU(Q,J,X,q){let N=i5(Q),K=i5(J),H=i5(X),M=i5(K-N),F=i5(H-N),w=i5(N-K),z=i5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function $6(Q,J,X){return Math.max(J,Math.min(X,Q))}function sR(Q){return $6(Q,-32768,32767)}function I2(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function v3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var E8=(Q,J,X,q)=>v3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),nR=(Q,J,X)=>v3(Q,X,(q)=>Q[q][J]>=X);function oR(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var aR=["push","pop","shift","splice","unshift"];function iR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),aR.forEach((X)=>{let q="_onData"+j3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function TU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;aR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function LU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var _U=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function PU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,_U.call(window,()=>{q=!1,Q.apply(J,X)})}}function tR(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var b3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",L5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,eR=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function $z(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:_,minDefined:I,maxDefined:E}=H.getUserBounds();if(I){if(N=Math.min(E8(F,z,T).lo,X?q:E8(J,z,H.getPixelForValue(T)).lo),w){let V=F.slice(0,N+1).reverse().findIndex((O)=>!Z1(O[M.axis]));N-=Math.max(0,V)}N=$6(N,0,q-1)}if(E){let V=Math.max(E8(F,H.axis,_,!0).hi+1,X?0:E8(J,z,H.getPixelForValue(_),!0).hi+1);if(w){let O=F.slice(V-1).findIndex((D)=>!Z1(D[M.axis]));V+=Math.max(0,O)}K=$6(V,N,q)-N}else K=q-N}return{start:N,count:K}}function Zz(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var C3=(Q)=>Q===0||Q===1,vR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*e5/X)),bR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*e5/X)+1,G$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*t5)+1,easeOutSine:(Q)=>Math.sin(Q*t5),easeInOutSine:(Q)=>-0.5*(Math.cos(l1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>C3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>C3(Q)?Q:vR(Q,0.075,0.3),easeOutElastic:(Q)=>C3(Q)?Q:bR(Q,0.075,0.3),easeInOutElastic(Q){return C3(Q)?Q:Q<0.5?0.5*vR(Q*2,0.1125,0.45):0.5+0.5*bR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-G$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?G$.easeInBounce(Q*2)*0.5:G$.easeOutBounce(Q*2-1)*0.5+0.5};function CU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function IU(Q){return CU(Q)?Q:new J$(Q)}function HU(Q){return CU(Q)?Q:new J$(Q).saturate(0.5).darken(0.1).hexString()}var FV=["x","y","borderWidth","radius","tension"],WV=["color","borderColor","backgroundColor"];function wV(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:WV},numbers:{type:"number",properties:FV}}),Q.describe("animations",{_fallback:"animation"}),Q.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:(J)=>J|0}}}})}function RV(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var kR=new Map;function zV(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=kR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),kR.set(X,q);return q}function k3(Q,J,X){return zV(J,X).format(Q)}var Qz={values(Q){return V1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=TV(Q,X)}let H=P2(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),k3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(P2(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return Qz.numeric.call(this,Q,J,X);return""}};function TV(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var KQ={formatters:Qz};function LV(Q){Q.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:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.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:KQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var j8=Object.create(null),f3=Object.create(null);function YQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function MU(Q,J,X){if(typeof J==="string")return X$(YQ(Q,J),X);return X$(YQ(Q,""),J)}class Jz{constructor(Q,J){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=(X)=>X.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=(X,q)=>HU(q.backgroundColor),this.hoverBorderColor=(X,q)=>HU(q.borderColor),this.hoverColor=(X,q)=>HU(q.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(Q),this.apply(J)}set(Q,J){return MU(this,Q,J)}get(Q){return YQ(this,Q)}describe(Q,J){return MU(f3,Q,J)}override(Q,J){return MU(j8,Q,J)}route(Q,J,X,q){let N=YQ(this,Q),K=YQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[q];if(t0(M))return Object.assign({},F,M);return r0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var h1=new Jz({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[wV,RV,LV]);function _V(Q){if(!Q||Z1(Q.size)||Z1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function NQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function Gz(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,M=X.length,F,w,z,T,_;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!V1(T))H=NQ(Q,N,K,H,T);else if(V1(T)){for(w=0,z=T.length;w<z;w++)if(_=T[w],_!==void 0&&_!==null&&!V1(_))H=NQ(Q,N,K,H,_)}Q.restore();let I=K.length/2;if(I>X.length){for(F=0;F<I;F++)delete N[K[F]];K.splice(0,I)}return H}function D8(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function OU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function y3(Q,J,X,q){VU(Q,J,X,q,null)}function VU(Q,J,X,q,N){let K,H,M,F,w,z,T,_,I=J.pointStyle,E=J.rotation,V=J.radius,O=(E||0)*BV;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(O),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(V)||V<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,V,0,0,e5);else Q.arc(X,q,V,0,e5);Q.closePath();break;case"triangle":z=N?N/2:V,Q.moveTo(X+Math.sin(O)*z,q-Math.cos(O)*V),O+=DR,Q.lineTo(X+Math.sin(O)*z,q-Math.cos(O)*V),O+=DR,Q.lineTo(X+Math.sin(O)*z,q-Math.cos(O)*V),Q.closePath();break;case"rectRounded":w=V*0.516,F=V-w,H=Math.cos(O+D9)*F,T=Math.cos(O+D9)*(N?N/2-w:F),M=Math.sin(O+D9)*F,_=Math.sin(O+D9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,O-l1,O-t5),Q.arc(X+_,q-H,w,O-t5,O),Q.arc(X+T,q+M,w,O,O+t5),Q.arc(X-_,q+H,w,O+t5,O+l1),Q.closePath();break;case"rect":if(!E){F=Math.SQRT1_2*V,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}O+=D9;case"rectRot":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+_,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-_,q+H),Q.closePath();break;case"crossRot":O+=D9;case"cross":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H);break;case"star":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H),O+=D9,T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H);break;case"line":H=N?N/2:Math.cos(O)*V,M=Math.sin(O)*V,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(O)*(N?N/2:V),q+Math.sin(O)*V);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function m4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function BQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function HQ(Q){Q.restore()}function Xz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function qz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function PV(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!Z1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function CV(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function IV(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function v8(Q,J,X,q,N,K={}){let H=V1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,PV(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)IV(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!Z1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),CV(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function B$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*l1,l1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,l1,t5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,t5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-t5,!0),Q.lineTo(X+H.topLeft,q)}var OV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,VV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function AV(Q,J){let X=(""+Q).match(OV);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var EV=(Q)=>+Q||0;function AU(Q,J){let X={},q=t0(J),N=q?Object.keys(J):J,K=t0(Q)?q?(H)=>r0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=EV(K(H));return X}function EU(Q){return AU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function b8(Q){return AU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function _5(Q){let J=EU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function $5(Q,J){Q=Q||{},J=J||h1.font;let X=r0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=r0(Q.style,J.style);if(q&&!(""+q).match(VV))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:r0(Q.family,J.family),lineHeight:AV(r0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:r0(Q.weight,J.weight),string:""};return N.string=_V(N),N}function MQ(Q,J,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),N=!1;if(X!==void 0&&V1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function Yz(Q,J,X){let{min:q,max:N}=Q,K=mR(J,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function O2(Q,J){return Object.assign(Object.create(Q),J)}function g3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=Kz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>g3([M,...Q],J,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return Nz(M,F,()=>yV(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return yR(M).includes(F)},ownKeys(M){return yR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function b9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:SU(Q,q),setContext:(K)=>b9(Q,K,X,q),override:(K)=>b9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return Nz(K,H,()=>jV(K,H,M))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,M){return Q[H]=M,delete K[H],!0}})}function SU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:_2(X)?X:()=>X,isIndexable:_2(q)?q:()=>q}}var SV=(Q,J)=>Q?Q+j3(J):J,jU=(Q,J)=>t0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function Nz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function jV(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(_2(M)&&H.isScriptable(J))M=DV(J,M,Q,X);if(V1(M)&&M.length)M=vV(J,M,Q,H.isIndexable);if(jU(J,M))M=b9(M,N,K&&K[J],H);return M}function DV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||q);if(M.delete(Q),jU(Q,F))F=DU(N._scopes,N,Q,F);return F}function vV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if(t0(J[0])){let F=J,w=N._scopes.filter((z)=>z!==F);J=[];for(let z of F){let T=DU(w,N,Q,z);J.push(b9(T,K,H&&H[Q],M))}}return J}function Uz(Q,J,X){return _2(Q)?Q(J,X):Q}var bV=(Q,J)=>Q===!0?J:typeof Q==="string"?k9(J,Q):void 0;function kV(Q,J,X,q,N){for(let K of J){let H=bV(X,K);if(H){Q.add(H);let M=Uz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function DU(Q,J,X,q){let N=J._rootScopes,K=Uz(J._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=fR(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=fR(M,H,K,F,q),F===null)return!1}return g3(Array.from(M),[""],N,K,()=>fV(J,X,q))}function fR(Q,J,X,q,N){while(X)X=kV(Q,J,X,q,N);return X}function fV(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(V1(N)&&t0(X))return X;return N||{}}function yV(Q,J,X,q){let N;for(let K of J)if(N=Kz(SV(K,Q),X),typeof N<"u")return jU(Q,N)?DU(X,q,Q,N):N}function Kz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function yR(Q){let J=Q._keys;if(!J)J=Q._keys=gV(Q._scopes);return J}function gV(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var hV=Number.EPSILON||0.00000000000001,q$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Bz=(Q)=>Q==="x"?"y":"x";function uV(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=E3(K,N),F=E3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,_=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+_*(H.x-N.x),y:K.y+_*(H.y-N.y)}}}function xV(Q,J,X){let q=Q.length,N,K,H,M,F,w=q$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=q$(Q,z+1),!F||!w)continue;if(U$(J[z],0,hV)){X[z]=X[z+1]=0;continue}if(N=X[z]/J[z],K=X[z+1]/J[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*J[z],X[z+1]=K*H*J[z]}}function mV(Q,J,X="x"){let q=Bz(X),N=Q.length,K,H,M,F=q$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=q$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*J[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*J[w]}}function dV(Q,J="x"){let X=Bz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=q$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=q$(Q,H+1),!F)continue;if(w){let z=w[J]-F[J];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:N4(N[H-1])!==N4(N[H])?0:(N[H-1]+N[H])/2}xV(Q,N,K),mV(Q,K,J)}function I3(Q,J,X){return Math.max(Math.min(Q,X),J)}function pV(Q,J){let X,q,N,K,H,M=m4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&m4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=I3(N.cp1x,J.left,J.right),N.cp1y=I3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=I3(N.cp2x,J.left,J.right),N.cp2y=I3(N.cp2y,J.top,J.bottom)}}function Hz(Q,J,X,q,N){let K,H,M,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")dV(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=uV(w,M,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(J.capBezierPoints)pV(Q,X)}function h3(){return typeof window<"u"&&typeof document<"u"}function u3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function S3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var x3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function cV(Q,J){return x3(Q).getPropertyValue(J)}var lV=["top","right","bottom","left"];function v9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=lV[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var rV=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function sV(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(rV(N,K,Q.target))M=N,F=K;else{let w=J.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function k8(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=x3(X),K=N.boxSizing==="border-box",H=v9(N,"padding"),M=v9(N,"border","width"),{x:F,y:w,box:z}=sV(Q,X),T=H.left+(z&&M.left),_=H.top+(z&&M.top),{width:I,height:E}=J;if(K)I-=H.width+M.width,E-=H.height+M.height;return{x:Math.round((F-T)/I*X.width/q),y:Math.round((w-_)/E*X.height/q)}}function nV(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&u3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=x3(K),F=v9(M,"border","width"),w=v9(M,"padding");J=H.width-w.width-F.width,X=H.height-w.height-F.height,q=S3(M.maxWidth,K,"clientWidth"),N=S3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||A3,maxHeight:N||A3}}var S8=(Q)=>Math.round(Q*10)/10;function Mz(Q,J,X,q){let N=x3(Q),K=v9(N,"margin"),H=S3(N.maxWidth,Q,"clientWidth")||A3,M=S3(N.maxHeight,Q,"clientHeight")||A3,F=nV(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let _=v9(N,"border","width"),I=v9(N,"padding");w-=I.width+_.width,z-=I.height+_.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=S8(Math.min(w,H,F.maxWidth)),z=S8(Math.min(z,M,F.maxHeight)),w&&!z)z=S8(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=S8(Math.floor(z*q));return{width:w,height:z}}function vU(Q,J,X){let q=J||1,N=S8(Q.height*q),K=S8(Q.width*q);Q.height=S8(Q.height),Q.width=S8(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Fz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(h3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function bU(Q,J){let X=cV(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function A8(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Wz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function wz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=A8(Q,N,X),M=A8(N,K,X),F=A8(K,J,X),w=A8(H,M,X),z=A8(M,F,X);return A8(w,z,X)}var oV=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},aV=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function f9(Q,J,X){return Q?oV(J,X):aV()}function kU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function fU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Rz(Q){if(Q==="angle")return{between:zU,compare:MV,normalize:i5};return{between:I2,compare:(J,X)=>J-X,normalize:(J)=>J}}function gR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function iV(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Rz(q),F=J.length,{start:w,end:z,loop:T}=Q,_,I;if(T){w+=F,z+=F;for(_=0,I=F;_<I;++_){if(!H(M(J[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function yU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:M,between:F,normalize:w}=Rz(q),{start:z,end:T,loop:_,style:I}=iV(Q,J,X),E=[],V=!1,O=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,a=()=>M(K,D)===0||F(K,p,D),J0=()=>V||s(),t=()=>!V||a();for(let i=z,Y0=z;i<=T;++i){if(h=J[i%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(V=F(D,N,K),O===null&&J0())O=M(D,N)===0?i:Y0;if(O!==null&&t())E.push(gR({start:O,end:i,loop:_,count:H,style:I})),O=null;Y0=i,p=D}if(O!==null)E.push(gR({start:O,end:T,loop:_,count:H,style:I}));return E}function gU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=yU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function tV(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function eV(Q,J,X,q){let N=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:J%N,end:(F-1)%N,loop:q}),J=H=w.stop?F:null}else if(H=F,M.skip)J=F;M=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function zz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=tV(X,N,K,q);if(q===!0)return hR(Q,[{start:H,end:M,loop:K}],X,J);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return hR(Q,eV(X,H,F,w),X,J)}function hR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return $A(Q,J,X,q)}function $A(Q,J,X,q){let N=Q._chart.getContext(),K=uR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=J[0].start,_=T;function I(E,V,O,D){let h=M?-1:1;if(E===V)return;E+=F;while(X[E%F].skip)E-=h;while(X[V%F].skip)V+=h;if(E%F!==V%F)w.push({start:E%F,end:V%F,loop:O,style:D}),z=D,T=V%F}for(let E of J){T=M?T:E.start;let V=X[T%F],O;for(_=T+1;_<=E.end;_++){let D=X[_%F];if(O=uR(q.setContext(O2(N,{type:"segment",p0:V,p1:D,p0DataIndex:(_-1)%F,p1DataIndex:_%F,datasetIndex:H}))),ZA(O,z))I(T,_-1,E.loop,z);V=D,z=O}if(T<_-1)I(T,_-1,E.loop,z)}return w}function uR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function ZA(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!CU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function O3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function QA(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:O3(X,J,"left"),right:O3(X,J,"right"),top:O3(q,J,"top"),bottom:O3(q,J,"bottom")};return J}function hU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=QA(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.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 BT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=RU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var C8=new BT,Wz="transparent",aO={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=LU(Q||Wz),N=q.valid&&LU(J||Wz);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class HT{constructor(Q,J,X,q){let N=J[X];q=KQ([Q.to,q,N,Q.from]);let K=KQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||aO[Q.type||typeof K],this._easing=Z$[Q.easing]||Z$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=KQ([Q.to,J,q,Q.from]),this._from=KQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,M;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}M=J/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class $K{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!a0(Q))return;let J=Object.keys(k1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!a0(N))return;let K={};for(let H of J)K[H]=N[H];(C1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=tO(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)iO(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new HT(T,Q,F,w),q.push(z)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return C8.add(this._chart,X),!0}}function iO(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function tO(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function wz(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function eO(Q,J,X){if(X===!1)return!1;let q=wz(Q,X),N=wz(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function $E(Q){let J,X,q,N;if(a0(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function MT(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function Rz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(J===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],b1(w)&&(K||J===0||G4(J)===G4(w)))J+=w}if(!z&&!q.all)return 0;return J}function ZE(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function fU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function QE(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function JE(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function GE(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function zz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Tz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=QE(K,H,q),T=J.length,P;for(let I=0;I<T;++I){let A=J[I],{[F]:O,[w]:V}=A,D=A._stacks||(A._stacks={});P=D[w]=GE(N,z,O),P[M]=V,P._top=zz(P,H,!0,q.type),P._bottom=zz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[M]=V}}function yU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function XE(Q,J){return _8(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function qE(Q,J,X){return _8(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function BQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var gU=(Q)=>Q==="reset"||Q==="none",Lz=(Q,J)=>J?Q:Object.assign({},Q),YE=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:MT(X,!0),values:null};class l3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,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 Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=fU(Q.vScale,Q),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(Q){if(this.index!==Q)BQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,P,I)=>z==="x"?T:z==="r"?I:P,N=J.xAxisID=c0(X.xAxisID,yU(Q,"x")),K=J.yAxisID=c0(X.yAxisID,yU(Q,"y")),H=J.rAxisID=c0(X.rAxisID,yU(Q,"r")),M=J.indexAxis,F=J.iAxisID=q(M,N,K,H),w=J.vAxisID=q(M,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)WU(this._data,this);if(Q._stacked)BQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(a0(J)){let q=this._cachedMeta;this._data=ZE(J,q)}else if(X!==J){if(X){WU(X,this);let q=this._cachedMeta;BQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))sR(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=fU(J.vScale,J),J.stack!==X.stack)q=!0,BQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Tz(this,J._parsed),J._stacked=fU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,M=Q===0&&J===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(C1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(a0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let P=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(P())M=!1;F=z}X._sorted=M}if(K)Tz(this,T)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,P,I;for(T=0,P=q;T<P;++T)I=T+X,z[T]={[H]:w||N.parse(F[I],I),[M]:K.parse(J[I],I)};return z}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=J[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,P;for(w=0,z=q;w<z;++w)T=w+X,P=J[T],F[w]={x:N.parse(v9(P,H),T),y:K.parse(v9(P,M),T)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:MT(q,!0),values:J._stacks[Q.axis]._visualValues};return Rz(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=Rz(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),M=YE(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=JE(H),T,P;function I(){P=q[T];let A=P[H.axis];return!b1(P[Q.axis])||w>A||z<A}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,P,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,P,M);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],b1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=$E(c0(this.options.clip,eO(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=qE(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=XE(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],M=this.enableOptionSharing&&X$(X);if(H)return Lz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),P=Object.keys(k1.elements[Q]),I=()=>this.getContext(X,q,J),A=F.resolveNamedOptions(T,P,I,z);if(A.$shared)A.$shared=M,N[K]=Object.freeze(Lz(A,M));return A}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,J),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,J))}let F=new $K(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||gU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(gU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!gU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)BQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function NE(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=wU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function UE(Q){let J=Q.iScale,X=NE(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(X$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),F();return q}function KE(Q,J,X,q){let N=X.barThickness,K,H;if($1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function BE(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function HE(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;J[X.axis]=w,J._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function FT(Q,J,X,q){if(C1(Q))HE(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Pz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,P;for(w=X,z=X+q;w<z;++w)P=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(FT(P,T,K,w));return F}function hU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function ME(Q,J,X){if(Q!==0)return G4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function FE(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function WE(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:F,top:w,bottom:z}=FE(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[_z(z,H,M,F)]=!0,N=w;K[_z(N,H,M,F)]=!0,Q.borderSkipped=K}function _z(Q,J,X,q){if(q)Q=wE(Q,J,X),Q=Cz(Q,X,J);else Q=Cz(Q,J,X);return Q}function wE(Q,J,X){return Q===J?X:Q===X?J:Q}function Cz(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function RE(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class ZK extends l3{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(Q,J,X,q){return Pz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Pz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,P,I,A;for(T=X,P=X+q;T<P;++T)A=J[T],I={},I[N.axis]=N.parse(v9(A,F),T),z.push(FT(v9(A,w),I,K,T));return z}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=hU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(J,q);for(let P=J;P<J+X;P++){let I=this.getParsed(P),A=N||$1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(P),O=this._calculateBarIndexPixels(P,w),V=(I._stacks||{})[H.axis],D={horizontal:F,base:A.base,enableBorderRadius:!V||hU(I._custom)||K===V._top||K===V._bottom,x:F?A.head:O.center,y:F?O.center:A.head,height:F?O.size:Math.abs(A.size),width:F?Math.abs(A.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;WE(D,h,V,K),RE(D,h,w.ratio),this.updateElement(Q[P],P,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((P)=>P[X.axis]===M),T=z&&z[w.vScale.axis];if($1(T)||isNaN(T))return!0};for(let w of q){if(J!==void 0&&F(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[c0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||UE(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,M=this.getParsed(Q),F=M._custom,w=hU(F),z=M[J.axis],T=0,P=X?this.applyStack(J,M,X):z,I,A;if(P!==z)T=P-z,P=z;if(w){if(z=F.barStart,P=F.barEnd-F.barStart,z!==0&&G4(z)!==G4(F.barEnd))T=0;T+=z}let O=!$1(N)&&!w?N:T,V=J.getPixelForValue(O);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(T+P);else I=V;if(A=I-V,Math.abs(A)<K){if(A=ME(A,J,H)*K,z===H)V-=A/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(V=Math.max(Math.min(V,s),p),I=V+A,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(V)}if(V===J.getPixelForValue(H)){let D=G4(A)*J.getLineWidthForValue(H)/2;V+=D,A-=D}return{size:A,base:V,head:I,center:I+A/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=c0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,z=q.barThickness==="flex"?BE(Q,J,q,w*F):KE(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(c0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class QK extends l3{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(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:M}=aR(J,q,K);if(this._drawStart=H,this._drawCount=M,iR(J))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(J,q),T=K.axis,P=H.axis,{spanGaps:I,segment:A}=this.options,O=Y$(I)?I:Number.POSITIVE_INFINITY,V=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let o=Q[s],Q0=V?o:{};if(s<J||s>=D){Q0.skip=!0;continue}let t=this.getParsed(s),a=$1(t[P]),q0=Q0[T]=K.getPixelForValue(t[T],s),d=Q0[P]=N||a?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,t,M):t[P],s);if(Q0.skip=isNaN(q0)||isNaN(d)||a,Q0.stop=s>0&&Math.abs(t[T]-p[T])>O,A)Q0.parsed=t,Q0.raw=F.data[s];if(z)Q0.options=w||this.resolveDataElementOptions(s,o.active?"active":q);if(!V)this.updateElement(o,s,Q0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function k9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class JK{static override(Q){Object.assign(JK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return k9()}parse(){return k9()}format(){return k9()}add(){return k9()}diff(){return k9()}startOf(){return k9()}endOf(){return k9()}}var zE={_date:JK};function TE(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let w=M._reversePixels?cR:V2;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:P}=Q,I=P.slice(0,z.lo+1).reverse().findIndex((O)=>!$1(O[T.axis]));z.lo-=Math.max(0,I);let A=P.slice(z.hi).findIndex((O)=>!$1(O[T.axis]));z.hi+=Math.max(0,A)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(J);if(T){let P=w(K,J,X-T),I=w(K,J,X+T);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function _Q(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:P}=TE(K[M],J,H,N);for(let I=T;I<=P;++I){let A=z[I];if(!A.skip)q(A,w,I)}}}function LE(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function uU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return _Q(Q,X,J,function(M,F,w){if(!N&&!f4(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function PE(Q,J,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=dR(H,{x:J.x,y:J.y});if(FU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return _Q(Q,X,J,K),N}function _E(Q,J,X,q,N,K){let H=[],M=LE(X),F=Number.POSITIVE_INFINITY;function w(z,T,P){let I=z.inRange(J.x,J.y,N);if(q&&!I)return;let A=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!I)return;let V=M(J,A);if(V<F)H=[{element:z,datasetIndex:T,index:P}],F=V;else if(V===F)H.push({element:z,datasetIndex:T,index:P})}return _Q(Q,X,J,w),H}function xU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?PE(Q,J,X,N):_E(Q,J,X,q,N,K)}function Iz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(_Q(Q,X,J,(F,w,z)=>{if(F[H]&&F[H](J[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(J.x,J.y,N)}),q&&!M)return[];return K}var CE={evaluateInteractionItems:_Q,modes:{index(Q,J,X,q){let N=D2(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return uU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return xU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=D2(J,Q);return Iz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=D2(J,Q);return Iz(Q,N,"y",X.intersect,q)}}},WT=["left","top","right","bottom"];function HQ(Q,J){return Q.filter((X)=>X.pos===J)}function Vz(Q,J){return Q.filter((X)=>WT.indexOf(X.pos)===-1&&X.box.axis===J)}function MQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function IE(Q){let J=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return J}function VE(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!WT.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function OE(Q,J){let X=VE(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&J.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&J.availableHeight}return X}function EE(Q){let J=IE(Q),X=MQ(J.filter((w)=>w.box.fullSize),!0),q=MQ(HQ(J,"left"),!0),N=MQ(HQ(J,"right")),K=MQ(HQ(J,"top"),!0),H=MQ(HQ(J,"bottom")),M=Vz(J,"x"),F=Vz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:HQ(J,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function Oz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function wT(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function AE(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!a0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)wT(H,K.getPadding());let M=Math.max(0,J.outerWidth-Oz(H,Q,"left","right")),F=Math.max(0,J.outerHeight-Oz(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function SE(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function jE(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function wQ(Q,J,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,jE(M.horizontal,J));let{same:T,other:P}=AE(J,X,M,q);if(w|=T&&N.length,z=z||P,!F.fullSize)N.push(M)}return w&&wQ(N,J,X,q)||z}function g3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function Ez(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=J.w*z,P=w.size||F.height;if(X$(w.start))H=w.start;if(F.fullSize)g3(F,N.left,H,X.outerWidth-N.right-N.left,P);else g3(F,J.left+w.placed,H,T,P);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,P=w.size||F.width;if(X$(w.start))K=w.start;if(F.fullSize)g3(F,K,N.top,P,X.outerHeight-N.bottom-N.top);else g3(F,K,J.top+w.placed,P,T);w.start=K,w.placed+=T,K=F.right}}J.x=K,J.y=H}var x6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=R5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),M=EE(Q.boxes),F=M.vertical,w=M.horizontal;K1(Q.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let z=F.reduce((O,V)=>V.box.options&&V.box.options.display===!1?O:O+1,0)||1,T=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),P=Object.assign({},N);wT(P,R5(q));let I=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=OE(F.concat(w),T);if(wQ(M.fullSize,I,T,A),wQ(F,I,T,A),wQ(w,I,T,A))wQ(F,I,T,A);SE(I),Ez(M.leftAndTop,I,T,A),I.x+=I.w,I.y+=I.h,Ez(M.rightAndBottom,I,T,A),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},K1(M.chartArea,(O)=>{let V=O.box;Object.assign(V,Q.chartArea),V.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class GK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class RT extends GK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var d3="$chartjs",DE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Az=(Q)=>Q===null||Q==="";function vE(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[d3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",Az(N)){let K=SU(Q,"width");if(K!==void 0)Q.width=K}if(Az(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=SU(Q,"height");if(K!==void 0)Q.height=K}return Q}var zT=Kz?{passive:!0}:!1;function bE(Q,J,X){if(Q)Q.addEventListener(J,X,zT)}function kE(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,zT)}function fE(Q,J){let X=DE[Q.type]||Q.type,{x:q,y:N}=D2(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function c3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function yE(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||c3(M.addedNodes,q),H=H&&!c3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function gE(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||c3(M.removedNodes,q),H=H&&!c3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var TQ=new Map,Sz=0;function TT(){let Q=window.devicePixelRatio;if(Q===Sz)return;Sz=Q,TQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function hE(Q,J){if(!TQ.size)window.addEventListener("resize",TT);TQ.set(Q,J)}function uE(Q){if(TQ.delete(Q),!TQ.size)window.removeEventListener("resize",TT)}function xE(Q,J,X){let q=Q.canvas,N=q&&f3(q);if(!N)return;let K=zU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),hE(Q,K),H}function mU(Q,J,X){if(X)X.disconnect();if(J==="resize")uE(Q)}function mE(Q,J,X){let q=Q.canvas,N=zU((K)=>{if(Q.ctx!==null)X(fE(K,Q))},Q);return bE(q,J,N),N}class LT extends GK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return vE(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[d3])return!1;let X=J[d3].initial;["height","width"].forEach((N)=>{let K=X[N];if($1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[d3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:yE,detach:gE,resize:xE}[J]||mE;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:mU,detach:mU,resize:mU}[J]||kE)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Uz(Q,J,X,q)}isAttached(Q){let J=Q&&f3(Q);return!!(J&&J.isConnected)}}function dE(Q){if(!k3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return RT;return LT}class V8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return Y$(this.x)&&Y$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function pE(Q,J){let X=Q.options.ticks,q=cE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?rE(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return sE(J,w,K,H/N),w;let z=lE(K,J,N);if(H>0){let T,P,I=H>1?Math.round((F-M)/(H-1)):null;h3(J,w,z,$1(I)?0:M-I,M);for(T=0,P=H-1;T<P;T++)h3(J,w,z,K[T],K[T+1]);return h3(J,w,z,F,$1(I)?J.length:F+I),w}return h3(J,w,z),w}function cE(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function lE(Q,J,X){let q=nE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=xR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function rE(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function sE(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function h3(Q,J,X,q,N){let K=c0(q,0),H=Math.min(c0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)J.push(Q[w]),M++,z=Math.round(K+M*X)}function nE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var oE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,jz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,Dz=(Q,J)=>Math.min(J||Q,Q);function vz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function aE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<J?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function iE(Q,J){K1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function FQ(Q){return Q.drawTicks?Q.tickLength:0}function bz(Q,J){if(!Q.display)return 0;let X=i1(Q.font,J),q=R5(Q.padding);return(C1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function tE(Q,J){return _8(Q,{scale:J,type:"scale"})}function eE(Q,J,X){return _8(Q,{tick:X,index:J,type:"tick"})}function $A(Q,J,X){let q=S3(Q);if(X&&J!=="right"||!X&&J==="right")q=oE(q);return q}function ZA(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,P,I,A,O=H-N,V=M-K;if(Q.isHorizontal()){if(I=w5(q,K,M),a0(X)){let D=Object.keys(X)[0],h=X[D];A=z[D].getPixelForValue(h)+O-J}else if(X==="center")A=(w.bottom+w.top)/2+O-J;else A=jz(Q,X,J);P=M-K}else{if(a0(X)){let D=Object.keys(X)[0],h=X[D];I=z[D].getPixelForValue(h)-V+J}else if(X==="center")I=(w.left+w.right)/2-V+J;else I=jz(Q,X,J);A=w5(q,H,N),T=X==="left"?-s5:s5}return{titleX:I,titleY:A,maxWidth:P,rotation:T}}class y9 extends V8{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.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(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=a5(Q,Number.POSITIVE_INFINITY),J=a5(J,Number.NEGATIVE_INFINITY),X=a5(X,Number.POSITIVE_INFINITY),q=a5(q,Number.NEGATIVE_INFINITY),{min:a5(Q,X),max:a5(J,q),minDefined:b1(Q),maxDefined:b1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:a5(J,a5(X,J)),max:a5(X,a5(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){T1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Jz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?vz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=pE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){T1(this.options.afterUpdate,[this])}beforeSetDimensions(){T1(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(){T1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),T1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){T1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=T1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){T1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){T1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=Dz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,M,F;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,P=o5(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),z+6>H)H=P/(X-(Q.offset?0.5:1)),M=this.maxHeight-FQ(Q.grid)-J.padding-bz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=E3(Math.min(Math.asin(o5((w.highest.height+6)/H,-1,1)),Math.asin(o5(M/F,-1,1))-Math.asin(o5(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){T1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){T1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=bz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=FQ(N)+M;else Q.height=this.maxHeight,Q.width=FQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),P=X.padding*2,I=L8(this.labelRotation),A=Math.cos(I),O=Math.sin(I);if(H){let V=X.mirror?0:O*z.width+A*T.height;Q.height=Math.min(this.maxHeight,Q.height+V+P)}else{let V=X.mirror?0:A*z.width+O*T.height;Q.width=Math.min(this.maxWidth,Q.width+V+P)}this._calculatePadding(F,w,O,A)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,P=0;if(M)if(F)T=q*Q.width,P=X*J.height;else T=X*Q.height,P=q*J.width;else if(N==="start")P=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,P=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-z+K)*this.width/(this.width-z),0)}else{let w=J.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=J.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){T1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if($1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=vz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],M=Math.floor(J/Dz(J,X)),F=0,w=0,z,T,P,I,A,O,V,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,A=this._resolveTickFontOptions(z),q.font=O=A.string,V=N[O]=N[O]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!$1(I)&&!C1(I))h=XQ(q,V.data,V.gc,h,I),p=D;else if(C1(I)){for(T=0,P=I.length;T<P;++T)if(s=I[T],!$1(s)&&!C1(s))h=XQ(q,V.data,V.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}iE(N,J);let o=K.indexOf(F),Q0=H.indexOf(w),t=(a)=>({width:K[a]||0,height:H[a]||0});return{first:t(0),last:t(J-1),widest:t(o),highest:t(Q0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return pR(this._alignToPixels?A2(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=eE(this.getContext(),Q,X))}return this.$context||(this.$context=tE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=L8(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=FQ(N),P=[],I=H.setContext(this.getContext()),A=I.display?I.width:0,O=A/2,V=function(l){return A2(X,l,A)},D,h,p,s,o,Q0,t,a,q0,d,K0,L0;if(K==="top")D=V(this.bottom),Q0=this.bottom-T,a=D-O,d=V(Q.top)+O,L0=Q.bottom;else if(K==="bottom")D=V(this.top),d=Q.top,L0=V(Q.bottom)-O,Q0=D+O,a=this.top+T;else if(K==="left")D=V(this.right),o=this.right-T,t=D-O,q0=V(Q.left)+O,K0=Q.right;else if(K==="right")D=V(this.left),q0=Q.left,K0=V(Q.right)-O,o=D+O,t=this.left+T;else if(J==="x"){if(K==="center")D=V((Q.top+Q.bottom)/2+0.5);else if(a0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}d=Q.top,L0=Q.bottom,Q0=D+O,a=Q0+T}else if(J==="y"){if(K==="center")D=V((Q.left+Q.right)/2);else if(a0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}o=D-O,t=o-T,q0=Q.left,K0=Q.right}let _0=c0(q.ticks.maxTicksLimit,z),D0=Math.max(1,Math.ceil(z/_0));for(h=0;h<z;h+=D0){let l=this.getContext(h),X0=N.setContext(l),B0=H.setContext(l),r0=X0.lineWidth,u0=X0.color,v=B0.dash||[],n=B0.dashOffset,H0=X0.tickWidth,F0=X0.tickColor,x0=X0.tickBorderDash||[],y1=X0.tickBorderDashOffset;if(p=aE(this,h,M),p===void 0)continue;if(s=A2(X,p,r0),F)o=t=q0=K0=s;else Q0=a=d=L0=s;P.push({tx1:o,ty1:Q0,tx2:t,ty2:a,x1:q0,y1:d,x2:K0,y2:L0,width:r0,color:u0,borderDash:v,borderDashOffset:n,tickWidth:H0,tickColor:F0,tickBorderDash:x0,tickBorderDashOffset:y1})}return this._ticksLength=z,this._borderValue=D,P}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:w,mirror:z}=N,T=FQ(X.grid),P=T+w,I=z?-w:P,A=-L8(this.labelRotation),O=[],V,D,h,p,s,o,Q0,t,a,q0,d,K0,L0="middle";if(q==="top")o=this.bottom-I,Q0=this._getXAxisLabelAlignment();else if(q==="bottom")o=this.top+I,Q0=this._getXAxisLabelAlignment();else if(q==="left"){let D0=this._getYAxisLabelAlignment(T);Q0=D0.textAlign,s=D0.x}else if(q==="right"){let D0=this._getYAxisLabelAlignment(T);Q0=D0.textAlign,s=D0.x}else if(J==="x"){if(q==="center")o=(Q.top+Q.bottom)/2+P;else if(a0(q)){let D0=Object.keys(q)[0],l=q[D0];o=this.chart.scales[D0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if(a0(q)){let D0=Object.keys(q)[0],l=q[D0];s=this.chart.scales[D0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")L0="top";else if(M==="end")L0="bottom"}let _0=this._getLabelSizes();for(V=0,D=H.length;V<D;++V){h=H[V],p=h.label;let D0=N.setContext(this.getContext(V));t=this.getPixelForTick(V)+N.labelOffset,a=this._resolveTickFontOptions(V),q0=a.lineHeight,d=C1(p)?p.length:1;let l=d/2,X0=D0.color,B0=D0.textStrokeColor,r0=D0.textStrokeWidth,u0=Q0;if(K){if(s=t,Q0==="inner")if(V===D-1)u0=!this.options.reverse?"right":"left";else if(V===0)u0=!this.options.reverse?"left":"right";else u0="center";if(q==="top")if(F==="near"||A!==0)K0=-d*q0+q0/2;else if(F==="center")K0=-_0.highest.height/2-l*q0+q0;else K0=-_0.highest.height+q0/2;else if(F==="near"||A!==0)K0=q0/2;else if(F==="center")K0=_0.highest.height/2-l*q0;else K0=_0.highest.height-d*q0;if(z)K0*=-1;if(A!==0&&!D0.showLabelBackdrop)s+=q0/2*Math.sin(A)}else o=t,K0=(1-d)*q0/2;let v;if(D0.showLabelBackdrop){let n=R5(D0.backdropPadding),H0=_0.heights[V],F0=_0.widths[V],x0=K0-n.top,y1=0-n.left;switch(L0){case"middle":x0-=H0/2;break;case"bottom":x0-=H0;break}switch(Q0){case"center":y1-=F0/2;break;case"right":y1-=F0;break;case"inner":if(V===D-1)y1-=F0;else if(V>0)y1-=F0/2;break}v={left:y1,top:x0,width:F0+n.width,height:H0+n.height,color:D0.backdropColor}}O.push({label:p,font:a,textOffset:K0,options:{rotation:A,color:X0,strokeColor:B0,strokeWidth:r0,textAlign:u0,textBaseline:L0,translation:[s,o],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-L8(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,M=K.widest.width,F,w;if(J==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(M,F,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=A2(Q,this.left,K)-K/2,w=A2(Q,this.right,H)+H/2,z=T=M;else z=A2(Q,this.top,K)-K/2,T=A2(Q,this.bottom,H)+H/2,F=w=M;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(F,z),J.lineTo(w,T),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)NQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;S2(X,F,0,w,M,H)}if(q)UQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=i1(X.font),K=R5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||a0(J)){if(M+=K.bottom,C1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=ZA(this,M,J,H);S2(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:$A(H,J,q),textBaseline:"middle",translation:[F,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=c0(Q.grid&&Q.grid.z,-1),q=c0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==y9.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return i1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class RQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(GA(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,QA(Q,K,X),this.override)k1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in k1[q]){if(delete k1[q][X],this.override)delete E2[X]}}}function QA(Q,J,X){let q=Q$(Object.create(null),[X?k1.get(X):{},k1.get(J),Q.defaults]);if(k1.set(J,q),Q.defaultRoutes)JA(J,Q.defaultRoutes);if(Q.descriptors)k1.describe(J,Q.descriptors)}function JA(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),M=H.pop(),F=H.join(".");k1.route(K,N,F,M)})}function GA(Q){return"id"in Q&&"defaults"in Q}class PT{constructor(){this.controllers=new RQ(l3,"datasets",!0),this.elements=new RQ(V8,"elements"),this.plugins=new RQ(Object,"plugins"),this.scales=new RQ(y9,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else K1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=O3(Q);T1(X["before"+q],[],X),J[Q](X),T1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var h4=new PT;class _T{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],M=[J,q,N.options];if(T1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!$1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=c0(X.options&&X.options.plugins,{}),N=XA(X);return q===!1&&!J?[]:YA(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function XA(Q){let J={},X=[],q=Object.keys(h4.plugins.items);for(let K=0;K<q.length;K++)X.push(h4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function qA(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function YA(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=qA(q[F],N);if(w===null)continue;K.push({plugin:M,options:NA(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function NA(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rU(Q,J){let X=k1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function UA(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function KA(Q,J){return Q===J?"_index_":"_value_"}function kz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function BA(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function sU(Q,...J){if(kz(Q))return Q;for(let X of J){let q=X.axis||BA(X.position)||Q.length>1&&kz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function fz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function HA(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return fz(Q,"x",X[0])||fz(Q,"y",X[0])}return{}}function MA(Q,J){let X=E2[Q.type]||{scales:{}},q=J.scales||{},N=rU(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!a0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=sU(H,M,HA(H,Q),k1.scales[M.type]),w=KA(F,N),z=X.scales||{};K[H]=G$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||rU(M,J),z=(E2[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let P=UA(T,F),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),G$(K[I],[{axis:P},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];G$(M,[k1.scales[M.type],k1.scale])}),K}function CT(Q){let J=Q.options||(Q.options={});J.plugins=c0(J.plugins,{}),J.scales=MA(Q,J)}function IT(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function FA(Q){return Q=Q||{},Q.data=IT(Q.data),CT(Q),Q}var yz=new Map,VT=new Set;function u3(Q,J){let X=yz.get(Q);if(!X)X=J(),yz.set(Q,X),VT.add(X);return X}var WQ=(Q,J,X)=>{let q=v9(J,X);if(q!==void 0)Q.add(q)};class OT{constructor(Q){this._config=FA(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=IT(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),CT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return u3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return u3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return u3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return u3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let M=new Set;J.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>WQ(M,Q,z));w.forEach((z)=>WQ(M,q,z)),w.forEach((z)=>WQ(M,E2[N]||{},z)),w.forEach((z)=>WQ(M,k1,z)),w.forEach((z)=>WQ(M,D3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(VT.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,E2[J]||{},k1.datasets[J]||{},{type:J},k1,D3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=gz(this._resolverCache,Q,q),M=K;if(wA(K,J)){N.$shared=!1,X=z8(X)?X():X;let F=this.createResolver(Q,X,H);M=D9(K,X,F)}for(let F of J)N[F]=M[F];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=gz(this._resolverCache,Q,X);return a0(J)?D9(N,J,void 0,q):N}}function gz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:b3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var WA=(Q)=>a0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>z8(Q[J]));function wA(Q,J){let{isScriptable:X,isIndexable:q}=VU(Q);for(let N of J){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(z8(M)||WA(M))||H&&C1(M))return!0}return!1}var RA="4.5.1",zA=["top","bottom","left","right","chartArea"];function hz(Q,J){return Q==="top"||Q==="bottom"||zA.indexOf(Q)===-1&&J==="x"}function uz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function xz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),T1(X&&X.onComplete,[Q],J)}function TA(Q){let J=Q.chart,X=J.options.animation;T1(X&&X.onProgress,[Q],J)}function ET(Q){if(k3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var p3={},mz=(Q)=>{let J=ET(Q);return Object.values(p3).filter((X)=>X.canvas===J).pop()};function LA(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function PA(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class g9{static defaults=k1;static instances=p3;static overrides=E2;static registry=h4;static version=RA;static getChart=mz;static register(...Q){h4.add(...Q),dz()}static unregister(...Q){h4.remove(...Q),dz()}constructor(Q,J){let X=this.config=new OT(J),q=ET(Q),N=mz(q);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=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||dE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=yR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,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 _T,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],p3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(C8.listen(this,"complete",xz),C8.listen(this,"progress",TA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!$1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return h4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else AU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return PU(this.canvas,this.ctx),this}stop(){return C8.stop(this),this}resize(Q,J){if(!C8.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!AU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),T1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};K1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],M=sU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));K1(N,(K)=>{let H=K.options,M=H.id,F=sU(M,H),w=c0(H.type,K.dtype);if(H.position===void 0||hz(H.position,F)!==hz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(h4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),K1(q,(K,H)=>{if(!K)delete X[H]}),K1(X,(K)=>{x6.configure(this,K,K.options),x6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(uz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||rU(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let M=h4.getController(H),{datasetElementType:F,dataElementType:w}=k1.datasets[H];Object.assign(M,{dataElementType:h4.getElement(w),datasetElementType:F&&h4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){K1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)K1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(uz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){K1(this.scales,(Q)=>{x6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!KU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;LA(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!KU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;x6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],K1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,z8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(C8.has(this)){if(this.attached&&!C8.running(this))C8.start(this)}else this.draw(),xz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=kU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)NQ(J,q);if(Q.controller.draw(),q)UQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return f4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=CE.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=_8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(X$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),C8.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),PU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete p3[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};K1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){K1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},K1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,M;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.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(!qQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),M=uR(Q),F=PA(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,T1(N.onHover,[Q,H,this],this),M)T1(N.onClick,[Q,H,this],this)}let w=!qQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=F,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function dz(){return K1(g9.instances,(Q)=>Q._plugins.invalidate())}function AT(Q,J,X=J){Q.lineCap=c0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(c0(X.borderDash,J.borderDash)),Q.lineDashOffset=c0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=c0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=c0(X.borderWidth,J.borderWidth),Q.strokeStyle=c0(X.borderColor,J.borderColor)}function _A(Q,J,X){Q.lineTo(X.x,X.y)}function CA(Q){if(Q.stepped)return Zz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Qz;return _A}function ST(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=J,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:J.loop,ilen:w<F&&!z?q+w-F:w-F}}function IA(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=ST(N,X,q),z=CA(K),{move:T=!0,reverse:P}=q||{},I,A,O;for(I=0;I<=w;++I){if(A=N[(M+(P?w-I:I))%H],A.skip)continue;else if(T)Q.moveTo(A.x,A.y),T=!1;else z(Q,O,A,P,K.stepped);O=A}if(F)A=N[(M+(P?w:0))%H],z(Q,O,A,P,K.stepped);return!!F}function VA(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:M}=ST(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,P,I,A,O,V,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(O!==V)Q.lineTo(z,V),Q.lineTo(z,O),Q.lineTo(z,D)};if(F)I=N[h(0)],Q.moveTo(I.x,I.y);for(P=0;P<=M;++P){if(I=N[h(P)],I.skip)continue;let{x:s,y:o}=I,Q0=s|0;if(Q0===A){if(o<O)O=o;else if(o>V)V=o;z=(T*z+s)/++T}else p(),Q.lineTo(s,o),A=Q0,T=0,O=V=o;D=o}p()}function nU(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?VA:IA}function OA(Q){if(Q.stepped)return Bz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Hz;return I2}function EA(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}AT(Q,J.options),Q.stroke(N)}function AA(Q,J,X,q){let{segments:N,options:K}=J,H=nU(J);for(let M of N){if(AT(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var SA=typeof Path2D==="function";function jA(Q,J,X,q){if(SA&&!J.options.segment)EA(Q,J,X,q);else AA(Q,J,X,q)}class U$ extends V8{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:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){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,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Nz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Fz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=bU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],M=OA(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],P=N[z],I=N[T];if(P===I){H.push(P);continue}let A=Math.abs((q-P[J])/(I[J]-P[J])),O=M(P,I,A,X.stepped);O[J]=Q[J],H.push(O)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return nU(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=nU(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),jA(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function pz(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class XK extends V8{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(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return pz(this,Q,"x",J)}inYRange(Q,J){return pz(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!f4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,v3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function jT(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function v2(Q,J,X,q){return Q?0:o5(J,X,q)}function DA(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=IU(q);return{t:v2(N.top,K.top,0,X),r:v2(N.right,K.right,0,J),b:v2(N.bottom,K.bottom,0,X),l:v2(N.left,K.left,0,J)}}function vA(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=j2(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||a0(N);return{topLeft:v2(!F||M.top||M.left,K.topLeft,0,H),topRight:v2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:v2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:v2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function bA(Q){let J=jT(Q),X=J.right-J.left,q=J.bottom-J.top,N=DA(Q,X/2,q/2),K=vA(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-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 dU(Q,J,X,q){let N=J===null,K=X===null,M=Q&&!(N&&K)&&jT(Q,q);return M&&(N||P8(J,M.left,M.right))&&(K||P8(X,M.top,M.bottom))}function kA(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function fA(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function pU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class qK extends V8{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){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,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=bA(this),H=kA(K.radius)?N$:fA;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,pU(K,J,N)),Q.clip(),H(Q,pU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,pU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return dU(this,Q,J,X)}inXRange(Q,J){return dU(this,Q,null,J)}inYRange(Q,J){return dU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function yA(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let M of q){let{start:F,end:w}=M;w=r3(F,w,N);let z=oU(X,N[F],N[w],M.loop);if(!J.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=bU(J,z);for(let P of T){let I=oU(X,K[P.start],K[P.end],P.loop),A=vU(M,N,I);for(let O of A)H.push({source:O,target:P,start:{[X]:cz(z,I,"start",Math.max)},end:{[X]:cz(z,I,"end",Math.min)}})}}return H}function oU(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=r5(N),K=r5(K);return{property:Q,start:N,end:K}}function gA(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=r3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function r3(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function cz(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function DT(Q,J){let X=[],q=!1;if(C1(Q))q=!0,X=Q;else X=gA(Q,J);return X.length?new U$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function lz(Q){return Q&&Q.fill!==!1}function hA(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!b1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function uA(Q,J,X){let q=pA(Q);if(a0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(b1(N)&&Math.floor(N)===N)return xA(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function xA(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function mA(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(a0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function dA(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(a0(Q))q=Q.value;else q=J.getBaseValue();return q}function pA(Q){let J=Q.options,X=J.fill,q=c0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function cA(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=lA(J,X);M.push(DT({x:null,y:J.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)rA(N,H[z],M)}return new U$({points:N,options:{}})}function lA(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function rA(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=sA(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function sA(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],P=H[z.end][X];if(P8(N,T,P)){M=N===T,F=N===P;break}}return{first:M,last:F,point:q}}class YK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:n5},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function nA(Q){let{chart:J,fill:X,line:q}=Q;if(b1(X))return oA(J,X);if(X==="stack")return cA(Q);if(X==="shape")return!0;let N=aA(Q);if(N instanceof YK)return N;return DT(N,q)}function oA(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function aA(Q){if((Q.scale||{}).getPointPositionForValue)return tA(Q);return iA(Q)}function iA(Q){let{scale:J={},fill:X}=Q,q=mA(X,J);if(b1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function tA(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=dA(X,J,K),M=[];if(q.grid.circular){let F=J.getPointPositionForValue(0,K);return new YK({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(J.getPointPositionForValue(F,H));return M}function cU(Q,J,X){let q=nA(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:P=T,below:I=T}=z||{},A=N.getDatasetMeta(K),O=kU(N,A);if(q&&H.points.length)NQ(Q,X),eA(Q,{line:H,target:q,above:P,below:I,area:X,scale:M,axis:F,clip:O}),UQ(Q)}function eA(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=J,w=X._loop?"angle":J.axis;Q.save();let z=K;if(K!==N){if(w==="x")rz(Q,q,H.top),lU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),rz(Q,q,H.bottom);else if(w==="y")sz(Q,q,H.left),lU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),sz(Q,q,H.right),z=N}lU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function rz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[r3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function sz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[r3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function lU(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=J,F=yA(X,q,N);for(let{source:w,target:z,start:T,end:P}of F){let{style:{backgroundColor:I=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=I,$S(Q,H,M,A&&oU(N,T,P)),Q.beginPath();let O=!!X.pathSegment(Q,w),V;if(A){if(O)Q.closePath();else nz(Q,q,P,N);let D=!!q.pathSegment(Q,z,{move:O,reverse:!0});if(V=O&&D,!V)nz(Q,q,T,N)}Q.closePath(),Q.fill(V?"evenodd":"nonzero"),Q.restore()}}function $S(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function nz(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var vT={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof U$)F={visible:Q.isDatasetVisible(H),index:H,fill:uA(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=hA(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)cU(Q.ctx,M,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(lz(K))cU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!lz(q)||X.drawTime!=="beforeDatasetDraw")return;cU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},oz=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},ZS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class aU extends V8{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.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(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,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 Q=this.options.labels||{},J=T1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=i1(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=oz(X,N),F,w;if(J.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,P=-w;return this.legendItems.forEach((I,A)=>{let O=X+J/2+N.measureText(I.text).width;if(A===0||F[F.length-1]+O+2*H>K)z+=w,F[F.length-(A>0?0:1)]=0,P+=w,T++;M[A]={left:0,top:P,row:T,width:O,height:q},F[F.length-1]+=O+H}),z}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,P=0,I=0,A=0;return this.legendItems.forEach((O,V)=>{let{itemWidth:D,itemHeight:h}=QS(X,J,N,O,q);if(V>0&&P+h+2*H>w)z+=T+H,F.push({width:T,height:P}),I+=T+H,A++,T=P=0;M[V]={left:I,top:P,col:A,width:D,height:h},T=Math.max(T,D),P+=h+H}),z+=T,F.push({width:T,height:P}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=b9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=w5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=w5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;NQ(Q,this),this._draw(),UQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=k1.color,M=b9(Q.rtl,this.left,this.width),F=i1(K.font),{padding:w}=K,z=F.size,T=z/2,P;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:A,itemHeight:O}=oz(K,z),V=function(o,Q0,t){if(isNaN(I)||I<=0||isNaN(A)||A<0)return;q.save();let a=c0(t.lineWidth,1);if(q.fillStyle=c0(t.fillStyle,H),q.lineCap=c0(t.lineCap,"butt"),q.lineDashOffset=c0(t.lineDashOffset,0),q.lineJoin=c0(t.lineJoin,"miter"),q.lineWidth=a,q.strokeStyle=c0(t.strokeStyle,H),q.setLineDash(c0(t.lineDash,[])),K.usePointStyle){let q0={radius:A*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:a},d=M.xPlus(o,I/2),K0=Q0+T;_U(q,q0,d,K0,K.pointStyleWidth&&I)}else{let q0=Q0+Math.max((z-A)/2,0),d=M.leftForLtr(o,I),K0=j2(t.borderRadius);if(q.beginPath(),Object.values(K0).some((L0)=>L0!==0))N$(q,{x:d,y:q0,w:I,h:A,radius:K0});else q.rect(d,q0,I,A);if(q.fill(),a!==0)q.stroke()}q.restore()},D=function(o,Q0,t){S2(q,t.text,o,Q0+O/2,F,{strikethrough:t.hidden,textAlign:M.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:w5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:w5(N,this.top+p+w,this.bottom-J[0].height),line:0};jU(this.ctx,Q.textDirection);let s=O+w;this.legendItems.forEach((o,Q0)=>{q.strokeStyle=o.fontColor,q.fillStyle=o.fontColor;let t=q.measureText(o.text).width,a=M.textAlign(o.textAlign||(o.textAlign=K.textAlign)),q0=I+T+t,d=P.x,K0=P.y;if(M.setWidth(this.width),h){if(Q0>0&&d+q0+w>this.right)K0=P.y+=s,P.line++,d=P.x=w5(N,this.left+w,this.right-X[P.line])}else if(Q0>0&&K0+s>this.bottom)d=P.x=d+J[P.line].width+w,P.line++,K0=P.y=w5(N,this.top+p+w,this.bottom-J[P.line].height);let L0=M.x(d);if(V(L0,K0,o),d=oR(a,d+I+T,h?d+q0:this.right,Q.rtl),D(M.x(d),K0,o),h)P.x+=q0+w;else if(typeof o.text!=="string"){let _0=F.lineHeight;P.y+=bT(o,_0)+w}else P.y+=s}),DU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=i1(J.font),q=R5(J.padding);if(!J.display)return;let N=b9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=w5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((A,O)=>Math.max(A,O.height),0);w=F+w5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let P=w5(H,z,z+T);K.textAlign=N.textAlign(S3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,S2(K,J.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,J=i1(Q.font),X=R5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(P8(Q,this.left,this.right)&&P8(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],P8(Q,q.left,q.left+q.width)&&P8(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!XS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=ZS(q,X);if(q&&!N)T1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)T1(J.onHover,[Q,X,this],this)}else if(X)T1(J.onClick,[Q,X,this],this)}}function QS(Q,J,X,q,N){let K=JS(q,Q,J,X),H=GS(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function JS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function GS(Q,J,X){let q=Q;if(typeof J.text!=="string")q=bT(J,X);return q}function bT(Q,J){let X=Q.text?Q.text.length:0;return J*X}function XS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var kT={id:"legend",_element:aU,start(Q,J,X){let q=Q.legend=new aU({ctx:Q.ctx,options:X,chart:Q});x6.configure(Q,q,X),x6.addBox(Q,q)},stop(Q){x6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;x6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=R5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class NK extends V8{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.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(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=C1(X.text)?X.text.length:1;this._padding=R5(X.padding);let N=q*i1(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,M=0,F,w,z;if(this.isHorizontal())w=w5(H,X,N),z=J+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=w5(H,q,J),M=m1*-0.5;else w=N-Q,z=w5(H,J,q),M=m1*0.5;F=q-J}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=i1(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);S2(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:S3(J.align),textBaseline:"middle",translation:[K,H]})}}function qS(Q,J){let X=new NK({ctx:Q.ctx,options:J,chart:Q});x6.configure(Q,X,J),x6.addBox(Q,X),Q.titleBlock=X}var fT={id:"title",_element:NK,start(Q,J,X){qS(Q,X)},stop(Q){let J=Q.titleBlock;x6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;x6.configure(Q,q,X),q.options=X},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 zQ={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=I3(J,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function g4(Q,J){if(J)if(C1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function I8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
255
+ */class WT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=_U.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var V2=new WT,Tz="transparent",JA={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=IU(Q||Tz),N=q.valid&&IU(J||Tz);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class wT{constructor(Q,J,X,q){let N=J[X];q=MQ([Q.to,q,N,Q.from]);let K=MQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||JA[Q.type||typeof K],this._easing=G$[Q.easing]||G$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=MQ([Q.to,J,q,Q.from]),this._from=MQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,M;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}M=J/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class GK{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!t0(Q))return;let J=Object.keys(h1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!t0(N))return;let K={};for(let H of J)K[H]=N[H];(V1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=XA(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)GA(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new wT(T,Q,F,w),q.push(z)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return V2.add(this._chart,X),!0}}function GA(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function XA(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Lz(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function qA(Q,J,X){if(X===!1)return!1;let q=Lz(Q,X),N=Lz(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function YA(Q){let J,X,q,N;if(t0(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function RT(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function _z(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(J===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],g1(w)&&(K||J===0||N4(J)===N4(w)))J+=w}if(!z&&!q.all)return 0;return J}function NA(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function uU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function UA(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function KA(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function BA(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function Pz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Cz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=UA(K,H,q),T=J.length,_;for(let I=0;I<T;++I){let E=J[I],{[F]:V,[w]:O}=E,D=E._stacks||(E._stacks={});_=D[w]=BA(N,z,V),_[M]=O,_._top=Pz(_,H,!0,q.type),_._bottom=Pz(_,H,!1,q.type);let h=_._visualValues||(_._visualValues={});h[M]=O}}function xU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function HA(Q,J){return O2(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function MA(Q,J,X){return O2(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function FQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var mU=(Q)=>Q==="reset"||Q==="none",Iz=(Q,J)=>J?Q:Object.assign({},Q),FA=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:RT(X,!0),values:null};class o3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,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 Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=uU(Q.vScale,Q),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(Q){if(this.index!==Q)FQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,_,I)=>z==="x"?T:z==="r"?I:_,N=J.xAxisID=r0(X.xAxisID,xU(Q,"x")),K=J.yAxisID=r0(X.yAxisID,xU(Q,"y")),H=J.rAxisID=r0(X.rAxisID,xU(Q,"r")),M=J.indexAxis,F=J.iAxisID=q(M,N,K,H),w=J.vAxisID=q(M,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)TU(this._data,this);if(Q._stacked)FQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(t0(J)){let q=this._cachedMeta;this._data=NA(J,q)}else if(X!==J){if(X){TU(X,this);let q=this._cachedMeta;FQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))iR(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=uU(J.vScale,J),J.stack!==X.stack)q=!0,FQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Cz(this,J._parsed),J._stacked=uU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,M=Q===0&&J===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(V1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(t0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let _=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(_())M=!1;F=z}X._sorted=M}if(K)Cz(this,T)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,_,I;for(T=0,_=q;T<_;++T)I=T+X,z[T]={[H]:w||N.parse(F[I],I),[M]:K.parse(J[I],I)};return z}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=J[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,_;for(w=0,z=q;w<z;++w)T=w+X,_=J[T],F[w]={x:N.parse(k9(_,H),T),y:K.parse(k9(_,M),T)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:RT(q,!0),values:J._stacks[Q.axis]._visualValues};return _z(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=_z(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),M=FA(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=KA(H),T,_;function I(){_=q[T];let E=_[H.axis];return!g1(_[Q.axis])||w>E||z<E}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,_,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,_,M);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],g1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=YA(r0(this.options.clip,qA(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=MA(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=HA(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],M=this.enableOptionSharing&&N$(X);if(H)return Iz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),_=Object.keys(h1.elements[Q]),I=()=>this.getContext(X,q,J),E=F.resolveNamedOptions(T,_,I,z);if(E.$shared)E.$shared=M,N[K]=Object.freeze(Iz(E,M));return E}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,J),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,J))}let F=new GK(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||mU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(mU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!mU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)FQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function WA(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=LU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function wA(Q){let J=Q.iScale,X=WA(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(N$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),F();return q}function RA(Q,J,X,q){let N=X.barThickness,K,H;if(Z1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function zA(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function TA(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;J[X.axis]=w,J._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function zT(Q,J,X,q){if(V1(Q))TA(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Oz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,_;for(w=X,z=X+q;w<z;++w)_=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(zT(_,T,K,w));return F}function dU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function LA(Q,J,X){if(Q!==0)return N4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function _A(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function PA(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:F,top:w,bottom:z}=_A(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[Vz(z,H,M,F)]=!0,N=w;K[Vz(N,H,M,F)]=!0,Q.borderSkipped=K}function Vz(Q,J,X,q){if(q)Q=CA(Q,J,X),Q=Az(Q,X,J);else Q=Az(Q,J,X);return Q}function CA(Q,J,X){return Q===J?X:Q===X?J:Q}function Az(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function IA(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class XK extends o3{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(Q,J,X,q){return Oz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Oz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,_,I,E;for(T=X,_=X+q;T<_;++T)E=J[T],I={},I[N.axis]=N.parse(k9(E,F),T),z.push(zT(k9(E,w),I,K,T));return z}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=dU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(J,q);for(let _=J;_<J+X;_++){let I=this.getParsed(_),E=N||Z1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(_),V=this._calculateBarIndexPixels(_,w),O=(I._stacks||{})[H.axis],D={horizontal:F,base:E.base,enableBorderRadius:!O||dU(I._custom)||K===O._top||K===O._bottom,x:F?E.head:V.center,y:F?V.center:E.head,height:F?V.size:Math.abs(E.size),width:F?Math.abs(E.size):V.size};if(T)D.options=z||this.resolveDataElementOptions(_,Q[_].active?"active":q);let h=D.options||Q[_].options;PA(D,h,O,K),IA(D,h,w.ratio),this.updateElement(Q[_],_,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((_)=>_[X.axis]===M),T=z&&z[w.vScale.axis];if(Z1(T)||isNaN(T))return!0};for(let w of q){if(J!==void 0&&F(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[r0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||wA(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,M=this.getParsed(Q),F=M._custom,w=dU(F),z=M[J.axis],T=0,_=X?this.applyStack(J,M,X):z,I,E;if(_!==z)T=_-z,_=z;if(w){if(z=F.barStart,_=F.barEnd-F.barStart,z!==0&&N4(z)!==N4(F.barEnd))T=0;T+=z}let V=!Z1(N)&&!w?N:T,O=J.getPixelForValue(V);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(T+_);else I=O;if(E=I-O,Math.abs(E)<K){if(E=LA(E,J,H)*K,z===H)O-=E/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(O=Math.max(Math.min(O,s),p),I=O+E,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(O)}if(O===J.getPixelForValue(H)){let D=N4(E)*J.getLineWidthForValue(H)/2;O+=D,E-=D}return{size:E,base:O,head:I,center:I+E/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=r0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,z=q.barThickness==="flex"?zA(Q,J,q,w*F):RA(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,_=this._getAxis().indexOf(r0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+_;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class qK extends o3{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(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:M}=$z(J,q,K);if(this._drawStart=H,this._drawCount=M,Zz(J))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(J,q),T=K.axis,_=H.axis,{spanGaps:I,segment:E}=this.options,V=K$(I)?I:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let a=Q[s],J0=O?a:{};if(s<J||s>=D){J0.skip=!0;continue}let t=this.getParsed(s),i=Z1(t[_]),Y0=J0[T]=K.getPixelForValue(t[T],s),d=J0[_]=N||i?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,t,M):t[_],s);if(J0.skip=isNaN(Y0)||isNaN(d)||i,J0.stop=s>0&&Math.abs(t[T]-p[T])>V,E)J0.parsed=t,J0.raw=F.data[s];if(z)J0.options=w||this.resolveDataElementOptions(s,a.active?"active":q);if(!O)this.updateElement(a,s,J0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function y9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class YK{static override(Q){Object.assign(YK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return y9()}parse(){return y9()}format(){return y9()}add(){return y9()}diff(){return y9()}startOf(){return y9()}endOf(){return y9()}}var OA={_date:YK};function VA(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let w=M._reversePixels?nR:E8;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:_}=Q,I=_.slice(0,z.lo+1).reverse().findIndex((V)=>!Z1(V[T.axis]));z.lo-=Math.max(0,I);let E=_.slice(z.hi).findIndex((V)=>!Z1(V[T.axis]));z.hi+=Math.max(0,E)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(J);if(T){let _=w(K,J,X-T),I=w(K,J,X+T);return{lo:_.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function OQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:_}=VA(K[M],J,H,N);for(let I=T;I<=_;++I){let E=z[I];if(!E.skip)q(E,w,I)}}}function AA(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function pU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return OQ(Q,X,J,function(M,F,w){if(!N&&!m4(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function EA(Q,J,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=rR(H,{x:J.x,y:J.y});if(zU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return OQ(Q,X,J,K),N}function SA(Q,J,X,q,N,K){let H=[],M=AA(X),F=Number.POSITIVE_INFINITY;function w(z,T,_){let I=z.inRange(J.x,J.y,N);if(q&&!I)return;let E=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(E))&&!I)return;let O=M(J,E);if(O<F)H=[{element:z,datasetIndex:T,index:_}],F=O;else if(O===F)H.push({element:z,datasetIndex:T,index:_})}return OQ(Q,X,J,w),H}function cU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?EA(Q,J,X,N):SA(Q,J,X,q,N,K)}function Ez(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(OQ(Q,X,J,(F,w,z)=>{if(F[H]&&F[H](J[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(J.x,J.y,N)}),q&&!M)return[];return K}var jA={evaluateInteractionItems:OQ,modes:{index(Q,J,X,q){let N=k8(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?pU(Q,N,K,q,H):cU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,J,X,q){let N=k8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?pU(Q,N,K,q,H):cU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,J,X,q){let N=k8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return pU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=k8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return cU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=k8(J,Q);return Ez(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=k8(J,Q);return Ez(Q,N,"y",X.intersect,q)}}},TT=["left","top","right","bottom"];function WQ(Q,J){return Q.filter((X)=>X.pos===J)}function Sz(Q,J){return Q.filter((X)=>TT.indexOf(X.pos)===-1&&X.box.axis===J)}function wQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function DA(Q){let J=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return J}function vA(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!TT.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function bA(Q,J){let X=vA(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&J.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&J.availableHeight}return X}function kA(Q){let J=DA(Q),X=wQ(J.filter((w)=>w.box.fullSize),!0),q=wQ(WQ(J,"left"),!0),N=wQ(WQ(J,"right")),K=wQ(WQ(J,"top"),!0),H=wQ(WQ(J,"bottom")),M=Sz(J,"x"),F=Sz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:WQ(J,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function jz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function LT(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function fA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!t0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)LT(H,K.getPadding());let M=Math.max(0,J.outerWidth-jz(H,Q,"left","right")),F=Math.max(0,J.outerHeight-jz(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function yA(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function gA(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function TQ(Q,J,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,gA(M.horizontal,J));let{same:T,other:_}=fA(J,X,M,q);if(w|=T&&N.length,z=z||_,!F.fullSize)N.push(M)}return w&&TQ(N,J,X,q)||z}function m3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function Dz(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=J.w*z,_=w.size||F.height;if(N$(w.start))H=w.start;if(F.fullSize)m3(F,N.left,H,X.outerWidth-N.right-N.left,_);else m3(F,J.left+w.placed,H,T,_);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,_=w.size||F.width;if(N$(w.start))K=w.start;if(F.fullSize)m3(F,K,N.top,_,X.outerHeight-N.bottom-N.top);else m3(F,K,J.top+w.placed,_,T);w.start=K,w.placed+=T,K=F.right}}J.x=K,J.y=H}var p6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=_5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),M=kA(Q.boxes),F=M.vertical,w=M.horizontal;B1(Q.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let z=F.reduce((V,O)=>O.box.options&&O.box.options.display===!1?V:V+1,0)||1,T=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),_=Object.assign({},N);LT(_,_5(q));let I=Object.assign({maxPadding:_,w:K,h:H,x:N.left,y:N.top},N),E=bA(F.concat(w),T);if(TQ(M.fullSize,I,T,E),TQ(F,I,T,E),TQ(w,I,T,E))TQ(F,I,T,E);yA(I),Dz(M.leftAndTop,I,T,E),I.x+=I.w,I.y+=I.h,Dz(M.rightAndBottom,I,T,E),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},B1(M.chartArea,(V)=>{let O=V.box;Object.assign(O,Q.chartArea),O.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class NK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class _T extends NK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var r3="$chartjs",hA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vz=(Q)=>Q===null||Q==="";function uA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[r3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",vz(N)){let K=bU(Q,"width");if(K!==void 0)Q.width=K}if(vz(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=bU(Q,"height");if(K!==void 0)Q.height=K}return Q}var PT=Fz?{passive:!0}:!1;function xA(Q,J,X){if(Q)Q.addEventListener(J,X,PT)}function mA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,PT)}function dA(Q,J){let X=hA[Q.type]||Q.type,{x:q,y:N}=k8(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function n3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function pA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||n3(M.addedNodes,q),H=H&&!n3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function cA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||n3(M.removedNodes,q),H=H&&!n3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var PQ=new Map,bz=0;function CT(){let Q=window.devicePixelRatio;if(Q===bz)return;bz=Q,PQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function lA(Q,J){if(!PQ.size)window.addEventListener("resize",CT);PQ.set(Q,J)}function rA(Q){if(PQ.delete(Q),!PQ.size)window.removeEventListener("resize",CT)}function sA(Q,J,X){let q=Q.canvas,N=q&&u3(q);if(!N)return;let K=PU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),lA(Q,K),H}function lU(Q,J,X){if(X)X.disconnect();if(J==="resize")rA(Q)}function nA(Q,J,X){let q=Q.canvas,N=PU((K)=>{if(Q.ctx!==null)X(dA(K,Q))},Q);return xA(q,J,N),N}class IT extends NK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return uA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[r3])return!1;let X=J[r3].initial;["height","width"].forEach((N)=>{let K=X[N];if(Z1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[r3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:pA,detach:cA,resize:sA}[J]||nA;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:lU,detach:lU,resize:lU}[J]||mA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Mz(Q,J,X,q)}isAttached(Q){let J=Q&&u3(Q);return!!(J&&J.isConnected)}}function oA(Q){if(!h3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return _T;return IT}class E2{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return K$(this.x)&&K$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function aA(Q,J){let X=Q.options.ticks,q=iA(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?eA(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return $E(J,w,K,H/N),w;let z=tA(K,J,N);if(H>0){let T,_,I=H>1?Math.round((F-M)/(H-1)):null;d3(J,w,z,Z1(I)?0:M-I,M);for(T=0,_=H-1;T<_;T++)d3(J,w,z,K[T],K[T+1]);return d3(J,w,z,F,Z1(I)?J.length:F+I),w}return d3(J,w,z),w}function iA(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function tA(Q,J,X){let q=ZE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=cR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function eA(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function $E(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function d3(Q,J,X,q,N){let K=r0(q,0),H=Math.min(r0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)J.push(Q[w]),M++,z=Math.round(K+M*X)}function ZE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var QE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,kz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,fz=(Q,J)=>Math.min(J||Q,Q);function yz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function JE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<J?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function GE(Q,J){B1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function RQ(Q){return Q.drawTicks?Q.tickLength:0}function gz(Q,J){if(!Q.display)return 0;let X=$5(Q.font,J),q=_5(Q.padding);return(V1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function XE(Q,J){return O2(Q,{scale:J,type:"scale"})}function qE(Q,J,X){return O2(Q,{tick:X,index:J,type:"tick"})}function YE(Q,J,X){let q=b3(Q);if(X&&J!=="right"||!X&&J==="right")q=QE(q);return q}function NE(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,_,I,E,V=H-N,O=M-K;if(Q.isHorizontal()){if(I=L5(q,K,M),t0(X)){let D=Object.keys(X)[0],h=X[D];E=z[D].getPixelForValue(h)+V-J}else if(X==="center")E=(w.bottom+w.top)/2+V-J;else E=kz(Q,X,J);_=M-K}else{if(t0(X)){let D=Object.keys(X)[0],h=X[D];I=z[D].getPixelForValue(h)-O+J}else if(X==="center")I=(w.left+w.right)/2-O+J;else I=kz(Q,X,J);E=L5(q,H,N),T=X==="left"?-t5:t5}return{titleX:I,titleY:E,maxWidth:_,rotation:T}}class h9 extends E2{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.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(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=Z6(Q,Number.POSITIVE_INFINITY),J=Z6(J,Number.NEGATIVE_INFINITY),X=Z6(X,Number.POSITIVE_INFINITY),q=Z6(q,Number.NEGATIVE_INFINITY),{min:Z6(Q,X),max:Z6(J,q),minDefined:g1(Q),maxDefined:g1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:Z6(J,Z6(X,J)),max:Z6(X,Z6(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Yz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?yz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=aA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_1(this.options.afterUpdate,[this])}beforeSetDimensions(){_1(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(){_1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),_1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=_1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){_1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=fz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,M,F;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,_=$6(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:_/(X-1),z+6>H)H=_/(X-(Q.offset?0.5:1)),M=this.maxHeight-RQ(Q.grid)-J.padding-gz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=D3(Math.min(Math.asin($6((w.highest.height+6)/H,-1,1)),Math.asin($6(M/F,-1,1))-Math.asin($6(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){_1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=gz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=RQ(N)+M;else Q.height=this.maxHeight,Q.width=RQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),_=X.padding*2,I=C2(this.labelRotation),E=Math.cos(I),V=Math.sin(I);if(H){let O=X.mirror?0:V*z.width+E*T.height;Q.height=Math.min(this.maxHeight,Q.height+O+_)}else{let O=X.mirror?0:E*z.width+V*T.height;Q.width=Math.min(this.maxWidth,Q.width+O+_)}this._calculatePadding(F,w,V,E)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,_=0;if(M)if(F)T=q*Q.width,_=X*J.height;else T=X*Q.height,_=q*J.width;else if(N==="start")_=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,_=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((_-z+K)*this.width/(this.width-z),0)}else{let w=J.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=J.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){_1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if(Z1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=yz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],M=Math.floor(J/fz(J,X)),F=0,w=0,z,T,_,I,E,V,O,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,E=this._resolveTickFontOptions(z),q.font=V=E.string,O=N[V]=N[V]||{data:{},gc:[]},D=E.lineHeight,h=p=0,!Z1(I)&&!V1(I))h=NQ(q,O.data,O.gc,h,I),p=D;else if(V1(I)){for(T=0,_=I.length;T<_;++T)if(s=I[T],!Z1(s)&&!V1(s))h=NQ(q,O.data,O.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}GE(N,J);let a=K.indexOf(F),J0=H.indexOf(w),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(J-1),widest:t(a),highest:t(J0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return sR(this._alignToPixels?D8(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=qE(this.getContext(),Q,X))}return this.$context||(this.$context=XE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=C2(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=RQ(N),_=[],I=H.setContext(this.getContext()),E=I.display?I.width:0,V=E/2,O=function(l){return D8(X,l,E)},D,h,p,s,a,J0,t,i,Y0,d,H0,_0;if(K==="top")D=O(this.bottom),J0=this.bottom-T,i=D-V,d=O(Q.top)+V,_0=Q.bottom;else if(K==="bottom")D=O(this.top),d=Q.top,_0=O(Q.bottom)-V,J0=D+V,i=this.top+T;else if(K==="left")D=O(this.right),a=this.right-T,t=D-V,Y0=O(Q.left)+V,H0=Q.right;else if(K==="right")D=O(this.left),Y0=Q.left,H0=O(Q.right)-V,a=D+V,t=this.left+T;else if(J==="x"){if(K==="center")D=O((Q.top+Q.bottom)/2+0.5);else if(t0(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,_0=Q.bottom,J0=D+V,i=J0+T}else if(J==="y"){if(K==="center")D=O((Q.left+Q.right)/2);else if(t0(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}a=D-V,t=a-T,Y0=Q.left,H0=Q.right}let C0=r0(q.ticks.maxTicksLimit,z),v0=Math.max(1,Math.ceil(z/C0));for(h=0;h<z;h+=v0){let l=this.getContext(h),q0=N.setContext(l),M0=H.setContext(l),n0=q0.lineWidth,m0=q0.color,v=M0.dash||[],n=M0.dashOffset,F0=q0.tickWidth,W0=q0.tickColor,d0=q0.tickBorderDash||[],u1=q0.tickBorderDashOffset;if(p=JE(this,h,M),p===void 0)continue;if(s=D8(X,p,n0),F)a=t=Y0=H0=s;else J0=i=d=_0=s;_.push({tx1:a,ty1:J0,tx2:t,ty2:i,x1:Y0,y1:d,x2:H0,y2:_0,width:n0,color:m0,borderDash:v,borderDashOffset:n,tickWidth:F0,tickColor:W0,tickBorderDash:d0,tickBorderDashOffset:u1})}return this._ticksLength=z,this._borderValue=D,_}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:w,mirror:z}=N,T=RQ(X.grid),_=T+w,I=z?-w:_,E=-C2(this.labelRotation),V=[],O,D,h,p,s,a,J0,t,i,Y0,d,H0,_0="middle";if(q==="top")a=this.bottom-I,J0=this._getXAxisLabelAlignment();else if(q==="bottom")a=this.top+I,J0=this._getXAxisLabelAlignment();else if(q==="left"){let v0=this._getYAxisLabelAlignment(T);J0=v0.textAlign,s=v0.x}else if(q==="right"){let v0=this._getYAxisLabelAlignment(T);J0=v0.textAlign,s=v0.x}else if(J==="x"){if(q==="center")a=(Q.top+Q.bottom)/2+_;else if(t0(q)){let v0=Object.keys(q)[0],l=q[v0];a=this.chart.scales[v0].getPixelForValue(l)+_}J0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-_;else if(t0(q)){let v0=Object.keys(q)[0],l=q[v0];s=this.chart.scales[v0].getPixelForValue(l)}J0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")_0="top";else if(M==="end")_0="bottom"}let C0=this._getLabelSizes();for(O=0,D=H.length;O<D;++O){h=H[O],p=h.label;let v0=N.setContext(this.getContext(O));t=this.getPixelForTick(O)+N.labelOffset,i=this._resolveTickFontOptions(O),Y0=i.lineHeight,d=V1(p)?p.length:1;let l=d/2,q0=v0.color,M0=v0.textStrokeColor,n0=v0.textStrokeWidth,m0=J0;if(K){if(s=t,J0==="inner")if(O===D-1)m0=!this.options.reverse?"right":"left";else if(O===0)m0=!this.options.reverse?"left":"right";else m0="center";if(q==="top")if(F==="near"||E!==0)H0=-d*Y0+Y0/2;else if(F==="center")H0=-C0.highest.height/2-l*Y0+Y0;else H0=-C0.highest.height+Y0/2;else if(F==="near"||E!==0)H0=Y0/2;else if(F==="center")H0=C0.highest.height/2-l*Y0;else H0=C0.highest.height-d*Y0;if(z)H0*=-1;if(E!==0&&!v0.showLabelBackdrop)s+=Y0/2*Math.sin(E)}else a=t,H0=(1-d)*Y0/2;let v;if(v0.showLabelBackdrop){let n=_5(v0.backdropPadding),F0=C0.heights[O],W0=C0.widths[O],d0=H0-n.top,u1=0-n.left;switch(_0){case"middle":d0-=F0/2;break;case"bottom":d0-=F0;break}switch(J0){case"center":u1-=W0/2;break;case"right":u1-=W0;break;case"inner":if(O===D-1)u1-=W0;else if(O>0)u1-=W0/2;break}v={left:u1,top:d0,width:W0+n.width,height:F0+n.height,color:v0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:q0,strokeColor:M0,strokeWidth:n0,textAlign:m0,textBaseline:_0,translation:[s,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-C2(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,M=K.widest.width,F,w;if(J==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(M,F,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=D8(Q,this.left,K)-K/2,w=D8(Q,this.right,H)+H/2,z=T=M;else z=D8(Q,this.top,K)-K/2,T=D8(Q,this.bottom,H)+H/2,F=w=M;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(F,z),J.lineTo(w,T),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)BQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;v8(X,F,0,w,M,H)}if(q)HQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=$5(X.font),K=_5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||t0(J)){if(M+=K.bottom,V1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=NE(this,M,J,H);v8(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:YE(H,J,q),textBaseline:"middle",translation:[F,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=r0(Q.grid&&Q.grid.z,-1),q=r0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==h9.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return $5(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class LQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(BE(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,UE(Q,K,X),this.override)h1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in h1[q]){if(delete h1[q][X],this.override)delete j8[X]}}}function UE(Q,J,X){let q=X$(Object.create(null),[X?h1.get(X):{},h1.get(J),Q.defaults]);if(h1.set(J,q),Q.defaultRoutes)KE(J,Q.defaultRoutes);if(Q.descriptors)h1.describe(J,Q.descriptors)}function KE(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),M=H.pop(),F=H.join(".");h1.route(K,N,F,M)})}function BE(Q){return"id"in Q&&"defaults"in Q}class OT{constructor(){this.controllers=new LQ(o3,"datasets",!0),this.elements=new LQ(E2,"elements"),this.plugins=new LQ(Object,"plugins"),this.scales=new LQ(h9,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else B1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=j3(Q);_1(X["before"+q],[],X),J[Q](X),_1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var c4=new OT;class VT{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],M=[J,q,N.options];if(_1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!Z1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=r0(X.options&&X.options.plugins,{}),N=HE(X);return q===!1&&!J?[]:FE(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function HE(Q){let J={},X=[],q=Object.keys(c4.plugins.items);for(let K=0;K<q.length;K++)X.push(c4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function ME(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function FE(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=ME(q[F],N);if(w===null)continue;K.push({plugin:M,options:WE(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function WE(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function aU(Q,J){let X=h1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function wE(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function RE(Q,J){return Q===J?"_index_":"_value_"}function hz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function zE(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function iU(Q,...J){if(hz(Q))return Q;for(let X of J){let q=X.axis||zE(X.position)||Q.length>1&&hz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function uz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function TE(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return uz(Q,"x",X[0])||uz(Q,"y",X[0])}return{}}function LE(Q,J){let X=j8[Q.type]||{scales:{}},q=J.scales||{},N=aU(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!t0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=iU(H,M,TE(H,Q),h1.scales[M.type]),w=RE(F,N),z=X.scales||{};K[H]=Y$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||aU(M,J),z=(j8[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let _=wE(T,F),I=H[_+"AxisID"]||_;K[I]=K[I]||Object.create(null),Y$(K[I],[{axis:_},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];Y$(M,[h1.scales[M.type],h1.scale])}),K}function AT(Q){let J=Q.options||(Q.options={});J.plugins=r0(J.plugins,{}),J.scales=LE(Q,J)}function ET(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function _E(Q){return Q=Q||{},Q.data=ET(Q.data),AT(Q),Q}var xz=new Map,ST=new Set;function p3(Q,J){let X=xz.get(Q);if(!X)X=J(),xz.set(Q,X),ST.add(X);return X}var zQ=(Q,J,X)=>{let q=k9(J,X);if(q!==void 0)Q.add(q)};class jT{constructor(Q){this._config=_E(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=ET(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),AT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return p3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return p3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return p3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return p3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let M=new Set;J.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>zQ(M,Q,z));w.forEach((z)=>zQ(M,q,z)),w.forEach((z)=>zQ(M,j8[N]||{},z)),w.forEach((z)=>zQ(M,h1,z)),w.forEach((z)=>zQ(M,f3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(ST.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,j8[J]||{},h1.datasets[J]||{},{type:J},h1,f3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=mz(this._resolverCache,Q,q),M=K;if(CE(K,J)){N.$shared=!1,X=_2(X)?X():X;let F=this.createResolver(Q,X,H);M=b9(K,X,F)}for(let F of J)N[F]=M[F];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=mz(this._resolverCache,Q,X);return t0(J)?b9(N,J,void 0,q):N}}function mz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:g3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var PE=(Q)=>t0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>_2(Q[J]));function CE(Q,J){let{isScriptable:X,isIndexable:q}=SU(Q);for(let N of J){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(_2(M)||PE(M))||H&&V1(M))return!0}return!1}var IE="4.5.1",OE=["top","bottom","left","right","chartArea"];function dz(Q,J){return Q==="top"||Q==="bottom"||OE.indexOf(Q)===-1&&J==="x"}function pz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function cz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),_1(X&&X.onComplete,[Q],J)}function VE(Q){let J=Q.chart,X=J.options.animation;_1(X&&X.onProgress,[Q],J)}function DT(Q){if(h3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var s3={},lz=(Q)=>{let J=DT(Q);return Object.values(s3).filter((X)=>X.canvas===J).pop()};function AE(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function EE(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class u9{static defaults=h1;static instances=s3;static overrides=j8;static registry=c4;static version=IE;static getChart=lz;static register(...Q){c4.add(...Q),rz()}static unregister(...Q){c4.remove(...Q),rz()}constructor(Q,J){let X=this.config=new jT(J),q=DT(Q),N=lz(q);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=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||oA(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=xR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,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 VT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=tR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],s3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(V2.listen(this,"complete",cz),V2.listen(this,"progress",VE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!Z1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return c4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else vU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return OU(this.canvas,this.ctx),this}stop(){return V2.stop(this),this}resize(Q,J){if(!V2.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!vU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),_1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};B1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],M=iU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));B1(N,(K)=>{let H=K.options,M=H.id,F=iU(M,H),w=r0(H.type,K.dtype);if(H.position===void 0||dz(H.position,F)!==dz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(c4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),B1(q,(K,H)=>{if(!K)delete X[H]}),B1(X,(K)=>{p6.configure(this,K,K.options),p6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(pz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||aU(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let M=c4.getController(H),{datasetElementType:F,dataElementType:w}=h1.datasets[H];Object.assign(M,{dataElementType:c4.getElement(w),datasetElementType:F&&c4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){B1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)B1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(pz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){B1(this.scales,(Q)=>{p6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!FU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;AE(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!FU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;p6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],B1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,_2(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}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(),cz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=hU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)BQ(J,q);if(Q.controller.draw(),q)HQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return m4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=jA.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=O2(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(N$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),V2.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),OU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete s3[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};B1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){B1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},B1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,M;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.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(!UQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),M=pR(Q),F=EE(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,_1(N.onHover,[Q,H,this],this),M)_1(N.onClick,[Q,H,this],this)}let w=!UQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=F,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function rz(){return B1(u9.instances,(Q)=>Q._plugins.invalidate())}function vT(Q,J,X=J){Q.lineCap=r0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(r0(X.borderDash,J.borderDash)),Q.lineDashOffset=r0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=r0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=r0(X.borderWidth,J.borderWidth),Q.strokeStyle=r0(X.borderColor,J.borderColor)}function SE(Q,J,X){Q.lineTo(X.x,X.y)}function jE(Q){if(Q.stepped)return Xz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return qz;return SE}function bT(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=J,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:J.loop,ilen:w<F&&!z?q+w-F:w-F}}function DE(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=bT(N,X,q),z=jE(K),{move:T=!0,reverse:_}=q||{},I,E,V;for(I=0;I<=w;++I){if(E=N[(M+(_?w-I:I))%H],E.skip)continue;else if(T)Q.moveTo(E.x,E.y),T=!1;else z(Q,V,E,_,K.stepped);V=E}if(F)E=N[(M+(_?w:0))%H],z(Q,V,E,_,K.stepped);return!!F}function vE(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:M}=bT(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,_,I,E,V,O,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(V!==O)Q.lineTo(z,O),Q.lineTo(z,V),Q.lineTo(z,D)};if(F)I=N[h(0)],Q.moveTo(I.x,I.y);for(_=0;_<=M;++_){if(I=N[h(_)],I.skip)continue;let{x:s,y:a}=I,J0=s|0;if(J0===E){if(a<V)V=a;else if(a>O)O=a;z=(T*z+s)/++T}else p(),Q.lineTo(s,a),E=J0,T=0,V=O=a;D=a}p()}function tU(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?vE:DE}function bE(Q){if(Q.stepped)return Wz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return wz;return A8}function kE(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}vT(Q,J.options),Q.stroke(N)}function fE(Q,J,X,q){let{segments:N,options:K}=J,H=tU(J);for(let M of N){if(vT(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var yE=typeof Path2D==="function";function gE(Q,J,X,q){if(yE&&!J.options.segment)kE(Q,J,X,q);else fE(Q,J,X,q)}class H$ 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:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){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,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Hz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=zz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=gU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],M=bE(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],_=N[z],I=N[T];if(_===I){H.push(_);continue}let E=Math.abs((q-_[J])/(I[J]-_[J])),V=M(_,I,E,X.stepped);V[J]=Q[J],H.push(V)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return tU(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=tU(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),gE(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function sz(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class UK 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(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return sz(this,Q,"x",J)}inYRange(Q,J){return sz(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!m4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,y3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function kT(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function f8(Q,J,X,q){return Q?0:$6(J,X,q)}function hE(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=EU(q);return{t:f8(N.top,K.top,0,X),r:f8(N.right,K.right,0,J),b:f8(N.bottom,K.bottom,0,X),l:f8(N.left,K.left,0,J)}}function uE(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=b8(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||t0(N);return{topLeft:f8(!F||M.top||M.left,K.topLeft,0,H),topRight:f8(!F||M.top||M.right,K.topRight,0,H),bottomLeft:f8(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:f8(!F||M.bottom||M.right,K.bottomRight,0,H)}}function xE(Q){let J=kT(Q),X=J.right-J.left,q=J.bottom-J.top,N=hE(Q,X/2,q/2),K=uE(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-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 rU(Q,J,X,q){let N=J===null,K=X===null,M=Q&&!(N&&K)&&kT(Q,q);return M&&(N||I2(J,M.left,M.right))&&(K||I2(X,M.top,M.bottom))}function mE(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function dE(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function sU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class KK 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(Q){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,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=xE(this),H=mE(K.radius)?B$:dE;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,sU(K,J,N)),Q.clip(),H(Q,sU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,sU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return rU(this,Q,J,X)}inXRange(Q,J){return rU(this,Q,null,J)}inYRange(Q,J){return rU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function pE(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let M of q){let{start:F,end:w}=M;w=a3(F,w,N);let z=eU(X,N[F],N[w],M.loop);if(!J.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=gU(J,z);for(let _ of T){let I=eU(X,K[_.start],K[_.end],_.loop),E=yU(M,N,I);for(let V of E)H.push({source:V,target:_,start:{[X]:nz(z,I,"start",Math.max)},end:{[X]:nz(z,I,"end",Math.min)}})}}return H}function eU(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=i5(N),K=i5(K);return{property:Q,start:N,end:K}}function cE(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=a3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function a3(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function nz(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function fT(Q,J){let X=[],q=!1;if(V1(Q))q=!0,X=Q;else X=cE(Q,J);return X.length?new H$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function oz(Q){return Q&&Q.fill!==!1}function lE(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!g1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function rE(Q,J,X){let q=aE(Q);if(t0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(g1(N)&&Math.floor(N)===N)return sE(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function sE(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function nE(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(t0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function oE(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(t0(Q))q=Q.value;else q=J.getBaseValue();return q}function aE(Q){let J=Q.options,X=J.fill,q=r0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function iE(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=tE(J,X);M.push(fT({x:null,y:J.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)eE(N,H[z],M)}return new H$({points:N,options:{}})}function tE(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function eE(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=$S(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function $S(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],_=H[z.end][X];if(I2(N,T,_)){M=N===T,F=N===_;break}}return{first:M,last:F,point:q}}class BK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:e5},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function ZS(Q){let{chart:J,fill:X,line:q}=Q;if(g1(X))return QS(J,X);if(X==="stack")return iE(Q);if(X==="shape")return!0;let N=JS(Q);if(N instanceof BK)return N;return fT(N,q)}function QS(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function JS(Q){if((Q.scale||{}).getPointPositionForValue)return XS(Q);return GS(Q)}function GS(Q){let{scale:J={},fill:X}=Q,q=nE(X,J);if(g1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function XS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=oE(X,J,K),M=[];if(q.grid.circular){let F=J.getPointPositionForValue(0,K);return new BK({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(J.getPointPositionForValue(F,H));return M}function nU(Q,J,X){let q=ZS(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:_=T,below:I=T}=z||{},E=N.getDatasetMeta(K),V=hU(N,E);if(q&&H.points.length)BQ(Q,X),qS(Q,{line:H,target:q,above:_,below:I,area:X,scale:M,axis:F,clip:V}),HQ(Q)}function qS(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=J,w=X._loop?"angle":J.axis;Q.save();let z=K;if(K!==N){if(w==="x")az(Q,q,H.top),oU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),az(Q,q,H.bottom);else if(w==="y")iz(Q,q,H.left),oU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),iz(Q,q,H.right),z=N}oU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function az(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[a3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function iz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[a3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function oU(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=J,F=pE(X,q,N);for(let{source:w,target:z,start:T,end:_}of F){let{style:{backgroundColor:I=K}={}}=w,E=q!==!0;Q.save(),Q.fillStyle=I,YS(Q,H,M,E&&eU(N,T,_)),Q.beginPath();let V=!!X.pathSegment(Q,w),O;if(E){if(V)Q.closePath();else tz(Q,q,_,N);let D=!!q.pathSegment(Q,z,{move:V,reverse:!0});if(O=V&&D,!O)tz(Q,q,T,N)}Q.closePath(),Q.fill(O?"evenodd":"nonzero"),Q.restore()}}function YS(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function tz(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var yT={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof H$)F={visible:Q.isDatasetVisible(H),index:H,fill:rE(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=lE(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)nU(Q.ctx,M,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(oz(K))nU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!oz(q)||X.drawTime!=="beforeDatasetDraw")return;nU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},ez=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},NS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class $K extends E2{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.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(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,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 Q=this.options.labels||{},J=_1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=$5(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=ez(X,N),F,w;if(J.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,_=-w;return this.legendItems.forEach((I,E)=>{let V=X+J/2+N.measureText(I.text).width;if(E===0||F[F.length-1]+V+2*H>K)z+=w,F[F.length-(E>0?0:1)]=0,_+=w,T++;M[E]={left:0,top:_,row:T,width:V,height:q},F[F.length-1]+=V+H}),z}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,_=0,I=0,E=0;return this.legendItems.forEach((V,O)=>{let{itemWidth:D,itemHeight:h}=US(X,J,N,V,q);if(O>0&&_+h+2*H>w)z+=T+H,F.push({width:T,height:_}),I+=T+H,E++,T=_=0;M[O]={left:I,top:_,col:E,width:D,height:h},T=Math.max(T,D),_+=h+H}),z+=T,F.push({width:T,height:_}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=f9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=L5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=L5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=L5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=L5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;BQ(Q,this),this._draw(),HQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=h1.color,M=f9(Q.rtl,this.left,this.width),F=$5(K.font),{padding:w}=K,z=F.size,T=z/2,_;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:E,itemHeight:V}=ez(K,z),O=function(a,J0,t){if(isNaN(I)||I<=0||isNaN(E)||E<0)return;q.save();let i=r0(t.lineWidth,1);if(q.fillStyle=r0(t.fillStyle,H),q.lineCap=r0(t.lineCap,"butt"),q.lineDashOffset=r0(t.lineDashOffset,0),q.lineJoin=r0(t.lineJoin,"miter"),q.lineWidth=i,q.strokeStyle=r0(t.strokeStyle,H),q.setLineDash(r0(t.lineDash,[])),K.usePointStyle){let Y0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=M.xPlus(a,I/2),H0=J0+T;VU(q,Y0,d,H0,K.pointStyleWidth&&I)}else{let Y0=J0+Math.max((z-E)/2,0),d=M.leftForLtr(a,I),H0=b8(t.borderRadius);if(q.beginPath(),Object.values(H0).some((_0)=>_0!==0))B$(q,{x:d,y:Y0,w:I,h:E,radius:H0});else q.rect(d,Y0,I,E);if(q.fill(),i!==0)q.stroke()}q.restore()},D=function(a,J0,t){v8(q,t.text,a,J0+V/2,F,{strikethrough:t.hidden,textAlign:M.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)_={x:L5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else _={x:this.left+w,y:L5(N,this.top+p+w,this.bottom-J[0].height),line:0};kU(this.ctx,Q.textDirection);let s=V+w;this.legendItems.forEach((a,J0)=>{q.strokeStyle=a.fontColor,q.fillStyle=a.fontColor;let t=q.measureText(a.text).width,i=M.textAlign(a.textAlign||(a.textAlign=K.textAlign)),Y0=I+T+t,d=_.x,H0=_.y;if(M.setWidth(this.width),h){if(J0>0&&d+Y0+w>this.right)H0=_.y+=s,_.line++,d=_.x=L5(N,this.left+w,this.right-X[_.line])}else if(J0>0&&H0+s>this.bottom)d=_.x=d+J[_.line].width+w,_.line++,H0=_.y=L5(N,this.top+p+w,this.bottom-J[_.line].height);let _0=M.x(d);if(O(_0,H0,a),d=eR(i,d+I+T,h?d+Y0:this.right,Q.rtl),D(M.x(d),H0,a),h)_.x+=Y0+w;else if(typeof a.text!=="string"){let C0=F.lineHeight;_.y+=gT(a,C0)+w}else _.y+=s}),fU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=$5(J.font),q=_5(J.padding);if(!J.display)return;let N=f9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=L5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);w=F+L5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let _=L5(H,z,z+T);K.textAlign=N.textAlign(b3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,v8(K,J.text,_,w,X)}_computeTitleHeight(){let Q=this.options.title,J=$5(Q.font),X=_5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(I2(Q,this.left,this.right)&&I2(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],I2(Q,q.left,q.left+q.width)&&I2(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!HS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=NS(q,X);if(q&&!N)_1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)_1(J.onHover,[Q,X,this],this)}else if(X)_1(J.onClick,[Q,X,this],this)}}function US(Q,J,X,q,N){let K=KS(q,Q,J,X),H=BS(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function KS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function BS(Q,J,X){let q=Q;if(typeof J.text!=="string")q=gT(J,X);return q}function gT(Q,J){let X=Q.text?Q.text.length:0;return J*X}function HS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var hT={id:"legend",_element:$K,start(Q,J,X){let q=Q.legend=new $K({ctx:Q.ctx,options:X,chart:Q});p6.configure(Q,q,X),p6.addBox(Q,q)},stop(Q){p6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;p6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=_5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class HK extends E2{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.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(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=V1(X.text)?X.text.length:1;this._padding=_5(X.padding);let N=q*$5(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,M=0,F,w,z;if(this.isHorizontal())w=L5(H,X,N),z=J+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=L5(H,q,J),M=l1*-0.5;else w=N-Q,z=L5(H,J,q),M=l1*0.5;F=q-J}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=$5(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);v8(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:b3(J.align),textBaseline:"middle",translation:[K,H]})}}function MS(Q,J){let X=new HK({ctx:Q.ctx,options:J,chart:Q});p6.configure(Q,X,J),p6.addBox(Q,X),Q.titleBlock=X}var uT={id:"title",_element:HK,start(Q,J,X){MS(Q,X)},stop(Q){let J=Q.titleBlock;p6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;p6.configure(Q,q,X),q.options=X},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 _Q={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=E3(J,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function p4(Q,J){if(J)if(V1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function A2(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
256
256
  `)>-1)return Q.split(`
257
- `);return Q}function YS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function az(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=i1(J.bodyFont),w=i1(J.titleFont),z=i1(J.footerFont),T=K.length,P=N.length,I=q.length,A=R5(J.padding),O=A.height,V=0,D=q.reduce((s,o)=>s+o.before.length+o.lines.length+o.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)O+=T*w.lineHeight+(T-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;O+=I*s+(D-I)*F.lineHeight+(D-1)*J.bodySpacing}if(P)O+=J.footerMarginTop+P*z.lineHeight+(P-1)*J.footerSpacing;let h=0,p=function(s){V=Math.max(V,X.measureText(s).width+h)};return X.save(),X.font=w.string,K1(Q.title,p),X.font=F.string,K1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,K1(q,(s)=>{K1(s.before,p),K1(s.lines,p),K1(s.after,p)}),h=0,X.font=z.string,K1(Q.footer,p),X.restore(),V+=A.width,{width:V,height:O}}function NS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function US(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function KS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(US(w,Q,J,X))w="center";return w}function iz(Q,J,X){let q=X.yAlign||J.yAlign||NS(Q,X);return{xAlign:X.xAlign||J.xAlign||KS(Q,J,X,q),yAlign:q}}function BS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function HS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function tz(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=j2(H),A=BS(J,M),O=HS(J,F,w);if(F==="center"){if(M==="left")A+=w;else if(M==="right")A-=w}else if(M==="left")A-=Math.max(z,P)+N;else if(M==="right")A+=Math.max(T,I)+N;return{x:o5(A,0,q.width-J.width),y:o5(O,0,q.height-J.height)}}function x3(Q,J,X){let q=R5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function ez(Q){return g4([],I8(Q))}function MS(Q,J,X){return _8(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function $T(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var yT={beforeTitle:y4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:y4,beforeBody:y4,beforeLabel:y4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!$1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:y4,afterBody:y4,beforeFooter:y4,footer:y4,afterFooter:y4};function i5(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return yT[J].call(X,q);return N}class iU extends V8{static positioners=zQ;constructor(Q){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=Q.chart,this.options=Q.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(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new $K(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=MS(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=i5(X,"beforeTitle",this,Q),N=i5(X,"title",this,Q),K=i5(X,"afterTitle",this,Q),H=[];return H=g4(H,I8(q)),H=g4(H,I8(N)),H=g4(H,I8(K)),H}getBeforeBody(Q,J){return ez(i5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return K1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=$T(X,N);g4(K.before,I8(i5(H,"beforeLabel",this,N))),g4(K.lines,i5(H,"label",this,N)),g4(K.after,I8(i5(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return ez(i5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=i5(X,"beforeFooter",this,Q),N=i5(X,"footer",this,Q),K=i5(X,"afterFooter",this,Q),H=[];return H=g4(H,I8(q)),H=g4(H,I8(N)),H=g4(H,I8(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(YS(this.chart,J[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return K1(H,(w)=>{let z=$T(Q.callbacks,w);q.push(i5(z,"labelColor",this,w)),N.push(i5(z,"labelPointStyle",this,w)),K.push(i5(z,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=zQ[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let M=this._size=az(this,X),F=Object.assign({},H,M),w=iz(this.chart,X,F),z=tz(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:M,topRight:F,bottomLeft:w,bottomRight:z}=j2(H),{x:T,y:P}=Q,{width:I,height:A}=J,O,V,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")O=T,V=O-K,h=p+K,s=p-K;else O=T+I,V=O+K,h=p-K,s=p+K;D=O}else{if(q==="left")V=T+Math.max(M,w)+K;else if(q==="right")V=T+I-Math.max(F,z)-K;else V=this.caretX;if(N==="top")h=P,p=h-K,O=V-K,D=V+K;else h=P+A,p=h+K,O=V+K,D=V-K;s=h}return{x1:O,x2:V,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,M;if(N){let F=b9(X.rtl,this.x,this.width);Q.x=x3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=i1(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(M=0;M<N;++M)if(J.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=i1(N.bodyFont),z=x3(this,"left",N),T=q.x(z),P=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+P;if(N.usePointStyle){let A={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=q.leftForLtr(T,F)+F/2,V=I+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,v3(Q,A,O,V),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,v3(Q,A,O,V)}else{Q.lineWidth=a0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let A=q.leftForLtr(T,F),O=q.leftForLtr(q.xPlus(T,1),F-2),V=j2(K.borderRadius);if(Object.values(V).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,N$(Q,{x:A,y:I,w:F,h:M,radius:V}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),N$(Q,{x:O,y:I+1,w:F-2,h:M-2,radius:V}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,I,F,M),Q.strokeRect(A,I,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(O,I+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=i1(X.bodyFont),T=z.lineHeight,P=0,I=b9(X.rtl,this.x,this.width),A=function(t){J.fillText(t,I.x(Q.x+P),Q.y+T/2),Q.y+=T+N},O=I.textAlign(K),V,D,h,p,s,o,Q0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=x3(this,O,X),J.fillStyle=X.bodyColor,K1(this.beforeBody,A),P=H&&O!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,o=q.length;p<o;++p){if(V=q[p],D=this.labelTextColors[p],J.fillStyle=D,K1(V.before,A),h=V.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,Q0=h.length;s<Q0;++s)A(h[s]),T=z.lineHeight;K1(V.after,A)}P=0,T=z.lineHeight,K1(this.afterBody,A),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let M=b9(X.rtl,this.x,this.width);Q.x=x3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=i1(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=j2(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+z,M),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F-T,M),J.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F,M+w-I),J.quadraticCurveTo(H+F,M+w,H+F-I,M+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+P,M+w),J.quadraticCurveTo(H,M+w,H,M+w-P),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,M+z),J.quadraticCurveTo(H,M,H+z,M),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=zQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=az(this,Q),M=Object.assign({},K,this._size),F=iz(J,Q,M),w=tz(Q,M,F,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=R5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),jU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),DU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!qQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),M=J||!qQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=zQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var gT={id:"tooltip",_element:iU,positioners:zQ,afterInit(Q,J,X){if(X)Q.tooltip=new iU({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.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:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.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:yT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var FS=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function WS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return FS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var wS=(Q,J)=>Q===null?null:o5(Math.round(Q),0,J);function ZT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class UK extends y9{static id="category";static defaults={ticks:{callback:ZT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if($1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:WS(X,Q,c0(J,Q),this._addedLabels),wS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return ZT.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function RS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:P}=Q,I=K||1,A=z-1,{min:O,max:V}=J,D=!$1(H),h=!$1(M),p=!$1(w),s=(V-O)/(T+1),o=BU((V-O)/A/I)*I,Q0,t,a,q0;if(o<0.00000000000001&&!D&&!h)return[{value:O},{value:V}];if(q0=Math.ceil(V/o)-Math.floor(O/o),q0>A)o=BU(q0*o/A/I)*I;if(!$1(F))Q0=Math.pow(10,F),o=Math.ceil(o*Q0)/Q0;if(N==="ticks")t=Math.floor(O/o)*o,a=Math.ceil(V/o)*o;else t=O,a=V;if(D&&h&&K&&mR((M-H)/K,o/1000))q0=Math.round(Math.min((M-H)/o,z)),o=(M-H)/q0,t=H,a=M;else if(p)t=D?H:t,a=h?M:a,q0=w-1,o=(a-t)/q0;else if(q0=(a-t)/o,q$(q0,Math.round(q0),o/1000))q0=Math.round(q0);else q0=Math.ceil(q0);let d=Math.max(MU(o),MU(t));Q0=Math.pow(10,$1(F)?d:F),t=Math.round(t*Q0)/Q0,a=Math.round(a*Q0)/Q0;let K0=0;if(D){if(P&&t!==H){if(X.push({value:H}),t<H)K0++;if(q$(Math.round((t+K0*o)*Q0)/Q0,H,QT(H,s,Q)))K0++}else if(t<H)K0++}for(;K0<q0;++K0){let L0=Math.round((t+K0*o)*Q0)/Q0;if(h&&L0>M)break;X.push({value:L0})}if(h&&P&&a!==M)if(X.length&&q$(X[X.length-1].value,M,QT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||a===M)X.push({value:a});return X}function QT(Q,J,{horizontal:X,minRotation:q}){let N=L8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class LQ extends y9{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if($1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(M)=>q=J?q:M,H=(M)=>N=X?N:M;if(Q){let M=G4(q),F=G4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=RS(q,N);if(Q.bounds==="ticks")HU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return j3(Q,this.chart.options.locale,this.options.ticks.format)}}class KK extends LQ{static id="linear";static defaults={ticks:{callback:YQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=b1(Q)?Q:0,this.max=b1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=L8(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var PQ=(Q)=>Math.floor(T8(Q)),f9=(Q,J)=>Math.pow(10,PQ(Q)+J);function JT(Q){return Q/Math.pow(10,PQ(Q))===1}function GT(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function zS(Q,J){let X=J-Q,q=PQ(X);while(GT(Q,J,q)>10)q++;while(GT(Q,J,q)<10)q--;return Math.min(q,PQ(Q))}function TS(Q,{min:J,max:X}){J=a5(Q.min,J);let q=[],N=PQ(J),K=zS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((J-F)*H)/H,z=Math.floor((J-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),P=a5(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:JT(P),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;P=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=a5(Q.max,P);return q.push({value:I,major:JT(I),significand:T}),q}class LS extends y9{static id="logarithmic";static defaults={ticks:{callback:YQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=LQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return b1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=b1(Q)?Math.max(0,Q):null,this.max=b1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!b1(this._userMin))this.min=Q===f9(this.min,0)?f9(this.min,-1):f9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(f9(X,-1)),K(f9(q,1));if(X<=0)N(f9(q,-1));if(q<=0)K(f9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=TS(J,this);if(Q.bounds==="ticks")HU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":j3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=T8(Q),this._valueRange=T8(this.max)-T8(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(T8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function tU(Q){let J=Q.ticks;if(J.display&&Q.display){let X=R5(J.backdropPadding);return c0(J.font&&J.font.size,k1.font.size)+X.height}return 0}function PS(Q,J,X){return X=C1(X)?X:[X],{w:$z(Q,J.string,X),h:X.length*J.lineHeight}}function XT(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function _S(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?m1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=i1(w.font),P=PS(Q.ctx,T,Q._pointLabels[F]);q[F]=P;let I=r5(Q.getIndexAngle(F)+M),A=Math.round(E3(I)),O=XT(A,z.x,P.w,0,180),V=XT(A,z.y,P.h,90,270);CS(X,J,I,O,V)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=OS(Q,q,N)}function CS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<J.l)M=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(q.end>J.r)M=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(N.start<J.t)F=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(N.end>J.b)F=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function IS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(J,q+N+H,K),w=Math.round(E3(r5(F.angle+s5))),z=SS(F.y,M.h,w),T=ES(w),P=AS(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:P,top:z,right:P+M.w,bottom:z+M.h}}function VS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(f4({x:X,y:q},J)||f4({x:X,y:K},J)||f4({x:N,y:q},J)||f4({x:N,y:K},J))}function OS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:tU(K)/2,additionalAngle:H?m1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=J[z];let T=IS(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=VS(T,w),T.visible)w=T}}return q}function ES(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function AS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function SS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function jS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!$1(M)){let F=j2(J.borderRadius),w=R5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,P=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((A)=>A!==0))Q.beginPath(),N$(Q,{x:z,y:T,w:P,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,P,I)}}function DS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));jS(X,H,K);let M=i1(H.font),{x:F,y:w,textAlign:z}=K;S2(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function hT(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,n5);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function vS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),hT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function bS(Q,J,X){return _8(Q,{label:X,index:J,type:"pointLabel"})}class kS extends LQ{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:YQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=R5(tU(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=b1(Q)&&!isNaN(Q)?Q:0,this.max=b1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/tU(this.options))}generateTickLabels(Q){LQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=T1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)_S(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=n5/(this._pointLabels.length||1),X=this.options.startAngle||0;return r5(Q*J+L8(X))}getDistanceFromCenterForValue(Q){if($1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if($1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return bS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-s5+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),hT(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,M,F;if(J.pointLabels.display)DS(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),P=q.setContext(T),I=N.setContext(T);vS(this,P,M,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=X.setContext(this.getContext(M)),w=i1(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=R5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}S2(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var s3={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}},t5=Object.keys(s3);function qT(Q,J){return Q-J}function YT(Q,J){if($1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!b1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(Y$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function NT(Q,J,X,q){let N=t5.length;for(let K=t5.indexOf(Q);K<N-1;++K){let H=s3[t5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(M*H.size))<=q)return t5[K]}return t5[N-1]}function fS(Q,J,X,q,N){for(let K=t5.length-1;K>=t5.indexOf(X);K--){let H=t5[K];if(s3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return t5[X?t5.indexOf(X):0]}function yS(Q){for(let J=t5.indexOf(Q)+1,X=t5.length;J<X;++J)if(s3[t5[J]].common)return t5[J]}function UT(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=A3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function gS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)J[F].major=!0;return J}function KT(Q,J,X){let q=[],N={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:gS(Q,q,N,X)}class eU extends y9{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(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new zE._date(Q.adapters.date);q.init(J),G$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return YT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=b1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=b1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=lR(q,N,K);if(this._unit=J.unit||(X.autoSkip?NT(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):fS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:yS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return KT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=o5(J,0,K),X=o5(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||NT(N.minUnit,J,X,this._getLabelCapacity(J)),H=c0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=Y$(M)||M===!0,w={},z=J,T,P;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(T=z,P=0;T<X;T=+Q.add(T,H,K),P++)UT(w,T,I);if(T===X||q.bounds==="ticks"||P===1)UT(w,T,I);return Object.keys(w).sort(qT).map((A)=>+A)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return T1(K,[Q,J,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[J],P=F&&z&&T&&T.major;return this._adapter.format(Q,q||(P?z:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=L8(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,KT(this,[Q],this._majorUnit),q),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 Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(YT(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return wU(Q.sort(qT))}}function m3(Q,J,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=V2(Q,"pos",J));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=V2(Q,"time",J));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(J-K)/w:M}class hS extends eU{static id="timeseries";static defaults=eU.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=m3(J,this.min),this._tableRange=m3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=X)q.push(F);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(m3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return m3(this._table,X*this._tableRange+this._minPos,!0)}}g9.register(UK,KK,qK,U$,XK,fT,gT,kT,vT);var dP=i(lT(),1);var j8=i(I1(),1);var i3=i(I1(),1);var o3=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var rT=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var sT=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var MK=(Q)=>{let J=sT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var CQ=i(I1(),1);var a3={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 nT=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var B$=i(I1(),1),lS=B$.createContext({});var oT=()=>B$.useContext(lS);var aT=CQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...M},F)=>{let{size:w=24,strokeWidth:z=2,absoluteStrokeWidth:T=!1,color:P="currentColor",className:I=""}=oT()??{},A=q??T?Number(X??z)*24/Number(J??w):X??z;return CQ.createElement("svg",{ref:F,...a3,width:J??w??a3.width,height:J??w??a3.height,stroke:Q??P,strokeWidth:A,className:o3("lucide",I,N),...!K&&!nT(M)&&{"aria-hidden":"true"},...M},[...H.map(([O,V])=>CQ.createElement(O,V)),...Array.isArray(K)?K:[K]])});var E0=(Q,J)=>{let X=i3.forwardRef(({className:q,...N},K)=>i3.createElement(aT,{ref:K,iconNode:J,className:o3(`lucide-${rT(MK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=MK(Q),X};var rS=[["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"}]],b2=E0("circle-alert",rS);var sS=[["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"}]],IQ=E0("activity",sS);var nS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],VQ=E0("check",nS);var oS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],OQ=E0("chevron-down",oS);var aS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],EQ=E0("chevron-up",aS);var iS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],AQ=E0("clock",iS);var tS=[["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"}]],u9=E0("coins",tS);var eS=[["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"}]],SQ=E0("copy",eS);var $j=[["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"}]],jQ=E0("cpu",$j);var Zj=[["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"}]],DQ=E0("folder",Zj);var Qj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],vQ=E0("gauge",Qj);var Jj=[["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"}]],bQ=E0("hash",Jj);var Gj=[["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"}]],kQ=E0("inbox",Gj);var Xj=[["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"}]],fQ=E0("layout-dashboard",Xj);var qj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],yQ=E0("menu",qj);var Yj=[["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"}]],gQ=E0("monitor",Yj);var Nj=[["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"}]],hQ=E0("moon",Nj);var Uj=[["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"}]],uQ=E0("refresh-cw",Uj);var Kj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],xQ=E0("smile",Kj);var Bj=[["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"}]],mQ=E0("star",Bj);var Hj=[["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"}]],dQ=E0("sun",Hj);var Mj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],pQ=E0("trending-up",Mj);var Fj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],x9=E0("x",Fj);var Wj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],cQ=E0("zap",Wj);var RL=i(I1(),1);var lQ=[{id:"overview",label:"Overview",icon:fQ},{id:"requests",label:"Requests",icon:IQ},{id:"errors",label:"Errors",icon:b2},{id:"models",label:"Models",icon:jQ},{id:"costs",label:"Costs",icon:u9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:xQ},{id:"projects",label:"Projects",icon:DQ},{id:"gain",label:"Gain",icon:pQ}];var m6=i(M0(),1);function FK({activeSection:Q,onSectionChange:J,className:X=""}){return m6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[m6.jsxDEV("div",{className:"stats-nav-rail-header",children:m6.jsxDEV("div",{className:"stats-logo-container",children:[m6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),m6.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),m6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lQ.map((q)=>{let N=q.id===Q,K=q.icon;return m6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[m6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),m6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),m6.jsxDEV("div",{className:"stats-nav-rail-footer",children:m6.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 WK=i(M0(),1),Rj=[{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 iT({value:Q,onChange:J,className:X=""}){return WK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:Rj.map((q)=>{let N=q.value===Q;return WK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var wK=i(I1(),1);class tT extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function u4(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new tT(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function eT(Q="24h",J){return u4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function $L(Q="24h",J){return u4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function ZL(Q="24h",J){return u4(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function t3(Q=50,J){return u4(`/api/stats/recent?limit=${Q}`,{signal:J})}async function QL(Q=50,J){return u4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function JL(Q,J){return u4(`/api/request/${Q}`,{signal:J})}async function GL(Q){return u4("/api/sync",{signal:Q})}async function XL(Q="24h",J){return u4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function qL(Q="24h",J){return u4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function YL(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return u4(`/api/stats/gain?${q}`,{signal:X})}var rQ=i(M0(),1);function NL({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=wK.useState(!1),[K,H]=wK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await GL(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return rQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&rQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[rQ.jsxDEV(uQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var e3=i(I1(),1),UL="omp-stats-theme",KL="(prefers-color-scheme: dark)";function zj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(UL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function BL(){if(typeof window>"u")return"dark";return window.matchMedia(KL).matches?"dark":"light"}var d9=zj(),sQ=d9==="system"?BL():d9,RK=new Set;function HL(){for(let Q of RK)Q()}function zK(){if(sQ=d9==="system"?BL():d9,typeof document<"u")document.documentElement.dataset.theme=sQ,document.documentElement.style.colorScheme=sQ}if(typeof window<"u")zK(),window.matchMedia(KL).addEventListener("change",()=>{if(d9==="system")zK(),HL()});function Tj(Q){if(d9=Q,typeof localStorage<"u")localStorage.setItem(UL,Q);zK(),HL()}function TK(Q){return RK.add(Q),()=>RK.delete(Q)}function d6(){return e3.useSyncExternalStore(TK,()=>sQ,()=>"dark")}function ML(){let Q=e3.useSyncExternalStore(TK,()=>d9,()=>"system"),J=e3.useSyncExternalStore(TK,()=>sQ,()=>"dark");return{preference:Q,resolved:J,setPreference:Tj}}var LK=i(M0(),1),Lj={system:"light",light:"dark",dark:"system"},Pj={system:gQ,light:dQ,dark:hQ},FL={system:"System theme",light:"Light theme",dark:"Dark theme"};function WL(){let{preference:Q,setPreference:J}=ML(),X=Pj[Q];return LK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(Lj[Q]),"aria-label":`${FL[Q]} (click to switch)`,title:`${FL[Q]} — click to switch`,children:LK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var p6=i(M0(),1);function wL({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=lQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return p6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[p6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&p6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:p6.jsxDEV(yQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p6.jsxDEV("div",{className:"stats-top-bar-right",children:[p6.jsxDEV("div",{className:"stats-top-bar-meta",children:p6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV(iT,{value:J,onChange:X},void 0,!1,void 0,this),p6.jsxDEV(WL,{},void 0,!1,void 0,this),p6.jsxDEV(NL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var V5=i(M0(),1);function zL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=RL.useState(!1),z=(T)=>{J(T),w(!1)};return V5.jsxDEV("div",{className:"stats-app-container",children:[V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&V5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:V5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[V5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[V5.jsxDEV("div",{className:"stats-logo-container",children:[V5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:V5.jsxDEV(x9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V5.jsxDEV("div",{className:"stats-main-pane",children:[V5.jsxDEV(wL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),V5.jsxDEV("main",{className:"stats-content-area",children:V5.jsxDEV("div",{className:"stats-content-inner",children:M},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 O8=i(I1(),1),_j=["overview","requests","errors","models","costs","behavior","projects","gain"],TL=["1h","24h","7d","30d","90d","all"];function PK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=_j.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(TL.includes(M))K=M}return{section:N,range:K}}function LL(){let[Q,J]=O8.useState(()=>PK(window.location.hash));O8.useEffect(()=>{let K=()=>{J(PK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=O8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=O8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=O8.useCallback((K)=>{let H=TL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return O8.useEffect(()=>{let K=window.location.hash,H=PK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var Cj=Math.pow(10,8)*24*60*60*1000,ln1=-Cj,$X=604800000,PL=86400000;var nQ=43200,_K=1440;var CK=Symbol.for("constructDateFrom");function O5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&CK in Q)return Q[CK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function Q1(Q,J){return O5(J||Q,Q)}var Ij={};function x4(){return Ij}function E8(Q,J){let X=x4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=Q1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function p9(Q,J){return E8(Q,{...J,weekStartsOn:1})}function ZX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=O5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=p9(N),H=O5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=p9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function H$(Q){let J=Q1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function k2(Q,...J){let X=O5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function IK(Q,J){let X=Q1(Q,J?.in);return X.setHours(0,0,0,0),X}function _L(Q,J,X){let[q,N]=k2(X?.in,Q,J),K=IK(q),H=IK(N),M=+K-H$(K),F=+H-H$(H);return Math.round((M-F)/PL)}function CL(Q,J){let X=ZX(Q,J),q=O5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),p9(q)}function M$(Q,J){let X=+Q1(Q)-+Q1(J);if(X<0)return-1;else if(X>0)return 1;return X}function IL(Q){return O5(Q,Date.now())}function VL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function OL(Q){return!(!VL(Q)&&typeof Q!=="number"||isNaN(+Q1(Q)))}function EL(Q,J,X){let[q,N]=k2(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function AL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function SL(Q,J){return+Q1(Q)-+Q1(J)}function jL(Q,J){let X=Q1(Q,J?.in);return X.setHours(23,59,59,999),X}function DL(Q,J){let X=Q1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function vL(Q,J){let X=Q1(Q,J?.in);return+jL(X,J)===+DL(X,J)}function bL(Q,J,X){let[q,N,K]=k2(X?.in,Q,Q,J),H=M$(N,K),M=Math.abs(EL(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=M$(N,K)===-H;if(vL(q)&&M===1&&M$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function kL(Q,J,X){let q=SL(Q,J)/1000;return AL(X?.roundingMethod)(q)}function fL(Q,J){let X=Q1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var Vj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yL=(Q,J,X)=>{let q,N=Vj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function QX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var Oj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ej={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Aj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gL={date:QX({formats:Oj,defaultWidth:"full"}),time:QX({formats:Ej,defaultWidth:"full"}),dateTime:QX({formats:Aj,defaultWidth:"full"})};var Sj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hL=(Q,J,X,q)=>Sj[Q];function F$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var jj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},kj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yj=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},uL={ordinalNumber:yj,era:F$({values:jj,defaultWidth:"wide"}),quarter:F$({values:Dj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:F$({values:vj,defaultWidth:"wide"}),day:F$({values:bj,defaultWidth:"wide"}),dayPeriod:F$({values:kj,defaultWidth:"wide",formattingValues:fj,defaultFormattingWidth:"wide"})};function W$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?hj(M,(T)=>T.test(H)):gj(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=J.slice(H.length);return{value:w,rest:z}}}function gj(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function hj(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function xL(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let M=J.slice(N.length);return{value:H,rest:M}}}var uj=/^(\d+)(th|st|nd|rd)?/i,xj=/\d+/i,mj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dj={any:[/^b/i,/^(a|c)/i]},pj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cj={any:[/1/i,/2/i,/3/i,/4/i]},lj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},aj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mL={ordinalNumber:xL({matchPattern:uj,parsePattern:xj,valueCallback:(Q)=>parseInt(Q,10)}),era:W$({matchPatterns:mj,defaultMatchWidth:"wide",parsePatterns:dj,defaultParseWidth:"any"}),quarter:W$({matchPatterns:pj,defaultMatchWidth:"wide",parsePatterns:cj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:W$({matchPatterns:lj,defaultMatchWidth:"wide",parsePatterns:rj,defaultParseWidth:"any"}),day:W$({matchPatterns:sj,defaultMatchWidth:"wide",parsePatterns:nj,defaultParseWidth:"any"}),dayPeriod:W$({matchPatterns:oj,defaultMatchWidth:"any",parsePatterns:aj,defaultParseWidth:"any"})};var oQ={code:"en-US",formatDistance:yL,formatLong:gL,formatRelative:hL,localize:uL,match:mL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dL(Q,J){let X=Q1(Q,J?.in);return _L(X,fL(X))+1}function pL(Q,J){let X=Q1(Q,J?.in),q=+p9(X)-+CL(X);return Math.round(q/$X)+1}function JX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=x4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=O5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=E8(H,J),F=O5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=E8(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function cL(Q,J){let X=x4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=JX(Q,J),K=O5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),E8(K,J)}function lL(Q,J){let X=Q1(Q,J?.in),q=+E8(X,J)-+cL(X,J);return Math.round(q/$X)+1}function Y1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var A8={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return Y1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):Y1(X+1,2)},d(Q,J){return Y1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return Y1(Q.getHours()%12||12,J.length)},H(Q,J){return Y1(Q.getHours(),J.length)},m(Q,J){return Y1(Q.getMinutes(),J.length)},s(Q,J){return Y1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return Y1(N,J.length)}};var w$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},VK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return A8.y(Q,J)},Y:function(Q,J,X,q){let N=JX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return Y1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return Y1(K,J.length)},R:function(Q,J){let X=ZX(Q);return Y1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return Y1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return Y1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return Y1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return A8.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return Y1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=lL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return Y1(N,J.length)},I:function(Q,J,X){let q=pL(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return Y1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return A8.d(Q,J)},D:function(Q,J,X){let q=dL(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return Y1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return Y1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return Y1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return Y1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=w$.noon;else if(q===0)N=w$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=w$.evening;else if(q>=12)N=w$.afternoon;else if(q>=4)N=w$.morning;else N=w$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return A8.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return A8.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return Y1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return Y1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return A8.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return A8.s(Q,J)},S:function(Q,J){return A8.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return sL(q);case"XXXX":case"XX":return c9(q);case"XXXXX":case"XXX":default:return c9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return sL(q);case"xxxx":case"xx":return c9(q);case"xxxxx":case"xxx":default:return c9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+rL(q,":");case"OOOO":default:return"GMT"+c9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+rL(q,":");case"zzzz":default:return"GMT"+c9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return Y1(q,J.length)},T:function(Q,J,X){return Y1(+Q,J.length)}};function rL(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+Y1(K,2)}function sL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Y1(Math.abs(Q)/60,2);return c9(Q,J)}function c9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Y1(Math.trunc(q/60),2),K=Y1(q%60,2);return X+N+J+K}var nL=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},oL=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},ij=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return nL(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",nL(q,J)).replace("{{time}}",oL(N,J))},aL={p:oL,P:ij};var tj=/^D+$/,ej=/^Y+$/,$D=["D","DD","YY","YYYY"];function iL(Q){return tj.test(Q)}function tL(Q){return ej.test(Q)}function eL(Q,J,X){let q=ZD(Q,J,X);if(console.warn(q),$D.includes(Q))throw RangeError(q)}function ZD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var QD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GD=/^'([^]*?)'?$/,XD=/''/g,qD=/[a-zA-Z]/;function X4(Q,J,X){let q=x4(),N=X?.locale??q.locale??oQ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,M=Q1(Q,X?.in);if(!OL(M))throw RangeError("Invalid time value");let F=J.match(JD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let P=aL[T];return P(z,N.formatLong)}return z}).join("").match(QD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:YD(z)};if(VK[T])return{isToken:!0,value:z};if(T.match(qD))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&tL(T)||!X?.useAdditionalDayOfYearTokens&&iL(T))eL(T,J,String(Q));let P=VK[T[0]];return P(M,T,N.localize,w)}).join("")}function YD(Q){let J=Q.match(GD);if(!J)return Q;return J[1].replace(XD,"'")}function $P(Q,J,X){let q=x4(),N=X?.locale??q.locale??oQ,K=2520,H=M$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=k2(X?.in,...H>0?[J,Q]:[Q,J]),z=kL(w,F),T=(H$(w)-H$(F))/1000,P=Math.round((z-T)/60),I;if(P<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(P===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",P,M);else if(P<45)return N.formatDistance("xMinutes",P,M);else if(P<90)return N.formatDistance("aboutXHours",1,M);else if(P<_K){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,M)}else if(P<2520)return N.formatDistance("xDays",1,M);else if(P<nQ){let A=Math.round(P/_K);return N.formatDistance("xDays",A,M)}else if(P<nQ*2)return I=Math.round(P/nQ),N.formatDistance("aboutXMonths",I,M);if(I=bL(w,F),I<12){let A=Math.round(P/nQ);return N.formatDistance("xMonths",A,M)}else{let A=I%12,O=Math.trunc(I/12);if(A<3)return N.formatDistance("aboutXYears",O,M);else if(A<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function ZP(Q,J){return $P(Q,IL(Q),J)}var J5=i(I1(),1);var OK=i(QP(),1),P6=i(I1(),1);var GP="label";function JP(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function UD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function XP(Q,J){Q.labels=J}function qP(Q,J,X=GP){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function KD(Q,J=GP){let X={labels:[],datasets:[]};return XP(X,Q.labels),qP(X,Q.datasets,J),X}function BD(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,...P}=Q,I=P6.useRef(null),A=P6.useRef(null),O=()=>{if(!I.current)return;A.current=new g9(I.current,{type:H,data:KD(M,K),options:F&&{...F},plugins:w}),JP(J,A.current)},V=()=>{if(JP(J,null),A.current)A.current.destroy(),A.current=null};return P6.useEffect(()=>{if(!N&&A.current&&F)UD(A.current,F)},[N,F]),P6.useEffect(()=>{if(!N&&A.current)XP(A.current.config.data,M.labels)},[N,M.labels]),P6.useEffect(()=>{if(!N&&A.current&&M.datasets)qP(A.current.config.data,M.datasets,K)},[N,M.datasets]),P6.useEffect(()=>{if(!A.current)return;if(N)V(),setTimeout(O);else A.current.update(T)},[N,F,M.labels,M.datasets,T]),P6.useEffect(()=>{if(!A.current)return;V(),setTimeout(O)},[H]),P6.useEffect(()=>{return O(),()=>V()},[]),OK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...P,children:z})}var HD=P6.forwardRef(BD);function YP(Q,J){return g9.register(J),P6.forwardRef((X,q)=>OK.jsx(HD,{...X,ref:q,type:Q}))}var e5=YP("line",QK),GX=YP("bar",ZK);var t1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],g5={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 R$(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function z$(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function T$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function XX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function L$(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function qX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>X4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function YX(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),A=w.map(([D])=>P.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))A.push("Other");let V=new Map;for(let D of I)V.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?P.get(h)??D.model:"Other",s=V.get(D.timestamp);if(!s)continue;let o=s[p]??N();K(o,D),s[p]=o}return{labels:I.map((D)=>X4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:I.map((h)=>{let p=V.get(h)?.[D];return p?H(p):0})}))}}var j1=i(M0(),1);function S8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function NX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>X4(new Date(K),"MMM d")),datasets:[{data:J,...S8(X)}]};return j1.jsxDEV(e5,{data:q,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 UX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function NP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function UP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function KX({title:Q,subtitle:J,children:X}){return j1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[j1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[j1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?j1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),j1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function BX({columns:Q,gridTemplate:J}){return j1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>j1.jsxDEV("div",{className:MD(X.align),children:X.label},X.label,!1,void 0,this)),j1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HX({children:Q}){return j1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function MX({model:Q,provider:J}){return j1.jsxDEV("div",{children:[j1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return j1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[j1.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:j1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,j1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?j1.jsxDEV(EQ,{size:16},void 0,!1,void 0,this):j1.jsxDEV(OQ,{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),q?j1.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 WX(){return j1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function wX({message:Q="No data available"}){return j1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function t0(Q){return Q.toLocaleString()}function m4(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function d1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function $6(Q,J=1){return`${(Q*100).toFixed(J)}%`}function E5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function KP(Q){if(Q===null)return"-";return Q.toFixed(1)}function d4(Q){return ZP(new Date(Q),{addSuffix:!0})}function EK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var z5=i(I1(),1),f2=new Map,FD=64;function T5(Q,J,X){let q=JSON.stringify(Q),[N,K]=z5.useState(()=>f2.get(q)?.data??null),[H,M]=z5.useState(null),[F,w]=z5.useState(()=>!f2.has(q)),[z,T]=z5.useState(!1),[P,I]=z5.useState(()=>f2.get(q)?.updatedAt??null),A=z5.useRef(J);A.current=J;let O=z5.useRef(q);O.current=q;let V=X?.enabled??!0,D=X?.pollMs,h=z5.useRef(null),p=z5.useRef(!1);p.current=N!==null;let s=z5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)T(!0);else w(!0),K(null);M(null);try{let a=await A.current(t.signal);if(t.signal.aborted)return;if(f2.set(O.current,{data:a,updatedAt:Date.now()}),f2.size>FD){let q0=f2.keys().next().value;if(q0!==void 0)f2.delete(q0)}K(a),I(Date.now()),M(null)}catch(a){if(t.signal.aborted)return;M(a instanceof Error?a:Error(String(a)))}finally{if(!t.signal.aborted){if(w(!1),T(!1),h.current===t)h.current=null}}},[]);z5.useEffect(()=>{if(!V){w(!1),T(!1);return}let Q0=f2.get(q);if(Q0)K(Q0.data),I(Q0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,V,s]),z5.useEffect(()=>{if(!V||!D)return;let Q0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(Q0)}},[V,D,s]);let o=z5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:o,updatedAt:P}}var BP=3600000,RX=24*BP,WD=300000,HP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:WD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:BP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:RX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:RX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:RX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:RX,bucketCount:0,tickFormat:"MMM d"}};function aQ(Q){return HP[Q]}function AK(Q,J){return X4(new Date(Q),HP[J].tickFormat)}var wD=["main","subagent","advisor"];function MP(Q){let J=new Map;for(let M of Q)J.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=wD.map((M)=>J.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function FP(Q){let J=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function WP(Q,J){if(Q.length===0)return new Map;let X=aQ(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,P)=>Math.max(T,P.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,P)=>z+P*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function wP(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function RP(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}var zX=i(M0(),1);function zP({message:Q="No data available",icon:J=kQ,className:X=""}){return zX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[zX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),zX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var P$=i(M0(),1);function TP({error:Q,onRetry:J,className:X=""}){return P$.jsxDEV("div",{className:`stats-error-state ${X}`,children:P$.jsxDEV("div",{className:"stats-error-state-content",children:[P$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&P$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&P$.jsxDEV("button",{type:"button",onClick:J,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 LP=i(M0(),1);function Z6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return LP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var _6=i(M0(),1);function e1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(J&&X===null)return _6.jsxDEV(TP,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return _6.jsxDEV(_6.Fragment,{children:K},void 0,!1,void 0,this);return _6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[_6.jsxDEV(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return _6.jsxDEV(zP,{message:N},void 0,!1,void 0,this);return _6.jsxDEV(_6.Fragment,{children:M},void 0,!1,void 0,this)}var Q6=i(M0(),1);function y2({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(J.length===0)return Q6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Q6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Q6.jsxDEV("div",{className:"stats-table-mobile-only",children:Q6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((M)=>{let F=String(X(M));return Q6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Q6.jsxDEV("table",{className:"stats-table",children:[Q6.jsxDEV("thead",{children:Q6.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("tbody",{children:J.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Q6.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let P=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("td",{className:P,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!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 r9=i(I1(),1),c6=i(M0(),1);function SK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=r9.useState(X),[K,H]=r9.useState(!1),M=r9.useRef(0),F=JSON.stringify(Q,null,2);return r9.useEffect(()=>()=>window.clearTimeout(M.current),[]),c6.jsxDEV("div",{className:"stats-json-block",children:[c6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[c6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),c6.jsxDEV("div",{className:"stats-json-actions",children:[c6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?c6.jsxDEV(VQ,{size:13},void 0,!1,void 0,this):c6.jsxDEV(SQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),c6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&c6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:c6.jsxDEV("pre",{className:"stats-json-block-content",children:c6.jsxDEV("code",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var J1=i(M0(),1);function PP({stats:Q}){return J1.jsxDEV("div",{className:"stats-metric-cluster",children:[J1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:KP(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(Q.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 g2=i(M0(),1);function f1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return g2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&g2.jsxDEV("div",{className:"stats-panel-header",children:[g2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&g2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&g2.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&g2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var p4=i(I1(),1);var _P=i(M0(),1);function C6({variant:Q,children:J,className:X=""}){return _P.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var W0=i(M0(),1);function CP({id:Q,onClose:J}){let[X,q]=p4.useState(null),[N,K]=p4.useState(!1),[H,M]=p4.useState(null),F=p4.useRef(null),w=p4.useRef(null);if(p4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return JL(Q,T.signal).then((P)=>{if(T.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(T.signal.aborted)return;M(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),p4.useEffect(()=>{if(Q===null)return;let T=(P)=>{if(P.key==="Escape")J()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,J]),Q===null)return null;return W0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.currentTarget)J()},role:"presentation",children:W0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[W0.jsxDEV("div",{className:"stats-drawer-header",children:[W0.jsxDEV("div",{className:"stats-drawer-header-left",children:[W0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&W0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:W0.jsxDEV(x9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&W0.jsxDEV("div",{className:"stats-drawer-loading",children:[W0.jsxDEV(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&W0.jsxDEV("div",{className:"stats-drawer-error",children:[W0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),W0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&W0.jsxDEV("div",{className:"stats-drawer-content",children:[W0.jsxDEV("div",{className:"stats-drawer-status-card",children:[W0.jsxDEV("div",{className:"stats-drawer-status-row",children:[W0.jsxDEV("div",{children:[W0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV(C6,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&W0.jsxDEV("div",{className:"stats-drawer-error-block",children:[W0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(u9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:d1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(mQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:t0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(bQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:t0(X.usage.totalTokens)},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[t0(X.usage.input)," in · ",t0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(AQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:E5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(cQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:E5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&W0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[W0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[W0.jsxDEV(vQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),W0.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),W0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[W0.jsxDEV(SK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),W0.jsxDEV(SK,{data:X,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 jK=i(M0(),1);function iQ({options:Q,value:J,onChange:X,className:q=""}){return jK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return jK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=i(M0(),1);function SP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["behavior",J,X],(H)=>XL(J,H),{pollMs:30000,enabled:Q});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV(RD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(zD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(TD,{models:q.byModel,behaviorSeries:q.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 TX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function RD({overall:Q,behaviorSeries:J}){let X=J5.useMemo(()=>wP(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:t0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:t0(Q.totalYelling),sub:TX(Q.totalYelling,q)},{label:"Profanity Hits",value:t0(Q.totalProfanity),sub:TX(Q.totalProfanity,q)},{label:"Anguish Signals",value:t0(Q.totalAnguish),sub:TX(Q.totalAnguish,q)},{label:"Friction Signals",value:t0(X.totalFrustration),sub:TX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${t0(X.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(f1,{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 DK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function IP(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function VP(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function OP(Q,J){if(J<=0)return 0;return Q/J*100}function zD({behaviorSeries:Q}){let[J,X]=J5.useState(!1),[q,N]=J5.useState("total"),K=d6(),H=g5[K],M=J5.useMemo(()=>{if(J)return YX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=VP(p,q),h.messages+=p.messages},bucketToValue:(h)=>OP(h.hits,h.messages)});let D=DK.find((h)=>h.value===q)?.title??"Hits";return qX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=VP(p,q),h.messages+=p.messages},bucketToValue:(h)=>OP(h.hits,h.messages)})},[Q,J,q]),F=J5.useMemo(()=>{return R$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:IP})},[H,J]),{sharedScaleBase:w,yScale:z}=J5.useMemo(()=>{return z$({chartTheme:H,formatY:IP})},[H]),T=J5.useMemo(()=>{return DK.find((D)=>D.value===q)?.title??""},[q]),P=J5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:L$(M,(D)=>T$(t1[D%t1.length]))}},[M,J]),I=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),A=J5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:L$(M,(D)=>XX(t1[D%t1.length]))}},[M,J]),O=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),V=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(f1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(iQ,{options:DK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(iQ,{options:V,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:M.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):J&&P?w0.jsxDEV(e5,{data:P,options:I},void 0,!1,void 0,this):A?w0.jsxDEV(GX,{data:A,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var EP="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function AP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function _$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function TD({models:Q,behaviorSeries:J}){let[X,q]=J5.useState(null),N=d6(),K=g5[N],H=J5.useMemo(()=>PD(J),[J]),M=J5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return AP(w)-AP(F)})},[Q]);return w0.jsxDEV(KX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(BX,{gridTemplate:EP,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(HX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],P=t1[w%t1.length],I=X===z,A=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+A;return w0.jsxDEV(FX,{gridTemplate:EP,isExpanded:I,onToggle:()=>q(I?null:z),cells:[w0.jsxDEV(MX,{model:F.model,provider:F.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t0(F.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(A,F.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(O,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?w0.jsxDEV(WX,{},void 0,!1,void 0,this):w0.jsxDEV(NX,{timestamps:T.map((V)=>V.timestamp),values:T.map((V)=>V.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(s9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Avg chars / msg",total:F.totalChars,messages:F.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:T.length===0?w0.jsxDEV(wX,{},void 0,!1,void 0,this):w0.jsxDEV(LD,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.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 s9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=J5.useMemo(()=>{if(X===0)return"-";return N==="rate"?_$(J,X):(J/X).toFixed(0)},[J,X,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},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 ${q}`,children:t0(J)},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 LX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function LD({data:Q,chartTheme:J}){let X=J5.useMemo(()=>{return{labels:Q.map((N)=>X4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...S8(LX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...S8(LX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...S8(LX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...S8(LX.frustration)}]}},[Q]),q=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(J),scales:NP(J)}},[J]);return w0.jsxDEV(e5,{data:X,options:q},void 0,!1,void 0,this)}function PD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var l6=i(I1(),1);var G5=i(M0(),1);function jP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["costs",J,X],(H)=>ZL(J,H),{pollMs:30000,enabled:Q});return G5.jsxDEV("div",{className:"stats-route-container space-y-6",children:G5.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&G5.jsxDEV(G5.Fragment,{children:[G5.jsxDEV(_D,{costSeries:q.costSeries},void 0,!1,void 0,this),G5.jsxDEV(VD,{costSeries:q.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 _D({costSeries:Q}){let J=l6.useMemo(()=>FP(Q),[Q]),X=[{label:"Total Cost",value:d1(J.totalCost)},{label:"Average / Day",value:d1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?d1(J.topModelCost):void 0}];return G5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>G5.jsxDEV(f1,{className:"stats-cost-overview-card py-4 px-5",children:[G5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),G5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&G5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var CD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function ID(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function VD({costSeries:Q}){let[J,X]=l6.useState(!1),q=d6(),N=g5[q],K=l6.useMemo(()=>{if(J)return YX(Q,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total});return qX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total})},[Q,J]),H=l6.useMemo(()=>{return R$({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!J||O.length<2)return;return`Total: $${O.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:M,yScale:F}=l6.useMemo(()=>{return z$({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),w=l6.useMemo(()=>{return ID(CD[q])},[q]),z=l6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:L$(K,(O)=>T$(t1[O%t1.length]))}},[K,J]),T=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),P=l6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:L$(K,(O)=>XX(t1[O%t1.length]))}},[K,J]),I=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return G5.jsxDEV(f1,{title:"Daily Cost",subtitle:"API spending over time",actions:G5.jsxDEV(iQ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:G5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?G5.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):J&&z?G5.jsxDEV(e5,{data:z,options:T},void 0,!1,void 0,this):P?G5.jsxDEV(GX,{data:P,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var DP=i(I1(),1);var V1=i(M0(),1);function vP({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-errors-dense",J],(F)=>QL(50,F),{pollMs:30000,enabled:Q}),H=DP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>d4(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>V1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)}],[]);return V1.jsxDEV("div",{className:"stats-route-container",children:V1.jsxDEV(f1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:V1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:V1.jsxDEV(y2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>V1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[V1.jsxDEV("div",{className:"stats-mobile-card-header",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV(C6,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&V1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.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 PX=i(I1(),1);var C0=i(M0(),1);function bP({active:Q,range:J,refreshTrigger:X}){let[q,N]=PX.useState(null),{data:K,error:H,loading:M}=T5(["gain",J,X,q],(F)=>YL(J,q,F),{pollMs:30000,enabled:Q});return C0.jsxDEV("div",{className:"stats-route-container space-y-6",children:C0.jsxDEV(e1,{loading:M,error:H,data:K,children:K&&C0.jsxDEV(C0.Fragment,{children:[C0.jsxDEV(OD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),C0.jsxDEV(ED,{overall:K.overall},void 0,!1,void 0,this),C0.jsxDEV(SD,{bySource:K.bySource},void 0,!1,void 0,this),C0.jsxDEV(DD,{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 OD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return C0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[C0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),C0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[C0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>C0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ED({overall:Q}){return C0.jsxDEV(f1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:C0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:EK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?$6(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.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 AD({title:Q,totals:J}){return C0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[C0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),C0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:m4(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:EK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:t0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?$6(J.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 SD({bySource:Q}){return C0.jsxDEV(f1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:C0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:C0.jsxDEV(AD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var jD={snapcompact:"rgb(34, 197, 94)"};function DD({timeSeries:Q}){let J=d6(),X=g5[J],{data:q,options:N}=PX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:Q.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((T)=>T.snapcompact),...T$(jD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=z$({chartTheme:X,formatY:(T)=>m4(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:R$({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:m4}),scales:{x:{...F,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[Q,X]);return C0.jsxDEV(f1,{title:"Savings Over Time",subtitle:"Daily token savings",children:C0.jsxDEV("div",{style:{height:240},children:Q.length===0?C0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):C0.jsxDEV(e5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var c4=i(I1(),1);var A0=i(M0(),1);function fP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["models",J,X],(H)=>$L(J,H),{pollMs:30000,enabled:Q});return A0.jsxDEV("div",{className:"stats-route-container space-y-6",children:A0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&A0.jsxDEV(A0.Fragment,{children:[A0.jsxDEV(vD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),A0.jsxDEV(kD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},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 vD({modelSeries:Q,timeRange:J}){let X=d6(),q=g5[X],N=aQ(J),K=c4.useMemo(()=>bD(Q),[Q]),H=c4.useMemo(()=>{return{labels:K.data.map((F)=>AK(F.timestamp,J)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:t1[w%t1.length],backgroundColor:`${t1[w%t1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),M=c4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}}},[q]);return A0.jsxDEV(f1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:A0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?A0.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):A0.jsxDEV(e5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function bD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,I=X.get(P);if(I)I.total+=T.requests;else X.set(P,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,P])=>({key:T,...P})).sort((T,P)=>P.total-T.total).slice(0,J),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let P=(H.get(T.model)??0)>1;M.set(T.key,P?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let A=K.has(P)?M.get(P)??T.model:"Other";I[A]=(I[A]??0)+T.requests,F.set(T.timestamp,I)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,P)=>(T.timestamp??0)-(P.timestamp??0)).map((T)=>{let P=T.total??0;for(let I of w)T[I]=P>0?(T[I]??0)/P*100:0;return T}),series:w}}var kP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function kD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=c4.useState(null),K=aQ(X),H=c4.useMemo(()=>WP(J,X),[J,X]),M=d6(),F=g5[M],w=c4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return A0.jsxDEV(KX,{title:"Model Statistics",children:[A0.jsxDEV(BX,{gridTemplate:kP,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),A0.jsxDEV(HX,{children:w.map((z,T)=>{let P=`${z.model}::${z.provider}`,A=H.get(P)?.data??[],O=t1[T%t1.length],V=q===P,D=z.errorRate*100;return A0.jsxDEV(FX,{gridTemplate:kP,isExpanded:V,onToggle:()=>N(V?null:P),cells:[A0.jsxDEV(MX,{model:z.model,provider:z.provider},"name",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?A0.jsxDEV(WX,{},void 0,!1,void 0,this):A0.jsxDEV(NX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:A0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[A0.jsxDEV("div",{className:"space-y-4 text-sm",children:[A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.cacheRate*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),A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),A0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?A0.jsxDEV(wX,{},void 0,!1,void 0,this):A0.jsxDEV(fD,{data:A,color:O,chartTheme:F,timeRange:X},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 fD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=c4.useMemo(()=>{return{labels:Q.map((H)=>AK(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...S8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...S8(J),yAxisID:"y1"}]}},[Q,J,q]),K=c4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(X),scales:UP(X)}},[X]);return A0.jsxDEV(e5,{data:N,options:K},void 0,!1,void 0,this)}var tQ=i(I1(),1);var yP=i(I1(),1);var J6=i(M0(),1),_X={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function gP({stats:Q}){let J=yP.useMemo(()=>MP(Q),[Q]);if(J.totalTokens===0)return J6.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 J6.jsxDEV("div",{className:"space-y-4",children:[J6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&J6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:_X[X.agentType].color},title:`${_X[X.agentType].label}: ${$6(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),J6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>J6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[J6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[J6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:_X[X.agentType].color}},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-primary truncate",children:_X[X.agentType].label},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[t0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[J6.jsxDEV("span",{className:"stats-text-secondary",children:[m4(X.tokens)," tok"]},void 0,!0,void 0,this),J6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:$6(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var N0=i(M0(),1);function hP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=T5(["overview",J,X],(D)=>eT(J,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=T5(["recent-requests",X],(D)=>t3(50,D),{pollMs:30000,enabled:Q}),z=d6(),T=g5[z],P=tQ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>X4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,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,J]),I=tQ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),A=tQ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>d4(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>t0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>d1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>E5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>N0.jsxDEV(C6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(D,h)=>N0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[N0.jsxDEV("div",{className:"stats-mobile-card-header",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV(C6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&N0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V=tQ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return N0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(PP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV(f1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(gP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[N0.jsxDEV("div",{className:"lg:col-span-2",children:N0.jsxDEV(f1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?N0.jsxDEV(e5,{data:P,options:I},void 0,!1,void 0,this):N0.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),N0.jsxDEV("div",{children:N0.jsxDEV(f1,{title:"Operational Feed",subtitle:"Real-time request log",children:N0.jsxDEV(e1,{loading:w,error:F,data:M,fallback:N0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>N0.jsxDEV("div",{className:"flex items-center gap-3",children:[N0.jsxDEV(Z6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"flex-1",children:[N0.jsxDEV(Z6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),N0.jsxDEV(Z6,{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:N0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[V.map((D)=>{let h=!!D.errorMessage;return N0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[N0.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),N0.jsxDEV("div",{className:"flex-1 min-w-0",children:[N0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:d4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[N0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),N0.jsxDEV("div",{children:[D.duration?E5(D.duration):""," ",D.usage?.cost?.total?`· ${d1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&N0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),V.length===0&&N0.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),N0.jsxDEV(f1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:N0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:N0.jsxDEV(e1,{loading:w,error:F,data:M,children:N0.jsxDEV(y2,{columns:A,data:V,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:O,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 vK=i(I1(),1);var G1=i(M0(),1);function uP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["projects",J,X],(w)=>qL(J,w),{pollMs:30000,enabled:Q}),H=vK.useMemo(()=>{if(!q)return[];return RP(q)},[q]),M=vK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>G1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.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:(w)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.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:(w)=>G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>G1.jsxDEV("span",{className:"stats-text-success font-medium",children:$6(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>G1.jsxDEV(C6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:$6(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>E5(w.avgDuration)}],[]);return G1.jsxDEV("div",{className:"stats-route-container",children:G1.jsxDEV(f1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:G1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:G1.jsxDEV(y2,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>G1.jsxDEV("div",{className:"stats-mobile-card",children:[G1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[G1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),G1.jsxDEV(C6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[$6(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:$6(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(w.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 xP=i(I1(),1);var H1=i(M0(),1);function mP({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-requests-dense",J],(F)=>t3(50,F),{pollMs:30000,enabled:Q}),H=xP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>d4(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>E5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>H1.jsxDEV(C6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return H1.jsxDEV("div",{className:"stats-route-container",children:H1.jsxDEV(f1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:H1.jsxDEV(e1,{loading:K,error:N,data:q,children:H1.jsxDEV(y2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>H1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[H1.jsxDEV("div",{className:"stats-mobile-card-header",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV(C6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&H1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.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 h5=i(M0(),1);function bK(){let{section:Q,setSection:J,range:X,setRange:q}=LL(),[N,K]=j8.useState(0),[H,M]=j8.useState(null),[F,w]=j8.useState(()=>Date.now()),z=j8.useCallback((O)=>{if(O.success)K((V)=>V+1),w(Date.now())},[]),T=j8.useCallback(()=>M(null),[]),P=Q,I=j8.useRef(new Set);I.current.add(P);let A=(O)=>{let V=O===P;switch(O){case"overview":return h5.jsxDEV(hP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return h5.jsxDEV(mP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return h5.jsxDEV(vP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return h5.jsxDEV(fP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return h5.jsxDEV(jP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return h5.jsxDEV(SP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return h5.jsxDEV(uP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return h5.jsxDEV(bP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return h5.jsxDEV(h5.Fragment,{children:[h5.jsxDEV(zL,{activeSection:P,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((O)=>h5.jsxDEV("div",{hidden:O!==P,children:A(O)},O,!1,void 0,this))},void 0,!1,void 0,this),h5.jsxDEV(CP,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pP=i(M0(),1),yD=dP.createRoot(document.getElementById("root"));yD.render(pP.jsxDEV(bK,{},void 0,!1,void 0,this));
257
+ `);return Q}function FS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function $T(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=$5(J.bodyFont),w=$5(J.titleFont),z=$5(J.footerFont),T=K.length,_=N.length,I=q.length,E=_5(J.padding),V=E.height,O=0,D=q.reduce((s,a)=>s+a.before.length+a.lines.length+a.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)V+=T*w.lineHeight+(T-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;V+=I*s+(D-I)*F.lineHeight+(D-1)*J.bodySpacing}if(_)V+=J.footerMarginTop+_*z.lineHeight+(_-1)*J.footerSpacing;let h=0,p=function(s){O=Math.max(O,X.measureText(s).width+h)};return X.save(),X.font=w.string,B1(Q.title,p),X.font=F.string,B1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,B1(q,(s)=>{B1(s.before,p),B1(s.lines,p),B1(s.after,p)}),h=0,X.font=z.string,B1(Q.footer,p),X.restore(),O+=E.width,{width:O,height:V}}function WS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function wS(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function RS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(wS(w,Q,J,X))w="center";return w}function ZT(Q,J,X){let q=X.yAlign||J.yAlign||WS(Q,X);return{xAlign:X.xAlign||J.xAlign||RS(Q,J,X,q),yAlign:q}}function zS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function TS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function QT(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:_,bottomRight:I}=b8(H),E=zS(J,M),V=TS(J,F,w);if(F==="center"){if(M==="left")E+=w;else if(M==="right")E-=w}else if(M==="left")E-=Math.max(z,_)+N;else if(M==="right")E+=Math.max(T,I)+N;return{x:$6(E,0,q.width-J.width),y:$6(V,0,q.height-J.height)}}function c3(Q,J,X){let q=_5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function JT(Q){return p4([],A2(Q))}function LS(Q,J,X){return O2(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function GT(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var xT={beforeTitle:d4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:d4,beforeBody:d4,beforeLabel:d4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!Z1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:d4,afterBody:d4,beforeFooter:d4,footer:d4,afterFooter:d4};function Q6(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return xT[J].call(X,q);return N}class ZK extends E2{static positioners=_Q;constructor(Q){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=Q.chart,this.options=Q.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(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new GK(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=LS(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=Q6(X,"beforeTitle",this,Q),N=Q6(X,"title",this,Q),K=Q6(X,"afterTitle",this,Q),H=[];return H=p4(H,A2(q)),H=p4(H,A2(N)),H=p4(H,A2(K)),H}getBeforeBody(Q,J){return JT(Q6(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return B1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=GT(X,N);p4(K.before,A2(Q6(H,"beforeLabel",this,N))),p4(K.lines,Q6(H,"label",this,N)),p4(K.after,A2(Q6(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return JT(Q6(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=Q6(X,"beforeFooter",this,Q),N=Q6(X,"footer",this,Q),K=Q6(X,"afterFooter",this,Q),H=[];return H=p4(H,A2(q)),H=p4(H,A2(N)),H=p4(H,A2(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(FS(this.chart,J[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return B1(H,(w)=>{let z=GT(Q.callbacks,w);q.push(Q6(z,"labelColor",this,w)),N.push(Q6(z,"labelPointStyle",this,w)),K.push(Q6(z,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=_Q[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let M=this._size=$T(this,X),F=Object.assign({},H,M),w=ZT(this.chart,X,F),z=QT(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:M,topRight:F,bottomLeft:w,bottomRight:z}=b8(H),{x:T,y:_}=Q,{width:I,height:E}=J,V,O,D,h,p,s;if(N==="center"){if(p=_+E/2,q==="left")V=T,O=V-K,h=p+K,s=p-K;else V=T+I,O=V+K,h=p-K,s=p+K;D=V}else{if(q==="left")O=T+Math.max(M,w)+K;else if(q==="right")O=T+I-Math.max(F,z)-K;else O=this.caretX;if(N==="top")h=_,p=h-K,V=O-K,D=O+K;else h=_+E,p=h+K,V=O+K,D=O-K;s=h}return{x1:V,x2:O,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,M;if(N){let F=f9(X.rtl,this.x,this.width);Q.x=c3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=$5(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(M=0;M<N;++M)if(J.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=$5(N.bodyFont),z=c3(this,"left",N),T=q.x(z),_=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+_;if(N.usePointStyle){let E={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=q.leftForLtr(T,F)+F/2,O=I+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,y3(Q,E,V,O),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,y3(Q,E,V,O)}else{Q.lineWidth=t0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let E=q.leftForLtr(T,F),V=q.leftForLtr(q.xPlus(T,1),F-2),O=b8(K.borderRadius);if(Object.values(O).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,B$(Q,{x:E,y:I,w:F,h:M,radius:O}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),B$(Q,{x:V,y:I+1,w:F-2,h:M-2,radius:O}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(E,I,F,M),Q.strokeRect(E,I,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(V,I+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=$5(X.bodyFont),T=z.lineHeight,_=0,I=f9(X.rtl,this.x,this.width),E=function(t){J.fillText(t,I.x(Q.x+_),Q.y+T/2),Q.y+=T+N},V=I.textAlign(K),O,D,h,p,s,a,J0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=c3(this,V,X),J.fillStyle=X.bodyColor,B1(this.beforeBody,E),_=H&&V!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,a=q.length;p<a;++p){if(O=q[p],D=this.labelTextColors[p],J.fillStyle=D,B1(O.before,E),h=O.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,J0=h.length;s<J0;++s)E(h[s]),T=z.lineHeight;B1(O.after,E)}_=0,T=z.lineHeight,B1(this.afterBody,E),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let M=f9(X.rtl,this.x,this.width);Q.x=c3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=$5(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:_,bottomRight:I}=b8(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+z,M),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F-T,M),J.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F,M+w-I),J.quadraticCurveTo(H+F,M+w,H+F-I,M+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+_,M+w),J.quadraticCurveTo(H,M+w,H,M+w-_),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,M+z),J.quadraticCurveTo(H,M,H+z,M),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=_Q[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=$T(this,Q),M=Object.assign({},K,this._size),F=ZT(J,Q,M),w=QT(Q,M,F,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=_5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),kU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),fU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!UQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),M=J||!UQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=_Q[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var mT={id:"tooltip",_element:ZK,positioners:_Q,afterInit(Q,J,X){if(X)Q.tooltip=new ZK({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.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:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.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:xT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var _S=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function PS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return _S(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var CS=(Q,J)=>Q===null?null:$6(Math.round(Q),0,J);function XT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class MK extends h9{static id="category";static defaults={ticks:{callback:XT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(Z1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:PS(X,Q,r0(J,Q),this._addedLabels),CS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return XT.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function IS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:_}=Q,I=K||1,E=z-1,{min:V,max:O}=J,D=!Z1(H),h=!Z1(M),p=!Z1(w),s=(O-V)/(T+1),a=WU((O-V)/E/I)*I,J0,t,i,Y0;if(a<0.00000000000001&&!D&&!h)return[{value:V},{value:O}];if(Y0=Math.ceil(O/a)-Math.floor(V/a),Y0>E)a=WU(Y0*a/E/I)*I;if(!Z1(F))J0=Math.pow(10,F),a=Math.ceil(a*J0)/J0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(O/a)*a;else t=V,i=O;if(D&&h&&K&&lR((M-H)/K,a/1000))Y0=Math.round(Math.min((M-H)/a,z)),a=(M-H)/Y0,t=H,i=M;else if(p)t=D?H:t,i=h?M:i,Y0=w-1,a=(i-t)/Y0;else if(Y0=(i-t)/a,U$(Y0,Math.round(Y0),a/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(RU(a),RU(t));J0=Math.pow(10,Z1(F)?d:F),t=Math.round(t*J0)/J0,i=Math.round(i*J0)/J0;let H0=0;if(D){if(_&&t!==H){if(X.push({value:H}),t<H)H0++;if(U$(Math.round((t+H0*a)*J0)/J0,H,qT(H,s,Q)))H0++}else if(t<H)H0++}for(;H0<Y0;++H0){let _0=Math.round((t+H0*a)*J0)/J0;if(h&&_0>M)break;X.push({value:_0})}if(h&&_&&i!==M)if(X.length&&U$(X[X.length-1].value,M,qT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||i===M)X.push({value:i});return X}function qT(Q,J,{horizontal:X,minRotation:q}){let N=C2(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class CQ extends h9{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(Z1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(M)=>q=J?q:M,H=(M)=>N=X?N:M;if(Q){let M=N4(q),F=N4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=IS(q,N);if(Q.bounds==="ticks")wU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return k3(Q,this.chart.options.locale,this.options.ticks.format)}}class FK extends CQ{static id="linear";static defaults={ticks:{callback:KQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=g1(Q)?Q:0,this.max=g1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=C2(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var IQ=(Q)=>Math.floor(P2(Q)),g9=(Q,J)=>Math.pow(10,IQ(Q)+J);function YT(Q){return Q/Math.pow(10,IQ(Q))===1}function NT(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function OS(Q,J){let X=J-Q,q=IQ(X);while(NT(Q,J,q)>10)q++;while(NT(Q,J,q)<10)q--;return Math.min(q,IQ(Q))}function VS(Q,{min:J,max:X}){J=Z6(Q.min,J);let q=[],N=IQ(J),K=OS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((J-F)*H)/H,z=Math.floor((J-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),_=Z6(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(_<X){if(q.push({value:_,major:YT(_),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;_=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=Z6(Q.max,_);return q.push({value:I,major:YT(I),significand:T}),q}class AS extends h9{static id="logarithmic";static defaults={ticks:{callback:KQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=CQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return g1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=g1(Q)?Math.max(0,Q):null,this.max=g1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!g1(this._userMin))this.min=Q===g9(this.min,0)?g9(this.min,-1):g9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(g9(X,-1)),K(g9(q,1));if(X<=0)N(g9(q,-1));if(q<=0)K(g9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=VS(J,this);if(Q.bounds==="ticks")wU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":k3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=P2(Q),this._valueRange=P2(this.max)-P2(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(P2(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function QK(Q){let J=Q.ticks;if(J.display&&Q.display){let X=_5(J.backdropPadding);return r0(J.font&&J.font.size,h1.font.size)+X.height}return 0}function ES(Q,J,X){return X=V1(X)?X:[X],{w:Gz(Q,J.string,X),h:X.length*J.lineHeight}}function UT(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function SS(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?l1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=$5(w.font),_=ES(Q.ctx,T,Q._pointLabels[F]);q[F]=_;let I=i5(Q.getIndexAngle(F)+M),E=Math.round(D3(I)),V=UT(E,z.x,_.w,0,180),O=UT(E,z.y,_.h,90,270);jS(X,J,I,V,O)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=bS(Q,q,N)}function jS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<J.l)M=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(q.end>J.r)M=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(N.start<J.t)F=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(N.end>J.b)F=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function DS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(J,q+N+H,K),w=Math.round(D3(i5(F.angle+t5))),z=yS(F.y,M.h,w),T=kS(w),_=fS(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:_,top:z,right:_+M.w,bottom:z+M.h}}function vS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(m4({x:X,y:q},J)||m4({x:X,y:K},J)||m4({x:N,y:q},J)||m4({x:N,y:K},J))}function bS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:QK(K)/2,additionalAngle:H?l1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=J[z];let T=DS(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=vS(T,w),T.visible)w=T}}return q}function kS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function fS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function yS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function gS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!Z1(M)){let F=b8(J.borderRadius),w=_5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,_=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((E)=>E!==0))Q.beginPath(),B$(Q,{x:z,y:T,w:_,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,_,I)}}function hS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));gS(X,H,K);let M=$5(H.font),{x:F,y:w,textAlign:z}=K;v8(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function dT(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,e5);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function uS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),dT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function xS(Q,J,X){return O2(Q,{label:X,index:J,type:"pointLabel"})}class mS extends CQ{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:KQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=_5(QK(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=g1(Q)&&!isNaN(Q)?Q:0,this.max=g1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/QK(this.options))}generateTickLabels(Q){CQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=_1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)SS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=e5/(this._pointLabels.length||1),X=this.options.startAngle||0;return i5(Q*J+C2(X))}getDistanceFromCenterForValue(Q){if(Z1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(Z1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return xS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-t5+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),dT(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,M,F;if(J.pointLabels.display)hS(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),_=q.setContext(T),I=N.setContext(T);uS(this,_,M,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=X.setContext(this.getContext(M)),w=$5(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=_5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}v8(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var i3={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}},J6=Object.keys(i3);function KT(Q,J){return Q-J}function BT(Q,J){if(Z1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!g1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(K$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function HT(Q,J,X,q){let N=J6.length;for(let K=J6.indexOf(Q);K<N-1;++K){let H=i3[J6[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(M*H.size))<=q)return J6[K]}return J6[N-1]}function dS(Q,J,X,q,N){for(let K=J6.length-1;K>=J6.indexOf(X);K--){let H=J6[K];if(i3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return J6[X?J6.indexOf(X):0]}function pS(Q){for(let J=J6.indexOf(Q)+1,X=J6.length;J<X;++J)if(i3[J6[J]].common)return J6[J]}function MT(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=v3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function cS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)J[F].major=!0;return J}function FT(Q,J,X){let q=[],N={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:cS(Q,q,N,X)}class JK extends h9{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(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new OA._date(Q.adapters.date);q.init(J),Y$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return BT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=g1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=g1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=oR(q,N,K);if(this._unit=J.unit||(X.autoSkip?HT(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):dS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:pS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return FT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=$6(J,0,K),X=$6(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||HT(N.minUnit,J,X,this._getLabelCapacity(J)),H=r0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=K$(M)||M===!0,w={},z=J,T,_;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(T=z,_=0;T<X;T=+Q.add(T,H,K),_++)MT(w,T,I);if(T===X||q.bounds==="ticks"||_===1)MT(w,T,I);return Object.keys(w).sort(KT).map((E)=>+E)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return _1(K,[Q,J,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[J],_=F&&z&&T&&T.major;return this._adapter.format(Q,q||(_?z:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=C2(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,FT(this,[Q],this._majorUnit),q),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 Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(BT(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return LU(Q.sort(KT))}}function l3(Q,J,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=E8(Q,"pos",J));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=E8(Q,"time",J));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(J-K)/w:M}class lS extends JK{static id="timeseries";static defaults=JK.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=l3(J,this.min),this._tableRange=l3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=X)q.push(F);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(l3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return l3(this._table,X*this._tableRange+this._minPos,!0)}}u9.register(MK,FK,KK,H$,UK,uT,mT,hT,yT);var o_=o(oT(),1);var b2=o(P1(),1);var ZX=o(P1(),1);var e3=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var aT=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var iT=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var RK=(Q)=>{let J=iT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var VQ=o(P1(),1);var $X={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 tT=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var F$=o(P1(),1),tS=F$.createContext({});var eT=()=>F$.useContext(tS);var $L=VQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...M},F)=>{let{size:w=24,strokeWidth:z=2,absoluteStrokeWidth:T=!1,color:_="currentColor",className:I=""}=eT()??{},E=q??T?Number(X??z)*24/Number(J??w):X??z;return VQ.createElement("svg",{ref:F,...$X,width:J??w??$X.width,height:J??w??$X.height,stroke:Q??_,strokeWidth:E,className:e3("lucide",I,N),...!K&&!tT(M)&&{"aria-hidden":"true"},...M},[...H.map(([V,O])=>VQ.createElement(V,O)),...Array.isArray(K)?K:[K]])});var V0=(Q,J)=>{let X=ZX.forwardRef(({className:q,...N},K)=>ZX.createElement($L,{ref:K,iconNode:J,className:e3(`lucide-${aT(RK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=RK(Q),X};var eS=[["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"}]],y8=V0("circle-alert",eS);var $j=[["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"}]],AQ=V0("activity",$j);var Zj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],EQ=V0("check",Zj);var Qj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],SQ=V0("chevron-down",Qj);var Jj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jQ=V0("chevron-up",Jj);var Gj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],DQ=V0("clock",Gj);var Xj=[["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"}]],m9=V0("coins",Xj);var qj=[["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"}]],vQ=V0("copy",qj);var Yj=[["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"}]],bQ=V0("cpu",Yj);var Nj=[["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"}]],kQ=V0("folder",Nj);var Uj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],fQ=V0("gauge",Uj);var Kj=[["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"}]],yQ=V0("hash",Kj);var Bj=[["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"}]],gQ=V0("inbox",Bj);var Hj=[["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"}]],hQ=V0("layout-dashboard",Hj);var Mj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],uQ=V0("menu",Mj);var Fj=[["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"}]],xQ=V0("monitor",Fj);var Wj=[["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"}]],mQ=V0("moon",Wj);var wj=[["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"}]],dQ=V0("refresh-cw",wj);var Rj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],pQ=V0("smile",Rj);var zj=[["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"}]],cQ=V0("star",zj);var Tj=[["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"}]],lQ=V0("sun",Tj);var Lj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],rQ=V0("trending-up",Lj);var _j=[["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"}]],sQ=V0("wrench",_j);var Pj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],d9=V0("x",Pj);var Cj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],nQ=V0("zap",Cj);var PL=o(P1(),1);var oQ=[{id:"overview",label:"Overview",icon:hQ},{id:"requests",label:"Requests",icon:AQ},{id:"errors",label:"Errors",icon:y8},{id:"models",label:"Models",icon:bQ},{id:"tools",label:"Tools",icon:sQ},{id:"costs",label:"Costs",icon:m9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:pQ},{id:"projects",label:"Projects",icon:kQ},{id:"gain",label:"Gain",icon:rQ}];var c6=o(B0(),1);function zK({activeSection:Q,onSectionChange:J,className:X=""}){return c6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[c6.jsxDEV("div",{className:"stats-nav-rail-header",children:c6.jsxDEV("div",{className:"stats-logo-container",children:[c6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),c6.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),c6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:oQ.map((q)=>{let N=q.id===Q,K=q.icon;return c6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[c6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),c6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),c6.jsxDEV("div",{className:"stats-nav-rail-footer",children:c6.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 TK=o(B0(),1),Oj=[{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 ZL({value:Q,onChange:J,className:X=""}){return TK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:Oj.map((q)=>{let N=q.value===Q;return TK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var LK=o(P1(),1);class QL extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function U4(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new QL(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function JL(Q="24h",J){return U4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function GL(Q="24h",J){return U4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function XL(Q="24h",J){return U4(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function QX(Q=50,J){return U4(`/api/stats/recent?limit=${Q}`,{signal:J})}async function qL(Q=50,J){return U4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function YL(Q,J){return U4(`/api/request/${Q}`,{signal:J})}async function NL(Q){return U4("/api/sync",{signal:Q})}async function UL(Q="24h",J){return U4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function KL(Q="24h",J){return U4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function BL(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return U4(`/api/stats/gain?${q}`,{signal:X})}async function HL(Q="24h",J){return U4(`/api/stats/tools?range=${encodeURIComponent(Q)}`,{signal:J})}var aQ=o(B0(),1);function ML({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=LK.useState(!1),[K,H]=LK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await NL(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return aQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&aQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),aQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[aQ.jsxDEV(dQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var JX=o(P1(),1),FL="omp-stats-theme",WL="(prefers-color-scheme: dark)";function Vj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(FL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function wL(){if(typeof window>"u")return"dark";return window.matchMedia(WL).matches?"dark":"light"}var c9=Vj(),iQ=c9==="system"?wL():c9,_K=new Set;function RL(){for(let Q of _K)Q()}function PK(){if(iQ=c9==="system"?wL():c9,typeof document<"u")document.documentElement.dataset.theme=iQ,document.documentElement.style.colorScheme=iQ}if(typeof window<"u")PK(),window.matchMedia(WL).addEventListener("change",()=>{if(c9==="system")PK(),RL()});function Aj(Q){if(c9=Q,typeof localStorage<"u")localStorage.setItem(FL,Q);PK(),RL()}function CK(Q){return _K.add(Q),()=>_K.delete(Q)}function G6(){return JX.useSyncExternalStore(CK,()=>iQ,()=>"dark")}function zL(){let Q=JX.useSyncExternalStore(CK,()=>c9,()=>"system"),J=JX.useSyncExternalStore(CK,()=>iQ,()=>"dark");return{preference:Q,resolved:J,setPreference:Aj}}var IK=o(B0(),1),Ej={system:"light",light:"dark",dark:"system"},Sj={system:xQ,light:lQ,dark:mQ},TL={system:"System theme",light:"Light theme",dark:"Dark theme"};function LL(){let{preference:Q,setPreference:J}=zL(),X=Sj[Q];return IK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(Ej[Q]),"aria-label":`${TL[Q]} (click to switch)`,title:`${TL[Q]} — click to switch`,children:IK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var l6=o(B0(),1);function _L({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=oQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return l6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[l6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&l6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:l6.jsxDEV(uQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l6.jsxDEV("div",{className:"stats-top-bar-right",children:[l6.jsxDEV("div",{className:"stats-top-bar-meta",children:l6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV(ZL,{value:J,onChange:X},void 0,!1,void 0,this),l6.jsxDEV(LL,{},void 0,!1,void 0,this),l6.jsxDEV(ML,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=o(B0(),1);function CL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=PL.useState(!1),z=(T)=>{J(T),w(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(zK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.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:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(d9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(zK,{activeSection:Q,onSectionChange:z,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(_L,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:M},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=o(P1(),1),jj=["overview","requests","errors","models","tools","costs","behavior","projects","gain"],IL=["1h","24h","7d","30d","90d","all"];function OK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=jj.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(IL.includes(M))K=M}return{section:N,range:K}}function OL(){let[Q,J]=S2.useState(()=>OK(window.location.hash));S2.useEffect(()=>{let K=()=>{J(OK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=S2.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=S2.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=S2.useCallback((K)=>{let H=IL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return S2.useEffect(()=>{let K=window.location.hash,H=OK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var Dj=Math.pow(10,8)*24*60*60*1000,Go1=-Dj,GX=604800000,VL=86400000;var tQ=43200,VK=1440;var AK=Symbol.for("constructDateFrom");function D5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&AK in Q)return Q[AK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function J1(Q,J){return D5(J||Q,Q)}var vj={};function l4(){return vj}function j2(Q,J){let X=l4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=J1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function l9(Q,J){return j2(Q,{...J,weekStartsOn:1})}function XX(Q,J){let X=J1(Q,J?.in),q=X.getFullYear(),N=D5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=l9(N),H=D5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=l9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function W$(Q){let J=J1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function g8(Q,...J){let X=D5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function EK(Q,J){let X=J1(Q,J?.in);return X.setHours(0,0,0,0),X}function AL(Q,J,X){let[q,N]=g8(X?.in,Q,J),K=EK(q),H=EK(N),M=+K-W$(K),F=+H-W$(H);return Math.round((M-F)/VL)}function EL(Q,J){let X=XX(Q,J),q=D5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),l9(q)}function w$(Q,J){let X=+J1(Q)-+J1(J);if(X<0)return-1;else if(X>0)return 1;return X}function SL(Q){return D5(Q,Date.now())}function jL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function DL(Q){return!(!jL(Q)&&typeof Q!=="number"||isNaN(+J1(Q)))}function vL(Q,J,X){let[q,N]=g8(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function bL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function kL(Q,J){return+J1(Q)-+J1(J)}function fL(Q,J){let X=J1(Q,J?.in);return X.setHours(23,59,59,999),X}function yL(Q,J){let X=J1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function gL(Q,J){let X=J1(Q,J?.in);return+fL(X,J)===+yL(X,J)}function hL(Q,J,X){let[q,N,K]=g8(X?.in,Q,Q,J),H=w$(N,K),M=Math.abs(vL(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=w$(N,K)===-H;if(gL(q)&&M===1&&w$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function uL(Q,J,X){let q=kL(Q,J)/1000;return bL(X?.roundingMethod)(q)}function xL(Q,J){let X=J1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var bj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mL=(Q,J,X)=>{let q,N=bj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function qX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var kj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dL={date:qX({formats:kj,defaultWidth:"full"}),time:qX({formats:fj,defaultWidth:"full"}),dateTime:qX({formats:yj,defaultWidth:"full"})};var gj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pL=(Q,J,X,q)=>gj[Q];function R$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var hj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cj=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},cL={ordinalNumber:cj,era:R$({values:hj,defaultWidth:"wide"}),quarter:R$({values:uj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:R$({values:xj,defaultWidth:"wide"}),day:R$({values:mj,defaultWidth:"wide"}),dayPeriod:R$({values:dj,defaultWidth:"wide",formattingValues:pj,defaultFormattingWidth:"wide"})};function z$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?rj(M,(T)=>T.test(H)):lj(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=J.slice(H.length);return{value:w,rest:z}}}function lj(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function rj(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function lL(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let M=J.slice(N.length);return{value:H,rest:M}}}var sj=/^(\d+)(th|st|nd|rd)?/i,nj=/\d+/i,oj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},aj={any:[/^b/i,/^(a|c)/i]},ij={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tj={any:[/1/i,/2/i,/3/i,/4/i]},ej={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},$D={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},QD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rL={ordinalNumber:lL({matchPattern:sj,parsePattern:nj,valueCallback:(Q)=>parseInt(Q,10)}),era:z$({matchPatterns:oj,defaultMatchWidth:"wide",parsePatterns:aj,defaultParseWidth:"any"}),quarter:z$({matchPatterns:ij,defaultMatchWidth:"wide",parsePatterns:tj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:z$({matchPatterns:ej,defaultMatchWidth:"wide",parsePatterns:$D,defaultParseWidth:"any"}),day:z$({matchPatterns:ZD,defaultMatchWidth:"wide",parsePatterns:QD,defaultParseWidth:"any"}),dayPeriod:z$({matchPatterns:JD,defaultMatchWidth:"any",parsePatterns:GD,defaultParseWidth:"any"})};var eQ={code:"en-US",formatDistance:mL,formatLong:dL,formatRelative:pL,localize:cL,match:rL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sL(Q,J){let X=J1(Q,J?.in);return AL(X,xL(X))+1}function nL(Q,J){let X=J1(Q,J?.in),q=+l9(X)-+EL(X);return Math.round(q/GX)+1}function YX(Q,J){let X=J1(Q,J?.in),q=X.getFullYear(),N=l4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=D5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=j2(H,J),F=D5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=j2(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function oL(Q,J){let X=l4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=YX(Q,J),K=D5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),j2(K,J)}function aL(Q,J){let X=J1(Q,J?.in),q=+j2(X,J)-+oL(X,J);return Math.round(q/GX)+1}function N1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var D2={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return N1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):N1(X+1,2)},d(Q,J){return N1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return N1(Q.getHours()%12||12,J.length)},H(Q,J){return N1(Q.getHours(),J.length)},m(Q,J){return N1(Q.getMinutes(),J.length)},s(Q,J){return N1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return N1(N,J.length)}};var T$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return D2.y(Q,J)},Y:function(Q,J,X,q){let N=YX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return N1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return N1(K,J.length)},R:function(Q,J){let X=XX(Q);return N1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return N1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return N1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return N1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return D2.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return N1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=aL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return N1(N,J.length)},I:function(Q,J,X){let q=nL(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return N1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return D2.d(Q,J)},D:function(Q,J,X){let q=sL(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return N1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return N1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return N1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return N1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=T$.noon;else if(q===0)N=T$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=T$.evening;else if(q>=12)N=T$.afternoon;else if(q>=4)N=T$.morning;else N=T$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return D2.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return D2.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return N1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return N1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return D2.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return D2.s(Q,J)},S:function(Q,J){return D2.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return tL(q);case"XXXX":case"XX":return r9(q);case"XXXXX":case"XXX":default:return r9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return tL(q);case"xxxx":case"xx":return r9(q);case"xxxxx":case"xxx":default:return r9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+iL(q,":");case"OOOO":default:return"GMT"+r9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+iL(q,":");case"zzzz":default:return"GMT"+r9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return N1(q,J.length)},T:function(Q,J,X){return N1(+Q,J.length)}};function iL(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+N1(K,2)}function tL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+N1(Math.abs(Q)/60,2);return r9(Q,J)}function r9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=N1(Math.trunc(q/60),2),K=N1(q%60,2);return X+N+J+K}var eL=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},$_=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},XD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return eL(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",eL(q,J)).replace("{{time}}",$_(N,J))},Z_={p:$_,P:XD};var qD=/^D+$/,YD=/^Y+$/,ND=["D","DD","YY","YYYY"];function Q_(Q){return qD.test(Q)}function J_(Q){return YD.test(Q)}function G_(Q,J,X){let q=UD(Q,J,X);if(console.warn(q),ND.includes(Q))throw RangeError(q)}function UD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var KD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HD=/^'([^]*?)'?$/,MD=/''/g,FD=/[a-zA-Z]/;function K4(Q,J,X){let q=l4(),N=X?.locale??q.locale??eQ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,M=J1(Q,X?.in);if(!DL(M))throw RangeError("Invalid time value");let F=J.match(BD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let _=Z_[T];return _(z,N.formatLong)}return z}).join("").match(KD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:WD(z)};if(SK[T])return{isToken:!0,value:z};if(T.match(FD))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&J_(T)||!X?.useAdditionalDayOfYearTokens&&Q_(T))G_(T,J,String(Q));let _=SK[T[0]];return _(M,T,N.localize,w)}).join("")}function WD(Q){let J=Q.match(HD);if(!J)return Q;return J[1].replace(MD,"'")}function X_(Q,J,X){let q=l4(),N=X?.locale??q.locale??eQ,K=2520,H=w$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=g8(X?.in,...H>0?[J,Q]:[Q,J]),z=uL(w,F),T=(W$(w)-W$(F))/1000,_=Math.round((z-T)/60),I;if(_<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(_===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",_,M);else if(_<45)return N.formatDistance("xMinutes",_,M);else if(_<90)return N.formatDistance("aboutXHours",1,M);else if(_<VK){let E=Math.round(_/60);return N.formatDistance("aboutXHours",E,M)}else if(_<2520)return N.formatDistance("xDays",1,M);else if(_<tQ){let E=Math.round(_/VK);return N.formatDistance("xDays",E,M)}else if(_<tQ*2)return I=Math.round(_/tQ),N.formatDistance("aboutXMonths",I,M);if(I=hL(w,F),I<12){let E=Math.round(_/tQ);return N.formatDistance("xMonths",E,M)}else{let E=I%12,V=Math.trunc(I/12);if(E<3)return N.formatDistance("aboutXYears",V,M);else if(E<9)return N.formatDistance("overXYears",V,M);else return N.formatDistance("almostXYears",V+1,M)}}function q_(Q,J){return X_(Q,SL(Q),J)}var Y5=o(P1(),1);var jK=o(Y_(),1),O6=o(P1(),1);var U_="label";function N_(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function RD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function K_(Q,J){Q.labels=J}function B_(Q,J,X=U_){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function zD(Q,J=U_){let X={labels:[],datasets:[]};return K_(X,Q.labels),B_(X,Q.datasets,J),X}function TD(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,..._}=Q,I=O6.useRef(null),E=O6.useRef(null),V=()=>{if(!I.current)return;E.current=new u9(I.current,{type:H,data:zD(M,K),options:F&&{...F},plugins:w}),N_(J,E.current)},O=()=>{if(N_(J,null),E.current)E.current.destroy(),E.current=null};return O6.useEffect(()=>{if(!N&&E.current&&F)RD(E.current,F)},[N,F]),O6.useEffect(()=>{if(!N&&E.current)K_(E.current.config.data,M.labels)},[N,M.labels]),O6.useEffect(()=>{if(!N&&E.current&&M.datasets)B_(E.current.config.data,M.datasets,K)},[N,M.datasets]),O6.useEffect(()=>{if(!E.current)return;if(N)O(),setTimeout(V);else E.current.update(T)},[N,F,M.labels,M.datasets,T]),O6.useEffect(()=>{if(!E.current)return;O(),setTimeout(V)},[H]),O6.useEffect(()=>{return V(),()=>O()},[]),jK.jsx("canvas",{ref:I,role:"img",height:X,width:q,..._,children:z})}var LD=O6.forwardRef(TD);function H_(Q,J){return u9.register(J),O6.forwardRef((X,q)=>jK.jsx(LD,{...X,ref:q,type:Q}))}var v5=H_("line",qK),NX=H_("bar",XK);var D1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],P5={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 L$(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function _$(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function P$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function UX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function C$(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function KX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>K4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function BX(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let _=new Map;for(let[D,{model:h,provider:p}]of w)_.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),E=w.map(([D])=>_.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))E.push("Other");let O=new Map;for(let D of I)O.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?_.get(h)??D.model:"Other",s=O.get(D.timestamp);if(!s)continue;let a=s[p]??N();K(a,D),s[p]=a}return{labels:I.map((D)=>K4(new Date(D),"MMM d")),datasets:E.map((D)=>({label:D,data:I.map((h)=>{let p=O.get(h)?.[D];return p?H(p):0})}))}}var k1=o(B0(),1);function v2(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function HX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:J,...v2(X)}]};return k1.jsxDEV(v5,{data:q,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 MX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function M_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function F_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function FX({title:Q,subtitle:J,children:X}){return k1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[k1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[k1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?k1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _D(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function WX({columns:Q,gridTemplate:J}){return k1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>k1.jsxDEV("div",{className:_D(X.align),children:X.label},X.label,!1,void 0,this)),k1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wX({children:Q}){return k1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function RX({model:Q,provider:J}){return k1.jsxDEV("div",{children:[k1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),k1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return k1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[k1.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:k1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,k1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),k1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?k1.jsxDEV(jQ,{size:16},void 0,!1,void 0,this):k1.jsxDEV(SQ,{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),q?k1.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 TX(){return k1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function LX({message:Q="No data available"}){return k1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function u0(Q){return Q.toLocaleString()}function Z5(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function A1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function X5(Q,J=1){return`${(Q*100).toFixed(J)}%`}function b5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function W_(Q){if(Q===null)return"-";return Q.toFixed(1)}function r6(Q){return q_(new Date(Q),{addSuffix:!0})}function DK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var C5=o(P1(),1),h8=new Map,PD=64;function q5(Q,J,X){let q=JSON.stringify(Q),[N,K]=C5.useState(()=>h8.get(q)?.data??null),[H,M]=C5.useState(null),[F,w]=C5.useState(()=>!h8.has(q)),[z,T]=C5.useState(!1),[_,I]=C5.useState(()=>h8.get(q)?.updatedAt??null),E=C5.useRef(J);E.current=J;let V=C5.useRef(q);V.current=q;let O=X?.enabled??!0,D=X?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let s=C5.useCallback(async(J0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,J0)T(!0);else w(!0),K(null);M(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(h8.set(V.current,{data:i,updatedAt:Date.now()}),h8.size>PD){let Y0=h8.keys().next().value;if(Y0!==void 0)h8.delete(Y0)}K(i),I(Date.now()),M(null)}catch(i){if(t.signal.aborted)return;M(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(w(!1),T(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!O){w(!1),T(!1);return}let J0=h8.get(q);if(J0)K(J0.data),I(J0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,O,s]),C5.useEffect(()=>{if(!O||!D)return;let J0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(J0)}},[O,D,s]);let a=C5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:a,updatedAt:_}}var w_=3600000,_X=24*w_,CD=300000,R_={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:CD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:w_,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:_X,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:_X,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:_X,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:_X,bucketCount:0,tickFormat:"MMM d"}};function n9(Q){return R_[Q]}function $J(Q,J){return K4(new Date(Q),R_[J].tickFormat)}var ID=["main","subagent","advisor"];function z_(Q){let J=new Map;for(let M of Q)J.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=ID.map((M)=>J.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function T_(Q){let J=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function L_(Q,J){if(Q.length===0)return new Map;let X=n9(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,_)=>Math.max(T,_.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,_)=>z+_*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((_)=>({timestamp:_,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function __(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function P_(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}function C_(Q){let J=Q.reduce((X,q)=>Math.max(X,q.calls),0);return Q.map((X)=>({...X,errorRate:X.calls>0?X.errors/X.calls:0,callsPercentage:J>0?X.calls/J*100:0}))}var PX=o(B0(),1);function I_({message:Q="No data available",icon:J=gQ,className:X=""}){return PX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[PX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),PX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I$=o(B0(),1);function O_({error:Q,onRetry:J,className:X=""}){return I$.jsxDEV("div",{className:`stats-error-state ${X}`,children:I$.jsxDEV("div",{className:"stats-error-state-content",children:[I$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&I$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&I$.jsxDEV("button",{type:"button",onClick:J,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 V_=o(B0(),1);function X6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return V_.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var V6=o(B0(),1);function d1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(J&&X===null)return V6.jsxDEV(O_,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return V6.jsxDEV(V6.Fragment,{children:K},void 0,!1,void 0,this);return V6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[V6.jsxDEV(X6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return V6.jsxDEV(I_,{message:N},void 0,!1,void 0,this);return V6.jsxDEV(V6.Fragment,{children:M},void 0,!1,void 0,this)}var q6=o(B0(),1);function B4({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(J.length===0)return q6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return q6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&q6.jsxDEV("div",{className:"stats-table-mobile-only",children:q6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((M)=>{let F=String(X(M));return q6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),q6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:q6.jsxDEV("table",{className:"stats-table",children:[q6.jsxDEV("thead",{children:q6.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return q6.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),q6.jsxDEV("tbody",{children:J.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return q6.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let _=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return q6.jsxDEV("td",{className:_,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!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 o9=o(P1(),1),s6=o(B0(),1);function vK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=o9.useState(X),[K,H]=o9.useState(!1),M=o9.useRef(0),F=JSON.stringify(Q,null,2);return o9.useEffect(()=>()=>window.clearTimeout(M.current),[]),s6.jsxDEV("div",{className:"stats-json-block",children:[s6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[s6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),s6.jsxDEV("div",{className:"stats-json-actions",children:[s6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?s6.jsxDEV(EQ,{size:13},void 0,!1,void 0,this):s6.jsxDEV(vQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),s6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&s6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:s6.jsxDEV("pre",{className:"stats-json-block-content",children:s6.jsxDEV("code",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var G1=o(B0(),1);function A_({stats:Q}){return G1.jsxDEV("div",{className:"stats-metric-cluster",children:[G1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:A1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:u0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:X5(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:X5(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:Z5(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:Z5(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:u0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:W_(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:b5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:b5(Q.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 u8=o(B0(),1);function R1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return u8.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&u8.jsxDEV("div",{className:"stats-panel-header",children:[u8.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&u8.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&u8.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&u8.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u8.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=o(P1(),1);var E_=o(B0(),1);function I5({variant:Q,children:J,className:X=""}){return E_.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var w0=o(B0(),1);function S_({id:Q,onClose:J}){let[X,q]=r4.useState(null),[N,K]=r4.useState(!1),[H,M]=r4.useState(null),F=r4.useRef(null),w=r4.useRef(null);if(r4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return YL(Q,T.signal).then((_)=>{if(T.signal.aborted)return;q(_),setTimeout(()=>w.current?.focus(),50)}).catch((_)=>{if(T.signal.aborted)return;M(_ instanceof Error?_:Error(String(_)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),r4.useEffect(()=>{if(Q===null)return;let T=(_)=>{if(_.key==="Escape")J()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,J]),Q===null)return null;return w0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.currentTarget)J()},role:"presentation",children:w0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[w0.jsxDEV("div",{className:"stats-drawer-header",children:[w0.jsxDEV("div",{className:"stats-drawer-header-left",children:[w0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&w0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:w0.jsxDEV(d9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&w0.jsxDEV("div",{className:"stats-drawer-loading",children:[w0.jsxDEV(X6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&w0.jsxDEV("div",{className:"stats-drawer-error",children:[w0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&w0.jsxDEV("div",{className:"stats-drawer-content",children:[w0.jsxDEV("div",{className:"stats-drawer-status-card",children:[w0.jsxDEV("div",{className:"stats-drawer-status-row",children:[w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV(I5,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&w0.jsxDEV("div",{className:"stats-drawer-error-block",children:[w0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(m9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:A1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(cQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:u0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(yQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:u0(X.usage.totalTokens)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[u0(X.usage.input)," in · ",u0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(DQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:b5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(nQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:b5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(fQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),w0.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),w0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[w0.jsxDEV(vK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),w0.jsxDEV(vK,{data:X,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 bK=o(B0(),1);function ZJ({options:Q,value:J,onChange:X,className:q=""}){return bK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return bK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var R0=o(B0(),1);function f_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["behavior",J,X],(H)=>UL(J,H),{pollMs:30000,enabled:Q});return R0.jsxDEV("div",{className:"stats-route-container space-y-6",children:R0.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&R0.jsxDEV(R0.Fragment,{children:[R0.jsxDEV(OD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(VD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(AD,{models:q.byModel,behaviorSeries:q.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 CX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function OD({overall:Q,behaviorSeries:J}){let X=Y5.useMemo(()=>__(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:u0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:u0(Q.totalYelling),sub:CX(Q.totalYelling,q)},{label:"Profanity Hits",value:u0(Q.totalProfanity),sub:CX(Q.totalProfanity,q)},{label:"Anguish Signals",value:u0(Q.totalAnguish),sub:CX(Q.totalAnguish,q)},{label:"Friction Signals",value:u0(X.totalFrustration),sub:CX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${u0(X.highestFrictionModel.score)} hits`:void 0}];return R0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>R0.jsxDEV(R1,{className:"stats-behavior-summary-card py-3 px-4",children:[R0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),R0.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&&R0.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 kK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function j_(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function D_(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function v_(Q,J){if(J<=0)return 0;return Q/J*100}function VD({behaviorSeries:Q}){let[J,X]=Y5.useState(!1),[q,N]=Y5.useState("total"),K=G6(),H=P5[K],M=Y5.useMemo(()=>{if(J)return BX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=D_(p,q),h.messages+=p.messages},bucketToValue:(h)=>v_(h.hits,h.messages)});let D=kK.find((h)=>h.value===q)?.title??"Hits";return KX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=D_(p,q),h.messages+=p.messages},bucketToValue:(h)=>v_(h.hits,h.messages)})},[Q,J,q]),F=Y5.useMemo(()=>{return L$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:j_})},[H,J]),{sharedScaleBase:w,yScale:z}=Y5.useMemo(()=>{return _$({chartTheme:H,formatY:j_})},[H]),T=Y5.useMemo(()=>{return kK.find((D)=>D.value===q)?.title??""},[q]),_=Y5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:C$(M,(D)=>P$(D1[D%D1.length]))}},[M,J]),I=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),E=Y5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:C$(M,(D)=>UX(D1[D%D1.length]))}},[M,J]),V=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),O=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return R0.jsxDEV(R1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:R0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[R0.jsxDEV(ZJ,{options:kK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),R0.jsxDEV(ZJ,{options:O,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:R0.jsxDEV("div",{className:"h-[300px]",children:M.labels.length===0?R0.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):J&&_?R0.jsxDEV(v5,{data:_,options:I},void 0,!1,void 0,this):E?R0.jsxDEV(NX,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b_="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function k_(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function O$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function AD({models:Q,behaviorSeries:J}){let[X,q]=Y5.useState(null),N=G6(),K=P5[N],H=Y5.useMemo(()=>SD(J),[J]),M=Y5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return k_(w)-k_(F)})},[Q]);return R0.jsxDEV(FX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[R0.jsxDEV(WX,{gridTemplate:b_,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),R0.jsxDEV(wX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],_=D1[w%D1.length],I=X===z,E=F.totalNegation+F.totalRepetition+F.totalBlame,V=F.totalYelling+F.totalProfanity+F.totalAnguish+E;return R0.jsxDEV(zX,{gridTemplate:b_,isExpanded:I,onToggle:()=>q(I?null:z),cells:[R0.jsxDEV(RX,{model:F.model,provider:F.provider},"name",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:u0(F.totalMessages)},"messages",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(E,F.totalMessages)},"frustration",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(V,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?R0.jsxDEV(TX,{},void 0,!1,void 0,this):R0.jsxDEV(HX,{timestamps:T.map((O)=>O.timestamp),values:T.map((O)=>O.total),color:_},void 0,!1,void 0,this),expandedContent:R0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[R0.jsxDEV("div",{className:"space-y-4 text-sm",children:[R0.jsxDEV(a9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"h-[200px]",children:T.length===0?R0.jsxDEV(LX,{},void 0,!1,void 0,this):R0.jsxDEV(ED,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.length===0?R0.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 a9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=Y5.useMemo(()=>{if(X===0)return"-";return N==="rate"?O$(J,X):(J/X).toFixed(0)},[J,X,N]);return R0.jsxDEV("div",{children:[R0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:u0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),R0.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 IX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function ED({data:Q,chartTheme:J}){let X=Y5.useMemo(()=>{return{labels:Q.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...v2(IX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...v2(IX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...v2(IX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...v2(IX.frustration)}]}},[Q]),q=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(J),scales:M_(J)}},[J]);return R0.jsxDEV(v5,{data:X,options:q},void 0,!1,void 0,this)}function SD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var n6=o(P1(),1);var N5=o(B0(),1);function y_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["costs",J,X],(H)=>XL(J,H),{pollMs:30000,enabled:Q});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(jD,{costSeries:q.costSeries},void 0,!1,void 0,this),N5.jsxDEV(bD,{costSeries:q.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 jD({costSeries:Q}){let J=n6.useMemo(()=>T_(Q),[Q]),X=[{label:"Total Cost",value:A1(J.totalCost)},{label:"Average / Day",value:A1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?A1(J.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>N5.jsxDEV(R1,{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:q.label},void 0,!1,void 0,this),N5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&N5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var DD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function vD(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function bD({costSeries:Q}){let[J,X]=n6.useState(!1),q=G6(),N=P5[q],K=n6.useMemo(()=>{if(J)return BX(Q,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total});return KX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total})},[Q,J]),H=n6.useMemo(()=>{return L$({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!J||V.length<2)return;return`Total: $${V.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:M,yScale:F}=n6.useMemo(()=>{return _$({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),w=n6.useMemo(()=>{return vD(DD[q])},[q]),z=n6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:C$(K,(V)=>P$(D1[V%D1.length]))}},[K,J]),T=n6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),_=n6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:C$(K,(V)=>UX(D1[V%D1.length]))}},[K,J]),I=n6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return N5.jsxDEV(R1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(ZJ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},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):J&&z?N5.jsxDEV(v5,{data:z,options:T},void 0,!1,void 0,this):_?N5.jsxDEV(NX,{data:_,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var g_=o(P1(),1);var E1=o(B0(),1);function h_({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=q5(["recent-errors-dense",J],(F)=>qL(50,F),{pollMs:30000,enabled:Q}),H=g_.useMemo(()=>[{key:"model",header:"Model",render:(F)=>E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>r6(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>E1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>u0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>A1(F.usage.cost.total,4)}],[]);return E1.jsxDEV("div",{className:"stats-route-container",children:E1.jsxDEV(R1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:E1.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:E1.jsxDEV(B4,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>E1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[E1.jsxDEV("div",{className:"stats-mobile-card-header",children:[E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV(I5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:r6(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:A1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:u0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&E1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.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 OX=o(P1(),1);var I0=o(B0(),1);function u_({active:Q,range:J,refreshTrigger:X}){let[q,N]=OX.useState(null),{data:K,error:H,loading:M}=q5(["gain",J,X,q],(F)=>BL(J,q,F),{pollMs:30000,enabled:Q});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(d1,{loading:M,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(kD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(fD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(gD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(uD,{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 kD({projects:Q,selected:J,onChange:X}){if(Q.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:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>I0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function fD({overall:Q}){return I0.jsxDEV(R1,{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:Z5(Q.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:DK(Q.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:Q.reductionPercent!==null?X5(Q.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:u0(Q.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 yD({title:Q,totals:J}){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:Q},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:Z5(J.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:DK(J.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:u0(J.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:J.reductionPercent!==null?X5(J.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 gD({bySource:Q}){return I0.jsxDEV(R1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(yD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hD={snapcompact:"rgb(34, 197, 94)"};function uD({timeSeries:Q}){let J=G6(),X=P5[J],{data:q,options:N}=OX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:Q.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((T)=>T.snapcompact),...P$(hD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=_$({chartTheme:X,formatY:(T)=>Z5(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:L$({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:Z5}),scales:{x:{...F,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[Q,X]);return I0.jsxDEV(R1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:Q.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:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=o(P1(),1);var S0=o(B0(),1);function m_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["models",J,X],(H)=>GL(J,H),{pollMs:30000,enabled:Q});return S0.jsxDEV("div",{className:"stats-route-container space-y-6",children:S0.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&S0.jsxDEV(S0.Fragment,{children:[S0.jsxDEV(xD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),S0.jsxDEV(dD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},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 xD({modelSeries:Q,timeRange:J}){let X=G6(),q=P5[X],N=n9(J),K=s4.useMemo(()=>mD(Q),[Q]),H=s4.useMemo(()=>{return{labels:K.data.map((F)=>$J(F.timestamp,J)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:D1[w%D1.length],backgroundColor:`${D1[w%D1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),M=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}}},[q]);return S0.jsxDEV(R1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:S0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?S0.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):S0.jsxDEV(v5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function mD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let _=`${T.model}::${T.provider}`,I=X.get(_);if(I)I.total+=T.requests;else X.set(_,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,_])=>({key:T,..._})).sort((T,_)=>_.total-T.total).slice(0,J),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let _=(H.get(T.model)??0)>1;M.set(T.key,_?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let _=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let E=K.has(_)?M.get(_)??T.model:"Other";I[E]=(I[E]??0)+T.requests,F.set(T.timestamp,I)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,_)=>(T.timestamp??0)-(_.timestamp??0)).map((T)=>{let _=T.total??0;for(let I of w)T[I]=_>0?(T[I]??0)/_*100:0;return T}),series:w}}var x_="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function dD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=s4.useState(null),K=n9(X),H=s4.useMemo(()=>L_(J,X),[J,X]),M=G6(),F=P5[M],w=s4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return S0.jsxDEV(FX,{title:"Model Statistics",children:[S0.jsxDEV(WX,{gridTemplate:x_,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),S0.jsxDEV(wX,{children:w.map((z,T)=>{let _=`${z.model}::${z.provider}`,E=H.get(_)?.data??[],V=D1[T%D1.length],O=q===_,D=z.errorRate*100;return S0.jsxDEV(zX,{gridTemplate:x_,isExpanded:O,onToggle:()=>N(O?null:_),cells:[S0.jsxDEV(RX,{model:z.model,provider:z.provider},"name",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?S0.jsxDEV(TX,{},void 0,!1,void 0,this):S0.jsxDEV(HX,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:S0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[S0.jsxDEV("div",{className:"space-y-4 text-sm",children:[S0.jsxDEV("div",{children:[S0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.cacheRate*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),S0.jsxDEV("div",{children:[S0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),S0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?S0.jsxDEV(LX,{},void 0,!1,void 0,this):S0.jsxDEV(pD,{data:E,color:V,chartTheme:F,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},_,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=s4.useMemo(()=>{return{labels:Q.map((H)=>$J(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...v2("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...v2(J),yAxisID:"y1"}]}},[Q,J,q]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(X),scales:F_(X)}},[X]);return S0.jsxDEV(v5,{data:N,options:K},void 0,!1,void 0,this)}var QJ=o(P1(),1);var d_=o(P1(),1);var Y6=o(B0(),1),VX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function p_({stats:Q}){let J=d_.useMemo(()=>z_(Q),[Q]);if(J.totalTokens===0)return Y6.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 Y6.jsxDEV("div",{className:"space-y-4",children:[Y6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&Y6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:VX[X.agentType].color},title:`${VX[X.agentType].label}: ${X5(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>Y6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[Y6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[Y6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:VX[X.agentType].color}},void 0,!1,void 0,this),Y6.jsxDEV("span",{className:"stats-text-primary truncate",children:VX[X.agentType].label},void 0,!1,void 0,this),Y6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[u0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[Y6.jsxDEV("span",{className:"stats-text-secondary",children:[Z5(X.tokens)," tok"]},void 0,!0,void 0,this),Y6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:X5(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var U0=o(B0(),1);function c_({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=q5(["overview",J,X],(D)=>JL(J,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=q5(["recent-requests",X],(D)=>QX(50,D),{pollMs:30000,enabled:Q}),z=G6(),T=P5[z],_=QJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>K4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,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,J]),I=QJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),E=QJ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>r6(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>u0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>A1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>b5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>U0.jsxDEV(I5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(D,h)=>U0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[U0.jsxDEV("div",{className:"stats-mobile-card-header",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV(I5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:r6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:A1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:u0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:b5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&U0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O=QJ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return U0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[U0.jsxDEV(d1,{loading:H,error:K,data:N,children:N&&U0.jsxDEV(A_,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV(R1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:U0.jsxDEV(d1,{loading:H,error:K,data:N,children:N&&U0.jsxDEV(p_,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[U0.jsxDEV("div",{className:"lg:col-span-2",children:U0.jsxDEV(R1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:U0.jsxDEV(d1,{loading:H,error:K,data:N,children:U0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?U0.jsxDEV(v5,{data:_,options:I},void 0,!1,void 0,this):U0.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),U0.jsxDEV("div",{children:U0.jsxDEV(R1,{title:"Operational Feed",subtitle:"Real-time request log",children:U0.jsxDEV(d1,{loading:w,error:F,data:M,fallback:U0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>U0.jsxDEV("div",{className:"flex items-center gap-3",children:[U0.jsxDEV(X6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"flex-1",children:[U0.jsxDEV(X6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),U0.jsxDEV(X6,{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:U0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[O.map((D)=>{let h=!!D.errorMessage;return U0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[U0.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),U0.jsxDEV("div",{className:"flex-1 min-w-0",children:[U0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:r6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[U0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),U0.jsxDEV("div",{children:[D.duration?b5(D.duration):""," ",D.usage?.cost?.total?`· ${A1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&U0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),O.length===0&&U0.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),U0.jsxDEV(R1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:U0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:U0.jsxDEV(d1,{loading:w,error:F,data:M,children:U0.jsxDEV(B4,{columns:E,data:O,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.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 fK=o(P1(),1);var X1=o(B0(),1);function l_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["projects",J,X],(w)=>KL(J,w),{pollMs:30000,enabled:Q}),H=fK.useMemo(()=>{if(!q)return[];return P_(q)},[q]),M=fK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>X1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>X1.jsxDEV("div",{className:"stats-text-right",children:[X1.jsxDEV("div",{className:"font-mono",children:u0(w.totalRequests)},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:X1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.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:(w)=>X1.jsxDEV("div",{className:"stats-text-right",children:[X1.jsxDEV("div",{className:"font-mono",children:A1(w.totalCost)},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:X1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.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:(w)=>X1.jsxDEV("div",{className:"font-mono",children:u0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>X1.jsxDEV("span",{className:"stats-text-success font-medium",children:X5(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>X1.jsxDEV(I5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:X5(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>b5(w.avgDuration)}],[]);return X1.jsxDEV("div",{className:"stats-route-container",children:X1.jsxDEV(R1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:X1.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:X1.jsxDEV(B4,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>X1.jsxDEV("div",{className:"stats-mobile-card",children:[X1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[X1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),X1.jsxDEV(I5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[X5(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:u0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:A1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value",children:X5(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value",children:b5(w.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 r_=o(P1(),1);var M1=o(B0(),1);function s_({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=q5(["recent-requests-dense",J],(F)=>QX(50,F),{pollMs:30000,enabled:Q}),H=r_.useMemo(()=>[{key:"model",header:"Model",render:(F)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>r6(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>u0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>A1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>b5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>M1.jsxDEV(I5,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(R1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(d1,{loading:K,error:N,data:q,children:M1.jsxDEV(B4,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,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:F.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(I5,{variant:F.errorMessage?"danger":"success",children:F.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:r6(F.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:A1(F.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:u0(F.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:b5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&M1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.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 o6=o(P1(),1);var e=o(B0(),1);function n_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["tools",J,X],(H)=>HL(J,H),{pollMs:30000,enabled:Q});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No tool calls recorded for this range.",children:q&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(cD,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(sD,{series:q.series,timeRange:J},void 0,!1,void 0,this),e.jsxDEV(nD,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(oD,{byToolModel:q.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 cD({byTool:Q}){let J=o6.useMemo(()=>{let X=0,q=0,N=0,K=0,H=0,M=0,F=0;for(let w of Q)X+=w.calls,q+=w.errors,N+=w.totalTokensShare,K+=w.outputTokensShare,H+=w.costShare,M+=w.resultChars,F+=w.argsChars;return{calls:X,errors:q,tokens:N,output:K,cost:H,resultChars:M,argsChars:F,tools:Q.length}},[Q]);return e.jsxDEV(R1,{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:u0(J.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:u0(J.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:X5(J.calls>0?J.errors/J.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:A1(J.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:Z5(Math.round(J.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:Z5(Math.round(J.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:[Z5(J.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:[Z5(J.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 lD=6;function rD(Q){let J=new Map;for(let w of Q)J.set(w.tool,(J.get(w.tool)??0)+w.calls);let X=[...J.entries()].sort((w,z)=>z[1]-w[1]),q=X.slice(0,lD).map(([w])=>w),N=new Set(q),H=X.length>q.length?[...q,"Other"]:q,M=[...new Set(Q.map((w)=>w.timestamp))].sort((w,z)=>w-z),F=new Map;for(let w of M)F.set(w,{});for(let w of Q){let z=N.has(w.tool)?w.tool:"Other",T=F.get(w.timestamp);if(T)T[z]=(T[z]??0)+w.calls}return{buckets:M,tools:H,data:F}}function sD({series:Q,timeRange:J}){let X=G6(),q=P5[X],N=n9(J),K=o6.useMemo(()=>rD(Q),[Q]),H=o6.useMemo(()=>({labels:K.buckets.map((F)=>$J(F,J)),datasets:K.tools.map((F,w)=>({label:F,data:K.buckets.map((z)=>K.data.get(z)?.[F]??0),borderColor:D1[w%D1.length],backgroundColor:`${D1[w%D1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,J]),M=o6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>`${F.dataset.label??""}: ${u0(F.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},precision:0},min:0}}}),[q]);return e.jsxDEV(R1,{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:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yK(Q){return Q>0.1?"danger":Q>0?"warning":"success"}function nD({byTool:Q}){let J=o6.useMemo(()=>C_(Q),[Q]),X=o6.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:u0(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(I5,{variant:yK(N.errorRate),children:X5(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:Z5(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:A1(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:Z5(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:r6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(R1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(B4,{columns:X,data:J,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(I5,{variant:yK(N.errorRate),children:[X5(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:u0(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:Z5(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:A1(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:Z5(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 oD({byToolModel:Q}){let[J,X]=o6.useState(null),q=o6.useMemo(()=>[...new Set(Q.map((H)=>H.tool))].sort(),[Q]),N=o6.useMemo(()=>{return(J?Q.filter((M)=>M.tool===J):Q).map((M)=>({...M,errorRate:M.calls>0?M.errors/M.calls:0}))},[Q,J]),K=o6.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:u0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(I5,{variant:yK(H.errorRate),children:X5(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:Z5(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:A1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(R1,{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:J??"",onChange:(H)=>X(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),q.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(B4,{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 k5=o(B0(),1);function gK(){let{section:Q,setSection:J,range:X,setRange:q}=OL(),[N,K]=b2.useState(0),[H,M]=b2.useState(null),[F,w]=b2.useState(()=>Date.now()),z=b2.useCallback((V)=>{if(V.success)K((O)=>O+1),w(Date.now())},[]),T=b2.useCallback(()=>M(null),[]),_=Q,I=b2.useRef(new Set);I.current.add(_);let E=(V)=>{let O=V===_;switch(V){case"overview":return k5.jsxDEV(c_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return k5.jsxDEV(s_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return k5.jsxDEV(h_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return k5.jsxDEV(m_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return k5.jsxDEV(n_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return k5.jsxDEV(y_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return k5.jsxDEV(f_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return k5.jsxDEV(l_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return k5.jsxDEV(u_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return k5.jsxDEV(k5.Fragment,{children:[k5.jsxDEV(CL,{activeSection:_,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((V)=>k5.jsxDEV("div",{hidden:V!==_,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),k5.jsxDEV(S_,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a_=o(B0(),1),aD=o_.createRoot(document.getElementById("root"));aD.render(a_.jsxDEV(gK,{},void 0,!1,void 0,this));