jeopi-stats 16.4.5 → 16.5.1

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 tV=Object.create;var{getPrototypeOf:eV,defineProperty:zR,getOwnPropertyNames:$O}=Object;var ZO=Object.prototype.hasOwnProperty;function QO(Q){return this[Q]}var JO,GO,t=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?JO??=new WeakMap:GO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?tV(eV(Q)):{};let H=J||!Q||!Q.__esModule?zR(X,"default",{value:Q,enumerable:!0}):X;for(let M of $O(Q))if(!ZO.call(H,M))zR(H,M,{get:QO.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var L8=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var uT=L8((Mj)=>{(function(){function Q(){if(s=!1,o){var l=Mj.unstable_now();K0=l;var X0=!0;try{$:{h=!1,p&&(p=!1,$0(q0),q0=-1),D=!0;var B0=V;try{Z:{K(l);for(O=X(L);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=Mj.unstable_now(),typeof u0==="function"){O.callback=u0,K(l),X0=!0;break Z}O===X(L)&&q(L),K(l)}else q(L);O=X(L)}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?P0():o=!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 i=2*(r0+1)-1,H0=l[i],F0=i+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[i]=B0,r0=i);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(L,X0);else break;X0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(L)!==null)h=!0,o||(o=!0,P0());else{var X0=X(I);X0!==null&&F(H,X0.startTime-l)}}function M(){return s?!0:Mj.unstable_now()-K0<d?!1:!0}function F(l,X0){q0=n(function(){l(Mj.unstable_now())},X0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Mj.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;Mj.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();Mj.unstable_now=function(){return z.now()-T}}var L=[],I=[],E=1,O=null,V=3,D=!1,h=!1,p=!1,s=!1,n=typeof setTimeout==="function"?setTimeout:null,$0=typeof clearTimeout==="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null,o=!1,q0=-1,d=5,K0=-1;if(typeof a==="function")var P0=function(){a(Q)};else if(typeof MessageChannel<"u"){var C0=new MessageChannel,D0=C0.port2;C0.port1.onmessage=Q,P0=function(){D0.postMessage(null)}}else P0=function(){n(Q,0)};Mj.unstable_IdlePriority=5,Mj.unstable_ImmediatePriority=1,Mj.unstable_LowPriority=4,Mj.unstable_NormalPriority=3,Mj.unstable_Profiling=null,Mj.unstable_UserBlockingPriority=2,Mj.unstable_cancelCallback=function(l){l.callback=null},Mj.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},Mj.unstable_getCurrentPriorityLevel=function(){return V},Mj.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}},Mj.unstable_requestPaint=function(){s=!0},Mj.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}},Mj.unstable_scheduleCallback=function(l,X0,B0){var r0=Mj.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:E++,callback:X0,priorityLevel:l,startTime:B0,expirationTime:u0,sortIndex:-1},B0>r0?(l.sortIndex=B0,J(I,l),X(L)===null&&l===X(I)&&(p?($0(q0),q0=-1):p=!0,F(H,B0-r0))):(l.sortIndex=u0,J(L,l),h||D||(h=!0,o||(o=!0,P0()))),l},Mj.unstable_shouldYield=M,Mj.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=L8((Fj,i3)=>{(function(){function Q(_,y){Object.defineProperty(q.prototype,_,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(_){if(_===null||typeof _!=="object")return null;return _=ZJ&&_[ZJ]||_["@@iterator"],typeof _==="function"?_:null}function X(_,y){_=(_=_.constructor)&&(_.displayName||_.name)||"ReactClass";var r=_+"."+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,_),G0[r]=!0)}function q(_,y,r){this.props=_,this.context=y,this.refs=D2,this.updater=r||i9}function N(){}function K(_,y,r){this.props=_,this.context=y,this.refs=D2,this.updater=r||i9}function H(){}function M(_){return""+_}function F(_){try{M(_);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.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(_)}}function w(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===V$?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case u0:return"Fragment";case i:return"Profiler";case v:return"StrictMode";case y1:return"Suspense";case v0:return"SuspenseList";case r6: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 r0:return"Portal";case F0:return _.displayName||"Context";case H0:return(_._context.displayName||"Context")+".Consumer";case x0:var y=_.render;return _=_.displayName,_||(_=y.displayName||y.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case p1:return y=_.displayName||null,y!==null?y:w(_.type)||"Memo";case P5:y=_._payload,_=_._init;try{return w(_(y))}catch(r){}}return null}function z(_){if(_===u0)return"<>";if(typeof _==="object"&&_!==null&&_.$$typeof===P5)return"<...>";try{var y=w(_);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var _=k0.A;return _===null?null:_.getOwner()}function L(){return Error("react-stack-top-frame")}function I(_){if(a9.call(_,"key")){var y=Object.getOwnPropertyDescriptor(_,"key").get;if(y&&y.isReactWarning)return!1}return _.key!==void 0}function E(_,y){function r(){QJ||(QJ=!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(_,"key",{get:r,configurable:!0})}function O(){var _=w(this.type);return m8[_]||(m8[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function V(_,y,r,Z0,Y0,S0){var j0=r.ref;return _={$$typeof:B0,type:_,key:y,props:r,_owner:Z0},(j0!==void 0?j0:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:O}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y0}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function D(_,y){return y=V(_.type,y,_.props,_._owner,_._debugStack,_._debugTask),_._store&&(y._store.validated=_._store.validated),y}function h(_){p(_)?_._store&&(_._store.validated=1):typeof _==="object"&&_!==null&&_.$$typeof===P5&&(_._payload.status==="fulfilled"?p(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function p(_){return typeof _==="object"&&_!==null&&_.$$typeof===B0}function s(_){var y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(r){return y[r]})}function n(_,y){return typeof _==="object"&&_!==null&&_.key!=null?(F(_.key),s(""+_.key)):y.toString(36)}function $0(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status==="string"?_.then(H,H):(_.status="pending",_.then(function(y){_.status==="pending"&&(_.status="fulfilled",_.value=y)},function(y){_.status==="pending"&&(_.status="rejected",_.reason=y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function a(_,y,r,Z0,Y0){var S0=typeof _;if(S0==="undefined"||S0==="boolean")_=null;var j0=!1;if(_===null)j0=!0;else switch(S0){case"bigint":case"string":case"number":j0=!0;break;case"object":switch(_.$$typeof){case B0:case r0:j0=!0;break;case P5:return j0=_._init,a(j0(_._payload),y,r,Z0,Y0)}}if(j0){j0=_,Y0=Y0(j0);var e0=Z0===""?"."+n(j0,0):Z0;return B1(Y0)?(r="",e0!=null&&(r=e0.replace(e9,"$&/")+"/"),a(Y0,y,r,"",function(L5){return L5})):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(e9,"$&/")+"/")+e0),Z0!==""&&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=Z0===""?".":Z0+":",B1(_))for(var z0=0;z0<_.length;z0++)Z0=_[z0],S0=e0+n(Z0,z0),j0+=a(Z0,y,r,S0,Y0);else if(z0=J(_),typeof z0==="function")for(z0===_.entries&&(t9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),t9=!0),_=z0.call(_),z0=0;!(Z0=_.next()).done;)Z0=Z0.value,S0=e0+n(Z0,z0++),j0+=a(Z0,y,r,S0,Y0);else if(S0==="object"){if(typeof _.then==="function")return a($0(_),y,r,Z0,Y0);throw y=String(_),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return j0}function o(_,y,r){if(_==null)return _;var Z0=[],Y0=0;return a(_,Z0,"","",function(S0){return y.call(r,S0,Y0++)}),Z0}function q0(_){if(_._status===-1){var y=_._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=_._result;var r=y();if(r.then(function(Y0){if(_._status===0||_._status===-1){_._status=1,_._result=Y0;var S0=_._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(_._status===0||_._status===-1){_._status=2,_._result=Y0;var S0=_._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=_._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}_._status===-1&&(_._status=0,_._result=r)}if(_._status===1)return y=_._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 _._result}function d(){var _=k0.H;return _===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.`),_}function K0(){k0.asyncTransitions--}function P0(_){if(p8===null)try{var y=("require"+Math.random()).slice(0,7);p8=(i3&&i3[y]).call(i3,"timers").setImmediate}catch(r){p8=function(Z0){JJ===!1&&(JJ=!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=Z0,Y0.port2.postMessage(void 0)}}return p8(_)}function C0(_){return 1<_.length&&typeof AggregateError==="function"?AggregateError(_):_[0]}function D0(_,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(_,y,r){var Z0=k0.actQueue;if(Z0!==null)if(Z0.length!==0)try{X0(Z0),P0(function(){return l(_,y,r)});return}catch(Y0){k0.thrownErrors.push(Y0)}else k0.actQueue=null;0<k0.thrownErrors.length?(Z0=C0(k0.thrownErrors),k0.thrownErrors.length=0,r(Z0)):y(_)}function X0(_){if(!r8){r8=!0;var y=0;try{for(;y<_.length;y++){var r=_[y];do{k0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(k0.didUsePromise){_[y]=r,_.splice(0,y);return}r=Z0}else break}while(1)}_.length=0}catch(Y0){_.splice(0,y+1),k0.thrownErrors.push(Y0)}finally{r8=!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"),i=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"),P5=Symbol.for("react.lazy"),r6=Symbol.for("react.activity"),ZJ=Symbol.iterator,G0={},i9={isMounted:function(){return!1},enqueueForceUpdate:function(_){X(_,"forceUpdate")},enqueueReplaceState:function(_){X(_,"replaceState")},enqueueSetState:function(_){X(_,"setState")}},x8=Object.assign,D2={};Object.freeze(D2),q.prototype.isReactComponent={},q.prototype.setState=function(_,y){if(typeof _!=="object"&&typeof _!=="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,y,"setState")},q.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"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(b2 in X5)X5.hasOwnProperty(b2)&&Q(b2,X5[b2]);N.prototype=q.prototype,X5=K.prototype=new N,X5.constructor=K,x8(X5,q.prototype),X5.isPureReactComponent=!0;var B1=Array.isArray,V$=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},a9=Object.prototype.hasOwnProperty,w1=console.createTask?console.createTask:function(){return null};X5={react_stack_bottom_frame:function(_){return _()}};var QJ,q4,m8={},d8=X5.react_stack_bottom_frame.bind(X5,L)(),_X=w1(z(L)),t9=!1,e9=/\/+/g,v2=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},JJ=!1,p8=null,c8=0,l8=!1,r8=!1,O$=typeof queueMicrotask==="function"?function(_){queueMicrotask(function(){return queueMicrotask(_)})}:P0;X5=Object.freeze({__proto__:null,c:function(_){return d().useMemoCache(_)}});var b2={map:o,forEach:function(_,y,r){o(_,function(){y.apply(this,arguments)},r)},count:function(_){var y=0;return o(_,function(){y++}),y},toArray:function(_){return o(_,function(y){return y})||[]},only:function(_){if(!p(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};Fj.Activity=r6,Fj.Children=b2,Fj.Component=q,Fj.Fragment=u0,Fj.Profiler=i,Fj.PureComponent=K,Fj.StrictMode=v,Fj.Suspense=y1,Fj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k0,Fj.__COMPILER_RUNTIME=X5,Fj.act=function(_){var y=k0.actQueue,r=c8;c8++;var Z0=k0.actQueue=y!==null?y:[],Y0=!1;try{var S0=_()}catch(z0){k0.thrownErrors.push(z0)}if(0<k0.thrownErrors.length)throw D0(y,r),_=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;if(S0!==null&&typeof S0==="object"&&typeof S0.then==="function"){var j0=S0;return O$(function(){Y0||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(z0,L5){Y0=!0,j0.then(function(G6){if(D0(y,r),r===0){try{X0(Z0),P0(function(){return l(G6,z0,L5)})}catch(E$){k0.thrownErrors.push(E$)}if(0<k0.thrownErrors.length){var k2=C0(k0.thrownErrors);k0.thrownErrors.length=0,L5(k2)}}else z0(G6)},function(G6){D0(y,r),0<k0.thrownErrors.length?(G6=C0(k0.thrownErrors),k0.thrownErrors.length=0,L5(G6)):L5(G6)})}}}var e0=S0;if(D0(y,r),r===0&&(X0(Z0),Z0.length!==0&&O$(function(){Y0||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(() => ...)"))}),k0.actQueue=null),0<k0.thrownErrors.length)throw _=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;return{then:function(z0,L5){Y0=!0,r===0?(k0.actQueue=Z0,P0(function(){return l(e0,z0,L5)})):z0(e0)}}},Fj.cache=function(_){return function(){return _.apply(null,arguments)}},Fj.cacheSignal=function(){return null},Fj.captureOwnerStack=function(){var _=k0.getCurrentStack;return _===null?null:_()},Fj.cloneElement=function(_,y,r){if(_===null||_===void 0)throw Error("The argument must be a React element, but you passed "+_+".");var Z0=x8({},_.props),Y0=_.key,S0=_._owner;if(y!=null){var j0;$:{if(a9.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)!a9.call(y,e0)||e0==="key"||e0==="__self"||e0==="__source"||e0==="ref"&&y.ref===void 0||(Z0[e0]=y[e0])}var e0=arguments.length-2;if(e0===1)Z0.children=r;else if(1<e0){j0=Array(e0);for(var z0=0;z0<e0;z0++)j0[z0]=arguments[z0+2];Z0.children=j0}Z0=V(_.type,Y0,Z0,S0,_._debugStack,_._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return Z0},Fj.createContext=function(_){return _={$$typeof:F0,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:H0,_context:_},_._currentRenderer=null,_._currentRenderer2=null,_},Fj.createElement=function(_,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};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)a9.call(y,z0)&&z0!=="key"&&z0!=="__self"&&z0!=="__source"&&(Z0[z0]=y[z0]);var S0=arguments.length-2;if(S0===1)Z0.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),Z0.children=j0}if(_&&_.defaultProps)for(z0 in S0=_.defaultProps,S0)Z0[z0]===void 0&&(Z0[z0]=S0[z0]);Y0&&E(Z0,typeof _==="function"?_.displayName||_.name||"Unknown":_);var z0=1e4>k0.recentlyCreatedOwnerStacks++;return V(_,Y0,Z0,T(),z0?Error("react-stack-top-frame"):d8,z0?w1(z(_)):_X)},Fj.createRef=function(){var _={current:null};return Object.seal(_),_},Fj.forwardRef=function(_){_!=null&&_.$$typeof===p1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof _!=="function"?console.error("forwardRef requires a render function but was given %s.",_===null?"null":typeof _):_.length!==0&&_.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",_.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),_!=null&&_.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:x0,render:_},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Z0}),_.displayName=Z0)}}),y},Fj.isValidElement=p,Fj.lazy=function(_){_={_status:-1,_result:_};var y={$$typeof:P5,_payload:_,_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 _._ioInfo=r,y._debugInfo=[{awaited:r}],y},Fj.memo=function(_,y){_==null&&console.error("memo: The first argument must be a component. Instead received: %s",_===null?"null":typeof _),y={$$typeof:p1,type:_,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,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Z0}),_.displayName=Z0)}}),y},Fj.startTransition=function(_){var y=k0.T,r={};r._updatedFibers=new Set,k0.T=r;try{var Z0=_(),Y0=k0.S;Y0!==null&&Y0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(k0.asyncTransitions++,Z0.then(K0,K0),Z0.then(H,v2))}catch(S0){v2(S0)}finally{y===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.")),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}},Fj.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},Fj.use=function(_){return d().use(_)},Fj.useActionState=function(_,y,r){return d().useActionState(_,y,r)},Fj.useCallback=function(_,y){return d().useCallback(_,y)},Fj.useContext=function(_){var y=d();return _.$$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(_)},Fj.useDebugValue=function(_,y){return d().useDebugValue(_,y)},Fj.useDeferredValue=function(_,y){return d().useDeferredValue(_,y)},Fj.useEffect=function(_,y){return _==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(_,y)},Fj.useEffectEvent=function(_){return d().useEffectEvent(_)},Fj.useId=function(){return d().useId()},Fj.useImperativeHandle=function(_,y,r){return d().useImperativeHandle(_,y,r)},Fj.useInsertionEffect=function(_,y){return _==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(_,y)},Fj.useLayoutEffect=function(_,y){return _==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(_,y)},Fj.useMemo=function(_,y){return d().useMemo(_,y)},Fj.useOptimistic=function(_,y){return d().useOptimistic(_,y)},Fj.useReducer=function(_,y,r){return d().useReducer(_,y,r)},Fj.useRef=function(_){return d().useRef(_)},Fj.useState=function(_){return d().useState(_)},Fj.useSyncExternalStore=function(_,y,r){return d().useSyncExternalStore(_,y,r)},Fj.useTransition=function(){return d().useTransition()},Fj.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=L8((Wj)=>{var BK=t(I1());(function(){function Q(){}function J(z){return""+z}function X(z,T,L){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var E=!1}catch(O){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:L}}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=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"),Wj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Wj.createPortal=function(z,T){var L=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,L)},Wj.flushSync=function(z){var T=w.T,L=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=L,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.")}},Wj.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))},Wj.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)},Wj.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 L=T.as,I=q(L,T.crossOrigin),E=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;L==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:E,fetchPriority:O}):L==="script"&&M.d.X(z,{crossOrigin:I,integrity:E,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},Wj.preinitModule=function(z,T){var L="";if(typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(L+=" The `as` option encountered was "+K(T.as)+"."),L)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",L);else switch(L=T&&typeof T.as==="string"?T.as:"script",L){case"script":break;default:L=K(L),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)',L,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")L=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:L,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)},Wj.preload=function(z,T){var L="";if(typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(L+=" The `as` option encountered was "+N(T.as)+"."),L&&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',L),typeof z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){L=T.as;var I=q(L,T.crossOrigin);M.d.L(z,L,{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})}},Wj.preloadModule=function(z,T){var L="";typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(L+=" The `as` option encountered was "+N(T.as)+"."),L&&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',L),typeof z==="string"&&(T?(L=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:L,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},Wj.requestFormReset=function(z){M.d.r(z)},Wj.unstable_batchedUpdates=function(z,T){return z(T)},Wj.useFormState=function(z,T,L){return H().useFormState(z,T,L)},Wj.useFormStatus=function(){return H().useHostTransitionStatus()},Wj.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=L8((Pb,mT)=>{var wj=t(xT());mT.exports=wj});var pT=L8((Rj)=>{var Z1=t(uT()),H$=t(I1()),HK=t(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 L($,Z,G,Y){return new mC($,Z,G,Y)}function I($,Z){$.context===$8&&(_Y($.current,2,Z,$,null,null),H7())}function E($,Z){if(S6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,e$(),IB($.current,Z,G),H7()}}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 n($){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 $0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=$0($),Z!==null)return Z;$=$.sibling}return null}function a($){if($===null||typeof $!=="object")return null;return $=DF&&$[DF]||$["@@iterator"],typeof $==="function"?$:null}function o($){if($==null)return null;if(typeof $==="function")return $.$$typeof===NI?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case T7:return"Fragment";case SY:return"Profiler";case HG: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 z7:return"Portal";case I4:return $.displayName||"Context";case jY:return($._context.displayName||"Context")+".Consumer";case UZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case MG:return Z=$.displayName||null,Z!==null?Z:o($.type)||"Memo";case M6:Z=$._payload,$=$._init;try{return o($(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 o(Z);case 8:return Z===HG?"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 P0($,Z){0>$2?console.error("Unexpected pop."):(Z!==fY[$2]&&console.error("Unexpected Fiber popped."),$.current=kY[$2],kY[$2]=null,fY[$2]=null,$2--)}function C0($,Z,G){$2++,kY[$2]=$.current,fY[$2]=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){C0(n2,Z,$),C0(KZ,$,$),C0(s2,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):F2:F2;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=ZF(Z),Z=QF(Z,G);else switch(G){case"svg":Z=e7;break;case"math":Z=B3;break;default:Z=F2}}G=G.toLowerCase(),G=oK(null,G),G={context:Z,ancestorInfo:G},P0(s2,$),C0(s2,G,$)}function X0($){P0(s2,$),P0(KZ,$),P0(n2,$)}function B0(){return D0(s2.current)}function r0($){$.memoizedState!==null&&C0(FG,$,$);var Z=D0(s2.current),G=$.type,Y=QF(Z.context,G);G=oK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(C0(KZ,$,$),C0(s2,Y,$))}function u0($){KZ.current===$&&(P0(s2,$),P0(KZ,$)),FG.current===$&&(P0(FG,$),ZQ._currentValue=j9)}function v(){}function i(){if(BZ===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:$})}BZ++}function H0(){if(BZ--,BZ===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>BZ&&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
18
18
  `)&&($=$.slice(29)),Z=$.indexOf(`
19
19
  `),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
20
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(`
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(`
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(`
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,i();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],P=W[1];if(R&&P){var C=R.split(`
23
+ `),k=P.split(`
24
+ `);for(W=B=0;B<C.length&&!C[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===C.length||W===k.length)for(B=C.length-1,W=k.length-1;1<=B&&0<=W&&C[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(C[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||C[B]!==k[W]){var f=`
25
+ `+C[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 C=(C=$?$.displayName||$.name:"")?x0(C):"",typeof $==="function"&&hY.set($,C),C}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:P,debugLocation:C}=B;if(C!=null){var k=F0(C),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`
27
+ `+S;break $}}g=x0(R+(P?" ["+P+"]":""))}Z=W+g}}G=$,$=$.return}while($);return Z}catch(e){return`
28
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+=`
29
+ `+e.stack}}function P5($){return($=$?$.displayName||$.name:"")?x0($):""}function r6(){if(F6===null)return null;var $=F6._debugOwner;return $!=null?q0($):null}function ZJ(){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+=P5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=P5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var Y=G._debugStack;if($&&Y){var U=F0(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
+ `+F0(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 G0($,Z,G,Y,U,B,W){var R=F6;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:ZJ,V4=!1,F6=$}function x8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function D2($){try{return X5($),!1}catch(Z){return!0}}function X5($){return""+$}function B1($,Z){if(D2($))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($)),X5($)}function V$($,Z){if(D2($))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($)),X5($)}function k0($){if(D2($))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($)),X5($)}function a9($){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{L7=Z.inject($),_5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function w1($){if(typeof WI==="function"&&wI($),_5&&typeof _5.setStrictMode==="function")try{_5.setStrictMode(L7,$)}catch(Z){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function QJ($){return $>>>=0,$===0?32:31-(RI($)/zI|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 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=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 d8($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function _X($,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 t9(){var $=RG;return RG<<=1,(RG&62914560)===0&&(RG=4194304),$}function e9($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function v2($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function JJ($,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:P,hiddenUpdates:C}=$;for(G=W&~G;0<G;){var k=31-S5(G),f=1<<k;R[k]=0,P[k]=-1;var S=C[k];if(S!==null)for(C[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-S5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function c8($,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 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 O$($,Z,G){if(E4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-S5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function b2($,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 _($){return $&=-$,W6!==0&&W6<$?a6!==0&&a6<$?($&134217727)!==0?A4:zG:a6: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 Z0($){delete $[F5],delete $[j5],delete $[pY],delete $[TI],delete $[PI]}function Y0($){var Z=$[F5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[i2]||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]||$[i2]){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($){$[HZ]=!0}function L5($,Z){G6($,Z),G6($+"Capture",Z)}function G6($,Z){N9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),N9[$]=Z;var G=$.toLowerCase();cY[G]=$,$==="onDoubleClick"&&(cY.ondblclick=$);for($=0;$<Z.length;$++)mF.add(Z[$])}function k2($,Z){LI[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(i6.call(pF,$))return!0;if(i6.call(dF,$))return!1;if(CI.test($))return pF[$]=!0;return dF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function kK($,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 B1(G,Z),$===""+G?G:$}}function GJ($,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}}B1(G,Z),$.setAttribute(Z,""+G)}}function XJ($,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 zC($,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=zC($,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 qJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function V6($){return $.replace(_I,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"&&qJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function uK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?H$.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 $?`
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 $7($,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;$<iF.length;$++){var G=iF[$];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||aF||(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"),aF=!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 Z7($){return"+ "+" ".repeat($)}function s8($){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 A$($,Z){return tF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function YJ($,Z,G){var Y=120-2*G;if(Z===null)return Z7(G)+A$($,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)),Z7(G)+A$($,Y)+`
37
+ `+s8(G)+A$(Z,Y)+`
38
+ `}return X6(G)+A$($,Y)+`
39
+ `}function EX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function S$($,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===_4)return(Z=o($.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=S$($[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 Q7($,Z){return typeof $!=="string"||tF.test($)?"{"+S$($,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=Q7(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)+`
45
+ `}function TC($,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=S$($[B],W);Z.hasOwnProperty(B)?(W=S$(Z[B],W),Y+=Z7(G)+B+": "+R+`
46
+ `,Y+=s8(G)+B+": "+W+`
47
+ `):Y+=Z7(G)+B+": "+R+`
48
+ `}for(var P in U)U.hasOwnProperty(P)&&($=S$(U[P],120-2*G-P.length-2),Y+=s8(G)+P+": "+$+`
49
+ `);return Y}function PC($,Z,G,Y){var U="",B=new Map;for(C in G)G.hasOwnProperty(C)&&B.set(C.toLowerCase(),C);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,P=B.get(W.toLowerCase());if(P!==void 0){B.delete(W.toLowerCase());var C=Z[W];P=G[P];var k=Q7(C,R);R=Q7(P,R),typeof C==="object"&&C!==null&&typeof P==="object"&&P!==null&&EX(C)==="Object"&&EX(P)==="Object"&&(2<Object.keys(C).length||2<Object.keys(P).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=X6(Y+1)+W+`={{
50
+ `+TC(C,P,Y+2)+X6(Y+1)+`}}
51
+ `:(U+=Z7(Y+1)+W+"="+k+`
52
+ `,U+=s8(Y+1)+W+"="+R+`
53
+ `)}else U+=X6(Y+1)+W+"="+Q7(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+"="+Q7(G[f],S)+`
55
55
  `}}),U=U===""?X6(Y)+"<"+$+`>
56
56
  `:X6(Y)+"<"+$+`
57
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+`>
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+=YJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+YJ(""+Z,null,Y+1):U+YJ(""+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
59
  `}function SX($,Z){var G=lK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return X6(Z)+`...
60
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
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>.
61
+ `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=YJ(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(C in U)if(U.hasOwnProperty(C)&&C!=="children"){var P=Q7(U[C],15);if(W-=C.length+P.length+2,0>W){R+=" ...";break}R+=" "+C+"="+P}Y=X6(Y)+"<"+B+R+`>
62
+ `,Z++}else $.serverProps===null?(Y=AX(B,U,Z7(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=PC(B,U,$.serverProps,Z),Z++);var C="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(C+=SX(W,Z),B++):C+=sK(U,Z),U=U.sibling;U&&0<$.children.length&&(C+=X6(Z)+`...
63
+ `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],C=typeof B==="string"?C+(s8(Z)+A$(B,120-2*Z)+`
64
+ `):C+AX(B.type,B.props,s8(Z));return G+Y+C}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),VI.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),II.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 iK($,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 OI.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 LC($,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 aK($,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=iK($,G&&G.tag,Z.implicitRootScope)?null:G)?null:LC($,Z),Z=G||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!G)+"|"+$+"|"+Y,TG[Z])return!1;TG[Z]=!0;var U=(Z=F6)?aK(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
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 NJ($,Z,G){if(G||iK("#text",Z,!1))return!0;if(G="#text|"+Z,TG[G])return!1;TG[G]=!0;var Y=(G=F6)?aK(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>.
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 j$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function CC($){return $.replace(SI,function(Z,G){return G.toUpperCase()})}function tK($,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,CC(Z.replace(AI,"ms-")))):EI.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))):!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:(V$(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 P in Z)for(U=lY[P]||[P],B=0;B<U.length;B++)R[U[B]]=P;P={};for(var C in Y)if(U=Y[C],(B=R[C])&&U!==B&&(W=U+","+B,!P[W])){P[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)C=Z[S],Z.hasOwnProperty(S)&&G[S]!==C&&tK($,S,C)}else for(Y in Z)Z.hasOwnProperty(Y)&&tK($,Y,Z[Y])}function D$($){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 jI.get($)||$}function _C($,Z){if(i6.call(I7,Z)&&I7[Z])return!0;if(vI.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),I7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),I7[Z]=!0}if(DI.test(Z)){if($=Z.toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return I7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),I7[Z]=!0)}return!0}function IC($,Z){var G=[],Y;for(Y in Z)_C($,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 VC($,Z,G,Y){if(i6.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 bI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),D5[Z]=!0;if(kI.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`."),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(LG.hasOwnProperty(U)){if(U=LG[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 OC($,Z,G){var Y=[],U;for(U in Z)VC($,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 v$($){return yI.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&&$7($,!!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,V7!==null||O7!==null){if(H7(),V7&&(Z=V7,$=O7,O7=V7=null,ZB(Z),$))for(Z=0;Z<$.length;Z++)ZB($[Z])}}}function b$($,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(CG)return CG;var $,Z=oY,G=Z.length,Y,U="value"in a2?a2.value:a2.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 CG=U.slice($,1<Y?1-Y:void 0)}function UJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function KJ(){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)?KJ: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=KJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=KJ)},persist:function(){},isPersistent:KJ}),Z}function EC($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=oI[$])?!!Z[$]:!1}function bX(){return EC}function XB($,Z){switch($){case"keyup":return YV.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 AC($,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 SC($,Z){if(E7)return $==="compositionend"||!eY&&XB($,Z)?($=JB(),CG=oY=a2=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 FW&&Z.locale!=="ko"?null:Z.data;default:return null}}function YB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!UV[$.type]:Z==="textarea"?!0:!1}function jC($){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){V7?O7?O7.push(Y):O7=[Y]:V7=Y,Z=QG(Z,"onChange"),0<Z.length&&(G=new _G("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function DC($){cM($,0)}function BJ($){var Z=j0($);if(yK(Z))return $}function UB($,Z){if($==="change")return Z}function KB(){zZ&&(zZ.detachEvent("onpropertychange",BB),TZ=zZ=null)}function BB($){if($.propertyName==="value"&&BJ(TZ)){var Z=[];NB(Z,TZ,$,vX($)),QB(DC,Z)}}function vC($,Z,G){$==="focusin"?(KB(),zZ=Z,TZ=G,zZ.attachEvent("onpropertychange",BB)):$==="focusout"&&KB()}function bC($){if($==="selectionchange"||$==="keyup"||$==="keydown")return BJ(TZ)}function kC($,Z){if($==="click")return BJ(Z)}function fC($,Z){if($==="input"||$==="change")return BJ(Z)}function yC($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function k$($,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(!i6.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=qJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=qJ($.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||A7==null||A7!==qJ(Y)||(Y=A7,("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}),PZ&&k$(PZ,Y)||(PZ=Y,Y=QG($N,"onSelect"),0<Y.length&&(Z=new _G("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=A7)))}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(!S7[$])return $;var Z=S7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in TW)return QN[$]=Z[G];return $}function s6($,Z){IW.set($,Z),L5(Z,[$])}function gC($){for(var Z=VG,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!==VG&&Z!==YN)return XN;Z=YN}else return XN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==VG&&Z!==qN)return XN;Z=qN}}return Z}function fX($,Z,G,Y){for(var U in $)i6.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===_4){var B=o(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),P=R.length;if(W==null&&P===0){Z="<"+B+" />";break}if(3>Y||P===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 C in Z)C==="children"?Z.children!=null&&(!$5(Z.children)||0<Z.children.length)&&($=!0):i6.call(Z,C)&&C[0]!=="_"&&Y4(C,Z[C],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(C=gC(Z),C===qN||C===VG){Z=JSON.stringify(Z);break}else if(C===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"&&(C=Object.getPrototypeOf(Z))&&typeof C.constructor==="function"&&(B=C.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===wV?"…":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([OG+"  ".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([OG+U,"…"],[EG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===_4){if(W.type===R.type&&W.key===R.key){W=o(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",G.push([OG+U,W],[EG+U,W]),U=!1;continue}}else{var P=Object.prototype.toString.call(W),C=Object.prototype.toString.call(R);if(P===C&&(C==="[object Object]"||C==="[object Array]")){P=[EW+"  ".repeat(Y)+B,C==="[object Array]"?"Array":""],G.push(P),C=G.length,RB(W,R,G,Y+1)?C===G.length&&(P[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&&(P=Function.prototype.toString.call(W),C=Function.prototype.toString.call(R),P===C)){W=R.name===""?"() => {}":R.name+"() {}",G.push([EW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}Y4(B,W,G,Y,OG),Y4(B,R,G,Y,EG)}U=!1}}else G.push([EG+"  ".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){P1&&(e2.start=Z,e2.end=G,Z2.color="warning",Z2.tooltipText=Y,Z2.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,e2)):performance.measure(Y,e2))}function HJ($,Z,G){N4($,Z,G,"Reconnect")}function MJ($,Z,G,Y,U){var B=d($);if(B!==null&&P1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var P=$.child;P!==null;P=P.sibling)R-=P.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var C=$.memoizedProps;R=$._debugTask,C!==null&&W!==null&&W.memoizedProps!==C?(P=[RV],C=RB(W.memoizedProps,C,P,0),1<P.length&&(C&&!t2&&(W.lanes&U)===0&&100<$.actualDuration?(t2=!0,P[0]=zV,Z2.color="warning",Z2.tooltipText=AW):(Z2.color=Y,Z2.tooltipText=B),Z2.properties=P,e2.start=Z,e2.end=G,R!=null?R.run(performance.measure.bind(performance,"​"+B,e2)):performance.measure("​"+B,e2))):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(P1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var P=Y[R];B==null&&P.source!==null&&(B=P.source._debugTask),P=P.value,W.push(["Error",typeof P==="object"&&P!==null&&typeof P.message==="string"?String(P.message):String(P)])}$.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(P1){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&&P1&&(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 hC($,Z,G,Y){if(P1&&!(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){!P1||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){!P1||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 uC($,Z,G,Y,U,B){if(P1&&!(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){!P1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,l0,p0,"error")):console.timeStamp("Errored",$,Z,l0,p0,"error"))}function xC($,Z,G,Y){!P1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,l0,p0,"secondary-light")):console.timeStamp(G,$,Z,l0,p0,"secondary-light"))}function PB($,Z,G,Y,U){if(P1&&!(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 f$($,Z,G){!P1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,l0,p0,"secondary-dark")):console.timeStamp("Animating",$,Z,l0,p0,"secondary-dark"))}function FJ(){for(var $=j7,Z=NN=j7=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&&LB(G,U,B)}}function WJ($,Z,G,Y){A6[j7++]=$,A6[j7++]=Z,A6[j7++]=G,A6[j7++]=Y,NN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function hX($,Z,G,Y){return WJ($,Z,G,Y),wJ($)}function C5($,Z){return WJ($,null,null,Z),wJ($)}function LB($,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&LZ||(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 wJ($){if(nZ>bV)throw I9=nZ=0,oZ=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.");I9>kV&&(I9=0,oZ=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 i8($){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=i8($.render),$.render!==Z)?(Z={$$typeof:UZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function CB($,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===UZ?Y=!0:U===M6&&(Y=!0);break;case 14:case 15:U===MG?Y=!0:U===M6&&(Y=!0);break;default:return!1}return Y&&($=S6(G),$!==void 0&&$===S6(Z))?!0:!1}function _B($){S6!==null&&typeof WeakSet==="function"&&(D7===null&&(D7=new WeakSet),D7.add($))}function IB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var P=null;switch(R){case 0:case 15:case 1:P=Y;break;case 11:P=Y.render}if(S6===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(Y=!1,P!==null&&(P=S6(P),P!==void 0&&(G.has(P)?Y=!0:Z.has(P)&&(R===1?Y=!0:C=!0))),D7!==null&&(D7.has($)||U!==null&&D7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||C)U=C5($,2),U!==null&&D1(U,$,2);if(B===null||Y||IB(B,Z,G),W===null)break;$=W}while(1)}function mC($,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=L($.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=i8($.type);break;case 1:G.type=i8($.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=i8(R);else if(typeof $==="string")W=B0(),W=i_($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case bY:return Z=L(31,G,Z,U),Z.elementType=bY,Z.lanes=B,Z;case T7:return a8(G.children,U,B,Z);case HG: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=L(12,$,Z,Y|f0),Z.elementType=SY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case DY:return Z=L(13,G,Z,U),Z.elementType=DY,Z.lanes=B,Z;case vY:return Z=L(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 UZ:W=11,R=uX(R);break $;case MG: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===_4?(G="<"+(o($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?q0(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=L(W,G,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function RJ($,Z,G){return Z=mX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function a8($,Z,G,Y){return $=L(7,$,Y,Z),$.lanes=G,$}function dX($,Z,G){return $=L(6,$,null,Z),$.lanes=G,$}function OB($){var Z=L(18,null,null,I0);return Z.stateNode=$,Z}function pX($,Z,G){return Z=L(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){f2(),v7[b7++]=CZ,v7[b7++]=AG,AG=$,CZ=Z}function EB($,Z,G){f2(),j6[D6++]=J2,j6[D6++]=G2,j6[D6++]=K9,K9=$;var Y=J2;$=G2;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,J2=1<<32-S5(Z)+U|G<<U|Y,G2=B+$}else J2=1<<B|G<<U|Y,G2=$}function cX($){f2(),$.return!==null&&(n4($,1),EB($,1,0))}function lX($){for(;$===AG;)AG=v7[--b7],v7[b7]=null,CZ=v7[--b7],v7[b7]=null;for(;$===K9;)K9=j6[--D6],j6[D6]=null,G2=j6[--D6],j6[D6]=null,J2=j6[--D6],j6[D6]=null}function AB(){return f2(),K9!==null?{id:J2,overflow:G2}:null}function SB($,Z){f2(),j6[D6++]=J2,j6[D6++]=G2,j6[D6++]=K9,J2=Z.id,G2=Z.overflow,K9=$}function f2(){s0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function t8($,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=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 jB(){s0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function zJ($,Z){j4||($=t8($,0),$.serverProps=null,Z!==null&&(Z=NF(Z),$.serverTail.push(Z)))}function y2($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=w6;throw Y!==null&&(w6=null,G=jX(Y)),y$(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:
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),$)),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<iZ.length;G++)n0(iZ[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":k2("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":k2("select",Y),n0("invalid",Z),mK(Z,Y);break;case"textarea":k2("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||y2($,!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 J7($){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&&L1){for(G=L1;G;){var Y=t8($,0),U=NF(G);Y.serverTail.push(U),G=U.type==="Suspense"?PY(G):H6(G.nextSibling)}y2($)}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.");L1=PY($)}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.");L1=PY($)}else Z===27?(Z=L1,r2($.type)?($=eN,eN=null,L1=$):L1=Z):L1=W5?H6($.stateNode.nextSibling):null;return!0}function e8(){L1=W5=null,j4=s0=!1}function rX(){var $=Z8;return $!==null&&(y5===null?y5=$:y5.push.apply(y5,$),Z8=null),$}function y$($){Z8===null?Z8=[$]:Z8.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:
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 TJ(){k7=SG=null,f7=!1}function g2($,Z,G){C0(BN,Z._currentValue,$),Z._currentValue=G,C0(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;P0(HN,Z),$._currentRenderer=G,P0(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 P=0;P<Z.length;P++)if(R.context===Z[P]){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 G7($,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===FG.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(ZQ):$=[ZQ])}U=U.return}$!==null&&oX(Z,$,G,Y),Z.flags|=262144}function PJ($){for($=$.firstContext;$!==null;){if(!v5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function $9($){SG=$,k7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function O1($){return f7&&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(SG,$)}function LJ($,Z){return SG===null&&$9($),bB($,Z)}function bB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},k7===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().");k7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else k7=k7.next=Z;return G}function iX(){return{controller:new LV,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 g$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&CV(_V,function(){$.controller.abort()})}function K4($,Z,G){if(($&127)!==0)0>D4&&(D4=l1(),IZ=jG(Z),MN=Z,G!=null&&(FN=d(G)),(a0&(Q5|T6))!==K5&&(v1=!0,G8=_Z),$=GZ(),Z=JZ(),$!==y7||Z!==VZ?y7=-1.1:Z!==null&&(G8=_Z),H9=$,VZ=Z);else if(($&4194048)!==0&&0>b6&&(b6=l1(),OZ=jG(Z),vW=Z,G!=null&&(bW=d(G)),0>Y2)){if($=GZ(),Z=JZ(),$!==q8||Z!==M9)q8=-1.1;X8=$,M9=Z}}function dC($){if(0>D4){D4=l1(),IZ=$._debugTask!=null?$._debugTask:null,(a0&(Q5|T6))!==K5&&(G8=_Z);var Z=GZ(),G=JZ();Z!==y7||G!==VZ?y7=-1.1:G!==null&&(G8=_Z),H9=Z,VZ=G}if(0>b6&&(b6=l1(),OZ=$._debugTask!=null?$._debugTask:null,0>Y2)){if($=GZ(),Z=JZ(),$!==q8||Z!==M9)q8=-1.1;X8=$,M9=Z}}function i4(){var $=B9;return B9=0,$}function CJ($){var Z=B9;return B9=$,Z}function h$($){var Z=B9;return B9+=$,Z}function _J(){L0=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 aX($){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,B9+=Z,A1+=Z,L0=$}}function fB($){E1===null&&(E1=[]),E1.push($),q2===null&&(q2=[]),q2.push($)}function w4(){b5=l1(),0>T0&&(T0=b5)}function u$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function pC($,Z){if(AZ===null){var G=AZ=[];wN=0,F9=YY(),g7={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||(Y2=-1.1),AZ!==null)){g7!==null&&(g7.status="fulfilled");var $=AZ;AZ=null,F9=0,g7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function cC($,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 $=W9.current;return $!==null?$:W1.pooledCache}function IJ($,Z){Z===null?C0(W9,W9.current,$):C0(W9,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 R9=Z,fZ=!0,h7}}function h2($){try{return EV($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw R9=Z,fZ=!0,h7;throw Z}}function mB(){if(R9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=R9;return R9=null,fZ=!1,$}function dB($){if($===h7||$===hG)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 VJ($,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=RJ($,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 OJ($){var Z=yZ;return yZ+=1,u7===null&&(u7=hB()),xB(u7,$,Z)}function x$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function pB($,Z){if(Z.$$typeof===qI)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 EJ($,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.
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 AJ($,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.
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 SJ($,Z){var G=$q();G!==null?G.run(lB.bind(null,$,Z)):lB($,Z)}function rB($){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=s4(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=dX(b,A.mode,m),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=A,j._debugInfo=y0,j}function P(A,j,b,m){var Q0=b.type;if(Q0===T7)return j=k(A,j,b.props.children,m,b.key),VJ(b,j,A),j;if(j!==null&&(j.elementType===Q0||CB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===M6&&h2(Q0)===j.type))return j=U(j,b.props),x$(j,b),j.return=A,j._debugOwner=b._owner,j._debugInfo=y0,j;return j=RJ(b,A.mode,m),x$(j,b),j.return=A,j._debugInfo=y0,j}function C(A,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=pX(b,A.mode,m),j.return=A,j._debugInfo=y0,j;return j=U(j,b.children||[]),j.return=A,j._debugInfo=y0,j}function k(A,j,b,m,Q0){if(j===null||j.tag!==7)return j=a8(b,A.mode,m,Q0),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=A,j._debugInfo=y0,j}function f(A,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=dX(""+j,A.mode,b),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=y0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case _4:return b=RJ(j,A.mode,b),x$(b,j),b.return=A,A=B5(j._debugInfo),b._debugInfo=y0,y0=A,b;case z7:return j=pX(j,A.mode,b),j.return=A,j._debugInfo=y0,j;case M6:var m=B5(j._debugInfo);return j=h2(j),A=f(A,j,b),y0=m,A}if($5(j)||a(j))return b=a8(j,A.mode,b,null),b.return=A,b._debugOwner=A,b._debugTask=A._debugTask,A=B5(j._debugInfo),b._debugInfo=y0,y0=A,b;if(typeof j.then==="function")return m=B5(j._debugInfo),A=f(A,OJ(j),b),y0=m,A;if(j.$$typeof===I4)return f(A,LJ(A,j),b);EJ(A,j)}return typeof j==="function"&&AJ(A,j),typeof j==="symbol"&&SJ(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 _4:return b.key===Q0?(Q0=B5(b._debugInfo),A=P(A,j,b,m),y0=Q0,A):null;case z7:return b.key===Q0?C(A,j,b,m):null;case M6:return Q0=B5(b._debugInfo),b=h2(b),A=S(A,j,b,m),y0=Q0,A}if($5(b)||a(b)){if(Q0!==null)return null;return Q0=B5(b._debugInfo),A=k(A,j,b,m,null),y0=Q0,A}if(typeof b.then==="function")return Q0=B5(b._debugInfo),A=S(A,j,OJ(b),m),y0=Q0,A;if(b.$$typeof===I4)return S(A,j,LJ(A,b),m);EJ(A,b)}return typeof b==="function"&&AJ(A,b),typeof b==="symbol"&&SJ(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 _4:return b=A.get(m.key===null?b:m.key)||null,A=B5(m._debugInfo),j=P(j,b,m,Q0),y0=A,j;case z7:return A=A.get(m.key===null?b:m.key)||null,C(j,A,m,Q0);case M6:var O0=B5(m._debugInfo);return m=h2(m),j=g(A,j,b,m,Q0),y0=O0,j}if($5(m)||a(m))return b=A.get(b)||null,A=B5(m._debugInfo),j=k(j,b,m,Q0,null),y0=A,j;if(typeof m.then==="function")return O0=B5(m._debugInfo),j=g(A,j,b,OJ(m),Q0),y0=O0,j;if(m.$$typeof===I4)return g(A,j,b,LJ(j,m),Q0);EJ(j,m)}return typeof m==="function"&&AJ(j,m),typeof m==="symbol"&&SJ(j,m),null}function e(A,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case _4:case z7: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}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.",Q0)});break;case M6:b=h2(b),e(A,j,b,m)}return m}function J0(A,j,b,m){for(var Q0=null,O0=null,R0=null,U0=j,b0=j=0,C1=null;U0!==null&&b0<b.length;b0++){U0.index>b0?(C1=U0,U0=null):C1=U0.sibling;var x1=S(A,U0,b[b0],m);if(x1===null){U0===null&&(U0=C1);break}Q0=e(A,x1,b[b0],Q0),$&&U0&&x1.alternate===null&&Z(A,U0),j=B(x1,j,b0),R0===null?O0=x1:R0.sibling=x1,R0=x1,U0=C1}if(b0===b.length)return G(A,U0),s0&&n4(A,b0),O0;if(U0===null){for(;b0<b.length;b0++)U0=f(A,b[b0],m),U0!==null&&(Q0=e(A,U0,b[b0],Q0),j=B(U0,j,b0),R0===null?O0=U0:R0.sibling=U0,R0=U0);return s0&&n4(A,b0),O0}for(U0=Y(U0);b0<b.length;b0++)C1=g(U0,A,b0,b[b0],m),C1!==null&&(Q0=e(A,C1,b[b0],Q0),$&&C1.alternate!==null&&U0.delete(C1.key===null?b0:C1.key),j=B(C1,j,b0),R0===null?O0=C1:R0.sibling=C1,R0=C1);return $&&U0.forEach(function(w2){return Z(A,w2)}),s0&&n4(A,b0),O0}function z1(A,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,O0=null,R0=j,U0=j=0,b0=null,C1=null,x1=b.next();R0!==null&&!x1.done;U0++,x1=b.next()){R0.index>U0?(b0=R0,R0=null):b0=R0.sibling;var w2=S(A,R0,x1.value,m);if(w2===null){R0===null&&(R0=b0);break}C1=e(A,w2,x1.value,C1),$&&R0&&w2.alternate===null&&Z(A,R0),j=B(w2,j,U0),O0===null?Q0=w2:O0.sibling=w2,O0=w2,R0=b0}if(x1.done)return G(A,R0),s0&&n4(A,U0),Q0;if(R0===null){for(;!x1.done;U0++,x1=b.next())R0=f(A,x1.value,m),R0!==null&&(C1=e(A,R0,x1.value,C1),j=B(R0,j,U0),O0===null?Q0=R0:O0.sibling=R0,O0=R0);return s0&&n4(A,U0),Q0}for(R0=Y(R0);!x1.done;U0++,x1=b.next())b0=g(R0,A,U0,x1.value,m),b0!==null&&(C1=e(A,b0,x1.value,C1),$&&b0.alternate!==null&&R0.delete(b0.key===null?U0:b0.key),j=B(b0,j,U0),O0===null?Q0=b0:O0.sibling=b0,O0=b0);return $&&R0.forEach(function(aV){return Z(A,aV)}),s0&&n4(A,U0),Q0}function o0(A,j,b,m){if(typeof b==="object"&&b!==null&&b.type===T7&&b.key===null&&(VJ(b,null,A),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case _4:var Q0=B5(b._debugInfo);$:{for(var O0=b.key;j!==null;){if(j.key===O0){if(O0=b.type,O0===T7){if(j.tag===7){G(A,j.sibling),m=U(j,b.props.children),m.return=A,m._debugOwner=b._owner,m._debugInfo=y0,VJ(b,m,A),A=m;break $}}else if(j.elementType===O0||CB(j,b)||typeof O0==="object"&&O0!==null&&O0.$$typeof===M6&&h2(O0)===j.type){G(A,j.sibling),m=U(j,b.props),x$(m,b),m.return=A,m._debugOwner=b._owner,m._debugInfo=y0,A=m;break $}G(A,j);break}else Z(A,j);j=j.sibling}b.type===T7?(m=a8(b.props.children,A.mode,m,b.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,VJ(b,m,A),A=m):(m=RJ(b,A.mode,m),x$(m,b),m.return=A,m._debugInfo=y0,A=m)}return A=W(A),y0=Q0,A;case z7:$:{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=pX(Q0,A.mode,m),m.return=A,A=m}return W(A);case M6:return Q0=B5(b._debugInfo),b=h2(b),A=o0(A,j,b,m),y0=Q0,A}if($5(b))return Q0=B5(b._debugInfo),A=J0(A,j,b,m),y0=Q0,A;if(a(b)){if(Q0=B5(b._debugInfo),O0=a(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(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")aW||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."),aW=!0}else b.entries!==O0||PN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),PN=!0);return A=z1(A,j,R0,m),y0=Q0,A}if(typeof b.then==="function")return Q0=B5(b._debugInfo),A=o0(A,j,OJ(b),m),y0=Q0,A;if(b.$$typeof===I4)return o0(A,j,LJ(A,b),m);EJ(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=dX(Q0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,A=m),W(A);return typeof b==="function"&&AJ(A,b),typeof b==="symbol"&&SJ(A,b),G(A,j)}return function(A,j,b,m){var Q0=y0;y0=null;try{yZ=0;var O0=o0(A,j,b,m);return u7=null,O0}catch(C1){if(C1===h7||C1===hG)throw C1;var R0=L(29,C1,null,A.mode);R0.lanes=m,R0.return=A;var U0=R0._debugInfo=y0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._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=Q0}}}function sB($,Z){var G=$5($);return $=!G&&typeof a($)==="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 u2($){return{lane:$,tag:Qw,payload:null,callback:null,next:null}}function x2($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,CN===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.
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),Xw=!0}if((a0&Q5)!==K5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=wJ($),LB($,null,G),Z;return WJ($,Y,Z,G),wJ($)}function m$($,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 jJ($,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 d$(){if(_N){var $=g7;if($!==null)throw $}}function p$($,Z,G,Y){_N=!1;var U=$.updateQueue;Y8=!1,CN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var P=R,C=P.next;P.next=null,W===null?B=C:W.next=C,W=P;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=C:R.next=C,k.lastBaseUpdate=P))}if(B!==null){var f=U.baseState;W=0,k=C=P=null,R=B;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(g0&S)===S:(Y&S)===S){S!==0&&S===F9&&(_N=!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"){f7=!0;var o0=e.call(z1,f,J0);if(S.mode&I5){w1(!0);try{e.call(z1,f,J0)}finally{w1(!1)}}f7=!1,f=o0;break $}f=e;break $;case LN:S.flags=S.flags&-65537|128;case Qw:if(o0=e.payload,typeof o0==="function"){if(f7=!0,e=o0.call(z1,f,J0),S.mode&I5){w1(!0);try{o0.call(z1,f,J0)}finally{w1(!1)}}f7=!1}else e=o0;if(e===null||e===void 0)break $;f=d0({},f,e);break $;case Gw:Y8=!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?(C=k=g,P=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&&(P=f),U.baseState=P,U.firstBaseUpdate=C,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),K8|=W,$.lanes=W,$.memoizedState=f}CN=null}function nB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function lC($,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 iB($,Z){var G=k4;C0(xG,G,$),C0(x7,Z,$),k4=G|Z.baseLanes}function Jq($){C0(xG,k4,$),C0(x7,x7.current,$)}function Gq($){k4=xG.current,P0(x7,$),P0(xG,$)}function m2($){var Z=$.alternate;C0(u1,u1.current&m7,$),C0(R6,$,$),k6===null&&(Z===null||x7.current!==null?k6=$:Z.memoizedState!==null&&(k6=$))}function Xq($){C0(u1,u1.current,$),C0(R6,$,$),k6===null&&(k6=$)}function aB($){$.tag===22?(C0(u1,u1.current,$),C0(R6,$,$),k6===null&&(k6=$)):d2($)}function d2($){C0(u1,u1.current,$),C0(R6,R6.current,$)}function K6($){P0(R6,$),k6===$&&(k6=null),P0(u1,$)}function DJ($){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&&(B2++,y6[B2]!==$)){var Z=d(V0);if(!qw.has(Z)&&(qw.add(Z),y6!==null)){for(var G="",Y=0;Y<=B2;Y++){var U=y6[Y],B=Y===B2?$: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 X7($){$===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 vJ(){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:
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 qq($,Z){if(uZ)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(!v5($[G],Z[G]))return!1;return!0}function Yq($,Z,G,Y,U,B){if(U2=B,V0=Z,y6=$!==null?$._debugHookTypes:null,B2=-1,uZ=$!==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,T9=B=(Z.mode&I5)!==I0;var W=RN(G,Y,U);if(T9=!1,p7&&(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?K2!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:K2}):Z.dependencies._debugThenableState=K2,x.H=xZ;var G=F1!==null&&F1.next!==null;if(U2=0,y6=u=r1=F1=V0=null,B2=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),dG=!1,hZ=0,K2=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||s1||($=$.dependencies,$!==null&&PJ($)&&(s1=!0)),fZ?(fZ=!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(p7&&(K2=null),hZ=0,p7=!1,U>=SV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,uZ=!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)}B2=-1,x.H=Kw,B=RN(Z,G,Y)}while(p7);return B}function rC(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?c$(Z):Z,$=$.useState()[0],(F1!==null?F1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function Uq(){var $=pG!==0;return pG=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(dG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}dG=!1}U2=0,y6=r1=F1=V0=null,B2=-1,u=null,p7=!1,hZ=pG=0,K2=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 bJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function c$($){var Z=hZ;return hZ+=1,K2===null&&(K2=hB()),$=xB(K2,$,Z),Z=V0,(r1===null?Z.memoizedState:r1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?ON:VN),$}function p2($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return c$($);if($.$$typeof===I4)return O1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q9($){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=bJ(),V0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||uZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=YI;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(T9){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=aC.bind(null,V0,$),[Y.memoizedState,$]}function q7($){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,P=null,C=Z,k=!1;do{var f=C.lane&-536870913;if(f!==C.lane?(g0&f)===f:(U2&f)===f){var S=C.revertLane;if(S===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),f===F9&&(k=!0);else if((U2&S)===S){C=C.next,S===F9&&(k=!0);continue}else f={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},P===null?(R=P=f,W=B):P=P.next=f,V0.lanes|=S,K8|=S;f=C.action,T9&&G(B,f),B=C.hasEagerState?C.eagerState:G(B,f)}else S={lane:f,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},P===null?(R=P=S,W=B):P=P.next=S,V0.lanes|=f,K8|=f;C=C.next}while(C!==null&&C!==Z);if(P===null?W=B:P.next=R,!v5(B,$.memoizedState)&&(s1=!0,k&&(G=g7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=P,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function l$($){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();d7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),d7=!0)}else{if(B=Z(),d7||(G=Z(),v5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d7=!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,gJ(ZH.bind(null,Y,G,$),[$]),Y.flags|=2048,N7(f6|f5,{destroy:void 0},$H.bind(null,Y,G,B,Z),null),B}function kJ($,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(),!d7){var W=Z();v5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d7=!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,N7(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||(U2&127)!==0||eB(Y,Z,G)}return G}function eB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=V0.updateQueue,Z===null?(Z=bJ(),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=C5($,2);Z!==null&&D1(Z,$,2)}function Wq($){var Z=A5();if(typeof $==="function"){var G=$;if($=G(),T9){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=CH.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 sC($,Z,G,Y,U){if(pJ($))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),P=x.S;P!==null&&P(W,R),NH($,Z,R)}catch(C){zq($,Z,C)}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(C){zq($,Z,C)}}function NH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(dJ,dJ),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 Y7($,Z){if(s0){var G=W1.formState;if(G!==null){$:{var Y=V0;if(s0){if(L1){Z:{var U=L1;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){L1=H6(U.nextSibling),Y=U.data===oN;break $}}y2(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=CH.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=sC.bind(null,V0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function fJ($){var Z=N1();return HH(Z,F1,$)}function HH($,Z,G){if(Z=Mq($,Z,BH)[0],$=q7(n6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=c$(Z)}catch(W){if(W===h7)throw hG;throw W}else Y=Z;Z=N1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(V0.flags|=2048,N7(f6|f5,{destroy:void 0},nC.bind(null,U,G),null)),[Y,B,$]}function nC($,Z){$.action=Z}function yJ($){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 N7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=bJ(),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 J9($,Z,G,Y){var U=A5();V0.flags|=$,U.memoizedState=N7(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=N7(Z,B,G,Y):(V0.flags|=$,U.memoizedState=N7(f6|Z,B,G,Y))}function gJ($,Z){(V0.mode&t6)!==I0?J9(276826112,f5,$,Z):J9(8390656,f5,$,Z)}function oC($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=bJ(),V0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Pq($){var Z=A5(),G={impl:$};return Z.memoizedState=G,function(){if((a0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function hJ($){var Z=N1().memoizedState;return oC({ref:Z,nextImpl:$}),function(){if((a0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Lq($,Z){var G=4194308;return(V0.mode&t6)!==I0&&(G|=134217728),J9(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 Cq($,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),J9(Y,z6,MH.bind(null,Z,$),G)}function uJ($,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 _q($,Z){return A5().memoizedState=[$,Z===void 0?null:Z],$}function xJ($,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(T9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function mJ($,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=$(),T9){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||(U2&1073741824)!==0&&(g0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=RM(),V0.lanes|=$,K8|=$,G}function wH($,Z,G,Y){if(v5(G,Z))return G;if(x7.current!==null)return $=Oq($,G,Y),v5($,Z)||(s1=!0),$;if((U2&42)===0||(U2&1073741824)!==0&&(g0&261930)===0)return s1=!0,$.memoizedState=G;return $=RM(),V0.lanes|=$,K8|=$,Z}function dJ(){x.asyncTransitions--}function RH($,Z,G,Y,U){var B=q1.p;q1.p=B!==0&&B<a6?B:a6;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,Dq($,!1,Z,G);try{var P=U(),C=x.S;if(C!==null&&C(R,P),P!==null&&typeof P==="object"&&typeof P.then==="function"){x.asyncTransitions++,P.then(dJ,dJ);var k=cC(P,Y);r$($,Z,k,B6($))}else r$($,Z,Y,B6($))}catch(f){r$($,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;dC($),RH($,U,Z,j9,G===null?w:function(){return TH($),G(Y)})}function zH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:j9,baseState:j9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:j9},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),r$($,Z.next.queue,{},B6($))}function Aq(){var $=Wq(!1);return $=RH.bind(null,V0,$.queue,!0,!1),A5().memoizedState=$,[!1,$]}function PH(){var $=q7(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:c$($),Z]}function LH(){var $=l$(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:c$($),Z]}function G9(){return O1(ZQ)}function Sq(){var $=A5(),Z=W1.identifierPrefix;if(s0){var G=G2,Y=J2;G=(Y&~(1<<32-S5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=pG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=AV++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function jq(){return A5().memoizedState=iC.bind(null,V0)}function iC($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=B6(G),U=u2(Y),B=x2(G,U,Y);B!==null&&(K4(Y,"refresh()",$),D1(B,G,Y),m$(B,G,Y)),$=iX(),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 aC($,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};pJ($)?_H(Z,U):(U=hX($,Z,U,Y),U!==null&&(K4(Y,"dispatch()",$),D1(U,$,Y),IH(U,Z,Y)))}function CH($,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($),r$($,Z,G,Y)&&K4(Y,"setState()",$)}function r$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(pJ($))_H(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,P=B(R,G);if(U.hasEagerState=!0,U.eagerState=P,v5(P,R))return WJ($,Z,U,0),W1===null&&FJ(),!1}catch(C){}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&&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:YY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},pJ($)){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 pJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function _H($,Z){p7=dG=!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,c8($,G)}}function vq($){if($!==null&&typeof $!=="function"){var Z=String($);Lw.has(Z)||(Lw.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=o(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.",o(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!k$(G,Y)||!k$(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 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=d0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function EH($){GN($),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
+ `,c7?"An error occurred in the <"+c7+"> 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=c7?"The above error occurred in the <"+c7+"> 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
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,JR+" "+$[0],GR,F3+Y+F3,XR):$.splice(0,0,JR,GR,F3+Y+F3,XR),$.unshift(console),Y=oV.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 SH($){GN($)}function cJ($,Z){try{c7=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{c7=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=u2(G),G.tag=LN,G.payload={element:null},G.callback=function(){G0(Z.source,cJ,$,Z)},G}function fq($){return $=u2($),$.tag=LN,$}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(){_B(G),G0(Y.source,jH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){_B(G),G0(Y.source,jH,Z,G,Y),typeof U!=="function"&&(H8===null?H8=new Set([this]):H8.add(this)),IV(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 tC($,Z,G,Y,U){if(G.flags|=32768,E4&&$Z($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&G7(Z,G,U,!0),s0&&(j4=!0),G=R6.current,G!==null){switch(G.tag){case 31:case 13:return k6===null?eJ():G.alternate===null&&S1===M2&&(S1=rG),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===uG?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===uG?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),eJ(),!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&&y$(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&&y$(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),jJ($,U),S1!==N8&&(S1=P9)),!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(rZ===null?rZ=[B]:rZ.push(B),S1!==N8&&(S1=P9),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,$),jJ(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"&&(H8===null||!H8.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=fq(U),yq(U,$,G,Y),jJ(G,U),!1}G=G.return}while(G!==null);return!1}function H5($,Z,G,Y){Z.child=$===null?Zw(Z,null,G,Y):z9(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($9(Z),Y=Yq($,Z,G,W,B,U),R=Uq(),$!==null&&!s1)return Kq($,Z,U),a4($,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=i8(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:k$,G(W,Y)&&$.ref===Z.ref)return a4($,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(k$(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,a4($,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:LZ,_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&&IJ(Z,B!==null?B.cachePool:null),B!==null?iB(Z,B):Jq(Z),aB(Z);else return Y=Z.lanes=536870912,fH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(IJ(Z,B.cachePool),iB(Z,B),d2(Z),Z.memoizedState=null):($!==null&&IJ(Z,null),Jq(Z),d2(Z));return H5($,Z,U,G),Z.child}function s$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:LZ,_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&&IJ(Z,null),Jq(Z),aB(Z),$!==null&&G7($,Z,Y,!0),Z.childLanes=U,null}function lJ($,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=sJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function yH($,Z,G){return z9(Z,$.child,null,G),$=lJ(Z,Z.pendingProps),$.flags|=2,K6(Z),Z.memoizedState=null,$}function eC($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(s0){if(Y.mode==="hidden")return $=lJ(Z,Y),Z.lanes=536870912,s$(null,$);if(Xq(Z),($=L1)?(G=YF($,v6),G=G!==null&&G.data===O9?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,L1=null)):G=null,G===null)throw zJ(Z,$),y2(Z);return Z.lanes=536870912,null}return lJ(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&&tJ(Z),s1||G7($,Z,G,!1),U=(G&$.childLanes)!==0,s1||U){if(Y=W1,Y!==null&&(W=l8(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,C5($,W),D1(Y,$,W),SN;eJ(),Z=yH($,Z,G)}else $=B.treeContext,L1=H6(W.nextSibling),W5=Z,s0=!0,Z8=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=lJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&tJ(Z),$=s4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function rJ($,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=o(G)||"Unknown";Cw[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),Cw[B]=!0)}if(Z.mode&I5&&e6.recordLegacyContextWarning(Z,null),$===null&&(hq(Z,Z.type),G.contextTypes&&(B=o(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)))),$9(Z),G=Yq($,Z,G,Y,void 0,U),Y=Uq(),$!==null&&!s1)return Kq($,Z,U),a4($,Z,U);return s0&&Y&&cX(Z),Z.flags|=1,H5($,Z,G,U),Z.child}function gH($,Z,G,Y,U,B){if($9(Z),B2=-1,uZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=Nq(Z,Y,G,U),tB($,Z),Y=Uq(),$!==null&&!s1)return Kq($,Z,B),a4($,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)),jJ(Z,R)}if($9(Z),Z.stateNode===null){if(W=$8,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==I4)&&!Pw.has(G)&&(Pw.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",o(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=o(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 P=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?P="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(P="UNSAFE_componentWillUpdate"),W!==null||R!==null||P!==null){B=o(G)||"Component";var C=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.
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?`
137
- `+w:"",R!==null?`
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"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,B,C,W!==null?`
137
+ `+W:"",R!==null?`
138
+ `+R:"",P!==null?`
139
+ `+P:""))}}B=Z.stateNode,W=o(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.",o(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.",o(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):$8,B.state===Y&&(W=o(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)),p$(Z,Y,B,U),d$(),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=X9(G,k),B.props=R;var f=B.context;P=G.contextType,W=$8,typeof P==="object"&&P!==null&&(W=O1(P)),C=G.getDerivedStateFromProps,P=typeof C==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,P||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&OH(Z,B,Y,W),Y8=!1;var S=Z.memoizedState;B.state=S,p$(Z,Y,B,U),d$(),f=Z.memoizedState,k||S!==f||Y8?(typeof C==="function"&&(bq(Z,G,C,Y),f=Z.memoizedState),(R=Y8||VH(Z,G,R,Y,S,f,W))?(P||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,P=X9(G,W),B.props=P,C=Z.pendingProps,S=B.context,f=G.contextType,R=$8,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!==C||S!==R)&&OH(Z,B,Y,R),Y8=!1,S=Z.memoizedState,B.state=S,p$(Z,Y,B,U),d$();var g=Z.memoizedState;W!==C||S!==g||Y8||$!==null&&$.dependencies!==null&&PJ($.dependencies)?(typeof k==="function"&&(bq(Z,G,k,Y),g=Z.memoizedState),(P=Y8||VH(Z,G,P,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=P):(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,rJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,i9(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=z9(Z,$.child,null,U),Z.child=z9(Z,null,G,U)):H5($,Z,G,U),Z.memoizedState=R.state,$=Z.child}else $=a4($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(l7||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"),l7=!0),$}function uH($,Z,G,Y){return e8(),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"&&($=o(Z)||"Unknown",Vw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Vw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=o(Z)||"Unknown",_w[Z]||(console.error("%s: Function components do not support contextType.",Z),_w[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&gZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(s0){if(B?m2(Z):d2(Z),($=L1)?(G=YF($,v6),G=G!==null&&G.data!==O9?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,L1=null)):G=null,G===null)throw zJ(Z,$),y2(Z);return TY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){d2(Z);var P=Z.mode;return R=sJ({mode:"hidden",children:R},P),U=a8(U,P,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,s$(null,U)}return m2(Z),mq(Z,R)}var C=$.memoizedState;if(C!==null){var k=C.dehydrated;if(k!==null){if(W)Z.flags&256?(m2(Z),Z.flags&=-257,Z=dq($,Z,G)):Z.memoizedState!==null?(d2(Z),Z.child=$.child,Z.flags|=128,Z=null):(d2(Z),R=U.fallback,P=Z.mode,U=sJ({mode:"visible",children:U.children},P),R=a8(R,P,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=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=jN,Z=s$(null,U));else if(m2(Z),jB(),(G&536870912)!==0&&tJ(Z),TY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;P=Y.stck;var S=Y.cstck}B=f,Y=R,U=P,k=S,R=B,P=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=P===void 0?null:P,U={value:R,source:null,stack:Y},typeof Y==="string"&&UN.set(R,U),y$(U),Z=dq($,Z,G)}else if(s1||G7($,Z,G,!1),Y=(G&$.childLanes)!==0,s1||Y){if(Y=W1,Y!==null&&(U=l8(Y,G),U!==0&&U!==C.retryLane))throw C.retryLane=U,C5($,U),D1(Y,$,U),SN;zY(k)||eJ(),Z=dq($,Z,G)}else zY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=C.treeContext,L1=H6(k.nextSibling),W5=Z,s0=!0,Z8=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=mq(Z,U.children),Z.flags|=4096);return Z}}if(B)return d2(Z),R=U.fallback,P=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=a8(R,P,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,s$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=uq(G):(P=R.cachePool,P!==null?(S=c1._currentValue,P=P.parent!==S?{parent:S,pool:S}:P):P=gB(),R={baseLanes:R.baseLanes|G,cachePool:P}),U.memoizedState=R,U.childLanes=xq($,Y,G),Z.memoizedState=jN,s$($.child,U);return C!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&tJ(Z),m2(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=sJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function sJ($,Z){return $=L(22,$,null,Z),$.lanes=0,$}function dq($,Z,G){return z9(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&gZ)!==0)?(R=R&m7|gZ,Z.flags|=128):R&=m7,C0(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,!lG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")lG[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"?(lG[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"&&(lG[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=a(W),typeof R==="function"){if(R=R.call(W))for(var P=R.next(),C=0;!P.done;P=R.next()){if(!sB(P.value,C))break $;C++}}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?(f2(),W=CZ):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&&DJ($)===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&&DJ($)===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 a4($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),b5=-1,K8|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(G7($,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&&PJ($)?!0:!1}function $_($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),g2(Z,c1,$.memoizedState.cache),e8();break;case 27:case 5:r0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:g2(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 m2(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return xH($,Z,G);return m2(Z),$=a4($,Z,G),$!==null?$.sibling:null}m2(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(G7($,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),C0(u1,u1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,kH($,Z,G,Z.pendingProps);case 24:g2(Z,c1,$.memoizedState.cache)}return a4($,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,$_($,Z,G);s1=($.flags&131072)!==0?!0:!1}else{if(s1=!1,Y=s0)f2(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,f2(),EB(Z,CZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=h2(Z.elementType),Z.type=$,typeof $==="function")xX($)?(Y=X9($,Y),Z.tag=1,Z.type=$=i8($),Z=hH(null,Z,$,Y,G)):(Z.tag=0,hq(Z,$),Z.type=$=i8($),Z=gq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===UZ){Z.tag=11,Z.type=$=uX($),Z=DH(null,Z,$,Y,G);break $}else if(U===MG){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=o($)||$,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=X9(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),p$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,g2(Z,c1,Y),Y!==B.cache&&oX(Z,[c1],G,!0),d$(),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),y$(U),Z=uH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}L1=H6($.firstChild),W5=Z,s0=!0,Z8=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(e8(),Y===U){Z=a4($,Z,G);break $}H5($,Z,Y,G)}Z=Z.child}return Z;case 26:return rJ($,Z),$===null?(G=MF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:s0||(G=Z.type,$=Z.pendingProps,Y=D0(n2.current),Y=JG(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(n2.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&&(t8(Z,0).serverProps=U)),W5=Z,v6=!0,U=L1,r2(Z.type)?(eN=U,L1=H6(Y.firstChild)):L1=U),H5($,Z,Z.pendingProps.children,G),rJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&s0&&(B=B0(),Y=DX(Z.type,B.ancestorInfo),U=L1,(W=!U)||(W=d_(U,Z.type,Z.pendingProps,v6),W!==null?(Z.stateNode=W,j4||(B=eM(W,Z.type,Z.pendingProps,B),B!==null&&(t8(Z,0).serverProps=B)),W5=Z,L1=H6(W.firstChild),v6=!1,B=!0):B=!1,W=!B),W&&(Y&&zJ(Z,U),y2(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,rC,null,null,G),ZQ._currentValue=U),rJ($,Z),H5($,Z,Y,G),Z.child;case 6:return $===null&&s0&&(G=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,G=Y!=null?NJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=L1,(Y=!$)||(Y=p_($,Z.pendingProps,v6),Y!==null?(Z.stateNode=Y,W5=Z,L1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&zJ(Z,$),y2(Z))),null;case 13:return xH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=z9(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?")),g2(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."),$9(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 eC($,Z,G);case 22:return kH($,Z,G,Z.pendingProps);case 24:return $9(Z),Y=O1(c1),$===null?(U=eX(),U===null&&(U=W1,B=iX(),U.pooledCache=B,Z9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Zq(Z),g2(Z,c1,U)):(($.lanes&G)!==0&&(Qq($,Z),p$(Z,null,null,G),d$()),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),g2(Z,c1,Y)):(Y=B.cache,g2(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&PV)!==I0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(LM())$.flags|=8192;else throw R9=uG,TN}else $.flags&=-16777217}function pH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&g6)!==S9)$.flags&=-16777217;else if($.flags|=16777216,!zF(Z))if(LM())$.flags|=8192;else throw R9=uG,TN}function nJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?t9():536870912,$.lanes|=Z,_9|=Z)}function n$($,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 Z_($,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)J7(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(n2.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(),J7(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(J7(Z))DB(Z,W);else{switch(B=D0(n2.current),DX(U,W.ancestorInfo),W=W.context,B=JG(B),W){case e7:B=B.createElementNS(_7,U);break;case B3:B=B.createElementNS(PG,U);break;default:switch(U){case"svg":B=B.createElementNS(_7,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]"||i6.call(aw,U)||(aw[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(n2.current),G=B0(),J7(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&&(t8(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=UF($,G,Y),U!==null&&(t8(Z,0).serverProps=U))}$[F5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||nM($.nodeValue,G)?!0:!1,$||y2(Z,!0)}else U=G.ancestorInfo.current,U!=null&&NJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=JG($).createTextNode(Y),$[F5]=Z,Z.stateNode=$}return R1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=J7(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(),e8(),(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=J7(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(),e8(),(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&&u$(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),nJ(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(P0(u1,Z),Y=Z.memoizedState,Y===null)return R1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)n$(Y,!1);else{if(S1!==M2||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=DJ($),B!==null){Z.flags|=128,n$(Y,!1),$=B.updateQueue,Z.updateQueue=$,nJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)VB(G,$),G=G.sibling;return C0(u1,u1.current&m7|gZ,Z),s0&&n4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&Y5()>tG&&(Z.flags|=128,U=!0,n$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=DJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,nJ(Z,$),n$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!s0)return R1(Z),null}else 2*Y5()-Y.renderingStartTime>tG&&G!==536870912&&(Z.flags|=128,U=!0,n$(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&m7|gZ:G&m7,C0(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&&nJ(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&&P0(W9,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 Q_($,Z){switch(lX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(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.");e8()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(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.");e8()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(Z),Z):null;case 19:return P0(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&&P0(W9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(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:P0(u1,Z);break;case 10:o4(Z.type,Z);break;case 22:case 23:K6(Z),Gq(Z),$!==null&&P0(W9,Z);break;case 24:o4(c1,Z)}}function R4($){return($.mode&f0)!==I0}function lH($,Z){R4($)?(w4(),o$(Z,$),W4()):o$(Z,$)}function sq($,Z,G){R4($)?(w4(),U7(G,$,Z),W4()):U7(G,$,Z)}function o$($,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)!==mG&&(i7=!0),Y=G0(Z,VV,G),($&k5)!==mG&&(i7=!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"?`
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,G0(Z,function(R,P){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,P)},B,W)}G=G.next}while(G!==U)}}catch(R){X1(Z,Z.return,R)}}function U7($,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)!==mG&&(i7=!0),U=Z,G0(U,OV,U,G,R),($&k5)!==mG&&(i7=!1))}Y=Y.next}while(Y!==B)}}catch(P){X1(Z,Z.return,P)}}function rH($,Z){R4($)?(w4(),o$(Z,$),W4()):o$(Z,$)}function nq($,Z,G){R4($)?(w4(),U7(G,$,Z),W4()):U7(G,$,Z)}function sH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||l7||(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 J_($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function G_($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||l7||(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=G0($,J_,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=X9($.type,$.memoizedProps),G.state=$.memoizedState,R4($)?(w4(),G0($,sW,$,Z,G),W4()):G0($,sW,$,Z,G)}function X_($){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 i$($,Z){try{G0($,X_,$)}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",fG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function q_($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",fG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function iH($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{G0($,j_,Y,Z,G,$)}catch(U){X1($,$.return,U)}}function oq($,Z,G){try{G0($,v_,$.stateNode,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function aH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&r2($.type)||$.tag===4}function iq($){$:for(;;){for(;$.sibling===null;){if($.return===null||aH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&r2($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function aq($,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&&r2($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(aq($,Z,G),$=$.sibling;$!==null;)aq($,Z,G),$=$.sibling}function oJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&r2($.type)&&(G=$.stateNode),$=$.child,$!==null))for(oJ($,Z,G),$=$.sibling;$!==null;)oJ($,Z,G),$=$.sibling}function Y_($){for(var Z,G=$.return;G!==null;){if(aH(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=iq($),oJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(JF(G),Z.flags&=-33),Z=iq($),oJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=iq($),aq($,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($,n_,$.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 N_($,Z){if($=$.containerInfo,iN=W3,$=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,P=-1,C=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||(P=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&&++C===U&&(R=W),S===B&&++k===Y&&(P=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=R===-1||P===-1?null:{start:R,end:P}}else G=null}G=G||{start:0,end:0}}else G=null;aN={focusedElem:$,selectionRange:G},W3=!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&&G_($,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||l7||($.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 P=X9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||l7||($.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,$,P,Z,$.__reactInternalSnapshotBeforeUpdate),W4()):G0(G,cW,G,$,P,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&sH(G),R&512&&i$(G,G.return);break;case 3:if(Z=i4(),T4($,G),R&64&&(R=G.updateQueue,R!==null)){if(P=null,G.child!==null)switch(G.child.tag){case 27:case 5:P=G.child.stateNode;break;case 1:P=G.child.stateNode}try{G0(G,oB,R,P)}catch(k){X1(G,G.return,k)}}$.effectDuration+=CJ(Z);break;case 27:Z===null&&R&4&&tH(G);case 26:case 5:if(T4($,G),Z===null){if(R&4)iH(G);else if(R&64){$=G.type,Z=G.memoizedProps,P=G.stateNode;try{G0(G,D_,P,$,Z,G)}catch(k){X1(G,G.return,k)}}}R&512&&i$(G,G.return);break;case 12:if(R&4){R=i4(),T4($,G),$=G.stateNode,$.effectDuration+=h$(R);try{G0(G,oH,G,Z,Q8,$.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=R_.bind(null,G),c_($,R))));break;case 22:if(R=G.memoizedState!==null||H2,!R){Z=Z!==null&&Z.memoizedState!==null||n1,P=H2;var C=n1;H2=R,(n1=Z)&&!C?(P4($,G,(G.subtreeFlags&8772)!==0),(G.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&HJ(G,T0,L0)):T4($,G),H2=P,n1=C}break;case 30:break;default:T4($,G)}(G.mode&f0)!==I0&&0<=T0&&0<=L0&&((v1||0.05<A1)&&U4(G,T0,L0,A1,E1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<L0-T0&&(eH(G.return.alternate,G.return)||N4(G,T0,L0,"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&&Z0(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(_5&&typeof _5.onCommitFiberUnmount==="function")try{_5.onCommitFiberUnmount(L7,G)}catch(C){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",C))}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,P=p5;r2(G.type)&&(o1=G.stateNode,p5=!1),e4($,Z,G),G0(G,XZ,G.stateNode),o1=R,p5=P;break;case 5:n1||z4(G,Z);case 6:if(R=o1,P=p5,o1=null,e4($,Z,G),o1=R,p5=P,o1!==null)if(p5)try{G0(G,f_,o1,G.stateNode)}catch(C){X1(G,Z,C)}else try{G0(G,k_,o1,G.stateNode)}catch(C){X1(G,Z,C)}break;case 18:o1!==null&&(p5?($=o1,XF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),R7($)):XF(o1,G.stateNode));break;case 4:R=o1,P=p5,o1=G.stateNode.containerInfo,p5=!0,e4($,Z,G),o1=R,p5=P;break;case 0:case 11:case 14:case 15:U7(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<=L0&&(v1||0.05<A1)&&U4(G,T0,L0,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,r_,$)}catch(G){X1(Z,Z.return,G)}}}function GM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,s_,$)}catch(G){X1(Z,Z.return,G)}}function U_($){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 iJ($,Z){var G=U_($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),E4)if(r7!==null&&s7!==null)$Z(s7,r7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=z_.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(),P=B;$:for(;P!==null;){switch(P.tag){case 27:if(r2(P.type)){o1=P.stateNode,p5=!1;break $}break;case 5:o1=P.stateNode,p5=!1;break $;case 3:case 4:o1=P.stateNode.containerInfo,p5=!0;break $}P=P.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<=L0&&0.05<L0-T0&&N4(W,T0,L0,"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&&(U7(k5|f6,$,$.return),o$(k5|f6,$),sq($,$.return,z6|f6));break;case 1:if(m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&64&&H2&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var P=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=P===null?W:P.concat(W)}break;case 26:if(P=Z4,m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&4){var C=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,P=P.ownerDocument||P;Z:switch(R){case"title":if(C=P.getElementsByTagName("title")[0],!C||C[HZ]||C[F5]||C.namespaceURI===_7||C.hasAttribute("itemprop"))C=P.createElement(R),P.head.insertBefore(C,P.querySelector("head > title"));M5(C,R,W),C[F5]=$,z0(C),R=C;break $;case"link":var k=wF("link","href",P).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(C=k[f],C.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&C.getAttribute("rel")===(W.rel==null?null:W.rel)&&C.getAttribute("title")===(W.title==null?null:W.title)&&C.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}C=P.createElement(R),M5(C,R,W),P.head.appendChild(C);break;case"meta":if(k=wF("meta","content",P).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(C=k[f],B1(W.content,"content"),C.getAttribute("content")===(W.content==null?null:""+W.content)&&C.getAttribute("name")===(W.name==null?null:W.name)&&C.getAttribute("property")===(W.property==null?null:W.property)&&C.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&C.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}C=P.createElement(R),M5(C,R,W),P.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}C[F5]=$,z0(C),R=C}$.stateNode=R}else RF(P,$.type,$.stateNode);else $.stateNode=WF(P,R,$.memoizedProps);else C!==R?(C===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):C.count--,R===null?RF(P,$.type,$.stateNode):WF(P,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){P=$.stateNode;try{G0($,JF,P)}catch(J0){X1($,$.return,J0)}}R&4&&$.stateNode!=null&&(P=$.memoizedProps,oq($,P,W!==null?W.memoizedProps:P)),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,P=$.stateNode;try{G0($,b_,P,W,R)}catch(J0){X1($,$.return,J0)}}break;case 3:if(P=i4(),H3=null,C=Z4,Z4=GG(Z.containerInfo),m5(Z,$),Z4=C,d5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,l_,Z.containerInfo)}catch(J0){X1($,$.return,J0)}DN&&(DN=!1,qM($)),Z.effectDuration+=CJ(P);break;case 4:R=Z4,Z4=GG($.stateNode.containerInfo),m5(Z,$),d5($),Z4=R;break;case 12:R=i4(),m5(Z,$),d5($),$.stateNode.effectDuration+=h$(R);break;case 31:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 13:m5(Z,$),d5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(aG=Y5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 22:P=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=H2,e=n1;if(H2=g||P,n1=e||S,m5(Z,$),n1=e,H2=g,S&&!P&&!g&&!e&&($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&HJ($,T0,L0),d5($),R&8192)$:for(Z=$.stateNode,Z._visibility=P?Z._visibility&~LZ:Z._visibility|LZ,!P||W===null||S||H2||n1||(q9($),($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&N4($,T0,L0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{C=S.stateNode,P?G0(S,g_,C):G0(S,x_,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,P?G0(S,h_,k):G0(S,m_,k,S.memoizedProps)}catch(J0){X1(S,S.return,J0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,P?G0(S,y_,f):G0(S,u_,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,iJ($,W))));break;case 19:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 30:break;case 21:break;default:m5(Z,$),d5($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&((v1||0.05<A1)&&U4($,T0,L0,A1,E1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<L0-T0&&(eH($.return.alternate,$.return)||N4($,T0,L0,"Mount"))),U6(G),H4(Y),E1=U,v1=B}function d5($){var Z=$.flags;if(Z&2){try{G0($,Y_,$)}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),q9($);break;case 1:z4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&nH($,$.return,B),q9($);break;case 27:G0($,XZ,$.stateNode);case 26:case 5:z4($,$.return),q9($);break;case 22:$.memoizedState===null&&q9($);break;case 30:q9($);break;default:q9($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4($,T0,L0,A1,E1),U6(Z),H4(G),E1=Y,v1=U}function q9($){for($=$.child;$!==null;)YM($),$=$.sibling}function NM($,Z,G,Y){var U=N6(),B=B4(),W=M4(),R=F4(),P=G.flags;switch(G.tag){case 0:case 11:case 15:P4($,G,Y),lH(G,z6);break;case 1:if(P4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,zN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,lC,Z,$)}catch(C){X1(G,G.return,C)}}Y&&P&64&&sH(G),i$(G,G.return);break;case 27:tH(G);case 26:case 5:P4($,G,Y),Y&&Z===null&&P&4&&iH(G),i$(G,G.return);break;case 12:if(Y&&P&4){P=i4(),P4($,G,Y),Y=G.stateNode,Y.effectDuration+=h$(P);try{G0(G,oH,G,Z,Q8,Y.effectDuration)}catch(C){X1(G,G.return,C)}}else P4($,G,Y);break;case 31:P4($,G,Y),Y&&P&4&&JM($,G);break;case 13:P4($,G,Y),Y&&P&4&&GM($,G);break;case 22:G.memoizedState===null&&P4($,G,Y),i$(G,G.return);break;case 30:break;default:P4($,G,Y)}(G.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4(G,T0,L0,A1,E1),U6(U),H4(B),E1=W,v1=R}function P4($,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&&Z9($),G!=null&&g$(G))}function eq($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Z9(Z),$!=null&&g$($))}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(),P=F4(),C=t2,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&MJ(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&&MJ(Z,Z.actualStartTime,U,Z5,G)),o6($,Z,G,Y,U);break;case 3:var f=i4(),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&&(Z9(Y),G!=null&&g$(G))),$.passiveEffectDuration+=CJ(f);break;case 12:if(k&2048){k=i4(),o6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=h$(k);try{G0(Z,q_,Z,Z.alternate,Q8,$.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&Q2?o6($,Z,G,Y,U):a$($,Z,G,Y,U):S._visibility&Q2?o6($,Z,G,Y,U):(S._visibility|=Q2,K7($,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-$&&HJ(Z,$,U),0<=T0&&0<=L0&&0.05<L0-T0&&HJ(Z,T0,L0))),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<=L0&&((v1||0.05<A1)&&U4(Z,T0,L0,A1,E1),$&&0.05<L0-T0&&N4(Z,T0,L0,"Mount"))}U6(B),H4(W),E1=R,v1=P,t2=C}function K7($,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(),P=M4(),C=F4(),k=t2;U&&(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&MJ(Z,Z.actualStartTime,B,Z5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:K7($,Z,G,Y,U,B),rH(Z,f5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&Q2?K7($,Z,G,Y,U,B):a$($,Z,G,Y,B):(S._visibility|=Q2,K7($,Z,G,Y,U,B)),U&&f&2048&&tq(Z.alternate,Z);break;case 24:K7($,Z,G,Y,U,B),U&&f&2048&&eq(Z.alternate,Z);break;default:K7($,Z,G,Y,U,B)}(Z.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4(Z,T0,L0,A1,E1),U6(W),H4(R),E1=P,v1=C,t2=k}function a$($,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,P=Y,C=Z!==null?Z.actualStartTime:U,k=t2;(B.mode&f0)!==I0&&0<B.actualStartTime&&(B.flags&1)!==0&&MJ(B,B.actualStartTime,C,Z5,R);var f=B.flags;switch(B.tag){case 22:a$(W,B,R,P,C),f&2048&&tq(B.alternate,B);break;case 24:a$(W,B,R,P,C),f&2048&&eq(B.alternate,B);break;default:a$(W,B,R,P,C)}t2=k,B=Z}}function B7($,Z,G){if($.subtreeFlags&mZ)for($=$.child;$!==null;)BM($,Z,G),$=$.sibling}function BM($,Z,G){switch($.tag){case 26:B7($,Z,G),$.flags&mZ&&$.memoizedState!==null&&a_(G,Z4,$.memoizedState,$.memoizedProps);break;case 5:B7($,Z,G);break;case 3:case 4:var Y=Z4;Z4=GG($.stateNode.containerInfo),B7($,Z,G),Z4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=mZ,mZ=16777216,B7($,Z,G),mZ=Y):B7($,Z,G));break;default:B7($,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 t$($){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<=L0&&0.05<L0-T0&&N4(Y,T0,L0,"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:t$($),$.flags&2048&&nq($,$.return,f5|f6);break;case 3:var B=i4();t$($),$.stateNode.passiveEffectDuration+=CJ(B);break;case 12:B=i4(),t$($),$.stateNode.passiveEffectDuration+=h$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&Q2&&($.return===null||$.return.tag!==13)?(B._visibility&=~Q2,aJ($),($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&N4($,T0,L0,"Disconnect")):t$($);break;default:t$($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4($,T0,L0,A1,E1),U6(Z),H4(G),v1=U,E1=Y}function aJ($){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<=L0&&0.05<L0-T0&&N4(Y,T0,L0,"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),aJ($);break;case 22:var B=$.stateNode;B._visibility&Q2&&(B._visibility&=~Q2,aJ($));break;default:aJ($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4($,T0,L0,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(),P=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&&Z9(U));break;case 24:g$(Y.memoizedState.cache)}if((Y.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&U4(Y,T0,L0,A1,E1),U6(B),H4(W),v1=P,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 K_(){DV.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((a0&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 $=wG;wG<<=1,(wG&3932160)===0&&(wG=262144),l5=$}else l5=536870912;return $=R6.current,$!==null&&($.flags|=32),l5}function D1($,Z,G){if(i7&&console.error("useInsertionEffect must not schedule updates."),dN&&(Z3=!0),$===W1&&(U1===L9||U1===C9)||$.cancelPendingCommit!==null)M7($,0),c2($,g0,l5,!1);if(v2($,G),(a0&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&&O$($,Z,G),P_(Z),$===W1&&((a0&Q5)===K5&&(B8|=G),S1===N8&&c2($,g0,l5,!1)),L4($)}function zM($,Z,G){if((a0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(g0!==0&&h0!==null){var Y=h0,U=Y5();switch(yW){case cZ:case L9:var B=EZ;P1&&((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 C9:B=EZ,P1&&((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:P1&&(Y=U-EZ,3>Y||console.timeStamp("Blocked",EZ,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||d8($,Z))?H_($,Z):ZY($,Z,!0);var W=G;do{if(B===M2){n7&&!G&&c2($,Z,0,!1),Z=U1,EZ=l1(),yW=Z;break}else{if(Y=Y5(),U=$.current.alternate,W&&!B_(U)){q6(Z),U=N5,B=Y,!P1||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")),Y9(Z,Y),B=ZY($,Z,!1),W=!1;continue}if(B===P9){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),Y9(Z,Y),Z=R;$:{Y=$,B=W,W=rZ;var P=Y.current.memoizedState.isDehydrated;if(P&&(M7(Y,R).flags|=256),R=ZY(Y,R,!1),R!==P9){if(kN&&!P){Y.errorRecoveryDisabledLanes|=B,B8|=B,B=N8;break $}Y=y5,y5=W,Y!==null&&(y5===null?y5=Y:y5.push.apply(y5,Y))}B=R}if(W=!1,B!==P9)continue;else Y=Y5()}}if(B===pZ){q6(Z),gX(N5,Y,Z,h1),Y9(Z,Y),M7($,0),c2($,Z,0,!0);break}$:{switch(G=$,B){case M2:case pZ:throw Error("Root did not complete. This is a bug in React.");case N8:if((Z&4194048)!==Z)break;case sG:q6(Z),zB(N5,Y,Z,h1),Y9(Z,Y),U=Z,(U&127)!==0?vG=Y:(U&4194048)!==0&&(bG=Y),c2(G,Z,l5,!U8);break $;case P9:y5=null;break;case rG:case jw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)QY(G,U,Z,y5,sZ,iG,l5,B8,_9,B,null,null,N5,Y);else{if((Z&62914560)===Z&&(W=aG+bw-Y5(),10<W)){if(c2(G,Z,l5,!U8),m8(G,0,!0)!==0)break $;Q4=Z,G.timeoutHandle=tw(TM.bind(null,G,U,y5,sZ,iG,Z,l5,B8,_9,U8,B,"Throttled",N5,Y),W);break $}TM(G,U,y5,sZ,iG,Z,l5,B8,_9,U8,B,null,N5,Y)}}}break}while(1);L4($)}function TM($,Z,G,Y,U,B,W,R,P,C,k,f,S,g){$.timeoutHandle=A9;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?aG-Y5():(B&4194048)===B?vw-Y5():0,e=t_(J0,e),e!==null){Q4=B,$.cancelPendingCommit=e(QY.bind(null,$,Z,B,G,Y,U,W,R,P,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)),c2($,B,W,!C);return}}QY($,Z,B,G,Y,U,W,R,P,k,J0,f,S,g)}function B_($){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 c2($,Z,G,Y){Z&=~fN,Z&=~B8,$.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&&p8($,G,Z)}function H7(){return(a0&(Q5|T6))===K5?(ZZ(0,!1),!1):!0}function $Y(){if(h0!==null){if(U1===c5)var $=h0.return;else $=h0,TJ(),Bq($),u7=null,yZ=0,$=h0;for(;$!==null;)cH($.alternate,$),$=$.return;h0=null}}function Y9($,Z){($&127)!==0&&(J8=Z),($&4194048)!==0&&(v4=Z),($&62914560)!==0&&(kW=Z),($&2080374784)!==0&&(fW=Z)}function M7($,Z){P1&&(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===rG||S1===N8)zB(G,N5,Z,h1);else{var Y=N5,U=h1;if(P1&&!(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)}}Y9(g0,N5)}if(G=h1,h1=null,(Z&127)!==0){h1=IZ,U=0<=D4&&D4<J8?J8:D4,Y=0<=H9&&H9<J8?J8:H9,B=0<=Y?Y:0<=U?U:N5,0<=vG?(q6(2),TB(vG,B,Z,G)):(kG&127)!==0&&(q6(2),f$(J8,B,N2)),G=U;var R=Y,P=VZ,C=0<y7,k=G8===_Z,f=G8===DG;if(U=N5,Y=IZ,B=MN,W=FN,P1){if(l0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,P!==null&&G>R){var S=C?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+P,R,G,l0,p0,S)):console.timeStamp(C?"Consecutive":"Event: "+P,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,G8=0,FN=MN=null,vG=-1.1,y7=H9,H9=-1.1,J8=l1()}if((Z&4194048)!==0&&(h1=OZ,U=0<=Y2&&Y2<v4?v4:Y2,G=0<=b6&&b6<v4?v4:b6,Y=0<=X8&&X8<v4?v4:X8,B=0<=Y?Y:0<=G?G:N5,0<=bG?(q6(256),TB(bG,B,Z,h1)):(kG&4194048)!==0&&(q6(256),f$(v4,B,N2)),f=Y,R=M9,P=0<q8,C=WN===DG,B=N5,Y=OZ,W=vW,k=bW,P1&&(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=P?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,P?"Consecutive":"Event: "+R,f,U,l0,p0,S)):console.timeStamp(P?"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=C?"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=Y2=-1.1,WN=0,bG=-1.1,q8=X8,X8=-1.1,v4=l1()),(Z&62914560)!==0&&(kG&62914560)!==0&&(q6(4194304),f$(kW,N5,N2)),(Z&2080374784)!==0&&(kG&2080374784)!==0&&(q6(268435456),f$(fW,N5,N2)),G=$.timeoutHandle,G!==A9&&($.timeoutHandle=A9,cV(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),Q4=0,$Y(),W1=$,h0=G=s4($.current,null),g0=Z,U1=c5,P6=null,U8=!1,n7=d8($,Z),kN=!1,S1=M2,_9=l5=fN=B8=K8=0,y5=rZ=null,iG=!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,FJ(),$=OW(),1000<$-VW&&(x.recentlyCreatedOwnerStacks=0,VW=$),e6.discardPendingWarnings(),G}function PM($,Z){V0=null,x.H=xZ,x.getCurrentStack=null,V4=!1,F6=null,Z===h7||Z===hG?(Z=mB(),U1=cZ):Z===TN?(Z=mB(),U1=Dw):U1=Z===SN?bN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?lZ:nG,P6=Z;var G=h0;G===null?(S1=pZ,cJ($,Y6(Z,$.current))):G.mode&f0&&tX(G)}function LM(){var $=R6.current;return $===null?!0:(g0&4194048)===g0?k6===null?!0:!1:(g0&62914560)===g0||(g0&536870912)!==0?$===k6:!1}function CM(){var $=x.H;return x.H=xZ,$===null?xZ:$}function _M(){var $=x.A;return x.A=jV,$}function tJ($){h1===null&&(h1=$._debugTask==null?null:$._debugTask)}function eJ(){S1=N8,U8||(g0&4194048)!==g0&&R6.current!==null||(n7=!0),(K8&134217727)===0&&(B8&134217727)===0||W1===null||c2(W1,g0,l5,!1)}function ZY($,Z,G){var Y=a0;a0|=Q5;var U=CM(),B=_M();if(W1!==$||g0!==Z){if(E4){var W=$.memoizedUpdaters;0<W.size&&($Z($,g0),W.clear()),b2($,Z)}sZ=null,M7($,Z)}Z=!1,W=S1;$:do try{if(U1!==c5&&h0!==null){var R=h0,P=P6;switch(U1){case bN:$Y(),W=sG;break $;case cZ:case L9:case C9:case lZ:R6.current===null&&(Z=!0);var C=U1;if(U1=c5,P6=null,F7($,R,P,C),G&&n7){W=M2;break $}break;default:C=U1,U1=c5,P6=null,F7($,R,P,C)}}IM(),W=S1;break}catch(k){PM($,k)}while(1);return Z&&$.shellSuspendCounter++,TJ(),a0=Y,x.H=U,x.A=B,h0===null&&(W1=null,g0=0,FJ()),W}function IM(){for(;h0!==null;)VM(h0)}function H_($,Z){var G=a0;a0|=Q5;var Y=CM(),U=_M();if(W1!==$||g0!==Z){if(E4){var B=$.memoizedUpdaters;0<B.size&&($Z($,g0),B.clear()),b2($,Z)}sZ=null,tG=Y5()+kw,M7($,Z)}else n7=d8($,Z);$:do try{if(U1!==c5&&h0!==null)Z:switch(Z=h0,B=P6,U1){case nG:U1=c5,P6=null,F7($,Z,B,nG);break;case L9:case C9:if(uB(B)){U1=c5,P6=null,OM(Z);break}Z=function(){U1!==L9&&U1!==C9||W1!==$||(U1=oG),L4($)},B.then(Z,Z);break $;case cZ:U1=oG;break $;case Dw:U1=vN;break $;case oG:uB(B)?(U1=c5,P6=null,OM(Z)):(U1=c5,P6=null,F7($,Z,B,oG));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,P6=null;var P=R.sibling;if(P!==null)h0=P;else{var C=R.return;C!==null?(h0=C,$G(C)):h0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}U1=c5,P6=null,F7($,Z,B,vN);break;case lZ:U1=c5,P6=null,F7($,Z,B,lZ);break;case bN:$Y(),S1=sG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?IM():M_();break}catch(k){PM($,k)}while(1);if(TJ(),x.H=Y,x.A=U,a0=G,h0!==null)return M2;return W1=null,g0=0,FJ(),S1}function M_(){for(;h0!==null&&!BI();)VM(h0)}function VM($){var Z=$.alternate;($.mode&f0)!==I0?(aX($),Z=G0($,lq,Z,$,k4),tX($)):Z=G0($,lq,Z,$,k4),$.memoizedProps=$.pendingProps,Z===null?$G($):h0=Z}function OM($){var Z=G0($,F_,$);$.memoizedProps=$.pendingProps,Z===null?$G($):h0=Z}function F_($){var Z=$.alternate,G=($.mode&f0)!==I0;switch(G&&aX($),$.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 F7($,Z,G,Y){TJ(),Bq(Z),u7=null,yZ=0;var U=Z.return;try{if(tC($,U,Z,G,g0)){S1=pZ,cJ($,Y6(G,$.current)),h0=null;return}}catch(B){if(U!==null)throw h0=U,B;S1=pZ,cJ($,Y6(G,$.current)),h0=null;return}if(Z.flags&32768){if(s0||Y===nG)$=!0;else if(n7||(g0&536870912)!==0)$=!1;else if(U8=$=!0,Y===L9||Y===C9||Y===cZ||Y===lZ)Y=R6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);EM(Z,$)}else $G(Z)}function $G($){var Z=$;do{if((Z.flags&32768)!==0){EM(Z,U8);return}var G=Z.alternate;if($=Z.return,aX(Z),G=G0(Z,Z_,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===M2&&(S1=jw)}function EM($,Z){do{var G=Q_($.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=sG,h0=null}function QY($,Z,G,Y,U,B,W,R,P,C,k,f,S,g){$.cancelPendingCommit=null;do e$();while(i1!==M8);if(e6.flushLegacyContextWarning(),e6.flushPendingUnsafeLifecycleWarnings(),(a0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(q6(G),C===P9?gX(S,g,G,h1):Y!==null?uC(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,h1):hC(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,JJ($,G,B,W,R,P),$===W1&&(h0=W1=null,g0=0),o7=Z,F8=$,Q4=G,hN=B,xN=U,xw=Y,uN=g,mw=f,J4=eG,dw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,T_(P7,function(){return eZ=window.event,J4===eG&&(J4=gN),vM(),null})):($.callbackNode=null,$.callbackPriority=0),q2=null,Q8=l1(),f!==null&&xC(g,Q8,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=a0,a0|=T6;try{N_($,Z,G)}finally{a0=W,q1.p=U,x.T=Y}}i1=yw,AM(),SM(),jM()}}function AM(){if(i1===yw){i1=M8;var $=F8,Z=o7,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=a0;a0|=T6;try{r7=G,s7=$,_J(),XM(Z,$),s7=r7=null,G=aN;var W=WB($.containerInfo),R=G.focusedElem,P=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&FB(R.ownerDocument.documentElement,R)){if(P!==null&&kX(R)){var{start:C,end:k}=P;if(k===void 0&&(k=C),"selectionStart"in R)R.selectionStart=C,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(P.start,e),z1=P.end===void 0?J0:Math.min(P.end,e);!g.extend&&J0>z1&&(W=z1,z1=J0,J0=W);var o0=MB(R,J0),A=MB(R,z1);if(o0&&A&&(g.rangeCount!==1||g.anchorNode!==o0.node||g.anchorOffset!==o0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var j=f.createRange();j.setStart(o0.node,o0.offset),g.removeAllRanges(),J0>z1?(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}}W3=!!iN,aN=iN=null}finally{a0=B,q1.p=U,x.T=Y}}$.current=Z,i1=gw}}function SM(){if(i1===gw){i1=M8;var $=dw;if($!==null){Q8=l1();var Z=X2,G=Q8;!P1||G<=Z||(N2?N2.run(console.timeStamp.bind(console,$,Z,G,l0,p0,"secondary-light")):console.timeStamp($,Z,G,l0,p0,"secondary-light"))}$=F8,Z=o7,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=a0;a0|=T6;try{r7=G,s7=$,_J(),$M($,Z.alternate,Z),s7=r7=null}finally{a0=B,q1.p=U,x.T=Y}}$=uN,Z=mw,X2=l1(),$=Z===null?$:Q8,Z=X2,G=J4===yN,Y=h1,q2!==null?PB($,Z,q2,!1,Y):!P1||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")),i1=hw}}function jM(){if(i1===uw||i1===hw){if(i1===uw){var $=X2;X2=l1();var Z=X2,G=J4===yN;!P1||Z<=$||(N2?N2.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)}i1=M8,HI(),$=F8;var Y=o7;Z=Q4,G=xw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?i1=$3:(i1=M8,o7=F8=null,DM($,$.pendingLanes),I9=0,oZ=null);var B=$.pendingLanes;if(B===0&&(H8=null),U||yM($),B=_(Z),Y=Y.stateNode,_5&&typeof _5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case W6:var R=xY;break;case a6:R=mY;break;case A4:R=P7;break;case zG:R=dY;break;default:R=P7}_5.onCommitFiberRoot(L7,Y,R,W)}catch(f){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",f))}if(E4&&$.memoizedUpdaters.clear(),K_(),G!==null){W=x.T,R=q1.p,q1.p=W6,x.T=null;try{var P=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var C=G[Y],k=W_(C.stack);G0(C.source,P,C.value,k)}}finally{x.T=W,q1.p=R}}(Q4&3)!==0&&e$(),L4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(yG=!0,$===mN?nZ++:(nZ=0,mN=$)):nZ=0,U||Y9(Z,X2),ZZ(0,!1)}}function W_($){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,g$(Z)))}function e$(){return AM(),SM(),jM(),vM()}function vM(){if(i1!==$3)return!1;var $=F8,Z=hN;hN=0;var G=_(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=F8;var W=Q4;if(i1=M8,o7=F8=null,Q4=0,(a0&(Q5|T6))!==K5)throw Error("Cannot flush passive effects while already rendering.");q6(W),dN=!0,Z3=!1;var R=0;if(q2=null,R=Y5(),J4===fw)f$(X2,R,N2);else{var P=X2,C=R,k=J4===gN;!P1||C<=P||(h1?h1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",P,C,l0,p0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",P,C,l0,p0,"secondary-light"))}P=a0,a0|=T6;var f=Y.current;_J(),MM(f);var S=Y.current;f=uN,_J(),UM(Y,S,W,B,f),yM(Y),a0=P;var g=Y5();if(S=R,f=h1,q2!==null?PB(S,g,q2,!0,f):!P1||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")),Y9(W,g),ZZ(0,!1),Z3?Y===oZ?I9++:(I9=0,oZ=Y):I9=0,Z3=dN=!1,_5&&typeof _5.onPostCommitFiberRoot==="function")try{_5.onPostCommitFiberRoot(L7,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),$=x2($,Z,2),$!==null&&(v2($,2),L4($))}function X1($,Z,G){if(i7=!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"&&(H8===null||!H8.has(Y))){$=Y6(G,$),fB($),G=fq(2),Y=x2(Z,G,2),Y!==null&&(yq(G,Y,Z,$),v2(Y,2),L4(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 JY($,Z,G){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new vV;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=w_.bind(null,$,Z,G),E4&&$Z($,G),Z.then(Y,Y))}function w_($,Z,G){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>D4&&(J8=D4=l1(),IZ=jG("Promise Resolved"),G8=DG):(G&4194048)!==0&&0>b6&&(v4=b6=l1(),OZ=jG("Promise Resolved"),WN=DG),wM()&&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===$&&(g0&G)===G&&(S1===N8||S1===rG&&(g0&62914560)===g0&&Y5()-aG<bw?(a0&Q5)===K5&&M7($,0):fN|=G,_9===g0&&(_9=0)),L4($)}function kM($,Z){Z===0&&(Z=t9()),$=C5($,Z),$!==null&&(v2($,Z),L4($))}function R_($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),kM($,G)}function z_($,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===HG;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((a0&Q5)===K5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",Q3!==null){if(Q3.has(Z))return;Q3.add(Z)}else Q3=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 $Z($,Z){E4&&$.memoizedUpdaters.forEach(function(G){O$($,G,Z)})}function T_($,Z){var G=x.actQueue;return G!==null?(G.push(Z),fV):uY($,Z)}function P_($){wM()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,86 +172,86 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function 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 L4($){$!==a7&&$.next===null&&(a7===null?J3=a7=$:a7=a7.next=$),G3=!0,x.actQueue!==null?cN||(cN=!0,mM()):pN||(pN=!0,mM())}function ZZ($,Z){if(!lN&&G3){lN=!0;do{var G=!1;for(var Y=J3;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=m8(Y,Y===W1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==A9),(B&3)===0||d8(Y,B)||(G=!0,xM(Y,B));Y=Y.next}}while(G);lN=!1}}function L_(){eZ=window.event,XY()}function XY(){G3=cN=pN=!1;var $=0;W8!==0&&A_()&&($=W8);for(var Z=Y5(),G=null,Y=J3;Y!==null;){var U=Y.next,B=hM(Y,Z);if(B===0)Y.next=null,G===null?J3=U:G.next=U,U===null&&(a7=G);else if(G=Y,$!==0||(B&3)!==0)G3=!0;Y=U}i1!==M8&&i1!==$3||ZZ($,!1),W8!==0&&(W8=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,P=U[W];if(P===-1){if((R&G)===0||(R&Y)!==0)U[W]=_X(R,Z)}else P<=Z&&($.expiredLanes|=R);B&=~R}if(Z=W1,G=g0,G=m8($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==A9),Y=$.callbackNode,G===0||$===Z&&(U1===L9||U1===C9)||$.cancelPendingCommit!==null)return Y!==null&&qY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||d8($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==rN)qY(Y);else return Z;switch(_(G)){case W6:case a6:G=mY;break;case A4:G=P7;break;case zG:G=dY;break;default:G=P7}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(yG=fG=!1,eZ=window.event,i1!==M8&&i1!==$3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(J4===eG&&(J4=gN),e$()&&$.callbackNode!==G)return null;var Y=g0;if(Y=m8($,$===W1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==A9),Y===0)return null;return zM($,Y,Z),hM($,Y5()),$.callbackNode!=null&&$.callbackNode===G?uM.bind(null,$):null}function xM($,Z){if(e$())return null;fG=yG,yG=!1,zM($,Z,!0)}function qY($){$!==rN&&$!==null&&KI($)}function mM(){x.actQueue!==null&&x.actQueue.push(function(){return XY(),null}),lV(function(){(a0&(Q5|T6))!==K5?uY(xY,L_):XY()})}function YY(){if(W8===0){var $=F9;$===0&&($=WG,WG<<=1,(WG&261888)===0&&(WG=256)),W8=$}return W8}function dM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return B1($,"action"),v$(""+$)}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 C_($,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 _G("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(W8!==0){var P=W?pM(U,W):new FormData(U),C={pending:!0,data:P,method:U.method,action:B};Object.freeze(C),Eq(G,C,null,P)}}else typeof B==="function"&&(R.preventDefault(),P=W?pM(U,W):new FormData(U),C={pending:!0,data:P,method:U.method,action:B},Object.freeze(C),Eq(G,C,B,P))},currentTarget:U}]})}}function ZG($,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],P=R.instance,C=R.currentTarget;if(R=R.listener,P!==U&&B.isPropagationStopped())break $;P!==null?G0(P,ZG,B,R,C):ZG(B,R,C),U=P}else for(W=0;W<Y.length;W++){if(R=Y[W],P=R.instance,C=R.currentTarget,R=R.listener,P!==U&&B.isPropagationStopped())break $;P!==null?G0(P,ZG,B,R,C):ZG(B,R,C),U=P}}}}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(!$[X3]){$[X3]=!0,mF.forEach(function(G){G!=="selectionchange"&&(sN.has(G)||NY(G,!1,$),NY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[X3]||(Z[X3]=!0,NY("selectionchange",!1,Z))}}function lM($,Z,G,Y){switch(IF(Z)){case W6:var U=QI;break;case a6:U=JI;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 P=W.tag;if((P===3||P===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;R!==null;){if(W=Y0(R),W===null)return;if(P=W.tag,P===5||P===6||P===26||P===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}QB(function(){var C=B,k=vX(G),f=[];$:{var S=IW.get($);if(S!==void 0){var g=_G,e=$;switch($){case"keypress":if(UJ(G)===0)break $;case"keydown":case"keyup":g=aI;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=uI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=$V;break;case PW:case LW:case CW:g=dI;break;case _W:g=QV;break;case"scroll":case"scrollend":g=gI;break;case"wheel":g=GV;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=HW;break;case"toggle":case"beforetoggle":g=qV}var J0=(Z&4)!==0,z1=!J0&&($==="scroll"||$==="scrollend"),o0=J0?S!==null?S+"Capture":null:S;J0=[];for(var A=C,j;A!==null;){var b=A;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||o0===null||(b=b$(A,o0),b!=null&&J0.push(QZ(A,b,j))),z1)break;A=A.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!==MZ&&(e=G.relatedTarget||G.fromElement)&&(Y0(e)||e[i2]))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=C,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=C;if(g!==e){if(J0=KW,b="onMouseLeave",o0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")J0=HW,b="onPointerLeave",o0="onPointerEnter",A="pointer";if(z1=g==null?S:j0(g),j=e==null?S:j0(e),S=new J0(b,A+"leave",g,G,k),S.target=z1,S.relatedTarget=j,b=null,Y0(k)===C&&(J0=new J0(o0,A+"enter",e,G,k),J0.target=j,J0.relatedTarget=z1,b=J0),z1=b,g&&e)Z:{J0=__,o0=g,A=e,j=0;for(b=o0;b;b=J0(b))j++;b=0;for(var m=A;m;m=J0(m))b++;for(;0<j-b;)o0=J0(o0),j--;for(;0<b-j;)A=J0(A),b--;for(;j--;){if(o0===A||A!==null&&o0===A.alternate){J0=o0;break Z}o0=J0(o0),A=J0(A)}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=C?j0(C):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=UB;else if(YB(S))if(zW)Q0=fC;else{Q0=bC;var O0=vC}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?C&&D$(C.elementType)&&(Q0=UB):Q0=kC;if(Q0&&(Q0=Q0($,C))){NB(f,Q0,G,k);break $}O0&&O0($,S,C),$==="focusout"&&C&&S.type==="number"&&C.memoizedProps.value!=null&&OX(S,"number",S.value)}switch(O0=C?j0(C):window,$){case"focusin":if(YB(O0)||O0.contentEditable==="true")A7=O0,$N=C,PZ=null;break;case"focusout":PZ=$N=A7=null;break;case"mousedown":ZN=!0;break;case"contextmenu":case"mouseup":case"dragend":ZN=!1,wB(f,G,k);break;case"selectionchange":if(KV)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 E7?XB($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===MW&&(U0="onCompositionStart");if(U0&&(FW&&G.locale!=="ko"&&(E7||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&E7&&(R0=JB()):(a2=k,oY=("value"in a2)?a2.value:a2.textContent,E7=!0)),O0=QG(C,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=NV?AC($,G):SC($,G))U0=QG(C,"onBeforeInput"),0<U0.length&&(O0=new rI("onBeforeInput","beforeinput",null,G,k),f.push({event:O0,listeners:U0}),O0.data=R0);C_(f,$,C,G,k)}cM(f,Z)})}function QZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function QG($,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=b$($,G),U!=null&&Y.unshift(QZ($,U,B)),U=b$($,Z),U!=null&&Y.push(QZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function __($){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,P=R.alternate,C=R.stateNode;if(R=R.tag,P!==null&&P===Y)break;R!==5&&R!==26&&R!==27||C===null||(P=C,U?(C=b$(G,B),C!=null&&W.unshift(QZ(G,C,P))):U||(C=b$(G,B),C!=null&&W.push(QZ(G,C,P)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function BY($,Z){IC($,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:N9,possibleRegistrationNames:cY};D$($)||typeof Z.is==="string"||OC($,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=l2(G),l2(Z)!==G&&(Y[$]=Z))}function I_($,Z,G){Z.forEach(function(Y){G[oM(Y)]=Y==="style"?MY($):$.getAttribute(Y)})}function C4($,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===PG||$.namespaceURI===_7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function l2($){return D2($)&&(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($)),X5($)),(typeof $==="string"?$:""+$).replace(yV,`
176
+ `).replace(gV,"")}function nM($,Z){return Z=l2(Z),l2($)===Z?!0:!1}function M1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")NJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||j$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")NJ(""+Y,Z,!1),Z!=="body"&&j$($,""+Y);break;case"className":XJ($,"class",Y);break;case"tabIndex":XJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":XJ($,G,Y);break;case"style":eK($,Y,B);break;case"data":if(Z!=="object"){XJ($,"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=v$(""+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||N3||(N3=!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||Y3||(Y3=!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"||q3?Z!=="button"||U.type==null||U.type==="submit"||q3?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||N3||(N3=!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||Y3||(Y3=!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."))):(q3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(q3=!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=v$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&C4(G,Y),$.onclick=r4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&C4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&C4(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=v$(""+Y),$.setAttributeNS(V9,"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!==""||U3[G]||(U3[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",$),GJ($,"popover",Y);break;case"xlinkActuate":l4($,V9,"xlink:actuate",Y);break;case"xlinkArcrole":l4($,V9,"xlink:arcrole",Y);break;case"xlinkRole":l4($,V9,"xlink:role",Y);break;case"xlinkShow":l4($,V9,"xlink:show",Y);break;case"xlinkTitle":l4($,V9,"xlink:title",Y);break;case"xlinkType":l4($,V9,"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.'),GJ($,"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),GJ($,G,Y)):N9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&C4(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"?j$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&j$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&C4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&C4(G,Y),n0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&C4(G,Y),$.onclick=r4);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"&&C4(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,""):GJ($,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":k2("input",G),n0("invalid",$);var R=B=W=U=null,P=null,C=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":P=k;break;case"defaultChecked":C=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,P,C,W,U,!1);return;case"select":k2("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?$7($,!!Y,Z,!1):G!=null&&$7($,!!Y,G,!0);return;case"textarea":k2("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(P in G)if(G.hasOwnProperty(P)&&(Y=G[P],Y!=null))switch(P){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:M1($,Z,P,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<iZ.length;Y++)n0(iZ[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(C in G)if(G.hasOwnProperty(C)&&(Y=G[C],Y!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:M1($,Z,C,Y,G,null)}return;default:if(D$(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 V_($,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,P=null,C=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":P=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":C=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,P,C,k,B,U);return;case"select":g=W=R=S=null;for(B in G)if(P=G[B],G.hasOwnProperty(B)&&P!=null)switch(B){case"value":break;case"multiple":g=P;default:Y.hasOwnProperty(B)||M1($,Z,B,null,Y,P)}for(U in Y)if(B=Y[U],P=G[U],Y.hasOwnProperty(U)&&(B!=null||P!=null))switch(U){case"value":S=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==P&&M1($,Z,U,B,Y,P)}Y=R,Z=W,G=g,S!=null?$7($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?$7($,!!Z,Y,!0):$7($,!!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(P in Y)if(S=Y[P],g=G[P],Y.hasOwnProperty(P)&&S!==g&&(S!=null||g!=null))switch(P){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:M1($,Z,P,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(C in Y)if(S=Y[C],g=G[C],Y.hasOwnProperty(C)&&S!==g&&(S!=null||g!=null))switch(C){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,C,S,Y,g)}return;default:if(D$(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 iM($,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||qW.has(B)?(V$(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=l2(Y),l2(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 aM($,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=v$(""+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(D$(Z)){for(var P in G)if(G.hasOwnProperty(P)){var C=G[P];if(C!=null){if(N9.hasOwnProperty(P))typeof C!=="function"&&C4(P,C);else if(G.suppressHydrationWarning!==!0)switch(P){case"children":typeof C!=="string"&&typeof C!=="number"||q5("children",$.textContent,C,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,C=C?C.__html:void 0,C!=null&&(C=sM($,C),q5(P,W,C,U));continue;case"style":B.delete(P),iM($,C,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(P.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",P);continue;case"className":B.delete("class"),W=kK($,"class",C),q5("className",W,C,U);continue;default:Y.context===F2&&Z!=="svg"&&Z!=="math"?B.delete(P.toLowerCase()):B.delete(P),W=kK($,P,C),q5(P,W,C,U)}}}}else for(C in G)if(G.hasOwnProperty(C)&&(P=G[C],P!=null)){if(N9.hasOwnProperty(C))typeof P!=="function"&&C4(C,P);else if(G.suppressHydrationWarning!==!0)switch(C){case"children":typeof P!=="string"&&typeof P!=="number"||q5("children",$.textContent,P,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,P=P?P.__html:void 0,P!=null&&(P=sM($,P),W!==P&&(U[C]={__html:W}));continue;case"className":O6($,C,"class",P,B,U);continue;case"tabIndex":O6($,C,"tabindex",P,B,U);continue;case"style":B.delete(C),iM($,P,U);continue;case"multiple":B.delete(C),q5(C,$.multiple,P,U);continue;case"muted":B.delete(C),q5(C,$.muted,P,U);continue;case"autoFocus":B.delete("autofocus"),q5(C,$.autofocus,P,U);continue;case"data":if(Z!=="object"){B.delete(C),W=$.getAttribute("data"),q5(C,W,P,U);continue}case"src":case"href":if(!(P!==""||Z==="a"&&C==="href"||Z==="object"&&C==="data")){C==="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.',C,C):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.',C,C);continue}WY($,C,C,P,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(C),typeof P==="function"){B.delete(C.toLowerCase()),C==="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===hV){B.delete(C.toLowerCase()),q5(C,"function",P,U);continue}WY($,C,C.toLowerCase(),P,B,U);continue;case"xlinkHref":WY($,C,"xlink:href",P,B,U);continue;case"contentEditable":FY($,C,"contenteditable",P,B,U);continue;case"spellCheck":FY($,C,"spellcheck",P,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":FY($,C,C,P,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":aM($,C,C.toLowerCase(),P,B,U);continue;case"capture":case"download":$:{R=$;var k=W=C,f=U;if(B.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":break $;default:if(P===!1)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":break;case"boolean":if(P===!0&&R==="")break $;break;default:if(B1(P,W),R===""+P)break $}q5(W,R,P,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=C,f=U,B.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(P)||1>P)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(P)||1>P)&&(B1(P,W),R===""+P))break $}q5(W,R,P,f)}continue;case"rowSpan":tM($,C,"rowspan",P,B,U);continue;case"start":tM($,C,C,P,B,U);continue;case"xHeight":O6($,C,"x-height",P,B,U);continue;case"xlinkActuate":O6($,C,"xlink:actuate",P,B,U);continue;case"xlinkArcrole":O6($,C,"xlink:arcrole",P,B,U);continue;case"xlinkRole":O6($,C,"xlink:role",P,B,U);continue;case"xlinkShow":O6($,C,"xlink:show",P,B,U);continue;case"xlinkTitle":O6($,C,"xlink:title",P,B,U);continue;case"xlinkType":O6($,C,"xlink:type",P,B,U);continue;case"xmlBase":O6($,C,"xml:base",P,B,U);continue;case"xmlLang":O6($,C,"xml:lang",P,B,U);continue;case"xmlSpace":O6($,C,"xml:space",P,B,U);continue;case"inert":P!==""||U3[C]||(U3[C]=!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.",C)),aM($,C,C,P,B,U);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){R=$B(C),W=!1,Y.context===F2&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=C.toLowerCase(),k=LG.hasOwnProperty(k)?LG[k]||null:null,k!==null&&k!==C&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=P,E$(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(C,R,P,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&I_($,B,U),Object.keys(U).length===0?null:U}function O_($,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 P=G[Y],C=P.startTime;if(C>R)break;var{transferSize:k,initiatorType:f}=P;k&&$F(f)&&(P=P.responseEnd,W+=k*(P<R?1:(R-C)/(P-C)))}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 JG($){return $.nodeType===9?$:$.ownerDocument}function ZF($){switch($){case _7:return e7;case PG:return B3;default:return F2}}function QF($,Z){if($===F2)switch(Z){case"svg":return e7;case"math":return B3;default:return F2}return $===e7&&Z==="foreignObject"?F2:$}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 A_(){var $=window.event;if($&&$.type==="popstate"){if($===tN)return!1;return tN=$,!0}return tN=null,!1}function JZ(){var $=window.event;return $&&$!==eZ?$.type:null}function GZ(){var $=window.event;return $&&$!==eZ?$.timeStamp:-1.1}function S_($){setTimeout(function(){throw $})}function j_($,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 D_(){}function v_($,Z,G,Y){V_($,Z,G,Y),$[j5]=Y}function JF($){j$($,"")}function b_($,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 r2($){return $==="head"}function k_($,Z){$.removeChild(Z)}function f_($,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===tZ||G===K3){if(Y===0){$.removeChild(U),R7(Z);return}Y--}else if(G===aZ||G===w8||G===E9||G===t7||G===O9)Y++;else if(G===xV)XZ($.ownerDocument.documentElement);else if(G===dV){G=$.ownerDocument.head,XZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[HZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===mV&&XZ($.ownerDocument.body);G=U}while(G);R7(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===tZ)if($===0)break;else $--;else G!==aZ&&G!==w8&&G!==E9&&G!==t7||$++;G=Y}while(G)}function y_($){qF($,!0)}function g_($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function h_($){$.nodeValue=""}function u_($){qF($,!1)}function x_($,Z){Z=Z[pV],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function m_($,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),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function d_($,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(!$[HZ])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 p_($,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===w8||$.data===E9}function TY($){return $.data===t7||$.data===w8&&$.ownerDocument.readyState!==iw}function c_($,Z){var G=$.ownerDocument;if($.data===E9)$._reactRetry=Z;else if($.data!==w8||G.readyState!==iw)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===aZ||Z===t7||Z===w8||Z===E9||Z===O9||Z===oN||Z===ow)break;if(Z===tZ||Z===K3)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===O9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function UF($,Z,G){return G===null||G[uV]!==!0?($.nodeValue===Z?$=null:(Z=l2(Z),$=l2($.nodeValue)===Z?null:$.nodeValue),$):null}function PY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===tZ||G===K3){if(Z===0)return H6($.nextSibling);Z--}else G!==aZ&&G!==t7&&G!==w8&&G!==E9&&G!==O9||Z++}$=$.nextSibling}return null}function KF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===aZ||G===t7||G===w8||G===E9||G===O9){if(Z===0)return $;Z--}else G!==tZ&&G!==K3||Z++}$=$.previousSibling}return null}function l_($){R7($)}function r_($){R7($)}function s_($){R7($)}function BF($,Z,G,Y,U){switch(U&&DX($,Y.ancestorInfo),Z=JG(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 n_($,Z,G,Y){if(!G[i2]&&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 XZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function GG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function HF($,Z,G){var Y=$$;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=n2.current)?GG(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=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"){$=W7(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:S9,preload:null}},B.set($,W),(B=U.querySelector(qZ($)))&&!B._p&&(W.instance=B,W.state.loading=$Q|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||o_(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
+ - `+XG(Z)+`
179
+ + `+XG(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
+ - `+XG(Z)+`
182
+ + `+XG(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=w7(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 XG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):i6.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):i6.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):i6.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function W7($){return'href="'+V6($)+'"'}function qZ($){return'link[rel="stylesheet"]['+$+"]"}function FF($){return d0({},$,{"data-precedence":$.precedence,precedence:null})}function o_($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=$Q:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=$Q}),Z.addEventListener("error",function(){return Y.loading|=$R}),M5(Z,"link",G),z0(Z),$.head.appendChild(Z))}function w7($){return'[src="'+V6($)+'"]'}function YZ($){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),qG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=W7(G.href);var B=$.querySelector(qZ(U));if(B)return Z.state.loading|=g6,Z.instance=B,z0(B),B;Y=FF(G),(U=h6.get(U))&&LY(Y,U),B=($.ownerDocument||$).createElement("link"),z0(B);var W=B;return W._p=new Promise(function(R,P){W.onload=R,W.onerror=P}),M5(B,"link",Y),Z.state.loading|=g6,qG(B,G.precedence,$),Z.instance=B;case"script":if(B=w7(G.src),U=$.querySelector(YZ(B)))return Z.instance=U,z0(U),U;if(Y=G,U=h6.get(B))Y=d0({},G),CY(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)===S9&&(Y=Z.instance,Z.state.loading|=g6,qG(Y,G.precedence,$));return Z.instance}function qG($,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 LY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function CY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function wF($,Z,G){if(H3===null){var Y=new Map,U=H3=new Map;U.set(G,Y)}else U=H3,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[HZ]||B[F5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==_7){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 i_($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===e7||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=O_(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)===S9?!1:!0}function a_($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&g6)===S9){if(G.instance===null){var U=W7(Y.href),B=Z.querySelector(qZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=YG.bind($),Z.then($,$)),G.state.loading|=g6,G.instance=B,z0(B);return}B=Z.ownerDocument||Z,Y=FF(Y),(U=h6.get(U))&&LY(Y,U),B=B.createElement("link"),z0(B);var W=B;W._p=new Promise(function(R,P){W.onload=R,W.onerror=P}),M5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&ZR)===S9&&($.count++,G=YG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function t_($,Z){return $.stylesheets&&$.count===0&&NG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&NG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},rV+Z);0<$.imgBytes&&$U===0&&($U=125*E_()*nV);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&NG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>$U?50:sV)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function YG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)NG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function NG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,M3=new Map,Z.forEach(e_,$),M3=null,YG.call($))}function e_($,Z){if(!(Z.state.loading&g6)){var G=M3.get($);if(G)var Y=G.get(ZU);else{G=new Map,M3.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=YG.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 $I($,Z,G,Y,U,B,W,R,P){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=A9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=e9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e9(0),this.hiddenUpdates=e9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,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,P,C,k,f){return $=new $I($,Z,G,W,P,C,k,f,R),Z=TV,B===!0&&(Z|=I5|t6),Z|=f0,B=L(3,null,null,Z),$.current=B,B.stateNode=$,Z=iX(),Z9(Z),$.pooledCache=Z,Z9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Zq(B),$}function PF($){if(!$)return $8;return $=$8,$}function _Y($,Z,G,Y,U,B){if(_5&&typeof _5.onScheduleFiberRoot==="function")try{_5.onScheduleFiberRoot(L7,Y,G)}catch(W){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",W))}U=PF(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.
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(F6)||"Unknown")),Y=u2(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=x2($,Y,Z),G!==null&&(K4(Z,"root.render()",null),D1(G,$,Z),m$(G,$,Z))}function LF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function IY($,Z){LF($,Z),($=$.alternate)&&LF($,Z)}function CF($){if($.tag===13||$.tag===31){var Z=C5($,67108864);Z!==null&&D1(Z,$,67108864),IY($,67108864)}}function _F($){if($.tag===13||$.tag===31){var Z=B6($);Z=r8(Z);var G=C5($,Z);G!==null&&D1(G,$,Z),IY($,Z)}}function ZI(){return F6}function QI($,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 JI($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=a6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function VY($,Z,G,Y){if(W3){var U=OY(Y);if(U===null)KY($,Z,Y,w3,G),VF($,Y);else if(GI(U,$,Z,G,Y))Y.stopPropagation();else if(VF($,Y),Z&4&&-1<iV.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 P=1<<31-S5(W);R.entanglements[1]|=P,W&=~P}L4(B),(a0&(Q5|T6))===K5&&(tG=Y5()+kw,ZZ(0,!1))}}break;case 31:case 13:R=C5(B,2),R!==null&&D1(R,B,2),H7(),IY(B,2)}if(B=OY(Y),B===null&&KY($,Z,Y,w3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else KY($,Z,Y,null,G)}}function OY($){return $=vX($),EY($)}function EY($){if(w3=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 w3=$,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 a6;case"message":switch(MI()){case xY:return W6;case mY:return a6;case P7:case FI:return A4;case dY:return zG;default:return A4}default:return A4}}function VF($,Z){switch($){case"focusin":case"focusout":R8=null;break;case"dragenter":case"dragleave":z8=null;break;case"mouseover":case"mouseout":T8=null;break;case"pointerover":case"pointerout":QQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":JQ.delete(Z.pointerId)}}function NZ($,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&&CF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function GI($,Z,G,Y,U){switch(Z){case"focusin":return R8=NZ(R8,$,Z,G,Y,U),!0;case"dragenter":return z8=NZ(z8,$,Z,G,Y,U),!0;case"mouseover":return T8=NZ(T8,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return QQ.set(B,NZ(QQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,JQ.set(B,NZ(JQ.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(){_F(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){_F(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function UG($){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;MZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),MZ=U,G.target.dispatchEvent(Y),MZ===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."),MZ=null}else return Z=S0(G),Z!==null&&CF(Z),$.blockedOn=G,!1;Z.shift()}return!0}function EF($,Z,G){UG($)&&G.delete(Z)}function XI(){QU=!1,R8!==null&&UG(R8)&&(R8=null),z8!==null&&UG(z8)&&(z8=null),T8!==null&&UG(T8)&&(T8=null),QQ.forEach(EF),JQ.forEach(EF)}function KG($,Z){$.blockedOn===Z&&($.blockedOn=null,QU||(QU=!0,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,XI)))}function AF($){R3!==$&&(R3=$,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,function(){R3===$&&(R3=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 R7($){function Z(P){return KG(P,$)}R8!==null&&KG(R8,$),z8!==null&&KG(z8,$),T8!==null&&KG(T8,$),QQ.forEach(Z),JQ.forEach(Z);for(var G=0;G<P8.length;G++){var Y=P8[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<P8.length&&(G=P8[0],G.blockedOn===null);)OF(G),G.blockedOn===null&&P8.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 BG($){this._internalRoot=$}function jF($){$[i2]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d0=Object.assign,qI=Symbol.for("react.element"),_4=Symbol.for("react.transitional.element"),z7=Symbol.for("react.portal"),T7=Symbol.for("react.fragment"),HG=Symbol.for("react.strict_mode"),SY=Symbol.for("react.profiler"),jY=Symbol.for("react.consumer"),I4=Symbol.for("react.context"),UZ=Symbol.for("react.forward_ref"),DY=Symbol.for("react.suspense"),vY=Symbol.for("react.suspense_list"),MG=Symbol.for("react.memo"),M6=Symbol.for("react.lazy"),bY=Symbol.for("react.activity"),YI=Symbol.for("react.memo_cache_sentinel"),DF=Symbol.iterator,NI=Symbol.for("react.client.reference"),$5=Array.isArray,x=H$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=HK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UI=Object.freeze({pending:!1,data:null,method:null,action:null}),kY=[],fY=[],$2=-1,s2=K0(null),KZ=K0(null),n2=K0(null),FG=K0(null),BZ=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,i6=Object.prototype.hasOwnProperty,uY=Z1.unstable_scheduleCallback,KI=Z1.unstable_cancelCallback,BI=Z1.unstable_shouldYield,HI=Z1.unstable_requestPaint,Y5=Z1.unstable_now,MI=Z1.unstable_getCurrentPriorityLevel,xY=Z1.unstable_ImmediatePriority,mY=Z1.unstable_UserBlockingPriority,P7=Z1.unstable_NormalPriority,FI=Z1.unstable_LowPriority,dY=Z1.unstable_IdlePriority,WI=Z1.log,wI=Z1.unstable_setDisableYieldValue,L7=null,_5=null,O4=!1,E4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",S5=Math.clz32?Math.clz32:QJ,RI=Math.log,zI=Math.LN2,WG=256,wG=262144,RG=4194304,W6=2,a6=8,A4=32,zG=268435456,o2=Math.random().toString(36).slice(2),F5="__reactFiber$"+o2,j5="__reactProps$"+o2,i2="__reactContainer$"+o2,pY="__reactEvents$"+o2,TI="__reactListeners$"+o2,PI="__reactHandles$"+o2,xF="__reactResources$"+o2,HZ="__reactMarker$"+o2,mF=new Set,N9={},cY={},LI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},CI=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={},_I=/[\n"\\]/g,cF=!1,lF=!1,rF=!1,sF=!1,nF=!1,oF=!1,iF=["value","defaultValue"],aF=!1,tF=/["'&<>\n\t]|^\s|\s$/,II="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(" "),VI=eF.concat(["button"]),OI="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},TG={},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-/,EI=/^(?:webkit|moz|o)[A-Z]/,AI=/^-ms-/,SI=/-(.)/g,JW=/;\s*$/,C7={},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(" ")),PG="http://www.w3.org/1998/Math/MathML",_7="http://www.w3.org/2000/svg",jI=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"]]),LG={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},I7={},DI=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]*$"),vI=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./,bI=/^on[^A-Z]/,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]*$"),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]*$"),yI=/^[\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,MZ=null,V7=null,O7=null,sY=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nY=!1;if(S4)try{var FZ={};Object.defineProperty(FZ,"passive",{get:function(){nY=!0}}),window.addEventListener("test",FZ,FZ),window.removeEventListener("test",FZ,FZ)}catch($){nY=!1}var a2=null,oY=null,CG=null,U9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_G=u5(U9),WZ=d0({},U9,{view:0,detail:0}),gI=u5(WZ),iY,aY,wZ,IG=d0({},WZ,{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 $!==wZ&&(wZ&&$.type==="mousemove"?(iY=$.screenX-wZ.screenX,aY=$.screenY-wZ.screenY):aY=iY=0,wZ=$),iY},movementY:function($){return"movementY"in $?$.movementY:aY}}),KW=u5(IG),hI=d0({},IG,{dataTransfer:0}),uI=u5(hI),xI=d0({},WZ,{relatedTarget:0}),tY=u5(xI),mI=d0({},U9,{animationName:0,elapsedTime:0,pseudoElement:0}),dI=u5(mI),pI=d0({},U9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),cI=u5(pI),lI=d0({},U9,{data:0}),BW=u5(lI),rI=BW,sI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nI={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"},oI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},iI=d0({},WZ,{key:function($){if($.key){var Z=sI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=UJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?nI[$.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"?UJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?UJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),aI=u5(iI),tI=d0({},IG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HW=u5(tI),eI=d0({},WZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bX}),$V=u5(eI),ZV=d0({},U9,{propertyName:0,elapsedTime:0,pseudoElement:0}),QV=u5(ZV),JV=d0({},IG,{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}),GV=u5(JV),XV=d0({},U9,{newState:0,oldState:0}),qV=u5(XV),YV=[9,13,27,32],MW=229,eY=S4&&"CompositionEvent"in window,RZ=null;S4&&"documentMode"in document&&(RZ=document.documentMode);var NV=S4&&"TextEvent"in window&&!RZ,FW=S4&&(!eY||RZ&&8<RZ&&11>=RZ),WW=32,wW=String.fromCharCode(WW),RW=!1,E7=!1,UV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},zZ=null,TZ=null,zW=!1;S4&&(zW=jC("input")&&(!document.documentMode||9<document.documentMode));var v5=typeof Object.is==="function"?Object.is:yC,KV=S4&&"documentMode"in document&&11>=document.documentMode,A7=null,$N=null,PZ=null,ZN=!1,S7={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={},TW={};S4&&(TW=document.createElement("div").style,("AnimationEvent"in window)||(delete S7.animationend.animation,delete S7.animationiteration.animation,delete S7.animationstart.animation),("TransitionEvent"in window)||delete S7.transitionend.transition);var PW=o8("animationend"),LW=o8("animationiteration"),CW=o8("animationstart"),BV=o8("transitionrun"),HV=o8("transitionstart"),MV=o8("transitioncancel"),_W=o8("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 FV=performance,OW=function(){return FV.now()};else{var WV=Date;OW=function(){return WV.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($)},wV="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.",VG=0,XN=1,qN=2,YN=3,OG="– ",EG="+ ",EW="  ",P1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",E6="Components ⚛",p0="Scheduler ⚛",l0="Blocking",t2=!1,Z2={color:"primary",properties:null,tooltipText:"",track:E6},e2={start:-0,end:-0,detail:{devtools:Z2}},RV=["Changed Props",""],AW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",zV=["Changed Props",AW],LZ=1,Q2=2,A6=[],j7=0,NN=0,$8={};Object.freeze($8);var S6=null,D7=null,I0=0,TV=1,f0=2,I5=8,t6=16,PV=32,SW=!1;try{var jW=Object.preventExtensions({})}catch($){SW=!0}var UN=new WeakMap,v7=[],b7=0,AG=null,CZ=0,j6=[],D6=0,K9=null,J2=1,G2="",W5=null,L1=null,s0=!1,j4=!1,w6=null,Z8=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={},SG=null,k7=null,f7=!1,LV=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()})}},CV=Z1.unstable_scheduleCallback,_V=Z1.unstable_NormalPriority,c1={$$typeof:I4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},l1=Z1.unstable_now,jG=console.createTask?console.createTask:function(){return null},_Z=1,DG=2,N5=-0,Q8=-0,X2=-0,q2=null,b5=-1.1,B9=-0,A1=-0,T0=-1.1,L0=-1.1,E1=null,v1=!1,J8=-0,D4=-1.1,IZ=null,G8=0,MN=null,FN=null,H9=-1.1,VZ=null,y7=-1.1,vG=-1.1,v4=-0,Y2=-1.1,b6=-1.1,WN=0,OZ=null,vW=null,bW=null,X8=-1.1,M9=null,q8=-1.1,bG=-1.1,kW=-0,fW=-0,kG=0,N2=null,yW=0,EZ=-1.1,fG=!1,yG=!1,AZ=null,wN=0,F9=0,g7=null,gW=x.S;x.S=function($,Z){if(vw=Y5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>Y2&&0>b6){Y2=l1();var G=GZ(),Y=JZ();if(G!==q8||Y!==M9)q8=-1.1;X8=G,M9=Y}pC($,Z)}gW!==null&&gW($,Z)};var W9=K0(null),e6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},SZ=[],jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],w9=new Set;e6.recordUnsafeLifecycleWarnings=function($,Z){w9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&SZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillMount==="function"&&jZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&vZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&bZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&kZ.push($))},e6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<SZ.length&&(SZ.forEach(function(R){$.add(d(R)||"Component"),w9.add(R.type)}),SZ=[]);var Z=new Set;0<jZ.length&&(jZ.forEach(function(R){Z.add(d(R)||"Component"),w9.add(R.type)}),jZ=[]);var G=new Set;0<DZ.length&&(DZ.forEach(function(R){G.add(d(R)||"Component"),w9.add(R.type)}),DZ=[]);var Y=new Set;0<vZ.length&&(vZ.forEach(function(R){Y.add(d(R)||"Component"),w9.add(R.type)}),vZ=[]);var U=new Set;0<bZ.length&&(bZ.forEach(function(R){U.add(d(R)||"Component"),w9.add(R.type)}),bZ=[]);var B=new Set;if(0<kZ.length&&(kZ.forEach(function(R){B.add(d(R)||"Component"),w9.add(R.type)}),kZ=[]),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
 
188
- Please update the following components: %s`,w)}0<Y.size&&(w=T(Y),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
188
+ Please update the following components: %s`,W)}0<Y.size&&(W=T(Y),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,w)),0<B.size&&(w=T(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,W)),0<B.size&&(W=T(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
197
- Please update the following components: %s`,w)),0<$.size&&(w=T($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+ Please update the following components: %s`,W)),0<$.size&&(W=T($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
198
 
199
199
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
200
  * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
201
 
202
- Please update the following components: %s`,w)),0<G.size&&(w=T(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,W)),0<G.size&&(W=T(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
203
 
204
204
  * Move data fetching code or side effects to componentDidUpdate.
205
205
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
206
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
207
 
208
- Please update the following components: %s`,w)),0<U.size&&(w=T(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,W)),0<U.size&&(W=T(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
209
 
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,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 gG=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=gG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],gG.set(G,Y)),Y.push($))},e6.flushLegacyContextWarning=function(){gG.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.
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)})}})},e6.discardPendingWarnings=function(){SZ=[],jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],gG=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:""})}},IV=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}},VV=nW.react_stack_bottom_frame.bind(nW),oW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){X1($,Z,Y)}}},OV=oW.react_stack_bottom_frame.bind(oW),iW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},EV=iW.react_stack_bottom_frame.bind(iW),h7=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."),hG=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."),uG={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,fZ=!1,u7=null,yZ=0,y0=null,PN,aW=PN=!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=`
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+".")),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 z9=rB(!0),Zw=rB(!1),Qw=0,Jw=1,Gw=2,LN=3,Y8=!1,Xw=!1,CN=null,_N=!1,x7=K0(null),xG=K0(0),R6=K0(null),k6=null,m7=1,gZ=2,u1=K0(0),mG=0,f6=1,k5=2,z6=4,f5=8,d7,qw=new Set,Yw=new Set,IN=new Set,Nw=new Set,U2=0,V0=null,F1=null,r1=null,dG=!1,p7=!1,T9=!1,pG=0,hZ=0,K2=null,AV=0,SV=25,u=null,y6=null,B2=-1,uZ=!1,xZ={readContext:O1,use:p2,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};xZ.useEffectEvent=g1;var VN=null,Uw=null,ON=null,Kw=null,b4=null,$4=null,cG=null;VN={readContext:function($){return O1($)},use:p2,useCallback:function($,Z){return u="useCallback",m0(),X7(Z),_q($,Z)},useContext:function($){return u="useContext",m0(),O1($)},useEffect:function($,Z){return u="useEffect",m0(),X7(Z),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",m0(),X7(G),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",m0(),X7(Z),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",m0(),X7(Z),Lq($,Z)},useMemo:function($,Z){u="useMemo",m0(),X7(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(),vJ(),Y7($,Z)},useActionState:function($,Z){return u="useActionState",m0(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",m0(),Rq($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",m0(),Pq($)}},Uw={readContext:function($){return O1($)},use:p2,useCallback:function($,Z){return u="useCallback",c(),_q($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){return u="useEffect",c(),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Lq($,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(),Y7($,Z)},useFormState:function($,Z){return u="useFormState",c(),vJ(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Rq($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),jq()},useEffectEvent:function($){return u="useEffectEvent",c(),Pq($)}},ON={readContext:function($){return O1($)},use:p2,useCallback:function($,Z){return u="useCallback",c(),xJ($,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(),uJ($,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 mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=$4;try{return q7($,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 q7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),FH($,Z)},useTransition:function(){return u="useTransition",c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),kJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),vJ(),fJ($)},useActionState:function($){return u="useActionState",c(),fJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),GH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),hJ($)}},Kw={readContext:function($){return O1($)},use:p2,useCallback:function($,Z){return u="useCallback",c(),xJ($,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(),uJ($,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=cG;try{return mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=cG;try{return l$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=cG;try{return l$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),WH($,Z)},useTransition:function(){return u="useTransition",c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),kJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),vJ(),yJ($)},useActionState:function($){return u="useActionState",c(),yJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),qH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),hJ($)}},b4={readContext:function($){return F(),O1($)},use:function($){return M(),p2($)},useCallback:function($,Z){return u="useCallback",M(),m0(),_q($,Z)},useContext:function($){return u="useContext",M(),m0(),O1($)},useEffect:function($,Z){return u="useEffect",M(),m0(),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),m0(),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),m0(),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),m0(),Lq($,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(),Y7($,Z)},useActionState:function($,Z){return u="useActionState",M(),m0(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),m0(),Rq($)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",M(),m0(),Pq($)}},$4={readContext:function($){return F(),O1($)},use:function($){return M(),p2($)},useCallback:function($,Z){return u="useCallback",M(),c(),xJ($,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(),uJ($,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 mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return q7($,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 q7(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(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),kJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),fJ($)},useActionState:function($){return u="useActionState",M(),c(),fJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),GH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),hJ($)}},cG={readContext:function($){return F(),O1($)},use:function($){return M(),p2($)},useCallback:function($,Z){return u="useCallback",M(),c(),xJ($,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(),uJ($,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 mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return l$($,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 l$(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(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),kJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),yJ($)},useActionState:function($){return u="useActionState",M(),c(),yJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),qH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),hJ($)}};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,Pw=new Set,Lw=new Set;Object.freeze(Bw);var EN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u2(Y);U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x2($,U,Y),Z!==null&&(K4(Y,"this.setState()",$),D1(Z,$,Y),m$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u2(Y);U.tag=Jw,U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x2($,U,Y),Z!==null&&(K4(Y,"this.replaceState()",$),D1(Z,$,Y),m$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=B6($),Y=u2(G);Y.tag=Gw,Z!==void 0&&Z!==null&&(vq(Z),Y.callback=Z),Z=x2($,Y,G),Z!==null&&(K4(G,"this.forceUpdate()",$),D1(Z,$,G),m$(Z,$,G))}},c7=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,Cw={},_w={},Iw={},Vw={},l7=!1,Ow={},lG={},jN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Aw=null;Aw=new Set;var H2=!1,n1=!1,DN=!1,Sw=typeof WeakSet==="function"?WeakSet:Set,U5=null,r7=null,s7=null,o1=null,p5=!1,Z4=null,Z5=!1,mZ=8192,jV={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 dZ=Symbol.for;dZ("selector.component"),dZ("selector.has_pseudo_class"),dZ("selector.role"),dZ("selector.test_id"),dZ("selector.text")}var DV=[],vV=typeof WeakMap==="function"?WeakMap:Map,K5=0,Q5=2,T6=4,M2=0,pZ=1,P9=2,rG=3,N8=4,sG=6,jw=5,a0=K5,W1=null,h0=null,g0=0,c5=0,nG=1,L9=2,cZ=3,Dw=4,vN=5,lZ=6,oG=7,bN=8,C9=9,U1=c5,P6=null,U8=!1,n7=!1,kN=!1,k4=0,S1=M2,K8=0,B8=0,fN=0,l5=0,_9=0,rZ=null,y5=null,iG=!1,aG=0,vw=0,bw=300,tG=1/0,kw=500,sZ=null,h1=null,H8=null,eG=0,yN=1,gN=2,fw=3,M8=0,yw=1,gw=2,hw=3,uw=4,$3=5,i1=0,F8=null,o7=null,Q4=0,hN=0,uN=-0,xN=null,xw=null,mw=null,J4=eG,dw=null,bV=50,nZ=0,mN=null,dN=!1,Z3=!1,kV=50,I9=0,oZ=null,i7=!1,Q3=null,pw=!1,cw=new Set,fV={},J3=null,a7=null,pN=!1,cN=!1,G3=!1,lN=!1,W8=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(PW,"onAnimationEnd"),s6(LW,"onAnimationIteration"),s6(CW,"onAnimationStart"),s6("dblclick","onDoubleClick"),s6("focusin","onFocus"),s6("focusout","onBlur"),s6(BV,"onTransitionRun"),s6(HV,"onTransitionStart"),s6(MV,"onTransitionCancel"),s6(_W,"onTransitionEnd")})(),G6("onMouseEnter",["mouseout","mouseover"]),G6("onMouseLeave",["mouseout","mouseover"]),G6("onPointerEnter",["pointerout","pointerover"]),G6("onPointerLeave",["pointerout","pointerover"]),L5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),L5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),L5("onBeforeInput",["compositionend","keypress","textInput","paste"]),L5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),L5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),L5("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(" "),sN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iZ)),X3="_reactListening"+Math.random().toString(36).slice(2),lw=!1,rw=!1,q3=!1,sw=!1,Y3=!1,N3=!1,nw=!1,U3={},yV=/\r\n?/g,gV=/\u0000|\uFFFD/g,V9="http://www.w3.org/1999/xlink",nN="http://www.w3.org/XML/1998/namespace",hV="javascript:throw new Error('React form unexpectedly submitted.')",uV="suppressHydrationWarning",O9="&",K3="/&",aZ="$",tZ="/$",w8="$?",E9="$~",t7="$!",xV="html",mV="body",dV="head",oN="F!",ow="F",iw="loading",pV="style",F2=0,e7=1,B3=2,iN=null,aN=null,aw={dialog:!0,webview:!0},tN=null,eZ=void 0,tw=typeof setTimeout==="function"?setTimeout:void 0,cV=typeof clearTimeout==="function"?clearTimeout:void 0,A9=-1,ew=typeof Promise==="function"?Promise:void 0,lV=typeof queueMicrotask==="function"?queueMicrotask:typeof ew<"u"?function($){return ew.resolve(null).then($).catch(S_)}:tw,eN=null,S9=0,$Q=1,$R=2,ZR=3,g6=4,h6=new Map,QR=new Set,W2=q1.d;q1.d={f:function(){var $=W2.f(),Z=H7();return $||Z},r:function($){var Z=S0($);Z!==null&&Z.tag===5&&Z.type==="form"?TH(Z):W2.r($)},D:function($){W2.D($),HF("dns-prefetch",$,null)},C:function($,Z){W2.C($,Z),HF("preconnect",$,Z)},L:function($,Z,G){W2.L($,Z,G);var Y=$$;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=W7($);break;case"script":B=w7($)}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(qZ(B))||Z==="script"&&Y.querySelector(YZ(B))||(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}},m:function($,Z){W2.m($,Z);var G=$$;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=w7($)}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(YZ(B)))return}Y=G.createElement("link"),M5(Y,"link",$),z0(Y),G.head.appendChild(Y)}}},X:function($,Z){W2.X($,Z);var G=$$;if(G&&$){var Y=e0(G).hoistableScripts,U=w7($),B=Y.get(U);B||(B=G.querySelector(YZ(U)),B||($=d0({src:$,async:!0},Z),(Z=h6.get(U))&&CY($,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){W2.S($,Z,G);var Y=$$;if(Y&&$){var U=e0(Y).hoistableStyles,B=W7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:S9,preload:null};if(W=Y.querySelector(qZ(B)))R.loading=$Q|g6;else{$=d0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=h6.get(B))&&LY($,G);var P=W=Y.createElement("link");z0(P),M5(P,"link",$),P._p=new Promise(function(C,k){P.onload=C,P.onerror=k}),P.addEventListener("load",function(){R.loading|=$Q}),P.addEventListener("error",function(){R.loading|=$R}),R.loading|=g6,qG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){W2.M($,Z);var G=$$;if(G&&$){var Y=e0(G).hoistableScripts,U=w7($),B=Y.get(U);B||(B=G.querySelector(YZ(U)),B||($=d0({src:$,async:!0,type:"module"},Z),(Z=h6.get(U))&&CY($,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 $$=typeof document>"u"?null:document,H3=null,rV=60000,sV=800,nV=500,$U=0,ZU=null,M3=null,j9=UI,ZQ={$$typeof:I4,Provider:null,Consumer:null,_currentValue:j9,_currentValue2:j9,_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="",F3=" ",oV=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=C5($,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=C5($,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=C5($,2),G!==null&&D1(G,$,2))},KR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},BR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},HR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},MR=function($){var Z=C5($,2);Z!==null&&D1(Z,$,2)},FR=function($){var Z=t9(),G=C5($,Z);G!==null&&D1(G,$,Z)},WR=function($){H=$},wR=function($){K=$};var W3=!0,w3=null,QU=!1,R8=null,z8=null,T8=null,QQ=new Map,JQ=new Map,P8=[],iV="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(" "),R3=null;if(BG.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);_Y(Y,U,G,Z,null,null)},BG.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;(a0&(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."),_Y($.current,2,null,$,null,null),H7(),Z[i2]=null}},BG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<P8.length&&Z!==0&&Z<P8[G].priority;G++);P8.splice(G,0,$),G===0&&OF($)}},function(){var $=H$.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"),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 $=n(Z),$=$!==null?$0($):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=E,$.scheduleRoot=I,$.setRefreshHandler=O,$.getCurrentFiber=ZI,a9($)}()&&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")}Rj.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===_4&&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=TF($,1,!1,null,null,G,Y,null,U,B,W,SF),$[i2]=Z.current,UY($),new AY(Z)},Rj.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,P=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&&(P=G.formState)),Z=TF($,1,!0,Z,G!=null?G:null,Y,U,P,B,W,R,SF),Z.context=PF(null),G=Z.current,Y=B6(G),Y=r8(Y),U=u2(Y),U.callback=null,x2(G,U,Y),K4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,v2(Z,G),L4(Z),$[i2]=Z.current,UY($),new BG(Z)},Rj.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=L8((Ab,cT)=>{var zj=t(pT());cT.exports=zj});var M0=L8((Pj)=>{var p9=t(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 n:return"Suspense";case $0: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 E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var i=v.render;return v=v.displayName,v||(v=i.displayName||i.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case a:return i=v.displayName||null,i!==null?i:Q(v.type)||"Memo";case o:i=v._payload,v=v._init;try{return Q(v(i))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var i=!1}catch(x0){i=!0}if(i){i=console;var H0=i.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(i,"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===o)return"<...>";try{var i=Q(v);return i?"<"+i+">":"<...>"}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(P0.call(v,"key")){var i=Object.getOwnPropertyDescriptor(v,"key").get;if(i&&i.isReactWarning)return!1}return v.key!==void 0}function M(v,i){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)",i))}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,i,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:i,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,i,H0,F0,x0,y1){var v0=i.children;if(v0!==void 0)if(F0)if(C0(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(P0.call(i,"key")){v0=Q(v);var p1=Object.keys(i).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:
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} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(i)&&(X(i.key),v0=""+i.key),"key"in i){H0={};for(var P5 in i)P5!=="key"&&(H0[P5]=i[P5])}else H0=i;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){L(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===o&&(v._payload.status==="fulfilled"?L(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function L(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=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"),n=Symbol.for("react.suspense"),$0=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),o=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=p9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,C0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};p9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=p9.react_stack_bottom_frame.bind(p9,K)(),r0=D0(q(K)),u0={};Pj.Fragment=O,Pj.jsxDEV=function(v,i,H0,F0){var x0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,i,H0,F0,x0?Error("react-stack-top-frame"):B0,x0?D0(q(v)):r0)}})()});var jL=L8((HD)=>{var s9=t(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 n:return"Suspense";case $0: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 E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var i=v.render;return v=v.displayName,v||(v=i.displayName||i.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case a:return i=v.displayName||null,i!==null?i:Q(v.type)||"Memo";case o:i=v._payload,v=v._init;try{return Q(v(i))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var i=!1}catch(x0){i=!0}if(i){i=console;var H0=i.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(i,"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===o)return"<...>";try{var i=Q(v);return i?"<"+i+">":"<...>"}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(P0.call(v,"key")){var i=Object.getOwnPropertyDescriptor(v,"key").get;if(i&&i.isReactWarning)return!1}return v.key!==void 0}function M(v,i){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)",i))}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,i,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:i,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,i,H0,F0,x0,y1){var v0=i.children;if(v0!==void 0)if(F0)if(C0(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(P0.call(i,"key")){v0=Q(v);var p1=Object.keys(i).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:
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} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(i)&&(X(i.key),v0=""+i.key),"key"in i){H0={};for(var P5 in i)P5!=="key"&&(H0[P5]=i[P5])}else H0=i;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){L(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===o&&(v._payload.status==="fulfilled"?L(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function L(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=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"),n=Symbol.for("react.suspense"),$0=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),o=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=s9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,C0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};s9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=s9.react_stack_bottom_frame.bind(s9,K)(),r0=D0(q(K)),u0={};HD.Fragment=O,HD.jsx=function(v,i,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,i,H0,!1,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)},HD.jsxs=function(v,i,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,i,H0,!0,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)}})()});/*!
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 XQ(Q){return Q+0.5|0}var C8=(Q,J,X)=>Math.max(Math.min(Q,X),J);function GQ(Q){return C8(XQ(Q*2.55),0,255)}function _8(Q){return C8(XQ(Q*255),0,255)}function R2(Q){return C8(XQ(Q/2.55)/100,0,1)}function TR(Q){return C8(XQ(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"],XO=(Q)=>GU[Q&15],qO=(Q)=>GU[(Q&240)>>4]+GU[Q&15],z3=(Q)=>(Q&240)>>4===(Q&15),YO=(Q)=>z3(Q.r)&&z3(Q.g)&&z3(Q.b)&&z3(Q.a);function NO(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 UO=(Q,J)=>Q<255?J(Q):"";function KO(Q){var J=YO(Q)?XO:qO;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+UO(Q.a,J):void 0}var BO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _R(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 HO(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 MO(Q,J,X){let q=_R(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 FO(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=FO(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(_8)}function YU(Q,J,X){return qU(_R,Q,J,X)}function WO(Q,J,X){return qU(MO,Q,J,X)}function wO(Q,J,X){return qU(HO,Q,J,X)}function IR(Q){return(Q%360+360)%360}function RO(Q){let J=BO.exec(Q),X=255,q;if(!J)return;if(J[5]!==q)X=J[6]?GQ(+J[5]):_8(+J[5]);let N=IR(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")q=WO(N,K,H);else if(J[1]==="hsv")q=wO(N,K,H);else q=YU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function zO(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 TO(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}%, ${R2(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var PR={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"},LR={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 PO(){let Q={},J=Object.keys(LR),X=Object.keys(PR),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,PR[K]);K=parseInt(LR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var T3;function LO(Q){if(!T3)T3=PO(),T3.transparent=[0,0,0,0];let J=T3[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var CO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function _O(Q){let J=CO.exec(Q),X=255,q,N,K;if(!J)return;if(J[7]!==q){let H=+J[7];X=J[8]?GQ(H):C8(H*255,0,255)}return q=+J[1],N=+J[3],K=+J[5],q=255&(J[2]?GQ(q):C8(q,0,255)),N=255&(J[4]?GQ(N):C8(N,0,255)),K=255&(J[6]?GQ(K):C8(K,0,255)),{r:q,g:N,b:K,a:X}}function IO(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${R2(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,Z$=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function VO(Q,J,X){let q=Z$(R2(Q.r)),N=Z$(R2(Q.g)),K=Z$(R2(Q.b));return{r:_8(JU(q+X*(Z$(R2(J.r))-q))),g:_8(JU(N+X*(Z$(R2(J.g))-N))),b:_8(JU(K+X*(Z$(R2(J.b))-K))),a:Q.a+X*(J.a-Q.a)}}function P3(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 CR(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=_8(Q[3])}}else J=VR(Q,{r:0,g:0,b:0,a:1}),J.a=_8(J.a);return J}function OO(Q){if(Q.charAt(0)==="r")return _O(Q);return RO(Q)}class Q${constructor(Q){if(Q instanceof Q$)return Q;let J=typeof Q,X;if(J==="object")X=CR(Q);else if(J==="string")X=NO(Q)||LO(Q)||OO(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=VR(this._rgb);if(Q)Q.a=R2(Q.a);return Q}set rgb(Q){this._rgb=CR(Q)}rgbString(){return this._valid?IO(this._rgb):void 0}hexString(){return this._valid?KO(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=VO(this._rgb,Q._rgb,J);return this}clone(){return new Q$(this.rgb)}alpha(Q){return this._rgb.a=_8(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=XQ(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 zO(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 y4(){}var yR=(()=>{let Q=0;return()=>Q++})();function $1(Q){return Q===null||Q===void 0}function _1(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 i0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function b1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function i5(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(_1(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(i0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function NQ(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 I3(Q){if(_1(Q))return Q.map(I3);if(i0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=I3(Q[X[N]]);return J}return Q}function hR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function EO(Q,J,X,q){if(!hR(Q))return;let N=J[Q],K=X[Q];if(i0(N)&&i0(K))G$(N,K,q);else J[Q]=I3(K)}function G$(Q,J,X){let q=_1(J)?J:[J],N=q.length;if(!i0(Q))return Q;X=X||{};let K=X.merger||EO,H;for(let M=0;M<N;++M){if(H=q[M],!i0(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 q$(Q,J){return G$(Q,J,{merger:AO})}function AO(Q,J,X){if(!hR(Q))return;let q=J[Q],N=X[Q];if(i0(q)&&i0(N))q$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=I3(N)}var OR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function SO(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 jO(Q){let J=SO(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function k9(Q,J){return(OR[J]||(OR[J]=jO(J)))(Q)}function A3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var Y$=(Q)=>typeof Q<"u",z2=(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,DO=n5+m1,V3=Number.POSITIVE_INFINITY,vO=m1/180,s5=m1/2,D9=m1/4,ER=m1*2/3,T2=Math.log10,G4=Math.sign;function N$(Q,J,X){return Math.abs(Q-J)<X}function BU(Q){let J=Math.round(Q);Q=N$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(T2(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 bO(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function U$(Q){return!bO(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 P2(Q){return Q*(m1/180)}function S3(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 O3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function kO(Q,J){return(Q-J+DO)%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 L2(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function j3(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 V8=(Q,J,X,q)=>j3(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)=>j3(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"+A3(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 D3=(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 iR(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:L,minDefined:I,maxDefined:E}=H.getUserBounds();if(I){if(N=Math.min(V8(F,z,T).lo,X?q:V8(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(E){let O=Math.max(V8(F,H.axis,L,!0).hi+1,X?0:V8(J,z,H.getPixelForValue(L),!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 aR(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 L3=(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,J$={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)=>L3(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)=>L3(Q)?Q:AR(Q,0.075,0.3),easeOutElastic:(Q)=>L3(Q)?Q:SR(Q,0.075,0.3),easeInOutElastic(Q){return L3(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-J$.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?J$.easeInBounce(Q*2)*0.5:J$.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 PU(Q){return TU(Q)?Q:new Q$(Q)}function NU(Q){return TU(Q)?Q:new Q$(Q).saturate(0.5).darken(0.1).hexString()}var fO=["x","y","borderWidth","radius","tension"],yO=["color","borderColor","backgroundColor"];function gO(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:yO},numbers:{type:"number",properties:fO}}),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 hO(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var jR=new Map;function uO(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 v3(Q,J,X){return uO(J,X).format(Q)}var tR={values(Q){return _1(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=xO(Q,X)}let H=T2(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),v3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(T2(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 xO(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 UQ={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:UQ.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 E8=Object.create(null),b3=Object.create(null);function qQ(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 G$(qQ(Q,J),X);return G$(qQ(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 qQ(this,Q)}describe(Q,J){return UU(b3,Q,J)}override(Q,J){return UU(E8,Q,J)}route(Q,J,X,q){let N=qQ(this,Q),K=qQ(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(i0(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}},[gO,hO,mO]);function dO(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 YQ(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,L;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!_1(T))H=YQ(Q,N,K,H,T);else if(_1(T)){for(w=0,z=T.length;w<z;w++)if(L=T[w],L!==void 0&&L!==null&&!_1(L))H=YQ(Q,N,K,H,L)}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 A8(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 LU(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 k3(Q,J,X,q){CU(Q,J,X,q,null)}function CU(Q,J,X,q,N){let K,H,M,F,w,z,T,L,I=J.pointStyle,E=J.rotation,O=J.radius,V=(E||0)*vO;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+D9)*F,T=Math.cos(V+D9)*(N?N/2-w:F),M=Math.sin(V+D9)*F,L=Math.sin(V+D9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,V-m1,V-s5),Q.arc(X+L,q-H,w,V-s5,V),Q.arc(X+T,q+M,w,V,V+s5),Q.arc(X-L,q+H,w,V+s5,V+m1),Q.closePath();break;case"rect":if(!E){F=Math.SQRT1_2*O,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}V+=D9;case"rectRot":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+L,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-L,q+H),Q.closePath();break;case"crossRot":V+=D9;case"cross":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,q+H);break;case"star":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,q+H),V+=D9,T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,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 KQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function BQ(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 pO(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 cO(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 lO(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function S8(Q,J,X,q,N,K={}){let H=_1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,pO(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)lO(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),cO(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function K$(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 rO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nO(Q,J){let X=(""+Q).match(rO);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 oO=(Q)=>+Q||0;function _U(Q,J){let X={},q=i0(J),N=q?Object.keys(J):J,K=i0(Q)?q?(H)=>c0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=oO(K(H));return X}function IU(Q){return _U(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function j8(Q){return _U(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 a1(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(sO))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:c0(Q.family,J.family),lineHeight:nO(c0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:c0(Q.weight,J.weight),string:""};return N.string=dO(N),N}function HQ(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&&_1(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 C2(Q,J){return Object.assign(Object.create(Q),J)}function f3(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)=>f3([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,()=>JE(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 b9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:VU(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 Gz(K,H,()=>aO(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:z2(X)?X:()=>X,isIndexable:z2(q)?q:()=>q}}var iO=(Q,J)=>Q?Q+A3(J):J,OU=(Q,J)=>i0(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 aO(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(z2(M)&&H.isScriptable(J))M=tO(J,M,Q,X);if(_1(M)&&M.length)M=eO(J,M,Q,H.isIndexable);if(OU(J,M))M=b9(M,N,K&&K[J],H);return M}function tO(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 eO(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(i0(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(b9(T,K,H&&H[Q],M))}}return J}function Xz(Q,J,X){return z2(Q)?Q(J,X):Q}var $E=(Q,J)=>Q===!0?J:typeof Q==="string"?k9(J,Q):void 0;function ZE(Q,J,X,q,N){for(let K of J){let H=$E(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 f3(Array.from(M),[""],N,K,()=>QE(J,X,q))}function DR(Q,J,X,q,N){while(X)X=ZE(Q,J,X,q,N);return X}function QE(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(_1(N)&&i0(X))return X;return N||{}}function JE(Q,J,X,q){let N;for(let K of J)if(N=qz(iO(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=GE(Q._scopes);return J}function GE(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 XE=Number.EPSILON||0.00000000000001,X$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Yz=(Q)=>Q==="x"?"y":"x";function qE(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=O3(K,N),F=O3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,L=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+L*(H.x-N.x),y:K.y+L*(H.y-N.y)}}}function YE(Q,J,X){let q=Q.length,N,K,H,M,F,w=X$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=X$(Q,z+1),!F||!w)continue;if(N$(J[z],0,XE)){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 NE(Q,J,X="x"){let q=Yz(X),N=Q.length,K,H,M,F=X$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=X$(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 UE(Q,J="x"){let X=Yz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=X$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=X$(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}YE(Q,N,K),NE(Q,K,J)}function C3(Q,J,X){return Math.max(Math.min(Q,X),J)}function KE(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=C3(N.cp1x,J.left,J.right),N.cp1y=C3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=C3(N.cp2x,J.left,J.right),N.cp2y=C3(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")UE(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=qE(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)KE(Q,X)}function y3(){return typeof window<"u"&&typeof document<"u"}function g3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function E3(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 h3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function BE(Q,J){return h3(Q).getPropertyValue(J)}var HE=["top","right","bottom","left"];function v9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=HE[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var ME=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function FE(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(ME(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 D8(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=h3(X),K=N.boxSizing==="border-box",H=v9(N,"padding"),M=v9(N,"border","width"),{x:F,y:w,box:z}=FE(Q,X),T=H.left+(z&&M.left),L=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-L)/E*X.height/q)}}function WE(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&g3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=h3(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=E3(M.maxWidth,K,"clientWidth"),N=E3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||V3,maxHeight:N||V3}}var O8=(Q)=>Math.round(Q*10)/10;function Uz(Q,J,X,q){let N=h3(Q),K=v9(N,"margin"),H=E3(N.maxWidth,Q,"clientWidth")||V3,M=E3(N.maxHeight,Q,"clientHeight")||V3,F=WE(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let L=v9(N,"border","width"),I=v9(N,"padding");w-=I.width+L.width,z-=I.height+L.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=O8(Math.min(w,H,F.maxWidth)),z=O8(Math.min(z,M,F.maxHeight)),w&&!z)z=O8(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=O8(Math.floor(z*q));return{width:w,height:z}}function AU(Q,J,X){let q=J||1,N=O8(Q.height*q),K=O8(Q.width*q);Q.height=O8(Q.height),Q.width=O8(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(y3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function SU(Q,J){let X=BE(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function I8(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=I8(Q,N,X),M=I8(N,K,X),F=I8(K,J,X),w=I8(H,M,X),z=I8(M,F,X);return I8(w,z,X)}var wE=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}}},RE=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?wE(J,X):RE()}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:kO,normalize:r5};return{between:L2,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 zE(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,L,I;if(T){w+=F,z+=F;for(L=0,I=F;L<I;++L){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:L,style:I}=zE(Q,J,X),E=[],O=!1,V=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,n=()=>M(K,D)===0||F(K,p,D),$0=()=>O||s(),a=()=>!O||n();for(let o=z,q0=z;o<=T;++o){if(h=J[o%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(O=F(D,N,K),V===null&&$0())V=M(D,N)===0?o:q0;if(V!==null&&a())E.push(bR({start:V,end:o,loop:L,count:H,style:I})),V=null;q0=o,p=D}if(V!==null)E.push(bR({start:V,end:T,loop:L,count:H,style:I}));return E}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 TE(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 PE(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}=TE(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,PE(X,H,F,w),X,J)}function kR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return LE(Q,J,X,q)}function LE(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,L=T;function I(E,O,V,D){let h=M?-1:1;if(E===O)return;E+=F;while(X[E%F].skip)E-=h;while(X[O%F].skip)O+=h;if(E%F!==O%F)w.push({start:E%F,end:O%F,loop:V,style:D}),z=D,T=O%F}for(let E of J){T=M?T:E.start;let O=X[T%F],V;for(L=T+1;L<=E.end;L++){let D=X[L%F];if(V=fR(q.setContext(C2(N,{type:"segment",p0:O,p1:D,p0DataIndex:(L-1)%F,p1DataIndex:L%F,datasetIndex:H}))),CE(V,z))I(T,L-1,E.loop,z);O=D,z=V}if(T<L-1)I(T,L-1,E.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 CE(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 _3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function _E(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:_3(X,J,"left"),right:_3(X,J,"right"),top:_3(q,J,"top"),bottom:_3(q,J,"bottom")};return J}function kU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=_E(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 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 _2=new BT,Wz="transparent",IE={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=PU(Q||Wz),N=q.valid&&PU(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=HQ([Q.to,q,N,Q.from]);let K=HQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||IE[Q.type||typeof K],this._easing=J$[Q.easing]||J$.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=HQ([Q.to,J,q,Q.from]),this._from=HQ([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(!i0(Q))return;let J=Object.keys(k1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!i0(N))return;let K={};for(let H of J)K[H]=N[H];(_1(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=OE(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)VE(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 _2.add(this._chart,X),!0}}function VE(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 OE(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 EE(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 AE(Q){let J,X,q,N;if(i0(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 SE(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 jE(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function DE(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 vE(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=jE(K,H,q),T=J.length,L;for(let I=0;I<T;++I){let E=J[I],{[F]:O,[w]:V}=E,D=E._stacks||(E._stacks={});L=D[w]=vE(N,z,O),L[M]=V,L._top=zz(L,H,!0,q.type),L._bottom=zz(L,H,!1,q.type);let h=L._visualValues||(L._visualValues={});h[M]=V}}function yU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function bE(Q,J){return C2(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function kE(Q,J,X){return C2(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function MQ(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",Pz=(Q,J)=>J?Q:Object.assign({},Q),fE=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:MT(X,!0),values:null};class s3{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)MQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,L,I)=>z==="x"?T:z==="r"?I:L,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)MQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(i0(J)){let q=this._cachedMeta;this._data=SE(J,q)}else if(X!==J){if(X){WU(X,this);let q=this._cachedMeta;MQ(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,MQ(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(_1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(i0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let L=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(L())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,L,I;for(T=0,L=q;T<L;++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,L;for(w=0,z=q;w<z;++w)T=w+X,L=J[T],F[w]={x:N.parse(k9(L,H),T),y:K.parse(k9(L,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=fE(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=DE(H),T,L;function I(){L=q[T];let E=L[H.axis];return!b1(L[Q.axis])||w>E||z<E}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,L,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,L,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=AE(c0(this.options.clip,EE(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=kE(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=bE(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&&Y$(X);if(H)return Pz(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),L=Object.keys(k1.elements[Q]),I=()=>this.getContext(X,q,J),E=F.resolveNamedOptions(T,L,I,z);if(E.$shared)E.$shared=M,N[K]=Object.freeze(Pz(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 $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)MQ(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 yE(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 gE(Q){let J=Q.iScale,X=yE(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(Y$(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 hE(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 uE(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 xE(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(_1(Q))xE(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Lz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,L;for(w=X,z=X+q;w<z;++w)L=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(FT(L,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 dE(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 pE(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}=dE(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[Cz(z,H,M,F)]=!0,N=w;K[Cz(N,H,M,F)]=!0,Q.borderSkipped=K}function Cz(Q,J,X,q){if(q)Q=cE(Q,J,X),Q=_z(Q,X,J);else Q=_z(Q,J,X);return Q}function cE(Q,J,X){return Q===J?X:Q===X?J:Q}function _z(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function lE(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class ZK extends s3{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 Lz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Lz(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,L,I,E;for(T=X,L=X+q;T<L;++T)E=J[T],I={},I[N.axis]=N.parse(k9(E,F),T),z.push(FT(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=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 L=J;L<J+X;L++){let I=this.getParsed(L),E=N||$1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(L),O=this._calculateBarIndexPixels(L,w),V=(I._stacks||{})[H.axis],D={horizontal:F,base:E.base,enableBorderRadius:!V||hU(I._custom)||K===V._top||K===V._bottom,x:F?E.head:O.center,y:F?O.center:E.head,height:F?O.size:Math.abs(E.size),width:F?Math.abs(E.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(L,Q[L].active?"active":q);let h=D.options||Q[L].options;pE(D,h,V,K),lE(D,h,w.ratio),this.updateElement(Q[L],L,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((L)=>L[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||gE(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,L=X?this.applyStack(J,M,X):z,I,E;if(L!==z)T=L-z,L=z;if(w){if(z=F.barStart,L=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+L);else I=V;if(E=I-V,Math.abs(E)<K){if(E=mE(E,J,H)*K,z===H)V-=E/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+E,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(V)}if(V===J.getPixelForValue(H)){let D=G4(E)*J.getLineWidthForValue(H)/2;V+=D,E-=D}return{size:E,base:V,head:I,center:I+E/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"?uE(Q,J,q,w*F):hE(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,L=this._getAxis().indexOf(c0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+L;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 s3{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}=iR(J,q,K);if(this._drawStart=H,this._drawCount=M,aR(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,L=H.axis,{spanGaps:I,segment:E}=this.options,O=U$(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 n=Q[s],$0=V?n:{};if(s<J||s>=D){$0.skip=!0;continue}let a=this.getParsed(s),o=$1(a[L]),q0=$0[T]=K.getPixelForValue(a[T],s),d=$0[L]=N||o?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,a,M):a[L],s);if($0.skip=isNaN(q0)||isNaN(d)||o,$0.stop=s>0&&Math.abs(a[T]-p[T])>O,E)$0.parsed=a,$0.raw=F.data[s];if(z)$0.options=w||this.resolveDataElementOptions(s,n.active?"active":q);if(!V)this.updateElement(n,s,$0,q);p=a}}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 JK{static override(Q){Object.assign(JK.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 rE={_date:JK};function sE(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:V8;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:L}=Q,I=L.slice(0,z.lo+1).reverse().findIndex((O)=>!$1(O[T.axis]));z.lo-=Math.max(0,I);let E=L.slice(z.hi).findIndex((O)=>!$1(O[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 L=w(K,J,X-T),I=w(K,J,X+T);return{lo:L.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function IQ(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:L}=sE(K[M],J,H,N);for(let I=T;I<=L;++I){let E=z[I];if(!E.skip)q(E,w,I)}}}function nE(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 IQ(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 oE(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 IQ(Q,X,J,K),N}function iE(Q,J,X,q,N,K){let H=[],M=nE(X),F=Number.POSITIVE_INFINITY;function w(z,T,L){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 V=M(J,E);if(V<F)H=[{element:z,datasetIndex:T,index:L}],F=V;else if(V===F)H.push({element:z,datasetIndex:T,index:L})}return IQ(Q,X,J,w),H}function xU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?oE(Q,J,X,N):iE(Q,J,X,q,N,K)}function Iz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(IQ(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 aE={evaluateInteractionItems:IQ,modes:{index(Q,J,X,q){let N=D8(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=D8(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=D8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return uU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=D8(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=D8(J,Q);return Iz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=D8(J,Q);return Iz(Q,N,"y",X.intersect,q)}}},WT=["left","top","right","bottom"];function FQ(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 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 tE(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 eE(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 $A(Q,J){let X=eE(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 ZA(Q){let J=tE(Q),X=WQ(J.filter((w)=>w.box.fullSize),!0),q=WQ(FQ(J,"left"),!0),N=WQ(FQ(J,"right")),K=WQ(FQ(J,"top"),!0),H=WQ(FQ(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:FQ(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 QA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!i0(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 JA(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 zQ(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:L}=QA(J,X,M,q);if(w|=T&&N.length,z=z||L,!F.fullSize)N.push(M)}return w&&zQ(N,J,X,q)||z}function u3(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,L=w.size||F.height;if(Y$(w.start))H=w.start;if(F.fullSize)u3(F,N.left,H,X.outerWidth-N.right-N.left,L);else u3(F,J.left+w.placed,H,T,L);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,L=w.size||F.width;if(Y$(w.start))K=w.start;if(F.fullSize)u3(F,K,N.top,L,X.outerHeight-N.bottom-N.top);else u3(F,K,J.top+w.placed,L,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=ZA(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}),L=Object.assign({},N);wT(L,R5(q));let I=Object.assign({maxPadding:L,w:K,h:H,x:N.left,y:N.top},N),E=$A(F.concat(w),T);if(zQ(M.fullSize,I,T,E),zQ(F,I,T,E),zQ(w,I,T,E))zQ(F,I,T,E);JA(I),Ez(M.leftAndTop,I,T,E),I.x+=I.w,I.y+=I.h,Ez(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},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 c3="$chartjs",XA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Az=(Q)=>Q===null||Q==="";function qA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[c3]={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 YA(Q,J,X){if(Q)Q.addEventListener(J,X,zT)}function NA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,zT)}function UA(Q,J){let X=XA[Q.type]||Q.type,{x:q,y:N}=D8(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function r3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function KA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||r3(M.addedNodes,q),H=H&&!r3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function BA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||r3(M.removedNodes,q),H=H&&!r3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var LQ=new Map,Sz=0;function TT(){let Q=window.devicePixelRatio;if(Q===Sz)return;Sz=Q,LQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function HA(Q,J){if(!LQ.size)window.addEventListener("resize",TT);LQ.set(Q,J)}function MA(Q){if(LQ.delete(Q),!LQ.size)window.removeEventListener("resize",TT)}function FA(Q,J,X){let q=Q.canvas,N=q&&g3(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),HA(Q,K),H}function mU(Q,J,X){if(X)X.disconnect();if(J==="resize")MA(Q)}function WA(Q,J,X){let q=Q.canvas,N=zU((K)=>{if(Q.ctx!==null)X(UA(K,Q))},Q);return YA(q,J,N),N}class PT extends GK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return qA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[c3])return!1;let X=J[c3].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[c3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:KA,detach:BA,resize:FA}[J]||WA;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]||NA)(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&&g3(Q);return!!(J&&J.isConnected)}}function wA(Q){if(!y3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return RT;return PT}class V2{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 U$(this.x)&&U$(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 RA(Q,J){let X=Q.options.ticks,q=zA(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?PA(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return LA(J,w,K,H/N),w;let z=TA(K,J,N);if(H>0){let T,L,I=H>1?Math.round((F-M)/(H-1)):null;x3(J,w,z,$1(I)?0:M-I,M);for(T=0,L=H-1;T<L;T++)x3(J,w,z,K[T],K[T+1]);return x3(J,w,z,F,$1(I)?J.length:F+I),w}return x3(J,w,z),w}function zA(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=CA(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 PA(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function LA(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 x3(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 CA(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 _A=(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 IA(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 VA(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 wQ(Q){return Q.drawTicks?Q.tickLength:0}function bz(Q,J){if(!Q.display)return 0;let X=a1(Q.font,J),q=R5(Q.padding);return(_1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function OA(Q,J){return C2(Q,{scale:J,type:"scale"})}function EA(Q,J,X){return C2(Q,{tick:X,index:J,type:"tick"})}function AA(Q,J,X){let q=D3(Q);if(X&&J!=="right"||!X&&J==="right")q=_A(q);return q}function SA(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,L,I,E,O=H-N,V=M-K;if(Q.isHorizontal()){if(I=w5(q,K,M),i0(X)){let D=Object.keys(X)[0],h=X[D];E=z[D].getPixelForValue(h)+O-J}else if(X==="center")E=(w.bottom+w.top)/2+O-J;else E=jz(Q,X,J);L=M-K}else{if(i0(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);E=w5(q,H,N),T=X==="left"?-s5:s5}return{titleX:I,titleY:E,maxWidth:L,rotation:T}}class h9 extends V2{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=i5(Q,Number.POSITIVE_INFINITY),J=i5(J,Number.NEGATIVE_INFINITY),X=i5(X,Number.POSITIVE_INFINITY),q=i5(q,Number.NEGATIVE_INFINITY),{min:i5(Q,X),max:i5(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:i5(J,i5(X,J)),max:i5(X,i5(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=RA(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,L=o5(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:L/(X-1),z+6>H)H=L/(X-(Q.offset?0.5:1)),M=this.maxHeight-wQ(Q.grid)-J.padding-bz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=S3(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=wQ(N)+M;else Q.height=this.maxHeight,Q.width=wQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),L=X.padding*2,I=P2(this.labelRotation),E=Math.cos(I),O=Math.sin(I);if(H){let V=X.mirror?0:O*z.width+E*T.height;Q.height=Math.min(this.maxHeight,Q.height+V+L)}else{let V=X.mirror?0:E*z.width+O*T.height;Q.width=Math.min(this.maxWidth,Q.width+V+L)}this._calculatePadding(F,w,O,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,L=0;if(M)if(F)T=q*Q.width,L=X*J.height;else T=X*Q.height,L=q*J.width;else if(N==="start")L=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,L=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((L-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,L,I,E,O,V,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,E=this._resolveTickFontOptions(z),q.font=O=E.string,V=N[O]=N[O]||{data:{},gc:[]},D=E.lineHeight,h=p=0,!$1(I)&&!_1(I))h=YQ(q,V.data,V.gc,h,I),p=D;else if(_1(I)){for(T=0,L=I.length;T<L;++T)if(s=I[T],!$1(s)&&!_1(s))h=YQ(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)}VA(N,J);let n=K.indexOf(F),$0=H.indexOf(w),a=(o)=>({width:K[o]||0,height:H[o]||0});return{first:a(0),last:a(J-1),widest:a(n),highest:a($0),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?A8(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=EA(this.getContext(),Q,X))}return this.$context||(this.$context=OA(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=P2(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=wQ(N),L=[],I=H.setContext(this.getContext()),E=I.display?I.width:0,O=E/2,V=function(l){return A8(X,l,E)},D,h,p,s,n,$0,a,o,q0,d,K0,P0;if(K==="top")D=V(this.bottom),$0=this.bottom-T,o=D-O,d=V(Q.top)+O,P0=Q.bottom;else if(K==="bottom")D=V(this.top),d=Q.top,P0=V(Q.bottom)-O,$0=D+O,o=this.top+T;else if(K==="left")D=V(this.right),n=this.right-T,a=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,n=D+O,a=this.left+T;else if(J==="x"){if(K==="center")D=V((Q.top+Q.bottom)/2+0.5);else if(i0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}d=Q.top,P0=Q.bottom,$0=D+O,o=$0+T}else if(J==="y"){if(K==="center")D=V((Q.left+Q.right)/2);else if(i0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}n=D-O,a=n-T,q0=Q.left,K0=Q.right}let C0=c0(q.ticks.maxTicksLimit,z),D0=Math.max(1,Math.ceil(z/C0));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||[],i=B0.dashOffset,H0=X0.tickWidth,F0=X0.tickColor,x0=X0.tickBorderDash||[],y1=X0.tickBorderDashOffset;if(p=IA(this,h,M),p===void 0)continue;if(s=A8(X,p,r0),F)n=a=q0=K0=s;else $0=o=d=P0=s;L.push({tx1:n,ty1:$0,tx2:a,ty2:o,x1:q0,y1:d,x2:K0,y2:P0,width:r0,color:u0,borderDash:v,borderDashOffset:i,tickWidth:H0,tickColor:F0,tickBorderDash:x0,tickBorderDashOffset:y1})}return this._ticksLength=z,this._borderValue=D,L}_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=wQ(X.grid),L=T+w,I=z?-w:L,E=-P2(this.labelRotation),O=[],V,D,h,p,s,n,$0,a,o,q0,d,K0,P0="middle";if(q==="top")n=this.bottom-I,$0=this._getXAxisLabelAlignment();else if(q==="bottom")n=this.top+I,$0=this._getXAxisLabelAlignment();else if(q==="left"){let D0=this._getYAxisLabelAlignment(T);$0=D0.textAlign,s=D0.x}else if(q==="right"){let D0=this._getYAxisLabelAlignment(T);$0=D0.textAlign,s=D0.x}else if(J==="x"){if(q==="center")n=(Q.top+Q.bottom)/2+L;else if(i0(q)){let D0=Object.keys(q)[0],l=q[D0];n=this.chart.scales[D0].getPixelForValue(l)+L}$0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-L;else if(i0(q)){let D0=Object.keys(q)[0],l=q[D0];s=this.chart.scales[D0].getPixelForValue(l)}$0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")P0="top";else if(M==="end")P0="bottom"}let C0=this._getLabelSizes();for(V=0,D=H.length;V<D;++V){h=H[V],p=h.label;let D0=N.setContext(this.getContext(V));a=this.getPixelForTick(V)+N.labelOffset,o=this._resolveTickFontOptions(V),q0=o.lineHeight,d=_1(p)?p.length:1;let l=d/2,X0=D0.color,B0=D0.textStrokeColor,r0=D0.textStrokeWidth,u0=$0;if(K){if(s=a,$0==="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"||E!==0)K0=-d*q0+q0/2;else if(F==="center")K0=-C0.highest.height/2-l*q0+q0;else K0=-C0.highest.height+q0/2;else if(F==="near"||E!==0)K0=q0/2;else if(F==="center")K0=C0.highest.height/2-l*q0;else K0=C0.highest.height-d*q0;if(z)K0*=-1;if(E!==0&&!D0.showLabelBackdrop)s+=q0/2*Math.sin(E)}else n=a,K0=(1-d)*q0/2;let v;if(D0.showLabelBackdrop){let i=R5(D0.backdropPadding),H0=C0.heights[V],F0=C0.widths[V],x0=K0-i.top,y1=0-i.left;switch(P0){case"middle":x0-=H0/2;break;case"bottom":x0-=H0;break}switch($0){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+i.width,height:H0+i.height,color:D0.backdropColor}}O.push({label:p,font:o,textOffset:K0,options:{rotation:E,color:X0,strokeColor:B0,strokeWidth:r0,textAlign:u0,textBaseline:P0,translation:[s,n],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-P2(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=A8(Q,this.left,K)-K/2,w=A8(Q,this.right,H)+H/2,z=T=M;else z=A8(Q,this.top,K)-K/2,T=A8(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)KQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;S8(X,F,0,w,M,H)}if(q)BQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=a1(X.font),K=R5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||i0(J)){if(M+=K.bottom,_1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=SA(this,M,J,H);S8(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:AA(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!==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 a1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class TQ{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(vA(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,jA(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 E8[X]}}}function jA(Q,J,X){let q=G$(Object.create(null),[X?k1.get(X):{},k1.get(J),Q.defaults]);if(k1.set(J,q),Q.defaultRoutes)DA(J,Q.defaultRoutes);if(Q.descriptors)k1.describe(J,Q.descriptors)}function DA(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 vA(Q){return"id"in Q&&"defaults"in Q}class LT{constructor(){this.controllers=new TQ(s3,"datasets",!0),this.elements=new TQ(V2,"elements"),this.plugins=new TQ(Object,"plugins"),this.scales=new TQ(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 K1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=A3(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 LT;class CT{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=bA(X);return q===!1&&!J?[]:fA(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 bA(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 kA(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function fA(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=kA(q[F],N);if(w===null)continue;K.push({plugin:M,options:yA(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function yA(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 gA(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function hA(Q,J){return Q===J?"_index_":"_value_"}function kz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function uA(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||uA(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 xA(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=E8[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(!i0(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,xA(H,Q),k1.scales[M.type]),w=hA(F,N),z=X.scales||{};K[H]=q$(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=(E8[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let L=gA(T,F),I=H[L+"AxisID"]||L;K[I]=K[I]||Object.create(null),q$(K[I],[{axis:L},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];q$(M,[k1.scales[M.type],k1.scale])}),K}function _T(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 dA(Q){return Q=Q||{},Q.data=IT(Q.data),_T(Q),Q}var yz=new Map,VT=new Set;function m3(Q,J){let X=yz.get(Q);if(!X)X=J(),yz.set(Q,X),VT.add(X);return X}var RQ=(Q,J,X)=>{let q=k9(J,X);if(q!==void 0)Q.add(q)};class OT{constructor(Q){this._config=dA(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(),_T(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return m3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return m3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return m3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return m3(`${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)=>RQ(M,Q,z));w.forEach((z)=>RQ(M,q,z)),w.forEach((z)=>RQ(M,E8[N]||{},z)),w.forEach((z)=>RQ(M,k1,z)),w.forEach((z)=>RQ(M,b3,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,E8[J]||{},k1.datasets[J]||{},{type:J},k1,b3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=gz(this._resolverCache,Q,q),M=K;if(cA(K,J)){N.$shared=!1,X=z2(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}=gz(this._resolverCache,Q,X);return i0(J)?b9(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:f3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var pA=(Q)=>i0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>z2(Q[J]));function cA(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&&(z2(M)||pA(M))||H&&_1(M))return!0}return!1}var lA="4.5.1",rA=["top","bottom","left","right","chartArea"];function hz(Q,J){return Q==="top"||Q==="bottom"||rA.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 sA(Q){let J=Q.chart,X=J.options.animation;T1(X&&X.onProgress,[Q],J)}function ET(Q){if(y3()&&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 l3={},mz=(Q)=>{let J=ET(Q);return Object.values(l3).filter((X)=>X.canvas===J).pop()};function nA(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 oA(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class u9{static defaults=k1;static instances=l3;static overrides=E8;static registry=h4;static version=lA;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||wA(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 CT,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=[],l3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(_2.listen(this,"complete",xz),_2.listen(this,"progress",sA),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 LU(this.canvas,this.ctx),this}stop(){return _2.stop(this),this}resize(Q,J){if(!_2.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;nA(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,z2(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(_2.has(this)){if(this.attached&&!_2.running(this))_2.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)KQ(J,q);if(Q.controller.draw(),q)BQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return f4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=aE.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=C2(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(Y$(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(),_2.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(),LU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete l3[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(!NQ(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=oA(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=!NQ(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(u9.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 iA(Q,J,X){Q.lineTo(X.x,X.y)}function aA(Q){if(Q.stepped)return Zz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Qz;return iA}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 tA(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=ST(N,X,q),z=aA(K),{move:T=!0,reverse:L}=q||{},I,E,O;for(I=0;I<=w;++I){if(E=N[(M+(L?w-I:I))%H],E.skip)continue;else if(T)Q.moveTo(E.x,E.y),T=!1;else z(Q,O,E,L,K.stepped);O=E}if(F)E=N[(M+(L?w:0))%H],z(Q,O,E,L,K.stepped);return!!F}function eA(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,L,I,E,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(L=0;L<=M;++L){if(I=N[h(L)],I.skip)continue;let{x:s,y:n}=I,$0=s|0;if($0===E){if(n<O)O=n;else if(n>V)V=n;z=(T*z+s)/++T}else p(),Q.lineTo(s,n),E=$0,T=0,O=V=n;D=n}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?eA:tA}function $S(Q){if(Q.stepped)return Bz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Hz;return I8}function ZS(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 QS(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 JS=typeof Path2D==="function";function GS(Q,J,X,q){if(JS&&!J.options.segment)ZS(Q,J,X,q);else QS(Q,J,X,q)}class B$ extends V2{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=$S(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],L=N[z],I=N[T];if(L===I){H.push(L);continue}let E=Math.abs((q-L[J])/(I[J]-L[J])),O=M(L,I,E,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(),GS(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 V2{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,k3(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 v8(Q,J,X,q){return Q?0:o5(J,X,q)}function XS(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=IU(q);return{t:v8(N.top,K.top,0,X),r:v8(N.right,K.right,0,J),b:v8(N.bottom,K.bottom,0,X),l:v8(N.left,K.left,0,J)}}function qS(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=j8(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||i0(N);return{topLeft:v8(!F||M.top||M.left,K.topLeft,0,H),topRight:v8(!F||M.top||M.right,K.topRight,0,H),bottomLeft:v8(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:v8(!F||M.bottom||M.right,K.bottomRight,0,H)}}function YS(Q){let J=jT(Q),X=J.right-J.left,q=J.bottom-J.top,N=XS(Q,X/2,q/2),K=qS(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||L2(J,M.left,M.right))&&(K||L2(X,M.top,M.bottom))}function NS(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function US(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 V2{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}=YS(this),H=NS(K.radius)?K$:US;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 KS(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=n3(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 L of T){let I=oU(X,K[L.start],K[L.end],L.loop),E=vU(M,N,I);for(let O of E)H.push({source:O,target:L,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 BS(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=n3(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 n3(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(_1(Q))q=!0,X=Q;else X=BS(Q,J);return X.length?new B$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function lz(Q){return Q&&Q.fill!==!1}function HS(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 MS(Q,J,X){let q=RS(Q);if(i0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(b1(N)&&Math.floor(N)===N)return FS(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function FS(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function WS(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(i0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function wS(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(i0(Q))q=Q.value;else q=J.getBaseValue();return q}function RS(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 zS(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=TS(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++)PS(N,H[z],M)}return new B$({points:N,options:{}})}function TS(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 PS(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=LS(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function LS(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],L=H[z.end][X];if(L2(N,T,L)){M=N===T,F=N===L;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 CS(Q){let{chart:J,fill:X,line:q}=Q;if(b1(X))return _S(J,X);if(X==="stack")return zS(Q);if(X==="shape")return!0;let N=IS(Q);if(N instanceof YK)return N;return DT(N,q)}function _S(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function IS(Q){if((Q.scale||{}).getPointPositionForValue)return OS(Q);return VS(Q)}function VS(Q){let{scale:J={},fill:X}=Q,q=WS(X,J);if(b1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function OS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=wS(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=CS(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:L=T,below:I=T}=z||{},E=N.getDatasetMeta(K),O=kU(N,E);if(q&&H.points.length)KQ(Q,X),ES(Q,{line:H,target:q,above:L,below:I,area:X,scale:M,axis:F,clip:O}),BQ(Q)}function ES(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[n3(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[n3(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=KS(X,q,N);for(let{source:w,target:z,start:T,end:L}of F){let{style:{backgroundColor:I=K}={}}=w,E=q!==!0;Q.save(),Q.fillStyle=I,AS(Q,H,M,E&&oU(N,T,L)),Q.beginPath();let O=!!X.pathSegment(Q,w),V;if(E){if(O)Q.closePath();else nz(Q,q,L,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 AS(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 B$)F={visible:Q.isDatasetVisible(H),index:H,fill:MS(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=HS(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)}},SS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class iU extends V2{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=a1(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,L=-w;return this.legendItems.forEach((I,E)=>{let O=X+J/2+N.measureText(I.text).width;if(E===0||F[F.length-1]+O+2*H>K)z+=w,F[F.length-(E>0?0:1)]=0,L+=w,T++;M[E]={left:0,top:L,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,L=0,I=0,E=0;return this.legendItems.forEach((O,V)=>{let{itemWidth:D,itemHeight:h}=jS(X,J,N,O,q);if(V>0&&L+h+2*H>w)z+=T+H,F.push({width:T,height:L}),I+=T+H,E++,T=L=0;M[V]={left:I,top:L,col:E,width:D,height:h},T=Math.max(T,D),L+=h+H}),z+=T,F.push({width:T,height:L}),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=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;KQ(Q,this),this._draw(),BQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=k1.color,M=f9(Q.rtl,this.left,this.width),F=a1(K.font),{padding:w}=K,z=F.size,T=z/2,L;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:E,itemHeight:O}=oz(K,z),V=function(n,$0,a){if(isNaN(I)||I<=0||isNaN(E)||E<0)return;q.save();let o=c0(a.lineWidth,1);if(q.fillStyle=c0(a.fillStyle,H),q.lineCap=c0(a.lineCap,"butt"),q.lineDashOffset=c0(a.lineDashOffset,0),q.lineJoin=c0(a.lineJoin,"miter"),q.lineWidth=o,q.strokeStyle=c0(a.strokeStyle,H),q.setLineDash(c0(a.lineDash,[])),K.usePointStyle){let q0={radius:E*Math.SQRT2/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:o},d=M.xPlus(n,I/2),K0=$0+T;CU(q,q0,d,K0,K.pointStyleWidth&&I)}else{let q0=$0+Math.max((z-E)/2,0),d=M.leftForLtr(n,I),K0=j8(a.borderRadius);if(q.beginPath(),Object.values(K0).some((P0)=>P0!==0))K$(q,{x:d,y:q0,w:I,h:E,radius:K0});else q.rect(d,q0,I,E);if(q.fill(),o!==0)q.stroke()}q.restore()},D=function(n,$0,a){S8(q,a.text,n,$0+O/2,F,{strikethrough:a.hidden,textAlign:M.textAlign(a.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)L={x:w5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else L={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((n,$0)=>{q.strokeStyle=n.fontColor,q.fillStyle=n.fontColor;let a=q.measureText(n.text).width,o=M.textAlign(n.textAlign||(n.textAlign=K.textAlign)),q0=I+T+a,d=L.x,K0=L.y;if(M.setWidth(this.width),h){if($0>0&&d+q0+w>this.right)K0=L.y+=s,L.line++,d=L.x=w5(N,this.left+w,this.right-X[L.line])}else if($0>0&&K0+s>this.bottom)d=L.x=d+J[L.line].width+w,L.line++,K0=L.y=w5(N,this.top+p+w,this.bottom-J[L.line].height);let P0=M.x(d);if(V(P0,K0,n),d=oR(o,d+I+T,h?d+q0:this.right,Q.rtl),D(M.x(d),K0,n),h)L.x+=q0+w;else if(typeof n.text!=="string"){let C0=F.lineHeight;L.y+=bT(n,C0)+w}else L.y+=s}),DU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=a1(J.font),q=R5(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=w5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((E,O)=>Math.max(E,O.height),0);w=F+w5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let L=w5(H,z,z+T);K.textAlign=N.textAlign(D3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,S8(K,J.text,L,w,X)}_computeTitleHeight(){let Q=this.options.title,J=a1(Q.font),X=R5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(L2(Q,this.left,this.right)&&L2(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],L2(Q,q.left,q.left+q.width)&&L2(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!bS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=SS(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 jS(Q,J,X,q,N){let K=DS(q,Q,J,X),H=vS(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function DS(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 vS(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 bS(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:iU,start(Q,J,X){let q=Q.legend=new iU({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 V2{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=_1(X.text)?X.text.length:1;this._padding=R5(X.padding);let N=q*a1(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=a1(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);S8(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:D3(J.align),textBaseline:"middle",translation:[K,H]})}}function kS(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){kS(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 PQ={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=O3(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(_1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function I2(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:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],cQ=E0("zap",Fj);var wj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],x9=E0("x",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:"JEOPI"},void 0,!1,void 0,this),m6.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},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:"jeopi 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="jeopi-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:"JEOPI"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},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,lo1=-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 iz(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=a1(J.bodyFont),w=a1(J.titleFont),z=a1(J.footerFont),T=K.length,L=N.length,I=q.length,E=R5(J.padding),O=E.height,V=0,D=q.reduce((s,n)=>s+n.before.length+n.lines.length+n.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(L)O+=J.footerMarginTop+L*z.lineHeight+(L-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+=E.width,{width:V,height:O}}function yS(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 gS(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 hS(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(gS(w,Q,J,X))w="center";return w}function az(Q,J,X){let q=X.yAlign||J.yAlign||yS(Q,X);return{xAlign:X.xAlign||J.xAlign||hS(Q,J,X,q),yAlign:q}}function uS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function xS(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:L,bottomRight:I}=j8(H),E=uS(J,M),O=xS(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,L)+N;else if(M==="right")E+=Math.max(T,I)+N;return{x:o5(E,0,q.width-J.width),y:o5(O,0,q.height-J.height)}}function d3(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([],I2(Q))}function mS(Q,J,X){return C2(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 a5(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return yT[J].call(X,q);return N}class aU extends V2{static positioners=PQ;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=a5(X,"beforeTitle",this,Q),N=a5(X,"title",this,Q),K=a5(X,"afterTitle",this,Q),H=[];return H=g4(H,I2(q)),H=g4(H,I2(N)),H=g4(H,I2(K)),H}getBeforeBody(Q,J){return ez(a5(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,I2(a5(H,"beforeLabel",this,N))),g4(K.lines,a5(H,"label",this,N)),g4(K.after,I2(a5(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return ez(a5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=a5(X,"beforeFooter",this,Q),N=a5(X,"footer",this,Q),K=a5(X,"afterFooter",this,Q),H=[];return H=g4(H,I2(q)),H=g4(H,I2(N)),H=g4(H,I2(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 K1(H,(w)=>{let z=$T(Q.callbacks,w);q.push(a5(z,"labelColor",this,w)),N.push(a5(z,"labelPointStyle",this,w)),K.push(a5(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=PQ[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=iz(this,X),F=Object.assign({},H,M),w=az(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}=j8(H),{x:T,y:L}=Q,{width:I,height:E}=J,O,V,D,h,p,s;if(N==="center"){if(p=L+E/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=L,p=h-K,O=V-K,D=V+K;else h=L+E,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=f9(X.rtl,this.x,this.width);Q.x=d3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=a1(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=a1(N.bodyFont),z=d3(this,"left",N),T=q.x(z),L=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+L;if(N.usePointStyle){let E={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,k3(Q,E,O,V),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,k3(Q,E,O,V)}else{Q.lineWidth=i0(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),O=q.leftForLtr(q.xPlus(T,1),F-2),V=j8(K.borderRadius);if(Object.values(V).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,K$(Q,{x:E,y:I,w:F,h:M,radius:V}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),K$(Q,{x:O,y:I+1,w:F-2,h:M-2,radius:V}),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(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=a1(X.bodyFont),T=z.lineHeight,L=0,I=f9(X.rtl,this.x,this.width),E=function(a){J.fillText(a,I.x(Q.x+L),Q.y+T/2),Q.y+=T+N},O=I.textAlign(K),V,D,h,p,s,n,$0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=d3(this,O,X),J.fillStyle=X.bodyColor,K1(this.beforeBody,E),L=H&&O!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,n=q.length;p<n;++p){if(V=q[p],D=this.labelTextColors[p],J.fillStyle=D,K1(V.before,E),h=V.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,$0=h.length;s<$0;++s)E(h[s]),T=z.lineHeight;K1(V.after,E)}L=0,T=z.lineHeight,K1(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=d3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=a1(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:L,bottomRight:I}=j8(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+L,M+w),J.quadraticCurveTo(H,M+w,H,M+w-L),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=PQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=iz(this,Q),M=Object.assign({},K,this._size),F=az(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=!NQ(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||!NQ(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=PQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var gT={id:"tooltip",_element:aU,positioners:PQ,afterInit(Q,J,X){if(X)Q.tooltip=new aU({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 dS=(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 dS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var cS=(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 h9{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:pS(X,Q,c0(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 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 lS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:L}=Q,I=K||1,E=z-1,{min:O,max:V}=J,D=!$1(H),h=!$1(M),p=!$1(w),s=(V-O)/(T+1),n=BU((V-O)/E/I)*I,$0,a,o,q0;if(n<0.00000000000001&&!D&&!h)return[{value:O},{value:V}];if(q0=Math.ceil(V/n)-Math.floor(O/n),q0>E)n=BU(q0*n/E/I)*I;if(!$1(F))$0=Math.pow(10,F),n=Math.ceil(n*$0)/$0;if(N==="ticks")a=Math.floor(O/n)*n,o=Math.ceil(V/n)*n;else a=O,o=V;if(D&&h&&K&&mR((M-H)/K,n/1000))q0=Math.round(Math.min((M-H)/n,z)),n=(M-H)/q0,a=H,o=M;else if(p)a=D?H:a,o=h?M:o,q0=w-1,n=(o-a)/q0;else if(q0=(o-a)/n,N$(q0,Math.round(q0),n/1000))q0=Math.round(q0);else q0=Math.ceil(q0);let d=Math.max(MU(n),MU(a));$0=Math.pow(10,$1(F)?d:F),a=Math.round(a*$0)/$0,o=Math.round(o*$0)/$0;let K0=0;if(D){if(L&&a!==H){if(X.push({value:H}),a<H)K0++;if(N$(Math.round((a+K0*n)*$0)/$0,H,QT(H,s,Q)))K0++}else if(a<H)K0++}for(;K0<q0;++K0){let P0=Math.round((a+K0*n)*$0)/$0;if(h&&P0>M)break;X.push({value:P0})}if(h&&L&&o!==M)if(X.length&&N$(X[X.length-1].value,M,QT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||o===M)X.push({value:o});return X}function QT(Q,J,{horizontal:X,minRotation:q}){let N=P2(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($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=lS(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 v3(Q,this.chart.options.locale,this.options.ticks.format)}}class KK extends CQ{static id="linear";static defaults={ticks:{callback:UQ.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=P2(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 _Q=(Q)=>Math.floor(T2(Q)),g9=(Q,J)=>Math.pow(10,_Q(Q)+J);function JT(Q){return Q/Math.pow(10,_Q(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 rS(Q,J){let X=J-Q,q=_Q(X);while(GT(Q,J,q)>10)q++;while(GT(Q,J,q)<10)q--;return Math.min(q,_Q(Q))}function sS(Q,{min:J,max:X}){J=i5(Q.min,J);let q=[],N=_Q(J),K=rS(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)),L=i5(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(L<X){if(q.push({value:L,major:JT(L),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;L=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=i5(Q.max,L);return q.push({value:I,major:JT(I),significand:T}),q}class nS extends h9{static id="logarithmic";static defaults={ticks:{callback:UQ.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 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===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=sS(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":v3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=T2(Q),this._valueRange=T2(this.max)-T2(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:(T2(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 oS(Q,J,X){return X=_1(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 iS(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=a1(w.font),L=oS(Q.ctx,T,Q._pointLabels[F]);q[F]=L;let I=r5(Q.getIndexAngle(F)+M),E=Math.round(S3(I)),O=XT(E,z.x,L.w,0,180),V=XT(E,z.y,L.h,90,270);aS(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=$j(Q,q,N)}function aS(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 tS(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(S3(r5(F.angle+s5))),z=Jj(F.y,M.h,w),T=Zj(w),L=Qj(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:L,top:z,right:L+M.w,bottom:z+M.h}}function eS(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 $j(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=tS(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=eS(T,w),T.visible)w=T}}return q}function Zj(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function Qj(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function Jj(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function Gj(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!$1(M)){let F=j8(J.borderRadius),w=R5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,L=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((E)=>E!==0))Q.beginPath(),K$(Q,{x:z,y:T,w:L,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,L,I)}}function Xj(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));Gj(X,H,K);let M=a1(H.font),{x:F,y:w,textAlign:z}=K;S8(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 qj(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 Yj(Q,J,X){return C2(Q,{label:X,index:J,type:"pointLabel"})}class Nj 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:UQ.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){CQ.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)iS(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+P2(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 Yj(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)Xj(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),L=q.setContext(T),I=N.setContext(T);qj(this,L,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=a1(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)}S8(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var o3={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(o3);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"&&(U$(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=o3[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 Uj(Q,J,X,q,N){for(let K=t5.length-1;K>=t5.indexOf(X);K--){let H=t5[K];if(o3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return t5[X?t5.indexOf(X):0]}function Kj(Q){for(let J=t5.indexOf(Q)+1,X=t5.length;J<X;++J)if(o3[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}=j3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function Bj(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:Bj(Q,q,N,X)}class eU 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 rE._date(Q.adapters.date);q.init(J),q$(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)):Uj(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:Kj(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=U$(M)||M===!0,w={},z=J,T,L;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,L=0;T<X;T=+Q.add(T,H,K),L++)UT(w,T,I);if(T===X||q.bounds==="ticks"||L===1)UT(w,T,I);return Object.keys(w).sort(qT).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 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],L=F&&z&&T&&T.major;return this._adapter.format(Q,q||(L?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=P2(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 p3(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}=V8(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}=V8(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 Hj 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=p3(J,this.min),this._tableRange=p3(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(p3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return p3(this._table,X*this._tableRange+this._minPos,!0)}}u9.register(UK,KK,qK,B$,XK,fT,gT,kT,vT);var wC=t(lT(),1);var j2=t(I1(),1);var a3=t(I1(),1);var rT=(Q)=>Q?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function sT(Q,J,X=[]){if(J==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:rT(Q),size:24,node:J,...X.length>0?{aliases:X}:{}}}var nT=(Q)=>{let J="",X=!1;for(let q of Q){if(q==="-"||q==="_"||q<=" "){X=J.length>0;continue}if(J.length===0)J+=q.toLowerCase();else J+=X?q.toUpperCase():q;X=!1}return J};var oT=(Q)=>{let J=nT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var OQ=t(I1(),1);var VQ=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var b8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function MK(Q){return Q!==null&&Q!==void 0}function iT(Q,J={}){let X=J.attributeNames??{},q=(L)=>X[L]??L,N=Q.size??Q.width??b8.width,K=Q.size??Q.height??b8.height,H=Q.aliases?.filter((L)=>typeof L==="string"&&L.trim()!=="").map((L)=>`lucide-${L}`)??[],M=[...Q.name?[`lucide-${Q.name}`]:[],...H],F=J.className?.split(" ").filter(Boolean)??[],w=J.includeDefaultClasses===!1?VQ(...F):VQ("lucide",...M,...F),z=J.absoluteStrokeWidth?Number(J.strokeWidth??b8["stroke-width"])*Number(Q.size??Q.width??b8.width)/Number(J.size??J.width??b8.width):J.strokeWidth??b8["stroke-width"];return["svg",{...Object.entries(b8).reduce((L,[I,E])=>{return L[q(I)]=E,L},{}),..."color"in J&&J.color&&{[q("stroke")]:J.color},..."size"in J&&MK(J.size)&&{[q("width")]:J.size,[q("height")]:J.size},..."width"in J&&MK(J.width)&&{[q("width")]:J.width},..."height"in J&&MK(J.height)&&{[q("height")]:J.height},[q("stroke-width")]:z,...w&&{[q("class")]:w},[q("viewBox")]:`0 0 ${N} ${K}`,...J.hasA11yProp===!1?{[q("aria-hidden")]:"true"}:{},..."attributes"in J&&J.attributes},Q.node.map((L)=>{let[I,E,O]=L,V=J.nonScalingStroke?{[q("vector-effect")]:"non-scaling-stroke",...E}:E;return O?[I,V,O]:[I,V]})]}function aT(Q,J={}){return iT(Q,{...J,attributeNames:{...J.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var tT=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var M$=t(I1(),1),Tj=M$.createContext({});var eT=()=>M$.useContext(Tj);var $P=OQ.forwardRef(({color:Q,size:J,width:X,height:q,strokeWidth:N,absoluteStrokeWidth:K,nonScalingStroke:H,className:M="",children:F,iconNode:w=[],icon:z={node:w,aliases:[],size:24},...T},L)=>{let{size:I=24,strokeWidth:E=2,absoluteStrokeWidth:O=!1,nonScalingStroke:V=!1,color:D="currentColor",className:h=""}=eT()??{},p=Boolean(F)||tT(T),[s,n,$0=[]]=aT(z,{color:Q??D,width:X??J??I,height:q??J??I,strokeWidth:N??E,absoluteStrokeWidth:K??O,nonScalingStroke:H??V,className:VQ(h,M),hasA11yProp:p,attributes:T});return OQ.createElement(s,{ref:L,...n},[...$0.map(([a,o])=>OQ.createElement(a,o)),...Array.isArray(F)?F:[F]])});function E0(Q,J=[],X=[]){let q=typeof Q==="string"?sT(Q,J,X):Q,N=a3.forwardRef(({className:K,...H},M)=>a3.createElement($P,{ref:M,icon:q,className:K,...H}));if(q.name)N.displayName=oT(q.name);return N}var ZP={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};ZP.node;var k8=E0(ZP);var QP={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};QP.node;var f8=E0(QP);var JP={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};JP.node;var EQ=E0(JP);var GP={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};GP.node;var AQ=E0(GP);var XP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};XP.node;var SQ=E0(XP);var qP={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};qP.node;var jQ=E0(qP);var YP={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};YP.node;var DQ=E0(YP);var NP={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};NP.node;var m9=E0(NP);var UP={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};UP.node;var vQ=E0(UP);var KP={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};KP.node;var bQ=E0(KP);var BP={name:"folder",size:24,node:[["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"}]]};BP.node;var kQ=E0(BP);var HP={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};HP.node;var fQ=E0(HP);var MP={name:"hash",size:24,node:[["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"}]]};MP.node;var yQ=E0(MP);var FP={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};FP.node;var gQ=E0(FP);var WP={name:"layout-dashboard",size:24,node:[["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"}]]};WP.node;var hQ=E0(WP);var wP={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};wP.node;var uQ=E0(wP);var RP={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};RP.node;var xQ=E0(RP);var zP={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};zP.node;var mQ=E0(zP);var TP={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};TP.node;var dQ=E0(TP);var PP={name:"star",size:24,node:[["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"}]]};PP.node;var pQ=E0(PP);var LP={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};LP.node;var cQ=E0(LP);var CP={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};CP.node;var lQ=E0(CP);var _P={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};_P.node;var d9=E0(_P);var IP={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};IP.node;var rQ=E0(IP);var lP=t(I1(),1);var sQ=[{id:"overview",label:"Overview",icon:hQ},{id:"requests",label:"Requests",icon:EQ},{id:"errors",label:"Errors",icon:k8},{id:"models",label:"Models",icon:bQ},{id:"costs",label:"Costs",icon:m9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:f8},{id:"projects",label:"Projects",icon:kQ},{id:"gain",label:"Gain",icon:lQ}];var m6=t(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:"JEOPI"},void 0,!1,void 0,this),m6.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},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:sQ.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:"jeopi stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WK=t(M0(),1),Lj=[{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 VP({value:Q,onChange:J,className:X=""}){return WK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:Lj.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=t(I1(),1);class OP 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 OP(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function EP(Q="24h",J){return u4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function AP(Q="24h",J){return u4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function SP(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 jP(Q=50,J){return u4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function DP(Q,J){return u4(`/api/request/${Q}`,{signal:J})}async function vP(Q){return u4("/api/sync",{signal:Q})}async function bP(Q="24h",J){return u4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function kP(Q="24h",J){return u4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function fP(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 nQ=t(M0(),1);function yP({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 vP(),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 nQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&nQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),nQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[nQ.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 e3=t(I1(),1),gP="jeopi-stats-theme",hP="(prefers-color-scheme: dark)";function Cj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(gP);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function uP(){if(typeof window>"u")return"dark";return window.matchMedia(hP).matches?"dark":"light"}var c9=Cj(),oQ=c9==="system"?uP():c9,RK=new Set;function xP(){for(let Q of RK)Q()}function zK(){if(oQ=c9==="system"?uP():c9,typeof document<"u")document.documentElement.dataset.theme=oQ,document.documentElement.style.colorScheme=oQ}if(typeof window<"u")zK(),window.matchMedia(hP).addEventListener("change",()=>{if(c9==="system")zK(),xP()});function _j(Q){if(c9=Q,typeof localStorage<"u")localStorage.setItem(gP,Q);zK(),xP()}function TK(Q){return RK.add(Q),()=>RK.delete(Q)}function d6(){return e3.useSyncExternalStore(TK,()=>oQ,()=>"dark")}function mP(){let Q=e3.useSyncExternalStore(TK,()=>c9,()=>"system"),J=e3.useSyncExternalStore(TK,()=>oQ,()=>"dark");return{preference:Q,resolved:J,setPreference:_j}}var PK=t(M0(),1),Ij={system:"light",light:"dark",dark:"system"},Vj={system:xQ,light:cQ,dark:mQ},dP={system:"System theme",light:"Light theme",dark:"Dark theme"};function pP(){let{preference:Q,setPreference:J}=mP(),X=Vj[Q];return PK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(Ij[Q]),"aria-label":`${dP[Q]} (click to switch)`,title:`${dP[Q]} — click to switch`,children:PK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var p6=t(M0(),1);function cP({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=sQ.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(uQ,{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(VP,{value:J,onChange:X},void 0,!1,void 0,this),p6.jsxDEV(pP,{},void 0,!1,void 0,this),p6.jsxDEV(yP,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var V5=t(M0(),1);function rP({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=lP.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:"JEOPI"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},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(d9,{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(cP,{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 O2=t(I1(),1),Oj=["overview","requests","errors","models","costs","behavior","projects","gain"],sP=["1h","24h","7d","30d","90d","all"];function LK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=Oj.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(sP.includes(M))K=M}return{section:N,range:K}}function nP(){let[Q,J]=O2.useState(()=>LK(window.location.hash));O2.useEffect(()=>{let K=()=>{J(LK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=O2.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=O2.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=O2.useCallback((K)=>{let H=sP.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return O2.useEffect(()=>{let K=window.location.hash,H=LK(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 Ej=Math.pow(10,8)*24*60*60*1000,d05=-Ej,$X=604800000,oP=86400000;var iQ=43200,CK=1440;var _K=Symbol.for("constructDateFrom");function O5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&_K in Q)return Q[_K](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function Q1(Q,J){return O5(J||Q,Q)}var Aj={};function x4(){return Aj}function E2(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 l9(Q,J){return E2(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=l9(N),H=O5(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 F$(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 y8(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 iP(Q,J,X){let[q,N]=y8(X?.in,Q,J),K=IK(q),H=IK(N),M=+K-F$(K),F=+H-F$(H);return Math.round((M-F)/oP)}function aP(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),l9(q)}function W$(Q,J){let X=+Q1(Q)-+Q1(J);if(X<0)return-1;else if(X>0)return 1;return X}function tP(Q){return O5(Q,Date.now())}function eP(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function $L(Q){return!(!eP(Q)&&typeof Q!=="number"||isNaN(+Q1(Q)))}function ZL(Q,J,X){let[q,N]=y8(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function QL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function JL(Q,J){return+Q1(Q)-+Q1(J)}function GL(Q,J){let X=Q1(Q,J?.in);return X.setHours(23,59,59,999),X}function XL(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 qL(Q,J){let X=Q1(Q,J?.in);return+GL(X,J)===+XL(X,J)}function YL(Q,J,X){let[q,N,K]=y8(X?.in,Q,Q,J),H=W$(N,K),M=Math.abs(ZL(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(qL(q)&&M===1&&W$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function NL(Q,J,X){let q=JL(Q,J)/1000;return QL(X?.roundingMethod)(q)}function UL(Q,J){let X=Q1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var Sj={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"}},KL=(Q,J,X)=>{let q,N=Sj[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 jj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Dj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BL={date:QX({formats:jj,defaultWidth:"full"}),time:QX({formats:Dj,defaultWidth:"full"}),dateTime:QX({formats:vj,defaultWidth:"full"})};var bj={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)=>bj[Q];function w$(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 kj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yj={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"]},gj={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"]},hj={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"}},uj={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"}},xj=(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"},ML={ordinalNumber:xj,era:w$({values:kj,defaultWidth:"wide"}),quarter:w$({values:fj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:w$({values:yj,defaultWidth:"wide"}),day:w$({values:gj,defaultWidth:"wide"}),dayPeriod:w$({values:hj,defaultWidth:"wide",formattingValues:uj,defaultFormattingWidth:"wide"})};function R$(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)?dj(M,(T)=>T.test(H)):mj(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 mj(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function dj(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function FL(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 pj=/^(\d+)(th|st|nd|rd)?/i,cj=/\d+/i,lj={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},rj={any:[/^b/i,/^(a|c)/i]},sj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nj={any:[/1/i,/2/i,/3/i,/4/i]},oj={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},ij={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]},aj={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},tj={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]},ej={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},$D={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}},WL={ordinalNumber:FL({matchPattern:pj,parsePattern:cj,valueCallback:(Q)=>parseInt(Q,10)}),era:R$({matchPatterns:lj,defaultMatchWidth:"wide",parsePatterns:rj,defaultParseWidth:"any"}),quarter:R$({matchPatterns:sj,defaultMatchWidth:"wide",parsePatterns:nj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:R$({matchPatterns:oj,defaultMatchWidth:"wide",parsePatterns:ij,defaultParseWidth:"any"}),day:R$({matchPatterns:aj,defaultMatchWidth:"wide",parsePatterns:tj,defaultParseWidth:"any"}),dayPeriod:R$({matchPatterns:ej,defaultMatchWidth:"any",parsePatterns:$D,defaultParseWidth:"any"})};var aQ={code:"en-US",formatDistance:KL,formatLong:BL,formatRelative:HL,localize:ML,match:WL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wL(Q,J){let X=Q1(Q,J?.in);return iP(X,UL(X))+1}function RL(Q,J){let X=Q1(Q,J?.in),q=+l9(X)-+aP(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=E2(H,J),F=O5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=E2(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function zL(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),E2(K,J)}function TL(Q,J){let X=Q1(Q,J?.in),q=+E2(X,J)-+zL(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 A2={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 z$={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 A2.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 A2.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=TL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return Y1(N,J.length)},I:function(Q,J,X){let q=RL(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 A2.d(Q,J)},D:function(Q,J,X){let q=wL(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=z$.noon;else if(q===0)N=z$.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=z$.evening;else if(q>=12)N=z$.afternoon;else if(q>=4)N=z$.morning;else N=z$.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 A2.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return A2.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 A2.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return A2.s(Q,J)},S:function(Q,J){return A2.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return LL(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 LL(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"+PL(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"+PL(q,":");case"zzzz":default:return"GMT"+r9(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 PL(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 LL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Y1(Math.abs(Q)/60,2);return r9(Q,J)}function r9(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 CL=(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"})}},_L=(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"})}},ZD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return CL(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}}",CL(q,J)).replace("{{time}}",_L(N,J))},IL={p:_L,P:ZD};var QD=/^D+$/,JD=/^Y+$/,GD=["D","DD","YY","YYYY"];function VL(Q){return QD.test(Q)}function OL(Q){return JD.test(Q)}function EL(Q,J,X){let q=XD(Q,J,X);if(console.warn(q),GD.includes(Q))throw RangeError(q)}function XD(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,YD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ND=/^'([^]*?)'?$/,UD=/''/g,KD=/[a-zA-Z]/;function X4(Q,J,X){let q=x4(),N=X?.locale??q.locale??aQ,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(!$L(M))throw RangeError("Invalid time value");let F=J.match(YD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let L=IL[T];return L(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:BD(z)};if(VK[T])return{isToken:!0,value:z};if(T.match(KD))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&&OL(T)||!X?.useAdditionalDayOfYearTokens&&VL(T))EL(T,J,String(Q));let L=VK[T[0]];return L(M,T,N.localize,w)}).join("")}function BD(Q){let J=Q.match(ND);if(!J)return Q;return J[1].replace(UD,"'")}function AL(Q,J,X){let q=x4(),N=X?.locale??q.locale??aQ,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]=y8(X?.in,...H>0?[J,Q]:[Q,J]),z=NL(w,F),T=(F$(w)-F$(F))/1000,L=Math.round((z-T)/60),I;if(L<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(L===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",L,M);else if(L<45)return N.formatDistance("xMinutes",L,M);else if(L<90)return N.formatDistance("aboutXHours",1,M);else if(L<CK){let E=Math.round(L/60);return N.formatDistance("aboutXHours",E,M)}else if(L<2520)return N.formatDistance("xDays",1,M);else if(L<iQ){let E=Math.round(L/CK);return N.formatDistance("xDays",E,M)}else if(L<iQ*2)return I=Math.round(L/iQ),N.formatDistance("aboutXMonths",I,M);if(I=YL(w,F),I<12){let E=Math.round(L/iQ);return N.formatDistance("xMonths",E,M)}else{let E=I%12,O=Math.trunc(I/12);if(E<3)return N.formatDistance("aboutXYears",O,M);else if(E<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function SL(Q,J){return AL(Q,tP(Q),J)}var J5=t(I1(),1);var OK=t(jL(),1),L6=t(I1(),1);var vL="label";function DL(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function MD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function bL(Q,J){Q.labels=J}function kL(Q,J,X=vL){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 FD(Q,J=vL){let X={labels:[],datasets:[]};return bL(X,Q.labels),kL(X,Q.datasets,J),X}function WD(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,...L}=Q,I=L6.useRef(null),E=L6.useRef(null),O=()=>{if(!I.current)return;E.current=new u9(I.current,{type:H,data:FD(M,K),options:F&&{...F},plugins:w}),DL(J,E.current)},V=()=>{if(DL(J,null),E.current)E.current.destroy(),E.current=null};return L6.useEffect(()=>{if(!N&&E.current&&F)MD(E.current,F)},[N,F]),L6.useEffect(()=>{if(!N&&E.current)bL(E.current.config.data,M.labels)},[N,M.labels]),L6.useEffect(()=>{if(!N&&E.current&&M.datasets)kL(E.current.config.data,M.datasets,K)},[N,M.datasets]),L6.useEffect(()=>{if(!E.current)return;if(N)V(),setTimeout(O);else E.current.update(T)},[N,F,M.labels,M.datasets,T]),L6.useEffect(()=>{if(!E.current)return;V(),setTimeout(O)},[H]),L6.useEffect(()=>{return O(),()=>V()},[]),OK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...L,children:z})}var wD=L6.forwardRef(WD);function fL(Q,J){return u9.register(J),L6.forwardRef((X,q)=>OK.jsx(wD,{...X,ref:q,type:Q}))}var e5=fL("line",QK),GX=fL("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 T$(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 P$(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 L$(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 C$(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 L=new Map;for(let[D,{model:h,provider:p}]of w)L.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])=>L.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))E.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)?L.get(h)??D.model:"Other",s=V.get(D.timestamp);if(!s)continue;let n=s[p]??N();K(n,D),s[p]=n}return{labels:I.map((D)=>X4(new Date(D),"MMM d")),datasets:E.map((D)=>({label:D,data:I.map((h)=>{let p=V.get(h)?.[D];return p?H(p):0})}))}}var j1=t(M0(),1);function S2(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,...S2(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 yL(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 gL(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 RD(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:RD(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(jQ,{size:16},void 0,!1,void 0,this):j1.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?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 hL(Q){if(Q===null)return"-";return Q.toFixed(1)}function d4(Q){return SL(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=t(I1(),1),g8=new Map,zD=64;function T5(Q,J,X){let q=JSON.stringify(Q),[N,K]=z5.useState(()=>g8.get(q)?.data??null),[H,M]=z5.useState(null),[F,w]=z5.useState(()=>!g8.has(q)),[z,T]=z5.useState(!1),[L,I]=z5.useState(()=>g8.get(q)?.updatedAt??null),E=z5.useRef(J);E.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($0)=>{if(h.current)h.current.abort();let a=new AbortController;if(h.current=a,$0)T(!0);else w(!0),K(null);M(null);try{let o=await E.current(a.signal);if(a.signal.aborted)return;if(g8.set(O.current,{data:o,updatedAt:Date.now()}),g8.size>zD){let q0=g8.keys().next().value;if(q0!==void 0)g8.delete(q0)}K(o),I(Date.now()),M(null)}catch(o){if(a.signal.aborted)return;M(o instanceof Error?o:Error(String(o)))}finally{if(!a.signal.aborted){if(w(!1),T(!1),h.current===a)h.current=null}}},[]);z5.useEffect(()=>{if(!V){w(!1),T(!1);return}let $0=g8.get(q);if($0)K($0.data),I($0.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 $0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval($0)}},[V,D,s]);let n=z5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:n,updatedAt:L}}var uL=3600000,RX=24*uL,TD=300000,xL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:TD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:uL,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 tQ(Q){return xL[Q]}function AK(Q,J){return X4(new Date(Q),xL[J].tickFormat)}var PD=["main","subagent","advisor"];function mL(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=PD.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 dL(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 pL(Q,J){if(Q.length===0)return new Map;let X=tQ(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,L)=>Math.max(T,L.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,L)=>z+L*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((L)=>({timestamp:L,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 cL(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 lL(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=t(M0(),1);function rL({message:Q="No data available",icon:J=gQ,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 _$=t(M0(),1);function sL({error:Q,onRetry:J,className:X=""}){return _$.jsxDEV("div",{className:`stats-error-state ${X}`,children:_$.jsxDEV("div",{className:"stats-error-state-content",children:[_$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&_$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&_$.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 nL=t(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 nL.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var C6=t(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 C6.jsxDEV(sL,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return C6.jsxDEV(C6.Fragment,{children:K},void 0,!1,void 0,this);return C6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[C6.jsxDEV(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),C6.jsxDEV(Z6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),C6.jsxDEV(Z6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),C6.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 C6.jsxDEV(rL,{message:N},void 0,!1,void 0,this);return C6.jsxDEV(C6.Fragment,{children:M},void 0,!1,void 0,this)}var Q6=t(M0(),1);function h8({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 L=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("td",{className:L,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 n9=t(I1(),1),c6=t(M0(),1);function SK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=n9.useState(X),[K,H]=n9.useState(!1),M=n9.useRef(0),F=JSON.stringify(Q,null,2);return n9.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(AQ,{size:13},void 0,!1,void 0,this):c6.jsxDEV(vQ,{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=t(M0(),1);function oL({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:hL(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 u8=t(M0(),1);function f1({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 p4=t(I1(),1);var iL=t(M0(),1);function _6({variant:Q,children:J,className:X=""}){return iL.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var W0=t(M0(),1);function aL({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 DP(Q,T.signal).then((L)=>{if(T.signal.aborted)return;q(L),setTimeout(()=>w.current?.focus(),50)}).catch((L)=>{if(T.signal.aborted)return;M(L instanceof Error?L:Error(String(L)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),p4.useEffect(()=>{if(Q===null)return;let T=(L)=>{if(L.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(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(_6,{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: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(pQ,{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(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: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(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: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(rQ,{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(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(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=t(M0(),1);function eQ({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=t(M0(),1);function JC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["behavior",J,X],(H)=>bP(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(LD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(CD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(_D,{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 LD({overall:Q,behaviorSeries:J}){let X=J5.useMemo(()=>cL(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 tL(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 eL(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 $C(Q,J){if(J<=0)return 0;return Q/J*100}function CD({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+=eL(p,q),h.messages+=p.messages},bucketToValue:(h)=>$C(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+=eL(p,q),h.messages+=p.messages},bucketToValue:(h)=>$C(h.hits,h.messages)})},[Q,J,q]),F=J5.useMemo(()=>{return T$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:tL})},[H,J]),{sharedScaleBase:w,yScale:z}=J5.useMemo(()=>{return P$({chartTheme:H,formatY:tL})},[H]),T=J5.useMemo(()=>{return DK.find((D)=>D.value===q)?.title??""},[q]),L=J5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:C$(M,(D)=>L$(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]),E=J5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:C$(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(eQ,{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(eQ,{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&&L?w0.jsxDEV(e5,{data:L,options:I},void 0,!1,void 0,this):E?w0.jsxDEV(GX,{data:E,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ZC="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function QC(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function I$(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 _D({models:Q,behaviorSeries:J}){let[X,q]=J5.useState(null),N=d6(),K=g5[N],H=J5.useMemo(()=>VD(J),[J]),M=J5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return QC(w)-QC(F)})},[Q]);return w0.jsxDEV(KX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(BX,{gridTemplate:ZC,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??[],L=t1[w%t1.length],I=X===z,E=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+E;return w0.jsxDEV(FX,{gridTemplate:ZC,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:I$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(E,F.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(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:L},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(o9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{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(ID,{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 o9({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"?I$(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 PX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function ID({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),...S2(PX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...S2(PX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...S2(PX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...S2(PX.frustration)}]}},[Q]),q=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(J),scales:yL(J)}},[J]);return w0.jsxDEV(e5,{data:X,options:q},void 0,!1,void 0,this)}function VD(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=t(I1(),1);var G5=t(M0(),1);function GC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["costs",J,X],(H)=>SP(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(OD,{costSeries:q.costSeries},void 0,!1,void 0,this),G5.jsxDEV(SD,{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 OD({costSeries:Q}){let J=l6.useMemo(()=>dL(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 ED={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function AD(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 SD({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 T$({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 P$({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),w=l6.useMemo(()=>{return AD(ED[q])},[q]),z=l6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:C$(K,(O)=>L$(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]),L=l6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:C$(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(eQ,{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):L?G5.jsxDEV(GX,{data:L,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var XC=t(I1(),1);var V1=t(M0(),1);function qC({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-errors-dense",J],(F)=>jP(50,F),{pollMs:30000,enabled:Q}),H=XC.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(h8,{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(_6,{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 LX=t(I1(),1);var _0=t(M0(),1);function YC({active:Q,range:J,refreshTrigger:X}){let[q,N]=LX.useState(null),{data:K,error:H,loading:M}=T5(["gain",J,X,q],(F)=>fP(J,q,F),{pollMs:30000,enabled:Q});return _0.jsxDEV("div",{className:"stats-route-container space-y-6",children:_0.jsxDEV(e1,{loading:M,error:H,data:K,children:K&&_0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV(jD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),_0.jsxDEV(DD,{overall:K.overall},void 0,!1,void 0,this),_0.jsxDEV(bD,{bySource:K.bySource},void 0,!1,void 0,this),_0.jsxDEV(fD,{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 jD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return _0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[_0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),_0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[_0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>_0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function DD({overall:Q}){return _0.jsxDEV(f1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:_0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:EK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.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),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),_0.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 vD({title:Q,totals:J}){return _0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[_0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),_0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.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),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.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),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),_0.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),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.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 bD({bySource:Q}){return _0.jsxDEV(f1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:_0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:_0.jsxDEV(vD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kD={snapcompact:"rgb(34, 197, 94)"};function fD({timeSeries:Q}){let J=d6(),X=g5[J],{data:q,options:N}=LX.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),...L$(kD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=P$({chartTheme:X,formatY:(T)=>m4(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:T$({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 _0.jsxDEV(f1,{title:"Savings Over Time",subtitle:"Daily token savings",children:_0.jsxDEV("div",{style:{height:240},children:Q.length===0?_0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):_0.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=t(I1(),1);var A0=t(M0(),1);function UC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["models",J,X],(H)=>AP(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(yD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),A0.jsxDEV(hD,{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 yD({modelSeries:Q,timeRange:J}){let X=d6(),q=g5[X],N=tQ(J),K=c4.useMemo(()=>gD(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 gD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let L=`${T.model}::${T.provider}`,I=X.get(L);if(I)I.total+=T.requests;else X.set(L,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,L])=>({key:T,...L})).sort((T,L)=>L.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 L=(H.get(T.model)??0)>1;M.set(T.key,L?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let L=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let E=K.has(L)?M.get(L)??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,L)=>(T.timestamp??0)-(L.timestamp??0)).map((T)=>{let L=T.total??0;for(let I of w)T[I]=L>0?(T[I]??0)/L*100:0;return T}),series:w}}var NC="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function hD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=c4.useState(null),K=tQ(X),H=c4.useMemo(()=>pL(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:NC,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 L=`${z.model}::${z.provider}`,E=H.get(L)?.data??[],O=t1[T%t1.length],V=q===L,D=z.errorRate*100;return A0.jsxDEV(FX,{gridTemplate:NC,isExpanded:V,onToggle:()=>N(V?null:L),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:E.length===0?A0.jsxDEV(WX,{},void 0,!1,void 0,this):A0.jsxDEV(NX,{timestamps:E.map((h)=>h.timestamp),values:E.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:E.length===0?A0.jsxDEV(wX,{},void 0,!1,void 0,this):A0.jsxDEV(uD,{data:E,color:O,chartTheme:F,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},L,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uD({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),...S2("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...S2(J),yAxisID:"y1"}]}},[Q,J,q]),K=c4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(X),scales:gL(X)}},[X]);return A0.jsxDEV(e5,{data:N,options:K},void 0,!1,void 0,this)}var $J=t(I1(),1);var KC=t(I1(),1);var J6=t(M0(),1),CX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function BC({stats:Q}){let J=KC.useMemo(()=>mL(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:CX[X.agentType].color},title:`${CX[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:CX[X.agentType].color}},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-primary truncate",children:CX[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=t(M0(),1);function HC({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=T5(["overview",J,X],(D)=>EP(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],L=$J.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=$J.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=$J.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(_6,{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(_6,{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=$J.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(oL,{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(BC,{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:L,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(h8,{columns:E,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=t(I1(),1);var G1=t(M0(),1);function MC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["projects",J,X],(w)=>kP(J,w),{pollMs:30000,enabled:Q}),H=vK.useMemo(()=>{if(!q)return[];return lL(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(_6,{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(h8,{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(_6,{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 FC=t(I1(),1);var H1=t(M0(),1);function WC({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=FC.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(_6,{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(h8,{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(_6,{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=t(M0(),1);function bK(){let{section:Q,setSection:J,range:X,setRange:q}=nP(),[N,K]=j2.useState(0),[H,M]=j2.useState(null),[F,w]=j2.useState(()=>Date.now()),z=j2.useCallback((O)=>{if(O.success)K((V)=>V+1),w(Date.now())},[]),T=j2.useCallback(()=>M(null),[]),L=Q,I=j2.useRef(new Set);I.current.add(L);let E=(O)=>{let V=O===L;switch(O){case"overview":return h5.jsxDEV(HC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return h5.jsxDEV(WC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return h5.jsxDEV(qC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return h5.jsxDEV(UC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return h5.jsxDEV(GC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return h5.jsxDEV(JC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return h5.jsxDEV(MC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return h5.jsxDEV(YC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return h5.jsxDEV(h5.Fragment,{children:[h5.jsxDEV(rP,{activeSection:L,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((O)=>h5.jsxDEV("div",{hidden:O!==L,children:E(O)},O,!1,void 0,this))},void 0,!1,void 0,this),h5.jsxDEV(aL,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var RC=t(M0(),1),xD=wC.createRoot(document.getElementById("root"));xD.render(RC.jsxDEV(bK,{},void 0,!1,void 0,this));