var R3=Object.defineProperty;var z3=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rp=(e,t,n)=>z3(e,typeof t!="symbol"?t+"":t,n);function L3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zp={exports:{}},Ss={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qS;function B3(){if(qS)return Ss;qS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:e,type:r,key:u,ref:l!==void 0?l:null,props:o}}return Ss.Fragment=t,Ss.jsx=n,Ss.jsxs=n,Ss}var HS;function I3(){return HS||(HS=1,zp.exports=B3()),zp.exports}var m=I3(),Lp={exports:{}},Ne={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FS;function $3(){if(FS)return Ne;FS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function E(R,Y,oe){this.props=R,this.context=Y,this.refs=_,this.updater=oe||w}E.prototype.isReactComponent={},E.prototype.setState=function(R,Y){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Y,"setState")},E.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=E.prototype;function T(R,Y,oe){this.props=R,this.context=Y,this.refs=_,this.updater=oe||w}var C=T.prototype=new A;C.constructor=T,j(C,E.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function M(){}var D={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function V(R,Y,oe){var ce=oe.ref;return{$$typeof:e,type:R,key:Y,ref:ce!==void 0?ce:null,props:oe}}function X(R,Y){return V(R.type,Y,R.props)}function te(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function k(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(oe){return Y[oe]})}var se=/\/+/g;function U(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?k(""+R.key):Y.toString(36)}function ne(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(M,M):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function L(R,Y,oe,ce,pe){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var be=!1;if(R===null)be=!0;else switch(xe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(R.$$typeof){case e:case t:be=!0;break;case p:return be=R._init,L(be(R._payload),Y,oe,ce,pe)}}if(be)return pe=pe(R),be=ce===""?"."+U(R,0):ce,P(pe)?(oe="",be!=null&&(oe=be.replace(se,"$&/")+"/"),L(pe,Y,oe,"",function(_e){return _e})):pe!=null&&(te(pe)&&(pe=X(pe,oe+(pe.key==null||R&&R.key===pe.key?"":(""+pe.key).replace(se,"$&/")+"/")+be)),Y.push(pe)),1;be=0;var et=ce===""?".":ce+":";if(P(R))for(var J=0;J<R.length;J++)ce=R[J],xe=et+U(ce,J),be+=L(ce,Y,oe,xe,pe);else if(J=S(R),typeof J=="function")for(R=J.call(R),J=0;!(ce=R.next()).done;)ce=ce.value,xe=et+U(ce,J++),be+=L(ce,Y,oe,xe,pe);else if(xe==="object"){if(typeof R.then=="function")return L(ne(R),Y,oe,ce,pe);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return be}function Z(R,Y,oe){if(R==null)return R;var ce=[],pe=0;return L(R,ce,"","",function(xe){return Y.call(oe,xe,pe++)}),ce}function ie(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(oe){(R._status===0||R._status===-1)&&(R._status=1,R._result=oe)},function(oe){(R._status===0||R._status===-1)&&(R._status=2,R._result=oe)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var fe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},de={map:Z,forEach:function(R,Y,oe){Z(R,function(){Y.apply(this,arguments)},oe)},count:function(R){var Y=0;return Z(R,function(){Y++}),Y},toArray:function(R){return Z(R,function(Y){return Y})||[]},only:function(R){if(!te(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ne.Activity=y,Ne.Children=de,Ne.Component=E,Ne.Fragment=n,Ne.Profiler=l,Ne.PureComponent=T,Ne.StrictMode=r,Ne.Suspense=d,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return D.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,Y,oe){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ce=j({},R.props),pe=R.key;if(Y!=null)for(xe in Y.key!==void 0&&(pe=""+Y.key),Y)!I.call(Y,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Y.ref===void 0||(ce[xe]=Y[xe]);var xe=arguments.length-2;if(xe===1)ce.children=oe;else if(1<xe){for(var be=Array(xe),et=0;et<xe;et++)be[et]=arguments[et+2];ce.children=be}return V(R.type,pe,ce)},Ne.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},Ne.createElement=function(R,Y,oe){var ce,pe={},xe=null;if(Y!=null)for(ce in Y.key!==void 0&&(xe=""+Y.key),Y)I.call(Y,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(pe[ce]=Y[ce]);var be=arguments.length-2;if(be===1)pe.children=oe;else if(1<be){for(var et=Array(be),J=0;J<be;J++)et[J]=arguments[J+2];pe.children=et}if(R&&R.defaultProps)for(ce in be=R.defaultProps,be)pe[ce]===void 0&&(pe[ce]=be[ce]);return V(R,xe,pe)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:f,render:R}},Ne.isValidElement=te,Ne.lazy=function(R){return{$$typeof:p,_payload:{_status:-1,_result:R},_init:ie}},Ne.memo=function(R,Y){return{$$typeof:h,type:R,compare:Y===void 0?null:Y}},Ne.startTransition=function(R){var Y=D.T,oe={};D.T=oe;try{var ce=R(),pe=D.S;pe!==null&&pe(oe,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(M,fe)}catch(xe){fe(xe)}finally{Y!==null&&oe.types!==null&&(Y.types=oe.types),D.T=Y}},Ne.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Ne.use=function(R){return D.H.use(R)},Ne.useActionState=function(R,Y,oe){return D.H.useActionState(R,Y,oe)},Ne.useCallback=function(R,Y){return D.H.useCallback(R,Y)},Ne.useContext=function(R){return D.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,Y){return D.H.useDeferredValue(R,Y)},Ne.useEffect=function(R,Y){return D.H.useEffect(R,Y)},Ne.useEffectEvent=function(R){return D.H.useEffectEvent(R)},Ne.useId=function(){return D.H.useId()},Ne.useImperativeHandle=function(R,Y,oe){return D.H.useImperativeHandle(R,Y,oe)},Ne.useInsertionEffect=function(R,Y){return D.H.useInsertionEffect(R,Y)},Ne.useLayoutEffect=function(R,Y){return D.H.useLayoutEffect(R,Y)},Ne.useMemo=function(R,Y){return D.H.useMemo(R,Y)},Ne.useOptimistic=function(R,Y){return D.H.useOptimistic(R,Y)},Ne.useReducer=function(R,Y,oe){return D.H.useReducer(R,Y,oe)},Ne.useRef=function(R){return D.H.useRef(R)},Ne.useState=function(R){return D.H.useState(R)},Ne.useSyncExternalStore=function(R,Y,oe){return D.H.useSyncExternalStore(R,Y,oe)},Ne.useTransition=function(){return D.H.useTransition()},Ne.version="19.2.4",Ne}var KS;function vo(){return KS||(KS=1,Lp.exports=$3()),Lp.exports}var x=vo();const ME=Rr(x),U3=L3({__proto__:null,default:ME},[x]);var Bp={exports:{}},js={},Ip={exports:{}},$p={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var YS;function q3(){return YS||(YS=1,(function(e){function t(L,Z){var ie=L.length;L.push(Z);e:for(;0<ie;){var fe=ie-1>>>1,de=L[fe];if(0<l(de,Z))L[fe]=Z,L[ie]=de,ie=fe;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var Z=L[0],ie=L.pop();if(ie!==Z){L[0]=ie;e:for(var fe=0,de=L.length,R=de>>>1;fe<R;){var Y=2*(fe+1)-1,oe=L[Y],ce=Y+1,pe=L[ce];if(0>l(oe,ie))ce<de&&0>l(pe,oe)?(L[fe]=pe,L[ce]=ie,fe=ce):(L[fe]=oe,L[Y]=ie,fe=Y);else if(ce<de&&0>l(pe,ie))L[fe]=pe,L[ce]=ie,fe=ce;else break e}}return Z}function l(L,Z){var ie=L.sortIndex-Z.sortIndex;return ie!==0?ie:L.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],h=[],p=1,y=null,b=3,S=!1,w=!1,j=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(L){for(var Z=n(h);Z!==null;){if(Z.callback===null)r(h);else if(Z.startTime<=L)r(h),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=n(h)}}function P(L){if(j=!1,C(L),!w)if(n(d)!==null)w=!0,M||(M=!0,k());else{var Z=n(h);Z!==null&&ne(P,Z.startTime-L)}}var M=!1,D=-1,I=5,V=-1;function X(){return _?!0:!(e.unstable_now()-V<I)}function te(){if(_=!1,M){var L=e.unstable_now();V=L;var Z=!0;try{e:{w=!1,j&&(j=!1,A(D),D=-1),S=!0;var ie=b;try{t:{for(C(L),y=n(d);y!==null&&!(y.expirationTime>L&&X());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,b=y.priorityLevel;var de=fe(y.expirationTime<=L);if(L=e.unstable_now(),typeof de=="function"){y.callback=de,C(L),Z=!0;break t}y===n(d)&&r(d),C(L)}else r(d);y=n(d)}if(y!==null)Z=!0;else{var R=n(h);R!==null&&ne(P,R.startTime-L),Z=!1}}break e}finally{y=null,b=ie,S=!1}Z=void 0}}finally{Z?k():M=!1}}}var k;if(typeof T=="function")k=function(){T(te)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,U=se.port2;se.port1.onmessage=te,k=function(){U.postMessage(null)}}else k=function(){E(te,0)};function ne(L,Z){D=E(function(){L(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.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"):I=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var ie=b;b=Z;try{return L()}finally{b=ie}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ie=b;b=L;try{return Z()}finally{b=ie}},e.unstable_scheduleCallback=function(L,Z,ie){var fe=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?fe+ie:fe):ie=fe,L){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=ie+de,L={id:p++,callback:Z,priorityLevel:L,startTime:ie,expirationTime:de,sortIndex:-1},ie>fe?(L.sortIndex=ie,t(h,L),n(d)===null&&L===n(h)&&(j?(A(D),D=-1):j=!0,ne(P,ie-fe))):(L.sortIndex=de,t(d,L),w||S||(w=!0,M||(M=!0,k()))),L},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(L){var Z=b;return function(){var ie=b;b=Z;try{return L.apply(this,arguments)}finally{b=ie}}}})($p)),$p}var GS;function H3(){return GS||(GS=1,Ip.exports=q3()),Ip.exports}var Up={exports:{}},nn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var VS;function F3(){if(VS)return nn;VS=1;var e=vo();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(d,h,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:d,containerInfo:h,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,nn.createPortal=function(d,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(d,h,null,p)},nn.flushSync=function(d){var h=u.T,p=r.p;try{if(u.T=null,r.p=2,d)return d()}finally{u.T=h,r.p=p,r.d.f()}},nn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},nn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},nn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):p==="script"&&r.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},nn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},nn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin);r.d.L(d,p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},nn.preloadModule=function(d,h){if(typeof d=="string")if(h){var p=f(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},nn.requestFormReset=function(d){r.d.r(d)},nn.unstable_batchedUpdates=function(d,h){return d(h)},nn.useFormState=function(d,h,p){return u.H.useFormState(d,h,p)},nn.useFormStatus=function(){return u.H.useHostTransitionStatus()},nn.version="19.2.4",nn}var XS;function DE(){if(XS)return Up.exports;XS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Up.exports=F3(),Up.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ZS;function K3(){if(ZS)return js;ZS=1;var e=H3(),t=vo(),n=DE();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var i=a,s=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(s=i.return),a=i.return;while(a)}return i.tag===3?s:null}function u(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(o(a)!==a)throw Error(r(188))}function h(a){var i=a.alternate;if(!i){if(i=o(a),i===null)throw Error(r(188));return i!==a?null:a}for(var s=a,c=i;;){var v=s.return;if(v===null)break;var g=v.alternate;if(g===null){if(c=v.return,c!==null){s=c;continue}break}if(v.child===g.child){for(g=v.child;g;){if(g===s)return d(v),a;if(g===c)return d(v),i;g=g.sibling}throw Error(r(188))}if(s.return!==c.return)s=v,c=g;else{for(var O=!1,N=v.child;N;){if(N===s){O=!0,s=v,c=g;break}if(N===c){O=!0,c=v,s=g;break}N=N.sibling}if(!O){for(N=g.child;N;){if(N===s){O=!0,s=g,c=v;break}if(N===c){O=!0,c=g,s=v;break}N=N.sibling}if(!O)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?a:i}function p(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=p(a),i!==null)return i;a=a.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function k(a){return a===null||typeof a!="object"?null:(a=te&&a[te]||a["@@iterator"],typeof a=="function"?a:null)}var se=Symbol.for("react.client.reference");function U(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===se?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case E:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case T:return a.displayName||"Context";case A:return(a._context.displayName||"Context")+".Consumer";case C:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case D:return i=a.displayName||null,i!==null?i:U(a.type)||"Memo";case I:i=a._payload,a=a._init;try{return U(a(i))}catch{}}return null}var ne=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},fe=[],de=-1;function R(a){return{current:a}}function Y(a){0>de||(a.current=fe[de],fe[de]=null,de--)}function oe(a,i){de++,fe[de]=a.current,a.current=i}var ce=R(null),pe=R(null),xe=R(null),be=R(null);function et(a,i){switch(oe(xe,i),oe(pe,a),oe(ce,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?fS(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=fS(i),a=dS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Y(ce),oe(ce,a)}function J(){Y(ce),Y(pe),Y(xe)}function _e(a){a.memoizedState!==null&&oe(be,a);var i=ce.current,s=dS(i,a.type);i!==s&&(oe(pe,a),oe(ce,s))}function Ae(a){pe.current===a&&(Y(ce),Y(pe)),be.current===a&&(Y(be),gs._currentValue=ie)}var ue,ut;function q(a){if(ue===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);ue=i&&i[1]||"",ut=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ue+a+ut}var Se=!1;function Fe(a,i){if(!a||Se)return"";Se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Q){var G=Q}Reflect.construct(a,[],ae)}else{try{ae.call()}catch(Q){G=Q}a.call(ae.prototype)}}else{try{throw Error()}catch(Q){G=Q}(ae=a())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Q){if(Q&&G&&typeof Q.stack=="string")return[Q.stack,G.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),O=g[0],N=g[1];if(O&&N){var z=O.split(`
`),K=N.split(`
`);for(v=c=0;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;for(;v<K.length&&!K[v].includes("DetermineComponentFrameRoot");)v++;if(c===z.length||v===K.length)for(c=z.length-1,v=K.length-1;1<=c&&0<=v&&z[c]!==K[v];)v--;for(;1<=c&&0<=v;c--,v--)if(z[c]!==K[v]){if(c!==1||v!==1)do if(c--,v--,0>v||z[c]!==K[v]){var ee=`
`+z[c].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),ee}while(1<=c&&0<=v);break}}}finally{Se=!1,Error.prepareStackTrace=s}return(s=a?a.displayName||a.name:"")?q(s):""}function Cn(a,i){switch(a.tag){case 26:case 27:case 5:return q(a.type);case 16:return q("Lazy");case 13:return a.child!==i&&i!==null?q("Suspense Fallback"):q("Suspense");case 19:return q("SuspenseList");case 0:case 15:return Fe(a.type,!1);case 11:return Fe(a.type.render,!1);case 1:return Fe(a.type,!0);case 31:return q("Activity");default:return""}}function Ir(a){try{var i="",s=null;do i+=Cn(a,s),s=a,a=a.return;while(a);return i}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var le=Object.prototype.hasOwnProperty,Le=e.unstable_scheduleCallback,Ve=e.unstable_cancelCallback,At=e.unstable_shouldYield,Tn=e.unstable_requestPaint,wt=e.unstable_now,sl=e.unstable_getCurrentPriorityLevel,di=e.unstable_ImmediatePriority,Co=e.unstable_UserBlockingPriority,Nu=e.unstable_NormalPriority,vD=e.unstable_LowPriority,Kb=e.unstable_IdlePriority,yD=e.log,gD=e.unstable_setDisableYieldValue,To=null,Mn=null;function Ea(a){if(typeof yD=="function"&&gD(a),Mn&&typeof Mn.setStrictMode=="function")try{Mn.setStrictMode(To,a)}catch{}}var Dn=Math.clz32?Math.clz32:wD,bD=Math.log,xD=Math.LN2;function wD(a){return a>>>=0,a===0?32:31-(bD(a)/xD|0)|0}var Cu=256,Tu=262144,Mu=4194304;function hi(a){var i=a&42;if(i!==0)return i;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Du(a,i,s){var c=a.pendingLanes;if(c===0)return 0;var v=0,g=a.suspendedLanes,O=a.pingedLanes;a=a.warmLanes;var N=c&134217727;return N!==0?(c=N&~g,c!==0?v=hi(c):(O&=N,O!==0?v=hi(O):s||(s=N&~a,s!==0&&(v=hi(s))))):(N=c&~g,N!==0?v=hi(N):O!==0?v=hi(O):s||(s=c&~a,s!==0&&(v=hi(s)))),v===0?0:i!==0&&i!==v&&(i&g)===0&&(g=v&-v,s=i&-i,g>=s||g===32&&(s&4194048)!==0)?i:v}function Mo(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function SD(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yb(){var a=Mu;return Mu<<=1,(Mu&62914560)===0&&(Mu=4194304),a}function jh(a){for(var i=[],s=0;31>s;s++)i.push(a);return i}function Do(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function jD(a,i,s,c,v,g){var O=a.pendingLanes;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=s,a.entangledLanes&=s,a.errorRecoveryDisabledLanes&=s,a.shellSuspendCounter=0;var N=a.entanglements,z=a.expirationTimes,K=a.hiddenUpdates;for(s=O&~s;0<s;){var ee=31-Dn(s),ae=1<<ee;N[ee]=0,z[ee]=-1;var G=K[ee];if(G!==null)for(K[ee]=null,ee=0;ee<G.length;ee++){var Q=G[ee];Q!==null&&(Q.lane&=-536870913)}s&=~ae}c!==0&&Gb(a,c,0),g!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=g&~(O&~i))}function Gb(a,i,s){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-Dn(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|s&261930}function Vb(a,i){var s=a.entangledLanes|=i;for(a=a.entanglements;s;){var c=31-Dn(s),v=1<<c;v&i|a[c]&i&&(a[c]|=i),s&=~v}}function Xb(a,i){var s=i&-i;return s=(s&42)!==0?1:_h(s),(s&(a.suspendedLanes|i))!==0?0:s}function _h(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Oh(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Zb(){var a=Z.p;return a!==0?a:(a=window.event,a===void 0?32:RS(a.type))}function Wb(a,i){var s=Z.p;try{return Z.p=a,i()}finally{Z.p=s}}var Na=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Na,pn="__reactProps$"+Na,ul="__reactContainer$"+Na,Ah="__reactEvents$"+Na,_D="__reactListeners$"+Na,OD="__reactHandles$"+Na,Qb="__reactResources$"+Na,Po="__reactMarker$"+Na;function Eh(a){delete a[Vt],delete a[pn],delete a[Ah],delete a[_D],delete a[OD]}function cl(a){var i=a[Vt];if(i)return i;for(var s=a.parentNode;s;){if(i=s[ul]||s[Vt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(a=bS(a);a!==null;){if(s=a[Vt])return s;a=bS(a)}return i}a=s,s=a.parentNode}return null}function fl(a){if(a=a[Vt]||a[ul]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function ko(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function dl(a){var i=a[Qb];return i||(i=a[Qb]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function $t(a){a[Po]=!0}var Jb=new Set,ex={};function mi(a,i){hl(a,i),hl(a+"Capture",i)}function hl(a,i){for(ex[a]=i,a=0;a<i.length;a++)Jb.add(i[a])}var AD=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]*$"),tx={},nx={};function ED(a){return le.call(nx,a)?!0:le.call(tx,a)?!1:AD.test(a)?nx[a]=!0:(tx[a]=!0,!1)}function Pu(a,i,s){if(ED(i))if(s===null)a.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+s)}}function ku(a,i,s){if(s===null)a.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+s)}}function $r(a,i,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttributeNS(i,s,""+c)}}function Fn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function rx(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ND(a,i,s){var c=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,g=c.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return v.call(this)},set:function(O){s=""+O,g.call(this,O)}}),Object.defineProperty(a,i,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Nh(a){if(!a._valueTracker){var i=rx(a)?"checked":"value";a._valueTracker=ND(a,i,""+a[i])}}function ax(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return a&&(c=rx(a)?a.checked?"true":"false":a.value),a=c,a!==s?(i.setValue(a),!0):!1}function Ru(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var CD=/[\n"\\]/g;function Kn(a){return a.replace(CD,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Ch(a,i,s,c,v,g,O,N){a.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?a.type=O:a.removeAttribute("type"),i!=null?O==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+Fn(i)):a.value!==""+Fn(i)&&(a.value=""+Fn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?Th(a,O,Fn(i)):s!=null?Th(a,O,Fn(s)):c!=null&&a.removeAttribute("value"),v==null&&g!=null&&(a.defaultChecked=!!g),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?a.name=""+Fn(N):a.removeAttribute("name")}function ix(a,i,s,c,v,g,O,N){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(a.type=g),i!=null||s!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){Nh(a);return}s=s!=null?""+Fn(s):"",i=i!=null?""+Fn(i):s,N||i===a.value||(a.value=i),a.defaultValue=i}c=c??v,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=N?a.checked:!!c,a.defaultChecked=!!c,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),Nh(a)}function Th(a,i,s){i==="number"&&Ru(a.ownerDocument)===a||a.defaultValue===""+s||(a.defaultValue=""+s)}function ml(a,i,s,c){if(a=a.options,i){i={};for(var v=0;v<s.length;v++)i["$"+s[v]]=!0;for(s=0;s<a.length;s++)v=i.hasOwnProperty("$"+a[s].value),a[s].selected!==v&&(a[s].selected=v),v&&c&&(a[s].defaultSelected=!0)}else{for(s=""+Fn(s),i=null,v=0;v<a.length;v++){if(a[v].value===s){a[v].selected=!0,c&&(a[v].defaultSelected=!0);return}i!==null||a[v].disabled||(i=a[v])}i!==null&&(i.selected=!0)}}function lx(a,i,s){if(i!=null&&(i=""+Fn(i),i!==a.value&&(a.value=i),s==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=s!=null?""+Fn(s):""}function ox(a,i,s,c){if(i==null){if(c!=null){if(s!=null)throw Error(r(92));if(ne(c)){if(1<c.length)throw Error(r(93));c=c[0]}s=c}s==null&&(s=""),i=s}s=Fn(i),a.defaultValue=s,c=a.textContent,c===s&&c!==""&&c!==null&&(a.value=c),Nh(a)}function pl(a,i){if(i){var s=a.firstChild;if(s&&s===a.lastChild&&s.nodeType===3){s.nodeValue=i;return}}a.textContent=i}var TD=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(" "));function sx(a,i,s){var c=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":c?a.setProperty(i,s):typeof s!="number"||s===0||TD.has(i)?i==="float"?a.cssFloat=s:a[i]=(""+s).trim():a[i]=s+"px"}function ux(a,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var v in i)c=i[v],i.hasOwnProperty(v)&&s[v]!==c&&sx(a,v,c)}else for(var g in i)i.hasOwnProperty(g)&&sx(a,g,i[g])}function Mh(a){if(a.indexOf("-")===-1)return!1;switch(a){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}}var MD=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"]]),DD=/^[\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;function zu(a){return DD.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Ur(){}var Dh=null;function Ph(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var vl=null,yl=null;function cx(a){var i=fl(a);if(i&&(a=i.stateNode)){var s=a[pn]||null;e:switch(a=i.stateNode,i.type){case"input":if(Ch(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=a;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Kn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==a&&c.form===a.form){var v=c[pn]||null;if(!v)throw Error(r(90));Ch(c,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(i=0;i<s.length;i++)c=s[i],c.form===a.form&&ax(c)}break e;case"textarea":lx(a,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&ml(a,!!s.multiple,i,!1)}}}var kh=!1;function fx(a,i,s){if(kh)return a(i,s);kh=!0;try{var c=a(i);return c}finally{if(kh=!1,(vl!==null||yl!==null)&&(jc(),vl&&(i=vl,a=yl,yl=vl=null,cx(i),a)))for(i=0;i<a.length;i++)cx(a[i])}}function Ro(a,i){var s=a.stateNode;if(s===null)return null;var c=s[pn]||null;if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rh=!1;if(qr)try{var zo={};Object.defineProperty(zo,"passive",{get:function(){Rh=!0}}),window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch{Rh=!1}var Ca=null,zh=null,Lu=null;function dx(){if(Lu)return Lu;var a,i=zh,s=i.length,c,v="value"in Ca?Ca.value:Ca.textContent,g=v.length;for(a=0;a<s&&i[a]===v[a];a++);var O=s-a;for(c=1;c<=O&&i[s-c]===v[g-c];c++);return Lu=v.slice(a,1<c?1-c:void 0)}function Bu(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function Iu(){return!0}function hx(){return!1}function vn(a){function i(s,c,v,g,O){this._reactName=s,this._targetInst=v,this.type=c,this.nativeEvent=g,this.target=O,this.currentTarget=null;for(var N in a)a.hasOwnProperty(N)&&(s=a[N],this[N]=s?s(g):g[N]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Iu:hx,this.isPropagationStopped=hx,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Iu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Iu)},persist:function(){},isPersistent:Iu}),i}var pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$u=vn(pi),Lo=y({},pi,{view:0,detail:0}),PD=vn(Lo),Lh,Bh,Bo,Uu=y({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$h,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Bo&&(Bo&&a.type==="mousemove"?(Lh=a.screenX-Bo.screenX,Bh=a.screenY-Bo.screenY):Bh=Lh=0,Bo=a),Lh)},movementY:function(a){return"movementY"in a?a.movementY:Bh}}),mx=vn(Uu),kD=y({},Uu,{dataTransfer:0}),RD=vn(kD),zD=y({},Lo,{relatedTarget:0}),Ih=vn(zD),LD=y({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),BD=vn(LD),ID=y({},pi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$D=vn(ID),UD=y({},pi,{data:0}),px=vn(UD),qD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HD={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"},FD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KD(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=FD[a])?!!i[a]:!1}function $h(){return KD}var YD=y({},Lo,{key:function(a){if(a.key){var i=qD[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Bu(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?HD[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$h,charCode:function(a){return a.type==="keypress"?Bu(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Bu(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),GD=vn(YD),VD=y({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vx=vn(VD),XD=y({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$h}),ZD=vn(XD),WD=y({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),QD=vn(WD),JD=y({},Uu,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),eP=vn(JD),tP=y({},pi,{newState:0,oldState:0}),nP=vn(tP),rP=[9,13,27,32],Uh=qr&&"CompositionEvent"in window,Io=null;qr&&"documentMode"in document&&(Io=document.documentMode);var aP=qr&&"TextEvent"in window&&!Io,yx=qr&&(!Uh||Io&&8<Io&&11>=Io),gx=" ",bx=!1;function xx(a,i){switch(a){case"keyup":return rP.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var gl=!1;function iP(a,i){switch(a){case"compositionend":return wx(i);case"keypress":return i.which!==32?null:(bx=!0,gx);case"textInput":return a=i.data,a===gx&&bx?null:a;default:return null}}function lP(a,i){if(gl)return a==="compositionend"||!Uh&&xx(a,i)?(a=dx(),Lu=zh=Ca=null,gl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return yx&&i.locale!=="ko"?null:i.data;default:return null}}var oP={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};function Sx(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!oP[a.type]:i==="textarea"}function jx(a,i,s,c){vl?yl?yl.push(c):yl=[c]:vl=c,i=Tc(i,"onChange"),0<i.length&&(s=new $u("onChange","change",null,s,c),a.push({event:s,listeners:i}))}var $o=null,Uo=null;function sP(a){iS(a,0)}function qu(a){var i=ko(a);if(ax(i))return a}function _x(a,i){if(a==="change")return i}var Ox=!1;if(qr){var qh;if(qr){var Hh="oninput"in document;if(!Hh){var Ax=document.createElement("div");Ax.setAttribute("oninput","return;"),Hh=typeof Ax.oninput=="function"}qh=Hh}else qh=!1;Ox=qh&&(!document.documentMode||9<document.documentMode)}function Ex(){$o&&($o.detachEvent("onpropertychange",Nx),Uo=$o=null)}function Nx(a){if(a.propertyName==="value"&&qu(Uo)){var i=[];jx(i,Uo,a,Ph(a)),fx(sP,i)}}function uP(a,i,s){a==="focusin"?(Ex(),$o=i,Uo=s,$o.attachEvent("onpropertychange",Nx)):a==="focusout"&&Ex()}function cP(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return qu(Uo)}function fP(a,i){if(a==="click")return qu(i)}function dP(a,i){if(a==="input"||a==="change")return qu(i)}function hP(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var Pn=typeof Object.is=="function"?Object.is:hP;function qo(a,i){if(Pn(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var s=Object.keys(a),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var v=s[c];if(!le.call(i,v)||!Pn(a[v],i[v]))return!1}return!0}function Cx(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Tx(a,i){var s=Cx(a);a=0;for(var c;s;){if(s.nodeType===3){if(c=a+s.textContent.length,a<=i&&c>=i)return{node:s,offset:i-a};a=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Cx(s)}}function Mx(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Mx(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Dx(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Ru(a.document);i instanceof a.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)a=i.contentWindow;else break;i=Ru(a.document)}return i}function Fh(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var mP=qr&&"documentMode"in document&&11>=document.documentMode,bl=null,Kh=null,Ho=null,Yh=!1;function Px(a,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Yh||bl==null||bl!==Ru(c)||(c=bl,"selectionStart"in c&&Fh(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ho&&qo(Ho,c)||(Ho=c,c=Tc(Kh,"onSelect"),0<c.length&&(i=new $u("onSelect","select",null,i,s),a.push({event:i,listeners:c}),i.target=bl)))}function vi(a,i){var s={};return s[a.toLowerCase()]=i.toLowerCase(),s["Webkit"+a]="webkit"+i,s["Moz"+a]="moz"+i,s}var xl={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Gh={},kx={};qr&&(kx=document.createElement("div").style,"AnimationEvent"in window||(delete xl.animationend.animation,delete xl.animationiteration.animation,delete xl.animationstart.animation),"TransitionEvent"in window||delete xl.transitionend.transition);function yi(a){if(Gh[a])return Gh[a];if(!xl[a])return a;var i=xl[a],s;for(s in i)if(i.hasOwnProperty(s)&&s in kx)return Gh[a]=i[s];return a}var Rx=yi("animationend"),zx=yi("animationiteration"),Lx=yi("animationstart"),pP=yi("transitionrun"),vP=yi("transitionstart"),yP=yi("transitioncancel"),Bx=yi("transitionend"),Ix=new Map,Vh="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(" ");Vh.push("scrollEnd");function fr(a,i){Ix.set(a,i),mi(i,[a])}var Hu=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Yn=[],wl=0,Xh=0;function Fu(){for(var a=wl,i=Xh=wl=0;i<a;){var s=Yn[i];Yn[i++]=null;var c=Yn[i];Yn[i++]=null;var v=Yn[i];Yn[i++]=null;var g=Yn[i];if(Yn[i++]=null,c!==null&&v!==null){var O=c.pending;O===null?v.next=v:(v.next=O.next,O.next=v),c.pending=v}g!==0&&$x(s,v,g)}}function Ku(a,i,s,c){Yn[wl++]=a,Yn[wl++]=i,Yn[wl++]=s,Yn[wl++]=c,Xh|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function Zh(a,i,s,c){return Ku(a,i,s,c),Yu(a)}function gi(a,i){return Ku(a,null,null,i),Yu(a)}function $x(a,i,s){a.lanes|=s;var c=a.alternate;c!==null&&(c.lanes|=s);for(var v=!1,g=a.return;g!==null;)g.childLanes|=s,c=g.alternate,c!==null&&(c.childLanes|=s),g.tag===22&&(a=g.stateNode,a===null||a._visibility&1||(v=!0)),a=g,g=g.return;return a.tag===3?(g=a.stateNode,v&&i!==null&&(v=31-Dn(s),a=g.hiddenUpdates,c=a[v],c===null?a[v]=[i]:c.push(i),i.lane=s|536870912),g):null}function Yu(a){if(50<fs)throw fs=0,ip=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var Sl={};function gP(a,i,s,c){this.tag=a,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(a,i,s,c){return new gP(a,i,s,c)}function Wh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Hr(a,i){var s=a.alternate;return s===null?(s=kn(a.tag,i,a.key,a.mode),s.elementType=a.elementType,s.type=a.type,s.stateNode=a.stateNode,s.alternate=a,a.alternate=s):(s.pendingProps=i,s.type=a.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=a.flags&65011712,s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,i=a.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=a.sibling,s.index=a.index,s.ref=a.ref,s.refCleanup=a.refCleanup,s}function Ux(a,i){a.flags&=65011714;var s=a.alternate;return s===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,i=s.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function Gu(a,i,s,c,v,g){var O=0;if(c=a,typeof a=="function")Wh(a)&&(O=1);else if(typeof a=="string")O=j3(a,s,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case V:return a=kn(31,s,i,v),a.elementType=V,a.lanes=g,a;case j:return bi(s.children,v,g,i);case _:O=8,v|=24;break;case E:return a=kn(12,s,i,v|2),a.elementType=E,a.lanes=g,a;case P:return a=kn(13,s,i,v),a.elementType=P,a.lanes=g,a;case M:return a=kn(19,s,i,v),a.elementType=M,a.lanes=g,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case T:O=10;break e;case A:O=9;break e;case C:O=11;break e;case D:O=14;break e;case I:O=16,c=null;break e}O=29,s=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=kn(O,s,i,v),i.elementType=a,i.type=c,i.lanes=g,i}function bi(a,i,s,c){return a=kn(7,a,c,i),a.lanes=s,a}function Qh(a,i,s){return a=kn(6,a,null,i),a.lanes=s,a}function qx(a){var i=kn(18,null,null,0);return i.stateNode=a,i}function Jh(a,i,s){return i=kn(4,a.children!==null?a.children:[],a.key,i),i.lanes=s,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var Hx=new WeakMap;function Gn(a,i){if(typeof a=="object"&&a!==null){var s=Hx.get(a);return s!==void 0?s:(i={value:a,source:i,stack:Ir(i)},Hx.set(a,i),i)}return{value:a,source:i,stack:Ir(i)}}var jl=[],_l=0,Vu=null,Fo=0,Vn=[],Xn=0,Ta=null,Sr=1,jr="";function Fr(a,i){jl[_l++]=Fo,jl[_l++]=Vu,Vu=a,Fo=i}function Fx(a,i,s){Vn[Xn++]=Sr,Vn[Xn++]=jr,Vn[Xn++]=Ta,Ta=a;var c=Sr;a=jr;var v=32-Dn(c)-1;c&=~(1<<v),s+=1;var g=32-Dn(i)+v;if(30<g){var O=v-v%5;g=(c&(1<<O)-1).toString(32),c>>=O,v-=O,Sr=1<<32-Dn(i)+v|s<<v|c,jr=g+a}else Sr=1<<g|s<<v|c,jr=a}function em(a){a.return!==null&&(Fr(a,1),Fx(a,1,0))}function tm(a){for(;a===Vu;)Vu=jl[--_l],jl[_l]=null,Fo=jl[--_l],jl[_l]=null;for(;a===Ta;)Ta=Vn[--Xn],Vn[Xn]=null,jr=Vn[--Xn],Vn[Xn]=null,Sr=Vn[--Xn],Vn[Xn]=null}function Kx(a,i){Vn[Xn++]=Sr,Vn[Xn++]=jr,Vn[Xn++]=Ta,Sr=i.id,jr=i.overflow,Ta=a}var Xt=null,it=null,ze=!1,Ma=null,Zn=!1,nm=Error(r(519));function Da(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ko(Gn(i,a)),nm}function Yx(a){var i=a.stateNode,s=a.type,c=a.memoizedProps;switch(i[Vt]=a,i[pn]=c,s){case"dialog":Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":case"embed":Pe("load",i);break;case"video":case"audio":for(s=0;s<hs.length;s++)Pe(hs[s],i);break;case"source":Pe("error",i);break;case"img":case"image":case"link":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"input":Pe("invalid",i),ix(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",i);break;case"textarea":Pe("invalid",i),ox(i,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||c.suppressHydrationWarning===!0||uS(i.textContent,s)?(c.popover!=null&&(Pe("beforetoggle",i),Pe("toggle",i)),c.onScroll!=null&&Pe("scroll",i),c.onScrollEnd!=null&&Pe("scrollend",i),c.onClick!=null&&(i.onclick=Ur),i=!0):i=!1,i||Da(a,!0)}function Gx(a){for(Xt=a.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Xt=Xt.return}}function Ol(a){if(a!==Xt)return!1;if(!ze)return Gx(a),ze=!0,!1;var i=a.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=a.type,s=!(s!=="form"&&s!=="button")||xp(a.type,a.memoizedProps)),s=!s),s&&it&&Da(a),Gx(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));it=gS(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));it=gS(a)}else i===27?(i=it,Ya(a.type)?(a=Op,Op=null,it=a):it=i):it=Xt?Qn(a.stateNode.nextSibling):null;return!0}function xi(){it=Xt=null,ze=!1}function rm(){var a=Ma;return a!==null&&(xn===null?xn=a:xn.push.apply(xn,a),Ma=null),a}function Ko(a){Ma===null?Ma=[a]:Ma.push(a)}var am=R(null),wi=null,Kr=null;function Pa(a,i,s){oe(am,i._currentValue),i._currentValue=s}function Yr(a){a._currentValue=am.current,Y(am)}function im(a,i,s){for(;a!==null;){var c=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),a===s)break;a=a.return}}function lm(a,i,s,c){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var g=v.dependencies;if(g!==null){var O=v.child;g=g.firstContext;e:for(;g!==null;){var N=g;g=v;for(var z=0;z<i.length;z++)if(N.context===i[z]){g.lanes|=s,N=g.alternate,N!==null&&(N.lanes|=s),im(g.return,s,a),c||(O=null);break e}g=N.next}}else if(v.tag===18){if(O=v.return,O===null)throw Error(r(341));O.lanes|=s,g=O.alternate,g!==null&&(g.lanes|=s),im(O,s,a),O=null}else O=v.child;if(O!==null)O.return=v;else for(O=v;O!==null;){if(O===a){O=null;break}if(v=O.sibling,v!==null){v.return=O.return,O=v;break}O=O.return}v=O}}function Al(a,i,s,c){a=null;for(var v=i,g=!1;v!==null;){if(!g){if((v.flags&524288)!==0)g=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var O=v.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var N=v.type;Pn(v.pendingProps.value,O.value)||(a!==null?a.push(N):a=[N])}}else if(v===be.current){if(O=v.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(gs):a=[gs])}v=v.return}a!==null&&lm(i,a,s,c),i.flags|=262144}function Xu(a){for(a=a.firstContext;a!==null;){if(!Pn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Si(a){wi=a,Kr=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Zt(a){return Vx(wi,a)}function Zu(a,i){return wi===null&&Si(a),Vx(a,i)}function Vx(a,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Kr===null){if(a===null)throw Error(r(308));Kr=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else Kr=Kr.next=i;return s}var bP=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(s,c){a.push(c)}};this.abort=function(){i.aborted=!0,a.forEach(function(s){return s()})}},xP=e.unstable_scheduleCallback,wP=e.unstable_NormalPriority,Et={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function om(){return{controller:new bP,data:new Map,refCount:0}}function Yo(a){a.refCount--,a.refCount===0&&xP(wP,function(){a.controller.abort()})}var Go=null,sm=0,El=0,Nl=null;function SP(a,i){if(Go===null){var s=Go=[];sm=0,El=fp(),Nl={status:"pending",value:void 0,then:function(c){s.push(c)}}}return sm++,i.then(Xx,Xx),i}function Xx(){if(--sm===0&&Go!==null){Nl!==null&&(Nl.status="fulfilled");var a=Go;Go=null,El=0,Nl=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function jP(a,i){var s=[],c={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return a.then(function(){c.status="fulfilled",c.value=i;for(var v=0;v<s.length;v++)(0,s[v])(i)},function(v){for(c.status="rejected",c.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),c}var Zx=L.S;L.S=function(a,i){Pw=wt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&SP(a,i),Zx!==null&&Zx(a,i)};var ji=R(null);function um(){var a=ji.current;return a!==null?a:tt.pooledCache}function Wu(a,i){i===null?oe(ji,ji.current):oe(ji,i.pool)}function Wx(){var a=um();return a===null?null:{parent:Et._currentValue,pool:a}}var Cl=Error(r(460)),cm=Error(r(474)),Qu=Error(r(542)),Ju={then:function(){}};function Qx(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Jx(a,i,s){switch(s=a[s],s===void 0?a.push(i):s!==i&&(i.then(Ur,Ur),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,t1(a),a;default:if(typeof i.status=="string")i.then(Ur,Ur);else{if(a=tt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(c){if(i.status==="pending"){var v=i;v.status="fulfilled",v.value=c}},function(c){if(i.status==="pending"){var v=i;v.status="rejected",v.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,t1(a),a}throw Oi=i,Cl}}function _i(a){try{var i=a._init;return i(a._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Oi=s,Cl):s}}var Oi=null;function e1(){if(Oi===null)throw Error(r(459));var a=Oi;return Oi=null,a}function t1(a){if(a===Cl||a===Qu)throw Error(r(483))}var Tl=null,Vo=0;function ec(a){var i=Vo;return Vo+=1,Tl===null&&(Tl=[]),Jx(Tl,a,i)}function Xo(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function tc(a,i){throw i.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function n1(a){function i($,B){if(a){var F=$.deletions;F===null?($.deletions=[B],$.flags|=16):F.push(B)}}function s($,B){if(!a)return null;for(;B!==null;)i($,B),B=B.sibling;return null}function c($){for(var B=new Map;$!==null;)$.key!==null?B.set($.key,$):B.set($.index,$),$=$.sibling;return B}function v($,B){return $=Hr($,B),$.index=0,$.sibling=null,$}function g($,B,F){return $.index=F,a?(F=$.alternate,F!==null?(F=F.index,F<B?($.flags|=67108866,B):F):($.flags|=67108866,B)):($.flags|=1048576,B)}function O($){return a&&$.alternate===null&&($.flags|=67108866),$}function N($,B,F,re){return B===null||B.tag!==6?(B=Qh(F,$.mode,re),B.return=$,B):(B=v(B,F),B.return=$,B)}function z($,B,F,re){var we=F.type;return we===j?ee($,B,F.props.children,re,F.key):B!==null&&(B.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===I&&_i(we)===B.type)?(B=v(B,F.props),Xo(B,F),B.return=$,B):(B=Gu(F.type,F.key,F.props,null,$.mode,re),Xo(B,F),B.return=$,B)}function K($,B,F,re){return B===null||B.tag!==4||B.stateNode.containerInfo!==F.containerInfo||B.stateNode.implementation!==F.implementation?(B=Jh(F,$.mode,re),B.return=$,B):(B=v(B,F.children||[]),B.return=$,B)}function ee($,B,F,re,we){return B===null||B.tag!==7?(B=bi(F,$.mode,re,we),B.return=$,B):(B=v(B,F),B.return=$,B)}function ae($,B,F){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Qh(""+B,$.mode,F),B.return=$,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return F=Gu(B.type,B.key,B.props,null,$.mode,F),Xo(F,B),F.return=$,F;case w:return B=Jh(B,$.mode,F),B.return=$,B;case I:return B=_i(B),ae($,B,F)}if(ne(B)||k(B))return B=bi(B,$.mode,F,null),B.return=$,B;if(typeof B.then=="function")return ae($,ec(B),F);if(B.$$typeof===T)return ae($,Zu($,B),F);tc($,B)}return null}function G($,B,F,re){var we=B!==null?B.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return we!==null?null:N($,B,""+F,re);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return F.key===we?z($,B,F,re):null;case w:return F.key===we?K($,B,F,re):null;case I:return F=_i(F),G($,B,F,re)}if(ne(F)||k(F))return we!==null?null:ee($,B,F,re,null);if(typeof F.then=="function")return G($,B,ec(F),re);if(F.$$typeof===T)return G($,B,Zu($,F),re);tc($,F)}return null}function Q($,B,F,re,we){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return $=$.get(F)||null,N(B,$,""+re,we);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case S:return $=$.get(re.key===null?F:re.key)||null,z(B,$,re,we);case w:return $=$.get(re.key===null?F:re.key)||null,K(B,$,re,we);case I:return re=_i(re),Q($,B,F,re,we)}if(ne(re)||k(re))return $=$.get(F)||null,ee(B,$,re,we,null);if(typeof re.then=="function")return Q($,B,F,ec(re),we);if(re.$$typeof===T)return Q($,B,F,Zu(B,re),we);tc(B,re)}return null}function ve($,B,F,re){for(var we=null,Ie=null,ge=B,Te=B=0,Re=null;ge!==null&&Te<F.length;Te++){ge.index>Te?(Re=ge,ge=null):Re=ge.sibling;var $e=G($,ge,F[Te],re);if($e===null){ge===null&&(ge=Re);break}a&&ge&&$e.alternate===null&&i($,ge),B=g($e,B,Te),Ie===null?we=$e:Ie.sibling=$e,Ie=$e,ge=Re}if(Te===F.length)return s($,ge),ze&&Fr($,Te),we;if(ge===null){for(;Te<F.length;Te++)ge=ae($,F[Te],re),ge!==null&&(B=g(ge,B,Te),Ie===null?we=ge:Ie.sibling=ge,Ie=ge);return ze&&Fr($,Te),we}for(ge=c(ge);Te<F.length;Te++)Re=Q(ge,$,Te,F[Te],re),Re!==null&&(a&&Re.alternate!==null&&ge.delete(Re.key===null?Te:Re.key),B=g(Re,B,Te),Ie===null?we=Re:Ie.sibling=Re,Ie=Re);return a&&ge.forEach(function(Wa){return i($,Wa)}),ze&&Fr($,Te),we}function je($,B,F,re){if(F==null)throw Error(r(151));for(var we=null,Ie=null,ge=B,Te=B=0,Re=null,$e=F.next();ge!==null&&!$e.done;Te++,$e=F.next()){ge.index>Te?(Re=ge,ge=null):Re=ge.sibling;var Wa=G($,ge,$e.value,re);if(Wa===null){ge===null&&(ge=Re);break}a&&ge&&Wa.alternate===null&&i($,ge),B=g(Wa,B,Te),Ie===null?we=Wa:Ie.sibling=Wa,Ie=Wa,ge=Re}if($e.done)return s($,ge),ze&&Fr($,Te),we;if(ge===null){for(;!$e.done;Te++,$e=F.next())$e=ae($,$e.value,re),$e!==null&&(B=g($e,B,Te),Ie===null?we=$e:Ie.sibling=$e,Ie=$e);return ze&&Fr($,Te),we}for(ge=c(ge);!$e.done;Te++,$e=F.next())$e=Q(ge,$,Te,$e.value,re),$e!==null&&(a&&$e.alternate!==null&&ge.delete($e.key===null?Te:$e.key),B=g($e,B,Te),Ie===null?we=$e:Ie.sibling=$e,Ie=$e);return a&&ge.forEach(function(k3){return i($,k3)}),ze&&Fr($,Te),we}function We($,B,F,re){if(typeof F=="object"&&F!==null&&F.type===j&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case S:e:{for(var we=F.key;B!==null;){if(B.key===we){if(we=F.type,we===j){if(B.tag===7){s($,B.sibling),re=v(B,F.props.children),re.return=$,$=re;break e}}else if(B.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===I&&_i(we)===B.type){s($,B.sibling),re=v(B,F.props),Xo(re,F),re.return=$,$=re;break e}s($,B);break}else i($,B);B=B.sibling}F.type===j?(re=bi(F.props.children,$.mode,re,F.key),re.return=$,$=re):(re=Gu(F.type,F.key,F.props,null,$.mode,re),Xo(re,F),re.return=$,$=re)}return O($);case w:e:{for(we=F.key;B!==null;){if(B.key===we)if(B.tag===4&&B.stateNode.containerInfo===F.containerInfo&&B.stateNode.implementation===F.implementation){s($,B.sibling),re=v(B,F.children||[]),re.return=$,$=re;break e}else{s($,B);break}else i($,B);B=B.sibling}re=Jh(F,$.mode,re),re.return=$,$=re}return O($);case I:return F=_i(F),We($,B,F,re)}if(ne(F))return ve($,B,F,re);if(k(F)){if(we=k(F),typeof we!="function")throw Error(r(150));return F=we.call(F),je($,B,F,re)}if(typeof F.then=="function")return We($,B,ec(F),re);if(F.$$typeof===T)return We($,B,Zu($,F),re);tc($,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,B!==null&&B.tag===6?(s($,B.sibling),re=v(B,F),re.return=$,$=re):(s($,B),re=Qh(F,$.mode,re),re.return=$,$=re),O($)):s($,B)}return function($,B,F,re){try{Vo=0;var we=We($,B,F,re);return Tl=null,we}catch(ge){if(ge===Cl||ge===Qu)throw ge;var Ie=kn(29,ge,null,$.mode);return Ie.lanes=re,Ie.return=$,Ie}finally{}}}var Ai=n1(!0),r1=n1(!1),ka=!1;function fm(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dm(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Ra(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function za(a,i,s){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(He&2)!==0){var v=c.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),c.pending=i,i=Yu(a),$x(a,null,s),i}return Ku(a,c,i,s),Yu(a)}function Zo(a,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var c=i.lanes;c&=a.pendingLanes,s|=c,i.lanes=s,Vb(a,s)}}function hm(a,i){var s=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var v=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var O={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};g===null?v=g=O:g=g.next=O,s=s.next}while(s!==null);g===null?v=g=i:g=g.next=i}else v=g=i;s={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},a.updateQueue=s;return}a=s.lastBaseUpdate,a===null?s.firstBaseUpdate=i:a.next=i,s.lastBaseUpdate=i}var mm=!1;function Wo(){if(mm){var a=Nl;if(a!==null)throw a}}function Qo(a,i,s,c){mm=!1;var v=a.updateQueue;ka=!1;var g=v.firstBaseUpdate,O=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var z=N,K=z.next;z.next=null,O===null?g=K:O.next=K,O=z;var ee=a.alternate;ee!==null&&(ee=ee.updateQueue,N=ee.lastBaseUpdate,N!==O&&(N===null?ee.firstBaseUpdate=K:N.next=K,ee.lastBaseUpdate=z))}if(g!==null){var ae=v.baseState;O=0,ee=K=z=null,N=g;do{var G=N.lane&-536870913,Q=G!==N.lane;if(Q?(ke&G)===G:(c&G)===G){G!==0&&G===El&&(mm=!0),ee!==null&&(ee=ee.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var ve=a,je=N;G=i;var We=s;switch(je.tag){case 1:if(ve=je.payload,typeof ve=="function"){ae=ve.call(We,ae,G);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=je.payload,G=typeof ve=="function"?ve.call(We,ae,G):ve,G==null)break e;ae=y({},ae,G);break e;case 2:ka=!0}}G=N.callback,G!==null&&(a.flags|=64,Q&&(a.flags|=8192),Q=v.callbacks,Q===null?v.callbacks=[G]:Q.push(G))}else Q={lane:G,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ee===null?(K=ee=Q,z=ae):ee=ee.next=Q,O|=G;if(N=N.next,N===null){if(N=v.shared.pending,N===null)break;Q=N,N=Q.next,Q.next=null,v.lastBaseUpdate=Q,v.shared.pending=null}}while(!0);ee===null&&(z=ae),v.baseState=z,v.firstBaseUpdate=K,v.lastBaseUpdate=ee,g===null&&(v.shared.lanes=0),Ua|=O,a.lanes=O,a.memoizedState=ae}}function a1(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function i1(a,i){var s=a.callbacks;if(s!==null)for(a.callbacks=null,a=0;a<s.length;a++)a1(s[a],i)}var Ml=R(null),nc=R(0);function l1(a,i){a=ta,oe(nc,a),oe(Ml,i),ta=a|i.baseLanes}function pm(){oe(nc,ta),oe(Ml,Ml.current)}function vm(){ta=nc.current,Y(Ml),Y(nc)}var Rn=R(null),Wn=null;function La(a){var i=a.alternate;oe(St,St.current&1),oe(Rn,a),Wn===null&&(i===null||Ml.current!==null||i.memoizedState!==null)&&(Wn=a)}function ym(a){oe(St,St.current),oe(Rn,a),Wn===null&&(Wn=a)}function o1(a){a.tag===22?(oe(St,St.current),oe(Rn,a),Wn===null&&(Wn=a)):Ba()}function Ba(){oe(St,St.current),oe(Rn,Rn.current)}function zn(a){Y(Rn),Wn===a&&(Wn=null),Y(St)}var St=R(0);function rc(a){for(var i=a;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||jp(s)||_p(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Gr=0,Ce=null,Xe=null,Nt=null,ac=!1,Dl=!1,Ei=!1,ic=0,Jo=0,Pl=null,_P=0;function mt(){throw Error(r(321))}function gm(a,i){if(i===null)return!1;for(var s=0;s<i.length&&s<a.length;s++)if(!Pn(a[s],i[s]))return!1;return!0}function bm(a,i,s,c,v,g){return Gr=g,Ce=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=a===null||a.memoizedState===null?F1:km,Ei=!1,g=s(c,v),Ei=!1,Dl&&(g=u1(i,s,c,v)),s1(a),g}function s1(a){L.H=ns;var i=Xe!==null&&Xe.next!==null;if(Gr=0,Nt=Xe=Ce=null,ac=!1,Jo=0,Pl=null,i)throw Error(r(300));a===null||Ct||(a=a.dependencies,a!==null&&Xu(a)&&(Ct=!0))}function u1(a,i,s,c){Ce=a;var v=0;do{if(Dl&&(Pl=null),Jo=0,Dl=!1,25<=v)throw Error(r(301));if(v+=1,Nt=Xe=null,a.updateQueue!=null){var g=a.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}L.H=K1,g=i(s,c)}while(Dl);return g}function OP(){var a=L.H,i=a.useState()[0];return i=typeof i.then=="function"?es(i):i,a=a.useState()[0],(Xe!==null?Xe.memoizedState:null)!==a&&(Ce.flags|=1024),i}function xm(){var a=ic!==0;return ic=0,a}function wm(a,i,s){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~s}function Sm(a){if(ac){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}ac=!1}Gr=0,Nt=Xe=Ce=null,Dl=!1,Jo=ic=0,Pl=null}function un(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Ce.memoizedState=Nt=a:Nt=Nt.next=a,Nt}function jt(){if(Xe===null){var a=Ce.alternate;a=a!==null?a.memoizedState:null}else a=Xe.next;var i=Nt===null?Ce.memoizedState:Nt.next;if(i!==null)Nt=i,Xe=a;else{if(a===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));Xe=a,a={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Nt===null?Ce.memoizedState=Nt=a:Nt=Nt.next=a}return Nt}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function es(a){var i=Jo;return Jo+=1,Pl===null&&(Pl=[]),a=Jx(Pl,a,i),i=Ce,(Nt===null?i.memoizedState:Nt.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?F1:km),a}function oc(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return es(a);if(a.$$typeof===T)return Zt(a)}throw Error(r(438,String(a)))}function jm(a){var i=null,s=Ce.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var c=Ce.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(v){return v.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=lc(),Ce.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(a),c=0;c<a;c++)s[c]=X;return i.index++,s}function Vr(a,i){return typeof i=="function"?i(a):i}function sc(a){var i=jt();return _m(i,Xe,a)}function _m(a,i,s){var c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var v=a.baseQueue,g=c.pending;if(g!==null){if(v!==null){var O=v.next;v.next=g.next,g.next=O}i.baseQueue=v=g,c.pending=null}if(g=a.baseState,v===null)a.memoizedState=g;else{i=v.next;var N=O=null,z=null,K=i,ee=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(ke&ae)===ae:(Gr&ae)===ae){var G=K.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===El&&(ee=!0);else if((Gr&G)===G){K=K.next,G===El&&(ee=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(N=z=ae,O=g):z=z.next=ae,Ce.lanes|=G,Ua|=G;ae=K.action,Ei&&s(g,ae),g=K.hasEagerState?K.eagerState:s(g,ae)}else G={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(N=z=G,O=g):z=z.next=G,Ce.lanes|=ae,Ua|=ae;K=K.next}while(K!==null&&K!==i);if(z===null?O=g:z.next=N,!Pn(g,a.memoizedState)&&(Ct=!0,ee&&(s=Nl,s!==null)))throw s;a.memoizedState=g,a.baseState=O,a.baseQueue=z,c.lastRenderedState=g}return v===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function Om(a){var i=jt(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var c=s.dispatch,v=s.pending,g=i.memoizedState;if(v!==null){s.pending=null;var O=v=v.next;do g=a(g,O.action),O=O.next;while(O!==v);Pn(g,i.memoizedState)||(Ct=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function c1(a,i,s){var c=Ce,v=jt(),g=ze;if(g){if(s===void 0)throw Error(r(407));s=s()}else s=i();var O=!Pn((Xe||v).memoizedState,s);if(O&&(v.memoizedState=s,Ct=!0),v=v.queue,Nm(h1.bind(null,c,v,a),[a]),v.getSnapshot!==i||O||Nt!==null&&Nt.memoizedState.tag&1){if(c.flags|=2048,kl(9,{destroy:void 0},d1.bind(null,c,v,s,i),null),tt===null)throw Error(r(349));g||(Gr&127)!==0||f1(c,i,s)}return s}function f1(a,i,s){a.flags|=16384,a={getSnapshot:i,value:s},i=Ce.updateQueue,i===null?(i=lc(),Ce.updateQueue=i,i.stores=[a]):(s=i.stores,s===null?i.stores=[a]:s.push(a))}function d1(a,i,s,c){i.value=s,i.getSnapshot=c,m1(i)&&p1(a)}function h1(a,i,s){return s(function(){m1(i)&&p1(a)})}function m1(a){var i=a.getSnapshot;a=a.value;try{var s=i();return!Pn(a,s)}catch{return!0}}function p1(a){var i=gi(a,2);i!==null&&wn(i,a,2)}function Am(a){var i=un();if(typeof a=="function"){var s=a;if(a=s(),Ei){Ea(!0);try{s()}finally{Ea(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:a},i}function v1(a,i,s,c){return a.baseState=s,_m(a,Xe,typeof c=="function"?c:Vr)}function AP(a,i,s,c,v){if(fc(a))throw Error(r(485));if(a=i.action,a!==null){var g={payload:v,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){g.listeners.push(O)}};L.T!==null?s(!0):g.isTransition=!1,c(g),s=i.pending,s===null?(g.next=i.pending=g,y1(i,g)):(g.next=s.next,i.pending=s.next=g)}}function y1(a,i){var s=i.action,c=i.payload,v=a.state;if(i.isTransition){var g=L.T,O={};L.T=O;try{var N=s(v,c),z=L.S;z!==null&&z(O,N),g1(a,i,N)}catch(K){Em(a,i,K)}finally{g!==null&&O.types!==null&&(g.types=O.types),L.T=g}}else try{g=s(v,c),g1(a,i,g)}catch(K){Em(a,i,K)}}function g1(a,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){b1(a,i,c)},function(c){return Em(a,i,c)}):b1(a,i,s)}function b1(a,i,s){i.status="fulfilled",i.value=s,x1(i),a.state=s,i=a.pending,i!==null&&(s=i.next,s===i?a.pending=null:(s=s.next,i.next=s,y1(a,s)))}function Em(a,i,s){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=s,x1(i),i=i.next;while(i!==c)}a.action=null}function x1(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function w1(a,i){return i}function S1(a,i){if(ze){var s=tt.formState;if(s!==null){e:{var c=Ce;if(ze){if(it){t:{for(var v=it,g=Zn;v.nodeType!==8;){if(!g){v=null;break t}if(v=Qn(v.nextSibling),v===null){v=null;break t}}g=v.data,v=g==="F!"||g==="F"?v:null}if(v){it=Qn(v.nextSibling),c=v.data==="F!";break e}}Da(c)}c=!1}c&&(i=s[0])}}return s=un(),s.memoizedState=s.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w1,lastRenderedState:i},s.queue=c,s=U1.bind(null,Ce,c),c.dispatch=s,c=Am(!1),g=Pm.bind(null,Ce,!1,c.queue),c=un(),v={state:i,dispatch:null,action:a,pending:null},c.queue=v,s=AP.bind(null,Ce,v,g,s),v.dispatch=s,c.memoizedState=a,[i,s,!1]}function j1(a){var i=jt();return _1(i,Xe,a)}function _1(a,i,s){if(i=_m(a,i,w1)[0],a=sc(Vr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=es(i)}catch(O){throw O===Cl?Qu:O}else c=i;i=jt();var v=i.queue,g=v.dispatch;return s!==i.memoizedState&&(Ce.flags|=2048,kl(9,{destroy:void 0},EP.bind(null,v,s),null)),[c,g,a]}function EP(a,i){a.action=i}function O1(a){var i=jt(),s=Xe;if(s!==null)return _1(i,s,a);jt(),i=i.memoizedState,s=jt();var c=s.queue.dispatch;return s.memoizedState=a,[i,c,!1]}function kl(a,i,s,c){return a={tag:a,create:s,deps:c,inst:i,next:null},i=Ce.updateQueue,i===null&&(i=lc(),Ce.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=a.next=a:(c=s.next,s.next=a,a.next=c,i.lastEffect=a),a}function A1(){return jt().memoizedState}function uc(a,i,s,c){var v=un();Ce.flags|=a,v.memoizedState=kl(1|i,{destroy:void 0},s,c===void 0?null:c)}function cc(a,i,s,c){var v=jt();c=c===void 0?null:c;var g=v.memoizedState.inst;Xe!==null&&c!==null&&gm(c,Xe.memoizedState.deps)?v.memoizedState=kl(i,g,s,c):(Ce.flags|=a,v.memoizedState=kl(1|i,g,s,c))}function E1(a,i){uc(8390656,8,a,i)}function Nm(a,i){cc(2048,8,a,i)}function NP(a){Ce.flags|=4;var i=Ce.updateQueue;if(i===null)i=lc(),Ce.updateQueue=i,i.events=[a];else{var s=i.events;s===null?i.events=[a]:s.push(a)}}function N1(a){var i=jt().memoizedState;return NP({ref:i,nextImpl:a}),function(){if((He&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function C1(a,i){return cc(4,2,a,i)}function T1(a,i){return cc(4,4,a,i)}function M1(a,i){if(typeof i=="function"){a=a();var s=i(a);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function D1(a,i,s){s=s!=null?s.concat([a]):null,cc(4,4,M1.bind(null,i,a),s)}function Cm(){}function P1(a,i){var s=jt();i=i===void 0?null:i;var c=s.memoizedState;return i!==null&&gm(i,c[1])?c[0]:(s.memoizedState=[a,i],a)}function k1(a,i){var s=jt();i=i===void 0?null:i;var c=s.memoizedState;if(i!==null&&gm(i,c[1]))return c[0];if(c=a(),Ei){Ea(!0);try{a()}finally{Ea(!1)}}return s.memoizedState=[c,i],c}function Tm(a,i,s){return s===void 0||(Gr&1073741824)!==0&&(ke&261930)===0?a.memoizedState=i:(a.memoizedState=s,a=Rw(),Ce.lanes|=a,Ua|=a,s)}function R1(a,i,s,c){return Pn(s,i)?s:Ml.current!==null?(a=Tm(a,s,c),Pn(a,i)||(Ct=!0),a):(Gr&42)===0||(Gr&1073741824)!==0&&(ke&261930)===0?(Ct=!0,a.memoizedState=s):(a=Rw(),Ce.lanes|=a,Ua|=a,i)}function z1(a,i,s,c,v){var g=Z.p;Z.p=g!==0&&8>g?g:8;var O=L.T,N={};L.T=N,Pm(a,!1,i,s);try{var z=v(),K=L.S;if(K!==null&&K(N,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=jP(z,c);ts(a,i,ee,In(a))}else ts(a,i,c,In(a))}catch(ae){ts(a,i,{then:function(){},status:"rejected",reason:ae},In())}finally{Z.p=g,O!==null&&N.types!==null&&(O.types=N.types),L.T=O}}function CP(){}function Mm(a,i,s,c){if(a.tag!==5)throw Error(r(476));var v=L1(a).queue;z1(a,v,i,ie,s===null?CP:function(){return B1(a),s(c)})}function L1(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:ie},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:s},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function B1(a){var i=L1(a);i.next===null&&(i=a.alternate.memoizedState),ts(a,i.next.queue,{},In())}function Dm(){return Zt(gs)}function I1(){return jt().memoizedState}function $1(){return jt().memoizedState}function TP(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var s=In();a=Ra(s);var c=za(i,a,s);c!==null&&(wn(c,i,s),Zo(c,i,s)),i={cache:om()},a.payload=i;return}i=i.return}}function MP(a,i,s){var c=In();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},fc(a)?q1(i,s):(s=Zh(a,i,s,c),s!==null&&(wn(s,a,c),H1(s,i,c)))}function U1(a,i,s){var c=In();ts(a,i,s,c)}function ts(a,i,s,c){var v={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(fc(a))q1(i,v);else{var g=a.alternate;if(a.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var O=i.lastRenderedState,N=g(O,s);if(v.hasEagerState=!0,v.eagerState=N,Pn(N,O))return Ku(a,i,v,0),tt===null&&Fu(),!1}catch{}finally{}if(s=Zh(a,i,v,c),s!==null)return wn(s,a,c),H1(s,i,c),!0}return!1}function Pm(a,i,s,c){if(c={lane:2,revertLane:fp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},fc(a)){if(i)throw Error(r(479))}else i=Zh(a,s,c,2),i!==null&&wn(i,a,2)}function fc(a){var i=a.alternate;return a===Ce||i!==null&&i===Ce}function q1(a,i){Dl=ac=!0;var s=a.pending;s===null?i.next=i:(i.next=s.next,s.next=i),a.pending=i}function H1(a,i,s){if((s&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,s|=c,i.lanes=s,Vb(a,s)}}var ns={readContext:Zt,use:oc,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};ns.useEffectEvent=mt;var F1={readContext:Zt,use:oc,useCallback:function(a,i){return un().memoizedState=[a,i===void 0?null:i],a},useContext:Zt,useEffect:E1,useImperativeHandle:function(a,i,s){s=s!=null?s.concat([a]):null,uc(4194308,4,M1.bind(null,i,a),s)},useLayoutEffect:function(a,i){return uc(4194308,4,a,i)},useInsertionEffect:function(a,i){uc(4,2,a,i)},useMemo:function(a,i){var s=un();i=i===void 0?null:i;var c=a();if(Ei){Ea(!0);try{a()}finally{Ea(!1)}}return s.memoizedState=[c,i],c},useReducer:function(a,i,s){var c=un();if(s!==void 0){var v=s(i);if(Ei){Ea(!0);try{s(i)}finally{Ea(!1)}}}else v=i;return c.memoizedState=c.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},c.queue=a,a=a.dispatch=MP.bind(null,Ce,a),[c.memoizedState,a]},useRef:function(a){var i=un();return a={current:a},i.memoizedState=a},useState:function(a){a=Am(a);var i=a.queue,s=U1.bind(null,Ce,i);return i.dispatch=s,[a.memoizedState,s]},useDebugValue:Cm,useDeferredValue:function(a,i){var s=un();return Tm(s,a,i)},useTransition:function(){var a=Am(!1);return a=z1.bind(null,Ce,a.queue,!0,!1),un().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,s){var c=Ce,v=un();if(ze){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),tt===null)throw Error(r(349));(ke&127)!==0||f1(c,i,s)}v.memoizedState=s;var g={value:s,getSnapshot:i};return v.queue=g,E1(h1.bind(null,c,g,a),[a]),c.flags|=2048,kl(9,{destroy:void 0},d1.bind(null,c,g,s,i),null),s},useId:function(){var a=un(),i=tt.identifierPrefix;if(ze){var s=jr,c=Sr;s=(c&~(1<<32-Dn(c)-1)).toString(32)+s,i="_"+i+"R_"+s,s=ic++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=_P++,i="_"+i+"r_"+s.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:Dm,useFormState:S1,useActionState:S1,useOptimistic:function(a){var i=un();i.memoizedState=i.baseState=a;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Pm.bind(null,Ce,!0,s),s.dispatch=i,[a,i]},useMemoCache:jm,useCacheRefresh:function(){return un().memoizedState=TP.bind(null,Ce)},useEffectEvent:function(a){var i=un(),s={impl:a};return i.memoizedState=s,function(){if((He&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},km={readContext:Zt,use:oc,useCallback:P1,useContext:Zt,useEffect:Nm,useImperativeHandle:D1,useInsertionEffect:C1,useLayoutEffect:T1,useMemo:k1,useReducer:sc,useRef:A1,useState:function(){return sc(Vr)},useDebugValue:Cm,useDeferredValue:function(a,i){var s=jt();return R1(s,Xe.memoizedState,a,i)},useTransition:function(){var a=sc(Vr)[0],i=jt().memoizedState;return[typeof a=="boolean"?a:es(a),i]},useSyncExternalStore:c1,useId:I1,useHostTransitionStatus:Dm,useFormState:j1,useActionState:j1,useOptimistic:function(a,i){var s=jt();return v1(s,Xe,a,i)},useMemoCache:jm,useCacheRefresh:$1};km.useEffectEvent=N1;var K1={readContext:Zt,use:oc,useCallback:P1,useContext:Zt,useEffect:Nm,useImperativeHandle:D1,useInsertionEffect:C1,useLayoutEffect:T1,useMemo:k1,useReducer:Om,useRef:A1,useState:function(){return Om(Vr)},useDebugValue:Cm,useDeferredValue:function(a,i){var s=jt();return Xe===null?Tm(s,a,i):R1(s,Xe.memoizedState,a,i)},useTransition:function(){var a=Om(Vr)[0],i=jt().memoizedState;return[typeof a=="boolean"?a:es(a),i]},useSyncExternalStore:c1,useId:I1,useHostTransitionStatus:Dm,useFormState:O1,useActionState:O1,useOptimistic:function(a,i){var s=jt();return Xe!==null?v1(s,Xe,a,i):(s.baseState=a,[a,s.queue.dispatch])},useMemoCache:jm,useCacheRefresh:$1};K1.useEffectEvent=N1;function Rm(a,i,s,c){i=a.memoizedState,s=s(c,i),s=s==null?i:y({},i,s),a.memoizedState=s,a.lanes===0&&(a.updateQueue.baseState=s)}var zm={enqueueSetState:function(a,i,s){a=a._reactInternals;var c=In(),v=Ra(c);v.payload=i,s!=null&&(v.callback=s),i=za(a,v,c),i!==null&&(wn(i,a,c),Zo(i,a,c))},enqueueReplaceState:function(a,i,s){a=a._reactInternals;var c=In(),v=Ra(c);v.tag=1,v.payload=i,s!=null&&(v.callback=s),i=za(a,v,c),i!==null&&(wn(i,a,c),Zo(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var s=In(),c=Ra(s);c.tag=2,i!=null&&(c.callback=i),i=za(a,c,s),i!==null&&(wn(i,a,s),Zo(i,a,s))}};function Y1(a,i,s,c,v,g,O){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,g,O):i.prototype&&i.prototype.isPureReactComponent?!qo(s,c)||!qo(v,g):!0}function G1(a,i,s,c){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==a&&zm.enqueueReplaceState(i,i.state,null)}function Ni(a,i){var s=i;if("ref"in i){s={};for(var c in i)c!=="ref"&&(s[c]=i[c])}if(a=a.defaultProps){s===i&&(s=y({},s));for(var v in a)s[v]===void 0&&(s[v]=a[v])}return s}function V1(a){Hu(a)}function X1(a){console.error(a)}function Z1(a){Hu(a)}function dc(a,i){try{var s=a.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function W1(a,i,s){try{var c=a.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Lm(a,i,s){return s=Ra(s),s.tag=3,s.payload={element:null},s.callback=function(){dc(a,i)},s}function Q1(a){return a=Ra(a),a.tag=3,a}function J1(a,i,s,c){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var g=c.value;a.payload=function(){return v(g)},a.callback=function(){W1(i,s,c)}}var O=s.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(a.callback=function(){W1(i,s,c),typeof v!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function DP(a,i,s,c,v){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=s.alternate,i!==null&&Al(i,s,v,!0),s=Rn.current,s!==null){switch(s.tag){case 31:case 13:return Wn===null?_c():s.alternate===null&&pt===0&&(pt=3),s.flags&=-257,s.flags|=65536,s.lanes=v,c===Ju?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([c]):i.add(c),sp(a,c,v)),!1;case 22:return s.flags|=65536,c===Ju?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([c]):s.add(c)),sp(a,c,v)),!1}throw Error(r(435,s.tag))}return sp(a,c,v),_c(),!1}if(ze)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,c!==nm&&(a=Error(r(422),{cause:c}),Ko(Gn(a,s)))):(c!==nm&&(i=Error(r(423),{cause:c}),Ko(Gn(i,s))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,c=Gn(c,s),v=Lm(a.stateNode,c,v),hm(a,v),pt!==4&&(pt=2)),!1;var g=Error(r(520),{cause:c});if(g=Gn(g,s),cs===null?cs=[g]:cs.push(g),pt!==4&&(pt=2),i===null)return!0;c=Gn(c,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,a=v&-v,s.lanes|=a,a=Lm(s.stateNode,c,a),hm(s,a),!1;case 1:if(i=s.type,g=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(qa===null||!qa.has(g))))return s.flags|=65536,v&=-v,s.lanes|=v,v=Q1(v),J1(v,a,s,c),hm(s,v),!1}s=s.return}while(s!==null);return!1}var Bm=Error(r(461)),Ct=!1;function Wt(a,i,s,c){i.child=a===null?r1(i,null,s,c):Ai(i,a.child,s,c)}function ew(a,i,s,c,v){s=s.render;var g=i.ref;if("ref"in c){var O={};for(var N in c)N!=="ref"&&(O[N]=c[N])}else O=c;return Si(i),c=bm(a,i,s,O,g,v),N=xm(),a!==null&&!Ct?(wm(a,i,v),Xr(a,i,v)):(ze&&N&&em(i),i.flags|=1,Wt(a,i,c,v),i.child)}function tw(a,i,s,c,v){if(a===null){var g=s.type;return typeof g=="function"&&!Wh(g)&&g.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=g,nw(a,i,g,c,v)):(a=Gu(s.type,null,c,i,i.mode,v),a.ref=i.ref,a.return=i,i.child=a)}if(g=a.child,!Ym(a,v)){var O=g.memoizedProps;if(s=s.compare,s=s!==null?s:qo,s(O,c)&&a.ref===i.ref)return Xr(a,i,v)}return i.flags|=1,a=Hr(g,c),a.ref=i.ref,a.return=i,i.child=a}function nw(a,i,s,c,v){if(a!==null){var g=a.memoizedProps;if(qo(g,c)&&a.ref===i.ref)if(Ct=!1,i.pendingProps=c=g,Ym(a,v))(a.flags&131072)!==0&&(Ct=!0);else return i.lanes=a.lanes,Xr(a,i,v)}return Im(a,i,s,c,v)}function rw(a,i,s,c){var v=c.children,g=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|s:s,a!==null){for(c=i.child=a.child,v=0;c!==null;)v=v|c.lanes|c.childLanes,c=c.sibling;c=v&~g}else c=0,i.child=null;return aw(a,i,g,s,c)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&Wu(i,g!==null?g.cachePool:null),g!==null?l1(i,g):pm(),o1(i);else return c=i.lanes=536870912,aw(a,i,g!==null?g.baseLanes|s:s,s,c)}else g!==null?(Wu(i,g.cachePool),l1(i,g),Ba(),i.memoizedState=null):(a!==null&&Wu(i,null),pm(),Ba());return Wt(a,i,v,s),i.child}function rs(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function aw(a,i,s,c,v){var g=um();return g=g===null?null:{parent:Et._currentValue,pool:g},i.memoizedState={baseLanes:s,cachePool:g},a!==null&&Wu(i,null),pm(),o1(i),a!==null&&Al(a,i,c,!0),i.childLanes=v,null}function hc(a,i){return i=pc({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function iw(a,i,s){return Ai(i,a.child,null,s),a=hc(i,i.pendingProps),a.flags|=2,zn(i),i.memoizedState=null,a}function PP(a,i,s){var c=i.pendingProps,v=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(ze){if(c.mode==="hidden")return a=hc(i,c),i.lanes=536870912,rs(null,a);if(ym(i),(a=it)?(a=yS(a,Zn),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Ta!==null?{id:Sr,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},s=qx(a),s.return=i,i.child=s,Xt=i,it=null)):a=null,a===null)throw Da(i);return i.lanes=536870912,null}return hc(i,c)}var g=a.memoizedState;if(g!==null){var O=g.dehydrated;if(ym(i),v)if(i.flags&256)i.flags&=-257,i=iw(a,i,s);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(r(558));else if(Ct||Al(a,i,s,!1),v=(s&a.childLanes)!==0,Ct||v){if(c=tt,c!==null&&(O=Xb(c,s),O!==0&&O!==g.retryLane))throw g.retryLane=O,gi(a,O),wn(c,a,O),Bm;_c(),i=iw(a,i,s)}else a=g.treeContext,it=Qn(O.nextSibling),Xt=i,ze=!0,Ma=null,Zn=!1,a!==null&&Kx(i,a),i=hc(i,c),i.flags|=4096;return i}return a=Hr(a.child,{mode:c.mode,children:c.children}),a.ref=i.ref,i.child=a,a.return=i,a}function mc(a,i){var s=i.ref;if(s===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(a===null||a.ref!==s)&&(i.flags|=4194816)}}function Im(a,i,s,c,v){return Si(i),s=bm(a,i,s,c,void 0,v),c=xm(),a!==null&&!Ct?(wm(a,i,v),Xr(a,i,v)):(ze&&c&&em(i),i.flags|=1,Wt(a,i,s,v),i.child)}function lw(a,i,s,c,v,g){return Si(i),i.updateQueue=null,s=u1(i,c,s,v),s1(a),c=xm(),a!==null&&!Ct?(wm(a,i,g),Xr(a,i,g)):(ze&&c&&em(i),i.flags|=1,Wt(a,i,s,g),i.child)}function ow(a,i,s,c,v){if(Si(i),i.stateNode===null){var g=Sl,O=s.contextType;typeof O=="object"&&O!==null&&(g=Zt(O)),g=new s(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=zm,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},fm(i),O=s.contextType,g.context=typeof O=="object"&&O!==null?Zt(O):Sl,g.state=i.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(Rm(i,s,O,c),g.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(O=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),O!==g.state&&zm.enqueueReplaceState(g,g.state,null),Qo(i,c,g,v),Wo(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){g=i.stateNode;var N=i.memoizedProps,z=Ni(s,N);g.props=z;var K=g.context,ee=s.contextType;O=Sl,typeof ee=="object"&&ee!==null&&(O=Zt(ee));var ae=s.getDerivedStateFromProps;ee=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function",N=i.pendingProps!==N,ee||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(N||K!==O)&&G1(i,g,c,O),ka=!1;var G=i.memoizedState;g.state=G,Qo(i,c,g,v),Wo(),K=i.memoizedState,N||G!==K||ka?(typeof ae=="function"&&(Rm(i,s,ae,c),K=i.memoizedState),(z=ka||Y1(i,s,z,c,G,K,O))?(ee||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=K),g.props=c,g.state=K,g.context=O,c=z):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,dm(a,i),O=i.memoizedProps,ee=Ni(s,O),g.props=ee,ae=i.pendingProps,G=g.context,K=s.contextType,z=Sl,typeof K=="object"&&K!==null&&(z=Zt(K)),N=s.getDerivedStateFromProps,(K=typeof N=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O!==ae||G!==z)&&G1(i,g,c,z),ka=!1,G=i.memoizedState,g.state=G,Qo(i,c,g,v),Wo();var Q=i.memoizedState;O!==ae||G!==Q||ka||a!==null&&a.dependencies!==null&&Xu(a.dependencies)?(typeof N=="function"&&(Rm(i,s,N,c),Q=i.memoizedState),(ee=ka||Y1(i,s,ee,c,G,Q,z)||a!==null&&a.dependencies!==null&&Xu(a.dependencies))?(K||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Q,z),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Q,z)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=Q),g.props=c,g.state=Q,g.context=z,c=ee):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=1024),c=!1)}return g=c,mc(a,i),c=(i.flags&128)!==0,g||c?(g=i.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,a!==null&&c?(i.child=Ai(i,a.child,null,v),i.child=Ai(i,null,s,v)):Wt(a,i,s,v),i.memoizedState=g.state,a=i.child):a=Xr(a,i,v),a}function sw(a,i,s,c){return xi(),i.flags|=256,Wt(a,i,s,c),i.child}var $m={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Um(a){return{baseLanes:a,cachePool:Wx()}}function qm(a,i,s){return a=a!==null?a.childLanes&~s:0,i&&(a|=Bn),a}function uw(a,i,s){var c=i.pendingProps,v=!1,g=(i.flags&128)!==0,O;if((O=g)||(O=a!==null&&a.memoizedState===null?!1:(St.current&2)!==0),O&&(v=!0,i.flags&=-129),O=(i.flags&32)!==0,i.flags&=-33,a===null){if(ze){if(v?La(i):Ba(),(a=it)?(a=yS(a,Zn),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Ta!==null?{id:Sr,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},s=qx(a),s.return=i,i.child=s,Xt=i,it=null)):a=null,a===null)throw Da(i);return _p(a)?i.lanes=32:i.lanes=536870912,null}var N=c.children;return c=c.fallback,v?(Ba(),v=i.mode,N=pc({mode:"hidden",children:N},v),c=bi(c,v,s,null),N.return=i,c.return=i,N.sibling=c,i.child=N,c=i.child,c.memoizedState=Um(s),c.childLanes=qm(a,O,s),i.memoizedState=$m,rs(null,c)):(La(i),Hm(i,N))}var z=a.memoizedState;if(z!==null&&(N=z.dehydrated,N!==null)){if(g)i.flags&256?(La(i),i.flags&=-257,i=Fm(a,i,s)):i.memoizedState!==null?(Ba(),i.child=a.child,i.flags|=128,i=null):(Ba(),N=c.fallback,v=i.mode,c=pc({mode:"visible",children:c.children},v),N=bi(N,v,s,null),N.flags|=2,c.return=i,N.return=i,c.sibling=N,i.child=c,Ai(i,a.child,null,s),c=i.child,c.memoizedState=Um(s),c.childLanes=qm(a,O,s),i.memoizedState=$m,i=rs(null,c));else if(La(i),_p(N)){if(O=N.nextSibling&&N.nextSibling.dataset,O)var K=O.dgst;O=K,c=Error(r(419)),c.stack="",c.digest=O,Ko({value:c,source:null,stack:null}),i=Fm(a,i,s)}else if(Ct||Al(a,i,s,!1),O=(s&a.childLanes)!==0,Ct||O){if(O=tt,O!==null&&(c=Xb(O,s),c!==0&&c!==z.retryLane))throw z.retryLane=c,gi(a,c),wn(O,a,c),Bm;jp(N)||_c(),i=Fm(a,i,s)}else jp(N)?(i.flags|=192,i.child=a.child,i=null):(a=z.treeContext,it=Qn(N.nextSibling),Xt=i,ze=!0,Ma=null,Zn=!1,a!==null&&Kx(i,a),i=Hm(i,c.children),i.flags|=4096);return i}return v?(Ba(),N=c.fallback,v=i.mode,z=a.child,K=z.sibling,c=Hr(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&65011712,K!==null?N=Hr(K,N):(N=bi(N,v,s,null),N.flags|=2),N.return=i,c.return=i,c.sibling=N,i.child=c,rs(null,c),c=i.child,N=a.child.memoizedState,N===null?N=Um(s):(v=N.cachePool,v!==null?(z=Et._currentValue,v=v.parent!==z?{parent:z,pool:z}:v):v=Wx(),N={baseLanes:N.baseLanes|s,cachePool:v}),c.memoizedState=N,c.childLanes=qm(a,O,s),i.memoizedState=$m,rs(a.child,c)):(La(i),s=a.child,a=s.sibling,s=Hr(s,{mode:"visible",children:c.children}),s.return=i,s.sibling=null,a!==null&&(O=i.deletions,O===null?(i.deletions=[a],i.flags|=16):O.push(a)),i.child=s,i.memoizedState=null,s)}function Hm(a,i){return i=pc({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function pc(a,i){return a=kn(22,a,null,i),a.lanes=0,a}function Fm(a,i,s){return Ai(i,a.child,null,s),a=Hm(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function cw(a,i,s){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),im(a.return,i,s)}function Km(a,i,s,c,v,g){var O=a.memoizedState;O===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:v,treeForkCount:g}:(O.isBackwards=i,O.rendering=null,O.renderingStartTime=0,O.last=c,O.tail=s,O.tailMode=v,O.treeForkCount=g)}function fw(a,i,s){var c=i.pendingProps,v=c.revealOrder,g=c.tail;c=c.children;var O=St.current,N=(O&2)!==0;if(N?(O=O&1|2,i.flags|=128):O&=1,oe(St,O),Wt(a,i,c,s),c=ze?Fo:0,!N&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&cw(a,s,i);else if(a.tag===19)cw(a,s,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(v){case"forwards":for(s=i.child,v=null;s!==null;)a=s.alternate,a!==null&&rc(a)===null&&(v=s),s=s.sibling;s=v,s===null?(v=i.child,i.child=null):(v=s.sibling,s.sibling=null),Km(i,!1,v,s,g,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,v=i.child,i.child=null;v!==null;){if(a=v.alternate,a!==null&&rc(a)===null){i.child=v;break}a=v.sibling,v.sibling=s,s=v,v=a}Km(i,!0,s,null,g,c);break;case"together":Km(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function Xr(a,i,s){if(a!==null&&(i.dependencies=a.dependencies),Ua|=i.lanes,(s&i.childLanes)===0)if(a!==null){if(Al(a,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,s=Hr(a,a.pendingProps),i.child=s,s.return=i;a.sibling!==null;)a=a.sibling,s=s.sibling=Hr(a,a.pendingProps),s.return=i;s.sibling=null}return i.child}function Ym(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Xu(a)))}function kP(a,i,s){switch(i.tag){case 3:et(i,i.stateNode.containerInfo),Pa(i,Et,a.memoizedState.cache),xi();break;case 27:case 5:_e(i);break;case 4:et(i,i.stateNode.containerInfo);break;case 10:Pa(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,ym(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(La(i),i.flags|=128,null):(s&i.child.childLanes)!==0?uw(a,i,s):(La(i),a=Xr(a,i,s),a!==null?a.sibling:null);La(i);break;case 19:var v=(a.flags&128)!==0;if(c=(s&i.childLanes)!==0,c||(Al(a,i,s,!1),c=(s&i.childLanes)!==0),v){if(c)return fw(a,i,s);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),oe(St,St.current),c)break;return null;case 22:return i.lanes=0,rw(a,i,s,i.pendingProps);case 24:Pa(i,Et,a.memoizedState.cache)}return Xr(a,i,s)}function dw(a,i,s){if(a!==null)if(a.memoizedProps!==i.pendingProps)Ct=!0;else{if(!Ym(a,s)&&(i.flags&128)===0)return Ct=!1,kP(a,i,s);Ct=(a.flags&131072)!==0}else Ct=!1,ze&&(i.flags&1048576)!==0&&Fx(i,Fo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(a=_i(i.elementType),i.type=a,typeof a=="function")Wh(a)?(c=Ni(a,c),i.tag=1,i=ow(null,i,a,c,s)):(i.tag=0,i=Im(null,i,a,c,s));else{if(a!=null){var v=a.$$typeof;if(v===C){i.tag=11,i=ew(null,i,a,c,s);break e}else if(v===D){i.tag=14,i=tw(null,i,a,c,s);break e}}throw i=U(a)||a,Error(r(306,i,""))}}return i;case 0:return Im(a,i,i.type,i.pendingProps,s);case 1:return c=i.type,v=Ni(c,i.pendingProps),ow(a,i,c,v,s);case 3:e:{if(et(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var g=i.memoizedState;v=g.element,dm(a,i),Qo(i,c,null,s);var O=i.memoizedState;if(c=O.cache,Pa(i,Et,c),c!==g.cache&&lm(i,[Et],s,!0),Wo(),c=O.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:O.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=sw(a,i,c,s);break e}else if(c!==v){v=Gn(Error(r(424)),i),Ko(v),i=sw(a,i,c,s);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(it=Qn(a.firstChild),Xt=i,ze=!0,Ma=null,Zn=!0,s=r1(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(xi(),c===v){i=Xr(a,i,s);break e}Wt(a,i,c,s)}i=i.child}return i;case 26:return mc(a,i),a===null?(s=jS(i.type,null,i.pendingProps,null))?i.memoizedState=s:ze||(s=i.type,a=i.pendingProps,c=Mc(xe.current).createElement(s),c[Vt]=i,c[pn]=a,Qt(c,s,a),$t(c),i.stateNode=c):i.memoizedState=jS(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return _e(i),a===null&&ze&&(c=i.stateNode=xS(i.type,i.pendingProps,xe.current),Xt=i,Zn=!0,v=it,Ya(i.type)?(Op=v,it=Qn(c.firstChild)):it=v),Wt(a,i,i.pendingProps.children,s),mc(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&ze&&((v=c=it)&&(c=c3(c,i.type,i.pendingProps,Zn),c!==null?(i.stateNode=c,Xt=i,it=Qn(c.firstChild),Zn=!1,v=!0):v=!1),v||Da(i)),_e(i),v=i.type,g=i.pendingProps,O=a!==null?a.memoizedProps:null,c=g.children,xp(v,g)?c=null:O!==null&&xp(v,O)&&(i.flags|=32),i.memoizedState!==null&&(v=bm(a,i,OP,null,null,s),gs._currentValue=v),mc(a,i),Wt(a,i,c,s),i.child;case 6:return a===null&&ze&&((a=s=it)&&(s=f3(s,i.pendingProps,Zn),s!==null?(i.stateNode=s,Xt=i,it=null,a=!0):a=!1),a||Da(i)),null;case 13:return uw(a,i,s);case 4:return et(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=Ai(i,null,c,s):Wt(a,i,c,s),i.child;case 11:return ew(a,i,i.type,i.pendingProps,s);case 7:return Wt(a,i,i.pendingProps,s),i.child;case 8:return Wt(a,i,i.pendingProps.children,s),i.child;case 12:return Wt(a,i,i.pendingProps.children,s),i.child;case 10:return c=i.pendingProps,Pa(i,i.type,c.value),Wt(a,i,c.children,s),i.child;case 9:return v=i.type._context,c=i.pendingProps.children,Si(i),v=Zt(v),c=c(v),i.flags|=1,Wt(a,i,c,s),i.child;case 14:return tw(a,i,i.type,i.pendingProps,s);case 15:return nw(a,i,i.type,i.pendingProps,s);case 19:return fw(a,i,s);case 31:return PP(a,i,s);case 22:return rw(a,i,s,i.pendingProps);case 24:return Si(i),c=Zt(Et),a===null?(v=um(),v===null&&(v=tt,g=om(),v.pooledCache=g,g.refCount++,g!==null&&(v.pooledCacheLanes|=s),v=g),i.memoizedState={parent:c,cache:v},fm(i),Pa(i,Et,v)):((a.lanes&s)!==0&&(dm(a,i),Qo(i,null,null,s),Wo()),v=a.memoizedState,g=i.memoizedState,v.parent!==c?(v={parent:c,cache:c},i.memoizedState=v,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=v),Pa(i,Et,c)):(c=g.cache,Pa(i,Et,c),c!==v.cache&&lm(i,[Et],s,!0))),Wt(a,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Zr(a){a.flags|=4}function Gm(a,i,s,c,v){if((i=(a.mode&32)!==0)&&(i=!1),i){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(Iw())a.flags|=8192;else throw Oi=Ju,cm}else a.flags&=-16777217}function hw(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!NS(i))if(Iw())a.flags|=8192;else throw Oi=Ju,cm}function vc(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Yb():536870912,a.lanes|=i,Bl|=i)}function as(a,i){if(!ze)switch(a.tailMode){case"hidden":i=a.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?a.tail=null:s.sibling=null;break;case"collapsed":s=a.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function lt(a){var i=a.alternate!==null&&a.alternate.child===a.child,s=0,c=0;if(i)for(var v=a.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags&65011712,c|=v.flags&65011712,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags,c|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=c,a.childLanes=s,i}function RP(a,i,s){var c=i.pendingProps;switch(tm(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(i),null;case 1:return lt(i),null;case 3:return s=i.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Yr(Et),J(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(a===null||a.child===null)&&(Ol(i)?Zr(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rm())),lt(i),null;case 26:var v=i.type,g=i.memoizedState;return a===null?(Zr(i),g!==null?(lt(i),hw(i,g)):(lt(i),Gm(i,v,null,c,s))):g?g!==a.memoizedState?(Zr(i),lt(i),hw(i,g)):(lt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==c&&Zr(i),lt(i),Gm(i,v,a,c,s)),null;case 27:if(Ae(i),s=xe.current,v=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return lt(i),null}a=ce.current,Ol(i)?Yx(i):(a=xS(v,c,s),i.stateNode=a,Zr(i))}return lt(i),null;case 5:if(Ae(i),v=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return lt(i),null}if(g=ce.current,Ol(i))Yx(i);else{var O=Mc(xe.current);switch(g){case 1:g=O.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:g=O.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":g=O.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":g=O.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":g=O.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?O.createElement("select",{is:c.is}):O.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?O.createElement(v,{is:c.is}):O.createElement(v)}}g[Vt]=i,g[pn]=c;e:for(O=i.child;O!==null;){if(O.tag===5||O.tag===6)g.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===i)break e;for(;O.sibling===null;){if(O.return===null||O.return===i)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}i.stateNode=g;e:switch(Qt(g,v,c),v){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Zr(i)}}return lt(i),Gm(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,s),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=xe.current,Ol(i)){if(a=i.stateNode,s=i.memoizedProps,c=null,v=Xt,v!==null)switch(v.tag){case 27:case 5:c=v.memoizedProps}a[Vt]=i,a=!!(a.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||uS(a.nodeValue,s)),a||Da(i,!0)}else a=Mc(a).createTextNode(c),a[Vt]=i,i.stateNode=a}return lt(i),null;case 31:if(s=i.memoizedState,a===null||a.memoizedState!==null){if(c=Ol(i),s!==null){if(a===null){if(!c)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Vt]=i}else xi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),a=!1}else s=rm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=s),a=!0;if(!a)return i.flags&256?(zn(i),i):(zn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return lt(i),null;case 13:if(c=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=Ol(i),c!==null&&c.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Vt]=i}else xi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),v=!1}else v=rm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return i.flags&256?(zn(i),i):(zn(i),null)}return zn(i),(i.flags&128)!==0?(i.lanes=s,i):(s=c!==null,a=a!==null&&a.memoizedState!==null,s&&(c=i.child,v=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(v=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==v&&(c.flags|=2048)),s!==a&&s&&(i.child.flags|=8192),vc(i,i.updateQueue),lt(i),null);case 4:return J(),a===null&&pp(i.stateNode.containerInfo),lt(i),null;case 10:return Yr(i.type),lt(i),null;case 19:if(Y(St),c=i.memoizedState,c===null)return lt(i),null;if(v=(i.flags&128)!==0,g=c.rendering,g===null)if(v)as(c,!1);else{if(pt!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(g=rc(a),g!==null){for(i.flags|=128,as(c,!1),a=g.updateQueue,i.updateQueue=a,vc(i,a),i.subtreeFlags=0,a=s,s=i.child;s!==null;)Ux(s,a),s=s.sibling;return oe(St,St.current&1|2),ze&&Fr(i,c.treeForkCount),i.child}a=a.sibling}c.tail!==null&&wt()>wc&&(i.flags|=128,v=!0,as(c,!1),i.lanes=4194304)}else{if(!v)if(a=rc(g),a!==null){if(i.flags|=128,v=!0,a=a.updateQueue,i.updateQueue=a,vc(i,a),as(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!ze)return lt(i),null}else 2*wt()-c.renderingStartTime>wc&&s!==536870912&&(i.flags|=128,v=!0,as(c,!1),i.lanes=4194304);c.isBackwards?(g.sibling=i.child,i.child=g):(a=c.last,a!==null?a.sibling=g:i.child=g,c.last=g)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=wt(),a.sibling=null,s=St.current,oe(St,v?s&1|2:s&1),ze&&Fr(i,c.treeForkCount),a):(lt(i),null);case 22:case 23:return zn(i),vm(),c=i.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(s&536870912)!==0&&(i.flags&128)===0&&(lt(i),i.subtreeFlags&6&&(i.flags|=8192)):lt(i),s=i.updateQueue,s!==null&&vc(i,s.retryQueue),s=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048),a!==null&&Y(ji),null;case 24:return s=null,a!==null&&(s=a.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Yr(Et),lt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function zP(a,i){switch(tm(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Yr(Et),J(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return Ae(i),null;case 31:if(i.memoizedState!==null){if(zn(i),i.alternate===null)throw Error(r(340));xi()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(zn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));xi()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return Y(St),null;case 4:return J(),null;case 10:return Yr(i.type),null;case 22:case 23:return zn(i),vm(),a!==null&&Y(ji),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Yr(Et),null;case 25:return null;default:return null}}function mw(a,i){switch(tm(i),i.tag){case 3:Yr(Et),J();break;case 26:case 27:case 5:Ae(i);break;case 4:J();break;case 31:i.memoizedState!==null&&zn(i);break;case 13:zn(i);break;case 19:Y(St);break;case 10:Yr(i.type);break;case 22:case 23:zn(i),vm(),a!==null&&Y(ji);break;case 24:Yr(Et)}}function is(a,i){try{var s=i.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var v=c.next;s=v;do{if((s.tag&a)===a){c=void 0;var g=s.create,O=s.inst;c=g(),O.destroy=c}s=s.next}while(s!==v)}}catch(N){Ye(i,i.return,N)}}function Ia(a,i,s){try{var c=i.updateQueue,v=c!==null?c.lastEffect:null;if(v!==null){var g=v.next;c=g;do{if((c.tag&a)===a){var O=c.inst,N=O.destroy;if(N!==void 0){O.destroy=void 0,v=i;var z=s,K=N;try{K()}catch(ee){Ye(v,z,ee)}}}c=c.next}while(c!==g)}}catch(ee){Ye(i,i.return,ee)}}function pw(a){var i=a.updateQueue;if(i!==null){var s=a.stateNode;try{i1(i,s)}catch(c){Ye(a,a.return,c)}}}function vw(a,i,s){s.props=Ni(a.type,a.memoizedProps),s.state=a.memoizedState;try{s.componentWillUnmount()}catch(c){Ye(a,i,c)}}function ls(a,i){try{var s=a.ref;if(s!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof s=="function"?a.refCleanup=s(c):s.current=c}}catch(v){Ye(a,i,v)}}function _r(a,i){var s=a.ref,c=a.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(v){Ye(a,i,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(v){Ye(a,i,v)}else s.current=null}function yw(a){var i=a.type,s=a.memoizedProps,c=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(v){Ye(a,a.return,v)}}function Vm(a,i,s){try{var c=a.stateNode;a3(c,a.type,s,i),c[pn]=i}catch(v){Ye(a,a.return,v)}}function gw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ya(a.type)||a.tag===4}function Xm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||gw(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ya(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Zm(a,i,s){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(a,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(a),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ur));else if(c!==4&&(c===27&&Ya(a.type)&&(s=a.stateNode,i=null),a=a.child,a!==null))for(Zm(a,i,s),a=a.sibling;a!==null;)Zm(a,i,s),a=a.sibling}function yc(a,i,s){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?s.insertBefore(a,i):s.appendChild(a);else if(c!==4&&(c===27&&Ya(a.type)&&(s=a.stateNode),a=a.child,a!==null))for(yc(a,i,s),a=a.sibling;a!==null;)yc(a,i,s),a=a.sibling}function bw(a){var i=a.stateNode,s=a.memoizedProps;try{for(var c=a.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);Qt(i,c,s),i[Vt]=a,i[pn]=s}catch(g){Ye(a,a.return,g)}}var Wr=!1,Tt=!1,Wm=!1,xw=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function LP(a,i){if(a=a.containerInfo,gp=Bc,a=Dx(a),Fh(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{s=(s=a.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var v=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var O=0,N=-1,z=-1,K=0,ee=0,ae=a,G=null;t:for(;;){for(var Q;ae!==s||v!==0&&ae.nodeType!==3||(N=O+v),ae!==g||c!==0&&ae.nodeType!==3||(z=O+c),ae.nodeType===3&&(O+=ae.nodeValue.length),(Q=ae.firstChild)!==null;)G=ae,ae=Q;for(;;){if(ae===a)break t;if(G===s&&++K===v&&(N=O),G===g&&++ee===c&&(z=O),(Q=ae.nextSibling)!==null)break;ae=G,G=ae.parentNode}ae=Q}s=N===-1||z===-1?null:{start:N,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(bp={focusedElem:a,selectionRange:s},Bc=!1,Ut=i;Ut!==null;)if(i=Ut,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Ut=a;else for(;Ut!==null;){switch(i=Ut,g=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(s=0;s<a.length;s++)v=a[s],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&g!==null){a=void 0,s=i,v=g.memoizedProps,g=g.memoizedState,c=s.stateNode;try{var ve=Ni(s.type,v);a=c.getSnapshotBeforeUpdate(ve,g),c.__reactInternalSnapshotBeforeUpdate=a}catch(je){Ye(s,s.return,je)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,s=a.nodeType,s===9)Sp(a);else if(s===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Sp(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,Ut=a;break}Ut=i.return}}function ww(a,i,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:Jr(a,s),c&4&&is(5,s);break;case 1:if(Jr(a,s),c&4)if(a=s.stateNode,i===null)try{a.componentDidMount()}catch(O){Ye(s,s.return,O)}else{var v=Ni(s.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(v,i,a.__reactInternalSnapshotBeforeUpdate)}catch(O){Ye(s,s.return,O)}}c&64&&pw(s),c&512&&ls(s,s.return);break;case 3:if(Jr(a,s),c&64&&(a=s.updateQueue,a!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{i1(a,i)}catch(O){Ye(s,s.return,O)}}break;case 27:i===null&&c&4&&bw(s);case 26:case 5:Jr(a,s),i===null&&c&4&&yw(s),c&512&&ls(s,s.return);break;case 12:Jr(a,s);break;case 31:Jr(a,s),c&4&&_w(a,s);break;case 13:Jr(a,s),c&4&&Ow(a,s),c&64&&(a=s.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(s=YP.bind(null,s),d3(a,s))));break;case 22:if(c=s.memoizedState!==null||Wr,!c){i=i!==null&&i.memoizedState!==null||Tt,v=Wr;var g=Tt;Wr=c,(Tt=i)&&!g?ea(a,s,(s.subtreeFlags&8772)!==0):Jr(a,s),Wr=v,Tt=g}break;case 30:break;default:Jr(a,s)}}function Sw(a){var i=a.alternate;i!==null&&(a.alternate=null,Sw(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Eh(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var ct=null,yn=!1;function Qr(a,i,s){for(s=s.child;s!==null;)jw(a,i,s),s=s.sibling}function jw(a,i,s){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(To,s)}catch{}switch(s.tag){case 26:Tt||_r(s,i),Qr(a,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Tt||_r(s,i);var c=ct,v=yn;Ya(s.type)&&(ct=s.stateNode,yn=!1),Qr(a,i,s),ps(s.stateNode),ct=c,yn=v;break;case 5:Tt||_r(s,i);case 6:if(c=ct,v=yn,ct=null,Qr(a,i,s),ct=c,yn=v,ct!==null)if(yn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(s.stateNode)}catch(g){Ye(s,i,g)}else try{ct.removeChild(s.stateNode)}catch(g){Ye(s,i,g)}break;case 18:ct!==null&&(yn?(a=ct,pS(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.stateNode),Yl(a)):pS(ct,s.stateNode));break;case 4:c=ct,v=yn,ct=s.stateNode.containerInfo,yn=!0,Qr(a,i,s),ct=c,yn=v;break;case 0:case 11:case 14:case 15:Ia(2,s,i),Tt||Ia(4,s,i),Qr(a,i,s);break;case 1:Tt||(_r(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"&&vw(s,i,c)),Qr(a,i,s);break;case 21:Qr(a,i,s);break;case 22:Tt=(c=Tt)||s.memoizedState!==null,Qr(a,i,s),Tt=c;break;default:Qr(a,i,s)}}function _w(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Yl(a)}catch(s){Ye(i,i.return,s)}}}function Ow(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Yl(a)}catch(s){Ye(i,i.return,s)}}function BP(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new xw),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new xw),i;default:throw Error(r(435,a.tag))}}function gc(a,i){var s=BP(a);i.forEach(function(c){if(!s.has(c)){s.add(c);var v=GP.bind(null,a,c);c.then(v,v)}})}function gn(a,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var v=s[c],g=a,O=i,N=O;e:for(;N!==null;){switch(N.tag){case 27:if(Ya(N.type)){ct=N.stateNode,yn=!1;break e}break;case 5:ct=N.stateNode,yn=!1;break e;case 3:case 4:ct=N.stateNode.containerInfo,yn=!0;break e}N=N.return}if(ct===null)throw Error(r(160));jw(g,O,v),ct=null,yn=!1,g=v.alternate,g!==null&&(g.return=null),v.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Aw(i,a),i=i.sibling}var dr=null;function Aw(a,i){var s=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:gn(i,a),bn(a),c&4&&(Ia(3,a,a.return),is(3,a),Ia(5,a,a.return));break;case 1:gn(i,a),bn(a),c&512&&(Tt||s===null||_r(s,s.return)),c&64&&Wr&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(s=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var v=dr;if(gn(i,a),bn(a),c&512&&(Tt||s===null||_r(s,s.return)),c&4){var g=s!==null?s.memoizedState:null;if(c=a.memoizedState,s===null)if(c===null)if(a.stateNode===null){e:{c=a.type,s=a.memoizedProps,v=v.ownerDocument||v;t:switch(c){case"title":g=v.getElementsByTagName("title")[0],(!g||g[Po]||g[Vt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=v.createElement(c),v.head.insertBefore(g,v.querySelector("head > title"))),Qt(g,c,s),g[Vt]=a,$t(g),c=g;break e;case"link":var O=AS("link","href",v).get(c+(s.href||""));if(O){for(var N=0;N<O.length;N++)if(g=O[N],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){O.splice(N,1);break t}}g=v.createElement(c),Qt(g,c,s),v.head.appendChild(g);break;case"meta":if(O=AS("meta","content",v).get(c+(s.content||""))){for(N=0;N<O.length;N++)if(g=O[N],g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){O.splice(N,1);break t}}g=v.createElement(c),Qt(g,c,s),v.head.appendChild(g);break;default:throw Error(r(468,c))}g[Vt]=a,$t(g),c=g}a.stateNode=c}else ES(v,a.type,a.stateNode);else a.stateNode=OS(v,c,a.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?ES(v,a.type,a.stateNode):OS(v,c,a.memoizedProps)):c===null&&a.stateNode!==null&&Vm(a,a.memoizedProps,s.memoizedProps)}break;case 27:gn(i,a),bn(a),c&512&&(Tt||s===null||_r(s,s.return)),s!==null&&c&4&&Vm(a,a.memoizedProps,s.memoizedProps);break;case 5:if(gn(i,a),bn(a),c&512&&(Tt||s===null||_r(s,s.return)),a.flags&32){v=a.stateNode;try{pl(v,"")}catch(ve){Ye(a,a.return,ve)}}c&4&&a.stateNode!=null&&(v=a.memoizedProps,Vm(a,v,s!==null?s.memoizedProps:v)),c&1024&&(Wm=!0);break;case 6:if(gn(i,a),bn(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,s=a.stateNode;try{s.nodeValue=c}catch(ve){Ye(a,a.return,ve)}}break;case 3:if(kc=null,v=dr,dr=Dc(i.containerInfo),gn(i,a),dr=v,bn(a),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Yl(i.containerInfo)}catch(ve){Ye(a,a.return,ve)}Wm&&(Wm=!1,Ew(a));break;case 4:c=dr,dr=Dc(a.stateNode.containerInfo),gn(i,a),bn(a),dr=c;break;case 12:gn(i,a),bn(a);break;case 31:gn(i,a),bn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 13:gn(i,a),bn(a),a.child.flags&8192&&a.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(xc=wt()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 22:v=a.memoizedState!==null;var z=s!==null&&s.memoizedState!==null,K=Wr,ee=Tt;if(Wr=K||v,Tt=ee||z,gn(i,a),Tt=ee,Wr=K,bn(a),c&8192)e:for(i=a.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(s===null||z||Wr||Tt||Ci(a)),s=null,i=a;;){if(i.tag===5||i.tag===26){if(s===null){z=s=i;try{if(g=z.stateNode,v)O=g.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{N=z.stateNode;var ae=z.memoizedProps.style,G=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;N.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ve){Ye(z,z.return,ve)}}}else if(i.tag===6){if(s===null){z=i;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ve){Ye(z,z.return,ve)}}}else if(i.tag===18){if(s===null){z=i;try{var Q=z.stateNode;v?vS(Q,!0):vS(z.stateNode,!1)}catch(ve){Ye(z,z.return,ve)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=a.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,gc(a,s))));break;case 19:gn(i,a),bn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 30:break;case 21:break;default:gn(i,a),bn(a)}}function bn(a){var i=a.flags;if(i&2){try{for(var s,c=a.return;c!==null;){if(gw(c)){s=c;break}c=c.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var v=s.stateNode,g=Xm(a);yc(a,g,v);break;case 5:var O=s.stateNode;s.flags&32&&(pl(O,""),s.flags&=-33);var N=Xm(a);yc(a,N,O);break;case 3:case 4:var z=s.stateNode.containerInfo,K=Xm(a);Zm(a,K,z);break;default:throw Error(r(161))}}catch(ee){Ye(a,a.return,ee)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function Ew(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;Ew(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Jr(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ww(a,i.alternate,i),i=i.sibling}function Ci(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:Ia(4,i,i.return),Ci(i);break;case 1:_r(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&vw(i,i.return,s),Ci(i);break;case 27:ps(i.stateNode);case 26:case 5:_r(i,i.return),Ci(i);break;case 22:i.memoizedState===null&&Ci(i);break;case 30:Ci(i);break;default:Ci(i)}a=a.sibling}}function ea(a,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,v=a,g=i,O=g.flags;switch(g.tag){case 0:case 11:case 15:ea(v,g,s),is(4,g);break;case 1:if(ea(v,g,s),c=g,v=c.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(K){Ye(c,c.return,K)}if(c=g,v=c.updateQueue,v!==null){var N=c.stateNode;try{var z=v.shared.hiddenCallbacks;if(z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<z.length;v++)a1(z[v],N)}catch(K){Ye(c,c.return,K)}}s&&O&64&&pw(g),ls(g,g.return);break;case 27:bw(g);case 26:case 5:ea(v,g,s),s&&c===null&&O&4&&yw(g),ls(g,g.return);break;case 12:ea(v,g,s);break;case 31:ea(v,g,s),s&&O&4&&_w(v,g);break;case 13:ea(v,g,s),s&&O&4&&Ow(v,g);break;case 22:g.memoizedState===null&&ea(v,g,s),ls(g,g.return);break;case 30:break;default:ea(v,g,s)}i=i.sibling}}function Qm(a,i){var s=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==s&&(a!=null&&a.refCount++,s!=null&&Yo(s))}function Jm(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Yo(a))}function hr(a,i,s,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Nw(a,i,s,c),i=i.sibling}function Nw(a,i,s,c){var v=i.flags;switch(i.tag){case 0:case 11:case 15:hr(a,i,s,c),v&2048&&is(9,i);break;case 1:hr(a,i,s,c);break;case 3:hr(a,i,s,c),v&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Yo(a)));break;case 12:if(v&2048){hr(a,i,s,c),a=i.stateNode;try{var g=i.memoizedProps,O=g.id,N=g.onPostCommit;typeof N=="function"&&N(O,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(z){Ye(i,i.return,z)}}else hr(a,i,s,c);break;case 31:hr(a,i,s,c);break;case 13:hr(a,i,s,c);break;case 23:break;case 22:g=i.stateNode,O=i.alternate,i.memoizedState!==null?g._visibility&2?hr(a,i,s,c):os(a,i):g._visibility&2?hr(a,i,s,c):(g._visibility|=2,Rl(a,i,s,c,(i.subtreeFlags&10256)!==0||!1)),v&2048&&Qm(O,i);break;case 24:hr(a,i,s,c),v&2048&&Jm(i.alternate,i);break;default:hr(a,i,s,c)}}function Rl(a,i,s,c,v){for(v=v&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=a,O=i,N=s,z=c,K=O.flags;switch(O.tag){case 0:case 11:case 15:Rl(g,O,N,z,v),is(8,O);break;case 23:break;case 22:var ee=O.stateNode;O.memoizedState!==null?ee._visibility&2?Rl(g,O,N,z,v):os(g,O):(ee._visibility|=2,Rl(g,O,N,z,v)),v&&K&2048&&Qm(O.alternate,O);break;case 24:Rl(g,O,N,z,v),v&&K&2048&&Jm(O.alternate,O);break;default:Rl(g,O,N,z,v)}i=i.sibling}}function os(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=a,c=i,v=c.flags;switch(c.tag){case 22:os(s,c),v&2048&&Qm(c.alternate,c);break;case 24:os(s,c),v&2048&&Jm(c.alternate,c);break;default:os(s,c)}i=i.sibling}}var ss=8192;function zl(a,i,s){if(a.subtreeFlags&ss)for(a=a.child;a!==null;)Cw(a,i,s),a=a.sibling}function Cw(a,i,s){switch(a.tag){case 26:zl(a,i,s),a.flags&ss&&a.memoizedState!==null&&_3(s,dr,a.memoizedState,a.memoizedProps);break;case 5:zl(a,i,s);break;case 3:case 4:var c=dr;dr=Dc(a.stateNode.containerInfo),zl(a,i,s),dr=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=ss,ss=16777216,zl(a,i,s),ss=c):zl(a,i,s));break;default:zl(a,i,s)}}function Tw(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function us(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var c=i[s];Ut=c,Dw(c,a)}Tw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Mw(a),a=a.sibling}function Mw(a){switch(a.tag){case 0:case 11:case 15:us(a),a.flags&2048&&Ia(9,a,a.return);break;case 3:us(a);break;case 12:us(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,bc(a)):us(a);break;default:us(a)}}function bc(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var c=i[s];Ut=c,Dw(c,a)}Tw(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:Ia(8,i,i.return),bc(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,bc(i));break;default:bc(i)}a=a.sibling}}function Dw(a,i){for(;Ut!==null;){var s=Ut;switch(s.tag){case 0:case 11:case 15:Ia(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Yo(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,Ut=c;else e:for(s=a;Ut!==null;){c=Ut;var v=c.sibling,g=c.return;if(Sw(c),c===s){Ut=null;break e}if(v!==null){v.return=g,Ut=v;break e}Ut=g}}}var IP={getCacheForType:function(a){var i=Zt(Et),s=i.data.get(a);return s===void 0&&(s=a(),i.data.set(a,s)),s},cacheSignal:function(){return Zt(Et).controller.signal}},$P=typeof WeakMap=="function"?WeakMap:Map,He=0,tt=null,De=null,ke=0,Ke=0,Ln=null,$a=!1,Ll=!1,ep=!1,ta=0,pt=0,Ua=0,Ti=0,tp=0,Bn=0,Bl=0,cs=null,xn=null,np=!1,xc=0,Pw=0,wc=1/0,Sc=null,qa=null,Rt=0,Ha=null,Il=null,na=0,rp=0,ap=null,kw=null,fs=0,ip=null;function In(){return(He&2)!==0&&ke!==0?ke&-ke:L.T!==null?fp():Zb()}function Rw(){if(Bn===0)if((ke&536870912)===0||ze){var a=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),Bn=a}else Bn=536870912;return a=Rn.current,a!==null&&(a.flags|=32),Bn}function wn(a,i,s){(a===tt&&(Ke===2||Ke===9)||a.cancelPendingCommit!==null)&&($l(a,0),Fa(a,ke,Bn,!1)),Do(a,s),((He&2)===0||a!==tt)&&(a===tt&&((He&2)===0&&(Ti|=s),pt===4&&Fa(a,ke,Bn,!1)),Or(a))}function zw(a,i,s){if((He&6)!==0)throw Error(r(327));var c=!s&&(i&127)===0&&(i&a.expiredLanes)===0||Mo(a,i),v=c?HP(a,i):op(a,i,!0),g=c;do{if(v===0){Ll&&!c&&Fa(a,i,0,!1);break}else{if(s=a.current.alternate,g&&!UP(s)){v=op(a,i,!1),g=!1;continue}if(v===2){if(g=i,a.errorRecoveryDisabledLanes&g)var O=0;else O=a.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){i=O;e:{var N=a;v=cs;var z=N.current.memoizedState.isDehydrated;if(z&&($l(N,O).flags|=256),O=op(N,O,!1),O!==2){if(ep&&!z){N.errorRecoveryDisabledLanes|=g,Ti|=g,v=4;break e}g=xn,xn=v,g!==null&&(xn===null?xn=g:xn.push.apply(xn,g))}v=O}if(g=!1,v!==2)continue}}if(v===1){$l(a,0),Fa(a,i,0,!0);break}e:{switch(c=a,g=v,g){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Fa(c,i,Bn,!$a);break e;case 2:xn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(v=xc+300-wt(),10<v)){if(Fa(c,i,Bn,!$a),Du(c,0,!0)!==0)break e;na=i,c.timeoutHandle=hS(Lw.bind(null,c,s,xn,Sc,np,i,Bn,Ti,Bl,$a,g,"Throttled",-0,0),v);break e}Lw(c,s,xn,Sc,np,i,Bn,Ti,Bl,$a,g,null,-0,0)}}break}while(!0);Or(a)}function Lw(a,i,s,c,v,g,O,N,z,K,ee,ae,G,Q){if(a.timeoutHandle=-1,ae=i.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ur},Cw(i,g,ae);var ve=(g&62914560)===g?xc-wt():(g&4194048)===g?Pw-wt():0;if(ve=O3(ae,ve),ve!==null){na=g,a.cancelPendingCommit=ve(Kw.bind(null,a,i,g,s,c,v,O,N,z,ee,ae,null,G,Q)),Fa(a,g,O,!K);return}}Kw(a,i,g,s,c,v,O,N,z)}function UP(a){for(var i=a;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var v=s[c],g=v.getSnapshot;v=v.value;try{if(!Pn(g(),v))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Fa(a,i,s,c){i&=~tp,i&=~Ti,a.suspendedLanes|=i,a.pingedLanes&=~i,c&&(a.warmLanes|=i),c=a.expirationTimes;for(var v=i;0<v;){var g=31-Dn(v),O=1<<g;c[g]=-1,v&=~O}s!==0&&Gb(a,s,i)}function jc(){return(He&6)===0?(ds(0),!1):!0}function lp(){if(De!==null){if(Ke===0)var a=De.return;else a=De,Kr=wi=null,Sm(a),Tl=null,Vo=0,a=De;for(;a!==null;)mw(a.alternate,a),a=a.return;De=null}}function $l(a,i){var s=a.timeoutHandle;s!==-1&&(a.timeoutHandle=-1,o3(s)),s=a.cancelPendingCommit,s!==null&&(a.cancelPendingCommit=null,s()),na=0,lp(),tt=a,De=s=Hr(a.current,null),ke=i,Ke=0,Ln=null,$a=!1,Ll=Mo(a,i),ep=!1,Bl=Bn=tp=Ti=Ua=pt=0,xn=cs=null,np=!1,(i&8)!==0&&(i|=i&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=i;0<c;){var v=31-Dn(c),g=1<<v;i|=a[v],c&=~g}return ta=i,Fu(),s}function Bw(a,i){Ce=null,L.H=ns,i===Cl||i===Qu?(i=e1(),Ke=3):i===cm?(i=e1(),Ke=4):Ke=i===Bm?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ln=i,De===null&&(pt=1,dc(a,Gn(i,a.current)))}function Iw(){var a=Rn.current;return a===null?!0:(ke&4194048)===ke?Wn===null:(ke&62914560)===ke||(ke&536870912)!==0?a===Wn:!1}function $w(){var a=L.H;return L.H=ns,a===null?ns:a}function Uw(){var a=L.A;return L.A=IP,a}function _c(){pt=4,$a||(ke&4194048)!==ke&&Rn.current!==null||(Ll=!0),(Ua&134217727)===0&&(Ti&134217727)===0||tt===null||Fa(tt,ke,Bn,!1)}function op(a,i,s){var c=He;He|=2;var v=$w(),g=Uw();(tt!==a||ke!==i)&&(Sc=null,$l(a,i)),i=!1;var O=pt;e:do try{if(Ke!==0&&De!==null){var N=De,z=Ln;switch(Ke){case 8:lp(),O=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var K=Ke;if(Ke=0,Ln=null,Ul(a,N,z,K),s&&Ll){O=0;break e}break;default:K=Ke,Ke=0,Ln=null,Ul(a,N,z,K)}}qP(),O=pt;break}catch(ee){Bw(a,ee)}while(!0);return i&&a.shellSuspendCounter++,Kr=wi=null,He=c,L.H=v,L.A=g,De===null&&(tt=null,ke=0,Fu()),O}function qP(){for(;De!==null;)qw(De)}function HP(a,i){var s=He;He|=2;var c=$w(),v=Uw();tt!==a||ke!==i?(Sc=null,wc=wt()+500,$l(a,i)):Ll=Mo(a,i);e:do try{if(Ke!==0&&De!==null){i=De;var g=Ln;t:switch(Ke){case 1:Ke=0,Ln=null,Ul(a,i,g,1);break;case 2:case 9:if(Qx(g)){Ke=0,Ln=null,Hw(i);break}i=function(){Ke!==2&&Ke!==9||tt!==a||(Ke=7),Or(a)},g.then(i,i);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Qx(g)?(Ke=0,Ln=null,Hw(i)):(Ke=0,Ln=null,Ul(a,i,g,7));break;case 5:var O=null;switch(De.tag){case 26:O=De.memoizedState;case 5:case 27:var N=De;if(O?NS(O):N.stateNode.complete){Ke=0,Ln=null;var z=N.sibling;if(z!==null)De=z;else{var K=N.return;K!==null?(De=K,Oc(K)):De=null}break t}}Ke=0,Ln=null,Ul(a,i,g,5);break;case 6:Ke=0,Ln=null,Ul(a,i,g,6);break;case 8:lp(),pt=6;break e;default:throw Error(r(462))}}FP();break}catch(ee){Bw(a,ee)}while(!0);return Kr=wi=null,L.H=c,L.A=v,He=s,De!==null?0:(tt=null,ke=0,Fu(),pt)}function FP(){for(;De!==null&&!At();)qw(De)}function qw(a){var i=dw(a.alternate,a,ta);a.memoizedProps=a.pendingProps,i===null?Oc(a):De=i}function Hw(a){var i=a,s=i.alternate;switch(i.tag){case 15:case 0:i=lw(s,i,i.pendingProps,i.type,void 0,ke);break;case 11:i=lw(s,i,i.pendingProps,i.type.render,i.ref,ke);break;case 5:Sm(i);default:mw(s,i),i=De=Ux(i,ta),i=dw(s,i,ta)}a.memoizedProps=a.pendingProps,i===null?Oc(a):De=i}function Ul(a,i,s,c){Kr=wi=null,Sm(i),Tl=null,Vo=0;var v=i.return;try{if(DP(a,v,i,s,ke)){pt=1,dc(a,Gn(s,a.current)),De=null;return}}catch(g){if(v!==null)throw De=v,g;pt=1,dc(a,Gn(s,a.current)),De=null;return}i.flags&32768?(ze||c===1?a=!0:Ll||(ke&536870912)!==0?a=!1:($a=a=!0,(c===2||c===9||c===3||c===6)&&(c=Rn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Fw(i,a)):Oc(i)}function Oc(a){var i=a;do{if((i.flags&32768)!==0){Fw(i,$a);return}a=i.return;var s=RP(i.alternate,i,ta);if(s!==null){De=s;return}if(i=i.sibling,i!==null){De=i;return}De=i=a}while(i!==null);pt===0&&(pt=5)}function Fw(a,i){do{var s=zP(a.alternate,a);if(s!==null){s.flags&=32767,De=s;return}if(s=a.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(a=a.sibling,a!==null)){De=a;return}De=a=s}while(a!==null);pt=6,De=null}function Kw(a,i,s,c,v,g,O,N,z){a.cancelPendingCommit=null;do Ac();while(Rt!==0);if((He&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(g=i.lanes|i.childLanes,g|=Xh,jD(a,s,g,O,N,z),a===tt&&(De=tt=null,ke=0),Il=i,Ha=a,na=s,rp=g,ap=v,kw=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,VP(Nu,function(){return Zw(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=L.T,L.T=null,v=Z.p,Z.p=2,O=He,He|=4;try{LP(a,i,s)}finally{He=O,Z.p=v,L.T=c}}Rt=1,Yw(),Gw(),Vw()}}function Yw(){if(Rt===1){Rt=0;var a=Ha,i=Il,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=L.T,L.T=null;var c=Z.p;Z.p=2;var v=He;He|=4;try{Aw(i,a);var g=bp,O=Dx(a.containerInfo),N=g.focusedElem,z=g.selectionRange;if(O!==N&&N&&N.ownerDocument&&Mx(N.ownerDocument.documentElement,N)){if(z!==null&&Fh(N)){var K=z.start,ee=z.end;if(ee===void 0&&(ee=K),"selectionStart"in N)N.selectionStart=K,N.selectionEnd=Math.min(ee,N.value.length);else{var ae=N.ownerDocument||document,G=ae&&ae.defaultView||window;if(G.getSelection){var Q=G.getSelection(),ve=N.textContent.length,je=Math.min(z.start,ve),We=z.end===void 0?je:Math.min(z.end,ve);!Q.extend&&je>We&&(O=We,We=je,je=O);var $=Tx(N,je),B=Tx(N,We);if($&&B&&(Q.rangeCount!==1||Q.anchorNode!==$.node||Q.anchorOffset!==$.offset||Q.focusNode!==B.node||Q.focusOffset!==B.offset)){var F=ae.createRange();F.setStart($.node,$.offset),Q.removeAllRanges(),je>We?(Q.addRange(F),Q.extend(B.node,B.offset)):(F.setEnd(B.node,B.offset),Q.addRange(F))}}}}for(ae=[],Q=N;Q=Q.parentNode;)Q.nodeType===1&&ae.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<ae.length;N++){var re=ae[N];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Bc=!!gp,bp=gp=null}finally{He=v,Z.p=c,L.T=s}}a.current=i,Rt=2}}function Gw(){if(Rt===2){Rt=0;var a=Ha,i=Il,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=L.T,L.T=null;var c=Z.p;Z.p=2;var v=He;He|=4;try{ww(a,i.alternate,i)}finally{He=v,Z.p=c,L.T=s}}Rt=3}}function Vw(){if(Rt===4||Rt===3){Rt=0,Tn();var a=Ha,i=Il,s=na,c=kw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Rt=5:(Rt=0,Il=Ha=null,Xw(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&(qa=null),Oh(s),i=i.stateNode,Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(To,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=L.T,v=Z.p,Z.p=2,L.T=null;try{for(var g=a.onRecoverableError,O=0;O<c.length;O++){var N=c[O];g(N.value,{componentStack:N.stack})}}finally{L.T=i,Z.p=v}}(na&3)!==0&&Ac(),Or(a),v=a.pendingLanes,(s&261930)!==0&&(v&42)!==0?a===ip?fs++:(fs=0,ip=a):fs=0,ds(0)}}function Xw(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Yo(i)))}function Ac(){return Yw(),Gw(),Vw(),Zw()}function Zw(){if(Rt!==5)return!1;var a=Ha,i=rp;rp=0;var s=Oh(na),c=L.T,v=Z.p;try{Z.p=32>s?32:s,L.T=null,s=ap,ap=null;var g=Ha,O=na;if(Rt=0,Il=Ha=null,na=0,(He&6)!==0)throw Error(r(331));var N=He;if(He|=4,Mw(g.current),Nw(g,g.current,O,s),He=N,ds(0,!1),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(To,g)}catch{}return!0}finally{Z.p=v,L.T=c,Xw(a,i)}}function Ww(a,i,s){i=Gn(s,i),i=Lm(a.stateNode,i,2),a=za(a,i,2),a!==null&&(Do(a,2),Or(a))}function Ye(a,i,s){if(a.tag===3)Ww(a,a,s);else for(;i!==null;){if(i.tag===3){Ww(i,a,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(qa===null||!qa.has(c))){a=Gn(s,a),s=Q1(2),c=za(i,s,2),c!==null&&(J1(s,c,i,a),Do(c,2),Or(c));break}}i=i.return}}function sp(a,i,s){var c=a.pingCache;if(c===null){c=a.pingCache=new $P;var v=new Set;c.set(i,v)}else v=c.get(i),v===void 0&&(v=new Set,c.set(i,v));v.has(s)||(ep=!0,v.add(s),a=KP.bind(null,a,i,s),i.then(a,a))}function KP(a,i,s){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&s,a.warmLanes&=~s,tt===a&&(ke&s)===s&&(pt===4||pt===3&&(ke&62914560)===ke&&300>wt()-xc?(He&2)===0&&$l(a,0):tp|=s,Bl===ke&&(Bl=0)),Or(a)}function Qw(a,i){i===0&&(i=Yb()),a=gi(a,i),a!==null&&(Do(a,i),Or(a))}function YP(a){var i=a.memoizedState,s=0;i!==null&&(s=i.retryLane),Qw(a,s)}function GP(a,i){var s=0;switch(a.tag){case 31:case 13:var c=a.stateNode,v=a.memoizedState;v!==null&&(s=v.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),Qw(a,s)}function VP(a,i){return Le(a,i)}var Ec=null,ql=null,up=!1,Nc=!1,cp=!1,Ka=0;function Or(a){a!==ql&&a.next===null&&(ql===null?Ec=ql=a:ql=ql.next=a),Nc=!0,up||(up=!0,ZP())}function ds(a,i){if(!cp&&Nc){cp=!0;do for(var s=!1,c=Ec;c!==null;){if(a!==0){var v=c.pendingLanes;if(v===0)var g=0;else{var O=c.suspendedLanes,N=c.pingedLanes;g=(1<<31-Dn(42|a)+1)-1,g&=v&~(O&~N),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,nS(c,g))}else g=ke,g=Du(c,c===tt?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||Mo(c,g)||(s=!0,nS(c,g));c=c.next}while(s);cp=!1}}function XP(){Jw()}function Jw(){Nc=up=!1;var a=0;Ka!==0&&l3()&&(a=Ka);for(var i=wt(),s=null,c=Ec;c!==null;){var v=c.next,g=eS(c,i);g===0?(c.next=null,s===null?Ec=v:s.next=v,v===null&&(ql=s)):(s=c,(a!==0||(g&3)!==0)&&(Nc=!0)),c=v}Rt!==0&&Rt!==5||ds(a),Ka!==0&&(Ka=0)}function eS(a,i){for(var s=a.suspendedLanes,c=a.pingedLanes,v=a.expirationTimes,g=a.pendingLanes&-62914561;0<g;){var O=31-Dn(g),N=1<<O,z=v[O];z===-1?((N&s)===0||(N&c)!==0)&&(v[O]=SD(N,i)):z<=i&&(a.expiredLanes|=N),g&=~N}if(i=tt,s=ke,s=Du(a,a===i?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,s===0||a===i&&(Ke===2||Ke===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&Ve(c),a.callbackNode=null,a.callbackPriority=0;if((s&3)===0||Mo(a,s)){if(i=s&-s,i===a.callbackPriority)return i;switch(c!==null&&Ve(c),Oh(s)){case 2:case 8:s=Co;break;case 32:s=Nu;break;case 268435456:s=Kb;break;default:s=Nu}return c=tS.bind(null,a),s=Le(s,c),a.callbackPriority=i,a.callbackNode=s,i}return c!==null&&c!==null&&Ve(c),a.callbackPriority=2,a.callbackNode=null,2}function tS(a,i){if(Rt!==0&&Rt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var s=a.callbackNode;if(Ac()&&a.callbackNode!==s)return null;var c=ke;return c=Du(a,a===tt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(zw(a,c,i),eS(a,wt()),a.callbackNode!=null&&a.callbackNode===s?tS.bind(null,a):null)}function nS(a,i){if(Ac())return null;zw(a,i,!0)}function ZP(){s3(function(){(He&6)!==0?Le(di,XP):Jw()})}function fp(){if(Ka===0){var a=El;a===0&&(a=Cu,Cu<<=1,(Cu&261888)===0&&(Cu=256)),Ka=a}return Ka}function rS(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:zu(""+a)}function aS(a,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,a.id&&s.setAttribute("form",a.id),i.parentNode.insertBefore(s,i),a=new FormData(a),s.parentNode.removeChild(s),a}function WP(a,i,s,c,v){if(i==="submit"&&s&&s.stateNode===v){var g=rS((v[pn]||null).action),O=c.submitter;O&&(i=(i=O[pn]||null)?rS(i.formAction):O.getAttribute("formAction"),i!==null&&(g=i,O=null));var N=new $u("action","action",null,c,v);a.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ka!==0){var z=O?aS(v,O):new FormData(v);Mm(s,{pending:!0,data:z,method:v.method,action:g},null,z)}}else typeof g=="function"&&(N.preventDefault(),z=O?aS(v,O):new FormData(v),Mm(s,{pending:!0,data:z,method:v.method,action:g},g,z))},currentTarget:v}]})}}for(var dp=0;dp<Vh.length;dp++){var hp=Vh[dp],QP=hp.toLowerCase(),JP=hp[0].toUpperCase()+hp.slice(1);fr(QP,"on"+JP)}fr(Rx,"onAnimationEnd"),fr(zx,"onAnimationIteration"),fr(Lx,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(pP,"onTransitionRun"),fr(vP,"onTransitionStart"),fr(yP,"onTransitionCancel"),fr(Bx,"onTransitionEnd"),hl("onMouseEnter",["mouseout","mouseover"]),hl("onMouseLeave",["mouseout","mouseover"]),hl("onPointerEnter",["pointerout","pointerover"]),hl("onPointerLeave",["pointerout","pointerover"]),mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hs="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(" "),e3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hs));function iS(a,i){i=(i&4)!==0;for(var s=0;s<a.length;s++){var c=a[s],v=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var O=c.length-1;0<=O;O--){var N=c[O],z=N.instance,K=N.currentTarget;if(N=N.listener,z!==g&&v.isPropagationStopped())break e;g=N,v.currentTarget=K;try{g(v)}catch(ee){Hu(ee)}v.currentTarget=null,g=z}else for(O=0;O<c.length;O++){if(N=c[O],z=N.instance,K=N.currentTarget,N=N.listener,z!==g&&v.isPropagationStopped())break e;g=N,v.currentTarget=K;try{g(v)}catch(ee){Hu(ee)}v.currentTarget=null,g=z}}}}function Pe(a,i){var s=i[Ah];s===void 0&&(s=i[Ah]=new Set);var c=a+"__bubble";s.has(c)||(lS(i,a,2,!1),s.add(c))}function mp(a,i,s){var c=0;i&&(c|=4),lS(s,a,c,i)}var Cc="_reactListening"+Math.random().toString(36).slice(2);function pp(a){if(!a[Cc]){a[Cc]=!0,Jb.forEach(function(s){s!=="selectionchange"&&(e3.has(s)||mp(s,!1,a),mp(s,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Cc]||(i[Cc]=!0,mp("selectionchange",!1,i))}}function lS(a,i,s,c){switch(RS(i)){case 2:var v=N3;break;case 8:v=C3;break;default:v=Tp}s=v.bind(null,i,s,a),v=void 0,!Rh||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(v=!0),c?v!==void 0?a.addEventListener(i,s,{capture:!0,passive:v}):a.addEventListener(i,s,!0):v!==void 0?a.addEventListener(i,s,{passive:v}):a.addEventListener(i,s,!1)}function vp(a,i,s,c,v){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var O=c.tag;if(O===3||O===4){var N=c.stateNode.containerInfo;if(N===v)break;if(O===4)for(O=c.return;O!==null;){var z=O.tag;if((z===3||z===4)&&O.stateNode.containerInfo===v)return;O=O.return}for(;N!==null;){if(O=cl(N),O===null)return;if(z=O.tag,z===5||z===6||z===26||z===27){c=g=O;continue e}N=N.parentNode}}c=c.return}fx(function(){var K=g,ee=Ph(s),ae=[];e:{var G=Ix.get(a);if(G!==void 0){var Q=$u,ve=a;switch(a){case"keypress":if(Bu(s)===0)break e;case"keydown":case"keyup":Q=GD;break;case"focusin":ve="focus",Q=Ih;break;case"focusout":ve="blur",Q=Ih;break;case"beforeblur":case"afterblur":Q=Ih;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=mx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=RD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=ZD;break;case Rx:case zx:case Lx:Q=BD;break;case Bx:Q=QD;break;case"scroll":case"scrollend":Q=PD;break;case"wheel":Q=eP;break;case"copy":case"cut":case"paste":Q=$D;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=vx;break;case"toggle":case"beforetoggle":Q=nP}var je=(i&4)!==0,We=!je&&(a==="scroll"||a==="scrollend"),$=je?G!==null?G+"Capture":null:G;je=[];for(var B=K,F;B!==null;){var re=B;if(F=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||F===null||$===null||(re=Ro(B,$),re!=null&&je.push(ms(B,re,F))),We)break;B=B.return}0<je.length&&(G=new Q(G,ve,null,s,ee),ae.push({event:G,listeners:je}))}}if((i&7)===0){e:{if(G=a==="mouseover"||a==="pointerover",Q=a==="mouseout"||a==="pointerout",G&&s!==Dh&&(ve=s.relatedTarget||s.fromElement)&&(cl(ve)||ve[ul]))break e;if((Q||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,Q?(ve=s.relatedTarget||s.toElement,Q=K,ve=ve?cl(ve):null,ve!==null&&(We=o(ve),je=ve.tag,ve!==We||je!==5&&je!==27&&je!==6)&&(ve=null)):(Q=null,ve=K),Q!==ve)){if(je=mx,re="onMouseLeave",$="onMouseEnter",B="mouse",(a==="pointerout"||a==="pointerover")&&(je=vx,re="onPointerLeave",$="onPointerEnter",B="pointer"),We=Q==null?G:ko(Q),F=ve==null?G:ko(ve),G=new je(re,B+"leave",Q,s,ee),G.target=We,G.relatedTarget=F,re=null,cl(ee)===K&&(je=new je($,B+"enter",ve,s,ee),je.target=F,je.relatedTarget=We,re=je),We=re,Q&&ve)t:{for(je=t3,$=Q,B=ve,F=0,re=$;re;re=je(re))F++;re=0;for(var we=B;we;we=je(we))re++;for(;0<F-re;)$=je($),F--;for(;0<re-F;)B=je(B),re--;for(;F--;){if($===B||B!==null&&$===B.alternate){je=$;break t}$=je($),B=je(B)}je=null}else je=null;Q!==null&&oS(ae,G,Q,je,!1),ve!==null&&We!==null&&oS(ae,We,ve,je,!0)}}e:{if(G=K?ko(K):window,Q=G.nodeName&&G.nodeName.toLowerCase(),Q==="select"||Q==="input"&&G.type==="file")var Ie=_x;else if(Sx(G))if(Ox)Ie=dP;else{Ie=cP;var ge=uP}else Q=G.nodeName,!Q||Q.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?K&&Mh(K.elementType)&&(Ie=_x):Ie=fP;if(Ie&&(Ie=Ie(a,K))){jx(ae,Ie,s,ee);break e}ge&&ge(a,G,K),a==="focusout"&&K&&G.type==="number"&&K.memoizedProps.value!=null&&Th(G,"number",G.value)}switch(ge=K?ko(K):window,a){case"focusin":(Sx(ge)||ge.contentEditable==="true")&&(bl=ge,Kh=K,Ho=null);break;case"focusout":Ho=Kh=bl=null;break;case"mousedown":Yh=!0;break;case"contextmenu":case"mouseup":case"dragend":Yh=!1,Px(ae,s,ee);break;case"selectionchange":if(mP)break;case"keydown":case"keyup":Px(ae,s,ee)}var Te;if(Uh)e:{switch(a){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else gl?xx(a,s)&&(Re="onCompositionEnd"):a==="keydown"&&s.keyCode===229&&(Re="onCompositionStart");Re&&(yx&&s.locale!=="ko"&&(gl||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&gl&&(Te=dx()):(Ca=ee,zh="value"in Ca?Ca.value:Ca.textContent,gl=!0)),ge=Tc(K,Re),0<ge.length&&(Re=new px(Re,a,null,s,ee),ae.push({event:Re,listeners:ge}),Te?Re.data=Te:(Te=wx(s),Te!==null&&(Re.data=Te)))),(Te=aP?iP(a,s):lP(a,s))&&(Re=Tc(K,"onBeforeInput"),0<Re.length&&(ge=new px("onBeforeInput","beforeinput",null,s,ee),ae.push({event:ge,listeners:Re}),ge.data=Te)),WP(ae,a,K,s,ee)}iS(ae,i)})}function ms(a,i,s){return{instance:a,listener:i,currentTarget:s}}function Tc(a,i){for(var s=i+"Capture",c=[];a!==null;){var v=a,g=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||g===null||(v=Ro(a,s),v!=null&&c.unshift(ms(a,v,g)),v=Ro(a,i),v!=null&&c.push(ms(a,v,g))),a.tag===3)return c;a=a.return}return[]}function t3(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function oS(a,i,s,c,v){for(var g=i._reactName,O=[];s!==null&&s!==c;){var N=s,z=N.alternate,K=N.stateNode;if(N=N.tag,z!==null&&z===c)break;N!==5&&N!==26&&N!==27||K===null||(z=K,v?(K=Ro(s,g),K!=null&&O.unshift(ms(s,K,z))):v||(K=Ro(s,g),K!=null&&O.push(ms(s,K,z)))),s=s.return}O.length!==0&&a.push({event:i,listeners:O})}var n3=/\r\n?/g,r3=/\u0000|\uFFFD/g;function sS(a){return(typeof a=="string"?a:""+a).replace(n3,`
`).replace(r3,"")}function uS(a,i){return i=sS(i),sS(a)===i}function Ze(a,i,s,c,v,g){switch(s){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||pl(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&pl(a,""+c);break;case"className":ku(a,"class",c);break;case"tabIndex":ku(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ku(a,s,c);break;case"style":ux(a,c,g);break;case"data":if(i!=="object"){ku(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||s!=="href")){a.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(s);break}c=zu(""+c),a.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(s,"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 g=="function"&&(s==="formAction"?(i!=="input"&&Ze(a,i,"name",v.name,v,null),Ze(a,i,"formEncType",v.formEncType,v,null),Ze(a,i,"formMethod",v.formMethod,v,null),Ze(a,i,"formTarget",v.formTarget,v,null)):(Ze(a,i,"encType",v.encType,v,null),Ze(a,i,"method",v.method,v,null),Ze(a,i,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(s);break}c=zu(""+c),a.setAttribute(s,c);break;case"onClick":c!=null&&(a.onclick=Ur);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(s=c.__html,s!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=s}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}s=zu(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,""+c):a.removeAttribute(s);break;case"inert":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":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,""):a.removeAttribute(s);break;case"capture":case"download":c===!0?a.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,c):a.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(s,c):a.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(s):a.setAttribute(s,c);break;case"popover":Pe("beforetoggle",a),Pe("toggle",a),Pu(a,"popover",c);break;case"xlinkActuate":$r(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":$r(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":$r(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":$r(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":$r(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":$r(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":$r(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":$r(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":$r(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Pu(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=MD.get(s)||s,Pu(a,s,c))}}function yp(a,i,s,c,v,g){switch(s){case"style":ux(a,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(s=c.__html,s!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=s}}break;case"children":typeof c=="string"?pl(a,c):(typeof c=="number"||typeof c=="bigint")&&pl(a,""+c);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"onClick":c!=null&&(a.onclick=Ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ex.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),i=s.slice(2,v?s.length-7:void 0),g=a[pn]||null,g=g!=null?g[s]:null,typeof g=="function"&&a.removeEventListener(i,g,v),typeof c=="function")){typeof g!="function"&&g!==null&&(s in a?a[s]=null:a.hasAttribute(s)&&a.removeAttribute(s)),a.addEventListener(i,c,v);break e}s in a?a[s]=c:c===!0?a.setAttribute(s,""):Pu(a,s,c)}}}function Qt(a,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",a),Pe("load",a);var c=!1,v=!1,g;for(g in s)if(s.hasOwnProperty(g)){var O=s[g];if(O!=null)switch(g){case"src":c=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(a,i,g,O,s,null)}}v&&Ze(a,i,"srcSet",s.srcSet,s,null),c&&Ze(a,i,"src",s.src,s,null);return;case"input":Pe("invalid",a);var N=g=O=v=null,z=null,K=null;for(c in s)if(s.hasOwnProperty(c)){var ee=s[c];if(ee!=null)switch(c){case"name":v=ee;break;case"type":O=ee;break;case"checked":z=ee;break;case"defaultChecked":K=ee;break;case"value":g=ee;break;case"defaultValue":N=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,i));break;default:Ze(a,i,c,ee,s,null)}}ix(a,g,N,z,K,O,v,!1);return;case"select":Pe("invalid",a),c=O=g=null;for(v in s)if(s.hasOwnProperty(v)&&(N=s[v],N!=null))switch(v){case"value":g=N;break;case"defaultValue":O=N;break;case"multiple":c=N;default:Ze(a,i,v,N,s,null)}i=g,s=O,a.multiple=!!c,i!=null?ml(a,!!c,i,!1):s!=null&&ml(a,!!c,s,!0);return;case"textarea":Pe("invalid",a),g=v=c=null;for(O in s)if(s.hasOwnProperty(O)&&(N=s[O],N!=null))switch(O){case"value":c=N;break;case"defaultValue":v=N;break;case"children":g=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:Ze(a,i,O,N,s,null)}ox(a,c,v,g);return;case"option":for(z in s)if(s.hasOwnProperty(z)&&(c=s[z],c!=null))switch(z){case"selected":a.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ze(a,i,z,c,s,null)}return;case"dialog":Pe("beforetoggle",a),Pe("toggle",a),Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":Pe("load",a);break;case"video":case"audio":for(c=0;c<hs.length;c++)Pe(hs[c],a);break;case"image":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"embed":case"source":case"link":Pe("error",a),Pe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in s)if(s.hasOwnProperty(K)&&(c=s[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(a,i,K,c,s,null)}return;default:if(Mh(i)){for(ee in s)s.hasOwnProperty(ee)&&(c=s[ee],c!==void 0&&yp(a,i,ee,c,s,void 0));return}}for(N in s)s.hasOwnProperty(N)&&(c=s[N],c!=null&&Ze(a,i,N,c,s,null))}function a3(a,i,s,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,g=null,O=null,N=null,z=null,K=null,ee=null;for(Q in s){var ae=s[Q];if(s.hasOwnProperty(Q)&&ae!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":z=ae;default:c.hasOwnProperty(Q)||Ze(a,i,Q,null,c,ae)}}for(var G in c){var Q=c[G];if(ae=s[G],c.hasOwnProperty(G)&&(Q!=null||ae!=null))switch(G){case"type":g=Q;break;case"name":v=Q;break;case"checked":K=Q;break;case"defaultChecked":ee=Q;break;case"value":O=Q;break;case"defaultValue":N=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,i));break;default:Q!==ae&&Ze(a,i,G,Q,c,ae)}}Ch(a,O,N,z,K,ee,g,v);return;case"select":Q=O=N=G=null;for(g in s)if(z=s[g],s.hasOwnProperty(g)&&z!=null)switch(g){case"value":break;case"multiple":Q=z;default:c.hasOwnProperty(g)||Ze(a,i,g,null,c,z)}for(v in c)if(g=c[v],z=s[v],c.hasOwnProperty(v)&&(g!=null||z!=null))switch(v){case"value":G=g;break;case"defaultValue":N=g;break;case"multiple":O=g;default:g!==z&&Ze(a,i,v,g,c,z)}i=N,s=O,c=Q,G!=null?ml(a,!!s,G,!1):!!c!=!!s&&(i!=null?ml(a,!!s,i,!0):ml(a,!!s,s?[]:"",!1));return;case"textarea":Q=G=null;for(N in s)if(v=s[N],s.hasOwnProperty(N)&&v!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ze(a,i,N,null,c,v)}for(O in c)if(v=c[O],g=s[O],c.hasOwnProperty(O)&&(v!=null||g!=null))switch(O){case"value":G=v;break;case"defaultValue":Q=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==g&&Ze(a,i,O,v,c,g)}lx(a,G,Q);return;case"option":for(var ve in s)if(G=s[ve],s.hasOwnProperty(ve)&&G!=null&&!c.hasOwnProperty(ve))switch(ve){case"selected":a.selected=!1;break;default:Ze(a,i,ve,null,c,G)}for(z in c)if(G=c[z],Q=s[z],c.hasOwnProperty(z)&&G!==Q&&(G!=null||Q!=null))switch(z){case"selected":a.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:Ze(a,i,z,G,c,Q)}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 je in s)G=s[je],s.hasOwnProperty(je)&&G!=null&&!c.hasOwnProperty(je)&&Ze(a,i,je,null,c,G);for(K in c)if(G=c[K],Q=s[K],c.hasOwnProperty(K)&&G!==Q&&(G!=null||Q!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,i));break;default:Ze(a,i,K,G,c,Q)}return;default:if(Mh(i)){for(var We in s)G=s[We],s.hasOwnProperty(We)&&G!==void 0&&!c.hasOwnProperty(We)&&yp(a,i,We,void 0,c,G);for(ee in c)G=c[ee],Q=s[ee],!c.hasOwnProperty(ee)||G===Q||G===void 0&&Q===void 0||yp(a,i,ee,G,c,Q);return}}for(var $ in s)G=s[$],s.hasOwnProperty($)&&G!=null&&!c.hasOwnProperty($)&&Ze(a,i,$,null,c,G);for(ae in c)G=c[ae],Q=s[ae],!c.hasOwnProperty(ae)||G===Q||G==null&&Q==null||Ze(a,i,ae,G,c,Q)}function cS(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function i3(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var v=s[c],g=v.transferSize,O=v.initiatorType,N=v.duration;if(g&&N&&cS(O)){for(O=0,N=v.responseEnd,c+=1;c<s.length;c++){var z=s[c],K=z.startTime;if(K>N)break;var ee=z.transferSize,ae=z.initiatorType;ee&&cS(ae)&&(z=z.responseEnd,O+=ee*(z<N?1:(N-K)/(z-K)))}if(--c,i+=8*(g+O)/(v.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var gp=null,bp=null;function Mc(a){return a.nodeType===9?a:a.ownerDocument}function fS(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dS(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function xp(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var wp=null;function l3(){var a=window.event;return a&&a.type==="popstate"?a===wp?!1:(wp=a,!0):(wp=null,!1)}var hS=typeof setTimeout=="function"?setTimeout:void 0,o3=typeof clearTimeout=="function"?clearTimeout:void 0,mS=typeof Promise=="function"?Promise:void 0,s3=typeof queueMicrotask=="function"?queueMicrotask:typeof mS<"u"?function(a){return mS.resolve(null).then(a).catch(u3)}:hS;function u3(a){setTimeout(function(){throw a})}function Ya(a){return a==="head"}function pS(a,i){var s=i,c=0;do{var v=s.nextSibling;if(a.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"||s==="/&"){if(c===0){a.removeChild(v),Yl(i);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")ps(a.ownerDocument.documentElement);else if(s==="head"){s=a.ownerDocument.head,ps(s);for(var g=s.firstChild;g;){var O=g.nextSibling,N=g.nodeName;g[Po]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&g.rel.toLowerCase()==="stylesheet"||s.removeChild(g),g=O}}else s==="body"&&ps(a.ownerDocument.body);s=v}while(s);Yl(i)}function vS(a,i){var s=a;a=0;do{var c=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(a===0)break;a--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||a++;s=c}while(s)}function Sp(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Sp(s),Eh(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}a.removeChild(s)}}function c3(a,i,s,c){for(;a.nodeType===1;){var v=s;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[Po])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(g=a.getAttribute("rel"),g==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(g!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(g=a.getAttribute("src"),(g!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&g&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var g=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===g)return a}else return a;if(a=Qn(a.nextSibling),a===null)break}return null}function f3(a,i,s){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=Qn(a.nextSibling),a===null))return null;return a}function yS(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Qn(a.nextSibling),a===null))return null;return a}function jp(a){return a.data==="$?"||a.data==="$~"}function _p(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function d3(a,i){var s=a.ownerDocument;if(a.data==="$~")a._reactRetry=i;else if(a.data!=="$?"||s.readyState!=="loading")i();else{var c=function(){i(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function Qn(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return a}var Op=null;function gS(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var s=a.data;if(s==="/$"||s==="/&"){if(i===0)return Qn(a.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}a=a.nextSibling}return null}function bS(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var s=a.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return a;i--}else s!=="/$"&&s!=="/&"||i++}a=a.previousSibling}return null}function xS(a,i,s){switch(i=Mc(s),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function ps(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Eh(a)}var Jn=new Map,wS=new Set;function Dc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ra=Z.d;Z.d={f:h3,r:m3,D:p3,C:v3,L:y3,m:g3,X:x3,S:b3,M:w3};function h3(){var a=ra.f(),i=jc();return a||i}function m3(a){var i=fl(a);i!==null&&i.tag===5&&i.type==="form"?B1(i):ra.r(a)}var Hl=typeof document>"u"?null:document;function SS(a,i,s){var c=Hl;if(c&&typeof i=="string"&&i){var v=Kn(i);v='link[rel="'+a+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),wS.has(v)||(wS.add(v),a={rel:a,crossOrigin:s,href:i},c.querySelector(v)===null&&(i=c.createElement("link"),Qt(i,"link",a),$t(i),c.head.appendChild(i)))}}function p3(a){ra.D(a),SS("dns-prefetch",a,null)}function v3(a,i){ra.C(a,i),SS("preconnect",a,i)}function y3(a,i,s){ra.L(a,i,s);var c=Hl;if(c&&a&&i){var v='link[rel="preload"][as="'+Kn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+Kn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+Kn(s.imageSizes)+'"]')):v+='[href="'+Kn(a)+'"]';var g=v;switch(i){case"style":g=Fl(a);break;case"script":g=Kl(a)}Jn.has(g)||(a=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:a,as:i},s),Jn.set(g,a),c.querySelector(v)!==null||i==="style"&&c.querySelector(vs(g))||i==="script"&&c.querySelector(ys(g))||(i=c.createElement("link"),Qt(i,"link",a),$t(i),c.head.appendChild(i)))}}function g3(a,i){ra.m(a,i);var s=Hl;if(s&&a){var c=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+Kn(c)+'"][href="'+Kn(a)+'"]',g=v;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Kl(a)}if(!Jn.has(g)&&(a=y({rel:"modulepreload",href:a},i),Jn.set(g,a),s.querySelector(v)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(ys(g)))return}c=s.createElement("link"),Qt(c,"link",a),$t(c),s.head.appendChild(c)}}}function b3(a,i,s){ra.S(a,i,s);var c=Hl;if(c&&a){var v=dl(c).hoistableStyles,g=Fl(a);i=i||"default";var O=v.get(g);if(!O){var N={loading:0,preload:null};if(O=c.querySelector(vs(g)))N.loading=5;else{a=y({rel:"stylesheet",href:a,"data-precedence":i},s),(s=Jn.get(g))&&Ap(a,s);var z=O=c.createElement("link");$t(z),Qt(z,"link",a),z._p=new Promise(function(K,ee){z.onload=K,z.onerror=ee}),z.addEventListener("load",function(){N.loading|=1}),z.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Pc(O,i,c)}O={type:"stylesheet",instance:O,count:1,state:N},v.set(g,O)}}}function x3(a,i){ra.X(a,i);var s=Hl;if(s&&a){var c=dl(s).hoistableScripts,v=Kl(a),g=c.get(v);g||(g=s.querySelector(ys(v)),g||(a=y({src:a,async:!0},i),(i=Jn.get(v))&&Ep(a,i),g=s.createElement("script"),$t(g),Qt(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function w3(a,i){ra.M(a,i);var s=Hl;if(s&&a){var c=dl(s).hoistableScripts,v=Kl(a),g=c.get(v);g||(g=s.querySelector(ys(v)),g||(a=y({src:a,async:!0,type:"module"},i),(i=Jn.get(v))&&Ep(a,i),g=s.createElement("script"),$t(g),Qt(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function jS(a,i,s,c){var v=(v=xe.current)?Dc(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Fl(s.href),s=dl(v).hoistableStyles,c=s.get(i),c||(c={type:"style",instance:null,count:0,state:null},s.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){a=Fl(s.href);var g=dl(v).hoistableStyles,O=g.get(a);if(O||(v=v.ownerDocument||v,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(a,O),(g=v.querySelector(vs(a)))&&!g._p&&(O.instance=g,O.state.loading=5),Jn.has(a)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Jn.set(a,s),g||S3(v,a,s,O.state))),i&&c===null)throw Error(r(528,""));return O}if(i&&c!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Kl(s),s=dl(v).hoistableScripts,c=s.get(i),c||(c={type:"script",instance:null,count:0,state:null},s.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Fl(a){return'href="'+Kn(a)+'"'}function vs(a){return'link[rel="stylesheet"]['+a+"]"}function _S(a){return y({},a,{"data-precedence":a.precedence,precedence:null})}function S3(a,i,s,c){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=a.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),Qt(i,"link",s),$t(i),a.head.appendChild(i))}function Kl(a){return'[src="'+Kn(a)+'"]'}function ys(a){return"script[async]"+a}function OS(a,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+Kn(s.href)+'"]');if(c)return i.instance=c,$t(c),c;var v=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),$t(c),Qt(c,"style",v),Pc(c,s.precedence,a),i.instance=c;case"stylesheet":v=Fl(s.href);var g=a.querySelector(vs(v));if(g)return i.state.loading|=4,i.instance=g,$t(g),g;c=_S(s),(v=Jn.get(v))&&Ap(c,v),g=(a.ownerDocument||a).createElement("link"),$t(g);var O=g;return O._p=new Promise(function(N,z){O.onload=N,O.onerror=z}),Qt(g,"link",c),i.state.loading|=4,Pc(g,s.precedence,a),i.instance=g;case"script":return g=Kl(s.src),(v=a.querySelector(ys(g)))?(i.instance=v,$t(v),v):(c=s,(v=Jn.get(g))&&(c=y({},s),Ep(c,v)),a=a.ownerDocument||a,v=a.createElement("script"),$t(v),Qt(v,"link",c),a.head.appendChild(v),i.instance=v);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Pc(c,s.precedence,a));return i.instance}function Pc(a,i,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=c.length?c[c.length-1]:null,g=v,O=0;O<c.length;O++){var N=c[O];if(N.dataset.precedence===i)g=N;else if(g!==v)break}g?g.parentNode.insertBefore(a,g.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(a,i.firstChild))}function Ap(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Ep(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var kc=null;function AS(a,i,s){if(kc===null){var c=new Map,v=kc=new Map;v.set(s,c)}else v=kc,c=v.get(s),c||(c=new Map,v.set(s,c));if(c.has(a))return c;for(c.set(a,null),s=s.getElementsByTagName(a),v=0;v<s.length;v++){var g=s[v];if(!(g[Po]||g[Vt]||a==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var O=g.getAttribute(i)||"";O=a+O;var N=c.get(O);N?N.push(g):c.set(O,[g])}}return c}function ES(a,i,s){a=a.ownerDocument||a,a.head.insertBefore(s,i==="title"?a.querySelector("head > title"):null)}function j3(a,i,s){if(s===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function NS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function _3(a,i,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var v=Fl(c.href),g=i.querySelector(vs(v));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Rc.bind(a),i.then(a,a)),s.state.loading|=4,s.instance=g,$t(g);return}g=i.ownerDocument||i,c=_S(c),(v=Jn.get(v))&&Ap(c,v),g=g.createElement("link"),$t(g);var O=g;O._p=new Promise(function(N,z){O.onload=N,O.onerror=z}),Qt(g,"link",c),s.instance=g}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(a.count++,s=Rc.bind(a),i.addEventListener("load",s),i.addEventListener("error",s))}}var Np=0;function O3(a,i){return a.stylesheets&&a.count===0&&Lc(a,a.stylesheets),0<a.count||0<a.imgCount?function(s){var c=setTimeout(function(){if(a.stylesheets&&Lc(a,a.stylesheets),a.unsuspend){var g=a.unsuspend;a.unsuspend=null,g()}},6e4+i);0<a.imgBytes&&Np===0&&(Np=62500*i3());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Lc(a,a.stylesheets),a.unsuspend)){var g=a.unsuspend;a.unsuspend=null,g()}},(a.imgBytes>Np?50:800)+i);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(v)}}:null}function Rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var zc=null;function Lc(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,zc=new Map,i.forEach(A3,a),zc=null,Rc.call(a))}function A3(a,i){if(!(i.state.loading&4)){var s=zc.get(a);if(s)var c=s.get(null);else{s=new Map,zc.set(a,s);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<v.length;g++){var O=v[g];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(s.set(O.dataset.precedence,O),c=O)}c&&s.set(null,c)}v=i.instance,O=v.getAttribute("data-precedence"),g=s.get(O)||c,g===c&&s.set(null,v),s.set(O,v),this.count++,c=Rc.bind(this),v.addEventListener("load",c),v.addEventListener("error",c),g?g.parentNode.insertBefore(v,g.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),i.state.loading|=4}}var gs={$$typeof:T,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function E3(a,i,s,c,v,g,O,N,z){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jh(0),this.hiddenUpdates=jh(null),this.identifierPrefix=c,this.onUncaughtError=v,this.onCaughtError=g,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function CS(a,i,s,c,v,g,O,N,z,K,ee,ae){return a=new E3(a,i,s,O,z,K,ee,ae,N),i=1,g===!0&&(i|=24),g=kn(3,null,null,i),a.current=g,g.stateNode=a,i=om(),i.refCount++,a.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:s,cache:i},fm(g),a}function TS(a){return a?(a=Sl,a):Sl}function MS(a,i,s,c,v,g){v=TS(v),c.context===null?c.context=v:c.pendingContext=v,c=Ra(i),c.payload={element:s},g=g===void 0?null:g,g!==null&&(c.callback=g),s=za(a,c,i),s!==null&&(wn(s,a,i),Zo(s,a,i))}function DS(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var s=a.retryLane;a.retryLane=s!==0&&s<i?s:i}}function Cp(a,i){DS(a,i),(a=a.alternate)&&DS(a,i)}function PS(a){if(a.tag===13||a.tag===31){var i=gi(a,67108864);i!==null&&wn(i,a,67108864),Cp(a,67108864)}}function kS(a){if(a.tag===13||a.tag===31){var i=In();i=_h(i);var s=gi(a,i);s!==null&&wn(s,a,i),Cp(a,i)}}var Bc=!0;function N3(a,i,s,c){var v=L.T;L.T=null;var g=Z.p;try{Z.p=2,Tp(a,i,s,c)}finally{Z.p=g,L.T=v}}function C3(a,i,s,c){var v=L.T;L.T=null;var g=Z.p;try{Z.p=8,Tp(a,i,s,c)}finally{Z.p=g,L.T=v}}function Tp(a,i,s,c){if(Bc){var v=Mp(c);if(v===null)vp(a,i,c,Ic,s),zS(a,c);else if(M3(v,a,i,s,c))c.stopPropagation();else if(zS(a,c),i&4&&-1<T3.indexOf(a)){for(;v!==null;){var g=fl(v);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var O=hi(g.pendingLanes);if(O!==0){var N=g;for(N.pendingLanes|=2,N.entangledLanes|=2;O;){var z=1<<31-Dn(O);N.entanglements[1]|=z,O&=~z}Or(g),(He&6)===0&&(wc=wt()+500,ds(0))}}break;case 31:case 13:N=gi(g,2),N!==null&&wn(N,g,2),jc(),Cp(g,2)}if(g=Mp(c),g===null&&vp(a,i,c,Ic,s),g===v)break;v=g}v!==null&&c.stopPropagation()}else vp(a,i,c,null,s)}}function Mp(a){return a=Ph(a),Dp(a)}var Ic=null;function Dp(a){if(Ic=null,a=cl(a),a!==null){var i=o(a);if(i===null)a=null;else{var s=i.tag;if(s===13){if(a=u(i),a!==null)return a;a=null}else if(s===31){if(a=f(i),a!==null)return a;a=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Ic=a,null}function RS(a){switch(a){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 2;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 8;case"message":switch(sl()){case di:return 2;case Co:return 8;case Nu:case vD:return 32;case Kb:return 268435456;default:return 32}default:return 32}}var Pp=!1,Ga=null,Va=null,Xa=null,bs=new Map,xs=new Map,Za=[],T3="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(" ");function zS(a,i){switch(a){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":bs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(i.pointerId)}}function ws(a,i,s,c,v,g){return a===null||a.nativeEvent!==g?(a={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[v]},i!==null&&(i=fl(i),i!==null&&PS(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),a)}function M3(a,i,s,c,v){switch(i){case"focusin":return Ga=ws(Ga,a,i,s,c,v),!0;case"dragenter":return Va=ws(Va,a,i,s,c,v),!0;case"mouseover":return Xa=ws(Xa,a,i,s,c,v),!0;case"pointerover":var g=v.pointerId;return bs.set(g,ws(bs.get(g)||null,a,i,s,c,v)),!0;case"gotpointercapture":return g=v.pointerId,xs.set(g,ws(xs.get(g)||null,a,i,s,c,v)),!0}return!1}function LS(a){var i=cl(a.target);if(i!==null){var s=o(i);if(s!==null){if(i=s.tag,i===13){if(i=u(s),i!==null){a.blockedOn=i,Wb(a.priority,function(){kS(s)});return}}else if(i===31){if(i=f(s),i!==null){a.blockedOn=i,Wb(a.priority,function(){kS(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){a.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}a.blockedOn=null}function $c(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var s=Mp(a.nativeEvent);if(s===null){s=a.nativeEvent;var c=new s.constructor(s.type,s);Dh=c,s.target.dispatchEvent(c),Dh=null}else return i=fl(s),i!==null&&PS(i),a.blockedOn=s,!1;i.shift()}return!0}function BS(a,i,s){$c(a)&&s.delete(i)}function D3(){Pp=!1,Ga!==null&&$c(Ga)&&(Ga=null),Va!==null&&$c(Va)&&(Va=null),Xa!==null&&$c(Xa)&&(Xa=null),bs.forEach(BS),xs.forEach(BS)}function Uc(a,i){a.blockedOn===i&&(a.blockedOn=null,Pp||(Pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,D3)))}var qc=null;function IS(a){qc!==a&&(qc=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qc===a&&(qc=null);for(var i=0;i<a.length;i+=3){var s=a[i],c=a[i+1],v=a[i+2];if(typeof c!="function"){if(Dp(c||s)===null)continue;break}var g=fl(s);g!==null&&(a.splice(i,3),i-=3,Mm(g,{pending:!0,data:v,method:s.method,action:c},c,v))}}))}function Yl(a){function i(z){return Uc(z,a)}Ga!==null&&Uc(Ga,a),Va!==null&&Uc(Va,a),Xa!==null&&Uc(Xa,a),bs.forEach(i),xs.forEach(i);for(var s=0;s<Za.length;s++){var c=Za[s];c.blockedOn===a&&(c.blockedOn=null)}for(;0<Za.length&&(s=Za[0],s.blockedOn===null);)LS(s),s.blockedOn===null&&Za.shift();if(s=(a.ownerDocument||a).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var v=s[c],g=s[c+1],O=v[pn]||null;if(typeof g=="function")O||IS(s);else if(O){var N=null;if(g&&g.hasAttribute("formAction")){if(v=g,O=g[pn]||null)N=O.formAction;else if(Dp(v)!==null)continue}else N=O.action;typeof N=="function"?s[c+1]=N:(s.splice(c,3),c-=3),IS(s)}}}function $S(){function a(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(O){return v=O})},focusReset:"manual",scroll:"manual"})}function i(){v!==null&&(v(),v=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,v=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),v!==null&&(v(),v=null)}}}function kp(a){this._internalRoot=a}Hc.prototype.render=kp.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,c=In();MS(s,c,a,i,null,null)},Hc.prototype.unmount=kp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;MS(a.current,2,null,a,null,null),jc(),i[ul]=null}};function Hc(a){this._internalRoot=a}Hc.prototype.unstable_scheduleHydration=function(a){if(a){var i=Zb();a={blockedOn:null,target:a,priority:i};for(var s=0;s<Za.length&&i!==0&&i<Za[s].priority;s++);Za.splice(s,0,a),s===0&&LS(a)}};var US=t.version;if(US!=="19.2.4")throw Error(r(527,US,"19.2.4"));Z.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(i),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var P3={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{To=Fc.inject(P3),Mn=Fc}catch{}}return js.createRoot=function(a,i){if(!l(a))throw Error(r(299));var s=!1,c="",v=V1,g=X1,O=Z1;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(v=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError)),i=CS(a,1,!1,null,null,s,c,null,v,g,O,$S),a[ul]=i.current,pp(a),new kp(i)},js.hydrateRoot=function(a,i,s){if(!l(a))throw Error(r(299));var c=!1,v="",g=V1,O=X1,N=Z1,z=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(O=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError),s.formState!==void 0&&(z=s.formState)),i=CS(a,1,!0,i,s??null,c,v,z,g,O,N,$S),i.context=TS(null),s=i.current,c=In(),c=_h(c),v=Ra(c),v.callback=null,za(s,v,c),s=c,i.current.lanes=s,Do(i,s),Or(i),a[ul]=i.current,pp(a),new Hc(i)},js.version="19.2.4",js}var WS;function Y3(){if(WS)return Bp.exports;WS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bp.exports=K3(),Bp.exports}var G3=Y3();const V3=Rr(G3);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),QS=e=>{const t=Z3(e);return t.charAt(0).toUpperCase()+t.slice(1)},PE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),W3=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Q3={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"};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J3=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:u,...f},d)=>x.createElement("svg",{ref:d,...Q3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:PE("lucide",l),...!o&&!W3(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,p])=>x.createElement(h,p)),...Array.isArray(o)?o:[o]]));/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ee=(e,t)=>{const n=x.forwardRef(({className:r,...l},o)=>x.createElement(J3,{ref:o,iconNode:t,className:PE(`lucide-${X3(QS(e))}`,`lucide-${e}`,r),...l}));return n.displayName=QS(e),n};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ek=[["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"}]],tk=Ee("activity",ek);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rk=Ee("arrow-right",nk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ak=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],la=Ee("bot",ak);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ik=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],kE=Ee("box",ik);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qp=Ee("check",lk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ok=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sk=Ee("chevron-left",ok);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ck=Ee("chevron-right",uk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],JS=Ee("clock",fk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dk=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],ej=Ee("code",dk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hk=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],RE=Ee("credit-card",hk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mk=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],pk=Ee("database",mk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],yk=Ee("dollar-sign",vk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Cy=Ee("eye-off",gk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Of=Ee("eye",bk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],tj=Ee("file-text",xk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],nj=Ee("image",wk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sk=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jk=Ee("key-round",Sk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _k=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ff=Ee("key",_k);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ok=[["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"}]],Ak=Ee("layout-dashboard",Ok);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ek=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ri=Ee("loader-circle",Ek);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ck=Ee("lock",Nk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tk=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Mk=Ee("log-out",Tk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Pk=Ee("mail",Dk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kk=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],aa=Ee("message-square",kk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rk=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],rj=Ee("package-check",Rk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zk=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],zE=Ee("package",zk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lk=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],df=Ee("pen",Lk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Is=Ee("plus",Bk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ik=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$k=Ee("power-off",Ik);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uk=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],hf=Ee("power",Uk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qk=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Hk=Ee("qr-code",qk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fk=[["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"}]],Gi=Ee("refresh-cw",Fk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kk=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ni=Ee("save",Kk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Gk=Ee("search",Yk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vk=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Bg=Ee("settings",Vk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xk=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Zk=Ee("shield-check",Xk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wk=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],LE=Ee("shopping-bag",Wk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qk=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],aj=Ee("shopping-cart",Qk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jk=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Af=Ee("sparkles",Jk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e4=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ig=Ee("square-pen",e4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t4=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ro=Ee("trash-2",t4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n4=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],r4=Ee("trending-up",n4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a4=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Jl=Ee("truck",a4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i4=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],l4=Ee("upload",i4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o4=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],BE=Ee("user",o4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s4=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],IE=Ee("users",s4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u4=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ir=Ee("x",u4),c4=({activeTab:e,setActiveTab:t,onLogout:n})=>{const r=[{id:"dashboard",icon:Ak,label:"仪表盘"},{id:"accounts",icon:IE,label:"账号管理"},{id:"orders",icon:LE,label:"订单管理"},{id:"cards",icon:RE,label:"卡密库存"},{id:"items",icon:kE,label:"商品列表"},{id:"keywords",icon:aa,label:"关键词管理"},{id:"settings",icon:Bg,label:"系统与AI"}];return m.jsxs("div",{className:"w-64 h-screen fixed left-0 top-0 bg-white border-r border-gray-100 flex flex-col justify-between z-20 shadow-[4px_0_24px_rgba(0,0,0,0.02)]",children:[m.jsxs("div",{className:"p-6",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-12 px-2",children:[m.jsx("div",{className:"w-10 h-10 bg-[#FFE815] rounded-xl flex items-center justify-center shadow-lg shadow-yellow-200 transform rotate-[-3deg]",children:m.jsx("span",{className:"text-black font-extrabold text-xl",children:"闲"})}),m.jsxs("h1",{className:"text-xl font-extrabold tracking-tight text-gray-900",children:["闲鱼智控 ",m.jsx("span",{className:"text-xs bg-black text-[#FFE815] px-1.5 py-0.5 rounded ml-1",children:"PRO"})]})]}),m.jsx("nav",{className:"space-y-2",children:r.map(l=>{const o=l.icon,u=e===l.id;return m.jsxs("button",{onClick:()=>t(l.id),className:`w-full flex items-center gap-3 px-4 py-3.5 rounded-2xl transition-all duration-300 group relative overflow-hidden ${u?"bg-[#FFE815] text-black font-bold shadow-lg shadow-yellow-100 transform scale-[1.02]":"text-gray-500 hover:bg-gray-50 hover:text-gray-900"}`,children:[m.jsx(o,{className:`w-5 h-5 transition-colors ${u?"text-black":"text-gray-400 group-hover:text-gray-600"}`}),m.jsx("span",{className:"text-sm tracking-wide",children:l.label}),u&&m.jsx(Af,{className:"w-4 h-4 absolute right-3 text-black/20 animate-pulse"})]},l.id)})})]}),m.jsx("div",{className:"p-6 border-t border-gray-50",children:m.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 px-4 py-3 text-gray-500 hover:text-red-500 hover:bg-red-50 rounded-2xl transition-all duration-200 font-medium",children:[m.jsx(Mk,{className:"w-5 h-5"}),m.jsx("span",{className:"text-sm",children:"退出登录"})]})})]})};function $E(e,t){return function(){return e.apply(t,arguments)}}const{toString:f4}=Object.prototype,{getPrototypeOf:$g}=Object,{iterator:Od,toStringTag:UE}=Symbol,Ad=(e=>t=>{const n=f4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xr=e=>(e=e.toLowerCase(),t=>Ad(t)===e),Ed=e=>t=>typeof t===e,{isArray:yo}=Array,oo=Ed("undefined");function tu(e){return e!==null&&!oo(e)&&e.constructor!==null&&!oo(e.constructor)&&_n(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qE=xr("ArrayBuffer");function d4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qE(e.buffer),t}const h4=Ed("string"),_n=Ed("function"),HE=Ed("number"),nu=e=>e!==null&&typeof e=="object",m4=e=>e===!0||e===!1,mf=e=>{if(Ad(e)!=="object")return!1;const t=$g(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(UE in e)&&!(Od in e)},p4=e=>{if(!nu(e)||tu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},v4=xr("Date"),y4=xr("File"),g4=xr("Blob"),b4=xr("FileList"),x4=e=>nu(e)&&_n(e.pipe),w4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_n(e.append)&&((t=Ad(e))==="formdata"||t==="object"&&_n(e.toString)&&e.toString()==="[object FormData]"))},S4=xr("URLSearchParams"),[j4,_4,O4,A4]=["ReadableStream","Request","Response","Headers"].map(xr),E4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ru(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),yo(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{if(tu(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),u=o.length;let f;for(r=0;r<u;r++)f=o[r],t.call(null,e[f],f,e)}}function FE(e,t){if(tu(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,KE=e=>!oo(e)&&e!==zi;function Ty(){const{caseless:e,skipUndefined:t}=KE(this)&&this||{},n={},r=(l,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const u=e&&FE(n,o)||o;mf(n[u])&&mf(l)?n[u]=Ty(n[u],l):mf(l)?n[u]=Ty({},l):yo(l)?n[u]=l.slice():(!t||!oo(l))&&(n[u]=l)};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&ru(arguments[l],r);return n}const N4=(e,t,n,{allOwnKeys:r}={})=>(ru(t,(l,o)=>{n&&_n(l)?Object.defineProperty(e,o,{value:$E(l,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),C4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T4=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},M4=(e,t,n,r)=>{let l,o,u;const f={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)u=l[o],(!r||r(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&&$g(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},D4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},P4=e=>{if(!e)return null;if(yo(e))return e;let t=e.length;if(!HE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},k4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$g(Uint8Array)),R4=(e,t)=>{const r=(e&&e[Od]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},z4=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L4=xr("HTMLFormElement"),B4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),ij=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),I4=xr("RegExp"),YE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ru(n,(l,o)=>{let u;(u=t(l,o,e))!==!1&&(r[o]=u||l)}),Object.defineProperties(e,r)},$4=e=>{YE(e,(t,n)=>{if(_n(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_n(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},U4=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return yo(e)?r(e):r(String(e).split(t)),n},q4=()=>{},H4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function F4(e){return!!(e&&_n(e.append)&&e[UE]==="FormData"&&e[Od])}const K4=e=>{const t=new Array(10),n=(r,l)=>{if(nu(r)){if(t.indexOf(r)>=0)return;if(tu(r))return r;if(!("toJSON"in r)){t[l]=r;const o=yo(r)?[]:{};return ru(r,(u,f)=>{const d=n(u,l+1);!oo(d)&&(o[f]=d)}),t[l]=void 0,o}}return r};return n(e,0)},Y4=xr("AsyncFunction"),G4=e=>e&&(nu(e)||_n(e))&&_n(e.then)&&_n(e.catch),GE=((e,t)=>e?setImmediate:t?((n,r)=>(zi.addEventListener("message",({source:l,data:o})=>{l===zi&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),zi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_n(zi.postMessage)),V4=typeof queueMicrotask<"u"?queueMicrotask.bind(zi):typeof process<"u"&&process.nextTick||GE,X4=e=>e!=null&&_n(e[Od]),W={isArray:yo,isArrayBuffer:qE,isBuffer:tu,isFormData:w4,isArrayBufferView:d4,isString:h4,isNumber:HE,isBoolean:m4,isObject:nu,isPlainObject:mf,isEmptyObject:p4,isReadableStream:j4,isRequest:_4,isResponse:O4,isHeaders:A4,isUndefined:oo,isDate:v4,isFile:y4,isBlob:g4,isRegExp:I4,isFunction:_n,isStream:x4,isURLSearchParams:S4,isTypedArray:k4,isFileList:b4,forEach:ru,merge:Ty,extend:N4,trim:E4,stripBOM:C4,inherits:T4,toFlatObject:M4,kindOf:Ad,kindOfTest:xr,endsWith:D4,toArray:P4,forEachEntry:R4,matchAll:z4,isHTMLForm:L4,hasOwnProperty:ij,hasOwnProp:ij,reduceDescriptors:YE,freezeMethods:$4,toObjectSet:U4,toCamelCase:B4,noop:q4,toFiniteNumber:H4,findKey:FE,global:zi,isContextDefined:KE,isSpecCompliantForm:F4,toJSONObject:K4,isAsyncFn:Y4,isThenable:G4,setImmediate:GE,asap:V4,isIterable:X4};let Oe=class VE extends Error{static from(t,n,r,l,o,u){const f=new VE(t.message,n||t.code,r,l,o);return f.cause=t,f.name=t.name,u&&Object.assign(f,u),f}constructor(t,n,r,l,o){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),l&&(this.request=l),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}};Oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Oe.ERR_BAD_OPTION="ERR_BAD_OPTION";Oe.ECONNABORTED="ECONNABORTED";Oe.ETIMEDOUT="ETIMEDOUT";Oe.ERR_NETWORK="ERR_NETWORK";Oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Oe.ERR_DEPRECATED="ERR_DEPRECATED";Oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Oe.ERR_CANCELED="ERR_CANCELED";Oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Oe.ERR_INVALID_URL="ERR_INVALID_URL";const Z4=null;function My(e){return W.isPlainObject(e)||W.isArray(e)}function XE(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function lj(e,t,n){return e?e.concat(t).map(function(l,o){return l=XE(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function W4(e){return W.isArray(e)&&!e.some(My)}const Q4=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function Nd(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,_){return!W.isUndefined(_[j])});const r=n.metaTokens,l=n.visitor||p,o=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(l))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(W.isDate(w))return w.toISOString();if(W.isBoolean(w))return w.toString();if(!d&&W.isBlob(w))throw new Oe("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(w)||W.isTypedArray(w)?d&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function p(w,j,_){let E=w;if(w&&!_&&typeof w=="object"){if(W.endsWith(j,"{}"))j=r?j:j.slice(0,-2),w=JSON.stringify(w);else if(W.isArray(w)&&W4(w)||(W.isFileList(w)||W.endsWith(j,"[]"))&&(E=W.toArray(w)))return j=XE(j),E.forEach(function(T,C){!(W.isUndefined(T)||T===null)&&t.append(u===!0?lj([j],C,o):u===null?j:j+"[]",h(T))}),!1}return My(w)?!0:(t.append(lj(_,j,o),h(w)),!1)}const y=[],b=Object.assign(Q4,{defaultVisitor:p,convertValue:h,isVisitable:My});function S(w,j){if(!W.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+j.join("."));y.push(w),W.forEach(w,function(E,A){(!(W.isUndefined(E)||E===null)&&l.call(t,E,W.isString(A)?A.trim():A,j,b))===!0&&S(E,j?j.concat(A):[A])}),y.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return S(e),t}function oj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ug(e,t){this._pairs=[],e&&Nd(e,this,t)}const ZE=Ug.prototype;ZE.append=function(t,n){this._pairs.push([t,n])};ZE.toString=function(t){const n=t?function(r){return t.call(this,r,oj)}:oj;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function J4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function WE(e,t,n){if(!t)return e;const r=n&&n.encode||J4,l=W.isFunction(n)?{serialize:n}:n,o=l&&l.serialize;let u;if(o?u=o(t,l):u=W.isURLSearchParams(t)?t.toString():new Ug(t,l).toString(r),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class sj{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eR=typeof URLSearchParams<"u"?URLSearchParams:Ug,tR=typeof FormData<"u"?FormData:null,nR=typeof Blob<"u"?Blob:null,rR={isBrowser:!0,classes:{URLSearchParams:eR,FormData:tR,Blob:nR},protocols:["http","https","file","blob","url","data"]},Hg=typeof window<"u"&&typeof document<"u",Dy=typeof navigator=="object"&&navigator||void 0,aR=Hg&&(!Dy||["ReactNative","NativeScript","NS"].indexOf(Dy.product)<0),iR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lR=Hg&&window.location.href||"http://localhost",oR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hg,hasStandardBrowserEnv:aR,hasStandardBrowserWebWorkerEnv:iR,navigator:Dy,origin:lR},Symbol.toStringTag,{value:"Module"})),ln={...oR,...rR};function sR(e,t){return Nd(e,new ln.classes.URLSearchParams,{visitor:function(n,r,l,o){return ln.isNode&&W.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function uR(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cR(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r<l;r++)o=n[r],t[o]=e[o];return t}function QE(e){function t(n,r,l,o){let u=n[o++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=o>=n.length;return u=!u&&W.isArray(l)?l.length:u,d?(W.hasOwnProp(l,u)?l[u]=[l[u],r]:l[u]=r,!f):((!l[u]||!W.isObject(l[u]))&&(l[u]=[]),t(n,r,l[u],o)&&W.isArray(l[u])&&(l[u]=cR(l[u])),!f)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(r,l)=>{t(uR(r),l,n,0)}),n}return null}function fR(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const au={transitional:qg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=W.isObject(t);if(o&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return l?JSON.stringify(QE(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sR(t,this.formSerializer).toString();if((f=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Nd(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),fR(t)):t}],transformResponse:[function(t){const n=this.transitional||au.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||l)){const u=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?Oe.from(f,Oe.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{au.headers[e]={}});const dR=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hR=e=>{const t={};let n,r,l;return e&&e.split(`
`).forEach(function(u){l=u.indexOf(":"),n=u.substring(0,l).trim().toLowerCase(),r=u.substring(l+1).trim(),!(!n||t[n]&&dR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},uj=Symbol("internals");function _s(e){return e&&String(e).trim().toLowerCase()}function pf(e){return e===!1||e==null?e:W.isArray(e)?e.map(pf):String(e)}function mR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const pR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hp(e,t,n,r,l){if(W.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!W.isString(t)){if(W.isString(r))return t.indexOf(r)!==-1;if(W.isRegExp(r))return r.test(t)}}function vR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yR(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,u){return this[r].call(this,t,l,o,u)},configurable:!0})})}let On=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(f,d,h){const p=_s(d);if(!p)throw new Error("header name must be a non-empty string");const y=W.findKey(l,p);(!y||l[y]===void 0||h===!0||h===void 0&&l[y]!==!1)&&(l[y||d]=pf(f))}const u=(f,d)=>W.forEach(f,(h,p)=>o(h,p,d));if(W.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(W.isString(t)&&(t=t.trim())&&!pR(t))u(hR(t),n);else if(W.isObject(t)&&W.isIterable(t)){let f={},d,h;for(const p of t){if(!W.isArray(p))throw TypeError("Object iterator must return a key-value pair");f[h=p[0]]=(d=f[h])?W.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}u(f,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=_s(t),t){const r=W.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return mR(l);if(W.isFunction(n))return n.call(this,l,r);if(W.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_s(t),t){const r=W.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(u){if(u=_s(u),u){const f=W.findKey(r,u);f&&(!n||Hp(r,r[f],f,n))&&(delete r[f],l=!0)}}return W.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Hp(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return W.forEach(this,(l,o)=>{const u=W.findKey(r,o);if(u){n[u]=pf(l),delete n[o];return}const f=t?vR(o):String(o).trim();f!==o&&delete n[o],n[f]=pf(l),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&W.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[uj]=this[uj]={accessors:{}}).accessors,l=this.prototype;function o(u){const f=_s(u);r[f]||(yR(l,u),r[f]=!0)}return W.isArray(t)?t.forEach(o):o(t),this}};On.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(On.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});W.freezeMethods(On);function Fp(e,t){const n=this||au,r=t||n,l=On.from(r.headers);let o=r.data;return W.forEach(e,function(f){o=f.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function JE(e){return!!(e&&e.__CANCEL__)}let iu=class extends Oe{constructor(t,n,r){super(t??"canceled",Oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function eN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),p=r[o];u||(u=h),n[l]=d,r[l]=h;let y=o,b=0;for(;y!==l;)b+=n[y++],y=y%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),h-u<t)return;const S=p&&h-p;return S?Math.round(b*1e3/S):void 0}}function xR(e,t){let n=0,r=1e3/t,l,o;const u=(h,p=Date.now())=>{n=p,l=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const p=Date.now(),y=p-n;y>=r?u(h,p):(l=h,o||(o=setTimeout(()=>{o=null,u(l)},r-y)))},()=>l&&u(l)]}const Ef=(e,t,n=3)=>{let r=0;const l=bR(50,250);return xR(o=>{const u=o.loaded,f=o.lengthComputable?o.total:void 0,d=u-r,h=l(d),p=u<=f;r=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&p?(f-u)/h:void 0,event:o,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},n)},cj=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fj=e=>(...t)=>W.asap(()=>e(...t)),wR=ln.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ln.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ln.origin),ln.navigator&&/(msie|trident)/i.test(ln.navigator.userAgent)):()=>!0,SR=ln.hasStandardBrowserEnv?{write(e,t,n,r,l,o,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];W.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),W.isString(r)&&f.push(`path=${r}`),W.isString(l)&&f.push(`domain=${l}`),o===!0&&f.push("secure"),W.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _R(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tN(e,t,n){let r=!jR(t);return e&&(r||n==!1)?_R(e,t):t}const dj=e=>e instanceof On?{...e}:e;function Vi(e,t){t=t||{};const n={};function r(h,p,y,b){return W.isPlainObject(h)&&W.isPlainObject(p)?W.merge.call({caseless:b},h,p):W.isPlainObject(p)?W.merge({},p):W.isArray(p)?p.slice():p}function l(h,p,y,b){if(W.isUndefined(p)){if(!W.isUndefined(h))return r(void 0,h,y,b)}else return r(h,p,y,b)}function o(h,p){if(!W.isUndefined(p))return r(void 0,p)}function u(h,p){if(W.isUndefined(p)){if(!W.isUndefined(h))return r(void 0,h)}else return r(void 0,p)}function f(h,p,y){if(y in t)return r(h,p);if(y in e)return r(void 0,h)}const d={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,p,y)=>l(dj(h),dj(p),y,!0)};return W.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const y=W.hasOwnProp(d,p)?d[p]:l,b=y(e[p],t[p],p);W.isUndefined(b)&&y!==f||(n[p]=b)}),n}const nN=e=>{const t=Vi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:u,auth:f}=t;if(t.headers=u=On.from(u),t.url=WE(tN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),W.isFormData(n)){if(ln.hasStandardBrowserEnv||ln.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(W.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([p,y])=>{h.includes(p.toLowerCase())&&u.set(p,y)})}}if(ln.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||r!==!1&&wR(t.url))){const d=l&&o&&SR.read(o);d&&u.set(l,d)}return t},OR=typeof XMLHttpRequest<"u",AR=OR&&function(e){return new Promise(function(n,r){const l=nN(e);let o=l.data;const u=On.from(l.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=l,p,y,b,S,w;function j(){S&&S(),w&&w(),l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(l.method.toUpperCase(),l.url,!0),_.timeout=l.timeout;function E(){if(!_)return;const T=On.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),P={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:T,config:e,request:_};eN(function(D){n(D),j()},function(D){r(D),j()},P),_=null}"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(E)},_.onabort=function(){_&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,_)),_=null)},_.onerror=function(C){const P=C&&C.message?C.message:"Network Error",M=new Oe(P,Oe.ERR_NETWORK,e,_);M.event=C||null,r(M),_=null},_.ontimeout=function(){let C=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const P=l.transitional||qg;l.timeoutErrorMessage&&(C=l.timeoutErrorMessage),r(new Oe(C,P.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,_)),_=null},o===void 0&&u.setContentType(null),"setRequestHeader"in _&&W.forEach(u.toJSON(),function(C,P){_.setRequestHeader(P,C)}),W.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),f&&f!=="json"&&(_.responseType=l.responseType),h&&([b,w]=Ef(h,!0),_.addEventListener("progress",b)),d&&_.upload&&([y,S]=Ef(d),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",S)),(l.cancelToken||l.signal)&&(p=T=>{_&&(r(!T||T.type?new iu(null,e,_):T),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p)));const A=gR(l.url);if(A&&ln.protocols.indexOf(A)===-1){r(new Oe("Unsupported protocol "+A+":",Oe.ERR_BAD_REQUEST,e));return}_.send(o||null)})},ER=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(h){if(!l){l=!0,f();const p=h instanceof Error?h:this.reason;r.abort(p instanceof Oe?p:new iu(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,o(new Oe(`timeout of ${t}ms exceeded`,Oe.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>W.asap(f),d}},NR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,l;for(;r<n;)l=r+t,yield e.slice(r,l),r=l},CR=async function*(e,t){for await(const n of TR(e))yield*NR(n,t)},TR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},hj=(e,t,n,r)=>{const l=CR(e,t);let o=0,u,f=d=>{u||(u=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await l.next();if(h){f(),d.close();return}let y=p.byteLength;if(n){let b=o+=y;n(b)}d.enqueue(new Uint8Array(p))}catch(h){throw f(h),h}},cancel(d){return f(d),l.return()}},{highWaterMark:2})},mj=64*1024,{isFunction:Kc}=W,MR=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:pj,TextEncoder:vj}=W.global,yj=(e,...t)=>{try{return!!e(...t)}catch{return!1}},DR=e=>{e=W.merge.call({skipUndefined:!0},MR,e);const{fetch:t,Request:n,Response:r}=e,l=t?Kc(t):typeof fetch=="function",o=Kc(n),u=Kc(r);if(!l)return!1;const f=l&&Kc(pj),d=l&&(typeof vj=="function"?(w=>j=>w.encode(j))(new vj):async w=>new Uint8Array(await new n(w).arrayBuffer())),h=o&&f&&yj(()=>{let w=!1;const j=new n(ln.origin,{body:new pj,method:"POST",get duplex(){return w=!0,"half"}}).headers.has("Content-Type");return w&&!j}),p=u&&f&&yj(()=>W.isReadableStream(new r("").body)),y={stream:p&&(w=>w.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!y[w]&&(y[w]=(j,_)=>{let E=j&&j[w];if(E)return E.call(j);throw new Oe(`Response type '${w}' is not supported`,Oe.ERR_NOT_SUPPORT,_)})});const b=async w=>{if(w==null)return 0;if(W.isBlob(w))return w.size;if(W.isSpecCompliantForm(w))return(await new n(ln.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(W.isArrayBufferView(w)||W.isArrayBuffer(w))return w.byteLength;if(W.isURLSearchParams(w)&&(w=w+""),W.isString(w))return(await d(w)).byteLength},S=async(w,j)=>{const _=W.toFiniteNumber(w.getContentLength());return _??b(j)};return async w=>{let{url:j,method:_,data:E,signal:A,cancelToken:T,timeout:C,onDownloadProgress:P,onUploadProgress:M,responseType:D,headers:I,withCredentials:V="same-origin",fetchOptions:X}=nN(w),te=t||fetch;D=D?(D+"").toLowerCase():"text";let k=ER([A,T&&T.toAbortSignal()],C),se=null;const U=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let ne;try{if(M&&h&&_!=="get"&&_!=="head"&&(ne=await S(I,E))!==0){let R=new n(j,{method:"POST",body:E,duplex:"half"}),Y;if(W.isFormData(E)&&(Y=R.headers.get("content-type"))&&I.setContentType(Y),R.body){const[oe,ce]=cj(ne,Ef(fj(M)));E=hj(R.body,mj,oe,ce)}}W.isString(V)||(V=V?"include":"omit");const L=o&&"credentials"in n.prototype,Z={...X,signal:k,method:_.toUpperCase(),headers:I.normalize().toJSON(),body:E,duplex:"half",credentials:L?V:void 0};se=o&&new n(j,Z);let ie=await(o?te(se,X):te(j,Z));const fe=p&&(D==="stream"||D==="response");if(p&&(P||fe&&U)){const R={};["status","statusText","headers"].forEach(pe=>{R[pe]=ie[pe]});const Y=W.toFiniteNumber(ie.headers.get("content-length")),[oe,ce]=P&&cj(Y,Ef(fj(P),!0))||[];ie=new r(hj(ie.body,mj,oe,()=>{ce&&ce(),U&&U()}),R)}D=D||"text";let de=await y[W.findKey(y,D)||"text"](ie,w);return!fe&&U&&U(),await new Promise((R,Y)=>{eN(R,Y,{data:de,headers:On.from(ie.headers),status:ie.status,statusText:ie.statusText,config:w,request:se})})}catch(L){throw U&&U(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,w,se,L&&L.response),{cause:L.cause||L}):Oe.from(L,L&&L.code,w,se,L&&L.response)}}},PR=new Map,rN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:l}=t,o=[r,l,n];let u=o.length,f=u,d,h,p=PR;for(;f--;)d=o[f],h=p.get(d),h===void 0&&p.set(d,h=f?new Map:DR(t)),p=h;return h};rN();const Fg={http:Z4,xhr:AR,fetch:{get:rN}};W.forEach(Fg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gj=e=>`- ${e}`,kR=e=>W.isFunction(e)||e===null||e===!1;function RR(e,t){e=W.isArray(e)?e:[e];const{length:n}=e;let r,l;const o={};for(let u=0;u<n;u++){r=e[u];let f;if(l=r,!kR(r)&&(l=Fg[(f=String(r)).toLowerCase()],l===void 0))throw new Oe(`Unknown adapter '${f}'`);if(l&&(W.isFunction(l)||(l=l.get(t))))break;o[f||"#"+u]=l}if(!l){const u=Object.entries(o).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(gj).join(`
`):" "+gj(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return l}const aN={getAdapter:RR,adapters:Fg};function Kp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new iu(null,e)}function bj(e){return Kp(e),e.headers=On.from(e.headers),e.data=Fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),aN.getAdapter(e.adapter||au.adapter,e)(e).then(function(r){return Kp(e),r.data=Fp.call(e,e.transformResponse,r),r.headers=On.from(r.headers),r},function(r){return JE(r)||(Kp(e),r&&r.response&&(r.response.data=Fp.call(e,e.transformResponse,r.response),r.response.headers=On.from(r.response.headers))),Promise.reject(r)})}const iN="1.13.5",Cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xj={};Cd.transitional=function(t,n,r){function l(o,u){return"[Axios v"+iN+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,f)=>{if(t===!1)throw new Oe(l(u," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!xj[u]&&(xj[u]=!0,console.warn(l(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,u,f):!0}};Cd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function zR(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],u=t[o];if(u){const f=e[o],d=f===void 0||u(f,o,e);if(d!==!0)throw new Oe("option "+o+" must be "+d,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+o,Oe.ERR_BAD_OPTION)}}const vf={assertOptions:zR,validators:Cd},er=vf.validators;let Ui=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sj,response:new sj}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vi(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&vf.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean),legacyInterceptorReqResOrdering:er.transitional(er.boolean)},!1),l!=null&&(W.isFunction(l)?n.paramsSerializer={serialize:l}:vf.assertOptions(l,{encode:er.function,serialize:er.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),vf.assertOptions(n,{baseUrl:er.spelling("baseURL"),withXsrfToken:er.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=o&&W.merge(o.common,o[n.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=On.concat(u,o);const f=[];let d=!0;this.interceptors.request.forEach(function(j){if(typeof j.runWhen=="function"&&j.runWhen(n)===!1)return;d=d&&j.synchronous;const _=n.transitional||qg;_&&_.legacyInterceptorReqResOrdering?f.unshift(j.fulfilled,j.rejected):f.push(j.fulfilled,j.rejected)});const h=[];this.interceptors.response.forEach(function(j){h.push(j.fulfilled,j.rejected)});let p,y=0,b;if(!d){const w=[bj.bind(this),void 0];for(w.unshift(...f),w.push(...h),b=w.length,p=Promise.resolve(n);y<b;)p=p.then(w[y++],w[y++]);return p}b=f.length;let S=n;for(;y<b;){const w=f[y++],j=f[y++];try{S=w(S)}catch(_){j.call(this,_);break}}try{p=bj.call(this,S)}catch(w){return Promise.reject(w)}for(y=0,b=h.length;y<b;)p=p.then(h[y++],h[y++]);return p}getUri(t){t=Vi(this.defaults,t);const n=tN(t.baseURL,t.url,t.allowAbsoluteUrls);return WE(n,t.params,t.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(t){Ui.prototype[t]=function(n,r){return this.request(Vi(r||{},{method:t,url:n,data:(r||{}).data}))}});W.forEach(["post","put","patch"],function(t){function n(r){return function(o,u,f){return this.request(Vi(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:u}))}}Ui.prototype[t]=n(),Ui.prototype[t+"Form"]=n(!0)});let LR=class lN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(l=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const u=new Promise(f=>{r.subscribe(f),o=f}).then(l);return u.cancel=function(){r.unsubscribe(o)},u},t(function(o,u,f){r.reason||(r.reason=new iu(o,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new lN(function(l){t=l}),cancel:t}}};function BR(e){return function(n){return e.apply(null,n)}}function IR(e){return W.isObject(e)&&e.isAxiosError===!0}const Py={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Py).forEach(([e,t])=>{Py[t]=e});function oN(e){const t=new Ui(e),n=$E(Ui.prototype.request,t);return W.extend(n,Ui.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return oN(Vi(e,l))},n}const _t=oN(au);_t.Axios=Ui;_t.CanceledError=iu;_t.CancelToken=LR;_t.isCancel=JE;_t.VERSION=iN;_t.toFormData=Nd;_t.AxiosError=Oe;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=BR;_t.isAxiosError=IR;_t.mergeConfig=Vi;_t.AxiosHeaders=On;_t.formToJSON=e=>QE(W.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=aN.getAdapter;_t.HttpStatusCode=Py;_t.default=_t;const{Axios:nQ,AxiosError:rQ,CanceledError:aQ,isCancel:iQ,CancelToken:lQ,VERSION:oQ,all:sQ,Cancel:uQ,isAxiosError:cQ,spread:fQ,toFormData:dQ,AxiosHeaders:hQ,HttpStatusCode:mQ,formToJSON:pQ,getAdapter:vQ,mergeConfig:yQ}=_t,go=_t.create({baseURL:"",timeout:3e4,headers:{"Content-Type":"application/json"}});go.interceptors.request.use(e=>{const t=localStorage.getItem("auth_token");return t&&e.headers&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));go.interceptors.response.use(e=>e.data,e=>{var n,r,l,o,u;((n=e.response)==null?void 0:n.status)===401&&(localStorage.removeItem("auth_token"),window.dispatchEvent(new Event("auth:logout")),window.location.href="/");const t=((l=(r=e.response)==null?void 0:r.data)==null?void 0:l.message)||((u=(o=e.response)==null?void 0:o.data)==null?void 0:u.msg)||e.message||"Network Error";return Promise.reject(new Error(t))});const tn=(e,t,n)=>go.get(e,{...n,params:t}),ba=(e,t,n)=>go.post(e,t,n),ur=(e,t,n)=>go.put(e,t,n),Td=(e,t)=>go.delete(e,t),$R=async e=>ba("/login",e),UR=async()=>tn("/verify"),Kg=async()=>(await tn("/cookies/details")).map(t=>({id:t.id,value:t.value,cookie:t.value,enabled:t.enabled,auto_confirm:t.auto_confirm,remark:t.remark,note:t.remark,pause_duration:t.pause_duration,username:t.username,login_password:t.login_password,show_browser:t.show_browser,nickname:t.remark||`Account ${t.id.substring(0,6)}`,avatar_url:`https://api.dicebear.com/7.x/avataaars/svg?seed=${t.id}`,ai_enabled:!1})),qR=async()=>ba("/qr-login/generate"),HR=async e=>tn(`/qr-login/check/${e}`),FR=async(e,t)=>ur(`/cookies/${e}/status`,{enabled:t}),KR=async e=>Td(`/cookies/${e}`),YR=async(e,t)=>ur(`/cookies/${e}/remark`,{remark:t}),GR=async(e,t)=>ur(`/cookies/${e}/auto-confirm`,{auto_confirm:t}),VR=async(e,t)=>ur(`/cookies/${e}/pause-duration`,{pause_duration:t}),XR=async(e,t)=>ur(`/cookies/${e}`,{id:e,value:t}),ZR=async(e,t)=>ur(`/cookies/${e}/login-info`,t),WR=async()=>tn("/ai-reply-settings"),wj=async(e,t,n=1,r=20)=>{const l={page:n,page_size:r};t&&t!=="all"&&(l.status=t);const o=await tn("/api/orders",l),u=o.orders||o.data||[];return{success:!0,data:u,total:o.total||u.length,page:o.page||n,page_size:o.page_size||r,total_pages:o.total_pages||1}},QR=async(e,t)=>ur(`/api/orders/${e}`,t),JR=async(e,t)=>{const n=new FormData,r=localStorage.getItem("auth_token");return(await fetch("/api/orders/refresh",{method:"POST",headers:{Authorization:`Bearer ${r}`},body:n})).json()},e6=async(e,t,n)=>ba("/api/orders/manual-ship",{order_ids:e,ship_mode:t,custom_content:n}),t6=async e=>{const t=e instanceof FormData;return(await fetch("/api/orders/import",{method:"POST",headers:{...t?{}:{"Content-Type":"application/json"},Authorization:`Bearer ${localStorage.getItem("auth_token")}`},body:t?e:JSON.stringify(e)})).json()},n6=async()=>tn("/admin/stats"),Sj=async(e=7)=>{let t;if(typeof e=="number"){const n=new Date,r=new Date;r.setDate(r.getDate()-e),t={start_date:r.toISOString().split("T")[0],end_date:n.toISOString().split("T")[0]}}else t=e;return tn("/analytics/orders",t)},Wl=async()=>{const e=await tn("/cards");return Array.isArray(e)?e:e.cards||[]},r6=async e=>ba("/cards",e),jj=async(e,t)=>ur(`/cards/${e}`,t),a6=async e=>Td(`/cards/${e}`),ky=async()=>{const e=await tn("/items");return Array.isArray(e)?e:e.items||[]},i6=async e=>ba("/items/get-all-from-account",{cookie_id:e}),l6=async()=>{const e=await tn("/delivery-rules");return(Array.isArray(e)?e:e.data||e.rules||[]).map(n=>({id:String(n.id),name:n.description||n.keyword||"",item_keyword:n.keyword||"",card_group_id:n.card_id||0,card_group_name:n.card_name||"",priority:n.delivery_count||1,enabled:n.enabled||!1}))},_j=async e=>{const t={keyword:e.item_keyword,card_id:e.card_group_id,delivery_count:e.priority,enabled:e.enabled??!0,description:e.name};return e.id?ur(`/delivery-rules/${e.id}`,t):ba("/delivery-rules",t)},o6=async e=>Td(`/delivery-rules/${e}`),s6=async e=>{if(!e)return[];const t=await tn(`/keywords-with-item-id/${e}`);return(Array.isArray(t)?t:[]).map((r,l)=>({id:String(l),keyword:r.keyword||"",reply_content:r.reply||"",match_type:"exact",enabled:!0}))},u6=async(e,t)=>{const n=await tn(`/keywords-with-item-id/${t}`),r=Array.isArray(n)?n:[];if(e.id){const l=parseInt(e.id);l>=0&&l<r.length&&(r[l]={keyword:e.keyword,reply:e.reply_content,item_id:""})}else r.push({keyword:e.keyword,reply:e.reply_content,item_id:""});return ba(`/keywords-with-item-id/${t}`,{keywords:r})},c6=async(e,t)=>{const n=await tn(`/keywords-with-item-id/${t}`),r=Array.isArray(n)?n:[],l=parseInt(e);return l>=0&&l<r.length&&r.splice(l,1),ba(`/keywords-with-item-id/${t}`,{keywords:r})},f6=async()=>{const e=await tn("/system-settings");return e.data||e},d6=async e=>{const t=Object.entries(e).map(([n,r])=>ur(`/system-settings/${n}`,{value:String(r)}));return await Promise.all(t),{success:!0,message:"Settings saved"}},h6=async e=>tn(`/ai-reply-settings/${e}`),m6=async(e,t)=>{const n={ai_enabled:t.ai_enabled??!1,model_name:t.model_name??"qwen-plus",api_key:t.api_key??"",base_url:t.base_url??"https://dashscope.aliyuncs.com/compatible-mode/v1",max_discount_percent:t.max_discount_percent??10,max_discount_amount:t.max_discount_amount??100,max_bargain_rounds:t.max_bargain_rounds??3,custom_prompts:t.custom_prompts??""};return ur(`/ai-reply-settings/${e}`,n)},p6=async()=>tn("/api/default-replies"),v6=async e=>{const t=await tn(`/api/default-reply/${e}`);return{cookie_id:e,enabled:t.enabled||!1,reply_content:t.reply_content||"",reply_once:t.reply_once||!1,reply_image_url:t.reply_image_url||""}},y6=async(e,t)=>ur(`/api/default-reply/${e}`,{enabled:t.enabled??!1,reply_content:t.reply_content||"",reply_once:t.reply_once??!1,reply_image_url:t.reply_image_url||""}),g6=async e=>Td(`/api/default-reply/${e}`),b6=async e=>ba(`/api/default-reply/${e}/clear-records`,{});function sN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=sN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ue(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=sN(e))&&(r&&(r+=" "),r+=t);return r}var x6=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Yg(e){if(typeof e!="string")return!1;var t=x6;return t.includes(e)}var w6=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],S6=new Set(w6);function uN(e){return typeof e!="string"?!1:S6.has(e)}function cN(e){return typeof e=="string"&&e.startsWith("data-")}function An(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uN(n)||cN(n))&&(t[n]=e[n]);return t}function Xi(e){if(e==null)return null;if(x.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return An(t)}return typeof e=="object"&&!Array.isArray(e)?An(e):null}function hn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uN(n)||cN(n)||Yg(n))&&(t[n]=e[n]);return t}function j6(e){return e==null?null:x.isValidElement(e)?hn(e.props):typeof e=="object"&&!Array.isArray(e)?hn(e):null}var _6=["children","width","height","viewBox","className","style","title","desc"];function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(null,arguments)}function O6(e,t){if(e==null)return{};var n,r,l=A6(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function A6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Gg=x.forwardRef((e,t)=>{var{children:n,width:r,height:l,viewBox:o,className:u,style:f,title:d,desc:h}=e,p=O6(e,_6),y=o||{width:r,height:l,x:0,y:0},b=Ue("recharts-surface",u);return x.createElement("svg",Ry({},hn(p),{className:b,width:r,height:l,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height),ref:t}),x.createElement("title",null,d),x.createElement("desc",null,h),n)}),E6=["children","className"];function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zy.apply(null,arguments)}function N6(e,t){if(e==null)return{};var n,r,l=C6(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function C6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ot=x.forwardRef((e,t)=>{var{children:n,className:r}=e,l=N6(e,E6),o=Ue("recharts-layer",r);return x.createElement("g",zy({className:o},hn(l),{ref:t}),n)}),fn=DE(),fN=x.createContext(null),T6=()=>x.useContext(fN);function rt(e){return function(){return e}}const dN=Math.cos,Nf=Math.sin,wr=Math.sqrt,Cf=Math.PI,Md=2*Cf,Ly=Math.PI,By=2*Ly,Di=1e-6,M6=By-Di;function hN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function D6(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hN;const n=10**t;return function(r){this._+=r[0];for(let l=1,o=r.length;l<o;++l)this._+=Math.round(arguments[l]*n)/n+r[l]}}class P6{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?hN:D6(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,l){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+l}`}bezierCurveTo(t,n,r,l,o,u){this._append`C${+t},${+n},${+r},${+l},${this._x1=+o},${this._y1=+u}`}arcTo(t,n,r,l,o){if(t=+t,n=+n,r=+r,l=+l,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,f=this._y1,d=r-t,h=l-n,p=u-t,y=f-n,b=p*p+y*y;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>Di)if(!(Math.abs(y*d-h*p)>Di)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-u,w=l-f,j=d*d+h*h,_=S*S+w*w,E=Math.sqrt(j),A=Math.sqrt(b),T=o*Math.tan((Ly-Math.acos((j+b-_)/(2*E*A)))/2),C=T/A,P=T/E;Math.abs(C-1)>Di&&this._append`L${t+C*p},${n+C*y}`,this._append`A${o},${o},0,0,${+(y*S>p*w)},${this._x1=t+P*d},${this._y1=n+P*h}`}}arc(t,n,r,l,o,u){if(t=+t,n=+n,r=+r,u=!!u,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(l),d=r*Math.sin(l),h=t+f,p=n+d,y=1^u,b=u?l-o:o-l;this._x1===null?this._append`M${h},${p}`:(Math.abs(this._x1-h)>Di||Math.abs(this._y1-p)>Di)&&this._append`L${h},${p}`,r&&(b<0&&(b=b%By+By),b>M6?this._append`A${r},${r},0,1,${y},${t-f},${n-d}A${r},${r},0,1,${y},${this._x1=h},${this._y1=p}`:b>Di&&this._append`A${r},${r},0,${+(b>=Ly)},${y},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,l){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+l}h${-r}Z`}toString(){return this._}}function Vg(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new P6(t)}function Xg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function mN(e){this._context=e}mN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Dd(e){return new mN(e)}function pN(e){return e[0]}function vN(e){return e[1]}function yN(e,t){var n=rt(!0),r=null,l=Dd,o=null,u=Vg(f);e=typeof e=="function"?e:e===void 0?pN:rt(e),t=typeof t=="function"?t:t===void 0?vN:rt(t);function f(d){var h,p=(d=Xg(d)).length,y,b=!1,S;for(r==null&&(o=l(S=u())),h=0;h<=p;++h)!(h<p&&n(y=d[h],h,d))===b&&((b=!b)?o.lineStart():o.lineEnd()),b&&o.point(+e(y,h,d),+t(y,h,d));if(S)return o=null,S+""||null}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:rt(+d),f):e},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:rt(+d),f):t},f.defined=function(d){return arguments.length?(n=typeof d=="function"?d:rt(!!d),f):n},f.curve=function(d){return arguments.length?(l=d,r!=null&&(o=l(r)),f):l},f.context=function(d){return arguments.length?(d==null?r=o=null:o=l(r=d),f):r},f}function Yc(e,t,n){var r=null,l=rt(!0),o=null,u=Dd,f=null,d=Vg(h);e=typeof e=="function"?e:e===void 0?pN:rt(+e),t=typeof t=="function"?t:rt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?vN:rt(+n);function h(y){var b,S,w,j=(y=Xg(y)).length,_,E=!1,A,T=new Array(j),C=new Array(j);for(o==null&&(f=u(A=d())),b=0;b<=j;++b){if(!(b<j&&l(_=y[b],b,y))===E)if(E=!E)S=b,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),w=b-1;w>=S;--w)f.point(T[w],C[w]);f.lineEnd(),f.areaEnd()}E&&(T[b]=+e(_,b,y),C[b]=+t(_,b,y),f.point(r?+r(_,b,y):T[b],n?+n(_,b,y):C[b]))}if(A)return f=null,A+""||null}function p(){return yN().defined(l).curve(u).context(o)}return h.x=function(y){return arguments.length?(e=typeof y=="function"?y:rt(+y),r=null,h):e},h.x0=function(y){return arguments.length?(e=typeof y=="function"?y:rt(+y),h):e},h.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:rt(+y),h):r},h.y=function(y){return arguments.length?(t=typeof y=="function"?y:rt(+y),n=null,h):t},h.y0=function(y){return arguments.length?(t=typeof y=="function"?y:rt(+y),h):t},h.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:rt(+y),h):n},h.lineX0=h.lineY0=function(){return p().x(e).y(t)},h.lineY1=function(){return p().x(e).y(n)},h.lineX1=function(){return p().x(r).y(t)},h.defined=function(y){return arguments.length?(l=typeof y=="function"?y:rt(!!y),h):l},h.curve=function(y){return arguments.length?(u=y,o!=null&&(f=u(o)),h):u},h.context=function(y){return arguments.length?(y==null?o=f=null:f=u(o=y),h):o},h}class gN{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function k6(e){return new gN(e,!0)}function R6(e){return new gN(e,!1)}const Zg={draw(e,t){const n=wr(t/Cf);e.moveTo(n,0),e.arc(0,0,n,0,Md)}},z6={draw(e,t){const n=wr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},bN=wr(1/3),L6=bN*2,B6={draw(e,t){const n=wr(t/L6),r=n*bN;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},I6={draw(e,t){const n=wr(t),r=-n/2;e.rect(r,r,n,n)}},$6=.8908130915292852,xN=Nf(Cf/10)/Nf(7*Cf/10),U6=Nf(Md/10)*xN,q6=-dN(Md/10)*xN,H6={draw(e,t){const n=wr(t*$6),r=U6*n,l=q6*n;e.moveTo(0,-n),e.lineTo(r,l);for(let o=1;o<5;++o){const u=Md*o/5,f=dN(u),d=Nf(u);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*l,d*r+f*l)}e.closePath()}},Yp=wr(3),F6={draw(e,t){const n=-wr(t/(Yp*3));e.moveTo(0,n*2),e.lineTo(-Yp*n,-n),e.lineTo(Yp*n,-n),e.closePath()}},tr=-.5,nr=wr(3)/2,Iy=1/wr(12),K6=(Iy/2+1)*3,Y6={draw(e,t){const n=wr(t/K6),r=n/2,l=n*Iy,o=r,u=n*Iy+n,f=-o,d=u;e.moveTo(r,l),e.lineTo(o,u),e.lineTo(f,d),e.lineTo(tr*r-nr*l,nr*r+tr*l),e.lineTo(tr*o-nr*u,nr*o+tr*u),e.lineTo(tr*f-nr*d,nr*f+tr*d),e.lineTo(tr*r+nr*l,tr*l-nr*r),e.lineTo(tr*o+nr*u,tr*u-nr*o),e.lineTo(tr*f+nr*d,tr*d-nr*f),e.closePath()}};function G6(e,t){let n=null,r=Vg(l);e=typeof e=="function"?e:rt(e||Zg),t=typeof t=="function"?t:rt(t===void 0?64:+t);function l(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return l.type=function(o){return arguments.length?(e=typeof o=="function"?o:rt(o),l):e},l.size=function(o){return arguments.length?(t=typeof o=="function"?o:rt(+o),l):t},l.context=function(o){return arguments.length?(n=o??null,l):n},l}function Tf(){}function Mf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function wN(e){this._context=e}wN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function V6(e){return new wN(e)}function SN(e){this._context=e}SN.prototype={areaStart:Tf,areaEnd:Tf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Mf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X6(e){return new SN(e)}function jN(e){this._context=e}jN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Mf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Z6(e){return new jN(e)}function _N(e){this._context=e}_N.prototype={areaStart:Tf,areaEnd:Tf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function W6(e){return new _N(e)}function Oj(e){return e<0?-1:1}function Aj(e,t,n){var r=e._x1-e._x0,l=t-e._x1,o=(e._y1-e._y0)/(r||l<0&&-0),u=(n-e._y1)/(l||r<0&&-0),f=(o*l+u*r)/(r+l);return(Oj(o)+Oj(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(f))||0}function Ej(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Gp(e,t,n){var r=e._x0,l=e._y0,o=e._x1,u=e._y1,f=(o-r)/3;e._context.bezierCurveTo(r+f,l+f*t,o-f,u-f*n,o,u)}function Df(e){this._context=e}Df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gp(this,this._t0,Ej(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Gp(this,Ej(this,n=Aj(this,e,t)),n);break;default:Gp(this,this._t0,n=Aj(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ON(e){this._context=new AN(e)}(ON.prototype=Object.create(Df.prototype)).point=function(e,t){Df.prototype.point.call(this,t,e)};function AN(e){this._context=e}AN.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,o){this._context.bezierCurveTo(t,e,r,n,o,l)}};function Q6(e){return new Df(e)}function J6(e){return new ON(e)}function EN(e){this._context=e}EN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Nj(e),l=Nj(t),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],l[0][o],r[1][o],l[1][o],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Nj(e){var t,n=e.length-1,r,l=new Array(n),o=new Array(n),u=new Array(n);for(l[0]=0,o[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)l[t]=1,o[t]=4,u[t]=4*e[t]+2*e[t+1];for(l[n-1]=2,o[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=l[t]/o[t-1],o[t]-=r,u[t]-=r*u[t-1];for(l[n-1]=u[n-1]/o[n-1],t=n-2;t>=0;--t)l[t]=(u[t]-l[t+1])/o[t];for(o[n-1]=(e[n]+l[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-l[t+1];return[l,o]}function ez(e){return new EN(e)}function Pd(e,t){this._context=e,this._t=t}Pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function tz(e){return new Pd(e,.5)}function nz(e){return new Pd(e,0)}function rz(e){return new Pd(e,1)}function Zi(e,t){if((u=e.length)>1)for(var n=1,r,l,o=e[t[0]],u,f=o.length;n<u;++n)for(l=o,o=e[t[n]],r=0;r<f;++r)o[r][1]+=o[r][0]=isNaN(l[r][1])?l[r][0]:l[r][1]}function $y(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function az(e,t){return e[t]}function iz(e){const t=[];return t.key=e,t}function lz(){var e=rt([]),t=$y,n=Zi,r=az;function l(o){var u=Array.from(e.apply(this,arguments),iz),f,d=u.length,h=-1,p;for(const y of o)for(f=0,++h;f<d;++f)(u[f][h]=[0,+r(y,u[f].key,h,o)]).data=y;for(f=0,p=Xg(t(u));f<d;++f)u[p[f]].index=f;return n(u,p),u}return l.keys=function(o){return arguments.length?(e=typeof o=="function"?o:rt(Array.from(o)),l):e},l.value=function(o){return arguments.length?(r=typeof o=="function"?o:rt(+o),l):r},l.order=function(o){return arguments.length?(t=o==null?$y:typeof o=="function"?o:rt(Array.from(o)),l):t},l.offset=function(o){return arguments.length?(n=o??Zi,l):n},l}function oz(e,t){if((r=e.length)>0){for(var n,r,l=0,o=e[0].length,u;l<o;++l){for(u=n=0;n<r;++n)u+=e[n][l][1]||0;if(u)for(n=0;n<r;++n)e[n][l][1]/=u}Zi(e,t)}}function sz(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,o=r.length;n<o;++n){for(var u=0,f=0;u<l;++u)f+=e[u][n][1]||0;r[n][1]+=r[n][0]=-f/2}Zi(e,t)}}function uz(e,t){if(!(!((u=e.length)>0)||!((o=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,o,u;r<o;++r){for(var f=0,d=0,h=0;f<u;++f){for(var p=e[t[f]],y=p[r][1]||0,b=p[r-1][1]||0,S=(y-b)/2,w=0;w<f;++w){var j=e[t[w]],_=j[r][1]||0,E=j[r-1][1]||0;S+=_-E}d+=y,h+=S*y}l[r-1][1]+=l[r-1][0]=n,d&&(n-=h/d)}l[r-1][1]+=l[r-1][0]=n,Zi(e,t)}}var Vp={},Xp={},Cj;function cz(){return Cj||(Cj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Xp)),Xp}var Zp={},Tj;function NN(){return Tj||(Tj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Zp)),Zp}var Wp={},Mj;function Wg(){return Mj||(Mj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(Wp)),Wp}var Qp={},Jp={},Dj;function fz(){return Dj||(Dj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Jp)),Jp}var Pj;function Qg(){return Pj||(Pj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fz(),n=Wg();function r(l){if(Array.isArray(l))return l.map(n.toKey);if(typeof l=="symbol")return[l];l=t.toString(l);const o=[],u=l.length;if(u===0)return o;let f=0,d="",h="",p=!1;for(l.charCodeAt(0)===46&&(o.push(""),f++);f<u;){const y=l[f];h?y==="\\"&&f+1<u?(f++,d+=l[f]):y===h?h="":d+=y:p?y==='"'||y==="'"?h=y:y==="]"?(p=!1,o.push(d),d=""):d+=y:y==="["?(p=!0,d&&(o.push(d),d="")):y==="."?d&&(o.push(d),d=""):d+=y,f++}return d&&o.push(d),o}e.toPath=r})(Qp)),Qp}var kj;function Jg(){return kj||(kj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cz(),n=NN(),r=Wg(),l=Qg();function o(f,d,h){if(f==null)return h;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return h;const p=f[d];return p===void 0?n.isDeepKey(d)?o(f,l.toPath(d),h):h:p}case"number":case"symbol":{typeof d=="number"&&(d=r.toKey(d));const p=f[d];return p===void 0?h:p}default:{if(Array.isArray(d))return u(f,d,h);if(Object.is(d==null?void 0:d.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return h;const p=f[d];return p===void 0?h:p}}}function u(f,d,h){if(d.length===0)return h;let p=f;for(let y=0;y<d.length;y++){if(p==null||t.isUnsafeProperty(d[y]))return h;p=p[d[y]]}return p===void 0?h:p}e.get=o})(Vp)),Vp}var ev,Rj;function dz(){return Rj||(Rj=1,ev=Jg().get),ev}var hz=dz();const Wi=Rr(hz);var mz=4;function ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mz,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((l,o,u)=>{var f=n[u-1];return typeof f=="string"?l+f+o:f!==void 0?l+ti(f)+o:l+o},"")}var Kt=e=>e===0?0:e>0?1:-1,gr=e=>typeof e=="number"&&e!=+e,Qi=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!gr(e),Dr=e=>he(e)||typeof e=="string",pz=0,$s=e=>{var t=++pz;return"".concat(e||"").concat(t)},on=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!he(t)&&typeof t!="string")return r;var o;if(Qi(t)){if(n==null)return r;var u=t.indexOf("%");o=n*parseFloat(t.slice(0,u))/100}else o=+t;return gr(o)&&(o=r),l&&n!=null&&o>n&&(o=n),o},CN=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function st(e,t,n){return he(e)&&he(t)?ti(e+n*(t-e)):t}function TN(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Wi(r,t))===n)}var bt=e=>e===null||typeof e>"u",lu=e=>bt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Sn(e){return e!=null}function al(){}var vz=["type","size","sizeType"];function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uy.apply(null,arguments)}function zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Lj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zj(Object(n),!0).forEach(function(r){yz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yz(e,t,n){return(t=gz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e){var t=bz(e,"string");return typeof t=="symbol"?t:t+""}function bz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xz(e,t){if(e==null)return{};var n,r,l=wz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function wz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var MN={symbolCircle:Zg,symbolCross:z6,symbolDiamond:B6,symbolSquare:I6,symbolStar:H6,symbolTriangle:F6,symbolWye:Y6},Sz=Math.PI/180,jz=e=>{var t="symbol".concat(lu(e));return MN[t]||Zg},_z=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*Sz;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Oz=(e,t)=>{MN["symbol".concat(lu(e))]=t},e0=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,l=xz(e,vz),o=Lj(Lj({},l),{},{type:t,size:n,sizeType:r}),u="circle";typeof t=="string"&&(u=t);var f=()=>{var b=jz(u),S=G6().type(b).size(_z(n,r,u)),w=S();if(w!==null)return w},{className:d,cx:h,cy:p}=o,y=hn(o);return he(h)&&he(p)&&he(n)?x.createElement("path",Uy({},y,{className:Ue("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};e0.registerSymbol=Oz;var DN=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,t0=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(x.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(l=>{Yg(l)&&(r[l]=(o=>n[l](n,o)))}),r},Az=(e,t,n)=>r=>(e(t,n,r),null),ou=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(l=>{var o=e[l];Yg(l)&&typeof o=="function"&&(r||(r={}),r[l]=Az(o,t,n))}),r};function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){Nz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nz(e,t,n){return(t=Cz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cz(e){var t=Tz(e,"string");return typeof t=="symbol"?t:t+""}function Tz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kt(e,t){var n=Ez({},e),r=t,l=Object.keys(t),o=l.reduce((u,f)=>(u[f]===void 0&&r[f]!==void 0&&(u[f]=r[f]),u),n);return o}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(null,arguments)}function Ij(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Mz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ij(Object(n),!0).forEach(function(r){Dz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ij(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dz(e,t,n){return(t=Pz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pz(e){var t=kz(e,"string");return typeof t=="symbol"?t:t+""}function kz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ar=32,Rz={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function zz(e){var{data:t,iconType:n,inactiveColor:r}=e,l=ar/2,o=ar/6,u=ar/3,f=t.inactive?r:t.color,d=n??t.type;if(d==="none")return null;if(d==="plainline"){var h;return x.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:(h=t.payload)===null||h===void 0?void 0:h.strokeDasharray,x1:0,y1:l,x2:ar,y2:l,className:"recharts-legend-icon"})}if(d==="line")return x.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(l,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(l,`
            H`).concat(ar,"M").concat(2*u,",").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(l),className:"recharts-legend-icon"});if(d==="rect")return x.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(ar/8,"h").concat(ar,"v").concat(ar*3/4,"h").concat(-ar,"z"),className:"recharts-legend-icon"});if(x.isValidElement(t.legendIcon)){var p=Mz({},t);return delete p.legendIcon,x.cloneElement(t.legendIcon,p)}return x.createElement(e0,{fill:f,cx:l,cy:l,size:ar,sizeType:"diameter",type:d})}function Lz(e){var{payload:t,iconSize:n,layout:r,formatter:l,inactiveColor:o,iconType:u}=e,f={x:0,y:0,width:ar,height:ar},d={display:r==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((p,y)=>{var b=p.formatter||l,S=Ue({"recharts-legend-item":!0,["legend-item-".concat(y)]:!0,inactive:p.inactive});if(p.type==="none")return null;var w=p.inactive?o:p.color,j=b?b(p.value,p,y):p.value;return x.createElement("li",Pf({className:S,style:d,key:"legend-item-".concat(y)},ou(e,p,y)),x.createElement(Gg,{width:n,height:n,viewBox:f,style:h,"aria-label":"".concat(j," legend icon")},x.createElement(zz,{data:p,iconType:u,inactiveColor:o})),x.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},j))})}var Bz=e=>{var t=kt(e,Rz),{payload:n,layout:r,align:l}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?l:"left"};return x.createElement("ul",{className:"recharts-default-legend",style:o},x.createElement(Lz,Pf({},t,{payload:n})))},tv={},nv={},$j;function Iz(){return $j||($j=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const l=new Map;for(let o=0;o<n.length;o++){const u=n[o],f=r(u,o,n);l.has(f)||l.set(f,u)}return Array.from(l.values())}e.uniqBy=t})(nv)),nv}var rv={},Uj;function $z(){return Uj||(Uj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...l){return n.apply(this,l.slice(0,r))}}e.ary=t})(rv)),rv}var av={},qj;function PN(){return qj||(qj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(av)),av}var iv={},lv={},ov={},Hj;function Uz(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(ov)),ov}var Fj;function n0(){return Fj||(Fj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uz();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(lv)),lv}var sv={},Kj;function qz(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(sv)),sv}var Yj;function Hz(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=n0(),n=qz();function r(l){return n.isObjectLike(l)&&t.isArrayLike(l)}e.isArrayLikeObject=r})(iv)),iv}var uv={},cv={},Gj;function Fz(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jg();function n(r){return function(l){return t.get(l,r)}}e.property=n})(cv)),cv}var fv={},dv={},hv={},mv={},Vj;function kN(){return Vj||(Vj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(mv)),mv}var pv={},Xj;function RN(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(pv)),pv}var vv={},Zj;function zN(){return Zj||(Zj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(vv)),vv}var Wj;function Kz(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kN(),n=RN(),r=zN();function l(p,y,b){return typeof b!="function"?l(p,y,()=>{}):o(p,y,function S(w,j,_,E,A,T){const C=b(w,j,_,E,A,T);return C!==void 0?!!C:o(w,j,S,T)},new Map)}function o(p,y,b,S){if(y===p)return!0;switch(typeof y){case"object":return u(p,y,b,S);case"function":return Object.keys(y).length>0?o(p,{...y},b,S):r.isEqualsSameValueZero(p,y);default:return t.isObject(p)?typeof y=="string"?y==="":!0:r.isEqualsSameValueZero(p,y)}}function u(p,y,b,S){if(y==null)return!0;if(Array.isArray(y))return d(p,y,b,S);if(y instanceof Map)return f(p,y,b,S);if(y instanceof Set)return h(p,y,b,S);const w=Object.keys(y);if(p==null||n.isPrimitive(p))return w.length===0;if(w.length===0)return!0;if(S!=null&&S.has(y))return S.get(y)===p;S==null||S.set(y,p);try{for(let j=0;j<w.length;j++){const _=w[j];if(!n.isPrimitive(p)&&!(_ in p)||y[_]===void 0&&p[_]!==void 0||y[_]===null&&p[_]!==null||!b(p[_],y[_],_,p,y,S))return!1}return!0}finally{S==null||S.delete(y)}}function f(p,y,b,S){if(y.size===0)return!0;if(!(p instanceof Map))return!1;for(const[w,j]of y.entries()){const _=p.get(w);if(b(_,j,w,p,y,S)===!1)return!1}return!0}function d(p,y,b,S){if(y.length===0)return!0;if(!Array.isArray(p))return!1;const w=new Set;for(let j=0;j<y.length;j++){const _=y[j];let E=!1;for(let A=0;A<p.length;A++){if(w.has(A))continue;const T=p[A];let C=!1;if(b(T,_,j,p,y,S)&&(C=!0),C){w.add(A),E=!0;break}}if(!E)return!1}return!0}function h(p,y,b,S){return y.size===0?!0:p instanceof Set?d([...p],[...y],b,S):!1}e.isMatchWith=l,e.isSetMatch=h})(hv)),hv}var Qj;function LN(){return Qj||(Qj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kz();function n(r,l){return t.isMatchWith(r,l,()=>{})}e.isMatch=n})(dv)),dv}var yv={},gv={},bv={},Jj;function Yz(){return Jj||(Jj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(bv)),bv}var xv={},e2;function r0(){return e2||(e2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(xv)),xv}var wv={},t2;function BN(){return t2||(t2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",l="[object Boolean]",o="[object Arguments]",u="[object Symbol]",f="[object Date]",d="[object Map]",h="[object Set]",p="[object Array]",y="[object Function]",b="[object ArrayBuffer]",S="[object Object]",w="[object Error]",j="[object DataView]",_="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",C="[object BigUint64Array]",P="[object Int8Array]",M="[object Int16Array]",D="[object Int32Array]",I="[object BigInt64Array]",V="[object Float32Array]",X="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=b,e.arrayTag=p,e.bigInt64ArrayTag=I,e.bigUint64ArrayTag=C,e.booleanTag=l,e.dataViewTag=j,e.dateTag=f,e.errorTag=w,e.float32ArrayTag=V,e.float64ArrayTag=X,e.functionTag=y,e.int16ArrayTag=M,e.int32ArrayTag=D,e.int8ArrayTag=P,e.mapTag=d,e.numberTag=r,e.objectTag=S,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=u,e.uint16ArrayTag=A,e.uint32ArrayTag=T,e.uint8ArrayTag=_,e.uint8ClampedArrayTag=E})(wv)),wv}var Sv={},n2;function Gz(){return n2||(n2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(Sv)),Sv}var r2;function IN(){return r2||(r2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yz(),n=r0(),r=BN(),l=RN(),o=Gz();function u(p,y){return f(p,void 0,p,new Map,y)}function f(p,y,b,S=new Map,w=void 0){const j=w==null?void 0:w(p,y,b,S);if(j!==void 0)return j;if(l.isPrimitive(p))return p;if(S.has(p))return S.get(p);if(Array.isArray(p)){const _=new Array(p.length);S.set(p,_);for(let E=0;E<p.length;E++)_[E]=f(p[E],E,b,S,w);return Object.hasOwn(p,"index")&&(_.index=p.index),Object.hasOwn(p,"input")&&(_.input=p.input),_}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const _=new RegExp(p.source,p.flags);return _.lastIndex=p.lastIndex,_}if(p instanceof Map){const _=new Map;S.set(p,_);for(const[E,A]of p)_.set(E,f(A,E,b,S,w));return _}if(p instanceof Set){const _=new Set;S.set(p,_);for(const E of p)_.add(f(E,void 0,b,S,w));return _}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(o.isTypedArray(p)){const _=new(Object.getPrototypeOf(p)).constructor(p.length);S.set(p,_);for(let E=0;E<p.length;E++)_[E]=f(p[E],E,b,S,w);return _}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const _=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return S.set(p,_),d(_,p,b,S,w),_}if(typeof File<"u"&&p instanceof File){const _=new File([p],p.name,{type:p.type});return S.set(p,_),d(_,p,b,S,w),_}if(typeof Blob<"u"&&p instanceof Blob){const _=new Blob([p],{type:p.type});return S.set(p,_),d(_,p,b,S,w),_}if(p instanceof Error){const _=new p.constructor;return S.set(p,_),_.message=p.message,_.name=p.name,_.stack=p.stack,_.cause=p.cause,d(_,p,b,S,w),_}if(p instanceof Boolean){const _=new Boolean(p.valueOf());return S.set(p,_),d(_,p,b,S,w),_}if(p instanceof Number){const _=new Number(p.valueOf());return S.set(p,_),d(_,p,b,S,w),_}if(p instanceof String){const _=new String(p.valueOf());return S.set(p,_),d(_,p,b,S,w),_}if(typeof p=="object"&&h(p)){const _=Object.create(Object.getPrototypeOf(p));return S.set(p,_),d(_,p,b,S,w),_}return p}function d(p,y,b=p,S,w){const j=[...Object.keys(y),...t.getSymbols(y)];for(let _=0;_<j.length;_++){const E=j[_],A=Object.getOwnPropertyDescriptor(p,E);(A==null||A.writable)&&(p[E]=f(y[E],E,b,S,w))}}function h(p){switch(n.getTag(p)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=u,e.cloneDeepWithImpl=f,e.copyProperties=d})(gv)),gv}var a2;function Vz(){return a2||(a2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IN();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(yv)),yv}var i2;function Xz(){return i2||(i2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LN(),n=Vz();function r(l){return l=n.cloneDeep(l),o=>t.isMatch(o,l)}e.matches=r})(fv)),fv}var jv={},_v={},Ov={},l2;function Zz(){return l2||(l2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IN(),n=r0(),r=BN();function l(o,u){return t.cloneDeepWith(o,(f,d,h,p)=>{const y=u==null?void 0:u(f,d,h,p);if(y!==void 0)return y;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const b={};return p.set(o,b),t.copyProperties(b,o,h,p),b}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const b=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(b,o),b}case r.argumentsTag:{const b={};return t.copyProperties(b,o),b.length=o.length,b[Symbol.iterator]=o[Symbol.iterator],b}default:return}}})}e.cloneDeepWith=l})(Ov)),Ov}var o2;function Wz(){return o2||(o2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zz();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(_v)),_v}var Av={},Ev={},s2;function $N(){return s2||(s2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,l=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<l;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Ev)),Ev}var Nv={},u2;function Qz(){return u2||(u2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r0();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Nv)),Nv}var c2;function Jz(){return c2||(c2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NN(),n=$N(),r=Qz(),l=Qg();function o(u,f){let d;if(Array.isArray(f)?d=f:typeof f=="string"&&t.isDeepKey(f)&&(u==null?void 0:u[f])==null?d=l.toPath(f):d=[f],d.length===0)return!1;let h=u;for(let p=0;p<d.length;p++){const y=d[p];if((h==null||!Object.hasOwn(h,y))&&!((Array.isArray(h)||r.isArguments(h))&&n.isIndex(y)&&y<h.length))return!1;h=h[y]}return!0}e.has=o})(Av)),Av}var f2;function e8(){return f2||(f2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LN(),n=Wg(),r=Wz(),l=Jg(),o=Jz();function u(f,d){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=n.toKey(f);break}}return d=r.cloneDeep(d),function(h){const p=l.get(h,f);return p===void 0?o.has(h,f):d===void 0?p===void 0:t.isMatch(p,d)}}e.matchesProperty=u})(jv)),jv}var d2;function t8(){return d2||(d2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PN(),n=Fz(),r=Xz(),l=e8();function o(u){if(u==null)return t.identity;switch(typeof u){case"function":return u;case"object":return Array.isArray(u)&&u.length===2?l.matchesProperty(u[0],u[1]):r.matches(u);case"string":case"symbol":case"number":return n.property(u)}}e.iteratee=o})(uv)),uv}var h2;function n8(){return h2||(h2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iz(),n=$z(),r=PN(),l=Hz(),o=t8();function u(f,d=r.identity){return l.isArrayLikeObject(f)?t.uniqBy(Array.from(f),n.ary(o.iteratee(d),1)):[]}e.uniqBy=u})(tv)),tv}var Cv,m2;function r8(){return m2||(m2=1,Cv=n8().uniqBy),Cv}var a8=r8();const p2=Rr(a8);function UN(e,t,n){return t===!0?p2(e,n):typeof t=="function"?p2(e,t):e}var Tv={exports:{}},Mv={},Dv={exports:{}},Pv={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var v2;function i8(){if(v2)return Pv;v2=1;var e=vo();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(y,b){var S=b(),w=r({inst:{value:S,getSnapshot:b}}),j=w[0].inst,_=w[1];return o(function(){j.value=S,j.getSnapshot=b,d(j)&&_({inst:j})},[y,S,b]),l(function(){return d(j)&&_({inst:j}),y(function(){d(j)&&_({inst:j})})},[y]),u(S),S}function d(y){var b=y.getSnapshot;y=y.value;try{var S=b();return!n(y,S)}catch{return!0}}function h(y,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Pv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Pv}var y2;function l8(){return y2||(y2=1,Dv.exports=i8()),Dv.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var g2;function o8(){if(g2)return Mv;g2=1;var e=vo(),t=l8();function n(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Mv.useSyncExternalStoreWithSelector=function(h,p,y,b,S){var w=o(null);if(w.current===null){var j={hasValue:!1,value:null};w.current=j}else j=w.current;w=f(function(){function E(M){if(!A){if(A=!0,T=M,M=b(M),S!==void 0&&j.hasValue){var D=j.value;if(S(D,M))return C=D}return C=M}if(D=C,r(T,M))return D;var I=b(M);return S!==void 0&&S(D,I)?(T=M,D):(T=M,C=I)}var A=!1,T,C,P=y===void 0?null:y;return[function(){return E(p())},P===null?void 0:function(){return E(P())}]},[p,y,b,S]);var _=l(h,w[0],w[1]);return u(function(){j.hasValue=!0,j.value=_},[_]),d(_),_},Mv}var b2;function s8(){return b2||(b2=1,Tv.exports=o8()),Tv.exports}var u8=s8(),a0=x.createContext(null),c8=e=>e,at=()=>{var e=x.useContext(a0);return e?e.store.dispatch:c8},yf=()=>{},f8=()=>yf,d8=(e,t)=>e===t;function ye(e){var t=x.useContext(a0),n=x.useMemo(()=>t?r=>{if(r!=null)return e(r)}:yf,[t,e]);return u8.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:f8,t?t.store.getState:yf,t?t.store.getState:yf,n,d8)}function h8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function m8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function p8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var x2=e=>Array.isArray(e)?e:[e];function v8(e){const t=Array.isArray(e[0])?e[0]:e;return p8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function y8(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}var g8=class{constructor(e){this.value=e}deref(){return this.value}},b8=typeof WeakRef<"u"?WeakRef:g8,x8=0,w2=1;function Gc(){return{s:x8,v:void 0,o:null,p:null}}function qN(e,t={}){let n=Gc();const{resultEqualityCheck:r}=t;let l,o=0;function u(){var y;let f=n;const{length:d}=arguments;for(let b=0,S=d;b<S;b++){const w=arguments[b];if(typeof w=="function"||typeof w=="object"&&w!==null){let j=f.o;j===null&&(f.o=j=new WeakMap);const _=j.get(w);_===void 0?(f=Gc(),j.set(w,f)):f=_}else{let j=f.p;j===null&&(f.p=j=new Map);const _=j.get(w);_===void 0?(f=Gc(),j.set(w,f)):f=_}}const h=f;let p;if(f.s===w2)p=f.v;else if(p=e.apply(null,arguments),o++,r){const b=((y=l==null?void 0:l.deref)==null?void 0:y.call(l))??l;b!=null&&r(b,p)&&(p=b,o!==0&&o--),l=typeof p=="object"&&p!==null||typeof p=="function"?new b8(p):p}return h.s=w2,h.v=p,p}return u.clearCache=()=>{n=Gc(),u.resetResultsCount()},u.resultsCount=()=>o,u.resetResultsCount=()=>{o=0},u}function w8(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...l)=>{let o=0,u=0,f,d={},h=l.pop();typeof h=="object"&&(d=h,h=l.pop()),h8(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...n,...d},{memoize:y,memoizeOptions:b=[],argsMemoize:S=qN,argsMemoizeOptions:w=[]}=p,j=x2(b),_=x2(w),E=v8(l),A=y(function(){return o++,h.apply(null,arguments)},...j),T=S(function(){u++;const P=y8(E,arguments);return f=A.apply(null,P),f},..._);return Object.assign(T,{resultFunc:h,memoizedResultFunc:A,dependencies:E,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:y,argsMemoize:S})};return Object.assign(r,{withTypes:()=>r}),r}var H=w8(qN),S8=Object.assign((e,t=H)=>{m8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((u,f,d)=>(u[n[d]]=f,u),{}))},{withTypes:()=>S8}),kv={},Rv={},zv={},S2;function j8(){return S2||(S2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,l,o)=>{if(r!==l){const u=t(r),f=t(l);if(u===f&&u===0){if(r<l)return o==="desc"?1:-1;if(r>l)return o==="desc"?-1:1}return o==="desc"?f-u:u-f}return 0};e.compareValues=n})(zv)),zv}var Lv={},Bv={},j2;function HN(){return j2||(j2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Bv)),Bv}var _2;function _8(){return _2||(_2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=HN(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function l(o,u){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||u!=null&&Object.hasOwn(u,o)}e.isKey=l})(Lv)),Lv}var O2;function O8(){return O2||(O2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j8(),n=_8(),r=Qg();function l(o,u,f,d){if(o==null)return[];f=d?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(u)||(u=u==null?[null]:[u]),u.length===0&&(u=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(S=>String(S));const h=(S,w)=>{let j=S;for(let _=0;_<w.length&&j!=null;++_)j=j[w[_]];return j},p=(S,w)=>w==null||S==null?w:typeof S=="object"&&"key"in S?Object.hasOwn(w,S.key)?w[S.key]:h(w,S.path):typeof S=="function"?S(w):Array.isArray(S)?h(w,S):typeof w=="object"?w[S]:w,y=u.map(S=>(Array.isArray(S)&&S.length===1&&(S=S[0]),S==null||typeof S=="function"||Array.isArray(S)||n.isKey(S)?S:{key:S,path:r.toPath(S)}));return o.map(S=>({original:S,criteria:y.map(w=>p(w,S))})).slice().sort((S,w)=>{for(let j=0;j<y.length;j++){const _=t.compareValues(S.criteria[j],w.criteria[j],f[j]);if(_!==0)return _}return 0}).map(S=>S.original)}e.orderBy=l})(Rv)),Rv}var Iv={},A2;function A8(){return A2||(A2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const l=[],o=Math.floor(r),u=(f,d)=>{for(let h=0;h<f.length;h++){const p=f[h];Array.isArray(p)&&d<o?u(p,d+1):l.push(p)}};return u(n,0),l}e.flatten=t})(Iv)),Iv}var $v={},E2;function FN(){return E2||(E2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$N(),n=n0(),r=kN(),l=zN();function o(u,f,d){return r.isObject(d)&&(typeof f=="number"&&n.isArrayLike(d)&&t.isIndex(f)&&f<d.length||typeof f=="string"&&f in d)?l.isEqualsSameValueZero(d[f],u):!1}e.isIterateeCall=o})($v)),$v}var N2;function E8(){return N2||(N2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=O8(),n=A8(),r=FN();function l(o,...u){const f=u.length;return f>1&&r.isIterateeCall(o,u[0],u[1])?u=[]:f>2&&r.isIterateeCall(u[0],u[1],u[2])&&(u=[u[0]]),t.orderBy(o,n.flatten(u),["asc"])}e.sortBy=l})(kv)),kv}var Uv,C2;function N8(){return C2||(C2=1,Uv=E8().sortBy),Uv}var C8=N8();const kd=Rr(C8);var KN=e=>e.legend.settings,T8=e=>e.legend.size,M8=e=>e.legend.payload,D8=H([M8,KN],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?kd(r,n):r});function P8(){return ye(D8)}var Vc=1;function YN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=x.useState({height:0,left:0,top:0,width:0}),r=x.useCallback(l=>{if(l!=null){var o=l.getBoundingClientRect(),u={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(u.height-t.height)>Vc||Math.abs(u.left-t.left)>Vc||Math.abs(u.top-t.top)>Vc||Math.abs(u.width-t.width)>Vc)&&n({height:u.height,left:u.left,top:u.top,width:u.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Jt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var k8=typeof Symbol=="function"&&Symbol.observable||"@@observable",T2=k8,qv=()=>Math.random().toString(36).substring(7).split("").join("."),R8={INIT:`@@redux/INIT${qv()}`,REPLACE:`@@redux/REPLACE${qv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qv()}`},kf=R8;function i0(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function GN(e,t,n){if(typeof e!="function")throw new Error(Jt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Jt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Jt(1));return n(GN)(e,t)}let r=e,l=t,o=new Map,u=o,f=0,d=!1;function h(){u===o&&(u=new Map,o.forEach((_,E)=>{u.set(E,_)}))}function p(){if(d)throw new Error(Jt(3));return l}function y(_){if(typeof _!="function")throw new Error(Jt(4));if(d)throw new Error(Jt(5));let E=!0;h();const A=f++;return u.set(A,_),function(){if(E){if(d)throw new Error(Jt(6));E=!1,h(),u.delete(A),o=null}}}function b(_){if(!i0(_))throw new Error(Jt(7));if(typeof _.type>"u")throw new Error(Jt(8));if(typeof _.type!="string")throw new Error(Jt(17));if(d)throw new Error(Jt(9));try{d=!0,l=r(l,_)}finally{d=!1}return(o=u).forEach(A=>{A()}),_}function S(_){if(typeof _!="function")throw new Error(Jt(10));r=_,b({type:kf.REPLACE})}function w(){const _=y;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Jt(11));function A(){const C=E;C.next&&C.next(p())}return A(),{unsubscribe:_(A)}},[T2](){return this}}}return b({type:kf.INIT}),{dispatch:b,subscribe:y,getState:p,replaceReducer:S,[T2]:w}}function z8(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:kf.INIT})>"u")throw new Error(Jt(12));if(typeof n(void 0,{type:kf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Jt(13))})}function VN(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const u=t[o];typeof e[u]=="function"&&(n[u]=e[u])}const r=Object.keys(n);let l;try{z8(n)}catch(o){l=o}return function(u={},f){if(l)throw l;let d=!1;const h={};for(let p=0;p<r.length;p++){const y=r[p],b=n[y],S=u[y],w=b(S,f);if(typeof w>"u")throw f&&f.type,new Error(Jt(14));h[y]=w,d=d||w!==S}return d=d||r.length!==Object.keys(u).length,d?h:u}}function Rf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function L8(...e){return t=>(n,r)=>{const l=t(n,r);let o=()=>{throw new Error(Jt(15))};const u={getState:l.getState,dispatch:(d,...h)=>o(d,...h)},f=e.map(d=>d(u));return o=Rf(...f)(l.dispatch),{...l,dispatch:o}}}function XN(e){return i0(e)&&"type"in e&&typeof e.type=="string"}var ZN=Symbol.for("immer-nothing"),M2=Symbol.for("immer-draftable"),mn=Symbol.for("immer-state");function mr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Un=Object,so=Un.getPrototypeOf,zf="constructor",Rd="prototype",qy="configurable",Lf="enumerable",gf="writable",Us="value",da=e=>!!e&&!!e[mn];function br(e){var t;return e?WN(e)||Ld(e)||!!e[M2]||!!((t=e[zf])!=null&&t[M2])||Bd(e)||Id(e):!1}var B8=Un[Rd][zf].toString(),D2=new WeakMap;function WN(e){if(!e||!l0(e))return!1;const t=so(e);if(t===null||t===Un[Rd])return!0;const n=Un.hasOwnProperty.call(t,zf)&&t[zf];if(n===Object)return!0;if(!Ql(n))return!1;let r=D2.get(n);return r===void 0&&(r=Function.toString.call(n),D2.set(n,r)),r===B8}function zd(e,t,n=!0){su(e)===0?(n?Reflect.ownKeys(e):Un.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function su(e){const t=e[mn];return t?t.type_:Ld(e)?1:Bd(e)?2:Id(e)?3:0}var P2=(e,t,n=su(e))=>n===2?e.has(t):Un[Rd].hasOwnProperty.call(e,t),Hy=(e,t,n=su(e))=>n===2?e.get(t):e[t],Bf=(e,t,n,r=su(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function I8(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ld=Array.isArray,Bd=e=>e instanceof Map,Id=e=>e instanceof Set,l0=e=>typeof e=="object",Ql=e=>typeof e=="function",Hv=e=>typeof e=="boolean";function $8(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ia=e=>e.copy_||e.base_,o0=e=>e.modified_?e.copy_:e.base_;function Fy(e,t){if(Bd(e))return new Map(e);if(Id(e))return new Set(e);if(Ld(e))return Array[Rd].slice.call(e);const n=WN(e);if(t===!0||t==="class_only"&&!n){const r=Un.getOwnPropertyDescriptors(e);delete r[mn];let l=Reflect.ownKeys(r);for(let o=0;o<l.length;o++){const u=l[o],f=r[u];f[gf]===!1&&(f[gf]=!0,f[qy]=!0),(f.get||f.set)&&(r[u]={[qy]:!0,[gf]:!0,[Lf]:f[Lf],[Us]:e[u]})}return Un.create(so(e),r)}else{const r=so(e);if(r!==null&&n)return{...e};const l=Un.create(r);return Un.assign(l,e)}}function s0(e,t=!1){return $d(e)||da(e)||!br(e)||(su(e)>1&&Un.defineProperties(e,{set:Xc,add:Xc,clear:Xc,delete:Xc}),Un.freeze(e),t&&zd(e,(n,r)=>{s0(r,!0)},!1)),e}function U8(){mr(2)}var Xc={[Us]:U8};function $d(e){return e===null||!l0(e)?!0:Un.isFrozen(e)}var If="MapSet",Ky="Patches",k2="ArrayMethods",QN={};function Ji(e){const t=QN[e];return t||mr(0,e),t}var R2=e=>!!QN[e],qs,JN=()=>qs,q8=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:R2(If)?Ji(If):void 0,arrayMethodsPlugin_:R2(k2)?Ji(k2):void 0});function z2(e,t){t&&(e.patchPlugin_=Ji(Ky),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yy(e){Gy(e),e.drafts_.forEach(H8),e.drafts_=null}function Gy(e){e===qs&&(qs=e.parent_)}var L2=e=>qs=q8(qs,e);function H8(e){const t=e[mn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function B2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[mn].modified_&&(Yy(t),mr(4)),br(e)&&(e=I2(t,e));const{patchPlugin_:l}=t;l&&l.generateReplacementPatches_(n[mn].base_,e,t)}else e=I2(t,n);return F8(t,e,!0),Yy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ZN?e:void 0}function I2(e,t){if($d(t))return t;const n=t[mn];if(!n)return $f(t,e.handledSet_,e);if(!Ud(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);nC(n,e)}return n.copy_}function F8(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&s0(t,n)}function eC(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ud=(e,t)=>e.scope_===t,K8=[];function tC(e,t,n,r){const l=ia(e),o=e.type_;if(r!==void 0&&Hy(l,r,o)===t){Bf(l,r,n,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;zd(l,(d,h)=>{if(da(h)){const p=f.get(h)||[];p.push(d),f.set(h,p)}})}const u=e.draftLocations_.get(t)??K8;for(const f of u)Bf(l,f,n,o)}function Y8(e,t,n){e.callbacks_.push(function(l){var f;const o=t;if(!o||!Ud(o,l))return;(f=l.mapSetPlugin_)==null||f.fixSetContents(o);const u=o0(o);tC(e,o.draft_??o,u,n),nC(o,l)})}function nC(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:l}=t;if(l){const o=l.getPath(e);o&&l.generatePatches_(e,o,t)}eC(e)}}function G8(e,t,n){const{scope_:r}=e;if(da(n)){const l=n[mn];Ud(l,r)&&l.callbacks_.push(function(){bf(e);const u=o0(l);tC(e,n,u,t)})}else br(n)&&e.callbacks_.push(function(){const o=ia(e);e.type_===3?o.has(n)&&$f(n,r.handledSet_,r):Hy(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&$f(Hy(e.copy_,t,e.type_),r.handledSet_,r)})}function $f(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||da(e)||t.has(e)||!br(e)||$d(e)||(t.add(e),zd(e,(r,l)=>{if(da(l)){const o=l[mn];if(Ud(o,n)){const u=o0(o);Bf(e,r,u,e.type_),eC(o)}}else br(l)&&$f(l,t,n)})),e}function V8(e,t){const n=Ld(e),r={type_:n?1:0,scope_:t?t.scope_:JN(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let l=r,o=Uf;n&&(l=[r],o=Hs);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,[f,r]}var Uf={get(e,t){if(t===mn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const l=ia(e);if(!P2(l,t,e.type_))return X8(e,l,t);const o=l[t];if(e.finalized_||!br(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&$8(t))return o;if(o===Fv(e.base_,t)){bf(e);const u=e.type_===1?+t:t,f=Xy(e.scope_,o,e,u);return e.copy_[u]=f}return o},has(e,t){return t in ia(e)},ownKeys(e){return Reflect.ownKeys(ia(e))},set(e,t,n){const r=rC(ia(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Fv(ia(e),t),o=l==null?void 0:l[mn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(I8(n,l)&&(n!==void 0||P2(e.base_,t,e.type_)))return!0;bf(e),Vy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),G8(e,t,n)),!0},deleteProperty(e,t){return bf(e),Fv(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Vy(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ia(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[gf]:!0,[qy]:e.type_!==1||t!=="length",[Lf]:r[Lf],[Us]:n[t]}},defineProperty(){mr(11)},getPrototypeOf(e){return so(e.base_)},setPrototypeOf(){mr(12)}},Hs={};for(let e in Uf){let t=Uf[e];Hs[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Hs.deleteProperty=function(e,t){return Hs.set.call(this,e,t,void 0)};Hs.set=function(e,t,n){return Uf.set.call(this,e[0],t,n,e[0])};function Fv(e,t){const n=e[mn];return(n?ia(n):e)[t]}function X8(e,t,n){var l;const r=rC(t,n);return r?Us in r?r[Us]:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function rC(e,t){if(!(t in e))return;let n=so(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=so(n)}}function Vy(e){e.modified_||(e.modified_=!0,e.parent_&&Vy(e.parent_))}function bf(e){e.copy_||(e.assigned_=new Map,e.copy_=Fy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Z8=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,l)=>{if(Ql(n)&&!Ql(r)){const u=r;r=n;const f=this;return function(h=u,...p){return f.produce(h,y=>r.call(this,y,...p))}}Ql(r)||mr(6),l!==void 0&&!Ql(l)&&mr(7);let o;if(br(n)){const u=L2(this),f=Xy(u,n,void 0);let d=!0;try{o=r(f),d=!1}finally{d?Yy(u):Gy(u)}return z2(u,l),B2(o,u)}else if(!n||!l0(n)){if(o=r(n),o===void 0&&(o=n),o===ZN&&(o=void 0),this.autoFreeze_&&s0(o,!0),l){const u=[],f=[];Ji(Ky).generateReplacementPatches_(n,o,{patches_:u,inversePatches_:f}),l(u,f)}return o}else mr(1,n)},this.produceWithPatches=(n,r)=>{if(Ql(n))return(f,...d)=>this.produceWithPatches(f,h=>n(h,...d));let l,o;return[this.produce(n,r,(f,d)=>{l=f,o=d}),l,o]},Hv(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Hv(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Hv(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){br(t)||mr(8),da(t)&&(t=yr(t));const n=L2(this),r=Xy(n,t,void 0);return r[mn].isManual_=!0,Gy(n),r}finishDraft(t,n){const r=t&&t[mn];(!r||!r.isManual_)&&mr(9);const{scope_:l}=r;return z2(l,n),B2(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const l=Ji(Ky).applyPatches_;return da(t)?l(t,n):this.produce(t,o=>l(o,n))}};function Xy(e,t,n,r){const[l,o]=Bd(t)?Ji(If).proxyMap_(t,n):Id(t)?Ji(If).proxySet_(t,n):V8(t,n);return((n==null?void 0:n.scope_)??JN()).drafts_.push(l),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?Y8(n,o,r):o.callbacks_.push(function(d){var p;(p=d.mapSetPlugin_)==null||p.fixSetContents(o);const{patchPlugin_:h}=d;o.modified_&&h&&h.generatePatches_(o,[],d)}),l}function yr(e){return da(e)||mr(10,e),aC(e)}function aC(e){if(!br(e)||$d(e))return e;const t=e[mn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fy(e,!0);return zd(n,(l,o)=>{Bf(n,l,aC(o))},r),t&&(t.finalized_=!1),n}var W8=new Z8,iC=W8.produce;function lC(e){return({dispatch:n,getState:r})=>l=>o=>typeof o=="function"?o(n,r,e):l(o)}var Q8=lC(),J8=lC,eL=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rf:Rf.apply(null,arguments)};function or(e,t){function n(...r){if(t){let l=t(...r);if(!l)throw new Error(qn(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>XN(r)&&r.type===e,n}var oC=class Rs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Rs.prototype)}static get[Symbol.species](){return Rs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Rs(...t[0].concat(this)):new Rs(...t.concat(this))}};function $2(e){return br(e)?iC(e,()=>{}):e}function Zc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function tL(e){return typeof e=="boolean"}var nL=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:l=!0,actionCreatorCheck:o=!0}=t??{};let u=new oC;return n&&(tL(n)?u.push(Q8):u.push(J8(n.extraArgument))),u},sC="RTK_autoBatch",ft=()=>e=>({payload:e,meta:{[sC]:!0}}),U2=e=>t=>{setTimeout(t,e)},uC=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let l=!0,o=!1,u=!1;const f=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:U2(10):e.type==="callback"?e.queueNotification:U2(e.timeout),h=()=>{u=!1,o&&(o=!1,f.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const y=()=>l&&p(),b=r.subscribe(y);return f.add(p),()=>{b(),f.delete(p)}},dispatch(p){var y;try{return l=!((y=p==null?void 0:p.meta)!=null&&y[sC]),o=!l,o&&(u||(u=!0,d(h))),r.dispatch(p)}finally{l=!0}}})},rL=e=>function(n){const{autoBatch:r=!0}=n??{};let l=new oC(e);return r&&l.push(uC(typeof r=="object"?r:void 0)),l};function aL(e){const t=nL(),{reducer:n=void 0,middleware:r,devTools:l=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let f;if(typeof n=="function")f=n;else if(i0(n))f=VN(n);else throw new Error(qn(1));let d;typeof r=="function"?d=r(t):d=t();let h=Rf;l&&(h=eL({trace:!1,...typeof l=="object"&&l}));const p=L8(...d),y=rL(p);let b=typeof u=="function"?u(y):y();const S=h(...b);return GN(f,o,S)}function cC(e){const t={},n=[];let r;const l={addCase(o,u){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(qn(28));if(f in t)throw new Error(qn(29));return t[f]=u,l},addAsyncThunk(o,u){return u.pending&&(t[o.pending.type]=u.pending),u.rejected&&(t[o.rejected.type]=u.rejected),u.fulfilled&&(t[o.fulfilled.type]=u.fulfilled),u.settled&&n.push({matcher:o.settled,reducer:u.settled}),l},addMatcher(o,u){return n.push({matcher:o,reducer:u}),l},addDefaultCase(o){return r=o,l}};return e(l),[t,n,r]}function iL(e){return typeof e=="function"}function lL(e,t){let[n,r,l]=cC(t),o;if(iL(e))o=()=>$2(e());else{const f=$2(e);o=()=>f}function u(f=o(),d){let h=[n[d.type],...r.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return h.filter(p=>!!p).length===0&&(h=[l]),h.reduce((p,y)=>{if(y)if(da(p)){const S=y(p,d);return S===void 0?p:S}else{if(br(p))return iC(p,b=>y(b,d));{const b=y(p,d);if(b===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return p},f)}return u.getInitialState=o,u}var oL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sL=(e=21)=>{let t="",n=e;for(;n--;)t+=oL[Math.random()*64|0];return t},uL=Symbol.for("rtk-slice-createasyncthunk");function cL(e,t){return`${e}/${t}`}function fL({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[uL];return function(l){const{name:o,reducerPath:u=o}=l;if(!o)throw new Error(qn(11));const f=(typeof l.reducers=="function"?l.reducers(hL()):l.reducers)||{},d=Object.keys(f),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(C,P){const M=typeof C=="string"?C:C.type;if(!M)throw new Error(qn(12));if(M in h.sliceCaseReducersByType)throw new Error(qn(13));return h.sliceCaseReducersByType[M]=P,p},addMatcher(C,P){return h.sliceMatchers.push({matcher:C,reducer:P}),p},exposeAction(C,P){return h.actionCreators[C]=P,p},exposeCaseReducer(C,P){return h.sliceCaseReducersByName[C]=P,p}};d.forEach(C=>{const P=f[C],M={reducerName:C,type:cL(o,C),createNotation:typeof l.reducers=="function"};pL(P)?yL(M,P,p,t):mL(M,P,p)});function y(){const[C={},P=[],M=void 0]=typeof l.extraReducers=="function"?cC(l.extraReducers):[l.extraReducers],D={...C,...h.sliceCaseReducersByType};return lL(l.initialState,I=>{for(let V in D)I.addCase(V,D[V]);for(let V of h.sliceMatchers)I.addMatcher(V.matcher,V.reducer);for(let V of P)I.addMatcher(V.matcher,V.reducer);M&&I.addDefaultCase(M)})}const b=C=>C,S=new Map,w=new WeakMap;let j;function _(C,P){return j||(j=y()),j(C,P)}function E(){return j||(j=y()),j.getInitialState()}function A(C,P=!1){function M(I){let V=I[C];return typeof V>"u"&&P&&(V=Zc(w,M,E)),V}function D(I=b){const V=Zc(S,P,()=>new WeakMap);return Zc(V,I,()=>{const X={};for(const[te,k]of Object.entries(l.selectors??{}))X[te]=dL(k,I,()=>Zc(w,I,E),P);return X})}return{reducerPath:C,getSelectors:D,get selectors(){return D(M)},selectSlice:M}}const T={name:o,reducer:_,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:E,...A(u),injectInto(C,{reducerPath:P,...M}={}){const D=P??u;return C.inject({reducerPath:D,reducer:_},M),{...T,...A(D,!0)}}};return T}}function dL(e,t,n,r){function l(o,...u){let f=t(o);return typeof f>"u"&&r&&(f=n()),e(f,...u)}return l.unwrapped=e,l}var En=fL();function hL(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function mL({type:e,reducerName:t,createNotation:n},r,l){let o,u;if("reducer"in r){if(n&&!vL(r))throw new Error(qn(17));o=r.reducer,u=r.prepare}else o=r;l.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,u?or(e,u):or(e))}function pL(e){return e._reducerDefinitionType==="asyncThunk"}function vL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function yL({type:e,reducerName:t},n,r,l){if(!l)throw new Error(qn(18));const{payloadCreator:o,fulfilled:u,pending:f,rejected:d,settled:h,options:p}=n,y=l(e,o,p);r.exposeAction(t,y),u&&r.addCase(y.fulfilled,u),f&&r.addCase(y.pending,f),d&&r.addCase(y.rejected,d),h&&r.addMatcher(y.settled,h),r.exposeCaseReducer(t,{fulfilled:u||Wc,pending:f||Wc,rejected:d||Wc,settled:h||Wc})}function Wc(){}var gL="task",fC="listener",dC="completed",u0="cancelled",bL=`task-${u0}`,xL=`task-${dC}`,Zy=`${fC}-${u0}`,wL=`${fC}-${dC}`,qd=class{constructor(e){Rp(this,"name","TaskAbortError");Rp(this,"message");this.code=e,this.message=`${gL} ${u0} (reason: ${e})`}},c0=(e,t)=>{if(typeof e!="function")throw new TypeError(qn(32))},qf=()=>{},hC=(e,t=qf)=>(e.catch(t),e),mC=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),qi=e=>{if(e.aborted)throw new qd(e.reason)};function pC(e,t){let n=qf;return new Promise((r,l)=>{const o=()=>l(new qd(e.reason));if(e.aborted){o();return}n=mC(e,o),t.finally(()=>n()).then(r,l)}).finally(()=>{n=qf})}var SL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof qd?"cancelled":"rejected",error:n}}finally{t==null||t()}},Hf=e=>t=>hC(pC(e,t).then(n=>(qi(e),n))),vC=e=>{const t=Hf(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:ao}=Object,q2={},Hd="listenerMiddleware",jL=(e,t)=>{const n=r=>mC(e,()=>r.abort(e.reason));return(r,l)=>{c0(r);const o=new AbortController;n(o);const u=SL(async()=>{qi(e),qi(o.signal);const f=await r({pause:Hf(o.signal),delay:vC(o.signal),signal:o.signal});return qi(o.signal),f},()=>o.abort(xL));return l!=null&&l.autoJoin&&t.push(u.catch(qf)),{result:Hf(e)(u),cancel(){o.abort(bL)}}}},_L=(e,t)=>{const n=async(r,l)=>{qi(t);let o=()=>{};const f=[new Promise((d,h)=>{let p=e({predicate:r,effect:(y,b)=>{b.unsubscribe(),d([y,b.getState(),b.getOriginalState()])}});o=()=>{p(),h()}})];l!=null&&f.push(new Promise(d=>setTimeout(d,l,null)));try{const d=await pC(t,Promise.race(f));return qi(t),d}finally{o()}};return(r,l)=>hC(n(r,l))},yC=e=>{let{type:t,actionCreator:n,matcher:r,predicate:l,effect:o}=e;if(t)l=or(t).match;else if(n)t=n.type,l=n.match;else if(r)l=r;else if(!l)throw new Error(qn(21));return c0(o),{predicate:l,type:t,effect:o}},gC=ao(e=>{const{type:t,predicate:n,effect:r}=yC(e);return{id:sL(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(qn(22))}}},{withTypes:()=>gC}),H2=(e,t)=>{const{type:n,effect:r,predicate:l}=yC(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===l)&&o.effect===r)},Wy=e=>{e.pending.forEach(t=>{t.abort(Zy)})},OL=(e,t)=>()=>{for(const n of t.keys())Wy(n);e.clear()},F2=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},bC=ao(or(`${Hd}/add`),{withTypes:()=>bC}),AL=or(`${Hd}/removeAll`),xC=ao(or(`${Hd}/remove`),{withTypes:()=>xC}),EL=(...e)=>{console.error(`${Hd}/error`,...e)},uu=(e={})=>{const t=new Map,n=new Map,r=S=>{const w=n.get(S)??0;n.set(S,w+1)},l=S=>{const w=n.get(S)??1;w===1?n.delete(S):n.set(S,w-1)},{extra:o,onError:u=EL}=e;c0(u);const f=S=>(S.unsubscribe=()=>t.delete(S.id),t.set(S.id,S),w=>{S.unsubscribe(),w!=null&&w.cancelActive&&Wy(S)}),d=S=>{const w=H2(t,S)??gC(S);return f(w)};ao(d,{withTypes:()=>d});const h=S=>{const w=H2(t,S);return w&&(w.unsubscribe(),S.cancelActive&&Wy(w)),!!w};ao(h,{withTypes:()=>h});const p=async(S,w,j,_)=>{const E=new AbortController,A=_L(d,E.signal),T=[];try{S.pending.add(E),r(S),await Promise.resolve(S.effect(w,ao({},j,{getOriginalState:_,condition:(C,P)=>A(C,P).then(Boolean),take:A,delay:vC(E.signal),pause:Hf(E.signal),extra:o,signal:E.signal,fork:jL(E.signal,T),unsubscribe:S.unsubscribe,subscribe:()=>{t.set(S.id,S)},cancelActiveListeners:()=>{S.pending.forEach((C,P,M)=>{C!==E&&(C.abort(Zy),M.delete(C))})},cancel:()=>{E.abort(Zy),S.pending.delete(E)},throwIfCancelled:()=>{qi(E.signal)}})))}catch(C){C instanceof qd||F2(u,C,{raisedBy:"effect"})}finally{await Promise.all(T),E.abort(wL),l(S),S.pending.delete(E)}},y=OL(t,n);return{middleware:S=>w=>j=>{if(!XN(j))return w(j);if(bC.match(j))return d(j.payload);if(AL.match(j)){y();return}if(xC.match(j))return h(j.payload);let _=S.getState();const E=()=>{if(_===q2)throw new Error(qn(23));return _};let A;try{if(A=w(j),t.size>0){const T=S.getState(),C=Array.from(t.values());for(const P of C){let M=!1;try{M=P.predicate(j,T,_)}catch(D){M=!1,F2(u,D,{raisedBy:"predicate"})}M&&p(P,j,S,E)}}}finally{_=q2}return A},startListening:d,stopListening:h,clearListeners:y}};function qn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var NL={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},wC=En({name:"chartLayout",initialState:NL,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,l,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(l=t.payload.bottom)!==null&&l!==void 0?l:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:CL,setLayout:TL,setChartSize:ML,setScale:DL}=wC.actions,PL=wC.reducer;function SC(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Me(e){return Number.isFinite(e)}function Pr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){kL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kL(e,t,n){return(t=RL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RL(e){var t=zL(e,"string");return typeof t=="symbol"?t:t+""}function zL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Je(e,t,n){return bt(e)||bt(t)?n:Dr(t)?Wi(e,t,n):typeof t=="function"?t(e):n}var LL=(e,t,n)=>{if(t&&n){var{width:r,height:l}=n,{align:o,verticalAlign:u,layout:f}=t;if((f==="vertical"||f==="horizontal"&&u==="middle")&&o!=="center"&&he(e[o]))return eo(eo({},e),{},{[o]:e[o]+(r||0)});if((f==="horizontal"||f==="vertical"&&o==="center")&&u!=="middle"&&he(e[u]))return eo(eo({},e),{},{[u]:e[u]+(l||0)})}return e},zr=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",jC=(e,t,n,r)=>{if(r)return e.map(f=>f.coordinate);var l,o,u=e.map(f=>(f.coordinate===t&&(l=!0),f.coordinate===n&&(o=!0),f.coordinate));return l||u.push(t),o||u.push(n),u},_C=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:l,range:o,scale:u,realScaleType:f,isCategorical:d,categoricalDomain:h,tickCount:p,ticks:y,niceTicks:b,axisType:S}=e;if(!u)return null;var w=f==="scaleBand"&&u.bandwidth?u.bandwidth()/2:2,j=l==="category"&&u.bandwidth?u.bandwidth()/w:0;if(j=S==="angleAxis"&&o&&o.length>=2?Kt(o[0]-o[1])*2*j:j,y||b){var _=(y||b||[]).map((E,A)=>{var T=r?r.indexOf(E):E,C=u.map(T);return Me(C)?{coordinate:C+j,value:E,offset:j,index:A}:null}).filter(Sn);return _}return d&&h?h.map((E,A)=>{var T=u.map(E);return Me(T)?{coordinate:T+j,value:E,index:A,offset:j}:null}).filter(Sn):u.ticks&&p!=null?u.ticks(p).map((E,A)=>{var T=u.map(E);return Me(T)?{coordinate:T+j,value:E,index:A,offset:j}:null}).filter(Sn):u.domain().map((E,A)=>{var T=u.map(E);return Me(T)?{coordinate:T+j,value:r?r[E]:E,index:A,offset:j}:null}).filter(Sn)},BL=(e,t)=>{if(!t||t.length!==2||!he(t[0])||!he(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),l=[e[0],e[1]];return(!he(e[0])||e[0]<n)&&(l[0]=n),(!he(e[1])||e[1]>r)&&(l[1]=r),l[0]>r&&(l[0]=r),l[1]<n&&(l[1]=n),l},IL=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var l=0;l<r;++l)for(var o=0,u=0,f=0;f<n;++f){var d=e[f],h=d==null?void 0:d[l];if(h!=null){var p=h[1],y=h[0],b=gr(p)?y:p;b>=0?(h[0]=o,o+=b,h[1]=o):(h[0]=u,u+=b,h[1]=u)}}}},$L=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var l=0;l<r;++l)for(var o=0,u=0;u<n;++u){var f=e[u],d=f==null?void 0:f[l];if(d!=null){var h=gr(d[1])?d[0]:d[1];h>=0?(d[0]=o,o+=h,d[1]=o):(d[0]=0,d[1]=0)}}}},UL={sign:IL,expand:oz,none:Zi,silhouette:sz,wiggle:uz,positive:$L},qL=(e,t,n)=>{var r,l=(r=UL[n])!==null&&r!==void 0?r:Zi,o=lz().keys(t).value((f,d)=>Number(Je(f,d,0))).order($y).offset(l),u=o(e);return u.forEach((f,d)=>{f.forEach((h,p)=>{var y=Je(e[p],t[d],0);Array.isArray(y)&&y.length===2&&he(y[0])&&he(y[1])&&(h[0]=y[0],h[1]=y[1])})}),u};function OC(e){return e==null?void 0:String(e)}function Y2(e){var{axis:t,ticks:n,bandSize:r,entry:l,index:o,dataKey:u}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!bt(l[t.dataKey])){var f=TN(n,"value",l[t.dataKey]);if(f)return f.coordinate+r/2}return n!=null&&n[o]?n[o].coordinate+r/2:null}var d=Je(l,bt(u)?t.dataKey:u),h=t.scale.map(d);return he(h)?h:null}var G2=e=>{var{axis:t,ticks:n,offset:r,bandSize:l,entry:o,index:u}=e;if(t.type==="category")return n[u]?n[u].coordinate+r:null;var f=Je(o,t.dataKey,t.scale.domain()[u]);if(bt(f))return null;var d=t.scale.map(f);return he(d)?d-l/2+r:null},HL=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),l=Math.max(n[0],n[1]);return r<=0&&l>=0?0:l<0?l:r}return n[0]},FL=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},KL=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],YL=(e,t,n)=>{if(e!=null)return KL(Object.keys(e).reduce((r,l)=>{var o=e[l];if(!o)return r;var{stackedData:u}=o,f=u.reduce((d,h)=>{var p=SC(h,t,n),y=FL(p);return!Me(y[0])||!Me(y[1])?d:[Math.min(d[0],y[0]),Math.max(d[1],y[1])]},[1/0,-1/0]);return[Math.min(f[0],r[0]),Math.max(f[1],r[1])]},[1/0,-1/0]))},V2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,X2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uo=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var l=kd(t,p=>p.coordinate),o=1/0,u=1,f=l.length;u<f;u++){var d=l[u],h=l[u-1];o=Math.min(((d==null?void 0:d.coordinate)||0)-((h==null?void 0:h.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function Z2(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:l,name:o}=e;return eo(eo({},t),{},{dataKey:n,payload:r,value:l,name:o})}function bo(e,t){if(e)return String(e);if(typeof t=="string")return t}var GL=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},VL=(e,t)=>t==="centric"?e.angle:e.radius,xa=e=>e.layout.width,wa=e=>e.layout.height,XL=e=>e.layout.scale,AC=e=>e.layout.margin,Fd=H(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Kd=H(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),EC="data-recharts-item-index",NC="data-recharts-item-id",cu=60;function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){ZL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZL(e,t,n){return(t=WL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e){var t=QL(e,"string");return typeof t=="symbol"?t:t+""}function QL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JL=e=>e.brush.height;function eB(e){var t=Kd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:cu;return n+l}return n},0)}function tB(e){var t=Kd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:cu;return n+l}return n},0)}function nB(e){var t=Fd(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function rB(e){var t=Fd(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Lt=H([xa,wa,AC,JL,eB,tB,nB,rB,KN,T8],(e,t,n,r,l,o,u,f,d,h)=>{var p={left:(n.left||0)+l,right:(n.right||0)+o},y={top:(n.top||0)+u,bottom:(n.bottom||0)+f},b=Qc(Qc({},y),p),S=b.bottom;b.bottom+=r,b=LL(b,d,h);var w=e-b.left-b.right,j=t-b.top-b.bottom;return Qc(Qc({brushBottom:S},b),{},{width:Math.max(w,0),height:Math.max(j,0)})}),aB=H(Lt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),f0=H(xa,wa,(e,t)=>({x:0,y:0,width:e,height:t})),iB=x.createContext(null),sn=()=>x.useContext(iB)!=null,Yd=e=>e.brush,Gd=H([Yd,Lt,AC],(e,t,n)=>({height:e.height,x:he(e.x)?e.x:t.left,y:he(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:he(e.width)?e.width:t.width})),Kv={},Yv={},Gv={},Q2;function lB(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:l,edges:o}={}){let u,f=null;const d=o!=null&&o.includes("leading"),h=o==null||o.includes("trailing"),p=()=>{f!==null&&(n.apply(u,f),u=void 0,f=null)},y=()=>{h&&p(),j()};let b=null;const S=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,y()},r)},w=()=>{b!==null&&(clearTimeout(b),b=null)},j=()=>{w(),u=void 0,f=null},_=()=>{p()},E=function(...A){if(l!=null&&l.aborted)return;u=this,f=A;const T=b==null;S(),d&&T&&p()};return E.schedule=S,E.cancel=j,E.flush=_,l==null||l.addEventListener("abort",j,{once:!0}),E}e.debounce=t})(Gv)),Gv}var J2;function oB(){return J2||(J2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lB();function n(r,l=0,o={}){typeof o!="object"&&(o={});const{leading:u=!1,trailing:f=!0,maxWait:d}=o,h=Array(2);u&&(h[0]="leading"),f&&(h[1]="trailing");let p,y=null;const b=t.debounce(function(...j){p=r.apply(this,j),y=null},l,{edges:h}),S=function(...j){return d!=null&&(y===null&&(y=Date.now()),Date.now()-y>=d)?(p=r.apply(this,j),y=Date.now(),b.cancel(),b.schedule(),p):(b.apply(this,j),p)},w=()=>(b.flush(),p);return S.cancel=b.cancel,S.flush=w,S}e.debounce=n})(Yv)),Yv}var e_;function sB(){return e_||(e_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oB();function n(r,l=0,o={}){const{leading:u=!0,trailing:f=!0}=o;return t.debounce(r,l,{leading:u,maxWait:l,trailing:f})}e.throttle=n})(Kv)),Kv}var Vv,t_;function uB(){return t_||(t_=1,Vv=sB().throttle),Vv}var cB=uB();const fB=Rr(cB);var Ff=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),o=2;o<r;o++)l[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(n.replace(/%s/g,()=>l[u++]))}},Cr={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},CC=(e,t,n)=>{var{width:r=Cr.width,height:l=Cr.height,aspect:o,maxHeight:u}=n,f=Qi(r)?e:Number(r),d=Qi(l)?t:Number(l);return o&&o>0&&(f?d=f/o:d&&(f=d*o),u&&d!=null&&d>u&&(d=u)),{calculatedWidth:f,calculatedHeight:d}},dB={width:0,height:0,overflow:"visible"},hB={width:0,overflowX:"visible"},mB={height:0,overflowY:"visible"},pB={},vB=e=>{var{width:t,height:n}=e,r=Qi(t),l=Qi(n);return r&&l?dB:r?hB:l?mB:pB};function yB(e){var{width:t,height:n,aspect:r}=e,l=t,o=n;return l===void 0&&o===void 0?(l=Cr.width,o=Cr.height):l===void 0?l=r&&r>0?void 0:Cr.width:o===void 0&&(o=r&&r>0?void 0:Cr.height),{width:l,height:o}}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(null,arguments)}function n_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function r_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n_(Object(n),!0).forEach(function(r){gB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gB(e,t,n){return(t=bB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bB(e){var t=xB(e,"string");return typeof t=="symbol"?t:t+""}function xB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TC=x.createContext(Cr.initialDimension);function wB(e){return Pr(e.width)&&Pr(e.height)}function MC(e){var{children:t,width:n,height:r}=e,l=x.useMemo(()=>({width:n,height:r}),[n,r]);return wB(l)?x.createElement(TC.Provider,{value:l},t):null}var d0=()=>x.useContext(TC),SB=x.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=Cr.initialDimension,width:l,height:o,minWidth:u=Cr.minWidth,minHeight:f,maxHeight:d,children:h,debounce:p=Cr.debounce,id:y,className:b,onResize:S,style:w={}}=e,j=x.useRef(null),_=x.useRef();_.current=S,x.useImperativeHandle(t,()=>j.current);var[E,A]=x.useState({containerWidth:r.width,containerHeight:r.height}),T=x.useCallback((I,V)=>{A(X=>{var te=Math.round(I),k=Math.round(V);return X.containerWidth===te&&X.containerHeight===k?X:{containerWidth:te,containerHeight:k}})},[]);x.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return al;var I=k=>{var se,U=k[0];if(U!=null){var{width:ne,height:L}=U.contentRect;T(ne,L),(se=_.current)===null||se===void 0||se.call(_,ne,L)}};p>0&&(I=fB(I,p,{trailing:!0,leading:!1}));var V=new ResizeObserver(I),{width:X,height:te}=j.current.getBoundingClientRect();return T(X,te),V.observe(j.current),()=>{V.disconnect()}},[T,p]);var{containerWidth:C,containerHeight:P}=E;Ff(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:M,calculatedHeight:D}=CC(C,P,{width:l,height:o,aspect:n,maxHeight:d});return Ff(M!=null&&M>0||D!=null&&D>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,M,D,l,o,u,f,n),x.createElement("div",{id:y?"".concat(y):void 0,className:Ue("recharts-responsive-container",b),style:r_(r_({},w),{},{width:l,height:o,minWidth:u,minHeight:f,maxHeight:d}),ref:j},x.createElement("div",{style:vB({width:l,height:o})},x.createElement(MC,{width:M,height:D},h)))}),Os=x.forwardRef((e,t)=>{var n=d0();if(Pr(n.width)&&Pr(n.height))return e.children;var{width:r,height:l}=yB({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:u}=CC(void 0,void 0,{width:r,height:l,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(u)?x.createElement(MC,{width:o,height:u},e.children):x.createElement(SB,Qy({},e,{width:r,height:l,ref:t}))});function h0(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Vd=()=>{var e,t=sn(),n=ye(aB),r=ye(Gd),l=(e=ye(Yd))===null||e===void 0?void 0:e.padding;return!t||!r||!l?n:{width:r.width-l.left-l.right,height:r.height-l.top-l.bottom,x:l.left,y:l.top}},jB={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},DC=()=>{var e;return(e=ye(Lt))!==null&&e!==void 0?e:jB},m0=()=>ye(xa),p0=()=>ye(wa),_B=()=>ye(e=>e.layout.margin),Be=e=>e.layout.layoutType,il=()=>ye(Be),v0=()=>{var e=il();if(e==="horizontal"||e==="vertical")return e},PC=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},OB=()=>{var e=il();return e!==void 0},fu=e=>{var t=at(),n=sn(),{width:r,height:l}=e,o=d0(),u=r,f=l;return o&&(u=o.width>0?o.width:r,f=o.height>0?o.height:l),x.useEffect(()=>{!n&&Pr(u)&&Pr(f)&&t(ML({width:u,height:f}))},[t,n,u,f]),null},kC=Symbol.for("immer-nothing"),a_=Symbol.for("immer-draftable"),Hn=Symbol.for("immer-state");function pr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fs=Object.getPrototypeOf;function co(e){return!!e&&!!e[Hn]}function el(e){var t;return e?RC(e)||Array.isArray(e)||!!e[a_]||!!((t=e.constructor)!=null&&t[a_])||du(e)||Zd(e):!1}var AB=Object.prototype.constructor.toString(),i_=new WeakMap;function RC(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=i_.get(n);return r===void 0&&(r=Function.toString.call(n),i_.set(n,r)),r===AB}function Kf(e,t,n=!0){Xd(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function Xd(e){const t=e[Hn];return t?t.type_:Array.isArray(e)?1:du(e)?2:Zd(e)?3:0}function Jy(e,t){return Xd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zC(e,t,n){const r=Xd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function EB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function du(e){return e instanceof Map}function Zd(e){return e instanceof Set}function Pi(e){return e.copy_||e.base_}function eg(e,t){if(du(e))return new Map(e);if(Zd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=RC(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Hn];let l=Reflect.ownKeys(r);for(let o=0;o<l.length;o++){const u=l[o],f=r[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Fs(e),r)}else{const r=Fs(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function y0(e,t=!1){return Wd(e)||co(e)||!el(e)||(Xd(e)>1&&Object.defineProperties(e,{set:Jc,add:Jc,clear:Jc,delete:Jc}),Object.freeze(e),t&&Object.values(e).forEach(n=>y0(n,!0))),e}function NB(){pr(2)}var Jc={value:NB};function Wd(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var CB={};function tl(e){const t=CB[e];return t||pr(0,e),t}var Ks;function LC(){return Ks}function TB(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function l_(e,t){t&&(tl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tg(e){ng(e),e.drafts_.forEach(MB),e.drafts_=null}function ng(e){e===Ks&&(Ks=e.parent_)}function o_(e){return Ks=TB(Ks,e)}function MB(e){const t=e[Hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function s_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Hn].modified_&&(tg(t),pr(4)),el(e)&&(e=Yf(t,e),t.parent_||Gf(t,e)),t.patches_&&tl("Patches").generateReplacementPatches_(n[Hn].base_,e,t.patches_,t.inversePatches_)):e=Yf(t,n,[]),tg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kC?e:void 0}function Yf(e,t,n){if(Wd(t))return t;const r=e.immer_.shouldUseStrictIteration(),l=t[Hn];if(!l)return Kf(t,(o,u)=>u_(e,l,t,o,u,n),r),t;if(l.scope_!==e)return t;if(!l.modified_)return Gf(e,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const o=l.copy_;let u=o,f=!1;l.type_===3&&(u=new Set(o),o.clear(),f=!0),Kf(u,(d,h)=>u_(e,l,o,d,h,n,f),r),Gf(e,o,!1),n&&e.patches_&&tl("Patches").generatePatches_(l,n,e.patches_,e.inversePatches_)}return l.copy_}function u_(e,t,n,r,l,o,u){if(l==null||typeof l!="object"&&!u)return;const f=Wd(l);if(!(f&&!u)){if(co(l)){const d=o&&t&&t.type_!==3&&!Jy(t.assigned_,r)?o.concat(r):void 0,h=Yf(e,l,d);if(zC(n,r,h),co(h))e.canAutoFreeze_=!1;else return}else u&&n.add(l);if(el(l)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===l&&f)return;Yf(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(du(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Gf(e,l)}}}function Gf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&y0(t,n)}function DB(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:LC(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,o=g0;n&&(l=[r],o=Ys);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,f}var g0={get(e,t){if(t===Hn)return e;const n=Pi(e);if(!Jy(n,t))return PB(e,n,t);const r=n[t];return e.finalized_||!el(r)?r:r===Xv(e.base_,t)?(Zv(e),e.copy_[t]=ag(r,e)):r},has(e,t){return t in Pi(e)},ownKeys(e){return Reflect.ownKeys(Pi(e))},set(e,t,n){const r=BC(Pi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Xv(Pi(e),t),o=l==null?void 0:l[Hn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(EB(n,l)&&(n!==void 0||Jy(e.base_,t)))return!0;Zv(e),rg(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Xv(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Zv(e),rg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Pi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){pr(11)},getPrototypeOf(e){return Fs(e.base_)},setPrototypeOf(){pr(12)}},Ys={};Kf(g0,(e,t)=>{Ys[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ys.deleteProperty=function(e,t){return Ys.set.call(this,e,t,void 0)};Ys.set=function(e,t,n){return g0.set.call(this,e[0],t,n,e[0])};function Xv(e,t){const n=e[Hn];return(n?Pi(n):e)[t]}function PB(e,t,n){var l;const r=BC(t,n);return r?"value"in r?r.value:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function BC(e,t){if(!(t in e))return;let n=Fs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fs(n)}}function rg(e){e.modified_||(e.modified_=!0,e.parent_&&rg(e.parent_))}function Zv(e){e.copy_||(e.copy_=eg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const u=this;return function(d=o,...h){return u.produce(d,p=>n.call(this,p,...h))}}typeof n!="function"&&pr(6),r!==void 0&&typeof r!="function"&&pr(7);let l;if(el(t)){const o=o_(this),u=ag(t,void 0);let f=!0;try{l=n(u),f=!1}finally{f?tg(o):ng(o)}return l_(o,r),s_(l,o)}else if(!t||typeof t!="object"){if(l=n(t),l===void 0&&(l=t),l===kC&&(l=void 0),this.autoFreeze_&&y0(l,!0),r){const o=[],u=[];tl("Patches").generateReplacementPatches_(t,l,o,u),r(o,u)}return l}else pr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...f)=>this.produceWithPatches(u,d=>t(d,...f));let r,l;return[this.produce(t,n,(u,f)=>{r=u,l=f}),r,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){el(e)||pr(8),co(e)&&(e=RB(e));const t=o_(this),n=ag(e,void 0);return n[Hn].isManual_=!0,ng(t),n}finishDraft(e,t){const n=e&&e[Hn];(!n||!n.isManual_)&&pr(9);const{scope_:r}=n;return l_(r,t),s_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const l=t[n];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}n>-1&&(t=t.slice(n+1));const r=tl("Patches").applyPatches_;return co(e)?r(e,t):this.produce(e,l=>r(l,t))}};function ag(e,t){const n=du(e)?tl("MapSet").proxyMap_(e,t):Zd(e)?tl("MapSet").proxySet_(e,t):DB(e,t);return(t?t.scope_:LC()).drafts_.push(n),n}function RB(e){return co(e)||pr(10,e),IC(e)}function IC(e){if(!el(e)||Wd(e))return e;const t=e[Hn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eg(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=eg(e,!0);return Kf(n,(l,o)=>{zC(n,l,IC(o))},r),t&&(t.finalized_=!1),n}var zB=new kB;zB.produce;var LB={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},$C=En({name:"legend",initialState:LB,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ft()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,l=yr(e).payload.indexOf(n);l>-1&&(e.payload[l]=r)},prepare:ft()},removeLegendPayload:{reducer(e,t){var n=yr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:ft()}}}),{setLegendSize:c_,setLegendSettings:BB,addLegendPayload:UC,replaceLegendPayload:qC,removeLegendPayload:HC}=$C.actions,IB=$C.reducer,$B=["contextPayload"];function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ig.apply(null,arguments)}function f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f_(Object(n),!0).forEach(function(r){UB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UB(e,t,n){return(t=qB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qB(e){var t=HB(e,"string");return typeof t=="symbol"?t:t+""}function HB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FB(e,t){if(e==null)return{};var n,r,l=KB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function KB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YB(e){return e.value}function GB(e){var{contextPayload:t}=e,n=FB(e,$B),r=UN(t,e.payloadUniqBy,YB),l=fo(fo({},n),{},{payload:r});return x.isValidElement(e.content)?x.cloneElement(e.content,l):typeof e.content=="function"?x.createElement(e.content,l):x.createElement(Bz,l)}function VB(e,t,n,r,l,o){var{layout:u,align:f,verticalAlign:d}=t,h,p;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(f==="center"&&u==="vertical"?h={left:((r||0)-o.width)/2}:h=f==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(d==="middle"?p={top:((l||0)-o.height)/2}:p=d==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),fo(fo({},h),p)}function XB(e){var t=at();return x.useEffect(()=>{t(BB(e))},[t,e]),null}function ZB(e){var t=at();return x.useEffect(()=>(t(c_(e)),()=>{t(c_({width:0,height:0}))}),[t,e]),null}function WB(e,t,n,r){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:n||r}:null}var QB={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function FC(e){var t=kt(e,QB),n=P8(),r=T6(),l=_B(),{width:o,height:u,wrapperStyle:f,portal:d}=t,[h,p]=YN([n]),y=m0(),b=p0();if(y==null||b==null)return null;var S=y-((l==null?void 0:l.left)||0)-((l==null?void 0:l.right)||0),w=WB(t.layout,u,o,S),j=d?f:fo(fo({position:"absolute",width:(w==null?void 0:w.width)||o||"auto",height:(w==null?void 0:w.height)||u||"auto"},VB(f,t,l,y,b,h)),f),_=d??r;if(_==null||n==null)return null;var E=x.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:p},x.createElement(XB,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!d&&x.createElement(ZB,{width:h.width,height:h.height}),x.createElement(GB,ig({},t,w,{margin:l,chartWidth:y,chartHeight:b,contextPayload:n})));return fn.createPortal(E,_)}FC.displayName="Legend";function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lg.apply(null,arguments)}function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(n),!0).forEach(function(r){JB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JB(e,t,n){return(t=eI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eI(e){var t=tI(e,"string");return typeof t=="symbol"?t:t+""}function tI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nI(e){return Array.isArray(e)&&Dr(e[0])&&Dr(e[1])?e.join(" ~ "):e}var Gl={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},rI=e=>{var{separator:t=Gl.separator,contentStyle:n,itemStyle:r,labelStyle:l=Gl.labelStyle,payload:o,formatter:u,itemSorter:f,wrapperClassName:d,labelClassName:h,label:p,labelFormatter:y,accessibilityLayer:b=Gl.accessibilityLayer}=e,S=()=>{if(o&&o.length){var P={padding:0,margin:0},M=(f?kd(o,f):o).map((D,I)=>{if(D.type==="none")return null;var V=D.formatter||u||nI,{value:X,name:te}=D,k=X,se=te;if(V){var U=V(X,te,D,I,o);if(Array.isArray(U))[k,se]=U;else if(U!=null)k=U;else return null}var ne=As(As({},Gl.itemStyle),{},{color:D.color||Gl.itemStyle.color},r);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:ne},Dr(se)?x.createElement("span",{className:"recharts-tooltip-item-name"},se):null,Dr(se)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},k),x.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:P},M)}return null},w=As(As({},Gl.contentStyle),n),j=As({margin:0},l),_=!bt(p),E=_?p:"",A=Ue("recharts-default-tooltip",d),T=Ue("recharts-tooltip-label",h);_&&y&&o!==void 0&&o!==null&&(E=y(p,o));var C=b?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",lg({className:A,style:w},C),x.createElement("p",{className:T,style:j},x.isValidElement(E)?E:"".concat(E)),S())},Es="recharts-tooltip-wrapper",aI={visibility:"hidden"};function iI(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ue(Es,{["".concat(Es,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Es,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Es,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Es,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function h_(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:l,position:o,reverseDirection:u,tooltipDimension:f,viewBox:d,viewBoxDimension:h}=e;if(o&&he(o[r]))return o[r];var p=n[r]-f-(l>0?l:0),y=n[r]+l;if(t[r])return u[r]?p:y;var b=d[r];if(b==null)return 0;if(u[r]){var S=p,w=b;return S<w?Math.max(y,b):Math.max(p,b)}if(h==null)return 0;var j=y+f,_=b+h;return j>_?Math.max(p,b):Math.max(y,b)}function lI(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function oI(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:l,position:o,reverseDirection:u,tooltipBox:f,useTranslate3d:d,viewBox:h}=e,p,y,b;return f.height>0&&f.width>0&&n?(y=h_({allowEscapeViewBox:t,coordinate:n,key:"x",offset:l,position:o,reverseDirection:u,tooltipDimension:f.width,viewBox:h,viewBoxDimension:h.width}),b=h_({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:u,tooltipDimension:f.height,viewBox:h,viewBoxDimension:h.height}),p=lI({translateX:y,translateY:b,useTranslate3d:d})):p=aI,{cssProperties:p,cssClasses:iI({translateX:y,translateY:b,coordinate:n})}}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(r){og(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function og(e,t,n){return(t=sI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sI(e){var t=uI(e,"string");return typeof t=="symbol"?t:t+""}function uI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class cI extends x.PureComponent{constructor(){super(...arguments),og(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),og(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,l,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(l=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:l,children:o,coordinate:u,hasPayload:f,isAnimationActive:d,offset:h,position:p,reverseDirection:y,useTranslate3d:b,viewBox:S,wrapperStyle:w,lastBoundingBox:j,innerRef:_,hasPortalFromProps:E}=this.props,A=typeof h=="number"?h:h.x,T=typeof h=="number"?h:h.y,{cssClasses:C,cssProperties:P}=oI({allowEscapeViewBox:n,coordinate:u,offsetLeft:A,offsetTop:T,position:p,reverseDirection:y,tooltipBox:{height:j.height,width:j.width},useTranslate3d:b,viewBox:S}),M=E?{}:ef(ef({transition:d&&t?"transform ".concat(r,"ms ").concat(l):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&f?"visible":"hidden",position:"absolute",top:0,left:0}),D=ef(ef({},M),{},{visibility:!this.state.dismissed&&t&&f?"visible":"hidden"},w);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:C,style:D,ref:_},o)}}var KC=()=>{var e;return(e=ye(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sg.apply(null,arguments)}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(n),!0).forEach(function(r){fI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fI(e,t,n){return(t=dI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dI(e){var t=hI(e,"string");return typeof t=="symbol"?t:t+""}function hI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y_={curveBasisClosed:X6,curveBasisOpen:Z6,curveBasis:V6,curveBumpX:k6,curveBumpY:R6,curveLinearClosed:W6,curveLinear:Dd,curveMonotoneX:Q6,curveMonotoneY:J6,curveNatural:ez,curveStep:tz,curveStepAfter:rz,curveStepBefore:nz},Vf=e=>Me(e.x)&&Me(e.y),g_=e=>e.base!=null&&Vf(e.base)&&Vf(e),Ns=e=>e.x,Cs=e=>e.y,mI=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(lu(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=y_["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return y_[n]||Dd},b_={connectNulls:!1,type:"linear"},pI=e=>{var{type:t=b_.type,points:n=[],baseLine:r,layout:l,connectNulls:o=b_.connectNulls}=e,u=mI(t,l),f=o?n.filter(Vf):n;if(Array.isArray(r)){var d,h=n.map((w,j)=>v_(v_({},w),{},{base:r[j]}));l==="vertical"?d=Yc().y(Cs).x1(Ns).x0(w=>w.base.x):d=Yc().x(Ns).y1(Cs).y0(w=>w.base.y);var p=d.defined(g_).curve(u),y=o?h.filter(g_):h;return p(y)}var b;l==="vertical"&&he(r)?b=Yc().y(Cs).x1(Ns).x0(r):he(r)?b=Yc().x(Ns).y1(Cs).y0(r):b=yN().x(Ns).y(Cs);var S=b.defined(Vf).curve(u);return S(f)},io=e=>{var{className:t,points:n,path:r,pathRef:l}=e,o=il();if((!n||!n.length)&&!r)return null;var u={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},f=n&&n.length?pI(u):r;return x.createElement("path",sg({},An(e),t0(e),{className:Ue("recharts-curve",t),d:f===null?void 0:f,ref:l}))},vI=["x","y","top","left","width","height","className"];function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ug.apply(null,arguments)}function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(r){gI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gI(e,t,n){return(t=bI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bI(e){var t=xI(e,"string");return typeof t=="symbol"?t:t+""}function xI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wI(e,t){if(e==null)return{};var n,r,l=SI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function SI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jI=(e,t,n,r,l,o)=>"M".concat(e,",").concat(l,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),_I=e=>{var{x:t=0,y:n=0,top:r=0,left:l=0,width:o=0,height:u=0,className:f}=e,d=wI(e,vI),h=yI({x:t,y:n,top:r,left:l,width:o,height:u},d);return!he(t)||!he(n)||!he(o)||!he(u)||!he(r)||!he(l)?null:x.createElement("path",ug({},hn(h),{className:Ue("recharts-cross",f),d:jI(t,n,o,u,r,l)}))};function OI(e,t,n,r){var l=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-l:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-l,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function S_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){AI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AI(e,t,n){return(t=EI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e){var t=NI(e,"string");return typeof t=="symbol"?t:t+""}function NI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CI=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),YC=(e,t,n)=>e.map(r=>"".concat(CI(r)," ").concat(t,"ms ").concat(n)).join(","),TI=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(l=>r.includes(l))),Gs=(e,t)=>Object.keys(t).reduce((n,r)=>S_(S_({},n),{},{[r]:e(r,t[r])}),{});function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){MI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MI(e,t,n){return(t=DI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DI(e){var t=PI(e,"string");return typeof t=="symbol"?t:t+""}function PI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xf=(e,t,n)=>e+(t-e)*n,cg=e=>{var{from:t,to:n}=e;return t!==n},GC=(e,t,n)=>{var r=Gs((l,o)=>{if(cg(o)){var[u,f]=e(o.from,o.to,o.velocity);return zt(zt({},o),{},{from:u,velocity:f})}return o},t);return n<1?Gs((l,o)=>cg(o)&&r[l]!=null?zt(zt({},o),{},{velocity:Xf(o.velocity,r[l].velocity,n),from:Xf(o.from,r[l].from,n)}):o,t):GC(e,r,n-1)};function kI(e,t,n,r,l,o){var u,f=r.reduce((b,S)=>zt(zt({},b),{},{[S]:{from:e[S],velocity:0,to:t[S]}}),{}),d=()=>Gs((b,S)=>S.from,f),h=()=>!Object.values(f).filter(cg).length,p=null,y=b=>{u||(u=b);var S=b-u,w=S/n.dt;f=GC(n,f,w),l(zt(zt(zt({},e),t),d())),u=b,h()||(p=o.setTimeout(y))};return()=>(p=o.setTimeout(y),()=>{var b;(b=p)===null||b===void 0||b()})}function RI(e,t,n,r,l,o,u){var f=null,d=l.reduce((y,b)=>{var S=e[b],w=t[b];return S==null||w==null?y:zt(zt({},y),{},{[b]:[S,w]})},{}),h,p=y=>{h||(h=y);var b=(y-h)/r,S=Gs((j,_)=>Xf(..._,n(b)),d);if(o(zt(zt(zt({},e),t),S)),b<1)f=u.setTimeout(p);else{var w=Gs((j,_)=>Xf(..._,n(1)),d);o(zt(zt(zt({},e),t),w))}};return()=>(f=u.setTimeout(p),()=>{var y;(y=f)===null||y===void 0||y()})}const zI=(e,t,n,r,l,o)=>{var u=TI(e,t);return n==null?()=>(l(zt(zt({},e),t)),()=>{}):n.isStepper===!0?kI(e,t,n,u,l,o):RI(e,t,n,r,u,l,o)};var Zf=1e-4,VC=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],XC=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),__=(e,t)=>n=>{var r=VC(e,t);return XC(r,n)},LI=(e,t)=>n=>{var r=VC(e,t),l=[...r.map((o,u)=>o*u).slice(1),0];return XC(l,n)},BI=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var l=r.map(o=>parseFloat(o));return[l[0],l[1],l[2],l[3]]},II=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var l=BI(n[0]);if(l)return l}}return n.length===4?n:[0,0,1,1]},$I=(e,t,n,r)=>{var l=__(e,n),o=__(t,r),u=LI(e,n),f=h=>h>1?1:h<0?0:h,d=h=>{for(var p=h>1?1:h,y=p,b=0;b<8;++b){var S=l(y)-p,w=u(y);if(Math.abs(S-p)<Zf||w<Zf)return o(y);y=f(y-S/w)}return o(y)};return d.isStepper=!1,d},O_=function(){return $I(...II(...arguments))},UI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:l=17}=t,o=(u,f,d)=>{var h=-(u-f)*n,p=d*r,y=d+(h-p)*l/1e3,b=d*l/1e3+u;return Math.abs(b-f)<Zf&&Math.abs(y)<Zf?[f,0]:[b,y]};return o.isStepper=!0,o.dt=l,o},qI=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return O_(e);case"spring":return UI();default:if(e.split("(")[0]==="cubic-bezier")return O_(e)}return typeof e=="function"?e:null};function HI(e){var t,n=()=>null,r=!1,l=null,o=u=>{if(!r){if(Array.isArray(u)){if(!u.length)return;var f=u,[d,...h]=f;if(typeof d=="number"){l=e.setTimeout(o.bind(null,h),d);return}o(d),l=e.setTimeout(o.bind(null,h));return}typeof u=="string"&&(t=u,n(t)),typeof u=="object"&&(t=u,n(t)),typeof u=="function"&&u()}};return{stop:()=>{r=!0},start:u=>{r=!1,l&&(l(),l=null),o(u)},subscribe:u=>(n=u,()=>{n=()=>null}),getTimeoutController:()=>e}}class FI{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),l=null,o=u=>{u-r>=n?t(u):typeof requestAnimationFrame=="function"&&(l=requestAnimationFrame(o))};return l=requestAnimationFrame(o),()=>{l!=null&&cancelAnimationFrame(l)}}}function KI(){return HI(new FI)}var YI=x.createContext(KI);function GI(e,t){var n=x.useContext(YI);return x.useMemo(()=>t??n(e),[e,t,n])}var VI=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),hu={isSsr:VI()},XI={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},A_={t:0},Wv={t:1};function mu(e){var t=kt(e,XI),{isActive:n,canBegin:r,duration:l,easing:o,begin:u,onAnimationEnd:f,onAnimationStart:d,children:h}=t,p=n==="auto"?!hu.isSsr:n,y=GI(t.animationId,t.animationManager),[b,S]=x.useState(p?A_:Wv),w=x.useRef(null);return x.useEffect(()=>{p||S(Wv)},[p]),x.useEffect(()=>{if(!p||!r)return al;var j=zI(A_,Wv,qI(o),l,S,y.getTimeoutController()),_=()=>{w.current=j()};return y.start([d,u,_,l,f]),()=>{y.stop(),w.current&&w.current(),f()}},[p,r,l,o,u,d,f,y]),h(b.t)}function pu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=x.useRef($s(t)),r=x.useRef(e);return r.current!==e&&(n.current=$s(t),r.current=e),n.current}var ZI=["radius"],WI=["radius"],E_,N_,C_,T_,M_,D_,P_,k_,R_,z_;function L_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(n),!0).forEach(function(r){QI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QI(e,t,n){return(t=JI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JI(e){var t=e7(e,"string");return typeof t=="symbol"?t:t+""}function e7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wf.apply(null,arguments)}function I_(e,t){if(e==null)return{};var n,r,l=t7(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function t7(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ar(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var $_=(e,t,n,r,l)=>{var o=ti(n),u=ti(r),f=Math.min(Math.abs(o)/2,Math.abs(u)/2),d=u>=0?1:-1,h=o>=0?1:-1,p=u>=0&&o>=0||u<0&&o<0?1:0,y;if(f>0&&Array.isArray(l)){for(var b=[0,0,0,0],S=0,w=4;S<w;S++){var j,_=(j=l[S])!==null&&j!==void 0?j:0;b[S]=_>f?f:_}y=yt(E_||(E_=Ar(["M",",",""])),e,t+d*b[0]),b[0]>0&&(y+=yt(N_||(N_=Ar(["A ",",",",0,0,",",",",",""])),b[0],b[0],p,e+h*b[0],t)),y+=yt(C_||(C_=Ar(["L ",",",""])),e+n-h*b[1],t),b[1]>0&&(y+=yt(T_||(T_=Ar(["A ",",",",0,0,",`,
        `,",",""])),b[1],b[1],p,e+n,t+d*b[1])),y+=yt(M_||(M_=Ar(["L ",",",""])),e+n,t+r-d*b[2]),b[2]>0&&(y+=yt(D_||(D_=Ar(["A ",",",",0,0,",`,
        `,",",""])),b[2],b[2],p,e+n-h*b[2],t+r)),y+=yt(P_||(P_=Ar(["L ",",",""])),e+h*b[3],t+r),b[3]>0&&(y+=yt(k_||(k_=Ar(["A ",",",",0,0,",`,
        `,",",""])),b[3],b[3],p,e,t+r-d*b[3])),y+="Z"}else if(f>0&&l===+l&&l>0){var E=Math.min(f,l);y=yt(R_||(R_=Ar(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+d*E,E,E,p,e+h*E,t,e+n-h*E,t,E,E,p,e+n,t+d*E,e+n,t+r-d*E,E,E,p,e+n-h*E,t+r,e+h*E,t+r,E,E,p,e,t+r-d*E)}else y=yt(z_||(z_=Ar(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return y},U_={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ZC=e=>{var t=kt(e,U_),n=x.useRef(null),[r,l]=x.useState(-1);x.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var Z=n.current.getTotalLength();Z&&l(Z)}catch{}},[]);var{x:o,y:u,width:f,height:d,radius:h,className:p}=t,{animationEasing:y,animationDuration:b,animationBegin:S,isAnimationActive:w,isUpdateAnimationActive:j}=t,_=x.useRef(f),E=x.useRef(d),A=x.useRef(o),T=x.useRef(u),C=x.useMemo(()=>({x:o,y:u,width:f,height:d,radius:h}),[o,u,f,d,h]),P=pu(C,"rectangle-");if(o!==+o||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var M=Ue("recharts-rectangle",p);if(!j){var D=hn(t),{radius:I}=D,V=I_(D,ZI);return x.createElement("path",Wf({},V,{x:ti(o),y:ti(u),width:ti(f),height:ti(d),radius:typeof h=="number"?h:void 0,className:M,d:$_(o,u,f,d,h)}))}var X=_.current,te=E.current,k=A.current,se=T.current,U="0px ".concat(r===-1?1:r,"px"),ne="".concat(r,"px 0px"),L=YC(["strokeDasharray"],b,typeof y=="string"?y:U_.animationEasing);return x.createElement(mu,{animationId:P,key:P,canBegin:r>0,duration:b,easing:y,isActive:j,begin:S},Z=>{var ie=st(X,f,Z),fe=st(te,d,Z),de=st(k,o,Z),R=st(se,u,Z);n.current&&(_.current=ie,E.current=fe,A.current=de,T.current=R);var Y;w?Z>0?Y={transition:L,strokeDasharray:ne}:Y={strokeDasharray:U}:Y={strokeDasharray:ne};var oe=hn(t),{radius:ce}=oe,pe=I_(oe,WI);return x.createElement("path",Wf({},pe,{radius:typeof h=="number"?h:void 0,className:M,d:$_(de,R,ie,fe,h),ref:n,style:B_(B_({},Y),t.style)}))})};function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function H_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(n),!0).forEach(function(r){n7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n7(e,t,n){return(t=r7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r7(e){var t=a7(e,"string");return typeof t=="symbol"?t:t+""}function a7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qf=Math.PI/180,i7=e=>e*180/Math.PI,Mt=(e,t,n,r)=>({x:e+Math.cos(-Qf*r)*n,y:t+Math.sin(-Qf*r)*n}),WC=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},l7=(e,t)=>{var{x:n,y:r}=e,{x:l,y:o}=t;return Math.sqrt((n-l)**2+(r-o)**2)},o7=(e,t)=>{var{x:n,y:r}=e,{cx:l,cy:o}=t,u=l7({x:n,y:r},{x:l,y:o});if(u<=0)return{radius:u,angle:0};var f=(n-l)/u,d=Math.acos(f);return r>o&&(d=2*Math.PI-d),{radius:u,angle:i7(d),angleInRadian:d}},s7=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),l=Math.floor(n/360),o=Math.min(r,l);return{startAngle:t-o*360,endAngle:n-o*360}},u7=(e,t)=>{var{startAngle:n,endAngle:r}=t,l=Math.floor(n/360),o=Math.floor(r/360),u=Math.min(l,o);return e+u*360},c7=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:l,angle:o}=o7({x:n,y:r},t),{innerRadius:u,outerRadius:f}=t;if(l<u||l>f||l===0)return null;var{startAngle:d,endAngle:h}=s7(t),p=o,y;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=d}return y?H_(H_({},t),{},{radius:l,angle:u7(p,t)}):null};function QC(e){var{cx:t,cy:n,radius:r,startAngle:l,endAngle:o}=e,u=Mt(t,n,r,l),f=Mt(t,n,r,o);return{points:[u,f],cx:t,cy:n,radius:r,startAngle:l,endAngle:o}}var F_,K_,Y_,G_,V_,X_,Z_;function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(null,arguments)}function Li(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f7=(e,t)=>{var n=Kt(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},tf=e=>{var{cx:t,cy:n,radius:r,angle:l,sign:o,isExternal:u,cornerRadius:f,cornerIsExternal:d}=e,h=f*(u?1:-1)+r,p=Math.asin(f/h)/Qf,y=d?l:l+o*p,b=Mt(t,n,h,y),S=Mt(t,n,r,y),w=d?l-o*p:l,j=Mt(t,n,h*Math.cos(p*Qf),w);return{center:b,circleTangency:S,lineTangency:j,theta:p}},JC=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:o,endAngle:u}=e,f=f7(o,u),d=o+f,h=Mt(t,n,l,o),p=Mt(t,n,l,d),y=yt(F_||(F_=Li(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),h.x,h.y,l,l,+(Math.abs(f)>180),+(o>d),p.x,p.y);if(r>0){var b=Mt(t,n,r,o),S=Mt(t,n,r,d);y+=yt(K_||(K_=Li(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),S.x,S.y,r,r,+(Math.abs(f)>180),+(o<=d),b.x,b.y)}else y+=yt(Y_||(Y_=Li(["L ",","," Z"])),t,n);return y},d7=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}=e,p=Kt(h-d),{circleTangency:y,lineTangency:b,theta:S}=tf({cx:t,cy:n,radius:l,angle:d,sign:p,cornerRadius:o,cornerIsExternal:f}),{circleTangency:w,lineTangency:j,theta:_}=tf({cx:t,cy:n,radius:l,angle:h,sign:-p,cornerRadius:o,cornerIsExternal:f}),E=f?Math.abs(d-h):Math.abs(d-h)-S-_;if(E<0)return u?yt(G_||(G_=Li(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),b.x,b.y,o,o,o*2,o,o,-o*2):JC({cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:d,endAngle:h});var A=yt(V_||(V_=Li(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),b.x,b.y,o,o,+(p<0),y.x,y.y,l,l,+(E>180),+(p<0),w.x,w.y,o,o,+(p<0),j.x,j.y);if(r>0){var{circleTangency:T,lineTangency:C,theta:P}=tf({cx:t,cy:n,radius:r,angle:d,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),{circleTangency:M,lineTangency:D,theta:I}=tf({cx:t,cy:n,radius:r,angle:h,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),V=f?Math.abs(d-h):Math.abs(d-h)-P-I;if(V<0&&o===0)return"".concat(A,"L").concat(t,",").concat(n,"Z");A+=yt(X_||(X_=Li(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),D.x,D.y,o,o,+(p<0),M.x,M.y,r,r,+(V>180),+(p>0),T.x,T.y,o,o,+(p<0),C.x,C.y)}else A+=yt(Z_||(Z_=Li(["L",",","Z"])),t,n);return A},h7={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},eT=e=>{var t=kt(e,h7),{cx:n,cy:r,innerRadius:l,outerRadius:o,cornerRadius:u,forceCornerRadius:f,cornerIsExternal:d,startAngle:h,endAngle:p,className:y}=t;if(o<l||h===p)return null;var b=Ue("recharts-sector",y),S=o-l,w=on(u,S,0,!0),j;return w>0&&Math.abs(h-p)<360?j=d7({cx:n,cy:r,innerRadius:l,outerRadius:o,cornerRadius:Math.min(w,S/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:h,endAngle:p}):j=JC({cx:n,cy:r,innerRadius:l,outerRadius:o,startAngle:h,endAngle:p}),x.createElement("path",fg({},hn(t),{className:b,d:j}))};function m7(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(DN(t)){if(e==="centric"){var{cx:r,cy:l,innerRadius:o,outerRadius:u,angle:f}=t,d=Mt(r,l,o,f),h=Mt(r,l,u,f);return[{x:d.x,y:d.y},{x:h.x,y:h.y}]}return QC(t)}}var Qv={},Jv={},ey={},W_;function p7(){return W_||(W_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=HN();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(ey)),ey}var Q_;function v7(){return Q_||(Q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p7();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Jv)),Jv}var J_;function y7(){return J_||(J_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FN(),n=v7();function r(l,o,u){u&&typeof u!="number"&&t.isIterateeCall(l,o,u)&&(o=u=void 0),l=n.toFinite(l),o===void 0?(o=l,l=0):o=n.toFinite(o),u=u===void 0?l<o?1:-1:n.toFinite(u);const f=Math.max(Math.ceil((o-l)/(u||1)),0),d=new Array(f);for(let h=0;h<f;h++)d[h]=l,l+=u;return d}e.range=r})(Qv)),Qv}var ty,eO;function g7(){return eO||(eO=1,ty=y7().range),ty}var b7=g7();const tT=Rr(b7);function ri(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function x7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function b0(e){let t,n,r;e.length!==2?(t=ri,n=(f,d)=>ri(e(f),d),r=(f,d)=>e(f)-d):(t=e===ri||e===x7?e:w7,n=e,r=e);function l(f,d,h=0,p=f.length){if(h<p){if(t(d,d)!==0)return p;do{const y=h+p>>>1;n(f[y],d)<0?h=y+1:p=y}while(h<p)}return h}function o(f,d,h=0,p=f.length){if(h<p){if(t(d,d)!==0)return p;do{const y=h+p>>>1;n(f[y],d)<=0?h=y+1:p=y}while(h<p)}return h}function u(f,d,h=0,p=f.length){const y=l(f,d,h,p-1);return y>h&&r(f[y-1],d)>-r(f[y],d)?y-1:y}return{left:l,center:u,right:o}}function w7(){return 0}function nT(e){return e===null?NaN:+e}function*S7(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const j7=b0(ri),vu=j7.right;b0(nT).center;class tO extends Map{constructor(t,n=A7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,l]of t)this.set(r,l)}get(t){return super.get(nO(this,t))}has(t){return super.has(nO(this,t))}set(t,n){return super.set(_7(this,t),n)}delete(t){return super.delete(O7(this,t))}}function nO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function O7({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function A7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function E7(e=ri){if(e===ri)return rT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function rT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const N7=Math.sqrt(50),C7=Math.sqrt(10),T7=Math.sqrt(2);function Jf(e,t,n){const r=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(r)),o=r/Math.pow(10,l),u=o>=N7?10:o>=C7?5:o>=T7?2:1;let f,d,h;return l<0?(h=Math.pow(10,-l)/u,f=Math.round(e*h),d=Math.round(t*h),f/h<e&&++f,d/h>t&&--d,h=-h):(h=Math.pow(10,l)*u,f=Math.round(e/h),d=Math.round(t/h),f*h<e&&++f,d*h>t&&--d),d<f&&.5<=n&&n<2?Jf(e,t,n*2):[f,d,h]}function dg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[l,o,u]=r?Jf(t,e,n):Jf(e,t,n);if(!(o>=l))return[];const f=o-l+1,d=new Array(f);if(r)if(u<0)for(let h=0;h<f;++h)d[h]=(o-h)/-u;else for(let h=0;h<f;++h)d[h]=(o-h)*u;else if(u<0)for(let h=0;h<f;++h)d[h]=(l+h)/-u;else for(let h=0;h<f;++h)d[h]=(l+h)*u;return d}function hg(e,t,n){return t=+t,e=+e,n=+n,Jf(e,t,n)[2]}function mg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,l=r?hg(t,e,n):hg(e,t,n);return(r?-1:1)*(l<0?1/-l:l)}function rO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function aO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function aT(e,t,n=0,r=1/0,l){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(l=l===void 0?rT:E7(l);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,p=Math.log(d),y=.5*Math.exp(2*p/3),b=.5*Math.sqrt(p*y*(d-y)/d)*(h-d/2<0?-1:1),S=Math.max(n,Math.floor(t-h*y/d+b)),w=Math.min(r,Math.floor(t+(d-h)*y/d+b));aT(e,t,S,w,l)}const o=e[t];let u=n,f=r;for(Ts(e,n,t),l(e[r],o)>0&&Ts(e,n,r);u<f;){for(Ts(e,u,f),++u,--f;l(e[u],o)<0;)++u;for(;l(e[f],o)>0;)--f}l(e[n],o)===0?Ts(e,n,f):(++f,Ts(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function Ts(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function M7(e,t,n){if(e=Float64Array.from(S7(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return aO(e);if(t>=1)return rO(e);var r,l=(r-1)*t,o=Math.floor(l),u=rO(aT(e,o).subarray(0,o+1)),f=aO(e.subarray(o+1));return u+(f-u)*(l-o)}}function D7(e,t,n=nT){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,l=(r-1)*t,o=Math.floor(l),u=+n(e[o],o,e),f=+n(e[o+1],o+1,e);return u+(f-u)*(l-o)}}function P7(e,t,n){e=+e,t=+t,n=(l=arguments.length)<2?(t=e,e=0,1):l<3?1:+n;for(var r=-1,l=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(l);++r<l;)o[r]=e+r*n;return o}function cr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sa(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const pg=Symbol("implicit");function x0(){var e=new tO,t=[],n=[],r=pg;function l(o){let u=e.get(o);if(u===void 0){if(r!==pg)return r;e.set(o,u=t.push(o)-1)}return n[u%n.length]}return l.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new tO;for(const u of o)e.has(u)||e.set(u,t.push(u)-1);return l},l.range=function(o){return arguments.length?(n=Array.from(o),l):n.slice()},l.unknown=function(o){return arguments.length?(r=o,l):r},l.copy=function(){return x0(t,n).unknown(r)},cr.apply(l,arguments),l}function w0(){var e=x0().unknown(void 0),t=e.domain,n=e.range,r=0,l=1,o,u,f=!1,d=0,h=0,p=.5;delete e.unknown;function y(){var b=t().length,S=l<r,w=S?l:r,j=S?r:l;o=(j-w)/Math.max(1,b-d+h*2),f&&(o=Math.floor(o)),w+=(j-w-o*(b-d))*p,u=o*(1-d),f&&(w=Math.round(w),u=Math.round(u));var _=P7(b).map(function(E){return w+o*E});return n(S?_.reverse():_)}return e.domain=function(b){return arguments.length?(t(b),y()):t()},e.range=function(b){return arguments.length?([r,l]=b,r=+r,l=+l,y()):[r,l]},e.rangeRound=function(b){return[r,l]=b,r=+r,l=+l,f=!0,y()},e.bandwidth=function(){return u},e.step=function(){return o},e.round=function(b){return arguments.length?(f=!!b,y()):f},e.padding=function(b){return arguments.length?(d=Math.min(1,h=+b),y()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),y()):d},e.paddingOuter=function(b){return arguments.length?(h=+b,y()):h},e.align=function(b){return arguments.length?(p=Math.max(0,Math.min(1,b)),y()):p},e.copy=function(){return w0(t(),[r,l]).round(f).paddingInner(d).paddingOuter(h).align(p)},cr.apply(y(),arguments)}function iT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return iT(t())},e}function k7(){return iT(w0.apply(null,arguments).paddingInner(1))}function S0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yu(){}var Vs=.7,ed=1/Vs,lo="\\s*([+-]?\\d+)\\s*",Xs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R7=/^#([0-9a-f]{3,8})$/,z7=new RegExp(`^rgb\\(${lo},${lo},${lo}\\)$`),L7=new RegExp(`^rgb\\(${Mr},${Mr},${Mr}\\)$`),B7=new RegExp(`^rgba\\(${lo},${lo},${lo},${Xs}\\)$`),I7=new RegExp(`^rgba\\(${Mr},${Mr},${Mr},${Xs}\\)$`),$7=new RegExp(`^hsl\\(${Xs},${Mr},${Mr}\\)$`),U7=new RegExp(`^hsla\\(${Xs},${Mr},${Mr},${Xs}\\)$`),iO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};S0(yu,Zs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:lO,formatHex:lO,formatHex8:q7,formatHsl:H7,formatRgb:oO,toString:oO});function lO(){return this.rgb().formatHex()}function q7(){return this.rgb().formatHex8()}function H7(){return oT(this).formatHsl()}function oO(){return this.rgb().formatRgb()}function Zs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=R7.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?sO(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?nf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?nf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=z7.exec(e))?new jn(t[1],t[2],t[3],1):(t=L7.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=B7.exec(e))?nf(t[1],t[2],t[3],t[4]):(t=I7.exec(e))?nf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$7.exec(e))?fO(t[1],t[2]/100,t[3]/100,1):(t=U7.exec(e))?fO(t[1],t[2]/100,t[3]/100,t[4]):iO.hasOwnProperty(e)?sO(iO[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function sO(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function nf(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function F7(e){return e instanceof yu||(e=Zs(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function vg(e,t,n,r){return arguments.length===1?F7(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}S0(jn,vg,lT(yu,{brighter(e){return e=e==null?ed:Math.pow(ed,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(Hi(this.r),Hi(this.g),Hi(this.b),td(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:uO,formatHex:uO,formatHex8:K7,formatRgb:cO,toString:cO}));function uO(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}`}function K7(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}${Bi((isNaN(this.opacity)?1:this.opacity)*255)}`}function cO(){const e=td(this.opacity);return`${e===1?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${e===1?")":`, ${e})`}`}function td(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bi(e){return e=Hi(e),(e<16?"0":"")+e.toString(16)}function fO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vr(e,t,n,r)}function oT(e){if(e instanceof vr)return new vr(e.h,e.s,e.l,e.opacity);if(e instanceof yu||(e=Zs(e)),!e)return new vr;if(e instanceof vr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),o=Math.max(t,n,r),u=NaN,f=o-l,d=(o+l)/2;return f?(t===o?u=(n-r)/f+(n<r)*6:n===o?u=(r-t)/f+2:u=(t-n)/f+4,f/=d<.5?o+l:2-o-l,u*=60):f=d>0&&d<1?0:u,new vr(u,f,d,e.opacity)}function Y7(e,t,n,r){return arguments.length===1?oT(e):new vr(e,t,n,r??1)}function vr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}S0(vr,Y7,lT(yu,{brighter(e){return e=e==null?ed:Math.pow(ed,e),new vr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new vr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new jn(ny(e>=240?e-240:e+120,l,r),ny(e,l,r),ny(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new vr(dO(this.h),rf(this.s),rf(this.l),td(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=td(this.opacity);return`${e===1?"hsl(":"hsla("}${dO(this.h)}, ${rf(this.s)*100}%, ${rf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dO(e){return e=(e||0)%360,e<0?e+360:e}function rf(e){return Math.max(0,Math.min(1,e||0))}function ny(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const j0=e=>()=>e;function G7(e,t){return function(n){return e+n*t}}function V7(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function X7(e){return(e=+e)==1?sT:function(t,n){return n-t?V7(t,n,e):j0(isNaN(t)?n:t)}}function sT(e,t){var n=t-e;return n?G7(e,n):j0(isNaN(e)?t:e)}const hO=(function e(t){var n=X7(t);function r(l,o){var u=n((l=vg(l)).r,(o=vg(o)).r),f=n(l.g,o.g),d=n(l.b,o.b),h=sT(l.opacity,o.opacity);return function(p){return l.r=u(p),l.g=f(p),l.b=d(p),l.opacity=h(p),l+""}}return r.gamma=e,r})(1);function Z7(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(o){for(l=0;l<n;++l)r[l]=e[l]*(1-o)+t[l]*o;return r}}function W7(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Q7(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,l=new Array(r),o=new Array(n),u;for(u=0;u<r;++u)l[u]=xo(e[u],t[u]);for(;u<n;++u)o[u]=t[u];return function(f){for(u=0;u<r;++u)o[u]=l[u](f);return o}}function J7(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function nd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function e$(e,t){var n={},r={},l;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(l in t)l in e?n[l]=xo(e[l],t[l]):r[l]=t[l];return function(o){for(l in n)r[l]=n[l](o);return r}}var yg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ry=new RegExp(yg.source,"g");function t$(e){return function(){return e}}function n$(e){return function(t){return e(t)+""}}function r$(e,t){var n=yg.lastIndex=ry.lastIndex=0,r,l,o,u=-1,f=[],d=[];for(e=e+"",t=t+"";(r=yg.exec(e))&&(l=ry.exec(t));)(o=l.index)>n&&(o=t.slice(n,o),f[u]?f[u]+=o:f[++u]=o),(r=r[0])===(l=l[0])?f[u]?f[u]+=l:f[++u]=l:(f[++u]=null,d.push({i:u,x:nd(r,l)})),n=ry.lastIndex;return n<t.length&&(o=t.slice(n),f[u]?f[u]+=o:f[++u]=o),f.length<2?d[0]?n$(d[0].x):t$(t):(t=d.length,function(h){for(var p=0,y;p<t;++p)f[(y=d[p]).i]=y.x(h);return f.join("")})}function xo(e,t){var n=typeof t,r;return t==null||n==="boolean"?j0(t):(n==="number"?nd:n==="string"?(r=Zs(t))?(t=r,hO):r$:t instanceof Zs?hO:t instanceof Date?J7:W7(t)?Z7:Array.isArray(t)?Q7:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?e$:nd)(e,t)}function _0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function a$(e,t){t===void 0&&(t=e,e=xo);for(var n=0,r=t.length-1,l=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(l,l=t[++n]);return function(u){var f=Math.max(0,Math.min(r-1,Math.floor(u*=r)));return o[f](u-f)}}function i$(e){return function(){return e}}function rd(e){return+e}var mO=[0,1];function dn(e){return e}function gg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:i$(isNaN(t)?NaN:.5)}function l$(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function o$(e,t,n){var r=e[0],l=e[1],o=t[0],u=t[1];return l<r?(r=gg(l,r),o=n(u,o)):(r=gg(r,l),o=n(o,u)),function(f){return o(r(f))}}function s$(e,t,n){var r=Math.min(e.length,t.length)-1,l=new Array(r),o=new Array(r),u=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<r;)l[u]=gg(e[u],e[u+1]),o[u]=n(t[u],t[u+1]);return function(f){var d=vu(e,f,1,r)-1;return o[d](l[d](f))}}function gu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qd(){var e=mO,t=mO,n=xo,r,l,o,u=dn,f,d,h;function p(){var b=Math.min(e.length,t.length);return u!==dn&&(u=l$(e[0],e[b-1])),f=b>2?s$:o$,d=h=null,y}function y(b){return b==null||isNaN(b=+b)?o:(d||(d=f(e.map(r),t,n)))(r(u(b)))}return y.invert=function(b){return u(l((h||(h=f(t,e.map(r),nd)))(b)))},y.domain=function(b){return arguments.length?(e=Array.from(b,rd),p()):e.slice()},y.range=function(b){return arguments.length?(t=Array.from(b),p()):t.slice()},y.rangeRound=function(b){return t=Array.from(b),n=_0,p()},y.clamp=function(b){return arguments.length?(u=b?!0:dn,p()):u!==dn},y.interpolate=function(b){return arguments.length?(n=b,p()):n},y.unknown=function(b){return arguments.length?(o=b,y):o},function(b,S){return r=b,l=S,p()}}function O0(){return Qd()(dn,dn)}function u$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ho(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function c$(e,t){return function(n,r){for(var l=n.length,o=[],u=0,f=e[0],d=0;l>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),o.push(n.substring(l-=f,l+f)),!((d+=f+1)>r));)f=e[u=(u+1)%e.length];return o.reverse().join(t)}}function f$(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var d$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ws(e){if(!(t=d$.exec(e)))throw new Error("invalid format: "+e);var t;return new A0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ws.prototype=A0.prototype;function A0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}A0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function h$(e){e:for(var t=e.length,n=1,r=-1,l;n<t;++n)switch(e[n]){case".":r=l=n;break;case"0":r===0&&(r=n),l=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var id;function m$(e,t){var n=ad(e,t);if(!n)return id=void 0,e.toPrecision(t);var r=n[0],l=n[1],o=l-(id=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ad(e,Math.max(0,t+o-1))[0]}function pO(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const vO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u$,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>pO(e*100,t),r:pO,s:m$,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yO(e){return e}var gO=Array.prototype.map,bO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p$(e){var t=e.grouping===void 0||e.thousands===void 0?yO:c$(gO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?yO:f$(gO.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(y,b){y=Ws(y);var S=y.fill,w=y.align,j=y.sign,_=y.symbol,E=y.zero,A=y.width,T=y.comma,C=y.precision,P=y.trim,M=y.type;M==="n"?(T=!0,M="g"):vO[M]||(C===void 0&&(C=12),P=!0,M="g"),(E||S==="0"&&w==="=")&&(E=!0,S="0",w="=");var D=(b&&b.prefix!==void 0?b.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),I=(_==="$"?r:/[%p]/.test(M)?u:"")+(b&&b.suffix!==void 0?b.suffix:""),V=vO[M],X=/[defgprs%]/.test(M);C=C===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function te(k){var se=D,U=I,ne,L,Z;if(M==="c")U=V(k)+U,k="";else{k=+k;var ie=k<0||1/k<0;if(k=isNaN(k)?d:V(Math.abs(k),C),P&&(k=h$(k)),ie&&+k==0&&j!=="+"&&(ie=!1),se=(ie?j==="("?j:f:j==="-"||j==="("?"":j)+se,U=(M==="s"&&!isNaN(k)&&id!==void 0?bO[8+id/3]:"")+U+(ie&&j==="("?")":""),X){for(ne=-1,L=k.length;++ne<L;)if(Z=k.charCodeAt(ne),48>Z||Z>57){U=(Z===46?l+k.slice(ne+1):k.slice(ne))+U,k=k.slice(0,ne);break}}}T&&!E&&(k=t(k,1/0));var fe=se.length+k.length+U.length,de=fe<A?new Array(A-fe+1).join(S):"";switch(T&&E&&(k=t(de+k,de.length?A-U.length:1/0),de=""),w){case"<":k=se+k+U+de;break;case"=":k=se+de+k+U;break;case"^":k=de.slice(0,fe=de.length>>1)+se+k+U+de.slice(fe);break;default:k=de+se+k+U;break}return o(k)}return te.toString=function(){return y+""},te}function p(y,b){var S=Math.max(-8,Math.min(8,Math.floor(ho(b)/3)))*3,w=Math.pow(10,-S),j=h((y=Ws(y),y.type="f",y),{suffix:bO[8+S/3]});return function(_){return j(w*_)}}return{format:h,formatPrefix:p}}var af,E0,uT;v$({thousands:",",grouping:[3],currency:["$",""]});function v$(e){return af=p$(e),E0=af.format,uT=af.formatPrefix,af}function y$(e){return Math.max(0,-ho(Math.abs(e)))}function g$(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ho(t)/3)))*3-ho(Math.abs(e)))}function b$(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ho(t)-ho(e))+1}function cT(e,t,n,r){var l=mg(e,t,n),o;switch(r=Ws(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=g$(l,u))&&(r.precision=o),uT(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=b$(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=y$(l))&&(r.precision=o-(r.type==="%")*2);break}}return E0(r)}function ui(e){var t=e.domain;return e.ticks=function(n){var r=t();return dg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return cT(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,o=r.length-1,u=r[l],f=r[o],d,h,p=10;for(f<u&&(h=u,u=f,f=h,h=l,l=o,o=h);p-- >0;){if(h=hg(u,f,n),h===d)return r[l]=u,r[o]=f,t(r);if(h>0)u=Math.floor(u/h)*h,f=Math.ceil(f/h)*h;else if(h<0)u=Math.ceil(u*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function fT(){var e=O0();return e.copy=function(){return gu(e,fT())},cr.apply(e,arguments),ui(e)}function dT(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,rd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return dT(e).unknown(t)},e=arguments.length?Array.from(e,rd):[0,1],ui(n)}function hT(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],o=e[r],u;return o<l&&(u=n,n=r,r=u,u=l,l=o,o=u),e[n]=t.floor(l),e[r]=t.ceil(o),e}function xO(e){return Math.log(e)}function wO(e){return Math.exp(e)}function x$(e){return-Math.log(-e)}function w$(e){return-Math.exp(-e)}function S$(e){return isFinite(e)?+("1e"+e):e<0?0:e}function j$(e){return e===10?S$:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _$(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function SO(e){return(t,n)=>-e(-t,n)}function N0(e){const t=e(xO,wO),n=t.domain;let r=10,l,o;function u(){return l=_$(r),o=j$(r),n()[0]<0?(l=SO(l),o=SO(o),e(x$,w$)):e(xO,wO),t}return t.base=function(f){return arguments.length?(r=+f,u()):r},t.domain=function(f){return arguments.length?(n(f),u()):n()},t.ticks=f=>{const d=n();let h=d[0],p=d[d.length-1];const y=p<h;y&&([h,p]=[p,h]);let b=l(h),S=l(p),w,j;const _=f==null?10:+f;let E=[];if(!(r%1)&&S-b<_){if(b=Math.floor(b),S=Math.ceil(S),h>0){for(;b<=S;++b)for(w=1;w<r;++w)if(j=b<0?w/o(-b):w*o(b),!(j<h)){if(j>p)break;E.push(j)}}else for(;b<=S;++b)for(w=r-1;w>=1;--w)if(j=b>0?w/o(-b):w*o(b),!(j<h)){if(j>p)break;E.push(j)}E.length*2<_&&(E=dg(h,p,_))}else E=dg(b,S,Math.min(S-b,_)).map(o);return y?E.reverse():E},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Ws(d)).precision==null&&(d.trim=!0),d=E0(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return p=>{let y=p/o(Math.round(l(p)));return y*r<r-.5&&(y*=r),y<=h?d(p):""}},t.nice=()=>n(hT(n(),{floor:f=>o(Math.floor(l(f))),ceil:f=>o(Math.ceil(l(f)))})),t}function mT(){const e=N0(Qd()).domain([1,10]);return e.copy=()=>gu(e,mT()).base(e.base()),cr.apply(e,arguments),e}function jO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _O(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function C0(e){var t=1,n=e(jO(t),_O(t));return n.constant=function(r){return arguments.length?e(jO(t=+r),_O(t)):t},ui(n)}function pT(){var e=C0(Qd());return e.copy=function(){return gu(e,pT()).constant(e.constant())},cr.apply(e,arguments)}function OO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function O$(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function A$(e){return e<0?-e*e:e*e}function T0(e){var t=e(dn,dn),n=1;function r(){return n===1?e(dn,dn):n===.5?e(O$,A$):e(OO(n),OO(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},ui(t)}function M0(){var e=T0(Qd());return e.copy=function(){return gu(e,M0()).exponent(e.exponent())},cr.apply(e,arguments),e}function E$(){return M0.apply(null,arguments).exponent(.5)}function AO(e){return Math.sign(e)*e*e}function N$(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function vT(){var e=O0(),t=[0,1],n=!1,r;function l(o){var u=N$(e(o));return isNaN(u)?r:n?Math.round(u):u}return l.invert=function(o){return e.invert(AO(o))},l.domain=function(o){return arguments.length?(e.domain(o),l):e.domain()},l.range=function(o){return arguments.length?(e.range((t=Array.from(o,rd)).map(AO)),l):t.slice()},l.rangeRound=function(o){return l.range(o).round(!0)},l.round=function(o){return arguments.length?(n=!!o,l):n},l.clamp=function(o){return arguments.length?(e.clamp(o),l):e.clamp()},l.unknown=function(o){return arguments.length?(r=o,l):r},l.copy=function(){return vT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},cr.apply(l,arguments),ui(l)}function yT(){var e=[],t=[],n=[],r;function l(){var u=0,f=Math.max(1,t.length);for(n=new Array(f-1);++u<f;)n[u-1]=D7(e,u/f);return o}function o(u){return u==null||isNaN(u=+u)?r:t[vu(n,u)]}return o.invertExtent=function(u){var f=t.indexOf(u);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},o.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let f of u)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(ri),l()},o.range=function(u){return arguments.length?(t=Array.from(u),l()):t.slice()},o.unknown=function(u){return arguments.length?(r=u,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return yT().domain(e).range(t).unknown(r)},cr.apply(o,arguments)}function gT(){var e=0,t=1,n=1,r=[.5],l=[0,1],o;function u(d){return d!=null&&d<=d?l[vu(r,d,0,n)]:o}function f(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return u}return u.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,f()):[e,t]},u.range=function(d){return arguments.length?(n=(l=Array.from(d)).length-1,f()):l.slice()},u.invertExtent=function(d){var h=l.indexOf(d);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},u.unknown=function(d){return arguments.length&&(o=d),u},u.thresholds=function(){return r.slice()},u.copy=function(){return gT().domain([e,t]).range(l).unknown(o)},cr.apply(ui(u),arguments)}function bT(){var e=[.5],t=[0,1],n,r=1;function l(o){return o!=null&&o<=o?t[vu(e,o,0,r)]:n}return l.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),l):e.slice()},l.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),l):t.slice()},l.invertExtent=function(o){var u=t.indexOf(o);return[e[u-1],e[u]]},l.unknown=function(o){return arguments.length?(n=o,l):n},l.copy=function(){return bT().domain(e).range(t).unknown(n)},cr.apply(l,arguments)}const ay=new Date,iy=new Date;function Bt(e,t,n,r){function l(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return l.floor=o=>(e(o=new Date(+o)),o),l.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),l.round=o=>{const u=l(o),f=l.ceil(o);return o-u<f-o?u:f},l.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),l.range=(o,u,f)=>{const d=[];if(o=l.ceil(o),f=f==null?1:Math.floor(f),!(o<u)||!(f>0))return d;let h;do d.push(h=new Date(+o)),t(o,f),e(o);while(h<o&&o<u);return d},l.filter=o=>Bt(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,f)=>{if(u>=u)if(f<0)for(;++f<=0;)for(;t(u,-1),!o(u););else for(;--f>=0;)for(;t(u,1),!o(u););}),n&&(l.count=(o,u)=>(ay.setTime(+o),iy.setTime(+u),e(ay),e(iy),Math.floor(n(ay,iy))),l.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?l.filter(r?u=>r(u)%o===0:u=>l.count(0,u)%o===0):l)),l}const ld=Bt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Bt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ld);ld.range;const sa=1e3,lr=sa*60,ua=lr*60,ha=ua*24,D0=ha*7,EO=ha*30,ly=ha*365,Ii=Bt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sa)},(e,t)=>(t-e)/sa,e=>e.getUTCSeconds());Ii.range;const P0=Bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sa)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());P0.range;const k0=Bt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());k0.range;const R0=Bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sa-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getHours());R0.range;const z0=Bt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getUTCHours());z0.range;const bu=Bt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/ha,e=>e.getDate()-1);bu.range;const Jd=Bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>e.getUTCDate()-1);Jd.range;const xT=Bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>Math.floor(e/ha));xT.range;function ll(e){return Bt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*lr)/D0)}const eh=ll(0),od=ll(1),C$=ll(2),T$=ll(3),mo=ll(4),M$=ll(5),D$=ll(6);eh.range;od.range;C$.range;T$.range;mo.range;M$.range;D$.range;function ol(e){return Bt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/D0)}const th=ol(0),sd=ol(1),P$=ol(2),k$=ol(3),po=ol(4),R$=ol(5),z$=ol(6);th.range;sd.range;P$.range;k$.range;po.range;R$.range;z$.range;const L0=Bt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());L0.range;const B0=Bt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());B0.range;const ma=Bt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ma.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ma.range;const pa=Bt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});pa.range;function wT(e,t,n,r,l,o){const u=[[Ii,1,sa],[Ii,5,5*sa],[Ii,15,15*sa],[Ii,30,30*sa],[o,1,lr],[o,5,5*lr],[o,15,15*lr],[o,30,30*lr],[l,1,ua],[l,3,3*ua],[l,6,6*ua],[l,12,12*ua],[r,1,ha],[r,2,2*ha],[n,1,D0],[t,1,EO],[t,3,3*EO],[e,1,ly]];function f(h,p,y){const b=p<h;b&&([h,p]=[p,h]);const S=y&&typeof y.range=="function"?y:d(h,p,y),w=S?S.range(h,+p+1):[];return b?w.reverse():w}function d(h,p,y){const b=Math.abs(p-h)/y,S=b0(([,,_])=>_).right(u,b);if(S===u.length)return e.every(mg(h/ly,p/ly,y));if(S===0)return ld.every(Math.max(mg(h,p,y),1));const[w,j]=u[b/u[S-1][2]<u[S][2]/b?S-1:S];return w.every(j)}return[f,d]}const[L$,B$]=wT(pa,B0,th,xT,z0,k0),[I$,$$]=wT(ma,L0,eh,bu,R0,P0);function oy(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function sy(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ms(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function U$(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,o=e.days,u=e.shortDays,f=e.months,d=e.shortMonths,h=Ds(l),p=Ps(l),y=Ds(o),b=Ps(o),S=Ds(u),w=Ps(u),j=Ds(f),_=Ps(f),E=Ds(d),A=Ps(d),T={a:Z,A:ie,b:fe,B:de,c:null,d:PO,e:PO,f:c9,g:x9,G:S9,H:o9,I:s9,j:u9,L:ST,m:f9,M:d9,p:R,q:Y,Q:zO,s:LO,S:h9,u:m9,U:p9,V:v9,w:y9,W:g9,x:null,X:null,y:b9,Y:w9,Z:j9,"%":RO},C={a:oe,A:ce,b:pe,B:xe,c:null,d:kO,e:kO,f:E9,g:L9,G:I9,H:_9,I:O9,j:A9,L:_T,m:N9,M:C9,p:be,q:et,Q:zO,s:LO,S:T9,u:M9,U:D9,V:P9,w:k9,W:R9,x:null,X:null,y:z9,Y:B9,Z:$9,"%":RO},P={a:X,A:te,b:k,B:se,c:U,d:MO,e:MO,f:r9,g:TO,G:CO,H:DO,I:DO,j:J$,L:n9,m:Q$,M:e9,p:V,q:W$,Q:i9,s:l9,S:t9,u:Y$,U:G$,V:V$,w:K$,W:X$,x:ne,X:L,y:TO,Y:CO,Z:Z$,"%":a9};T.x=M(n,T),T.X=M(r,T),T.c=M(t,T),C.x=M(n,C),C.X=M(r,C),C.c=M(t,C);function M(J,_e){return function(Ae){var ue=[],ut=-1,q=0,Se=J.length,Fe,Cn,Ir;for(Ae instanceof Date||(Ae=new Date(+Ae));++ut<Se;)J.charCodeAt(ut)===37&&(ue.push(J.slice(q,ut)),(Cn=NO[Fe=J.charAt(++ut)])!=null?Fe=J.charAt(++ut):Cn=Fe==="e"?" ":"0",(Ir=_e[Fe])&&(Fe=Ir(Ae,Cn)),ue.push(Fe),q=ut+1);return ue.push(J.slice(q,ut)),ue.join("")}}function D(J,_e){return function(Ae){var ue=Ms(1900,void 0,1),ut=I(ue,J,Ae+="",0),q,Se;if(ut!=Ae.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(_e&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(q=sy(Ms(ue.y,0,1)),Se=q.getUTCDay(),q=Se>4||Se===0?sd.ceil(q):sd(q),q=Jd.offset(q,(ue.V-1)*7),ue.y=q.getUTCFullYear(),ue.m=q.getUTCMonth(),ue.d=q.getUTCDate()+(ue.w+6)%7):(q=oy(Ms(ue.y,0,1)),Se=q.getDay(),q=Se>4||Se===0?od.ceil(q):od(q),q=bu.offset(q,(ue.V-1)*7),ue.y=q.getFullYear(),ue.m=q.getMonth(),ue.d=q.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Se="Z"in ue?sy(Ms(ue.y,0,1)).getUTCDay():oy(Ms(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(Se+5)%7:ue.w+ue.U*7-(Se+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,sy(ue)):oy(ue)}}function I(J,_e,Ae,ue){for(var ut=0,q=_e.length,Se=Ae.length,Fe,Cn;ut<q;){if(ue>=Se)return-1;if(Fe=_e.charCodeAt(ut++),Fe===37){if(Fe=_e.charAt(ut++),Cn=P[Fe in NO?_e.charAt(ut++):Fe],!Cn||(ue=Cn(J,Ae,ue))<0)return-1}else if(Fe!=Ae.charCodeAt(ue++))return-1}return ue}function V(J,_e,Ae){var ue=h.exec(_e.slice(Ae));return ue?(J.p=p.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function X(J,_e,Ae){var ue=S.exec(_e.slice(Ae));return ue?(J.w=w.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function te(J,_e,Ae){var ue=y.exec(_e.slice(Ae));return ue?(J.w=b.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function k(J,_e,Ae){var ue=E.exec(_e.slice(Ae));return ue?(J.m=A.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function se(J,_e,Ae){var ue=j.exec(_e.slice(Ae));return ue?(J.m=_.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function U(J,_e,Ae){return I(J,t,_e,Ae)}function ne(J,_e,Ae){return I(J,n,_e,Ae)}function L(J,_e,Ae){return I(J,r,_e,Ae)}function Z(J){return u[J.getDay()]}function ie(J){return o[J.getDay()]}function fe(J){return d[J.getMonth()]}function de(J){return f[J.getMonth()]}function R(J){return l[+(J.getHours()>=12)]}function Y(J){return 1+~~(J.getMonth()/3)}function oe(J){return u[J.getUTCDay()]}function ce(J){return o[J.getUTCDay()]}function pe(J){return d[J.getUTCMonth()]}function xe(J){return f[J.getUTCMonth()]}function be(J){return l[+(J.getUTCHours()>=12)]}function et(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var _e=M(J+="",T);return _e.toString=function(){return J},_e},parse:function(J){var _e=D(J+="",!1);return _e.toString=function(){return J},_e},utcFormat:function(J){var _e=M(J+="",C);return _e.toString=function(){return J},_e},utcParse:function(J){var _e=D(J+="",!0);return _e.toString=function(){return J},_e}}}var NO={"-":"",_:" ",0:"0"},Yt=/^\s*\d+/,q$=/^%/,H$=/[\\^$*+?|[\]().{}]/g;function qe(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",o=l.length;return r+(o<n?new Array(n-o+1).join(t)+l:l)}function F$(e){return e.replace(H$,"\\$&")}function Ds(e){return new RegExp("^(?:"+e.map(F$).join("|")+")","i")}function Ps(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function K$(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Y$(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G$(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function V$(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function X$(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function CO(e,t,n){var r=Yt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function TO(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Z$(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function W$(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Q$(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function MO(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function J$(e,t,n){var r=Yt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function DO(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function e9(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function t9(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function n9(e,t,n){var r=Yt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function r9(e,t,n){var r=Yt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function a9(e,t,n){var r=q$.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function i9(e,t,n){var r=Yt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function l9(e,t,n){var r=Yt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function PO(e,t){return qe(e.getDate(),t,2)}function o9(e,t){return qe(e.getHours(),t,2)}function s9(e,t){return qe(e.getHours()%12||12,t,2)}function u9(e,t){return qe(1+bu.count(ma(e),e),t,3)}function ST(e,t){return qe(e.getMilliseconds(),t,3)}function c9(e,t){return ST(e,t)+"000"}function f9(e,t){return qe(e.getMonth()+1,t,2)}function d9(e,t){return qe(e.getMinutes(),t,2)}function h9(e,t){return qe(e.getSeconds(),t,2)}function m9(e){var t=e.getDay();return t===0?7:t}function p9(e,t){return qe(eh.count(ma(e)-1,e),t,2)}function jT(e){var t=e.getDay();return t>=4||t===0?mo(e):mo.ceil(e)}function v9(e,t){return e=jT(e),qe(mo.count(ma(e),e)+(ma(e).getDay()===4),t,2)}function y9(e){return e.getDay()}function g9(e,t){return qe(od.count(ma(e)-1,e),t,2)}function b9(e,t){return qe(e.getFullYear()%100,t,2)}function x9(e,t){return e=jT(e),qe(e.getFullYear()%100,t,2)}function w9(e,t){return qe(e.getFullYear()%1e4,t,4)}function S9(e,t){var n=e.getDay();return e=n>=4||n===0?mo(e):mo.ceil(e),qe(e.getFullYear()%1e4,t,4)}function j9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qe(t/60|0,"0",2)+qe(t%60,"0",2)}function kO(e,t){return qe(e.getUTCDate(),t,2)}function _9(e,t){return qe(e.getUTCHours(),t,2)}function O9(e,t){return qe(e.getUTCHours()%12||12,t,2)}function A9(e,t){return qe(1+Jd.count(pa(e),e),t,3)}function _T(e,t){return qe(e.getUTCMilliseconds(),t,3)}function E9(e,t){return _T(e,t)+"000"}function N9(e,t){return qe(e.getUTCMonth()+1,t,2)}function C9(e,t){return qe(e.getUTCMinutes(),t,2)}function T9(e,t){return qe(e.getUTCSeconds(),t,2)}function M9(e){var t=e.getUTCDay();return t===0?7:t}function D9(e,t){return qe(th.count(pa(e)-1,e),t,2)}function OT(e){var t=e.getUTCDay();return t>=4||t===0?po(e):po.ceil(e)}function P9(e,t){return e=OT(e),qe(po.count(pa(e),e)+(pa(e).getUTCDay()===4),t,2)}function k9(e){return e.getUTCDay()}function R9(e,t){return qe(sd.count(pa(e)-1,e),t,2)}function z9(e,t){return qe(e.getUTCFullYear()%100,t,2)}function L9(e,t){return e=OT(e),qe(e.getUTCFullYear()%100,t,2)}function B9(e,t){return qe(e.getUTCFullYear()%1e4,t,4)}function I9(e,t){var n=e.getUTCDay();return e=n>=4||n===0?po(e):po.ceil(e),qe(e.getUTCFullYear()%1e4,t,4)}function $9(){return"+0000"}function RO(){return"%"}function zO(e){return+e}function LO(e){return Math.floor(+e/1e3)}var Vl,AT,ET;U9({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function U9(e){return Vl=U$(e),AT=Vl.format,Vl.parse,ET=Vl.utcFormat,Vl.utcParse,Vl}function q9(e){return new Date(e)}function H9(e){return e instanceof Date?+e:+new Date(+e)}function I0(e,t,n,r,l,o,u,f,d,h){var p=O0(),y=p.invert,b=p.domain,S=h(".%L"),w=h(":%S"),j=h("%I:%M"),_=h("%I %p"),E=h("%a %d"),A=h("%b %d"),T=h("%B"),C=h("%Y");function P(M){return(d(M)<M?S:f(M)<M?w:u(M)<M?j:o(M)<M?_:r(M)<M?l(M)<M?E:A:n(M)<M?T:C)(M)}return p.invert=function(M){return new Date(y(M))},p.domain=function(M){return arguments.length?b(Array.from(M,H9)):b().map(q9)},p.ticks=function(M){var D=b();return e(D[0],D[D.length-1],M??10)},p.tickFormat=function(M,D){return D==null?P:h(D)},p.nice=function(M){var D=b();return(!M||typeof M.range!="function")&&(M=t(D[0],D[D.length-1],M??10)),M?b(hT(D,M)):p},p.copy=function(){return gu(p,I0(e,t,n,r,l,o,u,f,d,h))},p}function F9(){return cr.apply(I0(I$,$$,ma,L0,eh,bu,R0,P0,Ii,AT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function K9(){return cr.apply(I0(L$,B$,pa,B0,th,Jd,z0,k0,Ii,ET).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nh(){var e=0,t=1,n,r,l,o,u=dn,f=!1,d;function h(y){return y==null||isNaN(y=+y)?d:u(l===0?.5:(y=(o(y)-n)*l,f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([e,t]=y,n=o(e=+e),r=o(t=+t),l=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(u=y,h):u};function p(y){return function(b){var S,w;return arguments.length?([S,w]=b,u=y(S,w),h):[u(0),u(1)]}}return h.range=p(xo),h.rangeRound=p(_0),h.unknown=function(y){return arguments.length?(d=y,h):d},function(y){return o=y,n=y(e),r=y(t),l=n===r?0:1/(r-n),h}}function ci(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function NT(){var e=ui(nh()(dn));return e.copy=function(){return ci(e,NT())},Sa.apply(e,arguments)}function CT(){var e=N0(nh()).domain([1,10]);return e.copy=function(){return ci(e,CT()).base(e.base())},Sa.apply(e,arguments)}function TT(){var e=C0(nh());return e.copy=function(){return ci(e,TT()).constant(e.constant())},Sa.apply(e,arguments)}function $0(){var e=T0(nh());return e.copy=function(){return ci(e,$0()).exponent(e.exponent())},Sa.apply(e,arguments)}function Y9(){return $0.apply(null,arguments).exponent(.5)}function MT(){var e=[],t=dn;function n(r){if(r!=null&&!isNaN(r=+r))return t((vu(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let l of r)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ri),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,l)=>t(l/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(l,o)=>M7(e,o/r))},n.copy=function(){return MT(t).domain(e)},Sa.apply(n,arguments)}function rh(){var e=0,t=.5,n=1,r=1,l,o,u,f,d,h=dn,p,y=!1,b;function S(j){return isNaN(j=+j)?b:(j=.5+((j=+p(j))-o)*(r*j<r*o?f:d),h(y?Math.max(0,Math.min(1,j)):j))}S.domain=function(j){return arguments.length?([e,t,n]=j,l=p(e=+e),o=p(t=+t),u=p(n=+n),f=l===o?0:.5/(o-l),d=o===u?0:.5/(u-o),r=o<l?-1:1,S):[e,t,n]},S.clamp=function(j){return arguments.length?(y=!!j,S):y},S.interpolator=function(j){return arguments.length?(h=j,S):h};function w(j){return function(_){var E,A,T;return arguments.length?([E,A,T]=_,h=a$(j,[E,A,T]),S):[h(0),h(.5),h(1)]}}return S.range=w(xo),S.rangeRound=w(_0),S.unknown=function(j){return arguments.length?(b=j,S):b},function(j){return p=j,l=j(e),o=j(t),u=j(n),f=l===o?0:.5/(o-l),d=o===u?0:.5/(u-o),r=o<l?-1:1,S}}function DT(){var e=ui(rh()(dn));return e.copy=function(){return ci(e,DT())},Sa.apply(e,arguments)}function PT(){var e=N0(rh()).domain([.1,1,10]);return e.copy=function(){return ci(e,PT()).base(e.base())},Sa.apply(e,arguments)}function kT(){var e=C0(rh());return e.copy=function(){return ci(e,kT()).constant(e.constant())},Sa.apply(e,arguments)}function U0(){var e=T0(rh());return e.copy=function(){return ci(e,U0()).exponent(e.exponent())},Sa.apply(e,arguments)}function G9(){return U0.apply(null,arguments).exponent(.5)}const zs=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:w0,scaleDiverging:DT,scaleDivergingLog:PT,scaleDivergingPow:U0,scaleDivergingSqrt:G9,scaleDivergingSymlog:kT,scaleIdentity:dT,scaleImplicit:pg,scaleLinear:fT,scaleLog:mT,scaleOrdinal:x0,scalePoint:k7,scalePow:M0,scaleQuantile:yT,scaleQuantize:gT,scaleRadial:vT,scaleSequential:NT,scaleSequentialLog:CT,scaleSequentialPow:$0,scaleSequentialQuantile:MT,scaleSequentialSqrt:Y9,scaleSequentialSymlog:TT,scaleSqrt:E$,scaleSymlog:pT,scaleThreshold:bT,scaleTime:F9,scaleUtc:K9,tickFormat:cT},Symbol.toStringTag,{value:"Module"}));var ja=e=>e.chartData,ah=H([ja],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),RT=(e,t,n,r)=>r?ah(e):ja(e),zT=(e,t,n)=>n?ah(e):ja(e);function va(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Me(t)&&Me(n))return!0}return!1}function BO(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function LT(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,l,o;if(Me(n))l=n;else if(typeof n=="function")return;if(Me(r))o=r;else if(typeof r=="function")return;var u=[l,o];if(va(u))return u}}function V9(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(va(r))return BO(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[l,o]=e,u,f;if(l==="auto")t!=null&&(u=Math.min(...t));else if(he(l))u=l;else if(typeof l=="function")try{t!=null&&(u=l(t==null?void 0:t[0]))}catch{}else if(typeof l=="string"&&V2.test(l)){var d=V2.exec(l);if(d==null||d[1]==null||t==null)u=void 0;else{var h=+d[1];u=t[0]-h}}else u=t==null?void 0:t[0];if(o==="auto")t!=null&&(f=Math.max(...t));else if(he(o))f=o;else if(typeof o=="function")try{t!=null&&(f=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&X2.test(o)){var p=X2.exec(o);if(p==null||p[1]==null||t==null)f=void 0;else{var y=+p[1];f=t[1]+y}}else f=t==null?void 0:t[1];var b=[u,f];if(va(b))return t==null?b:BO(b,t,n)}}}var wo=1e9,X9={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},H0,dt=!0,sr="[DecimalError] ",Fi=sr+"Invalid argument: ",q0=sr+"Exponent out of range: ",So=Math.floor,ki=Math.pow,Z9=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$n,Ft=1e7,ot=7,BT=9007199254740991,ud=So(BT/ot),me={};me.absoluteValue=me.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};me.comparedTo=me.cmp=function(e){var t,n,r,l,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,l=e.d.length,t=0,n=r<l?r:l;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===l?0:r>l^o.s<0?1:-1};me.decimalPlaces=me.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};me.dividedBy=me.div=function(e){return ca(this,new this.constructor(e))};me.dividedToIntegerBy=me.idiv=function(e){var t=this,n=t.constructor;return nt(ca(t,new n(e),0,1),n.precision)};me.equals=me.eq=function(e){return!this.cmp(e)};me.exponent=function(){return Pt(this)};me.greaterThan=me.gt=function(e){return this.cmp(e)>0};me.greaterThanOrEqualTo=me.gte=function(e){return this.cmp(e)>=0};me.isInteger=me.isint=function(){return this.e>this.d.length-2};me.isNegative=me.isneg=function(){return this.s<0};me.isPositive=me.ispos=function(){return this.s>0};me.isZero=function(){return this.s===0};me.lessThan=me.lt=function(e){return this.cmp(e)<0};me.lessThanOrEqualTo=me.lte=function(e){return this.cmp(e)<1};me.logarithm=me.log=function(e){var t,n=this,r=n.constructor,l=r.precision,o=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq($n))throw Error(sr+"NaN");if(n.s<1)throw Error(sr+(n.s?"NaN":"-Infinity"));return n.eq($n)?new r(0):(dt=!1,t=ca(Qs(n,o),Qs(e,o),o),dt=!0,nt(t,l))};me.minus=me.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?UT(t,e):IT(t,(e.s=-e.s,e))};me.modulo=me.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(sr+"NaN");return n.s?(dt=!1,t=ca(n,e,0,1).times(e),dt=!0,n.minus(t)):nt(new r(n),l)};me.naturalExponential=me.exp=function(){return $T(this)};me.naturalLogarithm=me.ln=function(){return Qs(this)};me.negated=me.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};me.plus=me.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?IT(t,e):UT(t,(e.s=-e.s,e))};me.precision=me.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Fi+e);if(t=Pt(l)+1,r=l.d.length-1,n=r*ot+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};me.squareRoot=me.sqrt=function(){var e,t,n,r,l,o,u,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(sr+"NaN")}for(e=Pt(f),dt=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Tr(f.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=So((e+1)/2)-(e<0||e%2),l==1/0?t="5e"+e:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(l.toString()),n=d.precision,l=u=n+3;;)if(o=r,r=o.plus(ca(f,o,u+2)).times(.5),Tr(o.d).slice(0,u)===(t=Tr(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),l==u&&t=="4999"){if(nt(o,n+1,0),o.times(o).eq(f)){r=o;break}}else if(t!="9999")break;u+=4}return dt=!0,nt(r,n)};me.times=me.mul=function(e){var t,n,r,l,o,u,f,d,h,p=this,y=p.constructor,b=p.d,S=(e=new y(e)).d;if(!p.s||!e.s)return new y(0);for(e.s*=p.s,n=p.e+e.e,d=b.length,h=S.length,d<h&&(o=b,b=S,S=o,u=d,d=h,h=u),o=[],u=d+h,r=u;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,l=d+r;l>r;)f=o[l]+S[r]*b[l-r-1]+t,o[l--]=f%Ft|0,t=f/Ft|0;o[l]=(o[l]+t)%Ft|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,dt?nt(e,y.precision):e};me.toDecimalPlaces=me.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(kr(e,0,wo),t===void 0?t=r.rounding:kr(t,0,8),nt(n,e+Pt(n)+1,t))};me.toExponential=function(e,t){var n,r=this,l=r.constructor;return e===void 0?n=nl(r,!0):(kr(e,0,wo),t===void 0?t=l.rounding:kr(t,0,8),r=nt(new l(r),e+1,t),n=nl(r,!0,e+1)),n};me.toFixed=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?nl(l):(kr(e,0,wo),t===void 0?t=o.rounding:kr(t,0,8),r=nt(new o(l),e+Pt(l)+1,t),n=nl(r.abs(),!1,e+Pt(r)+1),l.isneg()&&!l.isZero()?"-"+n:n)};me.toInteger=me.toint=function(){var e=this,t=e.constructor;return nt(new t(e),Pt(e)+1,t.rounding)};me.toNumber=function(){return+this};me.toPower=me.pow=function(e){var t,n,r,l,o,u,f=this,d=f.constructor,h=12,p=+(e=new d(e));if(!e.s)return new d($n);if(f=new d(f),!f.s){if(e.s<1)throw Error(sr+"Infinity");return f}if(f.eq($n))return f;if(r=d.precision,e.eq($n))return nt(f,r);if(t=e.e,n=e.d.length-1,u=t>=n,o=f.s,u){if((n=p<0?-p:p)<=BT){for(l=new d($n),t=Math.ceil(r/ot+4),dt=!1;n%2&&(l=l.times(f),$O(l.d,t)),n=So(n/2),n!==0;)f=f.times(f),$O(f.d,t);return dt=!0,e.s<0?new d($n).div(l):nt(l,r)}}else if(o<0)throw Error(sr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,dt=!1,l=e.times(Qs(f,r+h)),dt=!0,l=$T(l),l.s=o,l};me.toPrecision=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?(n=Pt(l),r=nl(l,n<=o.toExpNeg||n>=o.toExpPos)):(kr(e,1,wo),t===void 0?t=o.rounding:kr(t,0,8),l=nt(new o(l),e,t),n=Pt(l),r=nl(l,e<=n||n<=o.toExpNeg,e)),r};me.toSignificantDigits=me.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(kr(e,1,wo),t===void 0?t=r.rounding:kr(t,0,8)),nt(new r(n),e,t)};me.toString=me.valueOf=me.val=me.toJSON=me[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Pt(e),n=e.constructor;return nl(e,t<=n.toExpNeg||t>=n.toExpPos)};function IT(e,t){var n,r,l,o,u,f,d,h,p=e.constructor,y=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),dt?nt(t,y):t;if(d=e.d,h=t.d,u=e.e,l=t.e,d=d.slice(),o=u-l,o){for(o<0?(r=d,o=-o,f=h.length):(r=h,l=u,f=d.length),u=Math.ceil(y/ot),f=u>f?u+1:f+1,o>f&&(o=f,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(f=d.length,o=h.length,f-o<0&&(o=f,r=h,h=d,d=r),n=0;o;)n=(d[--o]=d[o]+h[o]+n)/Ft|0,d[o]%=Ft;for(n&&(d.unshift(n),++l),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=l,dt?nt(t,y):t}function kr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Fi+e)}function Tr(e){var t,n,r,l=e.length-1,o="",u=e[0];if(l>0){for(o+=u,t=1;t<l;t++)r=e[t]+"",n=ot-r.length,n&&(o+=Qa(n)),o+=r;u=e[t],r=u+"",n=ot-r.length,n&&(o+=Qa(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var ca=(function(){function e(r,l){var o,u=0,f=r.length;for(r=r.slice();f--;)o=r[f]*l+u,r[f]=o%Ft|0,u=o/Ft|0;return u&&r.unshift(u),r}function t(r,l,o,u){var f,d;if(o!=u)d=o>u?1:-1;else for(f=d=0;f<o;f++)if(r[f]!=l[f]){d=r[f]>l[f]?1:-1;break}return d}function n(r,l,o){for(var u=0;o--;)r[o]-=u,u=r[o]<l[o]?1:0,r[o]=u*Ft+r[o]-l[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,l,o,u){var f,d,h,p,y,b,S,w,j,_,E,A,T,C,P,M,D,I,V=r.constructor,X=r.s==l.s?1:-1,te=r.d,k=l.d;if(!r.s)return new V(r);if(!l.s)throw Error(sr+"Division by zero");for(d=r.e-l.e,D=k.length,P=te.length,S=new V(X),w=S.d=[],h=0;k[h]==(te[h]||0);)++h;if(k[h]>(te[h]||0)&&--d,o==null?A=o=V.precision:u?A=o+(Pt(r)-Pt(l))+1:A=o,A<0)return new V(0);if(A=A/ot+2|0,h=0,D==1)for(p=0,k=k[0],A++;(h<P||p)&&A--;h++)T=p*Ft+(te[h]||0),w[h]=T/k|0,p=T%k|0;else{for(p=Ft/(k[0]+1)|0,p>1&&(k=e(k,p),te=e(te,p),D=k.length,P=te.length),C=D,j=te.slice(0,D),_=j.length;_<D;)j[_++]=0;I=k.slice(),I.unshift(0),M=k[0],k[1]>=Ft/2&&++M;do p=0,f=t(k,j,D,_),f<0?(E=j[0],D!=_&&(E=E*Ft+(j[1]||0)),p=E/M|0,p>1?(p>=Ft&&(p=Ft-1),y=e(k,p),b=y.length,_=j.length,f=t(y,j,b,_),f==1&&(p--,n(y,D<b?I:k,b))):(p==0&&(f=p=1),y=k.slice()),b=y.length,b<_&&y.unshift(0),n(j,y,_),f==-1&&(_=j.length,f=t(k,j,D,_),f<1&&(p++,n(j,D<_?I:k,_))),_=j.length):f===0&&(p++,j=[0]),w[h++]=p,f&&j[0]?j[_++]=te[C]||0:(j=[te[C]],_=1);while((C++<P||j[0]!==void 0)&&A--)}return w[0]||w.shift(),S.e=d,nt(S,u?o+Pt(S)+1:o)}})();function $T(e,t){var n,r,l,o,u,f,d=0,h=0,p=e.constructor,y=p.precision;if(Pt(e)>16)throw Error(q0+Pt(e));if(!e.s)return new p($n);for(dt=!1,f=y,u=new p(.03125);e.abs().gte(.1);)e=e.times(u),h+=5;for(r=Math.log(ki(2,h))/Math.LN10*2+5|0,f+=r,n=l=o=new p($n),p.precision=f;;){if(l=nt(l.times(e),f),n=n.times(++d),u=o.plus(ca(l,n,f)),Tr(u.d).slice(0,f)===Tr(o.d).slice(0,f)){for(;h--;)o=nt(o.times(o),f);return p.precision=y,t==null?(dt=!0,nt(o,y)):o}o=u}}function Pt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function uy(e,t,n){if(t>e.LN10.sd())throw dt=!0,n&&(e.precision=n),Error(sr+"LN10 precision limit exceeded");return nt(new e(e.LN10),t)}function Qa(e){for(var t="";e--;)t+="0";return t}function Qs(e,t){var n,r,l,o,u,f,d,h,p,y=1,b=10,S=e,w=S.d,j=S.constructor,_=j.precision;if(S.s<1)throw Error(sr+(S.s?"NaN":"-Infinity"));if(S.eq($n))return new j(0);if(t==null?(dt=!1,h=_):h=t,S.eq(10))return t==null&&(dt=!0),uy(j,h);if(h+=b,j.precision=h,n=Tr(w),r=n.charAt(0),o=Pt(S),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=Tr(S.d),r=n.charAt(0),y++;o=Pt(S),r>1?(S=new j("0."+n),o++):S=new j(r+"."+n.slice(1))}else return d=uy(j,h+2,_).times(o+""),S=Qs(new j(r+"."+n.slice(1)),h-b).plus(d),j.precision=_,t==null?(dt=!0,nt(S,_)):S;for(f=u=S=ca(S.minus($n),S.plus($n),h),p=nt(S.times(S),h),l=3;;){if(u=nt(u.times(p),h),d=f.plus(ca(u,new j(l),h)),Tr(d.d).slice(0,h)===Tr(f.d).slice(0,h))return f=f.times(2),o!==0&&(f=f.plus(uy(j,h+2,_).times(o+""))),f=ca(f,new j(y),h),j.precision=_,t==null?(dt=!0,nt(f,_)):f;f=d,l+=2}}function IO(e,t){var n,r,l;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(l=t.length;t.charCodeAt(l-1)===48;)--l;if(t=t.slice(r,l),t){if(l-=r,n=n-r-1,e.e=So(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),r<l){for(r&&e.d.push(+t.slice(0,r)),l-=ot;r<l;)e.d.push(+t.slice(r,r+=ot));t=t.slice(r),r=ot-t.length}else r-=l;for(;r--;)t+="0";if(e.d.push(+t),dt&&(e.e>ud||e.e<-ud))throw Error(q0+n)}else e.s=0,e.e=0,e.d=[0];return e}function nt(e,t,n){var r,l,o,u,f,d,h,p,y=e.d;for(u=1,o=y[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=ot,l=t,h=y[p=0];else{if(p=Math.ceil((r+1)/ot),o=y.length,p>=o)return e;for(h=o=y[p],u=1;o>=10;o/=10)u++;r%=ot,l=r-ot+u}if(n!==void 0&&(o=ki(10,u-l-1),f=h/o%10|0,d=t<0||y[p+1]!==void 0||h%o,d=n<4?(f||d)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||d||n==6&&(r>0?l>0?h/ki(10,u-l):0:y[p-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return d?(o=Pt(e),y.length=1,t=t-o-1,y[0]=ki(10,(ot-t%ot)%ot),e.e=So(-t/ot)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(r==0?(y.length=p,o=1,p--):(y.length=p+1,o=ki(10,ot-r),y[p]=l>0?(h/ki(10,u-l)%ki(10,l)|0)*o:0),d)for(;;)if(p==0){(y[0]+=o)==Ft&&(y[0]=1,++e.e);break}else{if(y[p]+=o,y[p]!=Ft)break;y[p--]=0,o=1}for(r=y.length;y[--r]===0;)y.pop();if(dt&&(e.e>ud||e.e<-ud))throw Error(q0+Pt(e));return e}function UT(e,t){var n,r,l,o,u,f,d,h,p,y,b=e.constructor,S=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),dt?nt(t,S):t;if(d=e.d,y=t.d,r=t.e,h=e.e,d=d.slice(),u=h-r,u){for(p=u<0,p?(n=d,u=-u,f=y.length):(n=y,r=h,f=d.length),l=Math.max(Math.ceil(S/ot),f)+2,u>l&&(u=l,n.length=1),n.reverse(),l=u;l--;)n.push(0);n.reverse()}else{for(l=d.length,f=y.length,p=l<f,p&&(f=l),l=0;l<f;l++)if(d[l]!=y[l]){p=d[l]<y[l];break}u=0}for(p&&(n=d,d=y,y=n,t.s=-t.s),f=d.length,l=y.length-f;l>0;--l)d[f++]=0;for(l=y.length;l>u;){if(d[--l]<y[l]){for(o=l;o&&d[--o]===0;)d[o]=Ft-1;--d[o],d[l]+=Ft}d[l]-=y[l]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,dt?nt(t,S):t):new b(0)}function nl(e,t,n){var r,l=Pt(e),o=Tr(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+Qa(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(l<0?"e":"e+")+l):l<0?(o="0."+Qa(-l-1)+o,n&&(r=n-u)>0&&(o+=Qa(r))):l>=u?(o+=Qa(l+1-u),n&&(r=n-l-1)>0&&(o=o+"."+Qa(r))):((r=l+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(l+1===u&&(o+="."),o+=Qa(r))),e.s<0?"-"+o:o}function $O(e,t){if(e.length>t)return e.length=t,!0}function qT(e){var t,n,r;function l(o){var u=this;if(!(u instanceof l))return new l(o);if(u.constructor=l,o instanceof l){u.s=o.s,u.e=o.e,u.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Fi+o);if(o>0)u.s=1;else if(o<0)o=-o,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(o===~~o&&o<1e7){u.e=0,u.d=[o];return}return IO(u,o.toString())}else if(typeof o!="string")throw Error(Fi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,Z9.test(o))IO(u,o);else throw Error(Fi+o)}if(l.prototype=me,l.ROUND_UP=0,l.ROUND_DOWN=1,l.ROUND_CEIL=2,l.ROUND_FLOOR=3,l.ROUND_HALF_UP=4,l.ROUND_HALF_DOWN=5,l.ROUND_HALF_EVEN=6,l.ROUND_HALF_CEIL=7,l.ROUND_HALF_FLOOR=8,l.clone=qT,l.config=l.set=W9,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return l.config(e),l}function W9(e){if(!e||typeof e!="object")throw Error(sr+"Object expected");var t,n,r,l=["precision",1,wo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<l.length;t+=3)if((r=e[n=l[t]])!==void 0)if(So(r)===r&&r>=l[t+1]&&r<=l[t+2])this[n]=r;else throw Error(Fi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Fi+n+": "+r);return this}var H0=qT(X9);$n=new H0(1);const Ge=H0;function HT(e){var t;return e===0?t=1:t=Math.floor(new Ge(e).abs().log(10).toNumber())+1,t}function FT(e,t,n){for(var r=new Ge(e),l=0,o=[];r.lt(t)&&l<1e5;)o.push(r.toNumber()),r=r.add(n),l++;return o}var KT=e=>{var[t,n]=e,[r,l]=[t,n];return t>n&&([r,l]=[n,t]),[r,l]},YT=(e,t,n)=>{if(e.lte(0))return new Ge(0);var r=HT(e.toNumber()),l=new Ge(10).pow(r),o=e.div(l),u=r!==1?.05:.1,f=new Ge(Math.ceil(o.div(u).toNumber())).add(n).mul(u),d=f.mul(l);return t?new Ge(d.toNumber()):new Ge(Math.ceil(d.toNumber()))},Q9=(e,t,n)=>{var r=new Ge(1),l=new Ge(e);if(!l.isint()&&n){var o=Math.abs(e);o<1?(r=new Ge(10).pow(HT(e)-1),l=new Ge(Math.floor(l.div(r).toNumber())).mul(r)):o>1&&(l=new Ge(Math.floor(e)))}else e===0?l=new Ge(Math.floor((t-1)/2)):n||(l=new Ge(Math.floor(e)));for(var u=Math.floor((t-1)/2),f=[],d=0;d<t;d++)f.push(l.add(new Ge(d-u).mul(r)).toNumber());return f},GT=function(t,n,r,l){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Ge(0),tickMin:new Ge(0),tickMax:new Ge(0)};var u=YT(new Ge(n).sub(t).div(r-1),l,o),f;t<=0&&n>=0?f=new Ge(0):(f=new Ge(t).add(n).div(2),f=f.sub(new Ge(f).mod(u)));var d=Math.ceil(f.sub(t).div(u).toNumber()),h=Math.ceil(new Ge(n).sub(f).div(u).toNumber()),p=d+h+1;return p>r?GT(t,n,r,l,o+1):(p<r&&(h=n>0?h+(r-p):h,d=n>0?d:d+(r-p)),{step:u,tickMin:f.sub(new Ge(d).mul(u)),tickMax:f.add(new Ge(h).mul(u))})},J9=function(t){var[n,r]=t,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(l,2),[f,d]=KT([n,r]);if(f===-1/0||d===1/0){var h=d===1/0?[f,...Array(l-1).fill(1/0)]:[...Array(l-1).fill(-1/0),d];return n>r?h.reverse():h}if(f===d)return Q9(f,l,o);var{step:p,tickMin:y,tickMax:b}=GT(f,d,u,o,0),S=FT(y,b.add(new Ge(.1).mul(p)),p);return n>r?S.reverse():S},eU=function(t,n){var[r,l]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[u,f]=KT([r,l]);if(u===-1/0||f===1/0)return[r,l];if(u===f)return[u];var d=Math.max(n,2),h=YT(new Ge(f).sub(u).div(d-1),o,0),p=[...FT(new Ge(u),new Ge(f),h),f];return o===!1&&(p=p.map(y=>Math.round(y))),r>l?p.reverse():p},VT=e=>e.rootProps.maxBarSize,tU=e=>e.rootProps.barGap,XT=e=>e.rootProps.barCategoryGap,nU=e=>e.rootProps.barSize,xu=e=>e.rootProps.stackOffset,ZT=e=>e.rootProps.reverseStackOrder,F0=e=>e.options.chartName,K0=e=>e.rootProps.syncId,WT=e=>e.rootProps.syncMethod,Y0=e=>e.options.eventEmitter,rU=e=>e.rootProps.baseValue,Dt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Mi={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Er={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},ih=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function lh(e,t,n){if(n!=="auto")return n;if(e!=null)return zr(e,t)?"category":"number"}function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(n),!0).forEach(function(r){aU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aU(e,t,n){return(t=iU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iU(e){var t=lU(e,"string");return typeof t=="symbol"?t:t+""}function lU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qO={allowDataOverflow:Mi.allowDataOverflow,allowDecimals:Mi.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Mi.angleAxisId,includeHidden:!1,name:void 0,reversed:Mi.reversed,scale:Mi.scale,tick:Mi.tick,tickCount:void 0,ticks:void 0,type:Mi.type,unit:void 0},HO={allowDataOverflow:Er.allowDataOverflow,allowDecimals:Er.allowDecimals,allowDuplicatedCategory:Er.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Er.radiusAxisId,includeHidden:Er.includeHidden,name:void 0,reversed:Er.reversed,scale:Er.scale,tick:Er.tick,tickCount:Er.tickCount,ticks:void 0,type:Er.type,unit:void 0},oU=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},G0=H([oU,PC],(e,t)=>{var n;if(e!=null)return e;var r=(n=lh(t,"angleAxis",qO.type))!==null&&n!==void 0?n:"category";return cd(cd({},qO),{},{type:r})}),sU=(e,t)=>e.polarAxis.radiusAxis[t],V0=H([sU,PC],(e,t)=>{var n;if(e!=null)return e;var r=(n=lh(t,"radiusAxis",HO.type))!==null&&n!==void 0?n:"category";return cd(cd({},HO),{},{type:r})}),oh=e=>e.polarOptions,X0=H([xa,wa,Lt],WC),QT=H([oh,X0],(e,t)=>{if(e!=null)return on(e.innerRadius,t,0)}),JT=H([oh,X0],(e,t)=>{if(e!=null)return on(e.outerRadius,t,t*.8)}),uU=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},e5=H([oh],uU);H([G0,e5],ih);var t5=H([X0,QT,JT],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});H([V0,t5],ih);var n5=H([Be,oh,QT,JT,xa,wa],(e,t,n,r,l,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:u,cy:f,startAngle:d,endAngle:h}=t;return{cx:on(u,l,l/2),cy:on(f,o,o/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:h,clockWise:!1}}}),ht=(e,t)=>t,wu=(e,t,n)=>n;function sh(e){return e==null?void 0:e.id}function r5(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:l,dataKey:o}=n,u=new Map;return e.forEach(f=>{var d,h=(d=f.data)!==null&&d!==void 0?d:r;if(!(h==null||h.length===0)){var p=sh(f);h.forEach((y,b)=>{var S=o==null||l?b:String(Je(y,o,null)),w=Je(y,f.dataKey,0),j;u.has(S)?j=u.get(S):j={},Object.assign(j,{[p]:w}),u.set(S,j)})}}),Array.from(u.values())}function uh(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var ch=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function fh(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function cU(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Gt=e=>{var t=Be(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},jo=e=>e.tooltip.settings.axisId;function fU(e){if(e in zs)return zs[e]();var t="scale".concat(lu(e));if(t in zs)return zs[t]()}function FO(e){var t=e.ticks,n=e.bandwidth,r=e.range(),l=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(o){function u(){return o.apply(this,arguments)}return u.toString=function(){return o.toString()},u})(()=>l),rangeMin:()=>l[0],rangeMax:()=>l[1],isInRange(o){var u=l[0],f=l[1];return u<=f?o>=u&&o<=f:o>=f&&o<=u},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,u)=>{var f=e(o);if(f!=null){if(e.bandwidth&&u!==null&&u!==void 0&&u.position){var d=e.bandwidth();switch(u.position){case"middle":f+=d/2;break;case"end":f+=d;break}}return f}}}}function KO(e,t,n){if(typeof e=="function")return FO(e.copy().domain(t).range(n));if(e!=null){var r=fU(e);if(r!=null)return r.domain(t).range(n),FO(r)}}var a5=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!va(t)){for(var n,r,l=0;l<t.length;l++){var o=t[l];Me(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function YO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(n),!0).forEach(function(r){dU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dU(e,t,n){return(t=hU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hU(e){var t=mU(e,"string");return typeof t=="symbol"?t:t+""}function mU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bg=[0,"auto"],qt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},i5=(e,t)=>e.cartesianAxis.xAxis[t],_a=(e,t)=>{var n=i5(e,t);return n??qt},Ht={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:bg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:cu},l5=(e,t)=>e.cartesianAxis.yAxis[t],Oa=(e,t)=>{var n=l5(e,t);return n??Ht},pU={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Z0=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??pU},xt=(e,t,n)=>{switch(t){case"xAxis":return _a(e,n);case"yAxis":return Oa(e,n);case"zAxis":return Z0(e,n);case"angleAxis":return G0(e,n);case"radiusAxis":return V0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},vU=(e,t,n)=>{switch(t){case"xAxis":return _a(e,n);case"yAxis":return Oa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},_o=(e,t,n)=>{switch(t){case"xAxis":return _a(e,n);case"yAxis":return Oa(e,n);case"angleAxis":return G0(e,n);case"radiusAxis":return V0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},o5=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function W0(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var dh=e=>e.graphicalItems.cartesianItems,yU=H([ht,wu],W0),Q0=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Su=H([dh,xt,yU],Q0,{memoizeOptions:{resultEqualityCheck:fh}}),s5=H([Su],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(uh)),u5=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),gU=H([Su],u5),J0=e=>e.map(t=>t.data).filter(Boolean).flat(1),bU=H([Su],J0,{memoizeOptions:{resultEqualityCheck:fh}}),eb=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:l}=t;return e.length>0?e:n.slice(r,l+1)},tb=H([bU,RT],eb),nb=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Je(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(l=>({value:Je(l,r)}))):e.map(r=>({value:r})),hh=H([tb,xt,Su],nb);function c5(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function xf(e){if(Dr(e)||e instanceof Date){var t=Number(e);if(Me(t))return t}}function GO(e){if(Array.isArray(e)){var t=[xf(e[0]),xf(e[1])];return va(t)?t:void 0}var n=xf(e);if(n!=null)return[n,n]}function ya(e){return e.map(xf).filter(Sn)}function xU(e,t,n){return!n||typeof t!="number"||gr(t)?[]:n.length?ya(n.flatMap(r=>{var l=Je(e,r.dataKey),o,u;if(Array.isArray(l)?[o,u]=l:o=u=l,!(!Me(o)||!Me(u)))return[t-o,t+u]})):[]}var It=e=>{var t=Gt(e),n=jo(e);return _o(e,t,n)},ju=H([It],e=>e==null?void 0:e.dataKey),wU=H([s5,RT,It],r5),f5=(e,t,n,r)=>{var l={},o=t.reduce((u,f)=>{if(f.stackId==null)return u;var d=u[f.stackId];return d==null&&(d=[]),d.push(f),u[f.stackId]=d,u},l);return Object.fromEntries(Object.entries(o).map(u=>{var[f,d]=u,h=r?[...d].reverse():d,p=h.map(sh);return[f,{stackedData:qL(e,p,n),graphicalItems:h}]}))},dd=H([wU,s5,xu,ZT],f5),d5=(e,t,n,r)=>{var{dataStartIndex:l,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var u=YL(e,l,o);if(!(u!=null&&u[0]===0&&u[1]===0))return u}},SU=H([xt],e=>e.allowDataOverflow),rb=e=>{var t;if(e==null||!("domain"in e))return bg;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=ya(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:bg},ab=H([xt],rb),ib=H([ab,SU],LT),jU=H([dd,ja,ht,ib],d5,{memoizeOptions:{resultEqualityCheck:ch}}),mh=e=>e.errorBars,_U=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>c5(n,r)),hd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=n.filter(Boolean);if(l.length!==0){var o=l.flat(),u=Math.min(...o),f=Math.max(...o);return[u,f]}},lb=(e,t,n,r,l)=>{var o,u;if(n.length>0&&e.forEach(f=>{n.forEach(d=>{var h,p,y=(h=r[d.id])===null||h===void 0?void 0:h.filter(E=>c5(l,E)),b=Je(f,(p=t.dataKey)!==null&&p!==void 0?p:d.dataKey),S=xU(f,b,y);if(S.length>=2){var w=Math.min(...S),j=Math.max(...S);(o==null||w<o)&&(o=w),(u==null||j>u)&&(u=j)}var _=GO(b);_!=null&&(o=o==null?_[0]:Math.min(o,_[0]),u=u==null?_[1]:Math.max(u,_[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(f=>{var d=GO(Je(f,t.dataKey));d!=null&&(o=o==null?d[0]:Math.min(o,d[0]),u=u==null?d[1]:Math.max(u,d[1]))}),Me(o)&&Me(u))return[o,u]},OU=H([tb,xt,gU,mh,ht],lb,{memoizeOptions:{resultEqualityCheck:ch}});function AU(e){var{value:t}=e;if(Dr(t)||t instanceof Date)return t}var EU=(e,t,n)=>{var r=e.map(AU).filter(l=>l!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&CN(r))?tT(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},h5=e=>e.referenceElements.dots,Oo=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),NU=H([h5,ht,wu],Oo),m5=e=>e.referenceElements.areas,CU=H([m5,ht,wu],Oo),p5=e=>e.referenceElements.lines,TU=H([p5,ht,wu],Oo),v5=(e,t)=>{if(e!=null){var n=ya(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},MU=H(NU,ht,v5),y5=(e,t)=>{if(e!=null){var n=ya(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},DU=H([CU,ht],y5);function PU(e){var t;if(e.x!=null)return ya([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:ya(n)}function kU(e){var t;if(e.y!=null)return ya([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:ya(n)}var g5=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?PU(r):kU(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},RU=H([TU,ht],g5),zU=H(MU,RU,DU,(e,t,n)=>hd(e,n,t)),ob=(e,t,n,r,l,o,u,f)=>{if(n!=null)return n;var d=u==="vertical"&&f==="xAxis"||u==="horizontal"&&f==="yAxis",h=d?hd(r,o,l):hd(o,l);return V9(t,h,e.allowDataOverflow)},LU=H([xt,ab,ib,jU,OU,zU,Be,ht],ob,{memoizeOptions:{resultEqualityCheck:ch}}),BU=[0,1],sb=(e,t,n,r,l,o,u)=>{if(!((e==null||n==null||n.length===0)&&u===void 0)){var{dataKey:f,type:d}=e,h=zr(t,o);if(h&&f==null){var p;return tT(0,(p=n==null?void 0:n.length)!==null&&p!==void 0?p:0)}return d==="category"?EU(r,e,h):l==="expand"?BU:u}},ub=H([xt,Be,tb,hh,xu,ht,LU],sb);function IU(e){return e in zs}var b5=(e,t,n)=>{if(e!=null){var{scale:r,type:l}=e;if(r==="auto")return l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":l==="category"?"band":"linear";if(typeof r=="string"){var o="scale".concat(lu(r));return IU(o)?o:"point"}}},fi=H([xt,o5,F0],b5);function cb(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?KO(e.scale,n,r):KO(t,n,r)}var fb=(e,t,n)=>{var r=rb(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&va(e))return J9(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&va(e))return eU(e,t.tickCount,t.allowDecimals)}},db=H([ub,_o,fi],fb),hb=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&va(t)&&Array.isArray(n)&&n.length>0){var l,o,u=t[0],f=(l=n[0])!==null&&l!==void 0?l:0,d=t[1],h=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(u,f),Math.max(d,h)]}return t},$U=H([xt,ub,db,ht],hb),UU=H(hh,xt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(ya(e.map(y=>y.value))).sort((y,b)=>y-b),l=r[0],o=r[r.length-1];if(l==null||o==null)return 1/0;var u=o-l;if(u===0)return 1/0;for(var f=0;f<r.length-1;f++){var d=r[f],h=r[f+1];if(!(d==null||h==null)){var p=h-d;n=Math.min(n,p)}}return n/u}}),x5=H(UU,Be,XT,Lt,(e,t,n,r,l)=>l,(e,t,n,r,l)=>{if(!Me(e))return 0;var o=t==="vertical"?r.height:r.width;if(l==="gap")return e*o/2;if(l==="no-gap"){var u=on(n,e*o),f=e*o/2;return f-u-(f-u)/o*u}return 0}),qU=(e,t,n)=>{var r=_a(e,t);return r==null||typeof r.padding!="string"?0:x5(e,"xAxis",t,n,r.padding)},HU=(e,t,n)=>{var r=Oa(e,t);return r==null||typeof r.padding!="string"?0:x5(e,"yAxis",t,n,r.padding)},FU=H(_a,qU,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:l}=e;return typeof l=="string"?{left:t,right:t}:{left:((n=l.left)!==null&&n!==void 0?n:0)+t,right:((r=l.right)!==null&&r!==void 0?r:0)+t}}),KU=H(Oa,HU,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:l}=e;return typeof l=="string"?{top:t,bottom:t}:{top:((n=l.top)!==null&&n!==void 0?n:0)+t,bottom:((r=l.bottom)!==null&&r!==void 0?r:0)+t}}),YU=H([Lt,FU,Gd,Yd,(e,t,n)=>n],(e,t,n,r,l)=>{var{padding:o}=r;return l?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),GU=H([Lt,Be,KU,Gd,Yd,(e,t,n)=>n],(e,t,n,r,l,o)=>{var{padding:u}=l;return o?[r.height-u.bottom,u.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),_u=(e,t,n,r)=>{var l;switch(t){case"xAxis":return YU(e,n,r);case"yAxis":return GU(e,n,r);case"zAxis":return(l=Z0(e,n))===null||l===void 0?void 0:l.range;case"angleAxis":return e5(e);case"radiusAxis":return t5(e,n);default:return}},w5=H([xt,_u],ih),VU=H([fi,$U],a5),ph=H([xt,fi,VU,w5],cb);H([Su,mh,ht],_U);function S5(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vh=(e,t)=>t,yh=(e,t,n)=>n,XU=H(Fd,vh,yh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(S5)),ZU=H(Kd,vh,yh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(S5)),j5=(e,t)=>({width:e.width,height:t.height}),WU=(e,t)=>{var n=typeof t.width=="number"?t.width:cu;return{width:n,height:e.height}},_5=H(Lt,_a,j5),QU=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},JU=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},eq=H(wa,Lt,XU,vh,yh,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=j5(t,f);u==null&&(u=QU(t,r,e));var h=r==="top"&&!l||r==="bottom"&&l;o[f.id]=u-Number(h)*d.height,u+=(h?-1:1)*d.height}),o}),tq=H(xa,Lt,ZU,vh,yh,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=WU(t,f);u==null&&(u=JU(t,r,e));var h=r==="left"&&!l||r==="right"&&l;o[f.id]=u-Number(h)*d.width,u+=(h?-1:1)*d.width}),o}),nq=(e,t)=>{var n=_a(e,t);if(n!=null)return eq(e,n.orientation,n.mirror)},rq=H([Lt,_a,nq,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var l=n==null?void 0:n[r];return l==null?{x:e.left,y:0}:{x:e.left,y:l}}}),aq=(e,t)=>{var n=Oa(e,t);if(n!=null)return tq(e,n.orientation,n.mirror)},iq=H([Lt,Oa,aq,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var l=n==null?void 0:n[r];return l==null?{x:0,y:e.top}:{x:l,y:e.top}}}),O5=H(Lt,Oa,(e,t)=>{var n=typeof t.width=="number"?t.width:cu;return{width:n,height:e.height}}),VO=(e,t,n)=>{switch(t){case"xAxis":return _5(e,n).width;case"yAxis":return O5(e,n).height;default:return}},A5=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:l,type:o,dataKey:u}=n,f=zr(e,r),d=t.map(h=>h.value);if(u&&f&&o==="category"&&l&&CN(d))return d}},mb=H([Be,hh,xt,ht],A5),E5=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:l,scale:o}=n,u=zr(e,r);if(u&&(l==="number"||o!=="auto"))return t.map(f=>f.value)}},pb=H([Be,hh,_o,ht],E5),XO=H([Be,vU,fi,ph,mb,pb,_u,db,ht],(e,t,n,r,l,o,u,f,d)=>{if(t!=null){var h=zr(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:o,duplicateDomain:l,isCategorical:h,niceTicks:f,range:u,realScaleType:n,scale:r}}}),lq=(e,t,n,r,l,o,u,f,d)=>{if(!(t==null||r==null)){var h=zr(e,d),{type:p,ticks:y,tickCount:b}=t,S=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=p==="category"&&r.bandwidth?r.bandwidth()/S:0;w=d==="angleAxis"&&o!=null&&o.length>=2?Kt(o[0]-o[1])*2*w:w;var j=y||l;return j?j.map((_,E)=>{var A=u?u.indexOf(_):_,T=r.map(A);return Me(T)?{index:E,coordinate:T+w,value:_,offset:w}:null}).filter(Sn):h&&f?f.map((_,E)=>{var A=r.map(_);return Me(A)?{coordinate:A+w,value:_,index:E,offset:w}:null}).filter(Sn):r.ticks?r.ticks(b).map((_,E)=>{var A=r.map(_);return Me(A)?{coordinate:A+w,value:_,index:E,offset:w}:null}).filter(Sn):r.domain().map((_,E)=>{var A=r.map(_);return Me(A)?{coordinate:A+w,value:u?u[_]:_,index:E,offset:w}:null}).filter(Sn)}},N5=H([Be,_o,fi,ph,db,_u,mb,pb,ht],lq),oq=(e,t,n,r,l,o,u)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var f=zr(e,u),{tickCount:d}=t,h=0;return h=u==="angleAxis"&&(r==null?void 0:r.length)>=2?Kt(r[0]-r[1])*2*h:h,f&&o?o.map((p,y)=>{var b=n.map(p);return Me(b)?{coordinate:b+h,value:p,index:y,offset:h}:null}).filter(Sn):n.ticks?n.ticks(d).map((p,y)=>{var b=n.map(p);return Me(b)?{coordinate:b+h,value:p,index:y,offset:h}:null}).filter(Sn):n.domain().map((p,y)=>{var b=n.map(p);return Me(b)?{coordinate:b+h,value:l?l[p]:p,index:y,offset:h}:null}).filter(Sn)}},ii=H([Be,_o,ph,_u,mb,pb,ht],oq),li=H(xt,ph,(e,t)=>{if(!(e==null||t==null))return fd(fd({},e),{},{scale:t})}),sq=H([xt,fi,ub,w5],cb);H((e,t,n)=>Z0(e,n),sq,(e,t)=>{if(!(e==null||t==null))return fd(fd({},e),{},{scale:t})});var uq=H([Be,Fd,Kd],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),C5=e=>e.options.defaultTooltipEventType,T5=e=>e.options.validateTooltipEventTypes;function M5(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function vb(e,t){var n=C5(e),r=T5(e);return M5(t,n,r)}function cq(e){return ye(t=>vb(t,e))}var D5=(e,t)=>{var n,r=Number(t);if(!(gr(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},fq=e=>e.tooltip.settings,ei={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},dq={itemInteraction:{click:ei,hover:ei},axisInteraction:{click:ei,hover:ei},keyboardInteraction:ei,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},P5=En({name:"tooltip",initialState:dq,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ft()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,l=yr(e).tooltipItemPayloads.indexOf(n);l>-1&&(e.tooltipItemPayloads[l]=r)},prepare:ft()},removeTooltipEntrySettings:{reducer(e,t){var n=yr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:ft()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:hq,replaceTooltipEntrySettings:mq,removeTooltipEntrySettings:pq,setTooltipSettingsState:vq,setActiveMouseOverItemIndex:k5,mouseLeaveItem:yq,mouseLeaveChart:R5,setActiveClickItemIndex:gq,setMouseOverAxisIndex:z5,setMouseClickAxisIndex:bq,setSyncInteraction:xg,setKeyboardInteraction:wg}=P5.actions,xq=P5.reducer;function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){wq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wq(e,t,n){return(t=Sq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=jq(e,"string");return typeof t=="symbol"?t:t+""}function jq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _q(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Oq(e){return e.index!=null}var L5=(e,t,n,r)=>{if(t==null)return ei;var l=_q(e,t,n);if(l==null)return ei;if(l.active)return l;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Oq(l)){if(o)return lf(lf({},l),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return lf(lf({},ei),{},{coordinate:l.coordinate})};function Aq(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Eq(e,t){var n=Aq(e),r=t[0],l=t[1];if(n===void 0)return!1;var o=Math.min(r,l),u=Math.max(r,l);return n>=o&&n<=u}function Nq(e,t,n){if(n==null||t==null)return!0;var r=Je(e,t);return r==null||!va(n)?!0:Eq(r,n)}var yb=(e,t,n,r)=>{var l=e==null?void 0:e.index;if(l==null)return null;var o=Number(l);if(!Me(o))return l;var u=0,f=1/0;t.length>0&&(f=t.length-1);var d=Math.max(u,Math.min(o,f)),h=t[d];return h==null||Nq(h,n,r)?String(d):null},B5=(e,t,n,r,l,o,u)=>{if(o!=null){var f=u[0],d=f==null?void 0:f.getPosition(o);if(d!=null)return d;var h=l==null?void 0:l[Number(o)];if(h)switch(n){case"horizontal":return{x:h.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:h.coordinate}}}},I5=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var l;if(n==="hover"?l=e.itemInteraction.hover.graphicalItemId:l=e.itemInteraction.click.graphicalItemId,l==null&&r!=null){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(u=>{var f;return((f=u.settings)===null||f===void 0?void 0:f.graphicalItemId)===l})},$5=e=>e.options.tooltipPayloadSearcher,Ao=e=>e.tooltip;function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){Cq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cq(e,t,n){return(t=Tq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tq(e){var t=Mq(e,"string");return typeof t=="symbol"?t:t+""}function Mq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dq(e,t){return e??t}var U5=(e,t,n,r,l,o,u)=>{if(!(t==null||o==null)){var{chartData:f,computedData:d,dataStartIndex:h,dataEndIndex:p}=n,y=[];return e.reduce((b,S)=>{var w,{dataDefinedOnItem:j,settings:_}=S,E=Dq(j,f),A=Array.isArray(E)?SC(E,h,p):E,T=(w=_==null?void 0:_.dataKey)!==null&&w!==void 0?w:r,C=_==null?void 0:_.nameKey,P;if(r&&Array.isArray(A)&&!Array.isArray(A[0])&&u==="axis"?P=TN(A,r,l):P=o(A,t,d,C),Array.isArray(P))P.forEach(D=>{var I=QO(QO({},_),{},{name:D.name,unit:D.unit,color:void 0,fill:void 0});b.push(Z2({tooltipEntrySettings:I,dataKey:D.dataKey,payload:D.payload,value:Je(D.payload,D.dataKey),name:D.name}))});else{var M;b.push(Z2({tooltipEntrySettings:_,dataKey:T,payload:P,value:Je(P,T),name:(M=Je(P,C))!==null&&M!==void 0?M:_==null?void 0:_.name}))}return b},y)}},gb=H([It,o5,F0],b5),Pq=H([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),kq=H([Gt,jo],W0),Eo=H([Pq,It,kq],Q0,{memoizeOptions:{resultEqualityCheck:fh}}),Rq=H([Eo],e=>e.filter(uh)),zq=H([Eo],J0,{memoizeOptions:{resultEqualityCheck:fh}}),No=H([zq,ja],eb),Lq=H([Rq,ja,It],r5),bb=H([No,It,Eo],nb),q5=H([It],rb),Bq=H([It],e=>e.allowDataOverflow),H5=H([q5,Bq],LT),Iq=H([Eo],e=>e.filter(uh)),$q=H([Lq,Iq,xu,ZT],f5),Uq=H([$q,ja,Gt,H5],d5),qq=H([Eo],u5),Hq=H([No,It,qq,mh,Gt],lb,{memoizeOptions:{resultEqualityCheck:ch}}),Fq=H([h5,Gt,jo],Oo),Kq=H([Fq,Gt],v5),Yq=H([m5,Gt,jo],Oo),Gq=H([Yq,Gt],y5),Vq=H([p5,Gt,jo],Oo),Xq=H([Vq,Gt],g5),Zq=H([Kq,Xq,Gq],hd),Wq=H([It,q5,H5,Uq,Hq,Zq,Be,Gt],ob),Ou=H([It,Be,No,bb,xu,Gt,Wq],sb),Qq=H([Ou,It,gb],fb),Jq=H([It,Ou,Qq,Gt],hb),F5=e=>{var t=Gt(e),n=jo(e),r=!1;return _u(e,t,n,r)},K5=H([It,F5],ih),Y5=H([It,gb,Jq,K5],cb),eH=H([Be,bb,It,Gt],A5),tH=H([Be,bb,It,Gt],E5),nH=(e,t,n,r,l,o,u,f)=>{if(t){var{type:d}=t,h=zr(e,f);if(r){var p=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,y=d==="category"&&r.bandwidth?r.bandwidth()/p:0;return y=f==="angleAxis"&&l!=null&&(l==null?void 0:l.length)>=2?Kt(l[0]-l[1])*2*y:y,h&&u?u.map((b,S)=>{var w=r.map(b);return Me(w)?{coordinate:w+y,value:b,index:S,offset:y}:null}).filter(Sn):r.domain().map((b,S)=>{var w=r.map(b);return Me(w)?{coordinate:w+y,value:o?o[b]:b,index:S,offset:y}:null}).filter(Sn)}}},Aa=H([Be,It,gb,Y5,F5,eH,tH,Gt],nH),xb=H([C5,T5,fq],(e,t,n)=>M5(n.shared,e,t)),G5=e=>e.tooltip.settings.trigger,wb=e=>e.tooltip.settings.defaultIndex,Au=H([Ao,xb,G5,wb],L5),oi=H([Au,No,ju,Ou],yb),V5=H([Aa,oi],D5),Sb=H([Au],e=>{if(e)return e.dataKey}),rH=H([Au],e=>{if(e)return e.graphicalItemId}),X5=H([Ao,xb,G5,wb],I5),aH=H([xa,wa,Be,Lt,Aa,wb,X5],B5),iH=H([Au,aH],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),lH=H([Au],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),oH=H([X5,oi,ja,ju,V5,$5,xb],U5),sH=H([oH],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function eA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){uH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uH(e,t,n){return(t=cH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cH(e){var t=fH(e,"string");return typeof t=="symbol"?t:t+""}function fH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dH=()=>ye(It),hH=()=>{var e=dH(),t=ye(Aa),n=ye(Y5);return uo(!e||!n?void 0:eA(eA({},e),{},{scale:n}),t)};function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){mH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mH(e,t,n){return(t=pH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pH(e){var t=vH(e,"string");return typeof t=="symbol"?t:t+""}function vH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yH=(e,t,n,r)=>{var l=t.find(o=>o&&o.index===n);if(l){if(e==="horizontal")return{x:l.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:l.coordinate}}return{x:0,y:0}},gH=(e,t,n,r)=>{var l=t.find(h=>h&&h.index===n);if(l){if(e==="centric"){var o=l.coordinate,{radius:u}=r;return Xl(Xl(Xl({},r),Mt(r.cx,r.cy,u,o)),{},{angle:o,radius:u})}var f=l.coordinate,{angle:d}=r;return Xl(Xl(Xl({},r),Mt(r.cx,r.cy,f,d)),{},{angle:d,radius:f})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function bH(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var Z5=(e,t,n,r,l)=>{var o,u=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&l!=null&&Math.abs(Math.abs(l[1]-l[0])-360)<=1e-6)for(var f=0;f<u;f++){var d,h,p,y,b,S=f>0?(d=n[f-1])===null||d===void 0?void 0:d.coordinate:(h=n[u-1])===null||h===void 0?void 0:h.coordinate,w=(p=n[f])===null||p===void 0?void 0:p.coordinate,j=f>=u-1?(y=n[0])===null||y===void 0?void 0:y.coordinate:(b=n[f+1])===null||b===void 0?void 0:b.coordinate,_=void 0;if(!(S==null||w==null||j==null))if(Kt(w-S)!==Kt(j-w)){var E=[];if(Kt(j-w)===Kt(l[1]-l[0])){_=j;var A=w+l[1]-l[0];E[0]=Math.min(A,(A+S)/2),E[1]=Math.max(A,(A+S)/2)}else{_=S;var T=j+l[1]-l[0];E[0]=Math.min(w,(T+w)/2),E[1]=Math.max(w,(T+w)/2)}var C=[Math.min(w,(_+w)/2),Math.max(w,(_+w)/2)];if(e>C[0]&&e<=C[1]||e>=E[0]&&e<=E[1]){var P;return(P=n[f])===null||P===void 0?void 0:P.index}}else{var M=Math.min(S,j),D=Math.max(S,j);if(e>(M+w)/2&&e<=(D+w)/2){var I;return(I=n[f])===null||I===void 0?void 0:I.index}}}else if(t)for(var V=0;V<u;V++){var X=t[V];if(X!=null){var te=t[V+1],k=t[V-1];if(V===0&&te!=null&&e<=(X.coordinate+te.coordinate)/2||V===u-1&&k!=null&&e>(X.coordinate+k.coordinate)/2||V>0&&V<u-1&&k!=null&&te!=null&&e>(X.coordinate+k.coordinate)/2&&e<=(X.coordinate+te.coordinate)/2)return X.index}}return-1},W5=()=>ye(F0),jb=(e,t)=>t,Q5=(e,t,n)=>n,_b=(e,t,n,r)=>r,xH=H(Aa,e=>kd(e,t=>t.coordinate)),Ob=H([Ao,jb,Q5,_b],L5),Ab=H([Ob,No,ju,Ou],yb),wH=(e,t,n)=>{if(t!=null){var r=Ao(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},J5=H([Ao,jb,Q5,_b],I5),md=H([xa,wa,Be,Lt,Aa,_b,J5],B5),SH=H([Ob,md],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),eM=H([Aa,Ab],D5),jH=H([J5,Ab,ja,ju,eM,$5,jb],U5),_H=H([Ob,Ab],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),OH=(e,t,n,r,l,o,u)=>{if(!(!e||!n||!r||!l)&&bH(e,u)){var f=GL(e,t),d=Z5(f,o,l,n,r),h=yH(t,l,d,e);return{activeIndex:String(d),activeCoordinate:h}}},AH=(e,t,n,r,l,o,u)=>{if(!(!e||!r||!l||!o||!n)){var f=c7(e,n);if(f){var d=VL(f,t),h=Z5(d,u,o,r,l),p=gH(t,o,h,f);return{activeIndex:String(h),activeCoordinate:p}}}},EH=(e,t,n,r,l,o,u,f)=>{if(!(!e||!t||!r||!l||!o))return t==="horizontal"||t==="vertical"?OH(e,t,r,l,o,u,f):AH(e,t,n,r,l,o,u)},NH=H(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),CH=H(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Dt)),n=Array.from(new Set(t));return n.sort((r,l)=>r-l)},{memoizeOptions:{resultEqualityCheck:cU}});function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){TH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TH(e,t,n){return(t=MH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MH(e){var t=DH(e,"string");return typeof t=="symbol"?t:t+""}function DH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PH={},kH={zIndexMap:Object.values(Dt).reduce((e,t)=>rA(rA({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),PH)},RH=new Set(Object.values(Dt));function zH(e){return RH.has(e)}var tM=En({name:"zIndex",initialState:kH,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ft()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!zH(n)&&delete e.zIndexMap[n])},prepare:ft()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:l}=t.payload;e.zIndexMap[n]?l?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:l?void 0:r,panoramaElement:l?r:void 0}},prepare:ft()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:ft()}}}),{registerZIndexPortal:LH,unregisterZIndexPortal:BH,registerZIndexPortalElement:IH,unregisterZIndexPortalElement:$H}=tM.actions,UH=tM.reducer;function Nn(e){var{zIndex:t,children:n}=e,r=OB(),l=r&&t!==void 0&&t!==0,o=sn(),u=at();x.useLayoutEffect(()=>l?(u(LH({zIndex:t})),()=>{u(BH({zIndex:t}))}):al,[u,t,l]);var f=ye(d=>NH(d,t,o));return l?f?fn.createPortal(n,f):null:n}function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(null,arguments)}function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(n),!0).forEach(function(r){qH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qH(e,t,n){return(t=HH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HH(e){var t=FH(e,"string");return typeof t=="symbol"?t:t+""}function FH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KH(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return x.isValidElement(t)?x.cloneElement(t,r):x.createElement(n,r)}function YH(e){var t,{coordinate:n,payload:r,index:l,offset:o,tooltipAxisBandSize:u,layout:f,cursor:d,tooltipEventType:h,chartName:p}=e,y=n,b=r,S=l;if(!d||!y||p!=="ScatterChart"&&h!=="axis")return null;var w,j,_;if(p==="ScatterChart")w=y,j=_I,_=Dt.cursorLine;else if(p==="BarChart")w=OI(f,y,o,u),j=ZC,_=Dt.cursorRectangle;else if(f==="radial"&&DN(y)){var{cx:E,cy:A,radius:T,startAngle:C,endAngle:P}=QC(y);w={cx:E,cy:A,startAngle:C,endAngle:P,innerRadius:T,outerRadius:T},j=eT,_=Dt.cursorLine}else w={points:m7(f,y,o)},j=io,_=Dt.cursorLine;var M=typeof d=="object"&&"className"in d?d.className:void 0,D=of(of(of(of({stroke:"#ccc",pointerEvents:"none"},o),w),Xi(d)),{},{payload:b,payloadIndex:S,className:Ue("recharts-tooltip-cursor",M)});return x.createElement(Nn,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:_},x.createElement(KH,{cursor:d,cursorComp:j,cursorProps:D}))}function GH(e){var t=hH(),n=DC(),r=il(),l=W5();return t==null||n==null||r==null||l==null?null:x.createElement(YH,Sg({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:l}))}var nM=x.createContext(null),VH=()=>x.useContext(nM),cy={exports:{}},iA;function XH(){return iA||(iA=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function l(d,h,p){this.fn=d,this.context=h,this.once=p||!1}function o(d,h,p,y,b){if(typeof p!="function")throw new TypeError("The listener must be a function");var S=new l(p,y||d,b),w=n?n+h:h;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],S]:d._events[w].push(S):(d._events[w]=S,d._eventsCount++),d}function u(d,h){--d._eventsCount===0?d._events=new r:delete d._events[h]}function f(){this._events=new r,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],p,y;if(this._eventsCount===0)return h;for(y in p=this._events)t.call(p,y)&&h.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(p)):h},f.prototype.listeners=function(h){var p=n?n+h:h,y=this._events[p];if(!y)return[];if(y.fn)return[y.fn];for(var b=0,S=y.length,w=new Array(S);b<S;b++)w[b]=y[b].fn;return w},f.prototype.listenerCount=function(h){var p=n?n+h:h,y=this._events[p];return y?y.fn?1:y.length:0},f.prototype.emit=function(h,p,y,b,S,w){var j=n?n+h:h;if(!this._events[j])return!1;var _=this._events[j],E=arguments.length,A,T;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),E){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,y),!0;case 4:return _.fn.call(_.context,p,y,b),!0;case 5:return _.fn.call(_.context,p,y,b,S),!0;case 6:return _.fn.call(_.context,p,y,b,S,w),!0}for(T=1,A=new Array(E-1);T<E;T++)A[T-1]=arguments[T];_.fn.apply(_.context,A)}else{var C=_.length,P;for(T=0;T<C;T++)switch(_[T].once&&this.removeListener(h,_[T].fn,void 0,!0),E){case 1:_[T].fn.call(_[T].context);break;case 2:_[T].fn.call(_[T].context,p);break;case 3:_[T].fn.call(_[T].context,p,y);break;case 4:_[T].fn.call(_[T].context,p,y,b);break;default:if(!A)for(P=1,A=new Array(E-1);P<E;P++)A[P-1]=arguments[P];_[T].fn.apply(_[T].context,A)}}return!0},f.prototype.on=function(h,p,y){return o(this,h,p,y,!1)},f.prototype.once=function(h,p,y){return o(this,h,p,y,!0)},f.prototype.removeListener=function(h,p,y,b){var S=n?n+h:h;if(!this._events[S])return this;if(!p)return u(this,S),this;var w=this._events[S];if(w.fn)w.fn===p&&(!b||w.once)&&(!y||w.context===y)&&u(this,S);else{for(var j=0,_=[],E=w.length;j<E;j++)(w[j].fn!==p||b&&!w[j].once||y&&w[j].context!==y)&&_.push(w[j]);_.length?this._events[S]=_.length===1?_[0]:_:u(this,S)}return this},f.prototype.removeAllListeners=function(h){var p;return h?(p=n?n+h:h,this._events[p]&&u(this,p)):(this._events=new r,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(cy)),cy.exports}var ZH=XH();const WH=Rr(ZH);var Js=new WH,jg="recharts.syncEvent.tooltip",lA="recharts.syncEvent.brush",Eb=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!gr(n))return e[n]}},QH={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},rM=En({name:"options",initialState:QH,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),JH=rM.reducer,{createEventEmitter:eF}=rM.actions;function tF(e){return e.tooltip.syncInteraction}var nF={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},aM=En({name:"chartData",initialState:nF,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:oA,setDataStartEndIndexes:rF,setComputedData:bQ}=aM.actions,aF=aM.reducer,iF=["x","y"];function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){lF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lF(e,t,n){return(t=oF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oF(e){var t=sF(e,"string");return typeof t=="symbol"?t:t+""}function sF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uF(e,t){if(e==null)return{};var n,r,l=cF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function cF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fF(){var e=ye(K0),t=ye(Y0),n=at(),r=ye(WT),l=ye(Aa),o=il(),u=Vd(),f=ye(d=>d.rootProps.className);x.useEffect(()=>{if(e==null)return al;var d=(h,p,y)=>{if(t!==y&&e===h){if(r==="index"){var b;if(u&&p!==null&&p!==void 0&&(b=p.payload)!==null&&b!==void 0&&b.coordinate&&p.payload.sourceViewBox){var S=p.payload.coordinate,{x:w,y:j}=S,_=uF(S,iF),{x:E,y:A,width:T,height:C}=p.payload.sourceViewBox,P=Zl(Zl({},_),{},{x:u.x+(T?(w-E)/T:0)*u.width,y:u.y+(C?(j-A)/C:0)*u.height});n(Zl(Zl({},p),{},{payload:Zl(Zl({},p.payload),{},{coordinate:P})}))}else n(p);return}if(l!=null){var M;if(typeof r=="function"){var D={activeTooltipIndex:p.payload.index==null?void 0:Number(p.payload.index),isTooltipActive:p.payload.active,activeIndex:p.payload.index==null?void 0:Number(p.payload.index),activeLabel:p.payload.label,activeDataKey:p.payload.dataKey,activeCoordinate:p.payload.coordinate},I=r(l,D);M=l[I]}else r==="value"&&(M=l.find(L=>String(L.value)===p.payload.label));var{coordinate:V}=p.payload;if(M==null||p.payload.active===!1||V==null||u==null){n(xg({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:X,y:te}=V,k=Math.min(X,u.x+u.width),se=Math.min(te,u.y+u.height),U={x:o==="horizontal"?M.coordinate:k,y:o==="horizontal"?se:M.coordinate},ne=xg({active:p.payload.active,coordinate:U,dataKey:p.payload.dataKey,index:String(M.index),label:p.payload.label,sourceViewBox:p.payload.sourceViewBox,graphicalItemId:p.payload.graphicalItemId});n(ne)}}};return Js.on(jg,d),()=>{Js.off(jg,d)}},[f,n,t,e,r,l,o,u])}function dF(){var e=ye(K0),t=ye(Y0),n=at();x.useEffect(()=>{if(e==null)return al;var r=(l,o,u)=>{t!==u&&e===l&&n(rF(o))};return Js.on(lA,r),()=>{Js.off(lA,r)}},[n,t,e])}function hF(){var e=at();x.useEffect(()=>{e(eF())},[e]),fF(),dF()}function mF(e,t,n,r,l,o){var u=ye(S=>wH(S,e,t)),f=ye(Y0),d=ye(K0),h=ye(WT),p=ye(tF),y=p==null?void 0:p.active,b=Vd();x.useEffect(()=>{if(!y&&d!=null&&f!=null){var S=xg({active:o,coordinate:n,dataKey:u,index:l,label:typeof r=="number"?String(r):r,sourceViewBox:b,graphicalItemId:void 0});Js.emit(jg,d,S,f)}},[y,n,u,l,r,f,d,h,o,b])}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function cA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){pF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pF(e,t,n){return(t=vF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vF(e){var t=yF(e,"string");return typeof t=="symbol"?t:t+""}function yF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gF(e){return e.dataKey}function bF(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(rI,t)}var fA=[],xF={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function fy(e){var t,n,r=kt(e,xF),{active:l,allowEscapeViewBox:o,animationDuration:u,animationEasing:f,content:d,filterNull:h,isAnimationActive:p,offset:y,payloadUniqBy:b,position:S,reverseDirection:w,useTranslate3d:j,wrapperStyle:_,cursor:E,shared:A,trigger:T,defaultIndex:C,portal:P,axisId:M}=r,D=at(),I=typeof C=="number"?String(C):C;x.useEffect(()=>{D(vq({shared:A,trigger:T,axisId:M,active:l,defaultIndex:I}))},[D,A,T,M,l,I]);var V=Vd(),X=KC(),te=cq(A),{activeIndex:k,isActive:se}=(t=ye(be=>_H(be,te,T,I)))!==null&&t!==void 0?t:{},U=ye(be=>jH(be,te,T,I)),ne=ye(be=>eM(be,te,T,I)),L=ye(be=>SH(be,te,T,I)),Z=U,ie=VH(),fe=(n=l??se)!==null&&n!==void 0?n:!1,[de,R]=YN([Z,fe]),Y=te==="axis"?ne:void 0;mF(te,T,L,Y,k,fe);var oe=P??ie;if(oe==null||V==null||te==null)return null;var ce=Z??fA;fe||(ce=fA),h&&ce.length&&(ce=UN(ce.filter(be=>be.value!=null&&(be.hide!==!0||r.includeHidden)),b,gF));var pe=ce.length>0,xe=x.createElement(cI,{allowEscapeViewBox:o,animationDuration:u,animationEasing:f,isAnimationActive:p,active:fe,coordinate:L,hasPayload:pe,offset:y,position:S,reverseDirection:w,useTranslate3d:j,viewBox:V,wrapperStyle:_,lastBoundingBox:de,innerRef:R,hasPortalFromProps:!!P},bF(d,cA(cA({},r),{},{payload:ce,label:Y,active:fe,activeIndex:k,coordinate:L,accessibilityLayer:X})));return x.createElement(x.Fragment,null,fn.createPortal(xe,oe),fe&&x.createElement(GH,{cursor:E,tooltipEventType:te,coordinate:L,payload:ce,index:k}))}var Ki=e=>null;Ki.displayName="Cell";function wF(e,t,n){return(t=SF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SF(e){var t=jF(e,"string");return typeof t=="symbol"?t:t+""}function jF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class _F{constructor(t){wF(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function OF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){AF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AF(e,t,n){return(t=EF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=NF(e,"string");return typeof t=="symbol"?t:t+""}function NF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CF={cacheSize:2e3,enableCache:!0},iM=OF({},CF),hA=new _F(iM.cacheSize),TF={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mA="recharts_measurement_span";function MF(e,t){var n=t.fontSize||"",r=t.fontFamily||"",l=t.fontWeight||"",o=t.fontStyle||"",u=t.letterSpacing||"",f=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(l,"|").concat(o,"|").concat(u,"|").concat(f)}var pA=(e,t)=>{try{var n=document.getElementById(mA);n||(n=document.createElement("span"),n.setAttribute("id",mA),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,TF,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Bs=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||hu.isSsr)return{width:0,height:0};if(!iM.enableCache)return pA(t,n);var r=MF(t,n),l=hA.get(r);if(l)return l;var o=pA(t,n);return hA.set(r,o),o},lM;function DF(e,t,n){return(t=PF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e){var t=kF(e,"string");return typeof t=="symbol"?t:t+""}function kF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RF=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,zF=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},BF=["cm","mm","pt","pc","in","Q","px"];function IF(e){return BF.includes(e)}var to="NaN";function $F(e,t){return e*LF[t]}class en{static parse(t){var n,[,r,l]=(n=zF.exec(t))!==null&&n!==void 0?n:[];return r==null?en.NaN:new en(parseFloat(r),l??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,gr(t)&&(this.unit=""),n!==""&&!RF.test(n)&&(this.num=NaN,this.unit=""),IF(n)&&(this.num=$F(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new en(NaN,""):new en(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new en(NaN,""):new en(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new en(NaN,""):new en(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new en(NaN,""):new en(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return gr(this.num)}}lM=en;DF(en,"NaN",new lM(NaN,""));function oM(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,l,o]=(n=vA.exec(t))!==null&&n!==void 0?n:[],u=en.parse(r??""),f=en.parse(o??""),d=l==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return to;t=t.replace(vA,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,p,y,b]=(h=yA.exec(t))!==null&&h!==void 0?h:[],S=en.parse(p??""),w=en.parse(b??""),j=y==="+"?S.add(w):S.subtract(w);if(j.isNaN())return to;t=t.replace(yA,j.toString())}return t}var gA=/\(([^()]*)\)/;function UF(e){for(var t=e,n;(n=gA.exec(t))!=null;){var[,r]=n;t=t.replace(gA,oM(r))}return t}function qF(e){var t=e.replace(/\s+/g,"");return t=UF(t),t=oM(t),t}function HF(e){try{return qF(e)}catch{return to}}function dy(e){var t=HF(e.slice(5,-1));return t===to?"":t}var FF=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],KF=["dx","dy","angle","className","breakAll"];function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(null,arguments)}function bA(e,t){if(e==null)return{};var n,r,l=YF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function YF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sM=/[ \f\n\r\t\v\u2028\u2029]+/,uM=e=>{var{children:t,breakAll:n,style:r}=e;try{var l=[];bt(t)||(n?l=t.toString().split(""):l=t.toString().split(sM));var o=l.map(f=>({word:f,width:Bs(f,r).width})),u=n?0:Bs(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}};function GF(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var cM=(e,t,n,r)=>e.reduce((l,o)=>{var{word:u,width:f}=o,d=l[l.length-1];if(d&&f!=null&&(t==null||r||d.width+f+n<Number(t)))d.words.push(u),d.width+=f+n;else{var h={words:[u],width:f};l.push(h)}return l},[]),fM=e=>e.reduce((t,n)=>t.width>n.width?t:n),VF="…",xA=(e,t,n,r,l,o,u,f)=>{var d=e.slice(0,t),h=uM({breakAll:n,style:r,children:d+VF});if(!h)return[!1,[]];var p=cM(h.wordsWithComputedWidth,o,u,f),y=p.length>l||fM(p).width>Number(o);return[y,p]},XF=(e,t,n,r,l)=>{var{maxLines:o,children:u,style:f,breakAll:d}=e,h=he(o),p=String(u),y=cM(t,r,n,l);if(!h||l)return y;var b=y.length>o||fM(y).width>Number(r);if(!b)return y;for(var S=0,w=p.length-1,j=0,_;S<=w&&j<=p.length-1;){var E=Math.floor((S+w)/2),A=E-1,[T,C]=xA(p,A,d,f,o,r,n,l),[P]=xA(p,E,d,f,o,r,n,l);if(!T&&!P&&(S=E+1),T&&P&&(w=E-1),!T&&P){_=C;break}j++}return _||y},wA=e=>{var t=bt(e)?[]:e.toString().split(sM);return[{words:t,width:void 0}]},ZF=e=>{var{width:t,scaleToFit:n,children:r,style:l,breakAll:o,maxLines:u}=e;if((t||n)&&!hu.isSsr){var f,d,h=uM({breakAll:o,children:r,style:l});if(h){var{wordsWithComputedWidth:p,spaceWidth:y}=h;f=p,d=y}else return wA(r);return XF({breakAll:o,children:r,maxLines:u,style:l},f,d,t,!!n)}return wA(r)},dM="#808080",WF={angle:0,breakAll:!1,capHeight:"0.71em",fill:dM,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},gh=x.forwardRef((e,t)=>{var n=kt(e,WF),{x:r,y:l,lineHeight:o,capHeight:u,fill:f,scaleToFit:d,textAnchor:h,verticalAnchor:p}=n,y=bA(n,FF),b=x.useMemo(()=>ZF({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:d,style:y.style,width:y.width}),[y.breakAll,y.children,y.maxLines,d,y.style,y.width]),{dx:S,dy:w,angle:j,className:_,breakAll:E}=y,A=bA(y,KF);if(!Dr(r)||!Dr(l)||b.length===0)return null;var T=Number(r)+(he(S)?S:0),C=Number(l)+(he(w)?w:0);if(!Me(T)||!Me(C))return null;var P;switch(p){case"start":P=dy("calc(".concat(u,")"));break;case"middle":P=dy("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:P=dy("calc(".concat(b.length-1," * -").concat(o,")"));break}var M=[],D=b[0];if(d&&D!=null){var I=D.width,{width:V}=y;M.push("scale(".concat(he(V)&&he(I)?V/I:1,")"))}return j&&M.push("rotate(".concat(j,", ").concat(T,", ").concat(C,")")),M.length&&(A.transform=M.join(" ")),x.createElement("text",_g({},hn(A),{ref:t,x:T,y:C,className:Ue("recharts-text",_),textAnchor:h,fill:f.includes("url")?dM:f}),b.map((X,te)=>{var k=X.words.join(E?"":" ");return x.createElement("tspan",{x:T,dy:te===0?P:o,key:"".concat(k,"-").concat(te)},k)}))});gh.displayName="Text";function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(n),!0).forEach(function(r){QF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QF(e,t,n){return(t=JF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=eK(e,"string");return typeof t=="symbol"?t:t+""}function eK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tK=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:l}=e,{x:o,y:u,height:f,upperWidth:d,lowerWidth:h}=h0(t),p=o,y=o+(d-h)/2,b=(p+y)/2,S=(d+h)/2,w=p+d/2,j=f>=0?1:-1,_=j*r,E=j>0?"end":"start",A=j>0?"start":"end",T=d>=0?1:-1,C=T*r,P=T>0?"end":"start",M=T>0?"start":"end",D=l;if(n==="top"){var I={x:p+d/2,y:u-_,horizontalAnchor:"middle",verticalAnchor:E};return D&&(I.height=Math.max(u-D.y,0),I.width=d),I}if(n==="bottom"){var V={x:y+h/2,y:u+f+_,horizontalAnchor:"middle",verticalAnchor:A};return D&&(V.height=Math.max(D.y+D.height-(u+f),0),V.width=h),V}if(n==="left"){var X={x:b-C,y:u+f/2,horizontalAnchor:P,verticalAnchor:"middle"};return D&&(X.width=Math.max(X.x-D.x,0),X.height=f),X}if(n==="right"){var te={x:b+S+C,y:u+f/2,horizontalAnchor:M,verticalAnchor:"middle"};return D&&(te.width=Math.max(D.x+D.width-te.x,0),te.height=f),te}var k=D?{width:S,height:f}:{};return n==="insideLeft"?Nr({x:b+C,y:u+f/2,horizontalAnchor:M,verticalAnchor:"middle"},k):n==="insideRight"?Nr({x:b+S-C,y:u+f/2,horizontalAnchor:P,verticalAnchor:"middle"},k):n==="insideTop"?Nr({x:p+d/2,y:u+_,horizontalAnchor:"middle",verticalAnchor:A},k):n==="insideBottom"?Nr({x:y+h/2,y:u+f-_,horizontalAnchor:"middle",verticalAnchor:E},k):n==="insideTopLeft"?Nr({x:p+C,y:u+_,horizontalAnchor:M,verticalAnchor:A},k):n==="insideTopRight"?Nr({x:p+d-C,y:u+_,horizontalAnchor:P,verticalAnchor:A},k):n==="insideBottomLeft"?Nr({x:y+C,y:u+f-_,horizontalAnchor:M,verticalAnchor:E},k):n==="insideBottomRight"?Nr({x:y+h-C,y:u+f-_,horizontalAnchor:P,verticalAnchor:E},k):n&&typeof n=="object"&&(he(n.x)||Qi(n.x))&&(he(n.y)||Qi(n.y))?Nr({x:o+on(n.x,S),y:u+on(n.y,f),horizontalAnchor:"end",verticalAnchor:"end"},k):Nr({x:w,y:u+f/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)},nK=["labelRef"],rK=["content"];function jA(e,t){if(e==null)return{};var n,r,l=aK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function aK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(r){iK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iK(e,t,n){return(t=lK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lK(e){var t=oK(e,"string");return typeof t=="symbol"?t:t+""}function oK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa.apply(null,arguments)}var hM=x.createContext(null),sK=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:l,width:o,height:u,children:f}=e,d=x.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:l,width:o,height:u}),[t,n,r,l,o,u]);return x.createElement(hM.Provider,{value:d},f)},mM=()=>{var e=x.useContext(hM),t=Vd();return e||(t?h0(t):void 0)},uK=x.createContext(null),cK=()=>{var e=x.useContext(uK),t=ye(n5);return e||t},fK=e=>{var{value:t,formatter:n}=e,r=bt(e.children)?t:e.children;return typeof n=="function"?n(r):r},Nb=e=>e!=null&&typeof e=="function",dK=(e,t)=>{var n=Kt(t-e),r=Math.min(Math.abs(t-e),360);return n*r},hK=(e,t,n,r,l)=>{var{offset:o,className:u}=e,{cx:f,cy:d,innerRadius:h,outerRadius:p,startAngle:y,endAngle:b,clockWise:S}=l,w=(h+p)/2,j=dK(y,b),_=j>=0?1:-1,E,A;switch(t){case"insideStart":E=y+_*o,A=S;break;case"insideEnd":E=b-_*o,A=!S;break;case"end":E=b+_*o,A=S;break;default:throw new Error("Unsupported position ".concat(t))}A=j<=0?A:!A;var T=Mt(f,d,w,E),C=Mt(f,d,w,E+(A?1:-1)*359),P="M".concat(T.x,",").concat(T.y,`
    A`).concat(w,",").concat(w,",0,1,").concat(A?0:1,`,
    `).concat(C.x,",").concat(C.y),M=bt(e.id)?$s("recharts-radial-line-"):e.id;return x.createElement("text",oa({},r,{dominantBaseline:"central",className:Ue("recharts-radial-bar-label",u)}),x.createElement("defs",null,x.createElement("path",{id:M,d:P})),x.createElement("textPath",{xlinkHref:"#".concat(M)},n))},mK=(e,t,n)=>{var{cx:r,cy:l,innerRadius:o,outerRadius:u,startAngle:f,endAngle:d}=e,h=(f+d)/2;if(n==="outside"){var{x:p,y}=Mt(r,l,u+t,h);return{x:p,y,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"end"};var b=(o+u)/2,{x:S,y:w}=Mt(r,l,b,h);return{x:S,y:w,textAnchor:"middle",verticalAnchor:"middle"}},wf=e=>e!=null&&"cx"in e&&he(e.cx),pK={angle:0,offset:5,zIndex:Dt.label,position:"middle",textBreakAll:!1};function vK(e){if(!wf(e))return e;var{cx:t,cy:n,outerRadius:r}=e,l=r*2;return{x:t-r,y:n-r,width:l,upperWidth:l,lowerWidth:l,height:l}}function Ja(e){var t=kt(e,pK),{viewBox:n,parentViewBox:r,position:l,value:o,children:u,content:f,className:d="",textBreakAll:h,labelRef:p}=t,y=cK(),b=mM(),S=l==="center"?b:y??b,w,j,_;n==null?w=S:wf(n)?w=n:w=h0(n);var E=vK(w);if(!w||bt(o)&&bt(u)&&!x.isValidElement(f)&&typeof f!="function")return null;var A=Ls(Ls({},t),{},{viewBox:w});if(x.isValidElement(f)){var{labelRef:T}=A,C=jA(A,nK);return x.cloneElement(f,C)}if(typeof f=="function"){var{content:P}=A,M=jA(A,rK);if(j=x.createElement(f,M),x.isValidElement(j))return j}else j=fK(t);var D=hn(t);if(wf(w)){if(l==="insideStart"||l==="insideEnd"||l==="end")return hK(t,l,j,D,w);_=mK(w,t.offset,t.position)}else{if(!E)return null;var I=tK({viewBox:E,position:l,offset:t.offset,parentViewBox:wf(r)?void 0:r});_=Ls(Ls({x:I.x,y:I.y,textAnchor:I.horizontalAnchor,verticalAnchor:I.verticalAnchor},I.width!==void 0?{width:I.width}:{}),I.height!==void 0?{height:I.height}:{})}return x.createElement(Nn,{zIndex:t.zIndex},x.createElement(gh,oa({ref:p,className:Ue("recharts-label",d)},D,_,{textAnchor:GF(D.textAnchor)?D.textAnchor:_.textAnchor,breakAll:h}),j))}Ja.displayName="Label";var yK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?x.createElement(Ja,oa({key:"label-implicit"},r)):Dr(e)?x.createElement(Ja,oa({key:"label-implicit",value:e},r)):x.isValidElement(e)?e.type===Ja?x.cloneElement(e,Ls({key:"label-implicit"},r)):x.createElement(Ja,oa({key:"label-implicit",content:e},r)):Nb(e)?x.createElement(Ja,oa({key:"label-implicit",content:e},r)):e&&typeof e=="object"?x.createElement(Ja,oa({},e,{key:"label-implicit"},r)):null};function gK(e){var{label:t,labelRef:n}=e,r=mM();return yK(t,r,n)||null}var hy={},my={},OA;function bK(){return OA||(OA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(my)),my}var py={},AA;function xK(){return AA||(AA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(py)),py}var EA;function wK(){return EA||(EA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bK(),n=xK(),r=n0();function l(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=l})(hy)),hy}var vy,NA;function SK(){return NA||(NA=1,vy=wK().last),vy}var jK=SK();const _K=Rr(jK);var OK=["valueAccessor"],AK=["dataKey","clockWise","id","textBreakAll","zIndex"];function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pd.apply(null,arguments)}function CA(e,t){if(e==null)return{};var n,r,l=EK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function EK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var NK=e=>Array.isArray(e.value)?_K(e.value):e.value,pM=x.createContext(void 0),vM=pM.Provider,yM=x.createContext(void 0),CK=yM.Provider;function TK(){return x.useContext(pM)}function MK(){return x.useContext(yM)}function Sf(e){var{valueAccessor:t=NK}=e,n=CA(e,OK),{dataKey:r,clockWise:l,id:o,textBreakAll:u,zIndex:f}=n,d=CA(n,AK),h=TK(),p=MK(),y=h||p;return!y||!y.length?null:x.createElement(Nn,{zIndex:f??Dt.label},x.createElement(Ot,{className:"recharts-label-list"},y.map((b,S)=>{var w,j=bt(r)?t(b,S):Je(b.payload,r),_=bt(o)?{}:{id:"".concat(o,"-").concat(S)};return x.createElement(Ja,pd({key:"label-".concat(S)},hn(b),d,_,{fill:(w=n.fill)!==null&&w!==void 0?w:b.fill,parentViewBox:b.parentViewBox,value:j,textBreakAll:u,viewBox:b.viewBox,index:S,zIndex:0}))})))}Sf.displayName="LabelList";function Cb(e){var{label:t}=e;return t?t===!0?x.createElement(Sf,{key:"labelList-implicit"}):x.isValidElement(t)||Nb(t)?x.createElement(Sf,{key:"labelList-implicit",content:t}):typeof t=="object"?x.createElement(Sf,pd({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Og.apply(null,arguments)}var gM=e=>{var{cx:t,cy:n,r,className:l}=e,o=Ue("recharts-dot",l);return he(t)&&he(n)&&he(r)?x.createElement("circle",Og({},An(e),t0(e),{className:o,cx:t,cy:n,r})):null},bM=e=>e.graphicalItems.polarItems,DK=H([ht,wu],W0),bh=H([bM,xt,DK],Q0),PK=H([bh],J0),xh=H([PK,ah],eb),kK=H([xh,xt,bh],nb);H([xh,xt,bh],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(l=>{var o,u=Je(r,(o=t.dataKey)!==null&&o!==void 0?o:l.dataKey);return{value:u,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Je(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var TA=()=>{},RK=H([xh,xt,bh,mh,ht],lb),zK=H([xt,ab,ib,TA,RK,TA,Be,ht],ob),xM=H([xt,Be,xh,kK,xu,ht,zK],sb),LK=H([xM,_o,fi],fb),BK=H([xt,xM,LK,ht],hb);H([fi,BK],a5);var IK={radiusAxis:{},angleAxis:{}},wM=En({name:"polarAxis",initialState:IK,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:xQ,removeRadiusAxis:wQ,addAngleAxis:SQ,removeAngleAxis:jQ}=wM.actions,$K=wM.reducer;function SM(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function DA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(n),!0).forEach(function(r){UK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UK(e,t,n){return(t=qK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qK(e){var t=HK(e,"string");return typeof t=="symbol"?t:t+""}function HK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FK=(e,t)=>t,Tb=H([bM,FK],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),KK=[],Mb=(e,t,n)=>(n==null?void 0:n.length)===0?KK:n,jM=H([ah,Tb,Mb],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var l;if((t==null?void 0:t.data)!=null&&t.data.length>0?l=t.data:l=r,(!l||!l.length)&&n!=null&&(l=n.map(o=>DA(DA({},t.presentationProps),o.props))),l!=null)return l}}),YK=H([jM,Tb,Mb],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,l)=>{var o,u=Je(r,t.nameKey,t.name),f;return n!=null&&(o=n[l])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?f=n[l].props.fill:typeof r=="object"&&r!=null&&"fill"in r?f=r.fill:f=t.fill,{value:bo(u,t.dataKey),color:f,payload:r,type:t.legendType}})}),GK=H([jM,Tb,Mb,Lt],(e,t,n,r)=>{if(!(t==null||e==null))return VY({offset:r,pieSettings:t,displayedData:e,cells:n})}),yy={exports:{}},Qe={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PA;function VK(){if(PA)return Qe;PA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function w(j){if(typeof j=="object"&&j!==null){var _=j.$$typeof;switch(_){case e:switch(j=j.type,j){case n:case l:case r:case d:case h:case b:return j;default:switch(j=j&&j.$$typeof,j){case u:case f:case y:case p:return j;case o:return j;default:return _}}case t:return _}}}return Qe.ContextConsumer=o,Qe.ContextProvider=u,Qe.Element=e,Qe.ForwardRef=f,Qe.Fragment=n,Qe.Lazy=y,Qe.Memo=p,Qe.Portal=t,Qe.Profiler=l,Qe.StrictMode=r,Qe.Suspense=d,Qe.SuspenseList=h,Qe.isContextConsumer=function(j){return w(j)===o},Qe.isContextProvider=function(j){return w(j)===u},Qe.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},Qe.isForwardRef=function(j){return w(j)===f},Qe.isFragment=function(j){return w(j)===n},Qe.isLazy=function(j){return w(j)===y},Qe.isMemo=function(j){return w(j)===p},Qe.isPortal=function(j){return w(j)===t},Qe.isProfiler=function(j){return w(j)===l},Qe.isStrictMode=function(j){return w(j)===r},Qe.isSuspense=function(j){return w(j)===d},Qe.isSuspenseList=function(j){return w(j)===h},Qe.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===r||j===d||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===y||j.$$typeof===p||j.$$typeof===u||j.$$typeof===o||j.$$typeof===f||j.$$typeof===S||j.getModuleId!==void 0)},Qe.typeOf=w,Qe}var kA;function XK(){return kA||(kA=1,yy.exports=VK()),yy.exports}var ZK=XK(),RA=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",zA=null,gy=null,_M=e=>{if(e===zA&&Array.isArray(gy))return gy;var t=[];return x.Children.forEach(e,n=>{bt(n)||(ZK.isFragment(n)?t=t.concat(_M(n.props.children)):t.push(n))}),gy=t,zA=e,t};function Db(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(l=>RA(l)):r=[RA(t)],_M(e).forEach(l=>{var o=Wi(l,"type.displayName")||Wi(l,"type.name");o&&r.indexOf(o)!==-1&&n.push(l)}),n}var OM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,by={},LA;function WK(){return LA||(LA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var l;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((l=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&l.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(by)),by}var xy,BA;function QK(){return BA||(BA=1,xy=WK().isPlainObject),xy}var JK=QK();const eY=Rr(JK);var IA,$A,UA,qA,HA;function FA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function KA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(n),!0).forEach(function(r){tY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tY(e,t,n){return(t=nY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nY(e){var t=rY(e,"string");return typeof t=="symbol"?t:t+""}function rY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vd.apply(null,arguments)}function ks(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var YA=(e,t,n,r,l)=>{var o=n-r,u;return u=yt(IA||(IA=ks(["M ",",",""])),e,t),u+=yt($A||($A=ks(["L ",",",""])),e+n,t),u+=yt(UA||(UA=ks(["L ",",",""])),e+n-o/2,t+l),u+=yt(qA||(qA=ks(["L ",",",""])),e+n-o/2-r,t+l),u+=yt(HA||(HA=ks(["L ",","," Z"])),e,t),u},aY={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iY=e=>{var t=kt(e,aY),{x:n,y:r,upperWidth:l,lowerWidth:o,height:u,className:f}=t,{animationEasing:d,animationDuration:h,animationBegin:p,isUpdateAnimationActive:y}=t,b=x.useRef(null),[S,w]=x.useState(-1),j=x.useRef(l),_=x.useRef(o),E=x.useRef(u),A=x.useRef(n),T=x.useRef(r),C=pu(e,"trapezoid-");if(x.useEffect(()=>{if(b.current&&b.current.getTotalLength)try{var U=b.current.getTotalLength();U&&w(U)}catch{}},[]),n!==+n||r!==+r||l!==+l||o!==+o||u!==+u||l===0&&o===0||u===0)return null;var P=Ue("recharts-trapezoid",f);if(!y)return x.createElement("g",null,x.createElement("path",vd({},hn(t),{className:P,d:YA(n,r,l,o,u)})));var M=j.current,D=_.current,I=E.current,V=A.current,X=T.current,te="0px ".concat(S===-1?1:S,"px"),k="".concat(S,"px 0px"),se=YC(["strokeDasharray"],h,d);return x.createElement(mu,{animationId:C,key:C,canBegin:S>0,duration:h,easing:d,isActive:y,begin:p},U=>{var ne=st(M,l,U),L=st(D,o,U),Z=st(I,u,U),ie=st(V,n,U),fe=st(X,r,U);b.current&&(j.current=ne,_.current=L,E.current=Z,A.current=ie,T.current=fe);var de=U>0?{transition:se,strokeDasharray:k}:{strokeDasharray:te};return x.createElement("path",vd({},hn(t),{className:P,d:YA(ie,fe,ne,L,Z),ref:b,style:KA(KA({},de),t.style)}))})},lY=["option","shapeType","activeClassName"];function oY(e,t){if(e==null)return{};var n,r,l=sY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function sY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(n),!0).forEach(function(r){uY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uY(e,t,n){return(t=cY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cY(e){var t=fY(e,"string");return typeof t=="symbol"?t:t+""}function fY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dY(e,t){return yd(yd({},t),e)}function hY(e,t){return e==="symbols"}function VA(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return x.createElement(ZC,n);case"trapezoid":return x.createElement(iY,n);case"sector":return x.createElement(eT,n);case"symbols":if(hY(t))return x.createElement(e0,n);break;case"curve":return x.createElement(io,n);default:return null}}function mY(e){return x.isValidElement(e)?e.props:e}function AM(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,l=oY(e,lY),o;if(x.isValidElement(t))o=x.cloneElement(t,yd(yd({},l),mY(t)));else if(typeof t=="function")o=t(l,l.index);else if(eY(t)&&typeof t!="boolean"){var u=dY(t,l);o=x.createElement(VA,{shapeType:n,elementProps:u})}else{var f=l;o=x.createElement(VA,{shapeType:n,elementProps:f})}return l.isActive?x.createElement(Ot,{className:r},o):o}var Pb=(e,t,n)=>{var r=at();return(l,o)=>u=>{e==null||e(l,o,u),r(k5({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}},kb=e=>{var t=at();return(n,r)=>l=>{e==null||e(n,r,l),t(yq())}},Rb=(e,t,n)=>{var r=at();return(l,o)=>u=>{e==null||e(l,o,u),r(gq({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}};function zb(e){var{tooltipEntrySettings:t}=e,n=at(),r=sn(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(hq(t)):l.current!==t&&n(mq({prev:l.current,next:t})),l.current=t)},[t,n,r]),x.useLayoutEffect(()=>()=>{l.current&&(n(pq(l.current)),l.current=null)},[n]),null}function EM(e){var{legendPayload:t}=e,n=at(),r=sn(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(UC(t)):l.current!==t&&n(qC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(HC(l.current)),l.current=null)},[n]),null}function pY(e){var{legendPayload:t}=e,n=at(),r=ye(Be),l=x.useRef(null);return x.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(l.current===null?n(UC(t)):l.current!==t&&n(qC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(HC(l.current)),l.current=null)},[n]),null}var wy,vY=()=>{var[e]=x.useState(()=>$s("uid-"));return e},yY=(wy=U3.useId)!==null&&wy!==void 0?wy:vY;function gY(e,t){var n=yY();return t||(e?"".concat(e,"-").concat(n):n)}var bY=x.createContext(void 0),Lb=e=>{var{id:t,type:n,children:r}=e,l=gY("recharts-".concat(n),t);return x.createElement(bY.Provider,{value:l},r(l))},xY={cartesianItems:[],polarItems:[]},NM=En({name:"graphicalItems",initialState:xY,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ft()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,l=yr(e).cartesianItems.indexOf(n);l>-1&&(e.cartesianItems[l]=r)},prepare:ft()},removeCartesianGraphicalItem:{reducer(e,t){var n=yr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:ft()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ft()},removePolarGraphicalItem:{reducer(e,t){var n=yr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:ft()}}}),{addCartesianGraphicalItem:wY,replaceCartesianGraphicalItem:SY,removeCartesianGraphicalItem:jY,addPolarGraphicalItem:_Y,removePolarGraphicalItem:OY}=NM.actions,AY=NM.reducer,EY=e=>{var t=at(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(wY(e)):n.current!==e&&t(SY({prev:n.current,next:e})),n.current=e},[t,e]),x.useLayoutEffect(()=>()=>{n.current&&(t(jY(n.current)),n.current=null)},[t]),null},CM=x.memo(EY);function NY(e){var t=at();return x.useLayoutEffect(()=>(t(_Y(e)),()=>{t(OY(e))}),[t,e]),null}var CY=["key"],TY=["onMouseEnter","onClick","onMouseLeave"],MY=["id"],DY=["id"];function XA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(n),!0).forEach(function(r){PY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PY(e,t,n){return(t=kY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kY(e){var t=RY(e,"string");return typeof t=="symbol"?t:t+""}function RY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(null,arguments)}function wh(e,t){if(e==null)return{};var n,r,l=zY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function zY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function LY(e){var t=x.useMemo(()=>Db(e.children,Ki),[e.children]),n=ye(r=>YK(r,e.id,t));return n==null?null:x.createElement(pY,{legendPayload:n})}var BY=x.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:l,strokeWidth:o,fill:u,name:f,hide:d,tooltipType:h,id:p}=e,y={dataDefinedOnItem:r.map(b=>b.tooltipPayload),getPosition:b=>{var S;return(S=r[Number(b)])===null||S===void 0?void 0:S.tooltipPosition},settings:{stroke:l,strokeWidth:o,fill:u,dataKey:t,nameKey:n,name:bo(f,t),hide:d,type:h,color:u,unit:"",graphicalItemId:p}};return x.createElement(zb,{tooltipEntrySettings:y})}),IY=(e,t)=>e>t?"start":e<t?"end":"middle",$Y=(e,t,n)=>on(typeof t=="function"?t(e):t,n,n*.8),UY=(e,t,n)=>{var{top:r,left:l,width:o,height:u}=t,f=WC(o,u),d=l+on(e.cx,o,o/2),h=r+on(e.cy,u,u/2),p=on(e.innerRadius,f,0),y=$Y(n,e.outerRadius,f),b=e.maxRadius||Math.sqrt(o*o+u*u)/2;return{cx:d,cy:h,innerRadius:p,outerRadius:y,maxRadius:b}},qY=(e,t)=>{var n=Kt(t-e),r=Math.min(Math.abs(t-e),360);return n*r},HY=(e,t)=>{if(x.isValidElement(e))return x.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Ue("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,l=wh(t,CY);return x.createElement(io,si({},l,{type:"linear",className:n}))},FY=(e,t,n)=>{if(x.isValidElement(e))return x.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),x.isValidElement(r)))return r;var l=Ue("recharts-pie-label-text",SM(e));return x.createElement(gh,si({},t,{alignmentBaseline:"middle",className:l}),r)};function KY(e){var{sectors:t,props:n,showLabels:r}=e,{label:l,labelLine:o,dataKey:u}=n;if(!r||!l||!t)return null;var f=An(n),d=Xi(l),h=Xi(o),p=typeof l=="object"&&"offsetRadius"in l&&typeof l.offsetRadius=="number"&&l.offsetRadius||20,y=t.map((b,S)=>{var w=(b.startAngle+b.endAngle)/2,j=Mt(b.cx,b.cy,b.outerRadius+p,w),_=gt(gt(gt(gt({},f),b),{},{stroke:"none"},d),{},{index:S,textAnchor:IY(j.x,b.cx)},j),E=gt(gt(gt(gt({},f),b),{},{fill:"none",stroke:b.fill},h),{},{index:S,points:[Mt(b.cx,b.cy,b.outerRadius,w),j],key:"line"});return x.createElement(Nn,{zIndex:Dt.label,key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(S)},x.createElement(Ot,null,o&&HY(o,E),FY(l,_,Je(b,u))))});return x.createElement(Ot,{className:"recharts-pie-labels"},y)}function YY(e){var{sectors:t,props:n,showLabels:r}=e,{label:l}=n;return typeof l=="object"&&l!=null&&"position"in l?x.createElement(Cb,{label:l}):x.createElement(KY,{sectors:t,props:n,showLabels:r})}function GY(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:l,shape:o,id:u}=e,f=ye(oi),d=ye(Sb),h=ye(rH),{onMouseEnter:p,onClick:y,onMouseLeave:b}=l,S=wh(l,TY),w=Pb(p,l.dataKey,u),j=kb(b),_=Rb(y,l.dataKey,u);return t==null||t.length===0?null:x.createElement(x.Fragment,null,t.map((E,A)=>{if((E==null?void 0:E.startAngle)===0&&(E==null?void 0:E.endAngle)===0&&t.length!==1)return null;var T=h==null||h===u,C=String(A)===f&&(d==null||l.dataKey===d)&&T,P=f?r:null,M=n&&C?n:P,D=gt(gt({},E),{},{stroke:E.stroke,tabIndex:-1,[EC]:A,[NC]:u});return x.createElement(Ot,si({key:"sector-".concat(E==null?void 0:E.startAngle,"-").concat(E==null?void 0:E.endAngle,"-").concat(E.midAngle,"-").concat(A),tabIndex:-1,className:"recharts-pie-sector"},ou(S,E,A),{onMouseEnter:w(E,A),onMouseLeave:j(E,A),onClick:_(E,A)}),x.createElement(AM,si({option:o??M,index:A,shapeType:"sector",isActive:C},D)))}))}function VY(e){var t,{pieSettings:n,displayedData:r,cells:l,offset:o}=e,{cornerRadius:u,startAngle:f,endAngle:d,dataKey:h,nameKey:p,tooltipType:y}=n,b=Math.abs(n.minAngle),S=qY(f,d),w=Math.abs(S),j=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,_=r.filter(M=>Je(M,h,0)!==0).length,E=(w>=360?_:_-1)*j,A=w-_*b-E,T=r.reduce((M,D)=>{var I=Je(D,h,0);return M+(he(I)?I:0)},0),C;if(T>0){var P;C=r.map((M,D)=>{var I=Je(M,h,0),V=Je(M,p,D),X=UY(n,o,M),te=(he(I)?I:0)/T,k,se=gt(gt({},M),l&&l[D]&&l[D].props);D?k=P.endAngle+Kt(S)*j*(I!==0?1:0):k=f;var U=k+Kt(S)*((I!==0?b:0)+te*A),ne=(k+U)/2,L=(X.innerRadius+X.outerRadius)/2,Z=[{name:V,value:I,payload:se,dataKey:h,type:y,graphicalItemId:n.id}],ie=Mt(X.cx,X.cy,L,ne);return P=gt(gt(gt(gt({},n.presentationProps),{},{percent:te,cornerRadius:typeof u=="string"?parseFloat(u):u,name:V,tooltipPayload:Z,midAngle:ne,middleRadius:L,tooltipPosition:ie},se),X),{},{value:I,dataKey:h,startAngle:k,endAngle:U,payload:se,paddingAngle:Kt(S)*j}),P})}return C}function XY(e){var{showLabels:t,sectors:n,children:r}=e,l=x.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return x.createElement(CK,{value:t?l:void 0},r)}function ZY(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:l,isAnimationActive:o,animationBegin:u,animationDuration:f,animationEasing:d,activeShape:h,inactiveShape:p,onAnimationStart:y,onAnimationEnd:b}=t,S=pu(t,"recharts-pie-"),w=n.current,[j,_]=x.useState(!1),E=x.useCallback(()=>{typeof b=="function"&&b(),_(!1)},[b]),A=x.useCallback(()=>{typeof y=="function"&&y(),_(!0)},[y]);return x.createElement(XY,{showLabels:!j,sectors:l},x.createElement(mu,{animationId:S,begin:u,duration:f,isActive:o,easing:d,onAnimationStart:A,onAnimationEnd:E,key:S},T=>{var C,P=[],M=l&&l[0],D=(C=M==null?void 0:M.startAngle)!==null&&C!==void 0?C:0;return l==null||l.forEach((I,V)=>{var X=w&&w[V],te=V>0?Wi(I,"paddingAngle",0):0;if(X){var k=st(X.endAngle-X.startAngle,I.endAngle-I.startAngle,T),se=gt(gt({},I),{},{startAngle:D+te,endAngle:D+k+te});P.push(se),D=se.endAngle}else{var{endAngle:U,startAngle:ne}=I,L=st(0,U-ne,T),Z=gt(gt({},I),{},{startAngle:D+te,endAngle:D+L+te});P.push(Z),D=Z.endAngle}}),n.current=P,x.createElement(Ot,null,x.createElement(GY,{sectors:P,activeShape:h,inactiveShape:p,allOtherPieProps:t,shape:t.shape,id:r}))}),x.createElement(YY,{showLabels:!j,sectors:l,props:t}),t.children)}var WY={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Dt.area};function QY(e){var{id:t}=e,n=wh(e,MY),{hide:r,className:l,rootTabIndex:o}=e,u=x.useMemo(()=>Db(e.children,Ki),[e.children]),f=ye(p=>GK(p,t,u)),d=x.useRef(null),h=Ue("recharts-pie",l);return r||f==null?(d.current=null,x.createElement(Ot,{tabIndex:o,className:h})):x.createElement(Nn,{zIndex:e.zIndex},x.createElement(BY,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:f,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),x.createElement(Ot,{tabIndex:o,className:h},x.createElement(ZY,{props:gt(gt({},n),{},{sectors:f}),previousSectorsRef:d,id:t})))}function Ag(e){var t=kt(e,WY),{id:n}=t,r=wh(t,DY),l=An(r);return x.createElement(Lb,{id:n,type:"pie"},o=>x.createElement(x.Fragment,null,x.createElement(NY,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:l,maxRadius:t.maxRadius}),x.createElement(LY,si({},r,{id:o})),x.createElement(QY,si({},r,{id:o}))))}Ag.displayName="Pie";var JY=["points"];function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(n),!0).forEach(function(r){eG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eG(e,t,n){return(t=tG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e){var t=nG(e,"string");return typeof t=="symbol"?t:t+""}function nG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(null,arguments)}function rG(e,t){if(e==null)return{};var n,r,l=aG(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function aG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iG(e){var{option:t,dotProps:n,className:r}=e;if(x.isValidElement(t))return x.cloneElement(t,n);if(typeof t=="function")return t(n);var l=Ue(r,typeof t!="boolean"?t.className:""),o=n??{},{points:u}=o,f=rG(o,JY);return x.createElement(gM,gd({},f,{className:l}))}function lG(e,t){return e==null?!1:t?!0:e.length===1}function oG(e){var{points:t,dot:n,className:r,dotClassName:l,dataKey:o,baseProps:u,needClip:f,clipPathId:d,zIndex:h=Dt.scatter}=e;if(!lG(t,n))return null;var p=OM(n),y=j6(n),b=t.map((w,j)=>{var _,E,A=Sy(Sy(Sy({r:3},u),y),{},{index:j,cx:(_=w.x)!==null&&_!==void 0?_:void 0,cy:(E=w.y)!==null&&E!==void 0?E:void 0,dataKey:o,value:w.value,payload:w.payload,points:t});return x.createElement(iG,{key:"dot-".concat(j),option:n,dotProps:A,className:l})}),S={};return f&&d!=null&&(S.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(d,")")),x.createElement(Nn,{zIndex:h},x.createElement(Ot,gd({className:r},S),b))}function WA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function QA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(n),!0).forEach(function(r){sG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sG(e,t,n){return(t=uG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=cG(e,"string");return typeof t=="symbol"?t:t+""}function cG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TM=0,fG={xAxis:{},yAxis:{},zAxis:{}},MM=En({name:"cartesianAxis",initialState:fG,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ft()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:ft()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ft()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ft()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:ft()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ft()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ft()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:ft()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ft()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,l=e.yAxis[n];if(l){var o,u=l.widthHistory||[];if(u.length===3&&u[0]===u[2]&&r===u[1]&&r!==l.width&&Math.abs(r-((o=u[0])!==null&&o!==void 0?o:0))<=1)return;var f=[...u,r].slice(-3);e.yAxis[n]=QA(QA({},l),{},{width:r,widthHistory:f})}}}}),{addXAxis:dG,replaceXAxis:hG,removeXAxis:mG,addYAxis:pG,replaceYAxis:vG,removeYAxis:yG,addZAxis:_Q,replaceZAxis:OQ,removeZAxis:AQ,updateYAxisWidth:gG}=MM.actions,bG=MM.reducer,xG=H([Lt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),wG=H([xG,xa,wa],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Bb=()=>ye(wG),SG=()=>ye(sH);function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(r){jG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jG(e,t,n){return(t=_G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _G(e){var t=OG(e,"string");return typeof t=="symbol"?t:t+""}function OG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AG=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:l,dataKey:o,clipPath:u}=e;if(l===!1||t.x==null||t.y==null)return null;var f={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},d=jy(jy(jy({},f),Xi(l)),t0(l)),h;return x.isValidElement(l)?h=x.cloneElement(l,d):typeof l=="function"?h=l(d):h=x.createElement(gM,d),x.createElement(Ot,{className:"recharts-active-dot",clipPath:u},h)};function eE(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:l,clipPath:o,zIndex:u=Dt.activeDot}=e,f=ye(oi),d=SG();if(t==null||d==null)return null;var h=t.find(p=>d.includes(p.payload));return bt(h)?null:x.createElement(Nn,{zIndex:u},x.createElement(AG,{point:h,childIndex:Number(f),mainColor:n,dataKey:l,activeDot:r,clipPath:o}))}var tE=(e,t,n)=>{var r=n??e;if(!bt(r))return on(r,t,0)},EG=(e,t,n)=>{var r={},l=e.filter(uh),o=e.filter(h=>h.stackId==null),u=l.reduce((h,p)=>{var y=h[p.stackId];return y==null&&(y=[]),y.push(p),h[p.stackId]=y,h},r),f=Object.entries(u).map(h=>{var p,[y,b]=h,S=b.map(j=>j.dataKey),w=tE(t,n,(p=b[0])===null||p===void 0?void 0:p.barSize);return{stackId:y,dataKeys:S,barSize:w}}),d=o.map(h=>{var p=[h.dataKey].filter(b=>b!=null),y=tE(t,n,h.barSize);return{stackId:void 0,dataKeys:p,barSize:y}});return[...f,...d]};function nE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(n),!0).forEach(function(r){NG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NG(e,t,n){return(t=CG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CG(e){var t=TG(e,"string");return typeof t=="symbol"?t:t+""}function TG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MG(e,t,n,r,l){var o,u=r.length;if(!(u<1)){var f=on(e,n,0,!0),d,h=[];if(Me((o=r[0])===null||o===void 0?void 0:o.barSize)){var p=!1,y=n/u,b=r.reduce((A,T)=>A+(T.barSize||0),0);b+=(u-1)*f,b>=n&&(b-=(u-1)*f,f=0),b>=n&&y>0&&(p=!0,y*=.9,b=u*y);var S=(n-b)/2>>0,w={offset:S-f,size:0};d=r.reduce((A,T)=>{var C,P={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:w.offset+w.size+f,size:p?y:(C=T.barSize)!==null&&C!==void 0?C:0}},M=[...A,P];return w=P.position,M},h)}else{var j=on(t,n,0,!0);n-2*j-(u-1)*f<=0&&(f=0);var _=(n-2*j-(u-1)*f)/u;_>1&&(_>>=0);var E=Me(l)?Math.min(_,l):_;d=r.reduce((A,T,C)=>[...A,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:j+(_+f)*C+(_-E)/2,size:E}}],h)}return d}}var DG=(e,t,n,r,l,o,u)=>{var f=bt(u)?t:u,d=MG(n,r,l!==o?l:o,e,f);return l!==o&&d!=null&&(d=d.map(h=>sf(sf({},h),{},{position:sf(sf({},h.position),{},{offset:h.position.offset-l/2})}))),d},PG=(e,t)=>{var n=sh(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var l=e[r];if(l){var{stackedData:o}=l;if(o)return o.find(u=>u.key===n)}}}},kG=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function RG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Me(e.zIndex)?e.zIndex:t}var DM=e=>{var{chartData:t}=e,n=at(),r=sn();return x.useEffect(()=>r?()=>{}:(n(oA(t)),()=>{n(oA(void 0))}),[t,n,r]),null},rE={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},PM=En({name:"brush",initialState:rE,reducers:{setBrushSettings(e,t){return t.payload==null?rE:t.payload}}}),{setBrushSettings:EQ}=PM.actions,zG=PM.reducer;function LG(e){return(e%180+180)%180}var BG=function(t){var{width:n,height:r}=t,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=LG(l),u=o*Math.PI/180,f=Math.atan(r/n),d=u>f&&u<Math.PI-f?r/Math.sin(u):n/Math.cos(u);return Math.abs(d)},IG={dots:[],areas:[],lines:[]},kM=En({name:"referenceElements",initialState:IG,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=yr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=yr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=yr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:NQ,removeDot:CQ,addArea:TQ,removeArea:MQ,addLine:DQ,removeLine:PQ}=kM.actions,$G=kM.reducer,UG=x.createContext(void 0),qG=e=>{var{children:t}=e,[n]=x.useState("".concat($s("recharts"),"-clip")),r=Bb();if(r==null)return null;var{x:l,y:o,width:u,height:f}=r;return x.createElement(UG.Provider,{value:n},x.createElement("defs",null,x.createElement("clipPath",{id:n},x.createElement("rect",{x:l,y:o,height:f,width:u}))),t)};function RM(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var l=e[r];l!==void 0&&n.push(l)}return n}function HG(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return BG(r,n)}function FG(e,t,n){var r=n==="width",{x:l,y:o,width:u,height:f}=e;return t===1?{start:r?l:o,end:r?l+u:o+f}:{start:r?l+u:o+f,end:r?l:o}}function eu(e,t,n,r,l){if(e*t<e*r||e*t>e*l)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-l)<=0}function KG(e,t){return RM(e,t+1)}function YG(e,t,n,r,l){for(var o=(r||[]).slice(),{start:u,end:f}=t,d=0,h=1,p=u,y=function(){var w=r==null?void 0:r[d];if(w===void 0)return{v:RM(r,h)};var j=d,_,E=()=>(_===void 0&&(_=n(w,j)),_),A=w.coordinate,T=d===0||eu(e,A,E,p,f);T||(d=0,p=u,h+=1),T&&(p=A+e*(E()/2+l),d+=h)},b;h<=o.length;)if(b=y(),b)return b.v;return[]}function GG(e,t,n,r,l){var o=(r||[]).slice(),u=o.length;if(u===0)return[];for(var{start:f,end:d}=t,h=1;h<=u;h++){for(var p=(u-1)%h,y=f,b=!0,S=function(){var C=r[j];if(C==null)return 0;var P=j,M,D=()=>(M===void 0&&(M=n(C,P)),M),I=C.coordinate,V=j===p||eu(e,I,D,y,d);if(!V)return b=!1,1;V&&(y=I+e*(D()/2+l))},w,j=p;j<u&&(w=S(),!(w!==0&&w===1));j+=h);if(b){for(var _=[],E=p;E<u;E+=h){var A=r[E];A!=null&&_.push(A)}return _}}return[]}function aE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aE(Object(n),!0).forEach(function(r){VG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VG(e,t,n){return(t=XG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XG(e){var t=ZG(e,"string");return typeof t=="symbol"?t:t+""}function ZG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WG(e,t,n,r,l){for(var o=(r||[]).slice(),u=o.length,{start:f}=t,{end:d}=t,h=function(b){var S=o[b];if(S==null)return 1;var w=S,j,_=()=>(j===void 0&&(j=n(S,b)),j);if(b===u-1){var E=e*(w.coordinate+e*_()/2-d);o[b]=w=rn(rn({},w),{},{tickCoord:E>0?w.coordinate-E*e:w.coordinate})}else o[b]=w=rn(rn({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var A=eu(e,w.tickCoord,_,f,d);A&&(d=w.tickCoord-e*(_()/2+l),o[b]=rn(rn({},w),{},{isShow:!0}))}},p=u-1;p>=0;p--)h(p);return o}function QG(e,t,n,r,l,o){var u=(r||[]).slice(),f=u.length,{start:d,end:h}=t;if(o){var p=r[f-1];if(p!=null){var y=n(p,f-1),b=e*(p.coordinate+e*y/2-h);if(u[f-1]=p=rn(rn({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate}),p.tickCoord!=null){var S=eu(e,p.tickCoord,()=>y,d,h);S&&(h=p.tickCoord-e*(y/2+l),u[f-1]=rn(rn({},p),{},{isShow:!0}))}}}for(var w=o?f-1:f,j=function(A){var T=u[A];if(T==null)return 1;var C=T,P,M=()=>(P===void 0&&(P=n(T,A)),P);if(A===0){var D=e*(C.coordinate-e*M()/2-d);u[A]=C=rn(rn({},C),{},{tickCoord:D<0?C.coordinate-D*e:C.coordinate})}else u[A]=C=rn(rn({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var I=eu(e,C.tickCoord,M,d,h);I&&(d=C.tickCoord+e*(M()/2+l),u[A]=rn(rn({},C),{},{isShow:!0}))}},_=0;_<w;_++)j(_);return u}function Ib(e,t,n){var{tick:r,ticks:l,viewBox:o,minTickGap:u,orientation:f,interval:d,tickFormatter:h,unit:p,angle:y}=e;if(!l||!l.length||!r)return[];if(he(d)||hu.isSsr){var b;return(b=KG(l,he(d)?d:0))!==null&&b!==void 0?b:[]}var S=[],w=f==="top"||f==="bottom"?"width":"height",j=p&&w==="width"?Bs(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=(P,M)=>{var D=typeof h=="function"?h(P.value,M):P.value;return w==="width"?HG(Bs(D,{fontSize:t,letterSpacing:n}),j,y):Bs(D,{fontSize:t,letterSpacing:n})[w]},E=l[0],A=l[1],T=l.length>=2&&E!=null&&A!=null?Kt(A.coordinate-E.coordinate):1,C=FG(o,T,w);return d==="equidistantPreserveStart"?YG(T,C,_,l,u):d==="equidistantPreserveEnd"?GG(T,C,_,l,u):(d==="preserveStart"||d==="preserveStartEnd"?S=QG(T,C,_,l,u,d==="preserveStartEnd"):S=WG(T,C,_,l,u),S.filter(P=>P.isShow))}var JG=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:l=0,tickMargin:o=0}=e,u=0;if(t){Array.from(t).forEach(p=>{if(p){var y=p.getBoundingClientRect();y.width>u&&(u=y.width)}});var f=n?n.getBoundingClientRect().width:0,d=l+o,h=u+d+f+(n?r:0);return Math.round(h)}return 0},eV=["axisLine","width","height","className","hide","ticks","axisType"];function tV(e,t){if(e==null)return{};var n,r,l=nV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function nV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rl.apply(null,arguments)}function iE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(n),!0).forEach(function(r){rV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rV(e,t,n){return(t=aV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e){var t=iV(e,"string");return typeof t=="symbol"?t:t+""}function iV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fa={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Dt.axis};function lV(e){var{x:t,y:n,width:r,height:l,orientation:o,mirror:u,axisLine:f,otherSvgProps:d}=e;if(!f)return null;var h=vt(vt(vt({},d),An(f)),{},{fill:"none"});if(o==="top"||o==="bottom"){var p=+(o==="top"&&!u||o==="bottom"&&u);h=vt(vt({},h),{},{x1:t,y1:n+p*l,x2:t+r,y2:n+p*l})}else{var y=+(o==="left"&&!u||o==="right"&&u);h=vt(vt({},h),{},{x1:t+y*r,y1:n,x2:t+y*r,y2:n+l})}return x.createElement("line",rl({},h,{className:Ue("recharts-cartesian-axis-line",Wi(f,"className"))}))}function oV(e,t,n,r,l,o,u,f,d){var h,p,y,b,S,w,j=f?-1:1,_=e.tickSize||u,E=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=p=e.coordinate,b=n+ +!f*l,y=b-j*_,w=y-j*d,S=E;break;case"left":y=b=e.coordinate,p=t+ +!f*r,h=p-j*_,S=h-j*d,w=E;break;case"right":y=b=e.coordinate,p=t+ +f*r,h=p+j*_,S=h+j*d,w=E;break;default:h=p=e.coordinate,b=n+ +f*l,y=b+j*_,w=y+j*d,S=E;break}return{line:{x1:h,y1:y,x2:p,y2:b},tick:{x:S,y:w}}}function sV(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function uV(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function cV(e){var{option:t,tickProps:n,value:r}=e,l,o=Ue(n.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))l=x.cloneElement(t,vt(vt({},n),{},{className:o}));else if(typeof t=="function")l=t(vt(vt({},n),{},{className:o}));else{var u="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(u=Ue(u,SM(t))),l=x.createElement(gh,rl({},n,{className:u}),r)}return l}var fV=x.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:l,stroke:o,tickFormatter:u,unit:f,padding:d,tickTextProps:h,orientation:p,mirror:y,x:b,y:S,width:w,height:j,tickSize:_,tickMargin:E,fontSize:A,letterSpacing:T,getTicksConfig:C,events:P,axisType:M}=e,D=Ib(vt(vt({},C),{},{ticks:n}),A,T),I=sV(p,y),V=uV(p,y),X=An(C),te=Xi(r),k={};typeof l=="object"&&(k=l);var se=vt(vt({},X),{},{fill:"none"},k),U=D.map(Z=>vt({entry:Z},oV(Z,b,S,w,j,p,_,y,E))),ne=U.map(Z=>{var{entry:ie,line:fe}=Z;return x.createElement(Ot,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(ie.value,"-").concat(ie.coordinate,"-").concat(ie.tickCoord)},l&&x.createElement("line",rl({},se,fe,{className:Ue("recharts-cartesian-axis-tick-line",Wi(l,"className"))})))}),L=U.map((Z,ie)=>{var fe,de,{entry:R,tick:Y}=Z,oe=vt(vt(vt(vt({verticalAnchor:V},X),{},{textAnchor:I,stroke:"none",fill:o},Y),{},{index:ie,payload:R,visibleTicksCount:D.length,tickFormatter:u,padding:d},h),{},{angle:(fe=(de=h==null?void 0:h.angle)!==null&&de!==void 0?de:X.angle)!==null&&fe!==void 0?fe:0}),ce=vt(vt({},oe),te);return x.createElement(Ot,rl({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(R.value,"-").concat(R.coordinate,"-").concat(R.tickCoord)},ou(P,R,ie)),r&&x.createElement(cV,{option:r,tickProps:ce,value:"".concat(typeof u=="function"?u(R.value,ie):R.value).concat(f||"")}))});return x.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(M,"-ticks")},L.length>0&&x.createElement(Nn,{zIndex:Dt.label},x.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(M,"-tick-labels"),ref:t},L)),ne.length>0&&x.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(M,"-tick-lines")},ne))}),dV=x.forwardRef((e,t)=>{var{axisLine:n,width:r,height:l,className:o,hide:u,ticks:f,axisType:d}=e,h=tV(e,eV),[p,y]=x.useState(""),[b,S]=x.useState(""),w=x.useRef(null);x.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return JG({ticks:w.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=x.useCallback(_=>{if(_){var E=_.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=E;var A=E[0];if(A){var T=window.getComputedStyle(A),C=T.fontSize,P=T.letterSpacing;(C!==p||P!==b)&&(y(C),S(P))}}},[p,b]);return u||r!=null&&r<=0||l!=null&&l<=0?null:x.createElement(Nn,{zIndex:e.zIndex},x.createElement(Ot,{className:Ue("recharts-cartesian-axis",o)},x.createElement(lV,{x:e.x,y:e.y,width:r,height:l,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:An(e)}),x.createElement(fV,{ref:j,axisType:d,events:h,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:b,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:f,unit:e.unit,width:e.width,x:e.x,y:e.y}),x.createElement(sK,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},x.createElement(gK,{label:e.label,labelRef:e.labelRef}),e.children)))}),$b=x.forwardRef((e,t)=>{var n=kt(e,fa);return x.createElement(dV,rl({},n,{ref:t}))});$b.displayName="CartesianAxis";var hV=["x1","y1","x2","y2","key"],mV=["offset"],pV=["xAxisId","yAxisId"],vV=["xAxisId","yAxisId"];function lE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lE(Object(n),!0).forEach(function(r){yV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yV(e,t,n){return(t=gV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(e){var t=bV(e,"string");return typeof t=="symbol"?t:t+""}function bV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i.apply(null,arguments)}function bd(e,t){if(e==null)return{};var n,r,l=xV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function xV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wV=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:l,width:o,height:u,ry:f}=e;return x.createElement("rect",{x:r,y:l,ry:f,width:o,height:u,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function zM(e){var{option:t,lineItemProps:n}=e,r;if(x.isValidElement(t))r=x.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var l,{x1:o,y1:u,x2:f,y2:d,key:h}=n,p=bd(n,hV),y=(l=An(p))!==null&&l!==void 0?l:{},{offset:b}=y,S=bd(y,mV);r=x.createElement("line",$i({},S,{x1:o,y1:u,x2:f,y2:d,fill:"none",key:h}))}return r}function SV(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:l}=e;if(!r||!l||!l.length)return null;var{xAxisId:o,yAxisId:u}=e,f=bd(e,pV),d=l.map((h,p)=>{var y=an(an({},f),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(p),index:p});return x.createElement(zM,{key:"line-".concat(p),option:r,lineItemProps:y})});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function jV(e){var{y:t,height:n,vertical:r=!0,verticalPoints:l}=e;if(!r||!l||!l.length)return null;var{xAxisId:o,yAxisId:u}=e,f=bd(e,vV),d=l.map((h,p)=>{var y=an(an({},f),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(p),index:p});return x.createElement(zM,{option:r,lineItemProps:y,key:"line-".concat(p)})});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function _V(e){var{horizontalFill:t,fillOpacity:n,x:r,y:l,width:o,height:u,horizontalPoints:f,horizontal:d=!0}=e;if(!d||!t||!t.length||f==null)return null;var h=f.map(y=>Math.round(y+l-l)).sort((y,b)=>y-b);l!==h[0]&&h.unshift(0);var p=h.map((y,b)=>{var S=h[b+1],w=S==null,j=w?l+u-y:S-y;if(j<=0)return null;var _=b%t.length;return x.createElement("rect",{key:"react-".concat(b),y,x:r,height:j,width:o,stroke:"none",fill:t[_],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function OV(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:l,y:o,width:u,height:f,verticalPoints:d}=e;if(!t||!n||!n.length)return null;var h=d.map(y=>Math.round(y+l-l)).sort((y,b)=>y-b);l!==h[0]&&h.unshift(0);var p=h.map((y,b)=>{var S=h[b+1],w=S==null,j=w?l+u-y:S-y;if(j<=0)return null;var _=b%n.length;return x.createElement("rect",{key:"react-".concat(b),x:y,y:o,width:j,height:f,stroke:"none",fill:n[_],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var AV=(e,t)=>{var{xAxis:n,width:r,height:l,offset:o}=e;return jC(Ib(an(an(an({},fa),n),{},{ticks:_C(n),viewBox:{x:0,y:0,width:r,height:l}})),o.left,o.left+o.width,t)},EV=(e,t)=>{var{yAxis:n,width:r,height:l,offset:o}=e;return jC(Ib(an(an(an({},fa),n),{},{ticks:_C(n),viewBox:{x:0,y:0,width:r,height:l}})),o.top,o.top+o.height,t)},NV={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Dt.grid};function Eg(e){var t=m0(),n=p0(),r=DC(),l=an(an({},kt(e,NV)),{},{x:he(e.x)?e.x:r.left,y:he(e.y)?e.y:r.top,width:he(e.width)?e.width:r.width,height:he(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:u,x:f,y:d,width:h,height:p,syncWithTicks:y,horizontalValues:b,verticalValues:S}=l,w=sn(),j=ye(V=>XO(V,"xAxis",o,w)),_=ye(V=>XO(V,"yAxis",u,w));if(!Pr(h)||!Pr(p)||!he(f)||!he(d))return null;var E=l.verticalCoordinatesGenerator||AV,A=l.horizontalCoordinatesGenerator||EV,{horizontalPoints:T,verticalPoints:C}=l;if((!T||!T.length)&&typeof A=="function"){var P=b&&b.length,M=A({yAxis:_?an(an({},_),{},{ticks:P?b:_.ticks}):void 0,width:t??h,height:n??p,offset:r},P?!0:y);Ff(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof M,"]")),Array.isArray(M)&&(T=M)}if((!C||!C.length)&&typeof E=="function"){var D=S&&S.length,I=E({xAxis:j?an(an({},j),{},{ticks:D?S:j.ticks}):void 0,width:t??h,height:n??p,offset:r},D?!0:y);Ff(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof I,"]")),Array.isArray(I)&&(C=I)}return x.createElement(Nn,{zIndex:l.zIndex},x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(wV,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),x.createElement(_V,$i({},l,{horizontalPoints:T})),x.createElement(OV,$i({},l,{verticalPoints:C})),x.createElement(SV,$i({},l,{offset:r,horizontalPoints:T,xAxis:j,yAxis:_})),x.createElement(jV,$i({},l,{offset:r,verticalPoints:C,xAxis:j,yAxis:_}))))}Eg.displayName="CartesianGrid";var CV={},LM=En({name:"errorBars",initialState:CV,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:l}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?l:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(l=>l.dataKey!==r.dataKey||l.direction!==r.direction))}}}),{addErrorBar:kQ,replaceErrorBar:RQ,removeErrorBar:zQ}=LM.actions,TV=LM.reducer,MV=["children"];function DV(e,t){if(e==null)return{};var n,r,l=PV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function PV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var kV={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},RV=x.createContext(kV);function zV(e){var{children:t}=e,n=DV(e,MV);return x.createElement(RV.Provider,{value:n},t)}function Ub(e,t){var n,r,l=ye(h=>_a(h,e)),o=ye(h=>Oa(h,t)),u=(n=l==null?void 0:l.allowDataOverflow)!==null&&n!==void 0?n:qt.allowDataOverflow,f=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:Ht.allowDataOverflow,d=u||f;return{needClip:d,needClipX:u,needClipY:f}}function BM(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,l=Bb(),{needClipX:o,needClipY:u,needClip:f}=Ub(t,n);if(!f||!l)return null;var{x:d,y:h,width:p,height:y}=l;return x.createElement("clipPath",{id:"clipPath-".concat(r)},x.createElement("rect",{x:o?d:d-p/2,y:u?h:h-y/2,width:o?p:p*2,height:u?y:y*2}))}function LV(e){var t=Xi(e),n=3,r=2;if(t!=null){var{r:l,strokeWidth:o}=t,u=Number(l),f=Number(o);return(Number.isNaN(u)||u<0)&&(u=n),(Number.isNaN(f)||f<0)&&(f=r),{r:u,strokeWidth:f}}return{r:n,strokeWidth:r}}var _y={exports:{}},Oy={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oE;function BV(){if(oE)return Oy;oE=1;var e=vo();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,l=e.useRef,o=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Oy.useSyncExternalStoreWithSelector=function(d,h,p,y,b){var S=l(null);if(S.current===null){var w={hasValue:!1,value:null};S.current=w}else w=S.current;S=u(function(){function _(P){if(!E){if(E=!0,A=P,P=y(P),b!==void 0&&w.hasValue){var M=w.value;if(b(M,P))return T=M}return T=P}if(M=T,n(A,P))return M;var D=y(P);return b!==void 0&&b(M,D)?(A=P,M):(A=P,T=D)}var E=!1,A,T,C=p===void 0?null:p;return[function(){return _(h())},C===null?void 0:function(){return _(C())}]},[h,p,y,b]);var j=r(d,S[0],S[1]);return o(function(){w.hasValue=!0,w.value=j},[j]),f(j),j},Oy}var sE;function IV(){return sE||(sE=1,_y.exports=BV()),_y.exports}IV();function $V(e){e()}function UV(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$V(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const l=t={callback:n,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!r||e===null||(r=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var uE={notify(){},get:()=>[]};function qV(e,t){let n,r=uE,l=0,o=!1;function u(j){p();const _=r.subscribe(j);let E=!1;return()=>{E||(E=!0,_(),y())}}function f(){r.notify()}function d(){w.onStateChange&&w.onStateChange()}function h(){return o}function p(){l++,n||(n=e.subscribe(d),r=UV())}function y(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=uE)}function b(){o||(o=!0,p())}function S(){o&&(o=!1,y())}const w={addNestedSub:u,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:h,trySubscribe:b,tryUnsubscribe:S,getListeners:()=>r};return w}var HV=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FV=HV(),KV=()=>typeof navigator<"u"&&navigator.product==="ReactNative",YV=KV(),GV=()=>FV||YV?x.useLayoutEffect:x.useEffect,VV=GV();function cE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function XV(e,t){if(cE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l<n.length;l++)if(!Object.prototype.hasOwnProperty.call(t,n[l])||!cE(e[n[l]],t[n[l]]))return!1;return!0}var Ay=Symbol.for("react-redux-context"),Ey=typeof globalThis<"u"?globalThis:{};function ZV(){if(!x.createContext)return{};const e=Ey[Ay]??(Ey[Ay]=new Map);let t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var WV=ZV();function QV(e){const{children:t,context:n,serverState:r,store:l}=e,o=x.useMemo(()=>{const d=qV(l);return{store:l,subscription:d,getServerState:r?()=>r:void 0}},[l,r]),u=x.useMemo(()=>l.getState(),[l]);VV(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),u!==l.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,u]);const f=n||WV;return x.createElement(f.Provider,{value:o},t)}var JV=QV,eX=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function tX(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Sh(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(eX.has(r)){if(e[r]==null&&t[r]==null)continue;if(!XV(e[r],t[r]))return!1}else if(!tX(e[r],t[r]))return!1;return!0}function Lr(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(l=>l.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:TM}function Br(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(l=>l.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:TM}var IM=(e,t,n)=>li(e,"xAxis",Lr(e,t),n),$M=(e,t,n)=>ii(e,"xAxis",Lr(e,t),n),UM=(e,t,n)=>li(e,"yAxis",Br(e,t),n),qM=(e,t,n)=>ii(e,"yAxis",Br(e,t),n),nX=H([Be,IM,UM,$M,qM],(e,t,n,r,l)=>zr(e,"xAxis")?uo(t,r,!1):uo(n,l,!1)),rX=(e,t)=>t,HM=H([dh,rX],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),FM=e=>{var t=Be(e),n=zr(t,"xAxis");return n?"yAxis":"xAxis"},aX=(e,t)=>{var n=FM(e);return n==="yAxis"?Br(e,t):Lr(e,t)},iX=(e,t,n)=>dd(e,FM(e),aX(e,t),n),lX=H([HM,iX],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,l=sh(e);if(!(r==null||l==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,u=o==null?void 0:o.find(f=>f.key===l);if(u!=null)return u.map(f=>[f[0],f[1]])}}}),oX=H([Be,IM,UM,$M,qM,lX,zT,nX,HM,rU],(e,t,n,r,l,o,u,f,d,h)=>{var{chartData:p,dataStartIndex:y,dataEndIndex:b}=u;if(!(d==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||l==null||r.length===0||l.length===0||f==null)){var{data:S}=d,w;if(S&&S.length>0?w=S:w=p==null?void 0:p.slice(y,b+1),w!=null)return AX({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:l,dataStartIndex:y,areaSettings:d,stackedData:o,displayedData:w,chartBaseValue:h,bandSize:f})}}),sX=["id"],uX=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(null,arguments)}function KM(e,t){if(e==null)return{};var n,r,l=cX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function cX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fE(Object(n),!0).forEach(function(r){fX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fX(e,t,n){return(t=dX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dX(e){var t=hX(e,"string");return typeof t=="symbol"?t:t+""}function hX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xd(e,t){return e&&e!=="none"?e:t}var mX=e=>{var{dataKey:t,name:n,stroke:r,fill:l,legendType:o,hide:u}=e;return[{inactive:u,dataKey:t,type:o,color:xd(r,l),value:bo(n,t),payload:e}]},pX=x.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:l,fill:o,name:u,hide:f,unit:d,tooltipType:h,id:p}=e,y={dataDefinedOnItem:n,getPosition:al,settings:{stroke:r,strokeWidth:l,fill:o,dataKey:t,nameKey:void 0,name:bo(u,t),hide:f,type:h,color:xd(r,o),unit:d,graphicalItemId:p}};return x.createElement(zb,{tooltipEntrySettings:y})});function vX(e){var{clipPathId:t,points:n,props:r}=e,{needClip:l,dot:o,dataKey:u}=r,f=An(r);return x.createElement(oG,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:u,baseProps:f,needClip:l,clipPathId:t})}function yX(e){var{showLabels:t,children:n,points:r}=e,l=r.map(o=>{var u,f,d={x:(u=o.x)!==null&&u!==void 0?u:0,y:(f=o.y)!==null&&f!==void 0?f:0,width:0,lowerWidth:0,upperWidth:0,height:0};return no(no({},d),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:d,fill:void 0})});return x.createElement(vM,{value:t?l:void 0},n)}function dE(e){var{points:t,baseLine:n,needClip:r,clipPathId:l,props:o}=e,{layout:u,type:f,stroke:d,connectNulls:h,isRange:p}=o,{id:y}=o,b=KM(o,sX),S=An(b),w=hn(b);return x.createElement(x.Fragment,null,(t==null?void 0:t.length)>1&&x.createElement(Ot,{clipPath:r?"url(#clipPath-".concat(l,")"):void 0},x.createElement(io,Yi({},w,{id:y,points:t,connectNulls:h,type:f,baseLine:n,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&x.createElement(io,Yi({},S,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:t})),d!=="none"&&p&&x.createElement(io,Yi({},S,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:n}))),x.createElement(vX,{points:t,props:b,clipPathId:l}))}function gX(e){var t,n,{alpha:r,baseLine:l,points:o,strokeWidth:u}=e,f=(t=o[0])===null||t===void 0?void 0:t.y,d=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!Me(f)||!Me(d))return null;var h=r*Math.abs(f-d),p=Math.max(...o.map(y=>y.x||0));return he(l)?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(...l.map(y=>y.x||0),p)),he(p)?x.createElement("rect",{x:0,y:f<d?f:f-h,width:p+(u?parseInt("".concat(u),10):1),height:Math.floor(h)}):null}function bX(e){var t,n,{alpha:r,baseLine:l,points:o,strokeWidth:u}=e,f=(t=o[0])===null||t===void 0?void 0:t.x,d=(n=o[o.length-1])===null||n===void 0?void 0:n.x;if(!Me(f)||!Me(d))return null;var h=r*Math.abs(f-d),p=Math.max(...o.map(y=>y.y||0));return he(l)?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(...l.map(y=>y.y||0),p)),he(p)?x.createElement("rect",{x:f<d?f:f-h,y:0,width:h,height:Math.floor(p+(u?parseInt("".concat(u),10):1))}):null}function xX(e){var{alpha:t,layout:n,points:r,baseLine:l,strokeWidth:o}=e;return n==="vertical"?x.createElement(gX,{alpha:t,points:r,baseLine:l,strokeWidth:o}):x.createElement(bX,{alpha:t,points:r,baseLine:l,strokeWidth:o})}function wX(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:l,previousBaselineRef:o}=e,{points:u,baseLine:f,isAnimationActive:d,animationBegin:h,animationDuration:p,animationEasing:y,onAnimationStart:b,onAnimationEnd:S}=r,w=x.useMemo(()=>({points:u,baseLine:f}),[u,f]),j=pu(w,"recharts-area-"),_=v0(),[E,A]=x.useState(!1),T=!E,C=x.useCallback(()=>{typeof S=="function"&&S(),A(!1)},[S]),P=x.useCallback(()=>{typeof b=="function"&&b(),A(!0)},[b]);if(_==null)return null;var M=l.current,D=o.current;return x.createElement(yX,{showLabels:T,points:u},r.children,x.createElement(mu,{animationId:j,begin:h,duration:p,isActive:d,easing:y,onAnimationEnd:C,onAnimationStart:P,key:j},I=>{if(M){var V=M.length/u.length,X=I===1?u:u.map((k,se)=>{var U=Math.floor(se*V);if(M[U]){var ne=M[U];return no(no({},k),{},{x:st(ne.x,k.x,I),y:st(ne.y,k.y,I)})}return k}),te;return he(f)?te=st(D,f,I):bt(f)||gr(f)?te=st(D,0,I):te=f.map((k,se)=>{var U=Math.floor(se*V);if(Array.isArray(D)&&D[U]){var ne=D[U];return no(no({},k),{},{x:st(ne.x,k.x,I),y:st(ne.y,k.y,I)})}return k}),I>0&&(l.current=X,o.current=te),x.createElement(dE,{points:X,baseLine:te,needClip:t,clipPathId:n,props:r})}return I>0&&(l.current=u,o.current=f),x.createElement(Ot,null,d&&x.createElement("defs",null,x.createElement("clipPath",{id:"animationClipPath-".concat(n)},x.createElement(xX,{alpha:I,points:u,baseLine:f,layout:_,strokeWidth:r.strokeWidth}))),x.createElement(Ot,{clipPath:"url(#animationClipPath-".concat(n,")")},x.createElement(dE,{points:u,baseLine:f,needClip:t,clipPathId:n,props:r})))}),x.createElement(Cb,{label:r.label}))}function SX(e){var{needClip:t,clipPathId:n,props:r}=e,l=x.useRef(null),o=x.useRef();return x.createElement(wX,{needClip:t,clipPathId:n,props:r,previousPointsRef:l,previousBaselineRef:o})}class jX extends x.PureComponent{render(){var{hide:t,dot:n,points:r,className:l,top:o,left:u,needClip:f,xAxisId:d,yAxisId:h,width:p,height:y,id:b,baseLine:S,zIndex:w}=this.props;if(t)return null;var j=Ue("recharts-area",l),_=b,{r:E,strokeWidth:A}=LV(n),T=OM(n),C=E*2+A,P=f?"url(#clipPath-".concat(T?"":"dots-").concat(_,")"):void 0;return x.createElement(Nn,{zIndex:w},x.createElement(Ot,{className:j},f&&x.createElement("defs",null,x.createElement(BM,{clipPathId:_,xAxisId:d,yAxisId:h}),!T&&x.createElement("clipPath",{id:"clipPath-dots-".concat(_)},x.createElement("rect",{x:u-C/2,y:o-C/2,width:p+C,height:y+C}))),x.createElement(SX,{needClip:f,clipPathId:_,props:this.props})),x.createElement(eE,{points:r,mainColor:xd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:P}),this.props.isRange&&Array.isArray(S)&&x.createElement(eE,{points:S,mainColor:xd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:P}))}}var YM={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:Dt.area};function _X(e){var t,n=kt(e,YM),{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,connectNulls:f,dot:d,fill:h,fillOpacity:p,hide:y,isAnimationActive:b,legendType:S,stroke:w,xAxisId:j,yAxisId:_}=n,E=KM(n,uX),A=il(),T=W5(),{needClip:C}=Ub(j,_),P=sn(),{points:M,isRange:D,baseLine:I}=(t=ye(U=>oX(U,e.id,P)))!==null&&t!==void 0?t:{},V=Bb();if(A!=="horizontal"&&A!=="vertical"||V==null||T!=="AreaChart"&&T!=="ComposedChart")return null;var{height:X,width:te,x:k,y:se}=V;return!M||!M.length?null:x.createElement(jX,Yi({},E,{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,baseLine:I,connectNulls:f,dot:d,fill:h,fillOpacity:p,height:X,hide:y,layout:A,isAnimationActive:b==="auto"?!hu.isSsr:b,isRange:D,legendType:S,needClip:C,points:M,stroke:w,width:te,left:k,top:se,xAxisId:j,yAxisId:_}))}var OX=(e,t,n,r,l)=>{var o=n??t;if(he(o))return o;var u=e==="horizontal"?l:r,f=u.scale.domain();if(u.type==="number"){var d=Math.max(f[0],f[1]),h=Math.min(f[0],f[1]);return o==="dataMin"?h:o==="dataMax"||d<0?d:Math.max(Math.min(f[0],f[1]),0)}return o==="dataMin"?f[0]:o==="dataMax"?f[1]:f[0]};function AX(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:l,layout:o,chartBaseValue:u,xAxis:f,yAxis:d,displayedData:h,dataStartIndex:p,xAxisTicks:y,yAxisTicks:b,bandSize:S}=e,w=l&&l.length,j=OX(o,u,n,f,d),_=o==="horizontal",E=!1,A=h.map((C,P)=>{var M,D,I,V;if(w)V=l[p+P];else{var X=Je(C,r);Array.isArray(X)?(V=X,E=!0):V=[j,X]}var te=(M=(D=V)===null||D===void 0?void 0:D[1])!==null&&M!==void 0?M:null,k=te==null||w&&!t&&Je(C,r)==null;if(_){var se;return{x:Y2({axis:f,ticks:y,bandSize:S,entry:C,index:P}),y:k?null:(se=d.scale.map(te))!==null&&se!==void 0?se:null,value:V,payload:C}}return{x:k?null:(I=f.scale.map(te))!==null&&I!==void 0?I:null,y:Y2({axis:d,ticks:b,bandSize:S,entry:C,index:P}),value:V,payload:C}}),T;return w||E?T=A.map(C=>{var P,M=Array.isArray(C.value)?C.value[0]:null;if(_){var D;return{x:C.x,y:M!=null&&C.y!=null&&(D=d.scale.map(M))!==null&&D!==void 0?D:null,payload:C.payload}}return{x:M!=null&&(P=f.scale.map(M))!==null&&P!==void 0?P:null,y:C.y,payload:C.payload}}):T=_?d.scale.map(j):f.scale.map(j),{points:A,baseLine:T??0,isRange:E}}function EX(e){var t=kt(e,YM),n=sn();return x.createElement(Lb,{id:t.id,type:"area"},r=>x.createElement(x.Fragment,null,x.createElement(EM,{legendPayload:mX(t)}),x.createElement(pX,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),x.createElement(CM,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:OC(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),x.createElement(_X,Yi({},t,{id:r}))))}var GM=x.memo(EX,Sh);GM.displayName="Area";var NX="Invariant failed";function CX(e,t){throw new Error(NX)}function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(null,arguments)}function wd(e){return x.createElement(AM,Ng({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var TX=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,l)=>{if(he(t))return t;var o=he(r)||bt(r);return o?t(r,l):(o||CX(),n)}},MX=(e,t,n)=>n,DX=(e,t)=>t,Eu=H([dh,DX],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),PX=H([Eu],e=>e==null?void 0:e.maxBarSize),kX=(e,t,n,r)=>r,RX=H([Be,dh,Lr,Br,MX],(e,t,n,r,l)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===l).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),zX=(e,t,n)=>{var r=Be(e),l=Lr(e,t),o=Br(e,t);if(!(l==null||o==null))return r==="horizontal"?dd(e,"yAxis",o,n):dd(e,"xAxis",l,n)},LX=(e,t)=>{var n=Be(e),r=Lr(e,t),l=Br(e,t);if(!(r==null||l==null))return n==="horizontal"?VO(e,"xAxis",r):VO(e,"yAxis",l)},BX=H([RX,nU,LX],EG),IX=(e,t,n)=>{var r,l,o=Eu(e,t);if(o==null)return 0;var u=Lr(e,t),f=Br(e,t);if(u==null||f==null)return 0;var d=Be(e),h=VT(e),{maxBarSize:p}=o,y=bt(p)?h:p,b,S;return d==="horizontal"?(b=li(e,"xAxis",u,n),S=ii(e,"xAxis",u,n)):(b=li(e,"yAxis",f,n),S=ii(e,"yAxis",f,n)),(r=(l=uo(b,S,!0))!==null&&l!==void 0?l:y)!==null&&r!==void 0?r:0},VM=(e,t,n)=>{var r=Be(e),l=Lr(e,t),o=Br(e,t);if(!(l==null||o==null)){var u,f;return r==="horizontal"?(u=li(e,"xAxis",l,n),f=ii(e,"xAxis",l,n)):(u=li(e,"yAxis",o,n),f=ii(e,"yAxis",o,n)),uo(u,f)}},$X=H([BX,VT,tU,XT,IX,VM,PX],DG),UX=(e,t,n)=>{var r=Lr(e,t);if(r!=null)return li(e,"xAxis",r,n)},qX=(e,t,n)=>{var r=Br(e,t);if(r!=null)return li(e,"yAxis",r,n)},HX=(e,t,n)=>{var r=Lr(e,t);if(r!=null)return ii(e,"xAxis",r,n)},FX=(e,t,n)=>{var r=Br(e,t);if(r!=null)return ii(e,"yAxis",r,n)},KX=H([$X,Eu],kG),YX=H([zX,Eu],PG),GX=H([Lt,f0,UX,qX,HX,FX,KX,Be,zT,VM,YX,Eu,kX],(e,t,n,r,l,o,u,f,d,h,p,y,b)=>{var{chartData:S,dataStartIndex:w,dataEndIndex:j}=d;if(!(y==null||u==null||t==null||f!=="horizontal"&&f!=="vertical"||n==null||r==null||l==null||o==null||h==null)){var{data:_}=y,E;if(_!=null&&_.length>0?E=_:E=S==null?void 0:S.slice(w,j+1),E!=null)return wZ({layout:f,barSettings:y,pos:u,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:l,yAxisTicks:o,stackedData:p,displayedData:E,offset:e,cells:b,dataStartIndex:w})}}),VX=["index"];function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cg.apply(null,arguments)}function XX(e,t){if(e==null)return{};var n,r,l=ZX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function ZX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var XM=x.createContext(void 0),WX=e=>{var t=x.useContext(XM);if(t!=null)return t.stackId;if(e!=null)return OC(e)},QX=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),JX=e=>{var t=x.useContext(XM);if(t!=null){var{stackId:n}=t;return"url(#".concat(QX(n,e),")")}},ZM=e=>{var{index:t}=e,n=XX(e,VX),r=JX(t);return x.createElement(Ot,Cg({className:"recharts-bar-stack-layer",clipPath:r},n))},eZ=["onMouseEnter","onMouseLeave","onClick"],tZ=["value","background","tooltipPosition"],nZ=["id"],rZ=["onMouseEnter","onClick","onMouseLeave"];function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(null,arguments)}function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hE(Object(n),!0).forEach(function(r){aZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aZ(e,t,n){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iZ(e){var t=lZ(e,"string");return typeof t=="symbol"?t:t+""}function lZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sd(e,t){if(e==null)return{};var n,r,l=oZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function oZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sZ=e=>{var{dataKey:t,name:n,fill:r,legendType:l,hide:o}=e;return[{inactive:o,dataKey:t,type:l,color:r,value:bo(n,t),payload:e}]},uZ=x.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:l,name:o,hide:u,unit:f,tooltipType:d,id:h}=e,p={dataDefinedOnItem:void 0,getPosition:al,settings:{stroke:n,strokeWidth:r,fill:l,dataKey:t,nameKey:void 0,name:bo(o,t),hide:u,type:d,color:l,unit:f,graphicalItemId:h}};return x.createElement(zb,{tooltipEntrySettings:p})});function cZ(e){var t=ye(oi),{data:n,dataKey:r,background:l,allOtherBarProps:o}=e,{onMouseEnter:u,onMouseLeave:f,onClick:d}=o,h=Sd(o,eZ),p=Pb(u,r,o.id),y=kb(f),b=Rb(d,r,o.id);if(!l||n==null)return null;var S=Xi(l);return x.createElement(Nn,{zIndex:RG(l,Dt.barBackground)},n.map((w,j)=>{var{value:_,background:E,tooltipPosition:A}=w,T=Sd(w,tZ);if(!E)return null;var C=p(w,j),P=y(w,j),M=b(w,j),D=cn(cn(cn(cn(cn({option:l,isActive:String(j)===t},T),{},{fill:"#eee"},E),S),ou(h,w,j)),{},{onMouseEnter:C,onMouseLeave:P,onClick:M,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return x.createElement(wd,ga({key:"background-bar-".concat(j)},D))}))}function fZ(e){var{showLabels:t,children:n,rects:r}=e,l=r==null?void 0:r.map(o=>{var u={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return cn(cn({},u),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:u,fill:o.fill})});return x.createElement(vM,{value:t?l:void 0},n)}function dZ(e){var{shape:t,activeBar:n,baseProps:r,entry:l,index:o,dataKey:u}=e,f=ye(oi),d=ye(Sb),h=n&&String(o)===f&&(d==null||u===d),p=h?n:t;return h?x.createElement(Nn,{zIndex:Dt.activeBar},x.createElement(ZM,{index:o},x.createElement(wd,ga({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u})))):x.createElement(wd,ga({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u}))}function hZ(e){var{shape:t,baseProps:n,entry:r,index:l,dataKey:o}=e;return x.createElement(wd,ga({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:l,dataKey:o}))}function mZ(e){var t,{data:n,props:r}=e,l=(t=An(r))!==null&&t!==void 0?t:{},{id:o}=l,u=Sd(l,nZ),{shape:f,dataKey:d,activeBar:h}=r,{onMouseEnter:p,onClick:y,onMouseLeave:b}=r,S=Sd(r,rZ),w=Pb(p,d,o),j=kb(b),_=Rb(y,d,o);return n?x.createElement(x.Fragment,null,n.map((E,A)=>x.createElement(ZM,ga({index:A,key:"rectangle-".concat(E==null?void 0:E.x,"-").concat(E==null?void 0:E.y,"-").concat(E==null?void 0:E.value,"-").concat(A),className:"recharts-bar-rectangle"},ou(S,E,A),{onMouseEnter:w(E,A),onMouseLeave:j(E,A),onClick:_(E,A)}),h?x.createElement(dZ,{shape:f,activeBar:h,baseProps:u,entry:E,index:A,dataKey:d}):x.createElement(hZ,{shape:f,baseProps:u,entry:E,index:A,dataKey:d})))):null}function pZ(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:l,isAnimationActive:o,animationBegin:u,animationDuration:f,animationEasing:d,onAnimationEnd:h,onAnimationStart:p}=t,y=n.current,b=pu(t,"recharts-bar-"),[S,w]=x.useState(!1),j=!S,_=x.useCallback(()=>{typeof h=="function"&&h(),w(!1)},[h]),E=x.useCallback(()=>{typeof p=="function"&&p(),w(!0)},[p]);return x.createElement(fZ,{showLabels:j,rects:r},x.createElement(mu,{animationId:b,begin:u,duration:f,isActive:o,easing:d,onAnimationEnd:_,onAnimationStart:E,key:b},A=>{var T=A===1?r:r==null?void 0:r.map((C,P)=>{var M=y&&y[P];if(M)return cn(cn({},C),{},{x:st(M.x,C.x,A),y:st(M.y,C.y,A),width:st(M.width,C.width,A),height:st(M.height,C.height,A)});if(l==="horizontal"){var D=st(0,C.height,A),I=st(C.stackedBarStart,C.y,A);return cn(cn({},C),{},{y:I,height:D})}var V=st(0,C.width,A),X=st(C.stackedBarStart,C.x,A);return cn(cn({},C),{},{width:V,x:X})});return A>0&&(n.current=T??null),T==null?null:x.createElement(Ot,null,x.createElement(mZ,{props:t,data:T}))}),x.createElement(Cb,{label:t.label}),t.children)}function vZ(e){var t=x.useRef(null);return x.createElement(pZ,{previousRectanglesRef:t,props:e})}var WM=0,yZ=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Je(e,t)}};class gZ extends x.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:l,xAxisId:o,yAxisId:u,needClip:f,background:d,id:h}=this.props;if(t||n==null)return null;var p=Ue("recharts-bar",l),y=h;return x.createElement(Ot,{className:p,id:h},f&&x.createElement("defs",null,x.createElement(BM,{clipPathId:y,xAxisId:o,yAxisId:u})),x.createElement(Ot,{className:"recharts-bar-rectangles",clipPath:f?"url(#clipPath-".concat(y,")"):void 0},x.createElement(cZ,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),x.createElement(vZ,this.props)))}}var bZ={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:WM,xAxisId:0,yAxisId:0,zIndex:Dt.bar};function xZ(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:l,minPointSize:o,activeBar:u,animationBegin:f,animationDuration:d,animationEasing:h,isAnimationActive:p}=e,{needClip:y}=Ub(t,n),b=il(),S=sn(),w=Db(e.children,Ki),j=ye(A=>GX(A,e.id,S,w));if(b!=="vertical"&&b!=="horizontal")return null;var _,E=j==null?void 0:j[0];return E==null||E.height==null||E.width==null?_=0:_=b==="vertical"?E.height/2:E.width/2,x.createElement(zV,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:yZ,errorBarOffset:_},x.createElement(gZ,ga({},e,{layout:b,needClip:y,data:j,xAxisId:t,yAxisId:n,hide:r,legendType:l,minPointSize:o,activeBar:u,animationBegin:f,animationDuration:d,animationEasing:h,isAnimationActive:p})))}function wZ(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:l,bandSize:o,xAxis:u,yAxis:f,xAxisTicks:d,yAxisTicks:h,stackedData:p,displayedData:y,offset:b,cells:S,parentViewBox:w,dataStartIndex:j}=e,_=t==="horizontal"?f:u,E=p?_.scale.domain():null,A=HL({numericAxis:_}),T=_.scale.map(A);return y.map((C,P)=>{var M,D,I,V,X,te;if(p){var k=p[P+j];if(k==null)return null;M=BL(k,E)}else M=Je(C,n),Array.isArray(M)||(M=[A,M]);var se=TX(r,WM)(M[1],P);if(t==="horizontal"){var U,ne=f.scale.map(M[0]),L=f.scale.map(M[1]);if(ne==null||L==null)return null;D=G2({axis:u,ticks:d,bandSize:o,offset:l.offset,entry:C,index:P}),I=(U=L??ne)!==null&&U!==void 0?U:void 0,V=l.size;var Z=ne-L;if(X=gr(Z)?0:Z,te={x:D,y:b.top,width:V,height:b.height},Math.abs(se)>0&&Math.abs(X)<Math.abs(se)){var ie=Kt(X||se)*(Math.abs(se)-Math.abs(X));I-=ie,X+=ie}}else{var fe=u.scale.map(M[0]),de=u.scale.map(M[1]);if(fe==null||de==null)return null;if(D=fe,I=G2({axis:f,ticks:h,bandSize:o,offset:l.offset,entry:C,index:P}),V=de-fe,X=l.size,te={x:b.left,y:I,width:b.width,height:X},Math.abs(se)>0&&Math.abs(V)<Math.abs(se)){var R=Kt(V||se)*(Math.abs(se)-Math.abs(V));V+=R}}if(D==null||I==null||V==null||X==null)return null;var Y=cn(cn({},C),{},{stackedBarStart:T,x:D,y:I,width:V,height:X,value:p?M:M[1],payload:C,background:te,tooltipPosition:{x:D+V/2,y:I+X/2},parentViewBox:w},S&&S[P]&&S[P].props);return Y}).filter(Boolean)}function SZ(e){var t=kt(e,bZ),n=WX(t.stackId),r=sn();return x.createElement(Lb,{id:t.id,type:"bar"},l=>x.createElement(x.Fragment,null,x.createElement(EM,{legendPayload:sZ(t)}),x.createElement(uZ,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:l}),x.createElement(CM,{type:"bar",id:l,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),x.createElement(Nn,{zIndex:t.zIndex},x.createElement(xZ,ga({},t,{id:l})))))}var Tg=x.memo(SZ,Sh);Tg.displayName="Bar";var jZ=["domain","range"],_Z=["domain","range"];function mE(e,t){if(e==null)return{};var n,r,l=OZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function OZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pE(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function QM(e,t){if(e===t)return!0;var{domain:n,range:r}=e,l=mE(e,jZ),{domain:o,range:u}=t,f=mE(t,_Z);return!pE(n,o)||!pE(r,u)?!1:Sh(l,f)}var AZ=["type"],EZ=["dangerouslySetInnerHTML","ticks","scale"],NZ=["id","scale"];function Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mg.apply(null,arguments)}function vE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vE(Object(n),!0).forEach(function(r){CZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=MZ(e,"string");return typeof t=="symbol"?t:t+""}function MZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dg(e,t){if(e==null)return{};var n,r,l=DZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function DZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function PZ(e){var t=at(),n=x.useRef(null),r=v0(),{type:l}=e,o=Dg(e,AZ),u=lh(r,"xAxis",l),f=x.useMemo(()=>{if(u!=null)return yE(yE({},o),{},{type:u})},[o,u]);return x.useLayoutEffect(()=>{f!=null&&(n.current===null?t(dG(f)):n.current!==f&&t(hG({prev:n.current,next:f})),n.current=f)},[f,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(mG(n.current)),n.current=null)},[t]),null}var kZ=e=>{var{xAxisId:t,className:n}=e,r=ye(f0),l=sn(),o="xAxis",u=ye(E=>N5(E,o,t,l)),f=ye(E=>_5(E,t)),d=ye(E=>rq(E,t)),h=ye(E=>i5(E,t));if(f==null||d==null||h==null)return null;var{dangerouslySetInnerHTML:p,ticks:y,scale:b}=e,S=Dg(e,EZ),{id:w,scale:j}=h,_=Dg(h,NZ);return x.createElement($b,Mg({},S,_,{x:d.x,y:d.y,width:f.width,height:f.height,className:Ue("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u,axisType:o}))},RZ={allowDataOverflow:qt.allowDataOverflow,allowDecimals:qt.allowDecimals,allowDuplicatedCategory:qt.allowDuplicatedCategory,angle:qt.angle,axisLine:fa.axisLine,height:qt.height,hide:!1,includeHidden:qt.includeHidden,interval:qt.interval,label:!1,minTickGap:qt.minTickGap,mirror:qt.mirror,orientation:qt.orientation,padding:qt.padding,reversed:qt.reversed,scale:qt.scale,tick:qt.tick,tickCount:qt.tickCount,tickLine:fa.tickLine,tickSize:fa.tickSize,type:qt.type,xAxisId:0},zZ=e=>{var t=kt(e,RZ);return x.createElement(x.Fragment,null,x.createElement(PZ,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),x.createElement(kZ,t))},jf=x.memo(zZ,QM);jf.displayName="XAxis";var LZ=["type"],BZ=["dangerouslySetInnerHTML","ticks","scale"],IZ=["id","scale"];function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pg.apply(null,arguments)}function gE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function bE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gE(Object(n),!0).forEach(function(r){$Z(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Z(e,t,n){return(t=UZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UZ(e){var t=qZ(e,"string");return typeof t=="symbol"?t:t+""}function qZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kg(e,t){if(e==null)return{};var n,r,l=HZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function HZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function FZ(e){var t=at(),n=x.useRef(null),r=v0(),{type:l}=e,o=kg(e,LZ),u=lh(r,"yAxis",l),f=x.useMemo(()=>{if(u!=null)return bE(bE({},o),{},{type:u})},[u,o]);return x.useLayoutEffect(()=>{f!=null&&(n.current===null?t(pG(f)):n.current!==f&&t(vG({prev:n.current,next:f})),n.current=f)},[f,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(yG(n.current)),n.current=null)},[t]),null}function KZ(e){var{yAxisId:t,className:n,width:r,label:l}=e,o=x.useRef(null),u=x.useRef(null),f=ye(f0),d=sn(),h=at(),p="yAxis",y=ye(M=>O5(M,t)),b=ye(M=>iq(M,t)),S=ye(M=>N5(M,p,t,d)),w=ye(M=>l5(M,t));if(x.useLayoutEffect(()=>{if(!(r!=="auto"||!y||Nb(l)||x.isValidElement(l)||w==null)){var M=o.current;if(M){var D=M.getCalculatedWidth();Math.round(y.width)!==Math.round(D)&&h(gG({id:t,width:D}))}}},[S,y,h,l,t,r,w]),y==null||b==null||w==null)return null;var{dangerouslySetInnerHTML:j,ticks:_,scale:E}=e,A=kg(e,BZ),{id:T,scale:C}=w,P=kg(w,IZ);return x.createElement($b,Pg({},A,P,{ref:o,labelRef:u,x:b.x,y:b.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:y.width,height:y.height,className:Ue("recharts-".concat(p," ").concat(p),n),viewBox:f,ticks:S,axisType:p}))}var YZ={allowDataOverflow:Ht.allowDataOverflow,allowDecimals:Ht.allowDecimals,allowDuplicatedCategory:Ht.allowDuplicatedCategory,angle:Ht.angle,axisLine:fa.axisLine,hide:!1,includeHidden:Ht.includeHidden,interval:Ht.interval,label:!1,minTickGap:Ht.minTickGap,mirror:Ht.mirror,orientation:Ht.orientation,padding:Ht.padding,reversed:Ht.reversed,scale:Ht.scale,tick:Ht.tick,tickCount:Ht.tickCount,tickLine:fa.tickLine,tickSize:fa.tickSize,type:Ht.type,width:Ht.width,yAxisId:0},GZ=e=>{var t=kt(e,YZ);return x.createElement(x.Fragment,null,x.createElement(FZ,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),x.createElement(KZ,t))},_f=x.memo(GZ,QM);_f.displayName="YAxis";var VZ=(e,t)=>t,qb=H([VZ,Be,n5,Gt,K5,Aa,xH,Lt],EH),Hb=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},JM=or("mouseClick"),eD=uu();eD.startListening({actionCreator:JM,effect:(e,t)=>{var n=e.payload,r=qb(t.getState(),Hb(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(bq({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Rg=or("mouseMove"),tD=uu(),uf=null;tD.startListening({actionCreator:Rg,effect:(e,t)=>{var n=e.payload;uf!==null&&cancelAnimationFrame(uf);var r=Hb(n);uf=requestAnimationFrame(()=>{var l=t.getState(),o=vb(l,l.tooltip.settings.shared);if(o==="axis"){var u=qb(l,r);(u==null?void 0:u.activeIndex)!=null?t.dispatch(z5({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(R5())}uf=null})}});function XZ(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var xE={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},nD=En({name:"rootProps",initialState:xE,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:xE.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),ZZ=nD.reducer,{updateOptions:WZ}=nD.actions,QZ=null,JZ={updatePolarOptions:(e,t)=>t.payload},rD=En({name:"polarOptions",initialState:QZ,reducers:JZ}),{updatePolarOptions:eW}=rD.actions,tW=rD.reducer,aD=or("keyDown"),iD=or("focus"),Fb=uu();Fb.startListening({actionCreator:aD,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:l}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var u=yb(l,No(n),ju(n),Ou(n)),f=u==null?-1:Number(u);if(!(!Number.isFinite(f)||f<0)){var d=Aa(n);if(o==="Enter"){var h=md(n,"axis","hover",String(l.index));t.dispatch(wg({active:!l.active,activeIndex:l.index,activeCoordinate:h}));return}var p=uq(n),y=p==="left-to-right"?1:-1,b=o==="ArrowRight"?1:-1,S=f+b*y;if(!(d==null||S>=d.length||S<0)){var w=md(n,"axis","hover",String(S));t.dispatch(wg({active:!0,activeIndex:S.toString(),activeCoordinate:w}))}}}}}});Fb.startListening({actionCreator:iD,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:l}=n.tooltip;if(!l.active&&l.index==null){var o="0",u=md(n,"axis","hover",String(o));t.dispatch(wg({active:!0,activeIndex:o,activeCoordinate:u}))}}}});var rr=or("externalEvent"),lD=uu(),Ny=new Map;lD.startListening({actionCreator:rr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var l=r.type,o=Ny.get(l);o!==void 0&&cancelAnimationFrame(o);var u=requestAnimationFrame(()=>{try{var f=t.getState(),d={activeCoordinate:iH(f),activeDataKey:Sb(f),activeIndex:oi(f),activeLabel:V5(f),activeTooltipIndex:oi(f),isTooltipActive:lH(f)};n(d,r)}finally{Ny.delete(l)}});Ny.set(l,u)}}});var nW=H([Ao],e=>e.tooltipItemPayloads),rW=H([nW,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var{getPosition:l}=r;if(l!=null)return l(t)}}}),oD=or("touchMove"),sD=uu();sD.startListening({actionCreator:oD,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),l=vb(r,r.tooltip.settings.shared);if(l==="axis"){var o=n.touches[0];if(o==null)return;var u=qb(r,Hb({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(u==null?void 0:u.activeIndex)!=null&&t.dispatch(z5({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate}))}else if(l==="item"){var f,d=n.touches[0];if(document.elementFromPoint==null||d==null)return;var h=document.elementFromPoint(d.clientX,d.clientY);if(!h||!h.getAttribute)return;var p=h.getAttribute(EC),y=(f=h.getAttribute(NC))!==null&&f!==void 0?f:void 0,b=Eo(r).find(j=>j.id===y);if(p==null||b==null||y==null)return;var{dataKey:S}=b,w=rW(r,p,y);t.dispatch(k5({activeDataKey:S,activeIndex:p,activeCoordinate:w,activeGraphicalItemId:y}))}}}});var aW=VN({brush:zG,cartesianAxis:bG,chartData:aF,errorBars:TV,graphicalItems:AY,layout:PL,legend:IB,options:JH,polarAxis:$K,polarOptions:tW,referenceElements:$G,rootProps:ZZ,tooltip:xq,zIndex:UH}),iW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return aL({reducer:aW,preloadedState:t,middleware:r=>{var l;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((l="es6")!==null&&l!==void 0?l:"")}).concat([eD.middleware,tD.middleware,Fb.middleware,lD.middleware,sD.middleware])},enhancers:r=>{var l=r;return typeof r=="function"&&(l=r()),l.concat(uC({type:"raf"}))},devTools:{serialize:{replacer:XZ},name:"recharts-".concat(n)}})};function uD(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,l=sn(),o=x.useRef(null);if(l)return n;o.current==null&&(o.current=iW(t,r));var u=a0;return x.createElement(JV,{context:u,store:o.current},n)}function lW(e){var{layout:t,margin:n}=e,r=at(),l=sn();return x.useEffect(()=>{l||(r(TL(t)),r(CL(n)))},[r,l,t,n]),null}var cD=x.memo(lW,Sh);function fD(e){var t=at();return x.useEffect(()=>{t(WZ(e))},[t,e]),null}function wE(e){var{zIndex:t,isPanorama:n}=e,r=x.useRef(null),l=at();return x.useLayoutEffect(()=>(r.current&&l(IH({zIndex:t,element:r.current,isPanorama:n})),()=>{l($H({zIndex:t,isPanorama:n}))}),[l,t,n]),x.createElement("g",{tabIndex:-1,ref:r})}function SE(e){var{children:t,isPanorama:n}=e,r=ye(CH);if(!r||r.length===0)return t;var l=r.filter(u=>u<0),o=r.filter(u=>u>0);return x.createElement(x.Fragment,null,l.map(u=>x.createElement(wE,{key:u,zIndex:u,isPanorama:n})),t,o.map(u=>x.createElement(wE,{key:u,zIndex:u,isPanorama:n})))}var oW=["children"];function sW(e,t){if(e==null)return{};var n,r,l=uW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function uW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(null,arguments)}var cW={width:"100%",height:"100%",display:"block"},fW=x.forwardRef((e,t)=>{var n=m0(),r=p0(),l=KC();if(!Pr(n)||!Pr(r))return null;var{children:o,otherAttributes:u,title:f,desc:d}=e,h,p;return u!=null&&(typeof u.tabIndex=="number"?h=u.tabIndex:h=l?0:void 0,typeof u.role=="string"?p=u.role:p=l?"application":void 0),x.createElement(Gg,jd({},u,{title:f,desc:d,role:p,tabIndex:h,width:n,height:r,style:cW,ref:t}),o)}),dW=e=>{var{children:t}=e,n=ye(Gd);if(!n)return null;var{width:r,height:l,y:o,x:u}=n;return x.createElement(Gg,{width:r,height:l,x:u,y:o},t)},jE=x.forwardRef((e,t)=>{var{children:n}=e,r=sW(e,oW),l=sn();return l?x.createElement(dW,null,x.createElement(SE,{isPanorama:!0},n)):x.createElement(fW,jd({ref:t},r),x.createElement(SE,{isPanorama:!1},n))});function hW(){var e=at(),[t,n]=x.useState(null),r=ye(XL);return x.useEffect(()=>{if(t!=null){var l=t.getBoundingClientRect(),o=l.width/t.offsetWidth;Me(o)&&o!==r&&e(DL(o))}},[t,e,r]),n}function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function mW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_E(Object(n),!0).forEach(function(r){pW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pW(e,t,n){return(t=vW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vW(e){var t=yW(e,"string");return typeof t=="symbol"?t:t+""}function yW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(null,arguments)}var gW=()=>(hF(),null);function _d(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var bW=x.forwardRef((e,t)=>{var n,r,l=x.useRef(null),[o,u]=x.useState({containerWidth:_d((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:_d((r=e.style)===null||r===void 0?void 0:r.height)}),f=x.useCallback((h,p)=>{u(y=>{var b=Math.round(h),S=Math.round(p);return y.containerWidth===b&&y.containerHeight===S?y:{containerWidth:b,containerHeight:S}})},[]),d=x.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:p,height:y}=h.getBoundingClientRect();f(p,y);var b=w=>{var j=w[0];if(j!=null){var{width:_,height:E}=j.contentRect;f(_,E)}},S=new ResizeObserver(b);S.observe(h),l.current=S}},[t,f]);return x.useEffect(()=>()=>{var h=l.current;h!=null&&h.disconnect()},[f]),x.createElement(x.Fragment,null,x.createElement(fu,{width:o.containerWidth,height:o.containerHeight}),x.createElement("div",ai({ref:d},e)))}),xW=x.forwardRef((e,t)=>{var{width:n,height:r}=e,[l,o]=x.useState({containerWidth:_d(n),containerHeight:_d(r)}),u=x.useCallback((d,h)=>{o(p=>{var y=Math.round(d),b=Math.round(h);return p.containerWidth===y&&p.containerHeight===b?p:{containerWidth:y,containerHeight:b}})},[]),f=x.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null){var{width:h,height:p}=d.getBoundingClientRect();u(h,p)}},[t,u]);return x.createElement(x.Fragment,null,x.createElement(fu,{width:l.containerWidth,height:l.containerHeight}),x.createElement("div",ai({ref:f},e)))}),wW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return x.createElement(x.Fragment,null,x.createElement(fu,{width:n,height:r}),x.createElement("div",ai({ref:t},e)))}),SW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?x.createElement(xW,ai({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?x.createElement(wW,ai({},e,{width:n,height:r,ref:t})):x.createElement(x.Fragment,null,x.createElement(fu,{width:n,height:r}),x.createElement("div",ai({ref:t},e)))});function jW(e){return e?bW:SW}var _W=x.forwardRef((e,t)=>{var{children:n,className:r,height:l,onClick:o,onContextMenu:u,onDoubleClick:f,onMouseDown:d,onMouseEnter:h,onMouseLeave:p,onMouseMove:y,onMouseUp:b,onTouchEnd:S,onTouchMove:w,onTouchStart:j,style:_,width:E,responsive:A,dispatchTouchEvents:T=!0}=e,C=x.useRef(null),P=at(),[M,D]=x.useState(null),[I,V]=x.useState(null),X=hW(),te=d0(),k=(te==null?void 0:te.width)>0?te.width:E,se=(te==null?void 0:te.height)>0?te.height:l,U=x.useCallback(J=>{X(J),typeof t=="function"&&t(J),D(J),V(J),J!=null&&(C.current=J)},[X,t,D,V]),ne=x.useCallback(J=>{P(JM(J)),P(rr({handler:o,reactEvent:J}))},[P,o]),L=x.useCallback(J=>{P(Rg(J)),P(rr({handler:h,reactEvent:J}))},[P,h]),Z=x.useCallback(J=>{P(R5()),P(rr({handler:p,reactEvent:J}))},[P,p]),ie=x.useCallback(J=>{P(Rg(J)),P(rr({handler:y,reactEvent:J}))},[P,y]),fe=x.useCallback(()=>{P(iD())},[P]),de=x.useCallback(J=>{P(aD(J.key))},[P]),R=x.useCallback(J=>{P(rr({handler:u,reactEvent:J}))},[P,u]),Y=x.useCallback(J=>{P(rr({handler:f,reactEvent:J}))},[P,f]),oe=x.useCallback(J=>{P(rr({handler:d,reactEvent:J}))},[P,d]),ce=x.useCallback(J=>{P(rr({handler:b,reactEvent:J}))},[P,b]),pe=x.useCallback(J=>{P(rr({handler:j,reactEvent:J}))},[P,j]),xe=x.useCallback(J=>{T&&P(oD(J)),P(rr({handler:w,reactEvent:J}))},[P,T,w]),be=x.useCallback(J=>{P(rr({handler:S,reactEvent:J}))},[P,S]),et=jW(A);return x.createElement(nM.Provider,{value:M},x.createElement(fN.Provider,{value:I},x.createElement(et,{width:k??(_==null?void 0:_.width),height:se??(_==null?void 0:_.height),className:Ue("recharts-wrapper",r),style:mW({position:"relative",cursor:"default",width:k,height:se},_),onClick:ne,onContextMenu:R,onDoubleClick:Y,onFocus:fe,onKeyDown:de,onMouseDown:oe,onMouseEnter:L,onMouseLeave:Z,onMouseMove:ie,onMouseUp:ce,onTouchEnd:be,onTouchMove:xe,onTouchStart:pe,ref:U},x.createElement(gW,null),n)))}),OW=["width","height","responsive","children","className","style","compact","title","desc"];function AW(e,t){if(e==null)return{};var n,r,l=EW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function EW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dD=x.forwardRef((e,t)=>{var{width:n,height:r,responsive:l,children:o,className:u,style:f,compact:d,title:h,desc:p}=e,y=AW(e,OW),b=An(y);return d?x.createElement(x.Fragment,null,x.createElement(fu,{width:n,height:r}),x.createElement(jE,{otherAttributes:b,title:h,desc:p},o)):x.createElement(_W,{className:u,style:f,width:n,height:r,responsive:l??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},x.createElement(jE,{otherAttributes:b,title:h,desc:p,ref:t},x.createElement(qG,null,o)))});function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(null,arguments)}var NW={top:5,right:5,bottom:5,left:5},CW={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:NW,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},hD=x.forwardRef(function(t,n){var r,l=kt(t.categoricalChartProps,CW),{chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,categoricalChartProps:h}=t,p={chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return x.createElement(uD,{preloadedState:{options:p},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},x.createElement(DM,{chartData:h.data}),x.createElement(cD,{layout:l.layout,margin:l.margin}),x.createElement(fD,{baseValue:l.baseValue,accessibilityLayer:l.accessibilityLayer,barCategoryGap:l.barCategoryGap,maxBarSize:l.maxBarSize,stackOffset:l.stackOffset,barGap:l.barGap,barSize:l.barSize,syncId:l.syncId,syncMethod:l.syncMethod,className:l.className,reverseStackOrder:l.reverseStackOrder}),x.createElement(dD,zg({},l,{ref:n})))}),TW=["axis","item"],OE=x.forwardRef((e,t)=>x.createElement(hD,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:TW,tooltipPayloadSearcher:Eb,categoricalChartProps:e,ref:t}));function MW(e){var t=at();return x.useEffect(()=>{t(eW(e))},[t,e]),null}var DW=["layout"];function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(null,arguments)}function PW(e,t){if(e==null)return{};var n,r,l=kW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function kW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var RW={top:5,right:5,bottom:5,left:5},mD={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:RW,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},zW=x.forwardRef(function(t,n){var r,l=kt(t.categoricalChartProps,mD),{layout:o}=l,u=PW(l,DW),{chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p}=t,y={chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p,eventEmitter:void 0};return x.createElement(uD,{preloadedState:{options:y},reduxStoreName:(r=l.id)!==null&&r!==void 0?r:f},x.createElement(DM,{chartData:l.data}),x.createElement(cD,{layout:o,margin:l.margin}),x.createElement(fD,{baseValue:void 0,accessibilityLayer:l.accessibilityLayer,barCategoryGap:l.barCategoryGap,maxBarSize:l.maxBarSize,stackOffset:l.stackOffset,barGap:l.barGap,barSize:l.barSize,syncId:l.syncId,syncMethod:l.syncMethod,className:l.className,reverseStackOrder:l.reverseStackOrder}),x.createElement(MW,{cx:l.cx,cy:l.cy,startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius}),x.createElement(dD,Lg({},u,{ref:n})))});function AE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function EE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AE(Object(n),!0).forEach(function(r){LW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LW(e,t,n){return(t=BW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BW(e){var t=IW(e,"string");return typeof t=="symbol"?t:t+""}function IW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $W=["item"],UW=EE(EE({},mD),{},{layout:"centric",startAngle:0,endAngle:360}),NE=x.forwardRef((e,t)=>{var n=kt(e,UW);return x.createElement(zW,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:$W,tooltipPayloadSearcher:Eb,categoricalChartProps:n,ref:t})}),qW=["axis"],HW=x.forwardRef((e,t)=>x.createElement(hD,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:qW,tooltipPayloadSearcher:Eb,categoricalChartProps:e,ref:t}));const cf=({title:e,value:t,icon:n,colorClass:r,trend:l})=>m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] flex flex-col justify-between hover:translate-y-[-4px] transition-all duration-300 h-full relative overflow-hidden group border-0",children:[m.jsx("div",{className:`absolute -right-6 -top-6 w-32 h-32 ${r} opacity-10 rounded-full group-hover:scale-125 transition-transform duration-500 blur-2xl`}),m.jsxs("div",{className:"flex justify-between items-start mb-6",children:[m.jsx("div",{className:`p-4 rounded-2xl ${r} bg-opacity-10 backdrop-blur-sm`,children:m.jsx(n,{className:`w-6 h-6 ${r.replace("bg-","text-")}`})}),l&&m.jsxs("span",{className:"text-xs font-bold text-black bg-[#FFE815] px-3 py-1.5 rounded-full flex items-center gap-1 shadow-sm",children:[m.jsx(r4,{className:"w-3 h-3"})," ",l]})]}),m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-3xl font-extrabold text-gray-900 tracking-tight font-feature-settings-tnum",children:t}),m.jsx("p",{className:"text-gray-500 text-sm font-medium mt-1",children:e})]})]}),CE=()=>{var se;const[e,t]=x.useState(null),[n,r]=x.useState(null),[l,o]=x.useState("7days"),[u,f]=x.useState(""),[d,h]=x.useState(""),[p,y]=x.useState(null),[b,S]=x.useState([]),[w,j]=x.useState(""),[_,E]=x.useState([]),[A,T]=x.useState([]),[C,P]=x.useState([]),M=U=>{const ne=new Date,L=ne.getFullYear(),Z=String(ne.getMonth()+1).padStart(2,"0"),ie=String(ne.getDate()).padStart(2,"0"),fe=`${L}-${Z}-${ie}`;let de;switch(U){case"today":de={start_date:fe,end_date:fe};break;case"yesterday":const Y=new Date(ne);Y.setDate(Y.getDate()-1);const oe=Y.getFullYear(),ce=String(Y.getMonth()+1).padStart(2,"0"),pe=String(Y.getDate()).padStart(2,"0"),xe=`${oe}-${ce}-${pe}`;de={start_date:xe,end_date:xe};break;case"3days":const be=new Date(ne);be.setDate(be.getDate()-3);const et=be.getFullYear(),J=String(be.getMonth()+1).padStart(2,"0"),_e=String(be.getDate()).padStart(2,"0");de={start_date:`${et}-${J}-${_e}`,end_date:fe};break;case"7days":const Ae=new Date(ne);Ae.setDate(Ae.getDate()-7);const ue=Ae.getFullYear(),ut=String(Ae.getMonth()+1).padStart(2,"0"),q=String(Ae.getDate()).padStart(2,"0");de={start_date:`${ue}-${ut}-${q}`,end_date:fe};break;case"30days":const Se=new Date(ne);Se.setDate(Se.getDate()-30);const Fe=Se.getFullYear(),Cn=String(Se.getMonth()+1).padStart(2,"0"),Ir=String(Se.getDate()).padStart(2,"0");de={start_date:`${Fe}-${Cn}-${Ir}`,end_date:fe};break;case"custom":if(u&&d)de={start_date:u,end_date:d};else{const Tn=new Date(ne);Tn.setDate(Tn.getDate()-7);const wt=Tn.getFullYear(),sl=String(Tn.getMonth()+1).padStart(2,"0"),di=String(Tn.getDate()).padStart(2,"0");de={start_date:`${wt}-${sl}-${di}`,end_date:fe}}break;default:const le=new Date(ne);le.setDate(le.getDate()-7);const Le=le.getFullYear(),Ve=String(le.getMonth()+1).padStart(2,"0"),At=String(le.getDate()).padStart(2,"0");de={start_date:`${Le}-${Ve}-${At}`,end_date:fe}}const R=D(U,ne);R&&Sj(R).then(y).catch(console.error),Sj(de).then(r).catch(console.error)},D=(U,ne)=>{switch(ne.getFullYear(),String(ne.getMonth()+1).padStart(2,"0"),String(ne.getDate()).padStart(2,"0"),U){case"today":const L=new Date(ne);L.setDate(L.getDate()-1);const Z=L.getFullYear(),ie=String(L.getMonth()+1).padStart(2,"0"),fe=String(L.getDate()).padStart(2,"0");return{start_date:`${Z}-${ie}-${fe}`,end_date:`${Z}-${ie}-${fe}`};case"yesterday":const de=new Date(ne);de.setDate(de.getDate()-2);const R=de.getFullYear(),Y=String(de.getMonth()+1).padStart(2,"0"),oe=String(de.getDate()).padStart(2,"0");return{start_date:`${R}-${Y}-${oe}`,end_date:`${R}-${Y}-${oe}`};case"7days":const ce=new Date(ne);ce.setDate(ce.getDate()-7);const pe=new Date(ce);return pe.setDate(pe.getDate()-7),{start_date:`${pe.getFullYear()}-${String(pe.getMonth()+1).padStart(2,"0")}-${String(pe.getDate()).padStart(2,"0")}`,end_date:`${ce.getFullYear()}-${String(ce.getMonth()+1).padStart(2,"0")}-${String(ce.getDate()).padStart(2,"0")}`};case"30days":const xe=new Date(ne);xe.setDate(xe.getDate()-30);const be=new Date(xe);return be.setDate(be.getDate()-30),{start_date:`${be.getFullYear()}-${String(be.getMonth()+1).padStart(2,"0")}-${String(be.getDate()).padStart(2,"0")}`,end_date:`${xe.getFullYear()}-${String(xe.getMonth()+1).padStart(2,"0")}-${String(xe.getDate()).padStart(2,"0")}`};default:return null}},I=()=>{if(!n||!p)return null;const U=n.revenue_stats.total_amount,ne=p.revenue_stats.total_amount;if(ne===0)return U>0?"+100%":"0%";const L=(U-ne)/ne*100;return`${L>=0?"+":""}${L.toFixed(1)}%`};x.useEffect(()=>{n6().then(t).catch(console.error),M(l)},[l]),x.useEffect(()=>{const{startDate:U,endDate:ne}=V(l);fetch(`http://localhost:8080/reports/transactions?page=1&page_size=20&start_date=${U}&end_date=${ne}`,{credentials:"include"}).then(L=>L.json()).then(L=>{S(L.transactions||[])}).catch(console.error),fetch(`http://localhost:8080/reports/categories?start_date=${U}&end_date=${ne}`,{credentials:"include"}).then(L=>L.json()).then(L=>{const Z=L.categories||[];E(Z);const ie=Z.slice(0,5).map(fe=>({name:fe.name.length>10?fe.name.substring(0,10)+"...":fe.name,sales:Math.floor(Math.random()*100)+20,amount:fe.value}));T(ie)}).catch(console.error),P([{name:"直接访问",value:45,color:"#FFE815"},{name:"搜索",value:30,color:"#000000"},{name:"推荐",value:15,color:"#9CA3AF"},{name:"其他",value:10,color:"#E5E7EB"}])},[l]);const V=U=>{const ne=new Date,L=ne.toISOString().split("T")[0];let Z=L;if(U==="7days"){const ie=new Date(ne);ie.setDate(ie.getDate()-7),Z=ie.toISOString().split("T")[0]}else if(U==="30days"){const ie=new Date(ne);ie.setDate(ie.getDate()-30),Z=ie.toISOString().split("T")[0]}return{startDate:Z,endDate:L}};if(!e||!n)return m.jsx("div",{className:"p-8 flex justify-center text-gray-400",children:m.jsx(tk,{className:"w-8 h-8 animate-spin text-[#FFE815]"})});const X=((se=n.daily_stats)==null?void 0:se.map(U=>({name:U.date.slice(5),amount:U.amount,orders:U.order_count,avgAmount:U.order_count>0?(U.amount/U.order_count).toFixed(2):0})))||[],te=[{key:"today",label:"今天"},{key:"yesterday",label:"昨天"},{key:"3days",label:"三天内"},{key:"7days",label:"7天内"},{key:"30days",label:"一个月内"},{key:"custom",label:"自定义"}],k=["#FFE815","#3B82F6","#10B981","#F59E0B","#8B5CF6"];return m.jsxs("div",{className:"space-y-8 animate-fade-in",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between md:items-end gap-4",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"运营概览"}),m.jsx("p",{className:"text-gray-500 mt-2 text-base",children:"欢迎回来，以下是闲鱼店铺的实时经营数据。"})]}),m.jsx("div",{className:"flex items-center gap-3",children:m.jsxs("div",{className:"text-sm font-bold text-gray-700 bg-white px-5 py-2.5 rounded-full shadow-sm border border-gray-100 flex items-center gap-2",children:[m.jsx("span",{className:"w-2.5 h-2.5 bg-green-500 rounded-full animate-pulse"}),"系统正常运行"]})})]}),m.jsxs("div",{className:"flex flex-wrap gap-2 p-2 bg-gray-100/50 rounded-2xl",children:[te.map(U=>m.jsx("button",{onClick:()=>o(U.key),className:`px-5 py-2.5 rounded-xl text-sm font-bold transition-all ${l===U.key?"bg-[#FFE815] text-black shadow-md":"bg-white text-gray-600 hover:text-black hover:bg-gray-50"}`,children:U.label},U.key)),l==="custom"&&m.jsxs(m.Fragment,{children:[m.jsx("input",{type:"date",value:u,onChange:U=>f(U.target.value),className:"px-3 py-2 rounded-xl text-sm border border-gray-200 focus:outline-none focus:ring-2 focus:ring-[#FFE815]"}),m.jsx("span",{className:"self-center text-gray-400",children:"-"}),m.jsx("input",{type:"date",value:d,onChange:U=>h(U.target.value),className:"px-3 py-2 rounded-xl text-sm border border-gray-200 focus:outline-none focus:ring-2 focus:ring-[#FFE815]"}),m.jsx("button",{onClick:()=>M("custom"),className:"px-4 py-2 rounded-xl text-sm font-bold bg-black text-white hover:bg-gray-800 transition-colors",children:"应用"})]})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[m.jsx(cf,{title:"累计营收 (CNY)",value:`¥${n.revenue_stats.total_amount.toLocaleString("zh-CN",{minimumFractionDigits:2})}`,icon:yk,colorClass:"bg-yellow-400",trend:I()||void 0}),m.jsx(cf,{title:"活跃账号 / 总数",value:`${e.active_cookies} / ${e.total_cookies}`,icon:IE,colorClass:"bg-blue-500"}),m.jsx(cf,{title:"订单数",value:n.revenue_stats.total_orders.toLocaleString(),icon:aj,colorClass:"bg-orange-500"}),m.jsx(cf,{title:"库存卡密余量",value:e.total_cards,icon:zE,colorClass:"bg-purple-500"})]}),m.jsxs("div",{className:"ios-card p-8 rounded-[2rem]",children:[m.jsxs("div",{className:"mb-10",children:[m.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"营收趋势分析"}),m.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"最近7天的销售额走势"})]}),m.jsx("div",{className:"h-[350px] w-full",children:X.length===0||n.revenue_stats.total_amount===0?m.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-400",children:[m.jsx(aj,{className:"w-16 h-16 mb-4 opacity-20"}),m.jsx("p",{className:"text-lg font-medium",children:"暂无营收数据"}),m.jsx("p",{className:"text-sm mt-2",children:"所选时间范围内暂无订单记录"})]}):X.length<=2?m.jsx(Os,{width:"100%",height:"100%",children:m.jsxs(OE,{data:X,margin:{top:30,right:20,left:-20,bottom:30},barCategoryGap:30,children:[m.jsx(jf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#374151",fontSize:14,fontWeight:600},dy:10}),m.jsx(_f,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},tickFormatter:U=>`¥${U}`}),m.jsx(fy,{contentStyle:{backgroundColor:"#1F2937",borderRadius:"16px",border:"none",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3)",padding:"12px 16px"},itemStyle:{color:"#FFE815",fontWeight:600},formatter:U=>`营收: ¥${Number(U).toFixed(2)}`}),m.jsx(Tg,{dataKey:"amount",fill:"#FFE815",radius:[12,12,0,0],stroke:"#000000",strokeWidth:0,children:X.map((U,ne)=>m.jsx(Ki,{fill:["#FFE815","#FCD34D","#FBBF24"][ne%3]},`cell-${ne}`))})]})}):m.jsx(Os,{width:"100%",height:"100%",children:m.jsxs(HW,{data:X,margin:{top:10,right:10,left:-20,bottom:0},children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"colorAmount",x1:"0",y1:"0",x2:"0",y2:"1",children:[m.jsx("stop",{offset:"5%",stopColor:"#FFE815",stopOpacity:.5}),m.jsx("stop",{offset:"95%",stopColor:"#FFE815",stopOpacity:0})]})}),m.jsx(jf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},dy:15}),m.jsx(_f,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500}}),m.jsx(Eg,{vertical:!1,stroke:"#F3F4F6",strokeDasharray:"3 3"}),m.jsx(fy,{contentStyle:{background:"#1A1A1A",borderRadius:"16px",border:"none",boxShadow:"0 10px 40px rgba(0,0,0,0.2)"},itemStyle:{color:"#FFE815",fontWeight:600},labelStyle:{color:"#888"},cursor:{stroke:"#FFE815",strokeWidth:2,strokeDasharray:"4 4"}}),m.jsx(GM,{type:"monotone",dataKey:"amount",stroke:"#FACC15",strokeWidth:4,fillOpacity:1,fill:"url(#colorAmount)",activeDot:{r:8,fill:"#1A1A1A",stroke:"#FFE815",strokeWidth:2}})]})})})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[m.jsxs("div",{className:"ios-card p-6 rounded-[2rem]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"商品销量排行"}),m.jsx("div",{className:"h-[280px]",children:A.length===0?m.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:"暂无数据"}):m.jsx(Os,{width:"100%",height:"100%",children:m.jsxs(OE,{data:A,layout:"vertical",children:[m.jsx(Eg,{strokeDasharray:"3 3",horizontal:!0,vertical:!1,stroke:"#f0f0f0"}),m.jsx(jf,{type:"number",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:12}}),m.jsx(_f,{type:"category",dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#6B7280",fontSize:12},width:100}),m.jsx(fy,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"}}),m.jsx(Tg,{dataKey:"sales",fill:"#000000",radius:[0,8,8,0]})]})})})]}),m.jsxs("div",{className:"ios-card p-6 rounded-[2rem]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"订单来源分布"}),m.jsx("div",{className:"h-[280px]",children:m.jsx(Os,{width:"100%",height:"100%",children:m.jsxs(NE,{children:[m.jsx(Ag,{data:C,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",label:({name:U,percent:ne})=>`${U} ${(ne*100).toFixed(0)}%`,labelLine:!1,children:C.map((U,ne)=>m.jsx(Ki,{fill:U.color},`cell-${ne}`))}),m.jsx(FC,{verticalAlign:"bottom",height:36,iconType:"circle",formatter:U=>m.jsx("span",{style:{color:"#6B7280",fontWeight:500},children:U})})]})})})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[m.jsxs("div",{className:"lg:col-span-2 ios-card p-0 rounded-[2rem] border-0 bg-white overflow-hidden flex flex-col",children:[m.jsxs("div",{className:"p-6 border-b border-gray-50 flex justify-between items-center bg-[#FAFAFA]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900",children:"收支明细"}),m.jsx("div",{className:"relative",children:m.jsx("input",{placeholder:"搜索流水号或商品...",value:w,onChange:U=>j(U.target.value),className:"pl-4 pr-4 py-2 rounded-xl bg-white border border-gray-100 text-sm focus:border-yellow-400 outline-none w-48",type:"text"})})]}),m.jsx("div",{className:"overflow-x-auto flex-1 max-h-[400px]",children:b.filter(U=>U.id.toLowerCase().includes(w.toLowerCase())||U.item_name&&U.item_name.toLowerCase().includes(w.toLowerCase())).length===0?m.jsx("div",{className:"flex items-center justify-center py-20 text-gray-400",children:"暂无数据"}):m.jsxs("table",{className:"w-full text-left",children:[m.jsx("thead",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50 sticky top-0",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-6 py-4",children:"时间 / 流水号"}),m.jsx("th",{className:"px-6 py-4",children:"关联商品"}),m.jsx("th",{className:"px-6 py-4",children:"归属账号"}),m.jsx("th",{className:"px-6 py-4",children:"渠道"}),m.jsx("th",{className:"px-6 py-4 text-right",children:"金额"}),m.jsx("th",{className:"px-6 py-4 text-center",children:"状态"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:b.filter(U=>U.id.toLowerCase().includes(w.toLowerCase())||U.item_name&&U.item_name.toLowerCase().includes(w.toLowerCase())).map(U=>m.jsxs("tr",{className:"hover:bg-gray-50 transition-colors",children:[m.jsxs("td",{className:"px-6 py-4",children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm",children:U.date}),m.jsx("div",{className:"text-xs text-gray-400 font-mono mt-0.5",children:U.id})]}),m.jsx("td",{className:"px-6 py-4",children:m.jsx("div",{className:"text-sm text-gray-700 font-medium truncate max-w-[180px]",title:U.item_name,children:U.item_name||"未知商品"})}),m.jsx("td",{className:"px-6 py-4",children:m.jsx("div",{className:"text-xs bg-gray-100 text-gray-500 px-2 py-1 rounded-md inline-block font-medium",children:U.account_name})}),m.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:U.payment_method}),m.jsxs("td",{className:"px-6 py-4 text-right font-extrabold text-gray-900 font-mono",children:["+",(U.amount||0).toFixed(2)]}),m.jsx("td",{className:"px-6 py-4 text-center",children:m.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${U.status==="completed"?"bg-green-500":"bg-yellow-500"}`})})]},U.id))})]})})]}),m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] bg-white",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"品类营收占比"}),_.length===0?m.jsx("div",{className:"flex items-center justify-center h-[300px] text-gray-400",children:"暂无数据"}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"h-[300px] relative",children:m.jsx(Os,{width:"100%",height:"100%",children:m.jsx(NE,{children:m.jsx(Ag,{data:_,cx:"50%",cy:"50%",innerRadius:60,outerRadius:100,paddingAngle:2,dataKey:"value",children:_.map((U,ne)=>m.jsx(Ki,{fill:U.color||k[ne%k.length]},`cell-${ne}`))})})})}),m.jsx("div",{className:"space-y-3 mt-4",children:_.map(U=>m.jsxs("div",{className:"flex justify-between items-center text-sm",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:U.color||k[_.indexOf(U)%k.length]}}),m.jsx("span",{className:"text-gray-600 font-medium",children:U.name})]}),m.jsxs("span",{className:"font-bold text-gray-900",children:[U.percentage,"%"]})]},U.name))})]})]})]})]})},FW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(!0),[l,o]=x.useState(!1),[u,f]=x.useState(""),[d,h]=x.useState("pending"),[p,y]=x.useState(null),[b,S]=x.useState(null),[w,j]=x.useState({remark:"",cookie:"",auto_confirm:!1,pause_duration:0,username:"",login_password:"",show_browser:!1,showLoginPassword:!1}),[_,E]=x.useState({ai_enabled:!1,max_discount_percent:10,max_discount_amount:100,max_bargain_rounds:3,custom_prompts:""}),[A,T]=x.useState(!1),C=async()=>{r(!0);try{const k=await Kg();let se={};try{se=await WR()}catch(ne){console.error("Failed to load AI settings:",ne)}const U=k.map(ne=>{var L,Z,ie,fe,de;return{...ne,ai_enabled:((L=se[ne.id])==null?void 0:L.ai_enabled)??!1,max_discount_percent:((Z=se[ne.id])==null?void 0:Z.max_discount_percent)??10,max_discount_amount:((ie=se[ne.id])==null?void 0:ie.max_discount_amount)??100,max_bargain_rounds:((fe=se[ne.id])==null?void 0:fe.max_bargain_rounds)??3,custom_prompts:((de=se[ne.id])==null?void 0:de.custom_prompts)??""}});t(U)}catch(k){console.error("Failed to load accounts:",k)}finally{r(!1)}};x.useEffect(()=>{C()},[]);const P=async(k,se)=>{await FR(k,!se),C()},M=async k=>{confirm("确认删除该账号吗？")&&(await KR(k),C())},D=k=>{S(k),j({remark:k.remark||k.note||"",cookie:k.cookie||k.value||"",auto_confirm:k.auto_confirm||!1,pause_duration:k.pause_duration||0,username:k.username||"",login_password:k.login_password||"",show_browser:k.show_browser||!1,showLoginPassword:!1}),y("edit")},I=async k=>{S(k),T(!0);try{const se=await h6(k.id);E({ai_enabled:se.ai_enabled??!1,max_discount_percent:se.max_discount_percent??10,max_discount_amount:se.max_discount_amount??100,max_bargain_rounds:se.max_bargain_rounds??3,custom_prompts:se.custom_prompts??""})}catch(se){console.error("Failed to load AI settings:",se)}finally{T(!1)}y("ai-settings")},V=async()=>{if(b){T(!0);try{const k=[];w.remark!==(b.remark||b.note||"")&&k.push(YR(b.id,w.remark)),w.cookie&&w.cookie!==(b.cookie||b.value||"")&&k.push(XR(b.id,w.cookie)),w.auto_confirm!==b.auto_confirm&&k.push(GR(b.id,w.auto_confirm)),w.pause_duration!==(b.pause_duration||0)&&k.push(VR(b.id,w.pause_duration)),(w.username!==(b.username||"")||w.login_password!==(b.login_password||"")||w.show_browser!==(b.show_browser||!1))&&k.push(ZR(b.id,{username:w.username,login_password:w.login_password,show_browser:w.show_browser})),await Promise.all(k),y(null),C()}catch(k){console.error("更新账号失败:",k),alert("更新失败，请重试")}finally{T(!1)}}},X=async()=>{if(b){T(!0);try{await m6(b.id,_),y(null),C()}catch(k){console.error("更新AI设置失败:",k),alert("更新失败，请重试")}finally{T(!1)}}},te=async()=>{o(!0),h("loading");try{const k=await qR();if(k.success&&k.qr_code_url&&k.session_id){f(k.qr_code_url),h("waiting");const se=setInterval(async()=>{const U=await HR(k.session_id);U.status==="success"?(clearInterval(se),h("success"),setTimeout(()=>{o(!1),C()},1e3)):(U.status==="expired"||U.status==="error")&&(clearInterval(se),h("error"))},2e3)}}catch{h("error")}};return n?m.jsx("div",{className:"p-20 flex justify-center",children:m.jsx(Ri,{className:"w-8 h-8 text-[#FFE815] animate-spin"})}):m.jsxs("div",{className:"space-y-8 animate-fade-in relative",children:[m.jsxs("div",{className:"flex justify-between items-end",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"账号管理"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"管理您的闲鱼授权账号及设置。"})]}),m.jsxs("button",{onClick:te,className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 transition-transform hover:scale-105 active:scale-95",children:[m.jsx(Hk,{className:"w-5 h-5"}),"扫码添加新账号"]})]}),m.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.map(k=>m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] flex items-center justify-between group hover:border-[#FFE815] transition-all duration-300",children:[m.jsxs("div",{className:"flex items-center gap-8",children:[m.jsxs("div",{className:"relative",children:[m.jsx("img",{src:k.avatar_url,alt:"avatar",className:"w-20 h-20 rounded-3xl object-cover shadow-md ring-4 ring-white"}),m.jsx("div",{className:`absolute -bottom-1 -right-1 w-6 h-6 rounded-full border-4 border-white flex items-center justify-center ${k.enabled?"bg-green-500":"bg-gray-300"}`,children:k.enabled&&m.jsx(qp,{className:"w-3 h-3 text-white"})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("h3",{className:"text-xl font-extrabold text-gray-900",children:k.nickname||k.remark||`账号 ${k.id.substring(0,6)}...`}),k.enabled?m.jsx("span",{className:"px-2.5 py-0.5 rounded-lg bg-green-100 text-green-700 text-xs font-bold",children:"在线"}):m.jsx("span",{className:"px-2.5 py-0.5 rounded-lg bg-gray-100 text-gray-500 text-xs font-bold",children:"暂停"}),k.ai_enabled&&m.jsxs("span",{className:"px-2.5 py-0.5 rounded-lg bg-purple-100 text-purple-700 text-xs font-bold flex items-center gap-1",children:[m.jsx(la,{className:"w-3 h-3"})," AI"]})]}),m.jsx("p",{className:"text-sm text-gray-500 font-medium mb-3",children:k.remark||k.note||"暂无备注"}),m.jsxs("div",{className:"flex gap-2",children:[k.auto_confirm&&m.jsxs("span",{className:"text-xs bg-yellow-50 text-yellow-700 px-3 py-1.5 rounded-lg font-bold flex items-center gap-1.5",children:[m.jsx(aa,{className:"w-3 h-3"})," 自动回复"]}),k.pause_duration>0&&m.jsxs("span",{className:"text-xs bg-blue-50 text-blue-700 px-3 py-1.5 rounded-lg font-bold flex items-center gap-1.5",children:[m.jsx(JS,{className:"w-3 h-3"})," 暂停",k.pause_duration,"分钟"]})]})]})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>D(k),className:"p-3 rounded-xl hover:bg-gray-100 transition-colors text-gray-600",title:"编辑账号",children:m.jsx(df,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>I(k),className:"p-3 rounded-xl hover:bg-purple-100 transition-colors text-purple-600",title:"AI设置",children:m.jsx(la,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>P(k.id,k.enabled),className:`p-3 rounded-xl transition-colors ${k.enabled?"text-green-600 hover:bg-green-50":"text-gray-400 hover:bg-gray-100"}`,children:m.jsx(hf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>M(k.id),className:"p-3 rounded-xl hover:bg-red-100 transition-colors text-red-500",children:m.jsx(ro,{className:"w-5 h-5"})})]})]},k.id)),e.length===0&&m.jsxs("div",{className:"ios-card p-12 text-center",children:[m.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:m.jsx(BE,{className:"w-10 h-10 text-gray-400"})}),m.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"暂无账号"}),m.jsx("p",{className:"text-gray-500 mt-1",children:"请点击右上角扫码添加您的闲鱼账号"})]})]}),l&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"24rem"},children:[m.jsx("button",{onClick:()=>o(!1),className:"self-end p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors mb-6",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})}),m.jsx("div",{className:"modal-body",children:m.jsxs("div",{className:"text-center",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900 mb-2",children:"扫码登录"}),m.jsx("p",{className:"text-gray-500 mb-8 font-medium",children:"请打开闲鱼APP扫描下方二维码"}),m.jsxs("div",{className:"w-64 h-64 bg-[#F7F8FA] rounded-[2rem] mx-auto flex items-center justify-center overflow-hidden border-4 border-white shadow-inner mb-8 relative",children:[d==="loading"&&m.jsx(Ri,{className:"w-10 h-10 text-[#FFE815] animate-spin"}),d==="waiting"&&m.jsx("img",{src:u,alt:"QR Code",className:"w-full h-full p-2"}),d==="success"&&m.jsxs("div",{className:"absolute inset-0 bg-white/95 flex flex-col items-center justify-center text-green-600 animate-fade-in",children:[m.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:m.jsx(qp,{className:"w-8 h-8"})}),m.jsx("span",{className:"font-bold text-lg",children:"登录成功"})]}),d==="error"&&m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("span",{className:"text-red-500 font-bold mb-2",children:"获取失败"}),m.jsxs("button",{onClick:te,className:"text-xs bg-gray-200 px-3 py-1 rounded-full flex items-center gap-1 hover:bg-gray-300",children:[m.jsx(Gi,{className:"w-3 h-3"})," 重试"]})]})]}),m.jsx("p",{className:"text-xs text-gray-400 font-medium bg-gray-50 py-2 rounded-xl",children:"二维码有效期为5分钟，请尽快扫码。"})]})})]})}),document.body),p==="edit"&&b&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"600px"},children:[m.jsxs("div",{className:"modal-header",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑账号"}),m.jsx("p",{className:"text-sm text-gray-500 mt-1",children:b.nickname||b.remark||b.id})]}),m.jsx("button",{onClick:()=>y(null),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"账号ID"}),m.jsx("input",{type:"text",value:b.id,disabled:!0,className:"w-full ios-input px-4 py-3 rounded-xl bg-gray-50 text-gray-500"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注"}),m.jsx("input",{type:"text",value:w.remark,onChange:k=>j({...w,remark:k.target.value}),placeholder:"为账号添加备注",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Cookie"}),m.jsx("textarea",{value:w.cookie,onChange:k=>j({...w,cookie:k.target.value}),placeholder:"更新账号Cookie",className:"w-full ios-input px-4 py-3 rounded-xl h-32 resize-none font-mono text-xs"}),m.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["当前Cookie长度: ",w.cookie.length," 字符"]})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"font-bold text-gray-900 flex items-center gap-2",children:[m.jsx(qp,{className:"w-4 h-4 text-green-500"}),"自动确认收货"]}),m.jsx("div",{className:"text-xs text-gray-500",children:"自动点击确认收货按钮"})]}),m.jsx("button",{type:"button",onClick:()=>j({...w,auto_confirm:!w.auto_confirm}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${w.auto_confirm?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${w.auto_confirm?"translate-x-7":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2 flex items-center gap-2",children:[m.jsx(JS,{className:"w-4 h-4 text-blue-500"}),"暂停处理时长（分钟）"]}),m.jsx("input",{type:"number",value:w.pause_duration,onChange:k=>j({...w,pause_duration:parseInt(k.target.value)||0}),placeholder:"0",min:"0",max:"1440",className:"w-full ios-input px-4 py-3 rounded-xl"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"设置后会暂停处理该账号的订单，到时间后自动恢复"})]}),m.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[m.jsxs("h3",{className:"text-lg font-bold text-gray-900 mb-4 flex items-center gap-2",children:[m.jsx(ff,{className:"w-5 h-5 text-amber-500"}),"登录信息"]}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"用户名"}),m.jsx("input",{type:"text",value:w.username,onChange:k=>j({...w,username:k.target.value}),placeholder:"闲鱼账号/手机号",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"登录密码"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:w.showLoginPassword?"text":"password",value:w.login_password,onChange:k=>j({...w,login_password:k.target.value}),placeholder:"用于自动登录",className:"w-full ios-input px-4 py-3 rounded-xl pr-12"}),m.jsx("button",{type:"button",onClick:()=>j({...w,showLoginPassword:!w.showLoginPassword}),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:w.showLoginPassword?m.jsx(Cy,{className:"w-5 h-5"}):m.jsx(Of,{className:"w-5 h-5"})})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"登录时显示浏览器"}),m.jsx("div",{className:"text-xs text-gray-500",children:"调试时可开启查看登录过程"})]}),m.jsx("button",{type:"button",onClick:()=>j({...w,show_browser:!w.show_browser}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${w.show_browser?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${w.show_browser?"translate-x-7":"translate-x-1"}`})})]})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>y(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:A,children:"取消"}),m.jsxs("button",{onClick:V,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:A,children:[A?m.jsx(Ri,{className:"w-4 h-4 animate-spin"}):m.jsx(ni,{className:"w-4 h-4"}),A?"保存中...":"保存"]})]})})]})}),document.body),p==="ai-settings"&&b&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"600px"},children:[m.jsxs("div",{className:"modal-header",children:[m.jsxs("div",{children:[m.jsxs("h3",{className:"text-2xl font-extrabold text-gray-900 flex items-center gap-2",children:[m.jsx(la,{className:"w-6 h-6 text-purple-500"}),"AI助手设置"]}),m.jsx("p",{className:"text-sm text-gray-500 mt-1",children:b.nickname||b.remark||b.id})]}),m.jsx("button",{onClick:()=>y(null),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between p-4 bg-purple-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"font-bold text-gray-900 flex items-center gap-2",children:[m.jsx(la,{className:"w-4 h-4 text-purple-500"}),"启用AI自动回复"]}),m.jsx("div",{className:"text-xs text-gray-500",children:"AI将自动处理买家的砍价消息"})]}),m.jsx("button",{type:"button",onClick:()=>E({..._,ai_enabled:!_.ai_enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${_.ai_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${_.ai_enabled?"translate-x-7":"translate-x-1"}`})})]}),m.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[m.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"砍价策略"}),m.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大折扣比例 (%)"}),m.jsx("input",{type:"number",value:_.max_discount_percent,onChange:k=>E({..._,max_discount_percent:parseInt(k.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",max:"100"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"例如：10表示最多降价10%"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大折扣金额 (元)"}),m.jsx("input",{type:"number",value:_.max_discount_amount,onChange:k=>E({..._,max_discount_amount:parseInt(k.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"例如：100表示最多降价100元"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大砍价轮次"}),m.jsx("input",{type:"number",value:_.max_bargain_rounds,onChange:k=>E({..._,max_bargain_rounds:parseInt(k.target.value)||1}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"10"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"买家最多可以砍价的次数"})]})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"自定义提示词（可选）"}),m.jsx("textarea",{value:_.custom_prompts,onChange:k=>E({..._,custom_prompts:k.target.value}),placeholder:`输入自定义的AI回复规则或风格指引...

例如：回复时保持礼貌专业、使用简洁的语言、强调产品质量等`,className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none"})]}),m.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[m.jsxs("h4",{className:"font-bold text-blue-900 mb-2 flex items-center gap-2",children:[m.jsx(Bg,{className:"w-4 h-4"}),"AI如何工作"]}),m.jsxs("ul",{className:"text-xs text-blue-800 space-y-1",children:[m.jsx("li",{children:"• 自动识别买家的砍价请求"}),m.jsx("li",{children:"• 根据设定的策略智能回复"}),m.jsx("li",{children:"• 在合理范围内同意降价或礼貌拒绝"}),m.jsx("li",{children:"• 保持专业友好的沟通风格"})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>y(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:A,children:"取消"}),m.jsxs("button",{onClick:X,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:A,children:[A?m.jsx(Ri,{className:"w-4 h-4 animate-spin"}):m.jsx(ni,{className:"w-4 h-4"}),A?"保存中...":"保存"]})]})})]})}),document.body)]})},TE=({status:e})=>{const t={processing:"bg-yellow-100 text-yellow-800",pending_ship:"bg-[#FFE815] text-black",shipped:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",cancelled:"bg-gray-100 text-gray-500",refunding:"bg-red-100 text-red-600"},n={processing:"处理中",pending_ship:"待发货",shipped:"已发货",completed:"已完成",cancelled:"已取消",refunding:"退款中"};return m.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${t[e]||t.cancelled}`,children:n[e]||e})},KW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState([]),[l,o]=x.useState([]),[u,f]=x.useState({}),[d,h]=x.useState("all"),[p,y]=x.useState(""),[b,S]=x.useState(1),[w,j]=x.useState(1),[_,E]=x.useState(!1),[A,T]=x.useState(!1),[C,P]=x.useState(!1),[M,D]=x.useState(!1),[I,V]=x.useState(null),[X,te]=x.useState(null),[k,se]=x.useState({}),[U,ne]=x.useState(""),[L,Z]=x.useState(!1),[ie,fe]=x.useState(""),[de,R]=x.useState(!1),[Y,oe]=x.useState(null),[ce,pe]=x.useState(null),[xe,be]=x.useState({order_id:"",item_id:"",buyer_id:"",receiver_name:"",receiver_phone:"",receiver_address:"",status:"pending_ship",quantity:1,amount:""}),et=le=>{if(!p.trim())return le;const Le=p.toLowerCase().trim();return le.filter(Ve=>{var At,Tn,wt,sl,di,Co;return((At=Ve.order_id)==null?void 0:At.toLowerCase().includes(Le))||((Tn=Ve.item_id)==null?void 0:Tn.toLowerCase().includes(Le))||((wt=Ve.buyer_id)==null?void 0:wt.toLowerCase().includes(Le))||((sl=Ve.item_title)==null?void 0:sl.toLowerCase().includes(Le))||((di=Ve.receiver_name)==null?void 0:di.toLowerCase().includes(Le))||((Co=Ve.receiver_phone)==null?void 0:Co.toLowerCase().includes(Le))})},J=async()=>{E(!0);try{if(p.trim()){let le=[],Le=1,Ve=!0;for(;Ve;){const At=await wj(void 0,d,Le,100);le=[...le,...At.data],Ve=Le<At.total_pages,Le++}r(le),t(et(le)),j(1)}else{const le=await wj(void 0,d,b,20);r(le.data),t(et(le.data)),j(le.total_pages)}}catch(le){console.error("加载订单失败:",le)}finally{E(!1)}};x.useEffect(()=>{t(et(n))},[n,p]);const _e=(le,Le)=>{if(Le&&Le.trim())return Le;if(u[le])return u[le];const Ve=l.find(At=>{if(Le&&At.item_title){const Tn=Le.toLowerCase(),wt=At.item_title.toLowerCase();return wt.includes(Tn)||Tn.includes(wt)}return!1});return Ve!=null&&Ve.item_title?Ve.item_title:"未知商品"},Ae=()=>{const le={};l.forEach(Le=>{Le.item_id&&(le[Le.item_id]=Le.item_title||Le.item_id)}),f(le)};x.useEffect(()=>{J(),ky().then(le=>{o(le),Ae()}).catch(le=>{console.error("加载商品列表失败:",le)})},[d,b,p]);const ue=async()=>{E(!0),await JR(),J()},ut=le=>{fe(le),oe(null),Z(!0)},q=async le=>{var Le;R(!0),oe(null);try{const Ve=await e6([ie],le),At=(Le=Ve==null?void 0:Ve.results)==null?void 0:Le[0];At!=null&&At.success?(oe({success:!0,message:At.message}),J()):oe({success:!1,message:(At==null?void 0:At.message)||"发货失败"})}catch(Ve){oe({success:!1,message:(Ve==null?void 0:Ve.message)||"请求失败"})}finally{R(!1)}},Se=le=>{V(le),T(!0)},Fe=le=>{te({...le}),P(!0)},Cn=async()=>{if(!(!X||!X.order_id))try{const le={};X.status!==void 0&&(le.order_status=X.status),X.buyer_id!==void 0&&(le.buyer_id=X.buyer_id),X.amount!==void 0&&(le.amount=X.amount),X.receiver_name!==void 0&&(le.receiver_name=X.receiver_name),X.receiver_phone!==void 0&&(le.receiver_phone=X.receiver_phone),X.receiver_address!==void 0&&(le.receiver_address=X.receiver_address),X.item_id!==void 0&&(le.item_id=X.item_id),X.quantity!==void 0&&(le.quantity=X.quantity),await QR(X.order_id,le),P(!1),te(null),J()}catch(le){console.error("更新订单失败:",le),alert("更新失败，请重试")}},Ir=async()=>{try{const le=JSON.parse(U);await t6(Array.isArray(le)?le:[le]),D(!1),ne(""),J(),alert("订单导入成功")}catch{alert("导入失败，请检查JSON格式")}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between md:items-end gap-4",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"订单中心"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"查看所有闲鱼交易记录与状态。"})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:J,className:"p-3 rounded-2xl bg-white border border-gray-100 text-gray-600 hover:bg-gray-50 hover:text-black transition-colors shadow-sm",children:m.jsx(Gi,{className:`w-5 h-5 ${_?"animate-spin":""}`})}),m.jsxs("button",{onClick:()=>D(!0),className:"px-5 py-3 rounded-2xl font-bold bg-gray-900 text-white hover:bg-gray-800 transition-colors text-sm flex items-center gap-2 shadow-lg",children:[m.jsx(Is,{className:"w-4 h-4"}),"插入订单"]}),m.jsxs("button",{onClick:ue,className:"ios-btn-primary px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 text-sm flex items-center gap-2",children:[m.jsx(Jl,{className:"w-5 h-5"}),"一键同步订单"]})]})]}),m.jsxs("div",{className:"ios-card rounded-[2rem] overflow-hidden shadow-lg border-0 bg-white",children:[m.jsxs("div",{className:"p-4 border-b border-gray-50 flex flex-col md:flex-row gap-4 justify-between items-center bg-[#FAFAFA]",children:[m.jsx("div",{className:"flex gap-1 p-1 bg-gray-200/50 rounded-xl overflow-x-auto max-w-full",children:[{k:"all",v:"全部"},{k:"pending_ship",v:"待发货"},{k:"shipped",v:"已发货"},{k:"refunding",v:"售后"}].map(le=>m.jsx("button",{onClick:()=>{h(le.k),S(1),y("")},className:`px-5 py-2 rounded-lg text-sm font-bold transition-all whitespace-nowrap ${d===le.k?"bg-white text-black shadow-sm":"text-gray-500 hover:text-gray-700"}`,children:le.v},le.k))}),m.jsxs("div",{className:"relative w-full md:w-auto group",children:[m.jsx(Gk,{className:"w-4 h-4 absolute left-4 top-1/2 -translate-y-1/2 text-gray-400 group-focus-within:text-[#FFE815] transition-colors"}),m.jsx("input",{type:"text",placeholder:"搜索订单号/商品/买家...",value:p,onChange:le=>{y(le.target.value),S(1)},className:"ios-input pl-10 pr-4 py-2.5 rounded-xl w-64 bg-white border-none shadow-sm focus:ring-0"})]})]}),m.jsx("div",{className:"overflow-x-auto min-h-[400px]",children:m.jsxs("table",{className:"w-full text-left border-collapse",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50",children:[m.jsx("th",{className:"px-8 py-5 w-1/3",children:"订单信息"}),m.jsx("th",{className:"px-6 py-5",children:"买家信息"}),m.jsx("th",{className:"px-6 py-5",children:"实付金额"}),m.jsx("th",{className:"px-6 py-5",children:"当前状态"}),m.jsx("th",{className:"px-6 py-5 text-right",children:"操作"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:e.map(le=>m.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[m.jsx("td",{className:"px-8 py-5",children:m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-14 h-14 rounded-xl bg-gray-100 overflow-hidden shadow-sm border border-gray-100 flex-shrink-0",children:le.item_image?m.jsx("img",{src:le.item_image,alt:"",className:"w-full h-full object-cover"}):m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-300",children:m.jsx(rj,{})})}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"font-bold text-gray-900 line-clamp-1 text-sm",children:_e(le.item_id,le.item_title)}),m.jsxs("div",{className:"text-xs text-gray-500 mt-1 font-medium",children:["订单ID: ",le.order_id]}),m.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["数量: ",le.quantity," • ",le.created_at]})]})]})}),m.jsx("td",{className:"px-6 py-5",children:m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsx("div",{className:"text-xs text-gray-500",children:"买家ID"}),m.jsx("div",{className:"text-sm font-bold text-gray-800",children:le.buyer_id}),le.receiver_name&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"收货人"}),m.jsx("div",{className:"text-xs text-gray-600",children:le.receiver_name})]}),le.receiver_phone&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"联系电话"}),m.jsx("div",{className:"text-xs text-gray-600 font-mono",children:le.receiver_phone})]}),le.receiver_address&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"收货地址"}),m.jsx("div",{className:"text-xs text-gray-600 line-clamp-1",children:le.receiver_address})]})]})}),m.jsxs("td",{className:"px-6 py-5 text-base font-extrabold text-gray-900 font-feature-settings-tnum",children:["¥",le.amount]}),m.jsx("td",{className:"px-6 py-5",children:m.jsx(TE,{status:le.status})}),m.jsxs("td",{className:"px-6 py-5 text-right",children:[le.status==="pending_ship"&&m.jsx("button",{onClick:()=>ut(le.order_id),className:"mr-2 text-white bg-black hover:bg-gray-800 shadow-lg shadow-gray-200 text-xs font-bold px-3 py-2 rounded-xl transition-all active:scale-95",children:"立即发货"}),m.jsx("button",{onClick:()=>Se(le),className:"mr-2 text-gray-400 hover:text-blue-600 p-2 rounded-xl hover:bg-blue-50 transition-colors",title:"查看详情",children:m.jsx(Of,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>Fe(le),className:"text-gray-400 hover:text-black p-2 rounded-xl hover:bg-gray-100 transition-colors",title:"编辑订单",children:m.jsx(Ig,{className:"w-4 h-4"})})]})]},le.id))})]})}),m.jsxs("div",{className:"p-4 border-t border-gray-50 flex items-center justify-between bg-white",children:[m.jsxs("div",{className:"text-sm text-gray-500 font-medium pl-2",children:["第 ",b," 页 / 共 ",w," 页"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{disabled:b<=1,onClick:()=>S(le=>le-1),className:"p-2.5 rounded-xl bg-gray-50 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed text-gray-600 transition-colors",children:m.jsx(sk,{className:"w-5 h-5"})}),m.jsx("button",{disabled:b>=w,onClick:()=>S(le=>le+1),className:"p-2.5 rounded-xl bg-gray-50 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed text-gray-600 transition-colors",children:m.jsx(ck,{className:"w-5 h-5"})})]})]})]}),A&&I&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"订单详情"}),m.jsx("button",{onClick:()=>T(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"订单信息"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"订单号"}),m.jsx("div",{className:"font-mono text-sm font-bold text-gray-900",children:I.order_id})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"状态"}),m.jsx(TE,{status:I.status})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"实付金额"}),m.jsxs("div",{className:"text-lg font-extrabold text-gray-900",children:["¥",I.amount]})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"数量"}),m.jsx("div",{className:"font-bold text-gray-900",children:I.quantity})]}),m.jsxs("div",{className:"col-span-2",children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"创建时间"}),m.jsx("div",{className:"text-sm font-medium text-gray-700",children:I.created_at})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"商品信息"}),m.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl flex items-center gap-4",children:[I.item_image&&m.jsx("img",{src:I.item_image,alt:"",className:"w-20 h-20 rounded-xl object-cover border border-gray-200"}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"font-bold text-gray-900 mb-1",children:_e(I.item_id,I.item_title)}),m.jsxs("div",{className:"text-sm text-gray-500",children:["商品ID: ",I.item_id]}),I.item_price&&m.jsxs("div",{className:"text-sm text-gray-500 mt-1",children:["标价: ¥",I.item_price]})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"买家信息"}),m.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl space-y-3",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"买家ID"}),m.jsx("div",{className:"font-bold text-gray-900",children:I.buyer_id})]}),I.receiver_name&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"收货人"}),m.jsx("div",{className:"font-medium text-gray-700",children:I.receiver_name})]}),I.receiver_phone&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"联系电话"}),m.jsx("div",{className:"font-mono text-sm text-gray-700",children:I.receiver_phone})]}),I.receiver_address&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"收货地址"}),m.jsx("div",{className:"text-sm text-gray-700",children:I.receiver_address})]})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>T(!1),className:"flex-1 px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:"关闭"}),I.status==="pending_ship"&&m.jsx("button",{onClick:()=>{T(!1),ut(I.order_id)},className:"flex-1 px-6 py-3 rounded-xl ios-btn-primary font-bold shadow-lg shadow-yellow-200",children:"立即发货"})]})})]})}),document.body),M&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"插入订单"}),m.jsx("button",{onClick:()=>D(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-5",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"选择Excel文件"}),m.jsx("input",{type:"file",accept:".xlsx,.xls",onChange:le=>{var Le;return pe(((Le=le.target.files)==null?void 0:Le[0])||null)},className:"w-full ios-input px-4 py-3 rounded-xl text-sm"}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持 .xlsx 和 .xls 格式"})]}),ce&&m.jsx("div",{className:"p-3 bg-blue-50 rounded-xl",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(l4,{className:"w-4 h-4 text-blue-600"}),m.jsx("span",{className:"text-sm font-medium text-blue-900",children:ce.name})]})})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>D(!1),className:"flex-1 px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:"取消"}),m.jsx("button",{onClick:Ir,disabled:!ce,className:"flex-1 px-6 py-3 rounded-xl ios-btn-primary font-bold shadow-lg shadow-yellow-200 disabled:opacity-50",children:"导入订单"})]})})]})}),document.body),L&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"480px"},children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"立即发货"}),m.jsx("button",{onClick:()=>{Z(!1),oe(null)},className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-4",children:[m.jsx("p",{className:"text-sm text-gray-600",children:"请选择发货方式："}),m.jsx("button",{onClick:()=>q("status_only"),disabled:de,className:"w-full text-left p-4 rounded-xl border-2 border-gray-200 hover:border-gray-400 hover:bg-gray-50 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center flex-shrink-0 mt-0.5",children:m.jsx(Jl,{className:"w-5 h-5 text-blue-600"})}),m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm",children:"仅修改闲鱼发货状态"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 leading-relaxed",children:'不实际扣除或发送卡券，仅在闲鱼平台将订单标记为"已发货"。 适用于已经给客户发过货、只是忘记在闲鱼修改状态的情况。'})]})]})}),m.jsx("button",{onClick:()=>q("full_delivery"),disabled:de,className:"w-full text-left p-4 rounded-xl border-2 border-gray-200 hover:border-[#FFE815] hover:bg-yellow-50 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx("div",{className:"w-10 h-10 rounded-xl bg-yellow-100 flex items-center justify-center flex-shrink-0 mt-0.5",children:m.jsx(rj,{className:"w-5 h-5 text-yellow-700"})}),m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm",children:"完整发货（匹配卡券并发送）"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 leading-relaxed",children:"自动匹配发货规则、获取卡券、发送卡券信息给买家，并修改发货状态。 适用于订单既没有发送卡券给买家、也没有修改发货状态的情况。"})]})]})}),de&&m.jsxs("div",{className:"flex items-center justify-center gap-2 py-3",children:[m.jsx(Gi,{className:"w-4 h-4 animate-spin text-gray-500"}),m.jsx("span",{className:"text-sm text-gray-500",children:"正在处理中..."})]}),Y&&m.jsxs("div",{className:`p-3 rounded-xl text-sm ${Y.success?"bg-green-50 text-green-800":"bg-red-50 text-red-800"}`,children:[Y.success?"✓ ":"✗ ",Y.message]})]}),m.jsx("div",{className:"modal-footer",children:m.jsx("button",{onClick:()=>{Z(!1),oe(null)},className:"w-full px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:Y!=null&&Y.success?"完成":"取消"})})]})}),document.body),C&&X&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑订单"}),m.jsx("button",{onClick:()=>P(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-5",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"订单号"}),m.jsx("input",{type:"text",value:X.order_id,disabled:!0,className:"w-full ios-input px-4 py-3 rounded-xl bg-gray-50 text-gray-500"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"订单状态"}),m.jsxs("select",{value:X.status,onChange:le=>te({...X,status:le.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"processing",children:"处理中"}),m.jsx("option",{value:"pending_ship",children:"待发货"}),m.jsx("option",{value:"shipped",children:"已发货"}),m.jsx("option",{value:"completed",children:"已完成"}),m.jsx("option",{value:"cancelled",children:"已取消"}),m.jsx("option",{value:"refunding",children:"退款中"})]})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"买家ID"}),m.jsx("input",{type:"text",value:X.buyer_id,onChange:le=>te({...X,buyer_id:le.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"实付金额"}),m.jsx("input",{type:"number",value:X.amount,onChange:le=>te({...X,amount:parseFloat(le.target.value)}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"收货人"}),m.jsx("input",{type:"text",value:X.receiver_name||"",onChange:le=>te({...X,receiver_name:le.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"联系电话"}),m.jsx("input",{type:"text",value:X.receiver_phone||"",onChange:le=>te({...X,receiver_phone:le.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"收货地址"}),m.jsx("textarea",{value:X.receiver_address||"",onChange:le=>te({...X,receiver_address:le.target.value}),rows:2,className:"w-full ios-input px-4 py-3 rounded-xl resize-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"商品标题"}),m.jsx("input",{type:"text",value:X.item_title||"",onChange:le=>te({...X,item_title:le.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>P(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:Cn,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(ni,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body)]})},YW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(!1),[l,o]=x.useState(!1),[u,f]=x.useState(null),[d,h]=x.useState({}),[p,y]=x.useState({name:"",type:"text",content:"",description:"",enabled:!0,delay_seconds:0});x.useEffect(()=>{Wl().then(t)},[]);const b=({type:A})=>{switch(A){case"text":return m.jsx(tj,{className:"w-5 h-5 text-blue-500"});case"image":return m.jsx(nj,{className:"w-5 h-5 text-purple-500"});case"api":return m.jsx(ej,{className:"w-5 h-5 text-orange-500"});default:return m.jsx(RE,{className:"w-5 h-5 text-gray-500"})}},S=A=>{var T,C,P,M,D;f(A),h({id:A.id,name:A.name||"",type:A.type||"text",api_url:((T=A.api_config)==null?void 0:T.url)||"",api_method:((C=A.api_config)==null?void 0:C.method)||"GET",api_timeout:((P=A.api_config)==null?void 0:P.timeout)||10,api_headers:((M=A.api_config)==null?void 0:M.headers)||"",api_params:((D=A.api_config)==null?void 0:D.params)||"",text_content:A.text_content||"",data_content:A.data_content||"",image_url:A.image_url||"",delay_seconds:A.delay_seconds||0,description:A.description||"",is_multi_spec:A.is_multi_spec||!1,spec_name:A.spec_name||"",spec_value:A.spec_value||"",enabled:A.enabled}),r(!0)},w=async()=>{var A,T,C,P,M,D,I,V;if(u){if(!((A=d.name)!=null&&A.trim())){alert("请输入卡密名称");return}if(!d.type){alert("请选择卡密类型");return}try{const X={name:d.name.trim(),type:d.type,description:(T=d.description)==null?void 0:T.trim(),delay_seconds:d.delay_seconds||0,enabled:d.enabled??!0,is_multi_spec:d.is_multi_spec,spec_name:d.spec_name,spec_value:d.spec_value};d.type==="api"?X.api_config={url:(C=d.api_url)==null?void 0:C.trim(),method:d.api_method,timeout:d.api_timeout||10,headers:((P=d.api_headers)==null?void 0:P.trim())||void 0,params:((M=d.api_params)==null?void 0:M.trim())||void 0}:d.type==="text"?X.text_content=((D=d.text_content)==null?void 0:D.trim())||"":d.type==="data"?X.data_content=((I=d.data_content)==null?void 0:I.trim())||"":d.type==="image"&&(X.image_url=((V=d.image_url)==null?void 0:V.trim())||""),await jj(u.id,X),r(!1),Wl().then(t)}catch(X){console.error("更新卡密失败:",X),alert("更新失败，请重试")}}},j=async A=>{if(confirm("确认删除该卡密吗？"))try{await a6(A),Wl().then(t)}catch(T){console.error("删除卡密失败:",T),alert("删除失败，请重试")}},_=async()=>{try{await r6(p),o(!1),y({name:"",type:"text",content:"",description:"",enabled:!0,delay_seconds:0}),Wl().then(t)}catch(A){console.error("添加卡密失败:",A),alert("添加失败，请重试")}},E=async A=>{try{await jj(A.id,{...A,enabled:!A.enabled}),Wl().then(t)}catch(T){console.error("切换状态失败:",T)}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"卡密库存"}),m.jsx("p",{className:"text-gray-500 mt-2 text-sm",children:"管理自动发货的卡密、链接或图片资源。"})]}),m.jsxs("button",{onClick:()=>o(!0),className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 transition-transform hover:scale-105 active:scale-95",children:[m.jsx(Is,{className:"w-5 h-5"}),"添加新卡密"]})]}),m.jsxs("div",{className:"ios-card rounded-[2rem] overflow-hidden shadow-lg border-0 bg-white",children:[m.jsx("div",{className:"overflow-x-auto",children:m.jsxs("table",{className:"w-full text-left border-collapse",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50",children:[m.jsx("th",{className:"px-8 py-5 w-[15%]",children:"卡密名称"}),m.jsx("th",{className:"px-6 py-5 w-[12%]",children:"类型"}),m.jsx("th",{className:"px-6 py-5 w-[25%]",children:"内容/库存"}),m.jsx("th",{className:"px-6 py-5 w-[20%]",children:"描述"}),m.jsx("th",{className:"px-6 py-5 w-[10%]",children:"状态"}),m.jsx("th",{className:"px-6 py-5 w-[10%] text-right",children:"操作"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:e.map(A=>{let T="";return A.type==="data"&&A.data_content?T=`库存: ${A.data_content.split(`
`).filter(P=>P.trim()).length} 条`:A.type==="text"&&A.text_content?T=A.text_content.substring(0,20)+(A.text_content.length>20?"...":""):A.type==="api"&&A.api_config?T=A.api_config.url:A.type==="image"&&A.text_content&&(T="图片链接"),m.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[m.jsx("td",{className:"px-8 py-5",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"p-2 bg-gray-50 rounded-xl group-hover:bg-white transition-colors",children:m.jsx(b,{type:A.type})}),m.jsx("span",{className:"font-bold text-gray-900",children:A.name})]})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${A.type==="text"?"bg-blue-50 text-blue-600":A.type==="data"?"bg-purple-50 text-purple-600":A.type==="api"?"bg-orange-50 text-orange-600":"bg-pink-50 text-pink-600"}`,children:A.type==="text"?"文本":A.type==="data"?"批量":A.type==="api"?"API":"图片"})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:"text-sm text-gray-600 font-mono block truncate",title:T,children:T})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:"text-sm text-gray-500 block max-w-[200px] truncate",title:A.description||"-",children:A.description||"-"})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("button",{onClick:()=>E(A),className:`w-12 h-8 rounded-full relative transition-colors ${A.enabled?"bg-green-500":"bg-gray-300"}`,children:m.jsx("div",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-sm transition-transform ${A.enabled?"left-5":"left-1"}`})})}),m.jsx("td",{className:"px-6 py-5",children:m.jsxs("div",{className:"flex items-center justify-end gap-2",children:[m.jsx("button",{onClick:()=>S(A),className:"p-2 text-gray-400 hover:text-black hover:bg-gray-100 rounded-xl transition-colors",title:"编辑",children:m.jsx(Ig,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>j(A.id),className:"p-2 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-xl transition-colors",children:m.jsx(ro,{className:"w-5 h-5"})})]})})]},A.id)})})]})}),e.length===0&&m.jsxs("div",{className:"py-20 text-center text-gray-400",children:[m.jsx(zE,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),m.jsx("p",{children:"暂无卡密配置，请点击右上角添加。"})]})]}),n&&u&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑卡密"}),m.jsx("button",{onClick:()=>r(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsx("div",{className:"modal-body",children:m.jsxs("div",{className:"space-y-5",children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:["卡密名称 ",m.jsx("span",{className:"text-red-500",children:"*"})]}),m.jsx("input",{type:"text",value:d.name||"",onChange:A=>h({...d,name:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：游戏点卡、会员卡等"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡券类型"}),m.jsxs("select",{value:d.type||"text",onChange:A=>h({...d,type:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"",children:"请选择类型"}),m.jsx("option",{value:"text",children:"固定文字"}),m.jsx("option",{value:"data",children:"批量数据"}),m.jsx("option",{value:"api",children:"API接口"}),m.jsx("option",{value:"image",children:"图片"})]})]})]}),d.type==="api"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900",children:"API 配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"API 地址"}),m.jsx("input",{type:"url",value:d.api_url||"",onChange:A=>h({...d,api_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://api.example.com/get-card"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求方法"}),m.jsxs("select",{value:d.api_method||"GET",onChange:A=>h({...d,api_method:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"GET",children:"GET"}),m.jsx("option",{value:"POST",children:"POST"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"超时时间（秒）"}),m.jsx("input",{type:"number",value:d.api_timeout||10,onChange:A=>h({...d,api_timeout:parseInt(A.target.value)||10}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"60"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求头（JSON 格式）"}),m.jsx("textarea",{value:d.api_headers||"",onChange:A=>h({...d,api_headers:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none font-mono text-sm",placeholder:'{"Authorization": "Bearer token"}'})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求参数（JSON 格式）"}),m.jsx("textarea",{value:d.api_params||"",onChange:A=>h({...d,api_params:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none font-mono text-sm",placeholder:'{"type": "card", "count": 1}'})]})]}),d.type==="text"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"固定文字配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"文字内容"}),m.jsx("textarea",{value:d.text_content||"",onChange:A=>h({...d,text_content:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-32 resize-none",placeholder:"请输入要发送的固定文字内容..."})]})]}),d.type==="data"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"批量数据配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"数据内容（一行一个）"}),m.jsx("textarea",{value:d.data_content||"",onChange:A=>h({...d,data_content:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-80 resize-none font-mono text-sm",placeholder:`请输入数据，每行一个：
卡号1:密码1
卡号2:密码2
或者
兑换码1
兑换码2`}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持格式：卡号:密码 或 单独的兑换码"}),m.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存：",m.jsx("span",{className:"font-bold text-amber-600",children:d.data_content?d.data_content.split(`
`).filter(A=>A.trim()).length:0})," 条"]})]})]}),d.type==="image"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"图片配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片 URL"}),m.jsx("input",{type:"url",value:d.image_url||"",onChange:A=>h({...d,image_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://example.com/image.png"}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"输入图片卡密的 URL 地址"})]}),d.image_url&&m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片预览"}),m.jsx("img",{src:d.image_url,alt:"预览",className:"max-w-full max-h-48 rounded-xl border border-gray-200",onError:A=>{A.currentTarget.src="https://via.placeholder.com/400x200?text=图片加载失败"}})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货时间（秒）"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"number",value:d.delay_seconds||0,onChange:A=>h({...d,delay_seconds:parseInt(A.target.value)||0}),className:"flex-1 ios-input px-4 py-3 rounded-xl",min:"0",max:"3600",placeholder:"0"}),m.jsx("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:"秒"})]}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"0表示立即发货，最大3600秒（1小时）"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注信息"}),m.jsx("textarea",{value:d.description||"",onChange:A=>h({...d,description:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none",placeholder:"可选的备注信息"})]}),m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("input",{type:"checkbox",id:"edit-isMultiSpec",checked:d.is_multi_spec||!1,onChange:A=>h({...d,is_multi_spec:A.target.checked}),className:"w-4 h-4 rounded"}),m.jsx("label",{htmlFor:"edit-isMultiSpec",className:"font-bold text-gray-900",children:"多规格卡券"})]}),m.jsx("p",{className:"text-xs text-gray-500 mb-3",children:"开启后可以为同一商品的不同规格创建不同的卡券"}),d.is_multi_spec&&m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"规格名称"}),m.jsx("input",{type:"text",value:d.spec_name||"",onChange:A=>h({...d,spec_name:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：套餐类型、颜色、尺寸"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"规格值"}),m.jsx("input",{type:"text",value:d.spec_value||"",onChange:A=>h({...d,spec_value:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：30天、红色、XL"})]})]})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsx("span",{className:"font-bold text-gray-900",children:"启用状态"}),m.jsx("button",{type:"button",onClick:()=>h({...d,enabled:!d.enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${d.enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 block ${d.enabled?"translate-x-7":"translate-x-1"}`})})]})]})}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>r(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:w,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(ni,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body),l&&fn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"添加新卡密"}),m.jsx("button",{onClick:()=>o(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsx("div",{className:"flex-1 overflow-y-auto -mr-2 pr-2",children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡密名称"}),m.jsx("input",{type:"text",value:p.name,onChange:A=>y({...p,name:A.target.value}),placeholder:"例如：VIP会员卡密",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"类型"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"text"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="text"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(tj,{className:"w-5 h-5 mx-auto mb-1"}),"文本"]}),m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"image"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="image"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(nj,{className:"w-5 h-5 mx-auto mb-1"}),"图片"]}),m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"api"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="api"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(ej,{className:"w-5 h-5 mx-auto mb-1"}),"API"]})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:p.type==="text"?"卡密内容（一行一个）":p.type==="image"?"图片URL（一行一个）":"API地址"}),p.type==="api"?m.jsx("input",{type:"text",value:p.content,onChange:A=>y({...p,content:A.target.value}),placeholder:"https://api.example.com/get-code",className:"w-full ios-input px-4 py-3 rounded-xl"}):m.jsx("textarea",{value:p.content,onChange:A=>y({...p,content:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none font-mono text-sm",placeholder:p.type==="text"?`CODE-123456
CODE-789012
...`:`https://example.com/image1.jpg
https://example.com/image2.jpg
...`})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"描述"}),m.jsx("textarea",{value:p.description,onChange:A=>y({...p,description:A.target.value}),placeholder:"卡密用途描述",className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货（秒）"}),m.jsx("input",{type:"number",value:p.delay_seconds,onChange:A=>y({...p,delay_seconds:parseInt(A.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",placeholder:"0"})]})]})}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>o(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:_,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(Is,{className:"w-4 h-4"}),"添加卡密"]})]})})]})}),document.body)]})},GW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState([]),[l,o]=x.useState(""),[u,f]=x.useState(!1),[d,h]=x.useState(!1),[p,y]=x.useState(!1),[b,S]=x.useState(null),[w,j]=x.useState({}),[_,E]=x.useState({cookie_id:"",item_id:"",item_title:"",item_price:"",item_image:"",is_multi_spec:!1,is_multi_qty_ship:!1});x.useEffect(()=>{Kg().then(r),ky().then(t)},[]);const A=async()=>{if(!l)return alert("请先选择账号");f(!0),await i6(l),ky().then(t),f(!1)},T=D=>{S(D),j({...D}),h(!0)},C=async D=>{if(confirm(`确认删除商品"${D.item_title}"吗？`))try{const I=e.filter(V=>!(V.cookie_id===D.cookie_id&&V.item_id===D.item_id));t(I)}catch(I){console.error("删除商品失败:",I),alert("删除失败，请重试")}},P=async D=>{try{const I=e.map(V=>V.cookie_id===D.cookie_id&&V.item_id===D.item_id?{...V,is_multi_spec:!V.is_multi_spec}:V);t(I)}catch(I){console.error("切换状态失败:",I)}},M=async D=>{try{const I=e.map(V=>V.cookie_id===D.cookie_id&&V.item_id===D.item_id?{...V,is_multi_qty_ship:!V.is_multi_qty_ship}:V);t(I)}catch(I){console.error("切换状态失败:",I)}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"商品管理"}),m.jsx("p",{className:"text-gray-500 mt-2 text-sm",children:"监控并管理所有账号下的闲鱼商品。"})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsxs("select",{className:"ios-input px-4 py-3 rounded-xl text-sm",value:l,onChange:D=>o(D.target.value),children:[m.jsx("option",{value:"",children:"选择账号以同步"}),n.map(D=>m.jsx("option",{value:D.id,children:D.nickname},D.id))]}),m.jsxs("button",{onClick:A,disabled:u||!l,className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 disabled:opacity-50",children:[m.jsx(Gi,{className:`w-4 h-4 ${u?"animate-spin":""}`}),"同步商品"]}),m.jsxs("button",{onClick:()=>y(!0),className:"px-5 py-3 rounded-2xl font-bold bg-gray-900 text-white hover:bg-gray-800 transition-colors flex items-center gap-2 shadow-lg",children:[m.jsx(Is,{className:"w-4 h-4"}),"添加商品"]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:[e.map(D=>m.jsxs("div",{className:"ios-card p-4 rounded-3xl hover:shadow-lg transition-all group relative",children:[m.jsxs("div",{className:"absolute top-3 right-3 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity z-10",children:[m.jsx("button",{onClick:()=>T(D),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md hover:bg-[#FFE815] transition-colors",title:"编辑",children:m.jsx(Ig,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>C(D),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md hover:bg-red-100 text-red-500 transition-colors",title:"删除",children:m.jsx(ro,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"aspect-square bg-gray-100 rounded-2xl mb-4 overflow-hidden relative",children:[D.item_image?m.jsx("img",{src:D.item_image,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-300",children:m.jsx(kE,{className:"w-10 h-10"})}),m.jsxs("div",{className:"absolute top-2 left-2 bg-black/50 backdrop-blur-md text-white text-xs font-bold px-2 py-1 rounded-lg",children:["¥",D.item_price]})]}),m.jsx("h3",{className:"font-bold text-gray-900 line-clamp-2 text-sm mb-2 h-10",children:D.item_title}),m.jsx("div",{className:"flex justify-between items-center text-xs text-gray-500 mb-2",children:m.jsxs("span",{className:"bg-gray-100 px-2 py-1 rounded-md truncate max-w-[100px]",children:["ID: ",D.item_id]})}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:()=>P(D),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${D.is_multi_spec?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多规格"}),m.jsx("button",{onClick:()=>M(D),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${D.is_multi_qty_ship?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多数量发货"})]})]},`${D.cookie_id}-${D.item_id}`)),e.length===0&&m.jsxs("div",{className:"col-span-full py-20 text-center text-gray-400",children:[m.jsx(LE,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),"暂无商品数据，请选择账号进行同步"]})]})]})},VW=()=>{const[e,t]=x.useState(null),[n,r]=x.useState(!1),[l,o]=x.useState(!1),[u,f]=x.useState(!1),[d,h]=x.useState(!1);x.useEffect(()=>{p()},[]);const p=()=>{r(!0),f6().then(t).finally(()=>r(!1))},y=async()=>{if(e){o(!0);try{await d6(e),alert("系统配置已保存")}catch(b){alert("保存失败："+b.message)}finally{o(!1)}}};return e?m.jsxs("div",{className:"max-w-6xl mx-auto space-y-8 animate-fade-in pb-24",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-2xl flex items-center justify-center",children:m.jsx(Bg,{className:"w-6 h-6 text-gray-600"})}),m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-extrabold text-gray-900",children:"系统设置"}),m.jsx("p",{className:"text-gray-500 mt-1 text-sm font-medium",children:"配置全局自动化规则与系统参数"})]})]}),m.jsxs("button",{onClick:p,className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-xl font-bold text-gray-700 flex items-center gap-2 transition-colors",children:[m.jsx(Gi,{className:"w-4 h-4"}),"刷新"]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[m.jsxs("div",{className:"space-y-8",children:[m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-gray-100 text-gray-600",children:m.jsx(pk,{className:"w-4 h-4"})}),"基础设置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"允许用户注册"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"开启后允许新用户注册账号"})]}),m.jsx("button",{onClick:()=>t({...e,registration_enabled:!e.registration_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.registration_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.registration_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"显示默认登录信息"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"登录页面显示默认账号密码提示"})]}),m.jsx("button",{onClick:()=>t({...e,show_default_login_info:!e.show_default_login_info}),className:`w-14 h-8 rounded-full transition-all relative ${e.show_default_login_info?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.show_default_login_info?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"登录滑动验证码"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"开启后账号密码登录需要完成滑动验证"})]}),m.jsx("button",{onClick:()=>t({...e,login_captcha_enabled:!e.login_captcha_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.login_captcha_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.login_captcha_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"启用商品自动同步"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"定时自动获取商品信息到本地数据库"})]}),m.jsx("button",{onClick:()=>t({...e,item_sync_enabled:!e.item_sync_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.item_sync_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.item_sync_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"space-y-3 px-4",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"商品同步间隔（分钟）"}),m.jsx("input",{type:"number",value:Math.round((e.item_sync_interval||600)/60),onChange:b=>{const S=parseInt(b.target.value)||10;t({...e,item_sync_interval:S*60})},className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"1440"}),m.jsx("p",{className:"text-xs text-gray-500",children:"建议：10-60分钟"})]}),m.jsxs("div",{className:"space-y-3 px-4",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"每次最多同步页数"}),m.jsx("input",{type:"number",value:e.item_sync_max_pages||5,onChange:b=>t({...e,item_sync_max_pages:parseInt(b.target.value)||5}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"50"}),m.jsx("p",{className:"text-xs text-gray-500",children:"每页20个商品"})]})]})]}),m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-[#FFE815] text-black",children:m.jsx(Af,{className:"w-4 h-4"})}),"AI 智能回复配置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"API 地址"}),m.jsx("input",{type:"text",value:e.ai_api_url||"https://dashscope.aliyuncs.com/compatible-mode/v1",onChange:b=>t({...e,ai_api_url:b.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl text-sm",placeholder:"https://api.openai.com/v1"}),m.jsx("p",{className:"text-xs text-gray-500",children:"无需补全 /chat/completions"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"API Key"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:u?"text":"password",value:e.ai_api_key||"",onChange:b=>t({...e,ai_api_key:b.target.value}),className:"w-full ios-input px-4 py-3 pr-12 rounded-xl font-mono text-sm",placeholder:"sk-..."}),m.jsx("button",{type:"button",onClick:()=>f(!u),className:"absolute right-3 top-1/2 -translate-y-1/2 p-2 text-gray-400 hover:text-gray-600 transition-colors",children:u?m.jsx(Cy,{className:"w-4 h-4"}):m.jsx(Of,{className:"w-4 h-4"})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"模型"}),m.jsxs("select",{value:e.ai_model||"qwen-plus",onChange:b=>t({...e,ai_model:b.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"qwen-plus",children:"通义千问 Plus"}),m.jsx("option",{value:"qwen-turbo",children:"通义千问 Turbo"}),m.jsx("option",{value:"gpt-3.5-turbo",children:"GPT-3.5 Turbo"}),m.jsx("option",{value:"gpt-4",children:"GPT-4"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"默认自动回复内容"}),m.jsx("textarea",{className:"w-full ios-input px-4 py-3 rounded-xl min-h-[100px] text-sm resize-none",value:e.default_reply||"",onChange:b=>t({...e,default_reply:b.target.value}),placeholder:"设置默认的自动回复内容..."})]}),m.jsxs("div",{className:"p-3 bg-amber-50 rounded-xl text-xs text-amber-700",children:[m.jsx("strong",{children:"常见 AI 服务:"}),m.jsxs("ul",{className:"list-disc list-inside mt-1 space-y-0.5",children:[m.jsx("li",{children:"阿里云通义千问: https://dashscope.aliyuncs.com/compatible-mode/v1"}),m.jsx("li",{children:"OpenAI: https://api.openai.com/v1"})]})]})]})]})]}),m.jsx("div",{className:"space-y-8",children:m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-blue-100 text-blue-600",children:m.jsx(Pk,{className:"w-4 h-4"})}),"SMTP 邮件配置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-6",children:[m.jsx("p",{className:"text-sm text-gray-500",children:"配置SMTP服务器用于发送注册验证码等邮件通知"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"SMTP服务器"}),m.jsx("input",{type:"text",value:e.smtp_server||"",onChange:b=>t({...e,smtp_server:b.target.value}),placeholder:"smtp.qq.com",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"SMTP端口"}),m.jsx("input",{type:"number",value:e.smtp_port||587,onChange:b=>t({...e,smtp_port:parseInt(b.target.value)}),placeholder:"587",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"发件邮箱"}),m.jsx("input",{type:"email",value:e.smtp_user||"",onChange:b=>t({...e,smtp_user:b.target.value}),placeholder:"your-email@qq.com",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"邮箱密码/授权码"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:d?"text":"password",value:e.smtp_password||"",onChange:b=>t({...e,smtp_password:b.target.value}),placeholder:"输入密码或授权码",className:"w-full ios-input px-4 py-3 pr-12 rounded-xl text-sm"}),m.jsx("button",{type:"button",onClick:()=>h(!d),className:"absolute right-3 top-1/2 -translate-y-1/2 p-2 text-gray-400 hover:text-gray-600 transition-colors",children:d?m.jsx(Cy,{className:"w-4 h-4"}):m.jsx(Of,{className:"w-4 h-4"})})]}),m.jsx("p",{className:"text-xs text-gray-500",children:"QQ邮箱需要使用授权码"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"发件人显示名（可选）"}),m.jsx("input",{type:"text",value:e.smtp_from||"",onChange:b=>t({...e,smtp_from:b.target.value}),placeholder:"闲鱼自动回复系统",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]})]})]})})]}),m.jsx("div",{className:"fixed bottom-10 right-10 z-30",children:m.jsxs("button",{onClick:y,disabled:l,className:"ios-btn-primary px-10 py-5 rounded-[2rem] text-lg shadow-2xl shadow-yellow-200 flex items-center gap-3 transform hover:scale-105 active:scale-95 transition-all disabled:opacity-70",children:[m.jsx(ni,{className:"w-6 h-6"}),l?"保存中...":"保存所有配置"]})})]}):m.jsx("div",{className:"p-8 text-center text-gray-400",children:"加载配置中..."})},XW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(""),[l,o]=x.useState("reply"),[u,f]=x.useState([]),[d,h]=x.useState(!1),[p,y]=x.useState(null),[b,S]=x.useState({keyword:"",reply_content:""}),[w,j]=x.useState([]),[_,E]=x.useState([]),[A,T]=x.useState(!1),[C,P]=x.useState(null),[M,D]=x.useState({keyword:"",card_id:"",description:"",enabled:!0}),[I,V]=x.useState({}),[X,te]=x.useState(!1),[k,se]=x.useState(null),[U,ne]=x.useState({cookie_id:"",enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),[L,Z]=x.useState(!1);x.useEffect(()=>{Kg().then(q=>{t(q),q&&q.length>0&&!n&&r(q[0].id)})},[]),x.useEffect(()=>{n&&(R(),fe(),de(),ie())},[n]);const ie=async()=>{try{const q=await p6();V(q)}catch(q){console.error("加载默认回复失败",q)}},fe=async()=>{try{const q=await l6();j(q)}catch(q){console.error("加载发货规则失败",q)}},de=async()=>{try{const q=await Wl();E(q)}catch(q){console.error("加载卡券失败",q)}},R=async()=>{if(n){Z(!0);try{const q=await s6(n);f(q)}catch(q){console.error("加载关键词失败",q)}finally{Z(!1)}}},Y=()=>{if(l==="reply")y(null),S({keyword:"",reply_content:""}),h(!0);else if(l==="delivery")P(null),D({keyword:"",card_id:"",description:"",enabled:!0}),T(!0);else{if(!n)return;oe(n)}},oe=async q=>{try{const Se=await v6(q);se(Se),ne({cookie_id:q,enabled:Se.enabled,reply_content:Se.reply_content,reply_once:Se.reply_once,reply_image_url:Se.reply_image_url||""}),te(!0)}catch(Se){console.error("加载默认回复失败",Se),se(null),ne({cookie_id:q,enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),te(!0)}},ce=q=>{l==="reply"&&(y(q),S({keyword:q.keyword,reply_content:q.reply_content}),h(!0))},pe=q=>{P(q),D({keyword:q.item_keyword,card_id:String(q.card_group_id),description:q.name,enabled:q.enabled}),T(!0)},xe=async()=>{if(!n){alert("请先选择账号");return}if(!b.keyword.trim()||!b.reply_content.trim()){alert("请填写关键词和回复内容");return}try{await u6({id:p==null?void 0:p.id,keyword:b.keyword,reply_content:b.reply_content,match_type:"exact",enabled:!0},n),h(!1),R(),alert("保存成功！")}catch(q){alert("保存失败："+q.message)}},be=async()=>{if(!M.keyword.trim()){alert("请填写触发关键词");return}if(!M.card_id){alert("请选择卡券");return}try{await _j({id:C==null?void 0:C.id,item_keyword:M.keyword,card_group_id:parseInt(M.card_id),name:M.description,priority:1,enabled:M.enabled}),T(!1),fe(),alert("保存成功！")}catch(q){alert("保存失败："+q.message)}},et=async q=>{if(!(!n||!confirm("确认删除该关键词吗？")))try{await c6(q,n),R(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},J=async q=>{if(confirm("确认删除该发货规则吗？"))try{await o6(q),fe(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},_e=async q=>{try{await _j({id:q.id,item_keyword:q.item_keyword,card_group_id:q.card_group_id,name:q.name,priority:q.priority,enabled:!q.enabled}),fe()}catch(Se){alert("操作失败："+Se.message)}},Ae=async()=>{if(!U.cookie_id){alert("请先选择账号");return}try{await y6(U.cookie_id,{enabled:U.enabled,reply_content:U.reply_content,reply_once:U.reply_once,reply_image_url:U.reply_image_url}),te(!1),ie(),alert("保存成功！")}catch(q){alert("保存失败："+q.message)}},ue=async q=>{if(confirm("确认删除该默认回复吗？"))try{await g6(q),ie(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},ut=async q=>{if(confirm("确认清空该账号的回复记录吗？清空后可以重新对所有对话使用默认回复。"))try{await b6(q),alert("清空成功！")}catch(Se){alert("清空失败："+Se.message)}};return m.jsxs("div",{className:"space-y-8 animate-fade-in",children:[m.jsx("div",{className:"flex justify-between items-end",children:m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"关键词管理"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"配置自动回复和关键词发货规则"})]})}),m.jsx("div",{className:"flex justify-center",children:m.jsxs("div",{className:"inline-flex bg-gradient-to-br from-gray-100 to-gray-200 p-2 rounded-3xl shadow-xl",children:[m.jsxs("button",{onClick:()=>o("reply"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="reply"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(aa,{className:"w-6 h-6"}),"关键词回复",l==="reply"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:u.length})]}),m.jsxs("button",{onClick:()=>o("delivery"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="delivery"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(Jl,{className:"w-6 h-6"}),"关键词发货",l==="delivery"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:w.length})]}),m.jsxs("button",{onClick:()=>o("default"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="default"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(la,{className:"w-6 h-6"}),"账号默认回复",l==="default"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:Object.values(I).filter(q=>q.enabled).length})]})]})}),m.jsx("div",{className:"bg-white rounded-3xl shadow-xl p-6",children:m.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4 w-full sm:w-auto",children:[m.jsx("label",{className:"text-sm font-bold text-gray-700 whitespace-nowrap",children:"选择账号"}),m.jsxs("select",{className:"flex-1 sm:w-64 ios-input px-5 py-3 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all",value:n,onChange:q=>r(q.target.value),children:[m.jsx("option",{value:"",children:"请选择账号"}),e.map(q=>m.jsx("option",{value:q.id,children:q.nickname},q.id))]})]}),m.jsxs("div",{className:"flex items-center gap-3 w-full sm:w-auto",children:[m.jsxs("button",{onClick:()=>{l==="reply"?R():l==="delivery"?fe():ie()},className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-6 py-3 rounded-2xl font-bold bg-gradient-to-br from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 transition-all shadow-lg",children:[m.jsx(Gi,{className:"w-5 h-5"}),"刷新"]}),m.jsxs("button",{onClick:Y,disabled:!n,className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-8 py-3 rounded-2xl font-bold bg-gradient-to-r from-[#FFE815] to-[#FFD700] hover:from-[#FFD700] hover:to-[#FFC800] text-gray-900 shadow-xl hover:shadow-2xl hover:scale-105 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:[m.jsx(Is,{className:"w-5 h-5"}),l==="reply"?"添加关键词":l==="delivery"?"添加发货规则":"编辑默认回复"]})]})]})}),n?l==="reply"?L?m.jsx("div",{className:"py-24 flex justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4",children:[m.jsx(Ri,{className:"w-16 h-16 text-[#FFE815] animate-spin"}),m.jsx("p",{className:"text-gray-500 font-medium",children:"加载中..."})]})}):m.jsxs("div",{className:"space-y-4",children:[u.map((q,Se)=>m.jsxs("div",{className:"group relative bg-gradient-to-br from-white to-gray-50 rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 border-transparent hover:border-[#FFE815]/30 overflow-hidden",children:[m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-[#FFE815]/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-[#FFF9C4] to-[#FFE815] rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 group-hover:rotate-12 transition-all duration-300",children:m.jsx(ff,{className:"w-8 h-8 text-yellow-800"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:q.keyword}),m.jsx("span",{className:"px-3 py-1.5 rounded-xl bg-gradient-to-r from-green-400 to-green-500 text-white text-xs font-bold shadow-md",children:"精确匹配"})]}),m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 line-clamp-2 shadow-inner border border-gray-100",children:["💬 ",q.reply_content||"无回复内容"]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>ce(q),className:"p-3.5 bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 rounded-2xl hover:from-amber-100 hover:to-amber-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(df,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>et(q.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(ro,{className:"w-5 h-5"})})]})]})]},q.id)),u.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#FFE815]/20 to-[#FFD700]/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(aa,{className:"w-12 h-12 text-[#FFE815]"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无关键词"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"点击右上角添加新的关键词规则"})]})]}):l==="delivery"?m.jsxs("div",{className:"space-y-4",children:[w.map(q=>m.jsxs("div",{className:`group relative bg-gradient-to-br ${q.enabled?"from-white to-blue-50/30":"from-gray-100 to-gray-150"} rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 ${q.enabled?"border-transparent hover:border-blue-400/30":"border-gray-200"} overflow-hidden`,children:[q.enabled&&m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-blue-400/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:`w-16 h-16 rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 transition-all duration-300 ${q.enabled?"bg-gradient-to-br from-blue-400 to-blue-500 group-hover:rotate-12":"bg-gradient-to-br from-gray-300 to-gray-400"}`,children:m.jsx(Jl,{className:"w-8 h-8 text-white"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:q.item_keyword}),m.jsx("span",{className:`px-3 py-1.5 rounded-xl text-xs font-bold shadow-md ${q.enabled?"bg-gradient-to-r from-green-400 to-green-500 text-white":"bg-gradient-to-r from-gray-400 to-gray-500 text-white"}`,children:q.enabled?"已启用":"已禁用"})]}),m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 shadow-inner border border-gray-100",children:["🎁 卡券：",q.card_group_name||`ID: ${q.card_group_id}`,q.name&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"mx-2 text-gray-300",children:"|"}),"📝 ",q.name]})]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>_e(q),className:`p-3.5 rounded-2xl transition-all shadow-md hover:shadow-lg hover:scale-110 ${q.enabled?"bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 hover:from-amber-100 hover:to-amber-200":"bg-gradient-to-br from-green-50 to-green-100 text-green-600 hover:from-green-100 hover:to-green-200"}`,title:q.enabled?"禁用":"启用",children:q.enabled?m.jsx($k,{className:"w-5 h-5"}):m.jsx(hf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>pe(q),className:"p-3.5 bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 rounded-2xl hover:from-amber-100 hover:to-amber-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(df,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>J(q.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(ro,{className:"w-5 h-5"})})]})]})]},q.id)),w.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-blue-400/20 to-blue-500/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(Jl,{className:"w-12 h-12 text-blue-400"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无发货规则"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"点击右上角添加新的发货规则"})]})]}):l==="default"?m.jsxs("div",{className:"space-y-4",children:[e.map(q=>{const Se=I[q.id],Fe=Se&&Se.enabled;return m.jsxs("div",{className:`group relative bg-gradient-to-br ${Fe?"from-white to-purple-50/30":"from-gray-100 to-gray-150"} rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 ${Fe?"border-transparent hover:border-purple-400/30":"border-gray-200"} overflow-hidden`,children:[Fe&&m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-purple-400/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:`w-16 h-16 rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 transition-all duration-300 ${Fe?"bg-gradient-to-br from-purple-400 to-purple-500 group-hover:rotate-12":"bg-gradient-to-br from-gray-300 to-gray-400"}`,children:m.jsx(la,{className:"w-8 h-8 text-white"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:q.nickname}),m.jsx("span",{className:`px-3 py-1.5 rounded-xl text-xs font-bold shadow-md ${Fe?"bg-gradient-to-r from-green-400 to-green-500 text-white":"bg-gradient-to-r from-gray-400 to-gray-500 text-white"}`,children:Fe?"已启用":"未设置"}),(Se==null?void 0:Se.reply_once)&&m.jsx("span",{className:"px-3 py-1.5 rounded-xl bg-purple-100 text-purple-700 text-xs font-bold shadow-md",children:"只回复一次"})]}),Fe&&m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 line-clamp-2 shadow-inner border border-gray-100",children:["💬 ",Se.reply_content||"无回复内容"]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>oe(q.id),className:"p-3.5 bg-gradient-to-br from-purple-50 to-purple-100 text-purple-600 rounded-2xl hover:from-purple-100 hover:to-purple-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(df,{className:"w-5 h-5"})}),Fe&&m.jsxs(m.Fragment,{children:[m.jsx("button",{onClick:()=>ut(q.id),className:"p-3.5 bg-gradient-to-br from-blue-50 to-blue-100 text-blue-600 rounded-2xl hover:from-blue-100 hover:to-blue-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"清空回复记录",children:m.jsx(Gi,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>ue(q.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(ro,{className:"w-5 h-5"})})]})]})]})]},q.id)}),e.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-purple-400/20 to-purple-500/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(la,{className:"w-12 h-12 text-purple-400"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无账号"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"请先添加账号"})]})]}):null:m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#FFE815]/20 to-[#FFD700]/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(aa,{className:"w-12 h-12 text-[#FFE815]"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"请选择账号"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"选择一个账号以管理其关键词规则"})]}),d&&fn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-[#FFE815] to-[#FFD700] p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(aa,{className:"w-7 h-7 text-gray-900"})}),m.jsx("h3",{className:"text-3xl font-black text-gray-900",children:p?"编辑关键词":"添加关键词"})]}),m.jsx("button",{onClick:()=>h(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-gray-900"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(ff,{className:"w-5 h-5 text-[#FFE815]"}),"触发关键词"]}),m.jsx("input",{type:"text",value:b.keyword,onChange:q=>S({...b,keyword:q.target.value}),placeholder:"例如：价格、包邮、怎么样",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💡 买家消息中包含此关键词时自动回复"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-[#FFE815]"}),"回复内容"]}),m.jsx("textarea",{value:b.reply_content,onChange:q=>S({...b,reply_content:q.target.value}),placeholder:"输入自动回复的内容...",rows:6,className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all bg-gray-50 resize-none"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💬 支持换行，系统将自动发送此内容给买家"})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>h(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:xe,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-[#FFE815] to-[#FFD700] hover:from-[#FFD700] hover:to-[#FFC800] text-gray-900 shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ni,{className:"w-5 h-5"}),"保存关键词"]})]})})]})}),document.body),A&&fn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-blue-400 to-blue-500 p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(Jl,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:C?"编辑发货规则":"添加发货规则"})]}),m.jsx("button",{onClick:()=>T(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-white"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(ff,{className:"w-5 h-5 text-blue-500"}),"触发关键词"]}),m.jsx("input",{type:"text",value:M.keyword,onChange:q=>D({...M,keyword:q.target.value}),placeholder:"例如：发货卡密、自动发货",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💡 买家消息中包含此关键词时自动发货"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(Af,{className:"w-5 h-5 text-blue-500"}),"关联卡券"]}),m.jsxs("select",{value:M.card_id,onChange:q=>D({...M,card_id:q.target.value}),className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50",children:[m.jsx("option",{value:"",children:"请选择卡券"}),_.map(q=>{var Se;return m.jsxs("option",{value:q.id,children:[q.name||((Se=q.text_content)==null?void 0:Se.substring(0,30))||`卡券 ${q.id}`,q.is_multi_spec&&` [${q.spec_name}: ${q.spec_value}]`]},q.id)})]}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🎁 选择触发关键词时发送的卡券"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-blue-500"}),"描述（可选）"]}),m.jsx("input",{type:"text",value:M.description,onChange:q=>D({...M,description:q.target.value}),placeholder:"规则描述，方便识别",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-blue-50 to-blue-100/50 rounded-2xl border-2 border-blue-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(hf,{className:"w-6 h-6 text-blue-500"}),m.jsx("span",{className:"text-base font-black text-gray-900",children:"启用此规则"})]}),m.jsx("button",{type:"button",onClick:()=>D({...M,enabled:!M.enabled}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${M.enabled?"bg-blue-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${M.enabled?"translate-x-8":"translate-x-1"}`})})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>T(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:be,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-blue-400 to-blue-500 hover:from-blue-500 hover:to-blue-600 text-white shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ni,{className:"w-5 h-5"}),"保存发货规则"]})]})})]})}),document.body),X&&fn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-purple-400 to-purple-500 p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(la,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:"账号默认回复"})]}),m.jsx("button",{onClick:()=>te(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-white"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(la,{className:"w-5 h-5 text-purple-500"}),"账号"]}),m.jsxs("select",{value:U.cookie_id,onChange:q=>ne({...U,cookie_id:q.target.value}),className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50",children:[m.jsx("option",{value:"",children:"请选择账号"}),e.map(q=>m.jsx("option",{value:q.id,children:q.nickname},q.id))]}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🤖 为此账号设置默认回复内容"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-purple-50 to-purple-100/50 rounded-2xl border-2 border-purple-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(hf,{className:"w-6 h-6 text-purple-500"}),m.jsx("span",{className:"text-base font-black text-gray-900",children:"启用默认回复"})]}),m.jsx("button",{type:"button",onClick:()=>ne({...U,enabled:!U.enabled}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${U.enabled?"bg-purple-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${U.enabled?"translate-x-8":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-purple-500"}),"回复内容"]}),m.jsx("textarea",{value:U.reply_content,onChange:q=>ne({...U,reply_content:q.target.value}),placeholder:"输入默认回复的内容...",rows:6,className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50 resize-none"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💬 当没有匹配的关键词时，系统将自动发送此内容"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-amber-50 to-amber-100/50 rounded-2xl border-2 border-amber-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-base font-black text-gray-900",children:"🔁 只回复一次"}),m.jsx("span",{className:"text-xs text-gray-500",children:"启用后，每个对话只使用一次默认回复"})]}),m.jsx("button",{type:"button",onClick:()=>ne({...U,reply_once:!U.reply_once}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${U.reply_once?"bg-amber-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${U.reply_once?"translate-x-8":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(Af,{className:"w-5 h-5 text-purple-500"}),"回复图片URL（可选）"]}),m.jsx("input",{type:"text",value:U.reply_image_url,onChange:q=>ne({...U,reply_image_url:q.target.value}),placeholder:"https://example.com/image.jpg",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🖼️ 可选：添加图片URL一起发送"})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>te(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:Ae,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-purple-400 to-purple-500 hover:from-purple-500 hover:to-purple-600 text-white shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ni,{className:"w-5 h-5"}),"保存默认回复"]})]})})]})}),document.body)]})},ZW=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState("dashboard"),[l,o]=x.useState(!0),[u,f]=x.useState(""),[d,h]=x.useState(""),[p,y]=x.useState(!1),[b,S]=x.useState("");x.useEffect(()=>{localStorage.getItem("auth_token")?UR().then(()=>t(!0)).catch(()=>localStorage.removeItem("auth_token")).finally(()=>o(!1)):o(!1);const A=()=>t(!1);return window.addEventListener("auth:logout",A),()=>window.removeEventListener("auth:logout",A)},[]);const w=async E=>{E.preventDefault(),y(!0),S("");try{const A=await $R({username:u,password:d});A.success&&A.token?(localStorage.setItem("auth_token",A.token),t(!0)):S(A.message||"登录失败")}catch{S("无法连接服务器")}finally{y(!1)}},j=()=>{y(!0),setTimeout(()=>{localStorage.setItem("auth_token","test_token"),t(!0),y(!1)},800)};if(l)return m.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#f5f5f7]",children:m.jsx(Ri,{className:"w-8 h-8 text-[#FFE815] animate-spin"})});if(!e)return m.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[#F4F5F7] p-4 relative overflow-hidden font-sans",children:[m.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[60%] h-[60%] bg-yellow-200/40 rounded-full blur-[120px] animate-pulse"}),m.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[60%] h-[60%] bg-blue-200/30 rounded-full blur-[120px] animate-pulse",style:{animationDelay:"2s"}}),m.jsxs("div",{className:"bg-white/80 backdrop-blur-3xl p-8 md:p-12 rounded-[3rem] shadow-[0_20px_60px_-15px_rgba(0,0,0,0.05)] w-full max-w-lg border border-white relative z-10 animate-fade-in",children:[m.jsxs("div",{className:"text-center mb-10",children:[m.jsx("div",{className:"w-24 h-24 bg-[#FFE815] rounded-[2rem] flex items-center justify-center shadow-xl shadow-yellow-200 mx-auto mb-6 transform rotate-[-6deg] hover:rotate-0 transition-all duration-500 cursor-pointer group",children:m.jsx("span",{className:"text-black font-extrabold text-5xl group-hover:scale-110 transition-transform",children:"闲"})}),m.jsx("h2",{className:"text-3xl font-extrabold text-gray-900 mb-2 tracking-tight",children:"欢迎回来"}),m.jsx("p",{className:"text-gray-500 font-medium",children:"闲鱼智能自动发货与管家系统"})]}),m.jsxs("form",{onSubmit:w,className:"space-y-5",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"relative group",children:[m.jsx(BE,{className:"absolute left-5 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400 group-focus-within:text-black transition-colors"}),m.jsx("input",{type:"text",placeholder:"管理员账号",value:u,onChange:E=>f(E.target.value),className:"w-full ios-input pl-14 pr-6 py-4.5 rounded-2xl text-base h-14"})]}),m.jsxs("div",{className:"relative group",children:[m.jsx(Ck,{className:"absolute left-5 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400 group-focus-within:text-black transition-colors"}),m.jsx("input",{type:"password",placeholder:"密码",value:d,onChange:E=>h(E.target.value),className:"w-full ios-input pl-14 pr-6 py-4.5 rounded-2xl text-base h-14"})]})]}),b&&m.jsxs("div",{className:"p-3 rounded-xl bg-red-50 text-red-500 text-sm text-center font-bold flex items-center justify-center gap-2",children:[m.jsx(Zk,{className:"w-4 h-4"})," ",b]}),m.jsx("button",{type:"submit",disabled:p,className:"w-full ios-btn-primary h-14 rounded-2xl text-lg shadow-xl shadow-yellow-200 mt-2 flex items-center justify-center gap-2 group disabled:opacity-70",children:p?m.jsx(Ri,{className:"w-5 h-5 animate-spin"}):m.jsxs(m.Fragment,{children:["立即登录 ",m.jsx(rk,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]}),m.jsxs("div",{className:"mt-8 pt-6 border-t border-gray-100",children:[m.jsxs("button",{type:"button",onClick:j,disabled:p,className:"w-full bg-black text-white h-14 rounded-2xl text-base font-bold shadow-lg shadow-gray-200 flex items-center justify-center gap-2 hover:bg-gray-800 transition-all active:scale-95",children:[m.jsx(jk,{className:"w-5 h-5 text-[#FFE815]"}),"游客试用 (无需账号)"]}),m.jsx("div",{className:"mt-6 text-center",children:m.jsx("span",{className:"text-xs text-gray-400 font-medium tracking-widest uppercase",children:"Xianyu Auto-Dispatch Pro v2.5"})})]})]})]});const _=()=>{switch(n){case"dashboard":return m.jsx(CE,{});case"accounts":return m.jsx(FW,{});case"orders":return m.jsx(KW,{});case"cards":return m.jsx(YW,{});case"items":return m.jsx(GW,{});case"keywords":return m.jsx(XW,{});case"settings":return m.jsx(VW,{});default:return m.jsx(CE,{})}};return m.jsxs("div",{className:"flex min-h-screen bg-[#F4F5F7] text-[#111]",children:[m.jsx(c4,{activeTab:n,setActiveTab:r,onLogout:()=>{localStorage.removeItem("auth_token"),t(!1)}}),m.jsxs("main",{className:"flex-1 ml-64 p-8 md:p-12 overflow-y-auto h-screen relative scroll-smooth",children:[m.jsx("div",{className:"fixed top-0 right-0 w-[800px] h-[800px] bg-gradient-to-bl from-yellow-50 to-transparent rounded-full blur-[120px] pointer-events-none -z-10 opacity-60"}),m.jsx("div",{className:"max-w-[1400px] mx-auto pb-10",children:_()})]})]})},pD=document.getElementById("root");if(!pD)throw new Error("Could not find root element to mount to");const WW=V3.createRoot(pD);WW.render(m.jsx(ME.StrictMode,{children:m.jsx(ZW,{})}));
//# sourceMappingURL=index-CrmUxQcc.js.map
