var wk=Object.defineProperty;var Sk=(e,t,n)=>t in e?wk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ep=(e,t,n)=>Sk(e,typeof t!="symbol"?t+"":t,n);function jk(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 kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cp={exports:{}},gs={};/**
 * @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 PS;function _k(){if(PS)return gs;PS=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 gs.Fragment=t,gs.jsx=n,gs.jsxs=n,gs}var RS;function Ok(){return RS||(RS=1,Cp.exports=_k()),Cp.exports}var m=Ok(),Tp={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 zS;function Ak(){if(zS)return Ne;zS=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 w(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function N(R,G,oe){this.props=R,this.context=G,this.refs=_,this.updater=oe||S}N.prototype.isReactComponent={},N.prototype.setState=function(R,G){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,G,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=N.prototype;function C(R,G,oe){this.props=R,this.context=G,this.refs=_,this.updater=oe||S}var M=C.prototype=new A;M.constructor=C,j(M,N.prototype),M.isPureReactComponent=!0;var D=Array.isArray;function T(){}var k={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function Z(R,G,oe){var ce=oe.ref;return{$$typeof:e,type:R,key:G,ref:ce!==void 0?ce:null,props:oe}}function V(R,G){return Z(R.type,G,R.props)}function re(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function P(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(oe){return G[oe]})}var ue=/\/+/g;function U(R,G){return typeof R=="object"&&R!==null&&R.key!=null?P(""+R.key):G.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(T,T):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function B(R,G,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,B(be(R._payload),G,oe,ce,pe)}}if(be)return pe=pe(R),be=ce===""?"."+U(R,0):ce,D(pe)?(oe="",be!=null&&(oe=be.replace(ue,"$&/")+"/"),B(pe,G,oe,"",function(_e){return _e})):pe!=null&&(re(pe)&&(pe=V(pe,oe+(pe.key==null||R&&R.key===pe.key?"":(""+pe.key).replace(ue,"$&/")+"/")+be)),G.push(pe)),1;be=0;var Je=ce===""?".":ce+":";if(D(R))for(var J=0;J<R.length;J++)ce=R[J],xe=Je+U(ce,J),be+=B(ce,G,oe,xe,pe);else if(J=w(R),typeof J=="function")for(R=J.call(R),J=0;!(ce=R.next()).done;)ce=ce.value,xe=Je+U(ce,J++),be+=B(ce,G,oe,xe,pe);else if(xe==="object"){if(typeof R.then=="function")return B(ne(R),G,oe,ce,pe);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(R,G,oe){if(R==null)return R;var ce=[],pe=0;return B(R,ce,"","",function(xe){return G.call(oe,xe,pe++)}),ce}function ie(R){if(R._status===-1){var G=R._result;G=G(),G.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=G)}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 G=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(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},de={map:Q,forEach:function(R,G,oe){Q(R,function(){G.apply(this,arguments)},oe)},count:function(R){var G=0;return Q(R,function(){G++}),G},toArray:function(R){return Q(R,function(G){return G})||[]},only:function(R){if(!re(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=N,Ne.Fragment=n,Ne.Profiler=l,Ne.PureComponent=C,Ne.StrictMode=r,Ne.Suspense=d,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return k.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,G,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(G!=null)for(xe in G.key!==void 0&&(pe=""+G.key),G)!$.call(G,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&G.ref===void 0||(ce[xe]=G[xe]);var xe=arguments.length-2;if(xe===1)ce.children=oe;else if(1<xe){for(var be=Array(xe),Je=0;Je<xe;Je++)be[Je]=arguments[Je+2];ce.children=be}return Z(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,G,oe){var ce,pe={},xe=null;if(G!=null)for(ce in G.key!==void 0&&(xe=""+G.key),G)$.call(G,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(pe[ce]=G[ce]);var be=arguments.length-2;if(be===1)pe.children=oe;else if(1<be){for(var Je=Array(be),J=0;J<be;J++)Je[J]=arguments[J+2];pe.children=Je}if(R&&R.defaultProps)for(ce in be=R.defaultProps,be)pe[ce]===void 0&&(pe[ce]=be[ce]);return Z(R,xe,pe)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:f,render:R}},Ne.isValidElement=re,Ne.lazy=function(R){return{$$typeof:p,_payload:{_status:-1,_result:R},_init:ie}},Ne.memo=function(R,G){return{$$typeof:h,type:R,compare:G===void 0?null:G}},Ne.startTransition=function(R){var G=k.T,oe={};k.T=oe;try{var ce=R(),pe=k.S;pe!==null&&pe(oe,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(T,fe)}catch(xe){fe(xe)}finally{G!==null&&oe.types!==null&&(G.types=oe.types),k.T=G}},Ne.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Ne.use=function(R){return k.H.use(R)},Ne.useActionState=function(R,G,oe){return k.H.useActionState(R,G,oe)},Ne.useCallback=function(R,G){return k.H.useCallback(R,G)},Ne.useContext=function(R){return k.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,G){return k.H.useDeferredValue(R,G)},Ne.useEffect=function(R,G){return k.H.useEffect(R,G)},Ne.useEffectEvent=function(R){return k.H.useEffectEvent(R)},Ne.useId=function(){return k.H.useId()},Ne.useImperativeHandle=function(R,G,oe){return k.H.useImperativeHandle(R,G,oe)},Ne.useInsertionEffect=function(R,G){return k.H.useInsertionEffect(R,G)},Ne.useLayoutEffect=function(R,G){return k.H.useLayoutEffect(R,G)},Ne.useMemo=function(R,G){return k.H.useMemo(R,G)},Ne.useOptimistic=function(R,G){return k.H.useOptimistic(R,G)},Ne.useReducer=function(R,G,oe){return k.H.useReducer(R,G,oe)},Ne.useRef=function(R){return k.H.useRef(R)},Ne.useState=function(R){return k.H.useState(R)},Ne.useSyncExternalStore=function(R,G,oe){return k.H.useSyncExternalStore(R,G,oe)},Ne.useTransition=function(){return k.H.useTransition()},Ne.version="19.2.3",Ne}var LS;function co(){return LS||(LS=1,Tp.exports=Ak()),Tp.exports}var x=co();const vN=kr(x),Nk=jk({__proto__:null,default:vN},[x]);var Mp={exports:{}},bs={},Dp={exports:{}},kp={};/**
 * @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 BS;function Ek(){return BS||(BS=1,(function(e){function t(B,Q){var ie=B.length;B.push(Q);e:for(;0<ie;){var fe=ie-1>>>1,de=B[fe];if(0<l(de,Q))B[fe]=Q,B[ie]=de,ie=fe;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var Q=B[0],ie=B.pop();if(ie!==Q){B[0]=ie;e:for(var fe=0,de=B.length,R=de>>>1;fe<R;){var G=2*(fe+1)-1,oe=B[G],ce=G+1,pe=B[ce];if(0>l(oe,ie))ce<de&&0>l(pe,oe)?(B[fe]=pe,B[ce]=ie,fe=ce):(B[fe]=oe,B[G]=ie,fe=G);else if(ce<de&&0>l(pe,ie))B[fe]=pe,B[ce]=ie,fe=ce;else break e}}return Q}function l(B,Q){var ie=B.sortIndex-Q.sortIndex;return ie!==0?ie:B.id-Q.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,w=!1,S=!1,j=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function M(B){for(var Q=n(h);Q!==null;){if(Q.callback===null)r(h);else if(Q.startTime<=B)r(h),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=n(h)}}function D(B){if(j=!1,M(B),!S)if(n(d)!==null)S=!0,T||(T=!0,P());else{var Q=n(h);Q!==null&&ne(D,Q.startTime-B)}}var T=!1,k=-1,$=5,Z=-1;function V(){return _?!0:!(e.unstable_now()-Z<$)}function re(){if(_=!1,T){var B=e.unstable_now();Z=B;var Q=!0;try{e:{S=!1,j&&(j=!1,A(k),k=-1),w=!0;var ie=b;try{t:{for(M(B),y=n(d);y!==null&&!(y.expirationTime>B&&V());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,b=y.priorityLevel;var de=fe(y.expirationTime<=B);if(B=e.unstable_now(),typeof de=="function"){y.callback=de,M(B),Q=!0;break t}y===n(d)&&r(d),M(B)}else r(d);y=n(d)}if(y!==null)Q=!0;else{var R=n(h);R!==null&&ne(D,R.startTime-B),Q=!1}}break e}finally{y=null,b=ie,w=!1}Q=void 0}}finally{Q?P():T=!1}}}var P;if(typeof C=="function")P=function(){C(re)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,U=ue.port2;ue.port1.onmessage=re,P=function(){U.postMessage(null)}}else P=function(){N(re,0)};function ne(B,Q){k=N(function(){B(e.unstable_now())},Q)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(B){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var ie=b;b=Q;try{return B()}finally{b=ie}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,Q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ie=b;b=B;try{return Q()}finally{b=ie}},e.unstable_scheduleCallback=function(B,Q,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,B){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,B={id:p++,callback:Q,priorityLevel:B,startTime:ie,expirationTime:de,sortIndex:-1},ie>fe?(B.sortIndex=ie,t(h,B),n(d)===null&&B===n(h)&&(j?(A(k),k=-1):j=!0,ne(D,ie-fe))):(B.sortIndex=de,t(d,B),S||w||(S=!0,T||(T=!0,P()))),B},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(B){var Q=b;return function(){var ie=b;b=Q;try{return B.apply(this,arguments)}finally{b=ie}}}})(kp)),kp}var IS;function Ck(){return IS||(IS=1,Dp.exports=Ek()),Dp.exports}var Pp={exports:{}},rn={};/**
 * @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 $S;function Tk(){if($S)return rn;$S=1;var e=co();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 rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,rn.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)},rn.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()}},rn.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))},rn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},rn.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,w=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:w}):p==="script"&&r.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rn.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)},rn.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})}},rn.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)},rn.requestFormReset=function(d){r.d.r(d)},rn.unstable_batchedUpdates=function(d,h){return d(h)},rn.useFormState=function(d,h,p){return u.H.useFormState(d,h,p)},rn.useFormStatus=function(){return u.H.useHostTransitionStatus()},rn.version="19.2.3",rn}var US;function yN(){if(US)return Pp.exports;US=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(),Pp.exports=Tk(),Pp.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 qS;function Mk(){if(qS)return bs;qS=1;var e=Ck(),t=co(),n=yN();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,E=v.child;E;){if(E===s){O=!0,s=v,c=g;break}if(E===c){O=!0,c=v,s=g;break}E=E.sibling}if(!O){for(E=g.child;E;){if(E===s){O=!0,s=g,c=v;break}if(E===c){O=!0,c=g,s=v;break}E=E.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"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function P(a){return a===null||typeof a!="object"?null:(a=re&&a[re]||a["@@iterator"],typeof a=="function"?a:null)}var ue=Symbol.for("react.client.reference");function U(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ue?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case N:return"Profiler";case _:return"StrictMode";case D:return"Suspense";case T:return"SuspenseList";case Z:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case S:return"Portal";case C:return a.displayName||"Context";case A:return(a._context.displayName||"Context")+".Consumer";case M:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return i=a.displayName||null,i!==null?i:U(a.type)||"Memo";case $:i=a._payload,a=a._init;try{return U(a(i))}catch{}}return null}var ne=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=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 G(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 Je(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)?rS(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=rS(i),a=aS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(ce),oe(ce,a)}function J(){G(ce),G(pe),G(xe)}function _e(a){a.memoizedState!==null&&oe(be,a);var i=ce.current,s=aS(i,a.type);i!==s&&(oe(pe,a),oe(ce,s))}function Ae(a){pe.current===a&&(G(ce),G(pe)),be.current===a&&(G(be),ms._currentValue=ie)}var se,ut;function q(a){if(se===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);se=i&&i[1]||"",ut=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+se+a+ut}var Se=!1;function He(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(W){var Y=W}Reflect.construct(a,[],ae)}else{try{ae.call()}catch(W){Y=W}a.call(ae.prototype)}}else{try{throw Error()}catch(W){Y=W}(ae=a())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(W){if(W&&Y&&typeof W.stack=="string")return[W.stack,Y.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],E=g[1];if(O&&E){var z=O.split(`
`),F=E.split(`
`);for(v=c=0;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;for(;v<F.length&&!F[v].includes("DetermineComponentFrameRoot");)v++;if(c===z.length||v===F.length)for(c=z.length-1,v=F.length-1;1<=c&&0<=v&&z[c]!==F[v];)v--;for(;1<=c&&0<=v;c--,v--)if(z[c]!==F[v]){if(c!==1||v!==1)do if(c--,v--,0>v||z[c]!==F[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 He(a.type,!1);case 11:return He(a.type.render,!1);case 1:return He(a.type,!0);case 31:return q("Activity");default:return""}}function zr(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,Ge=e.unstable_cancelCallback,At=e.unstable_shouldYield,Tn=e.unstable_requestPaint,xt=e.unstable_now,al=e.unstable_getCurrentPriorityLevel,ci=e.unstable_ImmediatePriority,Oo=e.unstable_UserBlockingPriority,ju=e.unstable_NormalPriority,n3=e.unstable_LowPriority,Lb=e.unstable_IdlePriority,r3=e.log,a3=e.unstable_setDisableYieldValue,Ao=null,Mn=null;function Aa(a){if(typeof r3=="function"&&a3(a),Mn&&typeof Mn.setStrictMode=="function")try{Mn.setStrictMode(Ao,a)}catch{}}var Dn=Math.clz32?Math.clz32:o3,i3=Math.log,l3=Math.LN2;function o3(a){return a>>>=0,a===0?32:31-(i3(a)/l3|0)|0}var _u=256,Ou=262144,Au=4194304;function fi(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 Nu(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 E=c&134217727;return E!==0?(c=E&~g,c!==0?v=fi(c):(O&=E,O!==0?v=fi(O):s||(s=E&~a,s!==0&&(v=fi(s))))):(E=c&~g,E!==0?v=fi(E):O!==0?v=fi(O):s||(s=c&~a,s!==0&&(v=fi(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 No(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function s3(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 Bb(){var a=Au;return Au<<=1,(Au&62914560)===0&&(Au=4194304),a}function vh(a){for(var i=[],s=0;31>s;s++)i.push(a);return i}function Eo(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function u3(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 E=a.entanglements,z=a.expirationTimes,F=a.hiddenUpdates;for(s=O&~s;0<s;){var ee=31-Dn(s),ae=1<<ee;E[ee]=0,z[ee]=-1;var Y=F[ee];if(Y!==null)for(F[ee]=null,ee=0;ee<Y.length;ee++){var W=Y[ee];W!==null&&(W.lane&=-536870913)}s&=~ae}c!==0&&Ib(a,c,0),g!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=g&~(O&~i))}function Ib(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 $b(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 Ub(a,i){var s=i&-i;return s=(s&42)!==0?1:yh(s),(s&(a.suspendedLanes|i))!==0?0:s}function yh(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 gh(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function qb(){var a=Q.p;return a!==0?a:(a=window.event,a===void 0?32:NS(a.type))}function Hb(a,i){var s=Q.p;try{return Q.p=a,i()}finally{Q.p=s}}var Na=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Na,vn="__reactProps$"+Na,il="__reactContainer$"+Na,bh="__reactEvents$"+Na,c3="__reactListeners$"+Na,f3="__reactHandles$"+Na,Fb="__reactResources$"+Na,Co="__reactMarker$"+Na;function xh(a){delete a[Xt],delete a[vn],delete a[bh],delete a[c3],delete a[f3]}function ll(a){var i=a[Xt];if(i)return i;for(var s=a.parentNode;s;){if(i=s[il]||s[Xt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(a=fS(a);a!==null;){if(s=a[Xt])return s;a=fS(a)}return i}a=s,s=a.parentNode}return null}function ol(a){if(a=a[Xt]||a[il]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function To(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function sl(a){var i=a[Fb];return i||(i=a[Fb]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function qt(a){a[Co]=!0}var Kb=new Set,Yb={};function di(a,i){ul(a,i),ul(a+"Capture",i)}function ul(a,i){for(Yb[a]=i,a=0;a<i.length;a++)Kb.add(i[a])}var d3=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]*$"),Gb={},Vb={};function h3(a){return le.call(Vb,a)?!0:le.call(Gb,a)?!1:d3.test(a)?Vb[a]=!0:(Gb[a]=!0,!1)}function Eu(a,i,s){if(h3(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 Cu(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 Lr(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 Kn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Xb(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function m3(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 wh(a){if(!a._valueTracker){var i=Xb(a)?"checked":"value";a._valueTracker=m3(a,i,""+a[i])}}function Zb(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return a&&(c=Xb(a)?a.checked?"true":"false":a.value),a=c,a!==s?(i.setValue(a),!0):!1}function Tu(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 p3=/[\n"\\]/g;function Yn(a){return a.replace(p3,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Sh(a,i,s,c,v,g,O,E){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=""+Kn(i)):a.value!==""+Kn(i)&&(a.value=""+Kn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?jh(a,O,Kn(i)):s!=null?jh(a,O,Kn(s)):c!=null&&a.removeAttribute("value"),v==null&&g!=null&&(a.defaultChecked=!!g),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?a.name=""+Kn(E):a.removeAttribute("name")}function Wb(a,i,s,c,v,g,O,E){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)){wh(a);return}s=s!=null?""+Kn(s):"",i=i!=null?""+Kn(i):s,E||i===a.value||(a.value=i),a.defaultValue=i}c=c??v,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=E?a.checked:!!c,a.defaultChecked=!!c,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),wh(a)}function jh(a,i,s){i==="number"&&Tu(a.ownerDocument)===a||a.defaultValue===""+s||(a.defaultValue=""+s)}function cl(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=""+Kn(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 Qb(a,i,s){if(i!=null&&(i=""+Kn(i),i!==a.value&&(a.value=i),s==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=s!=null?""+Kn(s):""}function Jb(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=Kn(i),a.defaultValue=s,c=a.textContent,c===s&&c!==""&&c!==null&&(a.value=c),wh(a)}function fl(a,i){if(i){var s=a.firstChild;if(s&&s===a.lastChild&&s.nodeType===3){s.nodeValue=i;return}}a.textContent=i}var v3=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 ex(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||v3.has(i)?i==="float"?a.cssFloat=s:a[i]=(""+s).trim():a[i]=s+"px"}function tx(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&&ex(a,v,c)}else for(var g in i)i.hasOwnProperty(g)&&ex(a,g,i[g])}function _h(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 y3=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"]]),g3=/^[\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 Mu(a){return g3.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Br(){}var Oh=null;function Ah(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var dl=null,hl=null;function nx(a){var i=ol(a);if(i&&(a=i.stateNode)){var s=a[vn]||null;e:switch(a=i.stateNode,i.type){case"input":if(Sh(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="'+Yn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==a&&c.form===a.form){var v=c[vn]||null;if(!v)throw Error(r(90));Sh(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&&Zb(c)}break e;case"textarea":Qb(a,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&cl(a,!!s.multiple,i,!1)}}}var Nh=!1;function rx(a,i,s){if(Nh)return a(i,s);Nh=!0;try{var c=a(i);return c}finally{if(Nh=!1,(dl!==null||hl!==null)&&(gc(),dl&&(i=dl,a=hl,hl=dl=null,nx(i),a)))for(i=0;i<a.length;i++)nx(a[i])}}function Mo(a,i){var s=a.stateNode;if(s===null)return null;var c=s[vn]||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 Ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eh=!1;if(Ir)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){Eh=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{Eh=!1}var Ea=null,Ch=null,Du=null;function ax(){if(Du)return Du;var a,i=Ch,s=i.length,c,v="value"in Ea?Ea.value:Ea.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 Du=v.slice(a,1<c?1-c:void 0)}function ku(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 Pu(){return!0}function ix(){return!1}function yn(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 E in a)a.hasOwnProperty(E)&&(s=a[E],this[E]=s?s(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Pu:ix,this.isPropagationStopped=ix,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=Pu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Pu)},persist:function(){},isPersistent:Pu}),i}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=yn(hi),ko=y({},hi,{view:0,detail:0}),b3=yn(ko),Th,Mh,Po,zu=y({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kh,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!==Po&&(Po&&a.type==="mousemove"?(Th=a.screenX-Po.screenX,Mh=a.screenY-Po.screenY):Mh=Th=0,Po=a),Th)},movementY:function(a){return"movementY"in a?a.movementY:Mh}}),lx=yn(zu),x3=y({},zu,{dataTransfer:0}),w3=yn(x3),S3=y({},ko,{relatedTarget:0}),Dh=yn(S3),j3=y({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),_3=yn(j3),O3=y({},hi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),A3=yn(O3),N3=y({},hi,{data:0}),ox=yn(N3),E3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C3={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"},T3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M3(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=T3[a])?!!i[a]:!1}function kh(){return M3}var D3=y({},ko,{key:function(a){if(a.key){var i=E3[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=ku(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?C3[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kh,charCode:function(a){return a.type==="keypress"?ku(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ku(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),k3=yn(D3),P3=y({},zu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sx=yn(P3),R3=y({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kh}),z3=yn(R3),L3=y({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),B3=yn(L3),I3=y({},zu,{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}),$3=yn(I3),U3=y({},hi,{newState:0,oldState:0}),q3=yn(U3),H3=[9,13,27,32],Ph=Ir&&"CompositionEvent"in window,Ro=null;Ir&&"documentMode"in document&&(Ro=document.documentMode);var F3=Ir&&"TextEvent"in window&&!Ro,ux=Ir&&(!Ph||Ro&&8<Ro&&11>=Ro),cx=" ",fx=!1;function dx(a,i){switch(a){case"keyup":return H3.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ml=!1;function K3(a,i){switch(a){case"compositionend":return hx(i);case"keypress":return i.which!==32?null:(fx=!0,cx);case"textInput":return a=i.data,a===cx&&fx?null:a;default:return null}}function Y3(a,i){if(ml)return a==="compositionend"||!Ph&&dx(a,i)?(a=ax(),Du=Ch=Ea=null,ml=!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 ux&&i.locale!=="ko"?null:i.data;default:return null}}var G3={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 mx(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!G3[a.type]:i==="textarea"}function px(a,i,s,c){dl?hl?hl.push(c):hl=[c]:dl=c,i=Oc(i,"onChange"),0<i.length&&(s=new Ru("onChange","change",null,s,c),a.push({event:s,listeners:i}))}var zo=null,Lo=null;function V3(a){Ww(a,0)}function Lu(a){var i=To(a);if(Zb(i))return a}function vx(a,i){if(a==="change")return i}var yx=!1;if(Ir){var Rh;if(Ir){var zh="oninput"in document;if(!zh){var gx=document.createElement("div");gx.setAttribute("oninput","return;"),zh=typeof gx.oninput=="function"}Rh=zh}else Rh=!1;yx=Rh&&(!document.documentMode||9<document.documentMode)}function bx(){zo&&(zo.detachEvent("onpropertychange",xx),Lo=zo=null)}function xx(a){if(a.propertyName==="value"&&Lu(Lo)){var i=[];px(i,Lo,a,Ah(a)),rx(V3,i)}}function X3(a,i,s){a==="focusin"?(bx(),zo=i,Lo=s,zo.attachEvent("onpropertychange",xx)):a==="focusout"&&bx()}function Z3(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Lu(Lo)}function W3(a,i){if(a==="click")return Lu(i)}function Q3(a,i){if(a==="input"||a==="change")return Lu(i)}function J3(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var kn=typeof Object.is=="function"?Object.is:J3;function Bo(a,i){if(kn(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)||!kn(a[v],i[v]))return!1}return!0}function wx(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Sx(a,i){var s=wx(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=wx(s)}}function jx(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?jx(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function _x(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Tu(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=Tu(a.document)}return i}function Lh(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 eD=Ir&&"documentMode"in document&&11>=document.documentMode,pl=null,Bh=null,Io=null,Ih=!1;function Ox(a,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ih||pl==null||pl!==Tu(c)||(c=pl,"selectionStart"in c&&Lh(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}),Io&&Bo(Io,c)||(Io=c,c=Oc(Bh,"onSelect"),0<c.length&&(i=new Ru("onSelect","select",null,i,s),a.push({event:i,listeners:c}),i.target=pl)))}function mi(a,i){var s={};return s[a.toLowerCase()]=i.toLowerCase(),s["Webkit"+a]="webkit"+i,s["Moz"+a]="moz"+i,s}var vl={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},$h={},Ax={};Ir&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function pi(a){if($h[a])return $h[a];if(!vl[a])return a;var i=vl[a],s;for(s in i)if(i.hasOwnProperty(s)&&s in Ax)return $h[a]=i[s];return a}var Nx=pi("animationend"),Ex=pi("animationiteration"),Cx=pi("animationstart"),tD=pi("transitionrun"),nD=pi("transitionstart"),rD=pi("transitioncancel"),Tx=pi("transitionend"),Mx=new Map,Uh="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(" ");Uh.push("scrollEnd");function dr(a,i){Mx.set(a,i),di(i,[a])}var Bu=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)},Gn=[],yl=0,qh=0;function Iu(){for(var a=yl,i=qh=yl=0;i<a;){var s=Gn[i];Gn[i++]=null;var c=Gn[i];Gn[i++]=null;var v=Gn[i];Gn[i++]=null;var g=Gn[i];if(Gn[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&&Dx(s,v,g)}}function $u(a,i,s,c){Gn[yl++]=a,Gn[yl++]=i,Gn[yl++]=s,Gn[yl++]=c,qh|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function Hh(a,i,s,c){return $u(a,i,s,c),Uu(a)}function vi(a,i){return $u(a,null,null,i),Uu(a)}function Dx(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 Uu(a){if(50<os)throw os=0,Qm=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var gl={};function aD(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 Pn(a,i,s,c){return new aD(a,i,s,c)}function Fh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $r(a,i){var s=a.alternate;return s===null?(s=Pn(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 kx(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 qu(a,i,s,c,v,g){var O=0;if(c=a,typeof a=="function")Fh(a)&&(O=1);else if(typeof a=="string")O=uk(a,s,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Z:return a=Pn(31,s,i,v),a.elementType=Z,a.lanes=g,a;case j:return yi(s.children,v,g,i);case _:O=8,v|=24;break;case N:return a=Pn(12,s,i,v|2),a.elementType=N,a.lanes=g,a;case D:return a=Pn(13,s,i,v),a.elementType=D,a.lanes=g,a;case T:return a=Pn(19,s,i,v),a.elementType=T,a.lanes=g,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:O=10;break e;case A:O=9;break e;case M:O=11;break e;case k:O=14;break e;case $:O=16,c=null;break e}O=29,s=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=Pn(O,s,i,v),i.elementType=a,i.type=c,i.lanes=g,i}function yi(a,i,s,c){return a=Pn(7,a,c,i),a.lanes=s,a}function Kh(a,i,s){return a=Pn(6,a,null,i),a.lanes=s,a}function Px(a){var i=Pn(18,null,null,0);return i.stateNode=a,i}function Yh(a,i,s){return i=Pn(4,a.children!==null?a.children:[],a.key,i),i.lanes=s,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var Rx=new WeakMap;function Vn(a,i){if(typeof a=="object"&&a!==null){var s=Rx.get(a);return s!==void 0?s:(i={value:a,source:i,stack:zr(i)},Rx.set(a,i),i)}return{value:a,source:i,stack:zr(i)}}var bl=[],xl=0,Hu=null,$o=0,Xn=[],Zn=0,Ca=null,Sr=1,jr="";function Ur(a,i){bl[xl++]=$o,bl[xl++]=Hu,Hu=a,$o=i}function zx(a,i,s){Xn[Zn++]=Sr,Xn[Zn++]=jr,Xn[Zn++]=Ca,Ca=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 Gh(a){a.return!==null&&(Ur(a,1),zx(a,1,0))}function Vh(a){for(;a===Hu;)Hu=bl[--xl],bl[xl]=null,$o=bl[--xl],bl[xl]=null;for(;a===Ca;)Ca=Xn[--Zn],Xn[Zn]=null,jr=Xn[--Zn],Xn[Zn]=null,Sr=Xn[--Zn],Xn[Zn]=null}function Lx(a,i){Xn[Zn++]=Sr,Xn[Zn++]=jr,Xn[Zn++]=Ca,Sr=i.id,jr=i.overflow,Ca=a}var Zt=null,it=null,Re=!1,Ta=null,Wn=!1,Xh=Error(r(519));function Ma(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Uo(Vn(i,a)),Xh}function Bx(a){var i=a.stateNode,s=a.type,c=a.memoizedProps;switch(i[Xt]=a,i[vn]=c,s){case"dialog":De("cancel",i),De("close",i);break;case"iframe":case"object":case"embed":De("load",i);break;case"video":case"audio":for(s=0;s<us.length;s++)De(us[s],i);break;case"source":De("error",i);break;case"img":case"image":case"link":De("error",i),De("load",i);break;case"details":De("toggle",i);break;case"input":De("invalid",i),Wb(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":De("invalid",i);break;case"textarea":De("invalid",i),Jb(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||tS(i.textContent,s)?(c.popover!=null&&(De("beforetoggle",i),De("toggle",i)),c.onScroll!=null&&De("scroll",i),c.onScrollEnd!=null&&De("scrollend",i),c.onClick!=null&&(i.onclick=Br),i=!0):i=!1,i||Ma(a,!0)}function Ix(a){for(Zt=a.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Zt=Zt.return}}function wl(a){if(a!==Zt)return!1;if(!Re)return Ix(a),Re=!0,!1;var i=a.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=a.type,s=!(s!=="form"&&s!=="button")||hp(a.type,a.memoizedProps)),s=!s),s&&it&&Ma(a),Ix(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));it=cS(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));it=cS(a)}else i===27?(i=it,Ka(a.type)?(a=gp,gp=null,it=a):it=i):it=Zt?Jn(a.stateNode.nextSibling):null;return!0}function gi(){it=Zt=null,Re=!1}function Zh(){var a=Ta;return a!==null&&(wn===null?wn=a:wn.push.apply(wn,a),Ta=null),a}function Uo(a){Ta===null?Ta=[a]:Ta.push(a)}var Wh=R(null),bi=null,qr=null;function Da(a,i,s){oe(Wh,i._currentValue),i._currentValue=s}function Hr(a){a._currentValue=Wh.current,G(Wh)}function Qh(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 Jh(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 E=g;g=v;for(var z=0;z<i.length;z++)if(E.context===i[z]){g.lanes|=s,E=g.alternate,E!==null&&(E.lanes|=s),Qh(g.return,s,a),c||(O=null);break e}g=E.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),Qh(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 Sl(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 E=v.type;kn(v.pendingProps.value,O.value)||(a!==null?a.push(E):a=[E])}}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(ms):a=[ms])}v=v.return}a!==null&&Jh(i,a,s,c),i.flags|=262144}function Fu(a){for(a=a.firstContext;a!==null;){if(!kn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function xi(a){bi=a,qr=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Wt(a){return $x(bi,a)}function Ku(a,i){return bi===null&&xi(a),$x(a,i)}function $x(a,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},qr===null){if(a===null)throw Error(r(308));qr=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else qr=qr.next=i;return s}var iD=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()})}},lD=e.unstable_scheduleCallback,oD=e.unstable_NormalPriority,Nt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function em(){return{controller:new iD,data:new Map,refCount:0}}function qo(a){a.refCount--,a.refCount===0&&lD(oD,function(){a.controller.abort()})}var Ho=null,tm=0,jl=0,_l=null;function sD(a,i){if(Ho===null){var s=Ho=[];tm=0,jl=ap(),_l={status:"pending",value:void 0,then:function(c){s.push(c)}}}return tm++,i.then(Ux,Ux),i}function Ux(){if(--tm===0&&Ho!==null){_l!==null&&(_l.status="fulfilled");var a=Ho;Ho=null,jl=0,_l=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function uD(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 qx=B.S;B.S=function(a,i){Ow=xt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&sD(a,i),qx!==null&&qx(a,i)};var wi=R(null);function nm(){var a=wi.current;return a!==null?a:et.pooledCache}function Yu(a,i){i===null?oe(wi,wi.current):oe(wi,i.pool)}function Hx(){var a=nm();return a===null?null:{parent:Nt._currentValue,pool:a}}var Ol=Error(r(460)),rm=Error(r(474)),Gu=Error(r(542)),Vu={then:function(){}};function Fx(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Kx(a,i,s){switch(s=a[s],s===void 0?a.push(i):s!==i&&(i.then(Br,Br),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Gx(a),a;default:if(typeof i.status=="string")i.then(Br,Br);else{if(a=et,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,Gx(a),a}throw ji=i,Ol}}function Si(a){try{var i=a._init;return i(a._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ji=s,Ol):s}}var ji=null;function Yx(){if(ji===null)throw Error(r(459));var a=ji;return ji=null,a}function Gx(a){if(a===Ol||a===Gu)throw Error(r(483))}var Al=null,Fo=0;function Xu(a){var i=Fo;return Fo+=1,Al===null&&(Al=[]),Kx(Al,a,i)}function Ko(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Zu(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 Vx(a){function i(I,L){if(a){var H=I.deletions;H===null?(I.deletions=[L],I.flags|=16):H.push(L)}}function s(I,L){if(!a)return null;for(;L!==null;)i(I,L),L=L.sibling;return null}function c(I){for(var L=new Map;I!==null;)I.key!==null?L.set(I.key,I):L.set(I.index,I),I=I.sibling;return L}function v(I,L){return I=$r(I,L),I.index=0,I.sibling=null,I}function g(I,L,H){return I.index=H,a?(H=I.alternate,H!==null?(H=H.index,H<L?(I.flags|=67108866,L):H):(I.flags|=67108866,L)):(I.flags|=1048576,L)}function O(I){return a&&I.alternate===null&&(I.flags|=67108866),I}function E(I,L,H,te){return L===null||L.tag!==6?(L=Kh(H,I.mode,te),L.return=I,L):(L=v(L,H),L.return=I,L)}function z(I,L,H,te){var we=H.type;return we===j?ee(I,L,H.props.children,te,H.key):L!==null&&(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Si(we)===L.type)?(L=v(L,H.props),Ko(L,H),L.return=I,L):(L=qu(H.type,H.key,H.props,null,I.mode,te),Ko(L,H),L.return=I,L)}function F(I,L,H,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==H.containerInfo||L.stateNode.implementation!==H.implementation?(L=Yh(H,I.mode,te),L.return=I,L):(L=v(L,H.children||[]),L.return=I,L)}function ee(I,L,H,te,we){return L===null||L.tag!==7?(L=yi(H,I.mode,te,we),L.return=I,L):(L=v(L,H),L.return=I,L)}function ae(I,L,H){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Kh(""+L,I.mode,H),L.return=I,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return H=qu(L.type,L.key,L.props,null,I.mode,H),Ko(H,L),H.return=I,H;case S:return L=Yh(L,I.mode,H),L.return=I,L;case $:return L=Si(L),ae(I,L,H)}if(ne(L)||P(L))return L=yi(L,I.mode,H,null),L.return=I,L;if(typeof L.then=="function")return ae(I,Xu(L),H);if(L.$$typeof===C)return ae(I,Ku(I,L),H);Zu(I,L)}return null}function Y(I,L,H,te){var we=L!==null?L.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return we!==null?null:E(I,L,""+H,te);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case w:return H.key===we?z(I,L,H,te):null;case S:return H.key===we?F(I,L,H,te):null;case $:return H=Si(H),Y(I,L,H,te)}if(ne(H)||P(H))return we!==null?null:ee(I,L,H,te,null);if(typeof H.then=="function")return Y(I,L,Xu(H),te);if(H.$$typeof===C)return Y(I,L,Ku(I,H),te);Zu(I,H)}return null}function W(I,L,H,te,we){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return I=I.get(H)||null,E(L,I,""+te,we);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case w:return I=I.get(te.key===null?H:te.key)||null,z(L,I,te,we);case S:return I=I.get(te.key===null?H:te.key)||null,F(L,I,te,we);case $:return te=Si(te),W(I,L,H,te,we)}if(ne(te)||P(te))return I=I.get(H)||null,ee(L,I,te,we,null);if(typeof te.then=="function")return W(I,L,H,Xu(te),we);if(te.$$typeof===C)return W(I,L,H,Ku(L,te),we);Zu(L,te)}return null}function ve(I,L,H,te){for(var we=null,Be=null,ge=L,Te=L=0,Pe=null;ge!==null&&Te<H.length;Te++){ge.index>Te?(Pe=ge,ge=null):Pe=ge.sibling;var Ie=Y(I,ge,H[Te],te);if(Ie===null){ge===null&&(ge=Pe);break}a&&ge&&Ie.alternate===null&&i(I,ge),L=g(Ie,L,Te),Be===null?we=Ie:Be.sibling=Ie,Be=Ie,ge=Pe}if(Te===H.length)return s(I,ge),Re&&Ur(I,Te),we;if(ge===null){for(;Te<H.length;Te++)ge=ae(I,H[Te],te),ge!==null&&(L=g(ge,L,Te),Be===null?we=ge:Be.sibling=ge,Be=ge);return Re&&Ur(I,Te),we}for(ge=c(ge);Te<H.length;Te++)Pe=W(ge,I,Te,H[Te],te),Pe!==null&&(a&&Pe.alternate!==null&&ge.delete(Pe.key===null?Te:Pe.key),L=g(Pe,L,Te),Be===null?we=Pe:Be.sibling=Pe,Be=Pe);return a&&ge.forEach(function(Za){return i(I,Za)}),Re&&Ur(I,Te),we}function je(I,L,H,te){if(H==null)throw Error(r(151));for(var we=null,Be=null,ge=L,Te=L=0,Pe=null,Ie=H.next();ge!==null&&!Ie.done;Te++,Ie=H.next()){ge.index>Te?(Pe=ge,ge=null):Pe=ge.sibling;var Za=Y(I,ge,Ie.value,te);if(Za===null){ge===null&&(ge=Pe);break}a&&ge&&Za.alternate===null&&i(I,ge),L=g(Za,L,Te),Be===null?we=Za:Be.sibling=Za,Be=Za,ge=Pe}if(Ie.done)return s(I,ge),Re&&Ur(I,Te),we;if(ge===null){for(;!Ie.done;Te++,Ie=H.next())Ie=ae(I,Ie.value,te),Ie!==null&&(L=g(Ie,L,Te),Be===null?we=Ie:Be.sibling=Ie,Be=Ie);return Re&&Ur(I,Te),we}for(ge=c(ge);!Ie.done;Te++,Ie=H.next())Ie=W(ge,I,Te,Ie.value,te),Ie!==null&&(a&&Ie.alternate!==null&&ge.delete(Ie.key===null?Te:Ie.key),L=g(Ie,L,Te),Be===null?we=Ie:Be.sibling=Ie,Be=Ie);return a&&ge.forEach(function(xk){return i(I,xk)}),Re&&Ur(I,Te),we}function Ze(I,L,H,te){if(typeof H=="object"&&H!==null&&H.type===j&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case w:e:{for(var we=H.key;L!==null;){if(L.key===we){if(we=H.type,we===j){if(L.tag===7){s(I,L.sibling),te=v(L,H.props.children),te.return=I,I=te;break e}}else if(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Si(we)===L.type){s(I,L.sibling),te=v(L,H.props),Ko(te,H),te.return=I,I=te;break e}s(I,L);break}else i(I,L);L=L.sibling}H.type===j?(te=yi(H.props.children,I.mode,te,H.key),te.return=I,I=te):(te=qu(H.type,H.key,H.props,null,I.mode,te),Ko(te,H),te.return=I,I=te)}return O(I);case S:e:{for(we=H.key;L!==null;){if(L.key===we)if(L.tag===4&&L.stateNode.containerInfo===H.containerInfo&&L.stateNode.implementation===H.implementation){s(I,L.sibling),te=v(L,H.children||[]),te.return=I,I=te;break e}else{s(I,L);break}else i(I,L);L=L.sibling}te=Yh(H,I.mode,te),te.return=I,I=te}return O(I);case $:return H=Si(H),Ze(I,L,H,te)}if(ne(H))return ve(I,L,H,te);if(P(H)){if(we=P(H),typeof we!="function")throw Error(r(150));return H=we.call(H),je(I,L,H,te)}if(typeof H.then=="function")return Ze(I,L,Xu(H),te);if(H.$$typeof===C)return Ze(I,L,Ku(I,H),te);Zu(I,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,L!==null&&L.tag===6?(s(I,L.sibling),te=v(L,H),te.return=I,I=te):(s(I,L),te=Kh(H,I.mode,te),te.return=I,I=te),O(I)):s(I,L)}return function(I,L,H,te){try{Fo=0;var we=Ze(I,L,H,te);return Al=null,we}catch(ge){if(ge===Ol||ge===Gu)throw ge;var Be=Pn(29,ge,null,I.mode);return Be.lanes=te,Be.return=I,Be}finally{}}}var _i=Vx(!0),Xx=Vx(!1),ka=!1;function am(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function im(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 Pa(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ra(a,i,s){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(qe&2)!==0){var v=c.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),c.pending=i,i=Uu(a),Dx(a,null,s),i}return $u(a,c,i,s),Uu(a)}function Yo(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,$b(a,s)}}function lm(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 om=!1;function Go(){if(om){var a=_l;if(a!==null)throw a}}function Vo(a,i,s,c){om=!1;var v=a.updateQueue;ka=!1;var g=v.firstBaseUpdate,O=v.lastBaseUpdate,E=v.shared.pending;if(E!==null){v.shared.pending=null;var z=E,F=z.next;z.next=null,O===null?g=F:O.next=F,O=z;var ee=a.alternate;ee!==null&&(ee=ee.updateQueue,E=ee.lastBaseUpdate,E!==O&&(E===null?ee.firstBaseUpdate=F:E.next=F,ee.lastBaseUpdate=z))}if(g!==null){var ae=v.baseState;O=0,ee=F=z=null,E=g;do{var Y=E.lane&-536870913,W=Y!==E.lane;if(W?(ke&Y)===Y:(c&Y)===Y){Y!==0&&Y===jl&&(om=!0),ee!==null&&(ee=ee.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=a,je=E;Y=i;var Ze=s;switch(je.tag){case 1:if(ve=je.payload,typeof ve=="function"){ae=ve.call(Ze,ae,Y);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=je.payload,Y=typeof ve=="function"?ve.call(Ze,ae,Y):ve,Y==null)break e;ae=y({},ae,Y);break e;case 2:ka=!0}}Y=E.callback,Y!==null&&(a.flags|=64,W&&(a.flags|=8192),W=v.callbacks,W===null?v.callbacks=[Y]:W.push(Y))}else W={lane:Y,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ee===null?(F=ee=W,z=ae):ee=ee.next=W,O|=Y;if(E=E.next,E===null){if(E=v.shared.pending,E===null)break;W=E,E=W.next,W.next=null,v.lastBaseUpdate=W,v.shared.pending=null}}while(!0);ee===null&&(z=ae),v.baseState=z,v.firstBaseUpdate=F,v.lastBaseUpdate=ee,g===null&&(v.shared.lanes=0),$a|=O,a.lanes=O,a.memoizedState=ae}}function Zx(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function Wx(a,i){var s=a.callbacks;if(s!==null)for(a.callbacks=null,a=0;a<s.length;a++)Zx(s[a],i)}var Nl=R(null),Wu=R(0);function Qx(a,i){a=Qr,oe(Wu,a),oe(Nl,i),Qr=a|i.baseLanes}function sm(){oe(Wu,Qr),oe(Nl,Nl.current)}function um(){Qr=Wu.current,G(Nl),G(Wu)}var Rn=R(null),Qn=null;function za(a){var i=a.alternate;oe(wt,wt.current&1),oe(Rn,a),Qn===null&&(i===null||Nl.current!==null||i.memoizedState!==null)&&(Qn=a)}function cm(a){oe(wt,wt.current),oe(Rn,a),Qn===null&&(Qn=a)}function Jx(a){a.tag===22?(oe(wt,wt.current),oe(Rn,a),Qn===null&&(Qn=a)):La()}function La(){oe(wt,wt.current),oe(Rn,Rn.current)}function zn(a){G(Rn),Qn===a&&(Qn=null),G(wt)}var wt=R(0);function Qu(a){for(var i=a;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||vp(s)||yp(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 Fr=0,Ee=null,Ve=null,Et=null,Ju=!1,El=!1,Oi=!1,ec=0,Xo=0,Cl=null,cD=0;function vt(){throw Error(r(321))}function fm(a,i){if(i===null)return!1;for(var s=0;s<i.length&&s<a.length;s++)if(!kn(a[s],i[s]))return!1;return!0}function dm(a,i,s,c,v,g){return Fr=g,Ee=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,B.H=a===null||a.memoizedState===null?z1:Nm,Oi=!1,g=s(c,v),Oi=!1,El&&(g=t1(i,s,c,v)),e1(a),g}function e1(a){B.H=Qo;var i=Ve!==null&&Ve.next!==null;if(Fr=0,Et=Ve=Ee=null,Ju=!1,Xo=0,Cl=null,i)throw Error(r(300));a===null||Ct||(a=a.dependencies,a!==null&&Fu(a)&&(Ct=!0))}function t1(a,i,s,c){Ee=a;var v=0;do{if(El&&(Cl=null),Xo=0,El=!1,25<=v)throw Error(r(301));if(v+=1,Et=Ve=null,a.updateQueue!=null){var g=a.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}B.H=L1,g=i(s,c)}while(El);return g}function fD(){var a=B.H,i=a.useState()[0];return i=typeof i.then=="function"?Zo(i):i,a=a.useState()[0],(Ve!==null?Ve.memoizedState:null)!==a&&(Ee.flags|=1024),i}function hm(){var a=ec!==0;return ec=0,a}function mm(a,i,s){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~s}function pm(a){if(Ju){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Ju=!1}Fr=0,Et=Ve=Ee=null,El=!1,Xo=ec=0,Cl=null}function cn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ee.memoizedState=Et=a:Et=Et.next=a,Et}function St(){if(Ve===null){var a=Ee.alternate;a=a!==null?a.memoizedState:null}else a=Ve.next;var i=Et===null?Ee.memoizedState:Et.next;if(i!==null)Et=i,Ve=a;else{if(a===null)throw Ee.alternate===null?Error(r(467)):Error(r(310));Ve=a,a={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Et===null?Ee.memoizedState=Et=a:Et=Et.next=a}return Et}function tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zo(a){var i=Xo;return Xo+=1,Cl===null&&(Cl=[]),a=Kx(Cl,a,i),i=Ee,(Et===null?i.memoizedState:Et.next)===null&&(i=i.alternate,B.H=i===null||i.memoizedState===null?z1:Nm),a}function nc(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Zo(a);if(a.$$typeof===C)return Wt(a)}throw Error(r(438,String(a)))}function vm(a){var i=null,s=Ee.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var c=Ee.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=tc(),Ee.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]=V;return i.index++,s}function Kr(a,i){return typeof i=="function"?i(a):i}function rc(a){var i=St();return ym(i,Ve,a)}function ym(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 E=O=null,z=null,F=i,ee=!1;do{var ae=F.lane&-536870913;if(ae!==F.lane?(ke&ae)===ae:(Fr&ae)===ae){var Y=F.revertLane;if(Y===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ae===jl&&(ee=!0);else if((Fr&Y)===Y){F=F.next,Y===jl&&(ee=!0);continue}else ae={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(E=z=ae,O=g):z=z.next=ae,Ee.lanes|=Y,$a|=Y;ae=F.action,Oi&&s(g,ae),g=F.hasEagerState?F.eagerState:s(g,ae)}else Y={lane:ae,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(E=z=Y,O=g):z=z.next=Y,Ee.lanes|=ae,$a|=ae;F=F.next}while(F!==null&&F!==i);if(z===null?O=g:z.next=E,!kn(g,a.memoizedState)&&(Ct=!0,ee&&(s=_l,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 gm(a){var i=St(),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);kn(g,i.memoizedState)||(Ct=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function n1(a,i,s){var c=Ee,v=St(),g=Re;if(g){if(s===void 0)throw Error(r(407));s=s()}else s=i();var O=!kn((Ve||v).memoizedState,s);if(O&&(v.memoizedState=s,Ct=!0),v=v.queue,wm(i1.bind(null,c,v,a),[a]),v.getSnapshot!==i||O||Et!==null&&Et.memoizedState.tag&1){if(c.flags|=2048,Tl(9,{destroy:void 0},a1.bind(null,c,v,s,i),null),et===null)throw Error(r(349));g||(Fr&127)!==0||r1(c,i,s)}return s}function r1(a,i,s){a.flags|=16384,a={getSnapshot:i,value:s},i=Ee.updateQueue,i===null?(i=tc(),Ee.updateQueue=i,i.stores=[a]):(s=i.stores,s===null?i.stores=[a]:s.push(a))}function a1(a,i,s,c){i.value=s,i.getSnapshot=c,l1(i)&&o1(a)}function i1(a,i,s){return s(function(){l1(i)&&o1(a)})}function l1(a){var i=a.getSnapshot;a=a.value;try{var s=i();return!kn(a,s)}catch{return!0}}function o1(a){var i=vi(a,2);i!==null&&Sn(i,a,2)}function bm(a){var i=cn();if(typeof a=="function"){var s=a;if(a=s(),Oi){Aa(!0);try{s()}finally{Aa(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:a},i}function s1(a,i,s,c){return a.baseState=s,ym(a,Ve,typeof c=="function"?c:Kr)}function dD(a,i,s,c,v){if(lc(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)}};B.T!==null?s(!0):g.isTransition=!1,c(g),s=i.pending,s===null?(g.next=i.pending=g,u1(i,g)):(g.next=s.next,i.pending=s.next=g)}}function u1(a,i){var s=i.action,c=i.payload,v=a.state;if(i.isTransition){var g=B.T,O={};B.T=O;try{var E=s(v,c),z=B.S;z!==null&&z(O,E),c1(a,i,E)}catch(F){xm(a,i,F)}finally{g!==null&&O.types!==null&&(g.types=O.types),B.T=g}}else try{g=s(v,c),c1(a,i,g)}catch(F){xm(a,i,F)}}function c1(a,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){f1(a,i,c)},function(c){return xm(a,i,c)}):f1(a,i,s)}function f1(a,i,s){i.status="fulfilled",i.value=s,d1(i),a.state=s,i=a.pending,i!==null&&(s=i.next,s===i?a.pending=null:(s=s.next,i.next=s,u1(a,s)))}function xm(a,i,s){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=s,d1(i),i=i.next;while(i!==c)}a.action=null}function d1(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function h1(a,i){return i}function m1(a,i){if(Re){var s=et.formState;if(s!==null){e:{var c=Ee;if(Re){if(it){t:{for(var v=it,g=Wn;v.nodeType!==8;){if(!g){v=null;break t}if(v=Jn(v.nextSibling),v===null){v=null;break t}}g=v.data,v=g==="F!"||g==="F"?v:null}if(v){it=Jn(v.nextSibling),c=v.data==="F!";break e}}Ma(c)}c=!1}c&&(i=s[0])}}return s=cn(),s.memoizedState=s.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:i},s.queue=c,s=k1.bind(null,Ee,c),c.dispatch=s,c=bm(!1),g=Am.bind(null,Ee,!1,c.queue),c=cn(),v={state:i,dispatch:null,action:a,pending:null},c.queue=v,s=dD.bind(null,Ee,v,g,s),v.dispatch=s,c.memoizedState=a,[i,s,!1]}function p1(a){var i=St();return v1(i,Ve,a)}function v1(a,i,s){if(i=ym(a,i,h1)[0],a=rc(Kr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Zo(i)}catch(O){throw O===Ol?Gu:O}else c=i;i=St();var v=i.queue,g=v.dispatch;return s!==i.memoizedState&&(Ee.flags|=2048,Tl(9,{destroy:void 0},hD.bind(null,v,s),null)),[c,g,a]}function hD(a,i){a.action=i}function y1(a){var i=St(),s=Ve;if(s!==null)return v1(i,s,a);St(),i=i.memoizedState,s=St();var c=s.queue.dispatch;return s.memoizedState=a,[i,c,!1]}function Tl(a,i,s,c){return a={tag:a,create:s,deps:c,inst:i,next:null},i=Ee.updateQueue,i===null&&(i=tc(),Ee.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 g1(){return St().memoizedState}function ac(a,i,s,c){var v=cn();Ee.flags|=a,v.memoizedState=Tl(1|i,{destroy:void 0},s,c===void 0?null:c)}function ic(a,i,s,c){var v=St();c=c===void 0?null:c;var g=v.memoizedState.inst;Ve!==null&&c!==null&&fm(c,Ve.memoizedState.deps)?v.memoizedState=Tl(i,g,s,c):(Ee.flags|=a,v.memoizedState=Tl(1|i,g,s,c))}function b1(a,i){ac(8390656,8,a,i)}function wm(a,i){ic(2048,8,a,i)}function mD(a){Ee.flags|=4;var i=Ee.updateQueue;if(i===null)i=tc(),Ee.updateQueue=i,i.events=[a];else{var s=i.events;s===null?i.events=[a]:s.push(a)}}function x1(a){var i=St().memoizedState;return mD({ref:i,nextImpl:a}),function(){if((qe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function w1(a,i){return ic(4,2,a,i)}function S1(a,i){return ic(4,4,a,i)}function j1(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 _1(a,i,s){s=s!=null?s.concat([a]):null,ic(4,4,j1.bind(null,i,a),s)}function Sm(){}function O1(a,i){var s=St();i=i===void 0?null:i;var c=s.memoizedState;return i!==null&&fm(i,c[1])?c[0]:(s.memoizedState=[a,i],a)}function A1(a,i){var s=St();i=i===void 0?null:i;var c=s.memoizedState;if(i!==null&&fm(i,c[1]))return c[0];if(c=a(),Oi){Aa(!0);try{a()}finally{Aa(!1)}}return s.memoizedState=[c,i],c}function jm(a,i,s){return s===void 0||(Fr&1073741824)!==0&&(ke&261930)===0?a.memoizedState=i:(a.memoizedState=s,a=Nw(),Ee.lanes|=a,$a|=a,s)}function N1(a,i,s,c){return kn(s,i)?s:Nl.current!==null?(a=jm(a,s,c),kn(a,i)||(Ct=!0),a):(Fr&42)===0||(Fr&1073741824)!==0&&(ke&261930)===0?(Ct=!0,a.memoizedState=s):(a=Nw(),Ee.lanes|=a,$a|=a,i)}function E1(a,i,s,c,v){var g=Q.p;Q.p=g!==0&&8>g?g:8;var O=B.T,E={};B.T=E,Am(a,!1,i,s);try{var z=v(),F=B.S;if(F!==null&&F(E,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=uD(z,c);Wo(a,i,ee,In(a))}else Wo(a,i,c,In(a))}catch(ae){Wo(a,i,{then:function(){},status:"rejected",reason:ae},In())}finally{Q.p=g,O!==null&&E.types!==null&&(O.types=E.types),B.T=O}}function pD(){}function _m(a,i,s,c){if(a.tag!==5)throw Error(r(476));var v=C1(a).queue;E1(a,v,i,ie,s===null?pD:function(){return T1(a),s(c)})}function C1(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:Kr,lastRenderedState:ie},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:s},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function T1(a){var i=C1(a);i.next===null&&(i=a.alternate.memoizedState),Wo(a,i.next.queue,{},In())}function Om(){return Wt(ms)}function M1(){return St().memoizedState}function D1(){return St().memoizedState}function vD(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var s=In();a=Pa(s);var c=Ra(i,a,s);c!==null&&(Sn(c,i,s),Yo(c,i,s)),i={cache:em()},a.payload=i;return}i=i.return}}function yD(a,i,s){var c=In();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},lc(a)?P1(i,s):(s=Hh(a,i,s,c),s!==null&&(Sn(s,a,c),R1(s,i,c)))}function k1(a,i,s){var c=In();Wo(a,i,s,c)}function Wo(a,i,s,c){var v={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(lc(a))P1(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,E=g(O,s);if(v.hasEagerState=!0,v.eagerState=E,kn(E,O))return $u(a,i,v,0),et===null&&Iu(),!1}catch{}finally{}if(s=Hh(a,i,v,c),s!==null)return Sn(s,a,c),R1(s,i,c),!0}return!1}function Am(a,i,s,c){if(c={lane:2,revertLane:ap(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},lc(a)){if(i)throw Error(r(479))}else i=Hh(a,s,c,2),i!==null&&Sn(i,a,2)}function lc(a){var i=a.alternate;return a===Ee||i!==null&&i===Ee}function P1(a,i){El=Ju=!0;var s=a.pending;s===null?i.next=i:(i.next=s.next,s.next=i),a.pending=i}function R1(a,i,s){if((s&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,s|=c,i.lanes=s,$b(a,s)}}var Qo={readContext:Wt,use:nc,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Qo.useEffectEvent=vt;var z1={readContext:Wt,use:nc,useCallback:function(a,i){return cn().memoizedState=[a,i===void 0?null:i],a},useContext:Wt,useEffect:b1,useImperativeHandle:function(a,i,s){s=s!=null?s.concat([a]):null,ac(4194308,4,j1.bind(null,i,a),s)},useLayoutEffect:function(a,i){return ac(4194308,4,a,i)},useInsertionEffect:function(a,i){ac(4,2,a,i)},useMemo:function(a,i){var s=cn();i=i===void 0?null:i;var c=a();if(Oi){Aa(!0);try{a()}finally{Aa(!1)}}return s.memoizedState=[c,i],c},useReducer:function(a,i,s){var c=cn();if(s!==void 0){var v=s(i);if(Oi){Aa(!0);try{s(i)}finally{Aa(!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=yD.bind(null,Ee,a),[c.memoizedState,a]},useRef:function(a){var i=cn();return a={current:a},i.memoizedState=a},useState:function(a){a=bm(a);var i=a.queue,s=k1.bind(null,Ee,i);return i.dispatch=s,[a.memoizedState,s]},useDebugValue:Sm,useDeferredValue:function(a,i){var s=cn();return jm(s,a,i)},useTransition:function(){var a=bm(!1);return a=E1.bind(null,Ee,a.queue,!0,!1),cn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,s){var c=Ee,v=cn();if(Re){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),et===null)throw Error(r(349));(ke&127)!==0||r1(c,i,s)}v.memoizedState=s;var g={value:s,getSnapshot:i};return v.queue=g,b1(i1.bind(null,c,g,a),[a]),c.flags|=2048,Tl(9,{destroy:void 0},a1.bind(null,c,g,s,i),null),s},useId:function(){var a=cn(),i=et.identifierPrefix;if(Re){var s=jr,c=Sr;s=(c&~(1<<32-Dn(c)-1)).toString(32)+s,i="_"+i+"R_"+s,s=ec++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=cD++,i="_"+i+"r_"+s.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:Om,useFormState:m1,useActionState:m1,useOptimistic:function(a){var i=cn();i.memoizedState=i.baseState=a;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Am.bind(null,Ee,!0,s),s.dispatch=i,[a,i]},useMemoCache:vm,useCacheRefresh:function(){return cn().memoizedState=vD.bind(null,Ee)},useEffectEvent:function(a){var i=cn(),s={impl:a};return i.memoizedState=s,function(){if((qe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Nm={readContext:Wt,use:nc,useCallback:O1,useContext:Wt,useEffect:wm,useImperativeHandle:_1,useInsertionEffect:w1,useLayoutEffect:S1,useMemo:A1,useReducer:rc,useRef:g1,useState:function(){return rc(Kr)},useDebugValue:Sm,useDeferredValue:function(a,i){var s=St();return N1(s,Ve.memoizedState,a,i)},useTransition:function(){var a=rc(Kr)[0],i=St().memoizedState;return[typeof a=="boolean"?a:Zo(a),i]},useSyncExternalStore:n1,useId:M1,useHostTransitionStatus:Om,useFormState:p1,useActionState:p1,useOptimistic:function(a,i){var s=St();return s1(s,Ve,a,i)},useMemoCache:vm,useCacheRefresh:D1};Nm.useEffectEvent=x1;var L1={readContext:Wt,use:nc,useCallback:O1,useContext:Wt,useEffect:wm,useImperativeHandle:_1,useInsertionEffect:w1,useLayoutEffect:S1,useMemo:A1,useReducer:gm,useRef:g1,useState:function(){return gm(Kr)},useDebugValue:Sm,useDeferredValue:function(a,i){var s=St();return Ve===null?jm(s,a,i):N1(s,Ve.memoizedState,a,i)},useTransition:function(){var a=gm(Kr)[0],i=St().memoizedState;return[typeof a=="boolean"?a:Zo(a),i]},useSyncExternalStore:n1,useId:M1,useHostTransitionStatus:Om,useFormState:y1,useActionState:y1,useOptimistic:function(a,i){var s=St();return Ve!==null?s1(s,Ve,a,i):(s.baseState=a,[a,s.queue.dispatch])},useMemoCache:vm,useCacheRefresh:D1};L1.useEffectEvent=x1;function Em(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 Cm={enqueueSetState:function(a,i,s){a=a._reactInternals;var c=In(),v=Pa(c);v.payload=i,s!=null&&(v.callback=s),i=Ra(a,v,c),i!==null&&(Sn(i,a,c),Yo(i,a,c))},enqueueReplaceState:function(a,i,s){a=a._reactInternals;var c=In(),v=Pa(c);v.tag=1,v.payload=i,s!=null&&(v.callback=s),i=Ra(a,v,c),i!==null&&(Sn(i,a,c),Yo(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var s=In(),c=Pa(s);c.tag=2,i!=null&&(c.callback=i),i=Ra(a,c,s),i!==null&&(Sn(i,a,s),Yo(i,a,s))}};function B1(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?!Bo(s,c)||!Bo(v,g):!0}function I1(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&&Cm.enqueueReplaceState(i,i.state,null)}function Ai(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 $1(a){Bu(a)}function U1(a){console.error(a)}function q1(a){Bu(a)}function oc(a,i){try{var s=a.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function H1(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 Tm(a,i,s){return s=Pa(s),s.tag=3,s.payload={element:null},s.callback=function(){oc(a,i)},s}function F1(a){return a=Pa(a),a.tag=3,a}function K1(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(){H1(i,s,c)}}var O=s.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(a.callback=function(){H1(i,s,c),typeof v!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var E=c.stack;this.componentDidCatch(c.value,{componentStack:E!==null?E:""})})}function gD(a,i,s,c,v){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=s.alternate,i!==null&&Sl(i,s,v,!0),s=Rn.current,s!==null){switch(s.tag){case 31:case 13:return Qn===null?bc():s.alternate===null&&yt===0&&(yt=3),s.flags&=-257,s.flags|=65536,s.lanes=v,c===Vu?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([c]):i.add(c),tp(a,c,v)),!1;case 22:return s.flags|=65536,c===Vu?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)),tp(a,c,v)),!1}throw Error(r(435,s.tag))}return tp(a,c,v),bc(),!1}if(Re)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,c!==Xh&&(a=Error(r(422),{cause:c}),Uo(Vn(a,s)))):(c!==Xh&&(i=Error(r(423),{cause:c}),Uo(Vn(i,s))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,c=Vn(c,s),v=Tm(a.stateNode,c,v),lm(a,v),yt!==4&&(yt=2)),!1;var g=Error(r(520),{cause:c});if(g=Vn(g,s),ls===null?ls=[g]:ls.push(g),yt!==4&&(yt=2),i===null)return!0;c=Vn(c,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,a=v&-v,s.lanes|=a,a=Tm(s.stateNode,c,a),lm(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"&&(Ua===null||!Ua.has(g))))return s.flags|=65536,v&=-v,s.lanes|=v,v=F1(v),K1(v,a,s,c),lm(s,v),!1}s=s.return}while(s!==null);return!1}var Mm=Error(r(461)),Ct=!1;function Qt(a,i,s,c){i.child=a===null?Xx(i,null,s,c):_i(i,a.child,s,c)}function Y1(a,i,s,c,v){s=s.render;var g=i.ref;if("ref"in c){var O={};for(var E in c)E!=="ref"&&(O[E]=c[E])}else O=c;return xi(i),c=dm(a,i,s,O,g,v),E=hm(),a!==null&&!Ct?(mm(a,i,v),Yr(a,i,v)):(Re&&E&&Gh(i),i.flags|=1,Qt(a,i,c,v),i.child)}function G1(a,i,s,c,v){if(a===null){var g=s.type;return typeof g=="function"&&!Fh(g)&&g.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=g,V1(a,i,g,c,v)):(a=qu(s.type,null,c,i,i.mode,v),a.ref=i.ref,a.return=i,i.child=a)}if(g=a.child,!Im(a,v)){var O=g.memoizedProps;if(s=s.compare,s=s!==null?s:Bo,s(O,c)&&a.ref===i.ref)return Yr(a,i,v)}return i.flags|=1,a=$r(g,c),a.ref=i.ref,a.return=i,i.child=a}function V1(a,i,s,c,v){if(a!==null){var g=a.memoizedProps;if(Bo(g,c)&&a.ref===i.ref)if(Ct=!1,i.pendingProps=c=g,Im(a,v))(a.flags&131072)!==0&&(Ct=!0);else return i.lanes=a.lanes,Yr(a,i,v)}return Dm(a,i,s,c,v)}function X1(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 Z1(a,i,g,s,c)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&Yu(i,g!==null?g.cachePool:null),g!==null?Qx(i,g):sm(),Jx(i);else return c=i.lanes=536870912,Z1(a,i,g!==null?g.baseLanes|s:s,s,c)}else g!==null?(Yu(i,g.cachePool),Qx(i,g),La(),i.memoizedState=null):(a!==null&&Yu(i,null),sm(),La());return Qt(a,i,v,s),i.child}function Jo(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Z1(a,i,s,c,v){var g=nm();return g=g===null?null:{parent:Nt._currentValue,pool:g},i.memoizedState={baseLanes:s,cachePool:g},a!==null&&Yu(i,null),sm(),Jx(i),a!==null&&Sl(a,i,c,!0),i.childLanes=v,null}function sc(a,i){return i=cc({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function W1(a,i,s){return _i(i,a.child,null,s),a=sc(i,i.pendingProps),a.flags|=2,zn(i),i.memoizedState=null,a}function bD(a,i,s){var c=i.pendingProps,v=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(Re){if(c.mode==="hidden")return a=sc(i,c),i.lanes=536870912,Jo(null,a);if(cm(i),(a=it)?(a=uS(a,Wn),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Ca!==null?{id:Sr,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},s=Px(a),s.return=i,i.child=s,Zt=i,it=null)):a=null,a===null)throw Ma(i);return i.lanes=536870912,null}return sc(i,c)}var g=a.memoizedState;if(g!==null){var O=g.dehydrated;if(cm(i),v)if(i.flags&256)i.flags&=-257,i=W1(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||Sl(a,i,s,!1),v=(s&a.childLanes)!==0,Ct||v){if(c=et,c!==null&&(O=Ub(c,s),O!==0&&O!==g.retryLane))throw g.retryLane=O,vi(a,O),Sn(c,a,O),Mm;bc(),i=W1(a,i,s)}else a=g.treeContext,it=Jn(O.nextSibling),Zt=i,Re=!0,Ta=null,Wn=!1,a!==null&&Lx(i,a),i=sc(i,c),i.flags|=4096;return i}return a=$r(a.child,{mode:c.mode,children:c.children}),a.ref=i.ref,i.child=a,a.return=i,a}function uc(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 Dm(a,i,s,c,v){return xi(i),s=dm(a,i,s,c,void 0,v),c=hm(),a!==null&&!Ct?(mm(a,i,v),Yr(a,i,v)):(Re&&c&&Gh(i),i.flags|=1,Qt(a,i,s,v),i.child)}function Q1(a,i,s,c,v,g){return xi(i),i.updateQueue=null,s=t1(i,c,s,v),e1(a),c=hm(),a!==null&&!Ct?(mm(a,i,g),Yr(a,i,g)):(Re&&c&&Gh(i),i.flags|=1,Qt(a,i,s,g),i.child)}function J1(a,i,s,c,v){if(xi(i),i.stateNode===null){var g=gl,O=s.contextType;typeof O=="object"&&O!==null&&(g=Wt(O)),g=new s(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Cm,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},am(i),O=s.contextType,g.context=typeof O=="object"&&O!==null?Wt(O):gl,g.state=i.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(Em(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&&Cm.enqueueReplaceState(g,g.state,null),Vo(i,c,g,v),Go(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){g=i.stateNode;var E=i.memoizedProps,z=Ai(s,E);g.props=z;var F=g.context,ee=s.contextType;O=gl,typeof ee=="object"&&ee!==null&&(O=Wt(ee));var ae=s.getDerivedStateFromProps;ee=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function",E=i.pendingProps!==E,ee||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E||F!==O)&&I1(i,g,c,O),ka=!1;var Y=i.memoizedState;g.state=Y,Vo(i,c,g,v),Go(),F=i.memoizedState,E||Y!==F||ka?(typeof ae=="function"&&(Em(i,s,ae,c),F=i.memoizedState),(z=ka||B1(i,s,z,c,Y,F,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=F),g.props=c,g.state=F,g.context=O,c=z):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,im(a,i),O=i.memoizedProps,ee=Ai(s,O),g.props=ee,ae=i.pendingProps,Y=g.context,F=s.contextType,z=gl,typeof F=="object"&&F!==null&&(z=Wt(F)),E=s.getDerivedStateFromProps,(F=typeof E=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O!==ae||Y!==z)&&I1(i,g,c,z),ka=!1,Y=i.memoizedState,g.state=Y,Vo(i,c,g,v),Go();var W=i.memoizedState;O!==ae||Y!==W||ka||a!==null&&a.dependencies!==null&&Fu(a.dependencies)?(typeof E=="function"&&(Em(i,s,E,c),W=i.memoizedState),(ee=ka||B1(i,s,ee,c,Y,W,z)||a!==null&&a.dependencies!==null&&Fu(a.dependencies))?(F||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,W,z),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,W,z)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&Y===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&Y===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=W),g.props=c,g.state=W,g.context=z,c=ee):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&Y===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&Y===a.memoizedState||(i.flags|=1024),c=!1)}return g=c,uc(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=_i(i,a.child,null,v),i.child=_i(i,null,s,v)):Qt(a,i,s,v),i.memoizedState=g.state,a=i.child):a=Yr(a,i,v),a}function ew(a,i,s,c){return gi(),i.flags|=256,Qt(a,i,s,c),i.child}var km={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pm(a){return{baseLanes:a,cachePool:Hx()}}function Rm(a,i,s){return a=a!==null?a.childLanes&~s:0,i&&(a|=Bn),a}function tw(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:(wt.current&2)!==0),O&&(v=!0,i.flags&=-129),O=(i.flags&32)!==0,i.flags&=-33,a===null){if(Re){if(v?za(i):La(),(a=it)?(a=uS(a,Wn),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Ca!==null?{id:Sr,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},s=Px(a),s.return=i,i.child=s,Zt=i,it=null)):a=null,a===null)throw Ma(i);return yp(a)?i.lanes=32:i.lanes=536870912,null}var E=c.children;return c=c.fallback,v?(La(),v=i.mode,E=cc({mode:"hidden",children:E},v),c=yi(c,v,s,null),E.return=i,c.return=i,E.sibling=c,i.child=E,c=i.child,c.memoizedState=Pm(s),c.childLanes=Rm(a,O,s),i.memoizedState=km,Jo(null,c)):(za(i),zm(i,E))}var z=a.memoizedState;if(z!==null&&(E=z.dehydrated,E!==null)){if(g)i.flags&256?(za(i),i.flags&=-257,i=Lm(a,i,s)):i.memoizedState!==null?(La(),i.child=a.child,i.flags|=128,i=null):(La(),E=c.fallback,v=i.mode,c=cc({mode:"visible",children:c.children},v),E=yi(E,v,s,null),E.flags|=2,c.return=i,E.return=i,c.sibling=E,i.child=c,_i(i,a.child,null,s),c=i.child,c.memoizedState=Pm(s),c.childLanes=Rm(a,O,s),i.memoizedState=km,i=Jo(null,c));else if(za(i),yp(E)){if(O=E.nextSibling&&E.nextSibling.dataset,O)var F=O.dgst;O=F,c=Error(r(419)),c.stack="",c.digest=O,Uo({value:c,source:null,stack:null}),i=Lm(a,i,s)}else if(Ct||Sl(a,i,s,!1),O=(s&a.childLanes)!==0,Ct||O){if(O=et,O!==null&&(c=Ub(O,s),c!==0&&c!==z.retryLane))throw z.retryLane=c,vi(a,c),Sn(O,a,c),Mm;vp(E)||bc(),i=Lm(a,i,s)}else vp(E)?(i.flags|=192,i.child=a.child,i=null):(a=z.treeContext,it=Jn(E.nextSibling),Zt=i,Re=!0,Ta=null,Wn=!1,a!==null&&Lx(i,a),i=zm(i,c.children),i.flags|=4096);return i}return v?(La(),E=c.fallback,v=i.mode,z=a.child,F=z.sibling,c=$r(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&65011712,F!==null?E=$r(F,E):(E=yi(E,v,s,null),E.flags|=2),E.return=i,c.return=i,c.sibling=E,i.child=c,Jo(null,c),c=i.child,E=a.child.memoizedState,E===null?E=Pm(s):(v=E.cachePool,v!==null?(z=Nt._currentValue,v=v.parent!==z?{parent:z,pool:z}:v):v=Hx(),E={baseLanes:E.baseLanes|s,cachePool:v}),c.memoizedState=E,c.childLanes=Rm(a,O,s),i.memoizedState=km,Jo(a.child,c)):(za(i),s=a.child,a=s.sibling,s=$r(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 zm(a,i){return i=cc({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function cc(a,i){return a=Pn(22,a,null,i),a.lanes=0,a}function Lm(a,i,s){return _i(i,a.child,null,s),a=zm(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function nw(a,i,s){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),Qh(a.return,i,s)}function Bm(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 rw(a,i,s){var c=i.pendingProps,v=c.revealOrder,g=c.tail;c=c.children;var O=wt.current,E=(O&2)!==0;if(E?(O=O&1|2,i.flags|=128):O&=1,oe(wt,O),Qt(a,i,c,s),c=Re?$o:0,!E&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&nw(a,s,i);else if(a.tag===19)nw(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&&Qu(a)===null&&(v=s),s=s.sibling;s=v,s===null?(v=i.child,i.child=null):(v=s.sibling,s.sibling=null),Bm(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&&Qu(a)===null){i.child=v;break}a=v.sibling,v.sibling=s,s=v,v=a}Bm(i,!0,s,null,g,c);break;case"together":Bm(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function Yr(a,i,s){if(a!==null&&(i.dependencies=a.dependencies),$a|=i.lanes,(s&i.childLanes)===0)if(a!==null){if(Sl(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=$r(a,a.pendingProps),i.child=s,s.return=i;a.sibling!==null;)a=a.sibling,s=s.sibling=$r(a,a.pendingProps),s.return=i;s.sibling=null}return i.child}function Im(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Fu(a)))}function xD(a,i,s){switch(i.tag){case 3:Je(i,i.stateNode.containerInfo),Da(i,Nt,a.memoizedState.cache),gi();break;case 27:case 5:_e(i);break;case 4:Je(i,i.stateNode.containerInfo);break;case 10:Da(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,cm(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(za(i),i.flags|=128,null):(s&i.child.childLanes)!==0?tw(a,i,s):(za(i),a=Yr(a,i,s),a!==null?a.sibling:null);za(i);break;case 19:var v=(a.flags&128)!==0;if(c=(s&i.childLanes)!==0,c||(Sl(a,i,s,!1),c=(s&i.childLanes)!==0),v){if(c)return rw(a,i,s);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),oe(wt,wt.current),c)break;return null;case 22:return i.lanes=0,X1(a,i,s,i.pendingProps);case 24:Da(i,Nt,a.memoizedState.cache)}return Yr(a,i,s)}function aw(a,i,s){if(a!==null)if(a.memoizedProps!==i.pendingProps)Ct=!0;else{if(!Im(a,s)&&(i.flags&128)===0)return Ct=!1,xD(a,i,s);Ct=(a.flags&131072)!==0}else Ct=!1,Re&&(i.flags&1048576)!==0&&zx(i,$o,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(a=Si(i.elementType),i.type=a,typeof a=="function")Fh(a)?(c=Ai(a,c),i.tag=1,i=J1(null,i,a,c,s)):(i.tag=0,i=Dm(null,i,a,c,s));else{if(a!=null){var v=a.$$typeof;if(v===M){i.tag=11,i=Y1(null,i,a,c,s);break e}else if(v===k){i.tag=14,i=G1(null,i,a,c,s);break e}}throw i=U(a)||a,Error(r(306,i,""))}}return i;case 0:return Dm(a,i,i.type,i.pendingProps,s);case 1:return c=i.type,v=Ai(c,i.pendingProps),J1(a,i,c,v,s);case 3:e:{if(Je(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var g=i.memoizedState;v=g.element,im(a,i),Vo(i,c,null,s);var O=i.memoizedState;if(c=O.cache,Da(i,Nt,c),c!==g.cache&&Jh(i,[Nt],s,!0),Go(),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=ew(a,i,c,s);break e}else if(c!==v){v=Vn(Error(r(424)),i),Uo(v),i=ew(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=Jn(a.firstChild),Zt=i,Re=!0,Ta=null,Wn=!0,s=Xx(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(gi(),c===v){i=Yr(a,i,s);break e}Qt(a,i,c,s)}i=i.child}return i;case 26:return uc(a,i),a===null?(s=pS(i.type,null,i.pendingProps,null))?i.memoizedState=s:Re||(s=i.type,a=i.pendingProps,c=Ac(xe.current).createElement(s),c[Xt]=i,c[vn]=a,Jt(c,s,a),qt(c),i.stateNode=c):i.memoizedState=pS(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return _e(i),a===null&&Re&&(c=i.stateNode=dS(i.type,i.pendingProps,xe.current),Zt=i,Wn=!0,v=it,Ka(i.type)?(gp=v,it=Jn(c.firstChild)):it=v),Qt(a,i,i.pendingProps.children,s),uc(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&Re&&((v=c=it)&&(c=ZD(c,i.type,i.pendingProps,Wn),c!==null?(i.stateNode=c,Zt=i,it=Jn(c.firstChild),Wn=!1,v=!0):v=!1),v||Ma(i)),_e(i),v=i.type,g=i.pendingProps,O=a!==null?a.memoizedProps:null,c=g.children,hp(v,g)?c=null:O!==null&&hp(v,O)&&(i.flags|=32),i.memoizedState!==null&&(v=dm(a,i,fD,null,null,s),ms._currentValue=v),uc(a,i),Qt(a,i,c,s),i.child;case 6:return a===null&&Re&&((a=s=it)&&(s=WD(s,i.pendingProps,Wn),s!==null?(i.stateNode=s,Zt=i,it=null,a=!0):a=!1),a||Ma(i)),null;case 13:return tw(a,i,s);case 4:return Je(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=_i(i,null,c,s):Qt(a,i,c,s),i.child;case 11:return Y1(a,i,i.type,i.pendingProps,s);case 7:return Qt(a,i,i.pendingProps,s),i.child;case 8:return Qt(a,i,i.pendingProps.children,s),i.child;case 12:return Qt(a,i,i.pendingProps.children,s),i.child;case 10:return c=i.pendingProps,Da(i,i.type,c.value),Qt(a,i,c.children,s),i.child;case 9:return v=i.type._context,c=i.pendingProps.children,xi(i),v=Wt(v),c=c(v),i.flags|=1,Qt(a,i,c,s),i.child;case 14:return G1(a,i,i.type,i.pendingProps,s);case 15:return V1(a,i,i.type,i.pendingProps,s);case 19:return rw(a,i,s);case 31:return bD(a,i,s);case 22:return X1(a,i,s,i.pendingProps);case 24:return xi(i),c=Wt(Nt),a===null?(v=nm(),v===null&&(v=et,g=em(),v.pooledCache=g,g.refCount++,g!==null&&(v.pooledCacheLanes|=s),v=g),i.memoizedState={parent:c,cache:v},am(i),Da(i,Nt,v)):((a.lanes&s)!==0&&(im(a,i),Vo(i,null,null,s),Go()),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),Da(i,Nt,c)):(c=g.cache,Da(i,Nt,c),c!==v.cache&&Jh(i,[Nt],s,!0))),Qt(a,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Gr(a){a.flags|=4}function $m(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(Mw())a.flags|=8192;else throw ji=Vu,rm}else a.flags&=-16777217}function iw(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!xS(i))if(Mw())a.flags|=8192;else throw ji=Vu,rm}function fc(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Bb():536870912,a.lanes|=i,Pl|=i)}function es(a,i){if(!Re)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 wD(a,i,s){var c=i.pendingProps;switch(Vh(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),Hr(Nt),J(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(a===null||a.child===null)&&(wl(i)?Gr(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Zh())),lt(i),null;case 26:var v=i.type,g=i.memoizedState;return a===null?(Gr(i),g!==null?(lt(i),iw(i,g)):(lt(i),$m(i,v,null,c,s))):g?g!==a.memoizedState?(Gr(i),lt(i),iw(i,g)):(lt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==c&&Gr(i),lt(i),$m(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&&Gr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return lt(i),null}a=ce.current,wl(i)?Bx(i):(a=dS(v,c,s),i.stateNode=a,Gr(i))}return lt(i),null;case 5:if(Ae(i),v=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Gr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return lt(i),null}if(g=ce.current,wl(i))Bx(i);else{var O=Ac(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[Xt]=i,g[vn]=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(Jt(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&&Gr(i)}}return lt(i),$m(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,s),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&Gr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=xe.current,wl(i)){if(a=i.stateNode,s=i.memoizedProps,c=null,v=Zt,v!==null)switch(v.tag){case 27:case 5:c=v.memoizedProps}a[Xt]=i,a=!!(a.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||tS(a.nodeValue,s)),a||Ma(i,!0)}else a=Ac(a).createTextNode(c),a[Xt]=i,i.stateNode=a}return lt(i),null;case 31:if(s=i.memoizedState,a===null||a.memoizedState!==null){if(c=wl(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[Xt]=i}else gi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),a=!1}else s=Zh(),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=wl(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[Xt]=i}else gi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),v=!1}else v=Zh(),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),fc(i,i.updateQueue),lt(i),null);case 4:return J(),a===null&&sp(i.stateNode.containerInfo),lt(i),null;case 10:return Hr(i.type),lt(i),null;case 19:if(G(wt),c=i.memoizedState,c===null)return lt(i),null;if(v=(i.flags&128)!==0,g=c.rendering,g===null)if(v)es(c,!1);else{if(yt!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(g=Qu(a),g!==null){for(i.flags|=128,es(c,!1),a=g.updateQueue,i.updateQueue=a,fc(i,a),i.subtreeFlags=0,a=s,s=i.child;s!==null;)kx(s,a),s=s.sibling;return oe(wt,wt.current&1|2),Re&&Ur(i,c.treeForkCount),i.child}a=a.sibling}c.tail!==null&&xt()>vc&&(i.flags|=128,v=!0,es(c,!1),i.lanes=4194304)}else{if(!v)if(a=Qu(g),a!==null){if(i.flags|=128,v=!0,a=a.updateQueue,i.updateQueue=a,fc(i,a),es(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Re)return lt(i),null}else 2*xt()-c.renderingStartTime>vc&&s!==536870912&&(i.flags|=128,v=!0,es(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=xt(),a.sibling=null,s=wt.current,oe(wt,v?s&1|2:s&1),Re&&Ur(i,c.treeForkCount),a):(lt(i),null);case 22:case 23:return zn(i),um(),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&&fc(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&&G(wi),null;case 24:return s=null,a!==null&&(s=a.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Hr(Nt),lt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function SD(a,i){switch(Vh(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Hr(Nt),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));gi()}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));gi()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return G(wt),null;case 4:return J(),null;case 10:return Hr(i.type),null;case 22:case 23:return zn(i),um(),a!==null&&G(wi),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Hr(Nt),null;case 25:return null;default:return null}}function lw(a,i){switch(Vh(i),i.tag){case 3:Hr(Nt),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:G(wt);break;case 10:Hr(i.type);break;case 22:case 23:zn(i),um(),a!==null&&G(wi);break;case 24:Hr(Nt)}}function ts(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(E){Ke(i,i.return,E)}}function Ba(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,E=O.destroy;if(E!==void 0){O.destroy=void 0,v=i;var z=s,F=E;try{F()}catch(ee){Ke(v,z,ee)}}}c=c.next}while(c!==g)}}catch(ee){Ke(i,i.return,ee)}}function ow(a){var i=a.updateQueue;if(i!==null){var s=a.stateNode;try{Wx(i,s)}catch(c){Ke(a,a.return,c)}}}function sw(a,i,s){s.props=Ai(a.type,a.memoizedProps),s.state=a.memoizedState;try{s.componentWillUnmount()}catch(c){Ke(a,i,c)}}function ns(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){Ke(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){Ke(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){Ke(a,i,v)}else s.current=null}function uw(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){Ke(a,a.return,v)}}function Um(a,i,s){try{var c=a.stateNode;FD(c,a.type,s,i),c[vn]=i}catch(v){Ke(a,a.return,v)}}function cw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ka(a.type)||a.tag===4}function qm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||cw(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&&Ka(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 Hm(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=Br));else if(c!==4&&(c===27&&Ka(a.type)&&(s=a.stateNode,i=null),a=a.child,a!==null))for(Hm(a,i,s),a=a.sibling;a!==null;)Hm(a,i,s),a=a.sibling}function dc(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&&Ka(a.type)&&(s=a.stateNode),a=a.child,a!==null))for(dc(a,i,s),a=a.sibling;a!==null;)dc(a,i,s),a=a.sibling}function fw(a){var i=a.stateNode,s=a.memoizedProps;try{for(var c=a.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);Jt(i,c,s),i[Xt]=a,i[vn]=s}catch(g){Ke(a,a.return,g)}}var Vr=!1,Tt=!1,Fm=!1,dw=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function jD(a,i){if(a=a.containerInfo,fp=kc,a=_x(a),Lh(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,E=-1,z=-1,F=0,ee=0,ae=a,Y=null;t:for(;;){for(var W;ae!==s||v!==0&&ae.nodeType!==3||(E=O+v),ae!==g||c!==0&&ae.nodeType!==3||(z=O+c),ae.nodeType===3&&(O+=ae.nodeValue.length),(W=ae.firstChild)!==null;)Y=ae,ae=W;for(;;){if(ae===a)break t;if(Y===s&&++F===v&&(E=O),Y===g&&++ee===c&&(z=O),(W=ae.nextSibling)!==null)break;ae=Y,Y=ae.parentNode}ae=W}s=E===-1||z===-1?null:{start:E,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(dp={focusedElem:a,selectionRange:s},kc=!1,Ht=i;Ht!==null;)if(i=Ht,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Ht=a;else for(;Ht!==null;){switch(i=Ht,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=Ai(s.type,v);a=c.getSnapshotBeforeUpdate(ve,g),c.__reactInternalSnapshotBeforeUpdate=a}catch(je){Ke(s,s.return,je)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,s=a.nodeType,s===9)pp(a);else if(s===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":pp(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,Ht=a;break}Ht=i.return}}function hw(a,i,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:Zr(a,s),c&4&&ts(5,s);break;case 1:if(Zr(a,s),c&4)if(a=s.stateNode,i===null)try{a.componentDidMount()}catch(O){Ke(s,s.return,O)}else{var v=Ai(s.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(v,i,a.__reactInternalSnapshotBeforeUpdate)}catch(O){Ke(s,s.return,O)}}c&64&&ow(s),c&512&&ns(s,s.return);break;case 3:if(Zr(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{Wx(a,i)}catch(O){Ke(s,s.return,O)}}break;case 27:i===null&&c&4&&fw(s);case 26:case 5:Zr(a,s),i===null&&c&4&&uw(s),c&512&&ns(s,s.return);break;case 12:Zr(a,s);break;case 31:Zr(a,s),c&4&&vw(a,s);break;case 13:Zr(a,s),c&4&&yw(a,s),c&64&&(a=s.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(s=DD.bind(null,s),QD(a,s))));break;case 22:if(c=s.memoizedState!==null||Vr,!c){i=i!==null&&i.memoizedState!==null||Tt,v=Vr;var g=Tt;Vr=c,(Tt=i)&&!g?Wr(a,s,(s.subtreeFlags&8772)!==0):Zr(a,s),Vr=v,Tt=g}break;case 30:break;default:Zr(a,s)}}function mw(a){var i=a.alternate;i!==null&&(a.alternate=null,mw(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&xh(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,gn=!1;function Xr(a,i,s){for(s=s.child;s!==null;)pw(a,i,s),s=s.sibling}function pw(a,i,s){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Ao,s)}catch{}switch(s.tag){case 26:Tt||_r(s,i),Xr(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=gn;Ka(s.type)&&(ct=s.stateNode,gn=!1),Xr(a,i,s),fs(s.stateNode),ct=c,gn=v;break;case 5:Tt||_r(s,i);case 6:if(c=ct,v=gn,ct=null,Xr(a,i,s),ct=c,gn=v,ct!==null)if(gn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(s.stateNode)}catch(g){Ke(s,i,g)}else try{ct.removeChild(s.stateNode)}catch(g){Ke(s,i,g)}break;case 18:ct!==null&&(gn?(a=ct,oS(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.stateNode),ql(a)):oS(ct,s.stateNode));break;case 4:c=ct,v=gn,ct=s.stateNode.containerInfo,gn=!0,Xr(a,i,s),ct=c,gn=v;break;case 0:case 11:case 14:case 15:Ba(2,s,i),Tt||Ba(4,s,i),Xr(a,i,s);break;case 1:Tt||(_r(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"&&sw(s,i,c)),Xr(a,i,s);break;case 21:Xr(a,i,s);break;case 22:Tt=(c=Tt)||s.memoizedState!==null,Xr(a,i,s),Tt=c;break;default:Xr(a,i,s)}}function vw(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{ql(a)}catch(s){Ke(i,i.return,s)}}}function yw(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{ql(a)}catch(s){Ke(i,i.return,s)}}function _D(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new dw),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new dw),i;default:throw Error(r(435,a.tag))}}function hc(a,i){var s=_D(a);i.forEach(function(c){if(!s.has(c)){s.add(c);var v=kD.bind(null,a,c);c.then(v,v)}})}function bn(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,E=O;e:for(;E!==null;){switch(E.tag){case 27:if(Ka(E.type)){ct=E.stateNode,gn=!1;break e}break;case 5:ct=E.stateNode,gn=!1;break e;case 3:case 4:ct=E.stateNode.containerInfo,gn=!0;break e}E=E.return}if(ct===null)throw Error(r(160));pw(g,O,v),ct=null,gn=!1,g=v.alternate,g!==null&&(g.return=null),v.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)gw(i,a),i=i.sibling}var hr=null;function gw(a,i){var s=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:bn(i,a),xn(a),c&4&&(Ba(3,a,a.return),ts(3,a),Ba(5,a,a.return));break;case 1:bn(i,a),xn(a),c&512&&(Tt||s===null||_r(s,s.return)),c&64&&Vr&&(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=hr;if(bn(i,a),xn(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[Co]||g[Xt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=v.createElement(c),v.head.insertBefore(g,v.querySelector("head > title"))),Jt(g,c,s),g[Xt]=a,qt(g),c=g;break e;case"link":var O=gS("link","href",v).get(c+(s.href||""));if(O){for(var E=0;E<O.length;E++)if(g=O[E],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(E,1);break t}}g=v.createElement(c),Jt(g,c,s),v.head.appendChild(g);break;case"meta":if(O=gS("meta","content",v).get(c+(s.content||""))){for(E=0;E<O.length;E++)if(g=O[E],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(E,1);break t}}g=v.createElement(c),Jt(g,c,s),v.head.appendChild(g);break;default:throw Error(r(468,c))}g[Xt]=a,qt(g),c=g}a.stateNode=c}else bS(v,a.type,a.stateNode);else a.stateNode=yS(v,c,a.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?bS(v,a.type,a.stateNode):yS(v,c,a.memoizedProps)):c===null&&a.stateNode!==null&&Um(a,a.memoizedProps,s.memoizedProps)}break;case 27:bn(i,a),xn(a),c&512&&(Tt||s===null||_r(s,s.return)),s!==null&&c&4&&Um(a,a.memoizedProps,s.memoizedProps);break;case 5:if(bn(i,a),xn(a),c&512&&(Tt||s===null||_r(s,s.return)),a.flags&32){v=a.stateNode;try{fl(v,"")}catch(ve){Ke(a,a.return,ve)}}c&4&&a.stateNode!=null&&(v=a.memoizedProps,Um(a,v,s!==null?s.memoizedProps:v)),c&1024&&(Fm=!0);break;case 6:if(bn(i,a),xn(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,s=a.stateNode;try{s.nodeValue=c}catch(ve){Ke(a,a.return,ve)}}break;case 3:if(Cc=null,v=hr,hr=Nc(i.containerInfo),bn(i,a),hr=v,xn(a),c&4&&s!==null&&s.memoizedState.isDehydrated)try{ql(i.containerInfo)}catch(ve){Ke(a,a.return,ve)}Fm&&(Fm=!1,bw(a));break;case 4:c=hr,hr=Nc(a.stateNode.containerInfo),bn(i,a),xn(a),hr=c;break;case 12:bn(i,a),xn(a);break;case 31:bn(i,a),xn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,hc(a,c)));break;case 13:bn(i,a),xn(a),a.child.flags&8192&&a.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(pc=xt()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,hc(a,c)));break;case 22:v=a.memoizedState!==null;var z=s!==null&&s.memoizedState!==null,F=Vr,ee=Tt;if(Vr=F||v,Tt=ee||z,bn(i,a),Tt=ee,Vr=F,xn(a),c&8192)e:for(i=a.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(s===null||z||Vr||Tt||Ni(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{E=z.stateNode;var ae=z.memoizedProps.style,Y=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(ve){Ke(z,z.return,ve)}}}else if(i.tag===6){if(s===null){z=i;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ve){Ke(z,z.return,ve)}}}else if(i.tag===18){if(s===null){z=i;try{var W=z.stateNode;v?sS(W,!0):sS(z.stateNode,!1)}catch(ve){Ke(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,hc(a,s))));break;case 19:bn(i,a),xn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,hc(a,c)));break;case 30:break;case 21:break;default:bn(i,a),xn(a)}}function xn(a){var i=a.flags;if(i&2){try{for(var s,c=a.return;c!==null;){if(cw(c)){s=c;break}c=c.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var v=s.stateNode,g=qm(a);dc(a,g,v);break;case 5:var O=s.stateNode;s.flags&32&&(fl(O,""),s.flags&=-33);var E=qm(a);dc(a,E,O);break;case 3:case 4:var z=s.stateNode.containerInfo,F=qm(a);Hm(a,F,z);break;default:throw Error(r(161))}}catch(ee){Ke(a,a.return,ee)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function bw(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;bw(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Zr(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)hw(a,i.alternate,i),i=i.sibling}function Ni(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:Ba(4,i,i.return),Ni(i);break;case 1:_r(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&sw(i,i.return,s),Ni(i);break;case 27:fs(i.stateNode);case 26:case 5:_r(i,i.return),Ni(i);break;case 22:i.memoizedState===null&&Ni(i);break;case 30:Ni(i);break;default:Ni(i)}a=a.sibling}}function Wr(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:Wr(v,g,s),ts(4,g);break;case 1:if(Wr(v,g,s),c=g,v=c.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(F){Ke(c,c.return,F)}if(c=g,v=c.updateQueue,v!==null){var E=c.stateNode;try{var z=v.shared.hiddenCallbacks;if(z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<z.length;v++)Zx(z[v],E)}catch(F){Ke(c,c.return,F)}}s&&O&64&&ow(g),ns(g,g.return);break;case 27:fw(g);case 26:case 5:Wr(v,g,s),s&&c===null&&O&4&&uw(g),ns(g,g.return);break;case 12:Wr(v,g,s);break;case 31:Wr(v,g,s),s&&O&4&&vw(v,g);break;case 13:Wr(v,g,s),s&&O&4&&yw(v,g);break;case 22:g.memoizedState===null&&Wr(v,g,s),ns(g,g.return);break;case 30:break;default:Wr(v,g,s)}i=i.sibling}}function Km(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&&qo(s))}function Ym(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&qo(a))}function mr(a,i,s,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xw(a,i,s,c),i=i.sibling}function xw(a,i,s,c){var v=i.flags;switch(i.tag){case 0:case 11:case 15:mr(a,i,s,c),v&2048&&ts(9,i);break;case 1:mr(a,i,s,c);break;case 3:mr(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&&qo(a)));break;case 12:if(v&2048){mr(a,i,s,c),a=i.stateNode;try{var g=i.memoizedProps,O=g.id,E=g.onPostCommit;typeof E=="function"&&E(O,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(z){Ke(i,i.return,z)}}else mr(a,i,s,c);break;case 31:mr(a,i,s,c);break;case 13:mr(a,i,s,c);break;case 23:break;case 22:g=i.stateNode,O=i.alternate,i.memoizedState!==null?g._visibility&2?mr(a,i,s,c):rs(a,i):g._visibility&2?mr(a,i,s,c):(g._visibility|=2,Ml(a,i,s,c,(i.subtreeFlags&10256)!==0||!1)),v&2048&&Km(O,i);break;case 24:mr(a,i,s,c),v&2048&&Ym(i.alternate,i);break;default:mr(a,i,s,c)}}function Ml(a,i,s,c,v){for(v=v&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=a,O=i,E=s,z=c,F=O.flags;switch(O.tag){case 0:case 11:case 15:Ml(g,O,E,z,v),ts(8,O);break;case 23:break;case 22:var ee=O.stateNode;O.memoizedState!==null?ee._visibility&2?Ml(g,O,E,z,v):rs(g,O):(ee._visibility|=2,Ml(g,O,E,z,v)),v&&F&2048&&Km(O.alternate,O);break;case 24:Ml(g,O,E,z,v),v&&F&2048&&Ym(O.alternate,O);break;default:Ml(g,O,E,z,v)}i=i.sibling}}function rs(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:rs(s,c),v&2048&&Km(c.alternate,c);break;case 24:rs(s,c),v&2048&&Ym(c.alternate,c);break;default:rs(s,c)}i=i.sibling}}var as=8192;function Dl(a,i,s){if(a.subtreeFlags&as)for(a=a.child;a!==null;)ww(a,i,s),a=a.sibling}function ww(a,i,s){switch(a.tag){case 26:Dl(a,i,s),a.flags&as&&a.memoizedState!==null&&ck(s,hr,a.memoizedState,a.memoizedProps);break;case 5:Dl(a,i,s);break;case 3:case 4:var c=hr;hr=Nc(a.stateNode.containerInfo),Dl(a,i,s),hr=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=as,as=16777216,Dl(a,i,s),as=c):Dl(a,i,s));break;default:Dl(a,i,s)}}function Sw(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 is(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];Ht=c,_w(c,a)}Sw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)jw(a),a=a.sibling}function jw(a){switch(a.tag){case 0:case 11:case 15:is(a),a.flags&2048&&Ba(9,a,a.return);break;case 3:is(a);break;case 12:is(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,mc(a)):is(a);break;default:is(a)}}function mc(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];Ht=c,_w(c,a)}Sw(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:Ba(8,i,i.return),mc(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,mc(i));break;default:mc(i)}a=a.sibling}}function _w(a,i){for(;Ht!==null;){var s=Ht;switch(s.tag){case 0:case 11:case 15:Ba(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:qo(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,Ht=c;else e:for(s=a;Ht!==null;){c=Ht;var v=c.sibling,g=c.return;if(mw(c),c===s){Ht=null;break e}if(v!==null){v.return=g,Ht=v;break e}Ht=g}}}var OD={getCacheForType:function(a){var i=Wt(Nt),s=i.data.get(a);return s===void 0&&(s=a(),i.data.set(a,s)),s},cacheSignal:function(){return Wt(Nt).controller.signal}},AD=typeof WeakMap=="function"?WeakMap:Map,qe=0,et=null,Me=null,ke=0,Fe=0,Ln=null,Ia=!1,kl=!1,Gm=!1,Qr=0,yt=0,$a=0,Ei=0,Vm=0,Bn=0,Pl=0,ls=null,wn=null,Xm=!1,pc=0,Ow=0,vc=1/0,yc=null,Ua=null,zt=0,qa=null,Rl=null,Jr=0,Zm=0,Wm=null,Aw=null,os=0,Qm=null;function In(){return(qe&2)!==0&&ke!==0?ke&-ke:B.T!==null?ap():qb()}function Nw(){if(Bn===0)if((ke&536870912)===0||Re){var a=Ou;Ou<<=1,(Ou&3932160)===0&&(Ou=262144),Bn=a}else Bn=536870912;return a=Rn.current,a!==null&&(a.flags|=32),Bn}function Sn(a,i,s){(a===et&&(Fe===2||Fe===9)||a.cancelPendingCommit!==null)&&(zl(a,0),Ha(a,ke,Bn,!1)),Eo(a,s),((qe&2)===0||a!==et)&&(a===et&&((qe&2)===0&&(Ei|=s),yt===4&&Ha(a,ke,Bn,!1)),Or(a))}function Ew(a,i,s){if((qe&6)!==0)throw Error(r(327));var c=!s&&(i&127)===0&&(i&a.expiredLanes)===0||No(a,i),v=c?CD(a,i):ep(a,i,!0),g=c;do{if(v===0){kl&&!c&&Ha(a,i,0,!1);break}else{if(s=a.current.alternate,g&&!ND(s)){v=ep(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 E=a;v=ls;var z=E.current.memoizedState.isDehydrated;if(z&&(zl(E,O).flags|=256),O=ep(E,O,!1),O!==2){if(Gm&&!z){E.errorRecoveryDisabledLanes|=g,Ei|=g,v=4;break e}g=wn,wn=v,g!==null&&(wn===null?wn=g:wn.push.apply(wn,g))}v=O}if(g=!1,v!==2)continue}}if(v===1){zl(a,0),Ha(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:Ha(c,i,Bn,!Ia);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(v=pc+300-xt(),10<v)){if(Ha(c,i,Bn,!Ia),Nu(c,0,!0)!==0)break e;Jr=i,c.timeoutHandle=iS(Cw.bind(null,c,s,wn,yc,Xm,i,Bn,Ei,Pl,Ia,g,"Throttled",-0,0),v);break e}Cw(c,s,wn,yc,Xm,i,Bn,Ei,Pl,Ia,g,null,-0,0)}}break}while(!0);Or(a)}function Cw(a,i,s,c,v,g,O,E,z,F,ee,ae,Y,W){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:Br},ww(i,g,ae);var ve=(g&62914560)===g?pc-xt():(g&4194048)===g?Ow-xt():0;if(ve=fk(ae,ve),ve!==null){Jr=g,a.cancelPendingCommit=ve(Lw.bind(null,a,i,g,s,c,v,O,E,z,ee,ae,null,Y,W)),Ha(a,g,O,!F);return}}Lw(a,i,g,s,c,v,O,E,z)}function ND(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(!kn(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 Ha(a,i,s,c){i&=~Vm,i&=~Ei,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&&Ib(a,s,i)}function gc(){return(qe&6)===0?(ss(0),!1):!0}function Jm(){if(Me!==null){if(Fe===0)var a=Me.return;else a=Me,qr=bi=null,pm(a),Al=null,Fo=0,a=Me;for(;a!==null;)lw(a.alternate,a),a=a.return;Me=null}}function zl(a,i){var s=a.timeoutHandle;s!==-1&&(a.timeoutHandle=-1,GD(s)),s=a.cancelPendingCommit,s!==null&&(a.cancelPendingCommit=null,s()),Jr=0,Jm(),et=a,Me=s=$r(a.current,null),ke=i,Fe=0,Ln=null,Ia=!1,kl=No(a,i),Gm=!1,Pl=Bn=Vm=Ei=$a=yt=0,wn=ls=null,Xm=!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 Qr=i,Iu(),s}function Tw(a,i){Ee=null,B.H=Qo,i===Ol||i===Gu?(i=Yx(),Fe=3):i===rm?(i=Yx(),Fe=4):Fe=i===Mm?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ln=i,Me===null&&(yt=1,oc(a,Vn(i,a.current)))}function Mw(){var a=Rn.current;return a===null?!0:(ke&4194048)===ke?Qn===null:(ke&62914560)===ke||(ke&536870912)!==0?a===Qn:!1}function Dw(){var a=B.H;return B.H=Qo,a===null?Qo:a}function kw(){var a=B.A;return B.A=OD,a}function bc(){yt=4,Ia||(ke&4194048)!==ke&&Rn.current!==null||(kl=!0),($a&134217727)===0&&(Ei&134217727)===0||et===null||Ha(et,ke,Bn,!1)}function ep(a,i,s){var c=qe;qe|=2;var v=Dw(),g=kw();(et!==a||ke!==i)&&(yc=null,zl(a,i)),i=!1;var O=yt;e:do try{if(Fe!==0&&Me!==null){var E=Me,z=Ln;switch(Fe){case 8:Jm(),O=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var F=Fe;if(Fe=0,Ln=null,Ll(a,E,z,F),s&&kl){O=0;break e}break;default:F=Fe,Fe=0,Ln=null,Ll(a,E,z,F)}}ED(),O=yt;break}catch(ee){Tw(a,ee)}while(!0);return i&&a.shellSuspendCounter++,qr=bi=null,qe=c,B.H=v,B.A=g,Me===null&&(et=null,ke=0,Iu()),O}function ED(){for(;Me!==null;)Pw(Me)}function CD(a,i){var s=qe;qe|=2;var c=Dw(),v=kw();et!==a||ke!==i?(yc=null,vc=xt()+500,zl(a,i)):kl=No(a,i);e:do try{if(Fe!==0&&Me!==null){i=Me;var g=Ln;t:switch(Fe){case 1:Fe=0,Ln=null,Ll(a,i,g,1);break;case 2:case 9:if(Fx(g)){Fe=0,Ln=null,Rw(i);break}i=function(){Fe!==2&&Fe!==9||et!==a||(Fe=7),Or(a)},g.then(i,i);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Fx(g)?(Fe=0,Ln=null,Rw(i)):(Fe=0,Ln=null,Ll(a,i,g,7));break;case 5:var O=null;switch(Me.tag){case 26:O=Me.memoizedState;case 5:case 27:var E=Me;if(O?xS(O):E.stateNode.complete){Fe=0,Ln=null;var z=E.sibling;if(z!==null)Me=z;else{var F=E.return;F!==null?(Me=F,xc(F)):Me=null}break t}}Fe=0,Ln=null,Ll(a,i,g,5);break;case 6:Fe=0,Ln=null,Ll(a,i,g,6);break;case 8:Jm(),yt=6;break e;default:throw Error(r(462))}}TD();break}catch(ee){Tw(a,ee)}while(!0);return qr=bi=null,B.H=c,B.A=v,qe=s,Me!==null?0:(et=null,ke=0,Iu(),yt)}function TD(){for(;Me!==null&&!At();)Pw(Me)}function Pw(a){var i=aw(a.alternate,a,Qr);a.memoizedProps=a.pendingProps,i===null?xc(a):Me=i}function Rw(a){var i=a,s=i.alternate;switch(i.tag){case 15:case 0:i=Q1(s,i,i.pendingProps,i.type,void 0,ke);break;case 11:i=Q1(s,i,i.pendingProps,i.type.render,i.ref,ke);break;case 5:pm(i);default:lw(s,i),i=Me=kx(i,Qr),i=aw(s,i,Qr)}a.memoizedProps=a.pendingProps,i===null?xc(a):Me=i}function Ll(a,i,s,c){qr=bi=null,pm(i),Al=null,Fo=0;var v=i.return;try{if(gD(a,v,i,s,ke)){yt=1,oc(a,Vn(s,a.current)),Me=null;return}}catch(g){if(v!==null)throw Me=v,g;yt=1,oc(a,Vn(s,a.current)),Me=null;return}i.flags&32768?(Re||c===1?a=!0:kl||(ke&536870912)!==0?a=!1:(Ia=a=!0,(c===2||c===9||c===3||c===6)&&(c=Rn.current,c!==null&&c.tag===13&&(c.flags|=16384))),zw(i,a)):xc(i)}function xc(a){var i=a;do{if((i.flags&32768)!==0){zw(i,Ia);return}a=i.return;var s=wD(i.alternate,i,Qr);if(s!==null){Me=s;return}if(i=i.sibling,i!==null){Me=i;return}Me=i=a}while(i!==null);yt===0&&(yt=5)}function zw(a,i){do{var s=SD(a.alternate,a);if(s!==null){s.flags&=32767,Me=s;return}if(s=a.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(a=a.sibling,a!==null)){Me=a;return}Me=a=s}while(a!==null);yt=6,Me=null}function Lw(a,i,s,c,v,g,O,E,z){a.cancelPendingCommit=null;do wc();while(zt!==0);if((qe&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(g=i.lanes|i.childLanes,g|=qh,u3(a,s,g,O,E,z),a===et&&(Me=et=null,ke=0),Rl=i,qa=a,Jr=s,Zm=g,Wm=v,Aw=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,PD(ju,function(){return qw(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=B.T,B.T=null,v=Q.p,Q.p=2,O=qe,qe|=4;try{jD(a,i,s)}finally{qe=O,Q.p=v,B.T=c}}zt=1,Bw(),Iw(),$w()}}function Bw(){if(zt===1){zt=0;var a=qa,i=Rl,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var c=Q.p;Q.p=2;var v=qe;qe|=4;try{gw(i,a);var g=dp,O=_x(a.containerInfo),E=g.focusedElem,z=g.selectionRange;if(O!==E&&E&&E.ownerDocument&&jx(E.ownerDocument.documentElement,E)){if(z!==null&&Lh(E)){var F=z.start,ee=z.end;if(ee===void 0&&(ee=F),"selectionStart"in E)E.selectionStart=F,E.selectionEnd=Math.min(ee,E.value.length);else{var ae=E.ownerDocument||document,Y=ae&&ae.defaultView||window;if(Y.getSelection){var W=Y.getSelection(),ve=E.textContent.length,je=Math.min(z.start,ve),Ze=z.end===void 0?je:Math.min(z.end,ve);!W.extend&&je>Ze&&(O=Ze,Ze=je,je=O);var I=Sx(E,je),L=Sx(E,Ze);if(I&&L&&(W.rangeCount!==1||W.anchorNode!==I.node||W.anchorOffset!==I.offset||W.focusNode!==L.node||W.focusOffset!==L.offset)){var H=ae.createRange();H.setStart(I.node,I.offset),W.removeAllRanges(),je>Ze?(W.addRange(H),W.extend(L.node,L.offset)):(H.setEnd(L.node,L.offset),W.addRange(H))}}}}for(ae=[],W=E;W=W.parentNode;)W.nodeType===1&&ae.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}kc=!!fp,dp=fp=null}finally{qe=v,Q.p=c,B.T=s}}a.current=i,zt=2}}function Iw(){if(zt===2){zt=0;var a=qa,i=Rl,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var c=Q.p;Q.p=2;var v=qe;qe|=4;try{hw(a,i.alternate,i)}finally{qe=v,Q.p=c,B.T=s}}zt=3}}function $w(){if(zt===4||zt===3){zt=0,Tn();var a=qa,i=Rl,s=Jr,c=Aw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?zt=5:(zt=0,Rl=qa=null,Uw(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&(Ua=null),gh(s),i=i.stateNode,Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(Ao,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=B.T,v=Q.p,Q.p=2,B.T=null;try{for(var g=a.onRecoverableError,O=0;O<c.length;O++){var E=c[O];g(E.value,{componentStack:E.stack})}}finally{B.T=i,Q.p=v}}(Jr&3)!==0&&wc(),Or(a),v=a.pendingLanes,(s&261930)!==0&&(v&42)!==0?a===Qm?os++:(os=0,Qm=a):os=0,ss(0)}}function Uw(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,qo(i)))}function wc(){return Bw(),Iw(),$w(),qw()}function qw(){if(zt!==5)return!1;var a=qa,i=Zm;Zm=0;var s=gh(Jr),c=B.T,v=Q.p;try{Q.p=32>s?32:s,B.T=null,s=Wm,Wm=null;var g=qa,O=Jr;if(zt=0,Rl=qa=null,Jr=0,(qe&6)!==0)throw Error(r(331));var E=qe;if(qe|=4,jw(g.current),xw(g,g.current,O,s),qe=E,ss(0,!1),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(Ao,g)}catch{}return!0}finally{Q.p=v,B.T=c,Uw(a,i)}}function Hw(a,i,s){i=Vn(s,i),i=Tm(a.stateNode,i,2),a=Ra(a,i,2),a!==null&&(Eo(a,2),Or(a))}function Ke(a,i,s){if(a.tag===3)Hw(a,a,s);else for(;i!==null;){if(i.tag===3){Hw(i,a,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ua===null||!Ua.has(c))){a=Vn(s,a),s=F1(2),c=Ra(i,s,2),c!==null&&(K1(s,c,i,a),Eo(c,2),Or(c));break}}i=i.return}}function tp(a,i,s){var c=a.pingCache;if(c===null){c=a.pingCache=new AD;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)||(Gm=!0,v.add(s),a=MD.bind(null,a,i,s),i.then(a,a))}function MD(a,i,s){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&s,a.warmLanes&=~s,et===a&&(ke&s)===s&&(yt===4||yt===3&&(ke&62914560)===ke&&300>xt()-pc?(qe&2)===0&&zl(a,0):Vm|=s,Pl===ke&&(Pl=0)),Or(a)}function Fw(a,i){i===0&&(i=Bb()),a=vi(a,i),a!==null&&(Eo(a,i),Or(a))}function DD(a){var i=a.memoizedState,s=0;i!==null&&(s=i.retryLane),Fw(a,s)}function kD(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),Fw(a,s)}function PD(a,i){return Le(a,i)}var Sc=null,Bl=null,np=!1,jc=!1,rp=!1,Fa=0;function Or(a){a!==Bl&&a.next===null&&(Bl===null?Sc=Bl=a:Bl=Bl.next=a),jc=!0,np||(np=!0,zD())}function ss(a,i){if(!rp&&jc){rp=!0;do for(var s=!1,c=Sc;c!==null;){if(a!==0){var v=c.pendingLanes;if(v===0)var g=0;else{var O=c.suspendedLanes,E=c.pingedLanes;g=(1<<31-Dn(42|a)+1)-1,g&=v&~(O&~E),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,Vw(c,g))}else g=ke,g=Nu(c,c===et?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||No(c,g)||(s=!0,Vw(c,g));c=c.next}while(s);rp=!1}}function RD(){Kw()}function Kw(){jc=np=!1;var a=0;Fa!==0&&YD()&&(a=Fa);for(var i=xt(),s=null,c=Sc;c!==null;){var v=c.next,g=Yw(c,i);g===0?(c.next=null,s===null?Sc=v:s.next=v,v===null&&(Bl=s)):(s=c,(a!==0||(g&3)!==0)&&(jc=!0)),c=v}zt!==0&&zt!==5||ss(a),Fa!==0&&(Fa=0)}function Yw(a,i){for(var s=a.suspendedLanes,c=a.pingedLanes,v=a.expirationTimes,g=a.pendingLanes&-62914561;0<g;){var O=31-Dn(g),E=1<<O,z=v[O];z===-1?((E&s)===0||(E&c)!==0)&&(v[O]=s3(E,i)):z<=i&&(a.expiredLanes|=E),g&=~E}if(i=et,s=ke,s=Nu(a,a===i?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,s===0||a===i&&(Fe===2||Fe===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&Ge(c),a.callbackNode=null,a.callbackPriority=0;if((s&3)===0||No(a,s)){if(i=s&-s,i===a.callbackPriority)return i;switch(c!==null&&Ge(c),gh(s)){case 2:case 8:s=Oo;break;case 32:s=ju;break;case 268435456:s=Lb;break;default:s=ju}return c=Gw.bind(null,a),s=Le(s,c),a.callbackPriority=i,a.callbackNode=s,i}return c!==null&&c!==null&&Ge(c),a.callbackPriority=2,a.callbackNode=null,2}function Gw(a,i){if(zt!==0&&zt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var s=a.callbackNode;if(wc()&&a.callbackNode!==s)return null;var c=ke;return c=Nu(a,a===et?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(Ew(a,c,i),Yw(a,xt()),a.callbackNode!=null&&a.callbackNode===s?Gw.bind(null,a):null)}function Vw(a,i){if(wc())return null;Ew(a,i,!0)}function zD(){VD(function(){(qe&6)!==0?Le(ci,RD):Kw()})}function ap(){if(Fa===0){var a=jl;a===0&&(a=_u,_u<<=1,(_u&261888)===0&&(_u=256)),Fa=a}return Fa}function Xw(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Mu(""+a)}function Zw(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 LD(a,i,s,c,v){if(i==="submit"&&s&&s.stateNode===v){var g=Xw((v[vn]||null).action),O=c.submitter;O&&(i=(i=O[vn]||null)?Xw(i.formAction):O.getAttribute("formAction"),i!==null&&(g=i,O=null));var E=new Ru("action","action",null,c,v);a.push({event:E,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Fa!==0){var z=O?Zw(v,O):new FormData(v);_m(s,{pending:!0,data:z,method:v.method,action:g},null,z)}}else typeof g=="function"&&(E.preventDefault(),z=O?Zw(v,O):new FormData(v),_m(s,{pending:!0,data:z,method:v.method,action:g},g,z))},currentTarget:v}]})}}for(var ip=0;ip<Uh.length;ip++){var lp=Uh[ip],BD=lp.toLowerCase(),ID=lp[0].toUpperCase()+lp.slice(1);dr(BD,"on"+ID)}dr(Nx,"onAnimationEnd"),dr(Ex,"onAnimationIteration"),dr(Cx,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(tD,"onTransitionRun"),dr(nD,"onTransitionStart"),dr(rD,"onTransitionCancel"),dr(Tx,"onTransitionEnd"),ul("onMouseEnter",["mouseout","mouseover"]),ul("onMouseLeave",["mouseout","mouseover"]),ul("onPointerEnter",["pointerout","pointerover"]),ul("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var us="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(" "),$D=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function Ww(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 E=c[O],z=E.instance,F=E.currentTarget;if(E=E.listener,z!==g&&v.isPropagationStopped())break e;g=E,v.currentTarget=F;try{g(v)}catch(ee){Bu(ee)}v.currentTarget=null,g=z}else for(O=0;O<c.length;O++){if(E=c[O],z=E.instance,F=E.currentTarget,E=E.listener,z!==g&&v.isPropagationStopped())break e;g=E,v.currentTarget=F;try{g(v)}catch(ee){Bu(ee)}v.currentTarget=null,g=z}}}}function De(a,i){var s=i[bh];s===void 0&&(s=i[bh]=new Set);var c=a+"__bubble";s.has(c)||(Qw(i,a,2,!1),s.add(c))}function op(a,i,s){var c=0;i&&(c|=4),Qw(s,a,c,i)}var _c="_reactListening"+Math.random().toString(36).slice(2);function sp(a){if(!a[_c]){a[_c]=!0,Kb.forEach(function(s){s!=="selectionchange"&&($D.has(s)||op(s,!1,a),op(s,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[_c]||(i[_c]=!0,op("selectionchange",!1,i))}}function Qw(a,i,s,c){switch(NS(i)){case 2:var v=mk;break;case 8:v=pk;break;default:v=jp}s=v.bind(null,i,s,a),v=void 0,!Eh||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 up(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 E=c.stateNode.containerInfo;if(E===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(;E!==null;){if(O=ll(E),O===null)return;if(z=O.tag,z===5||z===6||z===26||z===27){c=g=O;continue e}E=E.parentNode}}c=c.return}rx(function(){var F=g,ee=Ah(s),ae=[];e:{var Y=Mx.get(a);if(Y!==void 0){var W=Ru,ve=a;switch(a){case"keypress":if(ku(s)===0)break e;case"keydown":case"keyup":W=k3;break;case"focusin":ve="focus",W=Dh;break;case"focusout":ve="blur",W=Dh;break;case"beforeblur":case"afterblur":W=Dh;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":W=lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=w3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=z3;break;case Nx:case Ex:case Cx:W=_3;break;case Tx:W=B3;break;case"scroll":case"scrollend":W=b3;break;case"wheel":W=$3;break;case"copy":case"cut":case"paste":W=A3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=sx;break;case"toggle":case"beforetoggle":W=q3}var je=(i&4)!==0,Ze=!je&&(a==="scroll"||a==="scrollend"),I=je?Y!==null?Y+"Capture":null:Y;je=[];for(var L=F,H;L!==null;){var te=L;if(H=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||H===null||I===null||(te=Mo(L,I),te!=null&&je.push(cs(L,te,H))),Ze)break;L=L.return}0<je.length&&(Y=new W(Y,ve,null,s,ee),ae.push({event:Y,listeners:je}))}}if((i&7)===0){e:{if(Y=a==="mouseover"||a==="pointerover",W=a==="mouseout"||a==="pointerout",Y&&s!==Oh&&(ve=s.relatedTarget||s.fromElement)&&(ll(ve)||ve[il]))break e;if((W||Y)&&(Y=ee.window===ee?ee:(Y=ee.ownerDocument)?Y.defaultView||Y.parentWindow:window,W?(ve=s.relatedTarget||s.toElement,W=F,ve=ve?ll(ve):null,ve!==null&&(Ze=o(ve),je=ve.tag,ve!==Ze||je!==5&&je!==27&&je!==6)&&(ve=null)):(W=null,ve=F),W!==ve)){if(je=lx,te="onMouseLeave",I="onMouseEnter",L="mouse",(a==="pointerout"||a==="pointerover")&&(je=sx,te="onPointerLeave",I="onPointerEnter",L="pointer"),Ze=W==null?Y:To(W),H=ve==null?Y:To(ve),Y=new je(te,L+"leave",W,s,ee),Y.target=Ze,Y.relatedTarget=H,te=null,ll(ee)===F&&(je=new je(I,L+"enter",ve,s,ee),je.target=H,je.relatedTarget=Ze,te=je),Ze=te,W&&ve)t:{for(je=UD,I=W,L=ve,H=0,te=I;te;te=je(te))H++;te=0;for(var we=L;we;we=je(we))te++;for(;0<H-te;)I=je(I),H--;for(;0<te-H;)L=je(L),te--;for(;H--;){if(I===L||L!==null&&I===L.alternate){je=I;break t}I=je(I),L=je(L)}je=null}else je=null;W!==null&&Jw(ae,Y,W,je,!1),ve!==null&&Ze!==null&&Jw(ae,Ze,ve,je,!0)}}e:{if(Y=F?To(F):window,W=Y.nodeName&&Y.nodeName.toLowerCase(),W==="select"||W==="input"&&Y.type==="file")var Be=vx;else if(mx(Y))if(yx)Be=Q3;else{Be=Z3;var ge=X3}else W=Y.nodeName,!W||W.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?F&&_h(F.elementType)&&(Be=vx):Be=W3;if(Be&&(Be=Be(a,F))){px(ae,Be,s,ee);break e}ge&&ge(a,Y,F),a==="focusout"&&F&&Y.type==="number"&&F.memoizedProps.value!=null&&jh(Y,"number",Y.value)}switch(ge=F?To(F):window,a){case"focusin":(mx(ge)||ge.contentEditable==="true")&&(pl=ge,Bh=F,Io=null);break;case"focusout":Io=Bh=pl=null;break;case"mousedown":Ih=!0;break;case"contextmenu":case"mouseup":case"dragend":Ih=!1,Ox(ae,s,ee);break;case"selectionchange":if(eD)break;case"keydown":case"keyup":Ox(ae,s,ee)}var Te;if(Ph)e:{switch(a){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else ml?dx(a,s)&&(Pe="onCompositionEnd"):a==="keydown"&&s.keyCode===229&&(Pe="onCompositionStart");Pe&&(ux&&s.locale!=="ko"&&(ml||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&ml&&(Te=ax()):(Ea=ee,Ch="value"in Ea?Ea.value:Ea.textContent,ml=!0)),ge=Oc(F,Pe),0<ge.length&&(Pe=new ox(Pe,a,null,s,ee),ae.push({event:Pe,listeners:ge}),Te?Pe.data=Te:(Te=hx(s),Te!==null&&(Pe.data=Te)))),(Te=F3?K3(a,s):Y3(a,s))&&(Pe=Oc(F,"onBeforeInput"),0<Pe.length&&(ge=new ox("onBeforeInput","beforeinput",null,s,ee),ae.push({event:ge,listeners:Pe}),ge.data=Te)),LD(ae,a,F,s,ee)}Ww(ae,i)})}function cs(a,i,s){return{instance:a,listener:i,currentTarget:s}}function Oc(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=Mo(a,s),v!=null&&c.unshift(cs(a,v,g)),v=Mo(a,i),v!=null&&c.push(cs(a,v,g))),a.tag===3)return c;a=a.return}return[]}function UD(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Jw(a,i,s,c,v){for(var g=i._reactName,O=[];s!==null&&s!==c;){var E=s,z=E.alternate,F=E.stateNode;if(E=E.tag,z!==null&&z===c)break;E!==5&&E!==26&&E!==27||F===null||(z=F,v?(F=Mo(s,g),F!=null&&O.unshift(cs(s,F,z))):v||(F=Mo(s,g),F!=null&&O.push(cs(s,F,z)))),s=s.return}O.length!==0&&a.push({event:i,listeners:O})}var qD=/\r\n?/g,HD=/\u0000|\uFFFD/g;function eS(a){return(typeof a=="string"?a:""+a).replace(qD,`
`).replace(HD,"")}function tS(a,i){return i=eS(i),eS(a)===i}function Xe(a,i,s,c,v,g){switch(s){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||fl(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&fl(a,""+c);break;case"className":Cu(a,"class",c);break;case"tabIndex":Cu(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(a,s,c);break;case"style":tx(a,c,g);break;case"data":if(i!=="object"){Cu(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=Mu(""+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"&&Xe(a,i,"name",v.name,v,null),Xe(a,i,"formEncType",v.formEncType,v,null),Xe(a,i,"formMethod",v.formMethod,v,null),Xe(a,i,"formTarget",v.formTarget,v,null)):(Xe(a,i,"encType",v.encType,v,null),Xe(a,i,"method",v.method,v,null),Xe(a,i,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(s);break}c=Mu(""+c),a.setAttribute(s,c);break;case"onClick":c!=null&&(a.onclick=Br);break;case"onScroll":c!=null&&De("scroll",a);break;case"onScrollEnd":c!=null&&De("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=Mu(""+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":De("beforetoggle",a),De("toggle",a),Eu(a,"popover",c);break;case"xlinkActuate":Lr(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Lr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Lr(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Lr(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Lr(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Lr(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Lr(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Lr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Lr(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Eu(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=y3.get(s)||s,Eu(a,s,c))}}function cp(a,i,s,c,v,g){switch(s){case"style":tx(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"?fl(a,c):(typeof c=="number"||typeof c=="bigint")&&fl(a,""+c);break;case"onScroll":c!=null&&De("scroll",a);break;case"onScrollEnd":c!=null&&De("scrollend",a);break;case"onClick":c!=null&&(a.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yb.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[vn]||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,""):Eu(a,s,c)}}}function Jt(a,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",a),De("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:Xe(a,i,g,O,s,null)}}v&&Xe(a,i,"srcSet",s.srcSet,s,null),c&&Xe(a,i,"src",s.src,s,null);return;case"input":De("invalid",a);var E=g=O=v=null,z=null,F=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":F=ee;break;case"value":g=ee;break;case"defaultValue":E=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,i));break;default:Xe(a,i,c,ee,s,null)}}Wb(a,g,E,z,F,O,v,!1);return;case"select":De("invalid",a),c=O=g=null;for(v in s)if(s.hasOwnProperty(v)&&(E=s[v],E!=null))switch(v){case"value":g=E;break;case"defaultValue":O=E;break;case"multiple":c=E;default:Xe(a,i,v,E,s,null)}i=g,s=O,a.multiple=!!c,i!=null?cl(a,!!c,i,!1):s!=null&&cl(a,!!c,s,!0);return;case"textarea":De("invalid",a),g=v=c=null;for(O in s)if(s.hasOwnProperty(O)&&(E=s[O],E!=null))switch(O){case"value":c=E;break;case"defaultValue":v=E;break;case"children":g=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:Xe(a,i,O,E,s,null)}Jb(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:Xe(a,i,z,c,s,null)}return;case"dialog":De("beforetoggle",a),De("toggle",a),De("cancel",a),De("close",a);break;case"iframe":case"object":De("load",a);break;case"video":case"audio":for(c=0;c<us.length;c++)De(us[c],a);break;case"image":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"embed":case"source":case"link":De("error",a),De("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(F in s)if(s.hasOwnProperty(F)&&(c=s[F],c!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Xe(a,i,F,c,s,null)}return;default:if(_h(i)){for(ee in s)s.hasOwnProperty(ee)&&(c=s[ee],c!==void 0&&cp(a,i,ee,c,s,void 0));return}}for(E in s)s.hasOwnProperty(E)&&(c=s[E],c!=null&&Xe(a,i,E,c,s,null))}function FD(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,E=null,z=null,F=null,ee=null;for(W in s){var ae=s[W];if(s.hasOwnProperty(W)&&ae!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":z=ae;default:c.hasOwnProperty(W)||Xe(a,i,W,null,c,ae)}}for(var Y in c){var W=c[Y];if(ae=s[Y],c.hasOwnProperty(Y)&&(W!=null||ae!=null))switch(Y){case"type":g=W;break;case"name":v=W;break;case"checked":F=W;break;case"defaultChecked":ee=W;break;case"value":O=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,i));break;default:W!==ae&&Xe(a,i,Y,W,c,ae)}}Sh(a,O,E,z,F,ee,g,v);return;case"select":W=O=E=Y=null;for(g in s)if(z=s[g],s.hasOwnProperty(g)&&z!=null)switch(g){case"value":break;case"multiple":W=z;default:c.hasOwnProperty(g)||Xe(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":Y=g;break;case"defaultValue":E=g;break;case"multiple":O=g;default:g!==z&&Xe(a,i,v,g,c,z)}i=E,s=O,c=W,Y!=null?cl(a,!!s,Y,!1):!!c!=!!s&&(i!=null?cl(a,!!s,i,!0):cl(a,!!s,s?[]:"",!1));return;case"textarea":W=Y=null;for(E in s)if(v=s[E],s.hasOwnProperty(E)&&v!=null&&!c.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Xe(a,i,E,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":Y=v;break;case"defaultValue":W=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==g&&Xe(a,i,O,v,c,g)}Qb(a,Y,W);return;case"option":for(var ve in s)if(Y=s[ve],s.hasOwnProperty(ve)&&Y!=null&&!c.hasOwnProperty(ve))switch(ve){case"selected":a.selected=!1;break;default:Xe(a,i,ve,null,c,Y)}for(z in c)if(Y=c[z],W=s[z],c.hasOwnProperty(z)&&Y!==W&&(Y!=null||W!=null))switch(z){case"selected":a.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Xe(a,i,z,Y,c,W)}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)Y=s[je],s.hasOwnProperty(je)&&Y!=null&&!c.hasOwnProperty(je)&&Xe(a,i,je,null,c,Y);for(F in c)if(Y=c[F],W=s[F],c.hasOwnProperty(F)&&Y!==W&&(Y!=null||W!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Xe(a,i,F,Y,c,W)}return;default:if(_h(i)){for(var Ze in s)Y=s[Ze],s.hasOwnProperty(Ze)&&Y!==void 0&&!c.hasOwnProperty(Ze)&&cp(a,i,Ze,void 0,c,Y);for(ee in c)Y=c[ee],W=s[ee],!c.hasOwnProperty(ee)||Y===W||Y===void 0&&W===void 0||cp(a,i,ee,Y,c,W);return}}for(var I in s)Y=s[I],s.hasOwnProperty(I)&&Y!=null&&!c.hasOwnProperty(I)&&Xe(a,i,I,null,c,Y);for(ae in c)Y=c[ae],W=s[ae],!c.hasOwnProperty(ae)||Y===W||Y==null&&W==null||Xe(a,i,ae,Y,c,W)}function nS(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KD(){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,E=v.duration;if(g&&E&&nS(O)){for(O=0,E=v.responseEnd,c+=1;c<s.length;c++){var z=s[c],F=z.startTime;if(F>E)break;var ee=z.transferSize,ae=z.initiatorType;ee&&nS(ae)&&(z=z.responseEnd,O+=ee*(z<E?1:(E-F)/(z-F)))}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 fp=null,dp=null;function Ac(a){return a.nodeType===9?a:a.ownerDocument}function rS(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 aS(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 hp(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 mp=null;function YD(){var a=window.event;return a&&a.type==="popstate"?a===mp?!1:(mp=a,!0):(mp=null,!1)}var iS=typeof setTimeout=="function"?setTimeout:void 0,GD=typeof clearTimeout=="function"?clearTimeout:void 0,lS=typeof Promise=="function"?Promise:void 0,VD=typeof queueMicrotask=="function"?queueMicrotask:typeof lS<"u"?function(a){return lS.resolve(null).then(a).catch(XD)}:iS;function XD(a){setTimeout(function(){throw a})}function Ka(a){return a==="head"}function oS(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),ql(i);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")fs(a.ownerDocument.documentElement);else if(s==="head"){s=a.ownerDocument.head,fs(s);for(var g=s.firstChild;g;){var O=g.nextSibling,E=g.nodeName;g[Co]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||s.removeChild(g),g=O}}else s==="body"&&fs(a.ownerDocument.body);s=v}while(s);ql(i)}function sS(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 pp(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":pp(s),xh(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}a.removeChild(s)}}function ZD(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[Co])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=Jn(a.nextSibling),a===null)break}return null}function WD(a,i,s){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=Jn(a.nextSibling),a===null))return null;return a}function uS(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Jn(a.nextSibling),a===null))return null;return a}function vp(a){return a.data==="$?"||a.data==="$~"}function yp(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function QD(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 Jn(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 gp=null;function cS(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var s=a.data;if(s==="/$"||s==="/&"){if(i===0)return Jn(a.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}a=a.nextSibling}return null}function fS(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 dS(a,i,s){switch(i=Ac(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 fs(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);xh(a)}var er=new Map,hS=new Set;function Nc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ea=Q.d;Q.d={f:JD,r:ek,D:tk,C:nk,L:rk,m:ak,X:lk,S:ik,M:ok};function JD(){var a=ea.f(),i=gc();return a||i}function ek(a){var i=ol(a);i!==null&&i.tag===5&&i.type==="form"?T1(i):ea.r(a)}var Il=typeof document>"u"?null:document;function mS(a,i,s){var c=Il;if(c&&typeof i=="string"&&i){var v=Yn(i);v='link[rel="'+a+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),hS.has(v)||(hS.add(v),a={rel:a,crossOrigin:s,href:i},c.querySelector(v)===null&&(i=c.createElement("link"),Jt(i,"link",a),qt(i),c.head.appendChild(i)))}}function tk(a){ea.D(a),mS("dns-prefetch",a,null)}function nk(a,i){ea.C(a,i),mS("preconnect",a,i)}function rk(a,i,s){ea.L(a,i,s);var c=Il;if(c&&a&&i){var v='link[rel="preload"][as="'+Yn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+Yn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+Yn(s.imageSizes)+'"]')):v+='[href="'+Yn(a)+'"]';var g=v;switch(i){case"style":g=$l(a);break;case"script":g=Ul(a)}er.has(g)||(a=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:a,as:i},s),er.set(g,a),c.querySelector(v)!==null||i==="style"&&c.querySelector(ds(g))||i==="script"&&c.querySelector(hs(g))||(i=c.createElement("link"),Jt(i,"link",a),qt(i),c.head.appendChild(i)))}}function ak(a,i){ea.m(a,i);var s=Il;if(s&&a){var c=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+Yn(c)+'"][href="'+Yn(a)+'"]',g=v;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Ul(a)}if(!er.has(g)&&(a=y({rel:"modulepreload",href:a},i),er.set(g,a),s.querySelector(v)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(hs(g)))return}c=s.createElement("link"),Jt(c,"link",a),qt(c),s.head.appendChild(c)}}}function ik(a,i,s){ea.S(a,i,s);var c=Il;if(c&&a){var v=sl(c).hoistableStyles,g=$l(a);i=i||"default";var O=v.get(g);if(!O){var E={loading:0,preload:null};if(O=c.querySelector(ds(g)))E.loading=5;else{a=y({rel:"stylesheet",href:a,"data-precedence":i},s),(s=er.get(g))&&bp(a,s);var z=O=c.createElement("link");qt(z),Jt(z,"link",a),z._p=new Promise(function(F,ee){z.onload=F,z.onerror=ee}),z.addEventListener("load",function(){E.loading|=1}),z.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Ec(O,i,c)}O={type:"stylesheet",instance:O,count:1,state:E},v.set(g,O)}}}function lk(a,i){ea.X(a,i);var s=Il;if(s&&a){var c=sl(s).hoistableScripts,v=Ul(a),g=c.get(v);g||(g=s.querySelector(hs(v)),g||(a=y({src:a,async:!0},i),(i=er.get(v))&&xp(a,i),g=s.createElement("script"),qt(g),Jt(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function ok(a,i){ea.M(a,i);var s=Il;if(s&&a){var c=sl(s).hoistableScripts,v=Ul(a),g=c.get(v);g||(g=s.querySelector(hs(v)),g||(a=y({src:a,async:!0,type:"module"},i),(i=er.get(v))&&xp(a,i),g=s.createElement("script"),qt(g),Jt(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function pS(a,i,s,c){var v=(v=xe.current)?Nc(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=$l(s.href),s=sl(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=$l(s.href);var g=sl(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(ds(a)))&&!g._p&&(O.instance=g,O.state.loading=5),er.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},er.set(a,s),g||sk(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=Ul(s),s=sl(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 $l(a){return'href="'+Yn(a)+'"'}function ds(a){return'link[rel="stylesheet"]['+a+"]"}function vS(a){return y({},a,{"data-precedence":a.precedence,precedence:null})}function sk(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}),Jt(i,"link",s),qt(i),a.head.appendChild(i))}function Ul(a){return'[src="'+Yn(a)+'"]'}function hs(a){return"script[async]"+a}function yS(a,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+Yn(s.href)+'"]');if(c)return i.instance=c,qt(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"),qt(c),Jt(c,"style",v),Ec(c,s.precedence,a),i.instance=c;case"stylesheet":v=$l(s.href);var g=a.querySelector(ds(v));if(g)return i.state.loading|=4,i.instance=g,qt(g),g;c=vS(s),(v=er.get(v))&&bp(c,v),g=(a.ownerDocument||a).createElement("link"),qt(g);var O=g;return O._p=new Promise(function(E,z){O.onload=E,O.onerror=z}),Jt(g,"link",c),i.state.loading|=4,Ec(g,s.precedence,a),i.instance=g;case"script":return g=Ul(s.src),(v=a.querySelector(hs(g)))?(i.instance=v,qt(v),v):(c=s,(v=er.get(g))&&(c=y({},s),xp(c,v)),a=a.ownerDocument||a,v=a.createElement("script"),qt(v),Jt(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,Ec(c,s.precedence,a));return i.instance}function Ec(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 E=c[O];if(E.dataset.precedence===i)g=E;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 bp(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function xp(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var Cc=null;function gS(a,i,s){if(Cc===null){var c=new Map,v=Cc=new Map;v.set(s,c)}else v=Cc,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[Co]||g[Xt]||a==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var O=g.getAttribute(i)||"";O=a+O;var E=c.get(O);E?E.push(g):c.set(O,[g])}}return c}function bS(a,i,s){a=a.ownerDocument||a,a.head.insertBefore(s,i==="title"?a.querySelector("head > title"):null)}function uk(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 xS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function ck(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=$l(c.href),g=i.querySelector(ds(v));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Tc.bind(a),i.then(a,a)),s.state.loading|=4,s.instance=g,qt(g);return}g=i.ownerDocument||i,c=vS(c),(v=er.get(v))&&bp(c,v),g=g.createElement("link"),qt(g);var O=g;O._p=new Promise(function(E,z){O.onload=E,O.onerror=z}),Jt(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=Tc.bind(a),i.addEventListener("load",s),i.addEventListener("error",s))}}var wp=0;function fk(a,i){return a.stylesheets&&a.count===0&&Dc(a,a.stylesheets),0<a.count||0<a.imgCount?function(s){var c=setTimeout(function(){if(a.stylesheets&&Dc(a,a.stylesheets),a.unsuspend){var g=a.unsuspend;a.unsuspend=null,g()}},6e4+i);0<a.imgBytes&&wp===0&&(wp=62500*KD());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Dc(a,a.stylesheets),a.unsuspend)){var g=a.unsuspend;a.unsuspend=null,g()}},(a.imgBytes>wp?50:800)+i);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(v)}}:null}function Tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Dc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Mc=null;function Dc(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Mc=new Map,i.forEach(dk,a),Mc=null,Tc.call(a))}function dk(a,i){if(!(i.state.loading&4)){var s=Mc.get(a);if(s)var c=s.get(null);else{s=new Map,Mc.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=Tc.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 ms={$$typeof:C,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function hk(a,i,s,c,v,g,O,E,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=vh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vh(0),this.hiddenUpdates=vh(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 wS(a,i,s,c,v,g,O,E,z,F,ee,ae){return a=new hk(a,i,s,O,z,F,ee,ae,E),i=1,g===!0&&(i|=24),g=Pn(3,null,null,i),a.current=g,g.stateNode=a,i=em(),i.refCount++,a.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:s,cache:i},am(g),a}function SS(a){return a?(a=gl,a):gl}function jS(a,i,s,c,v,g){v=SS(v),c.context===null?c.context=v:c.pendingContext=v,c=Pa(i),c.payload={element:s},g=g===void 0?null:g,g!==null&&(c.callback=g),s=Ra(a,c,i),s!==null&&(Sn(s,a,i),Yo(s,a,i))}function _S(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var s=a.retryLane;a.retryLane=s!==0&&s<i?s:i}}function Sp(a,i){_S(a,i),(a=a.alternate)&&_S(a,i)}function OS(a){if(a.tag===13||a.tag===31){var i=vi(a,67108864);i!==null&&Sn(i,a,67108864),Sp(a,67108864)}}function AS(a){if(a.tag===13||a.tag===31){var i=In();i=yh(i);var s=vi(a,i);s!==null&&Sn(s,a,i),Sp(a,i)}}var kc=!0;function mk(a,i,s,c){var v=B.T;B.T=null;var g=Q.p;try{Q.p=2,jp(a,i,s,c)}finally{Q.p=g,B.T=v}}function pk(a,i,s,c){var v=B.T;B.T=null;var g=Q.p;try{Q.p=8,jp(a,i,s,c)}finally{Q.p=g,B.T=v}}function jp(a,i,s,c){if(kc){var v=_p(c);if(v===null)up(a,i,c,Pc,s),ES(a,c);else if(yk(v,a,i,s,c))c.stopPropagation();else if(ES(a,c),i&4&&-1<vk.indexOf(a)){for(;v!==null;){var g=ol(v);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var O=fi(g.pendingLanes);if(O!==0){var E=g;for(E.pendingLanes|=2,E.entangledLanes|=2;O;){var z=1<<31-Dn(O);E.entanglements[1]|=z,O&=~z}Or(g),(qe&6)===0&&(vc=xt()+500,ss(0))}}break;case 31:case 13:E=vi(g,2),E!==null&&Sn(E,g,2),gc(),Sp(g,2)}if(g=_p(c),g===null&&up(a,i,c,Pc,s),g===v)break;v=g}v!==null&&c.stopPropagation()}else up(a,i,c,null,s)}}function _p(a){return a=Ah(a),Op(a)}var Pc=null;function Op(a){if(Pc=null,a=ll(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 Pc=a,null}function NS(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(al()){case ci:return 2;case Oo:return 8;case ju:case n3:return 32;case Lb:return 268435456;default:return 32}default:return 32}}var Ap=!1,Ya=null,Ga=null,Va=null,ps=new Map,vs=new Map,Xa=[],vk="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 ES(a,i){switch(a){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ps.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(i.pointerId)}}function ys(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=ol(i),i!==null&&OS(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),a)}function yk(a,i,s,c,v){switch(i){case"focusin":return Ya=ys(Ya,a,i,s,c,v),!0;case"dragenter":return Ga=ys(Ga,a,i,s,c,v),!0;case"mouseover":return Va=ys(Va,a,i,s,c,v),!0;case"pointerover":var g=v.pointerId;return ps.set(g,ys(ps.get(g)||null,a,i,s,c,v)),!0;case"gotpointercapture":return g=v.pointerId,vs.set(g,ys(vs.get(g)||null,a,i,s,c,v)),!0}return!1}function CS(a){var i=ll(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,Hb(a.priority,function(){AS(s)});return}}else if(i===31){if(i=f(s),i!==null){a.blockedOn=i,Hb(a.priority,function(){AS(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 Rc(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var s=_p(a.nativeEvent);if(s===null){s=a.nativeEvent;var c=new s.constructor(s.type,s);Oh=c,s.target.dispatchEvent(c),Oh=null}else return i=ol(s),i!==null&&OS(i),a.blockedOn=s,!1;i.shift()}return!0}function TS(a,i,s){Rc(a)&&s.delete(i)}function gk(){Ap=!1,Ya!==null&&Rc(Ya)&&(Ya=null),Ga!==null&&Rc(Ga)&&(Ga=null),Va!==null&&Rc(Va)&&(Va=null),ps.forEach(TS),vs.forEach(TS)}function zc(a,i){a.blockedOn===i&&(a.blockedOn=null,Ap||(Ap=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gk)))}var Lc=null;function MS(a){Lc!==a&&(Lc=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lc===a&&(Lc=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(Op(c||s)===null)continue;break}var g=ol(s);g!==null&&(a.splice(i,3),i-=3,_m(g,{pending:!0,data:v,method:s.method,action:c},c,v))}}))}function ql(a){function i(z){return zc(z,a)}Ya!==null&&zc(Ya,a),Ga!==null&&zc(Ga,a),Va!==null&&zc(Va,a),ps.forEach(i),vs.forEach(i);for(var s=0;s<Xa.length;s++){var c=Xa[s];c.blockedOn===a&&(c.blockedOn=null)}for(;0<Xa.length&&(s=Xa[0],s.blockedOn===null);)CS(s),s.blockedOn===null&&Xa.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[vn]||null;if(typeof g=="function")O||MS(s);else if(O){var E=null;if(g&&g.hasAttribute("formAction")){if(v=g,O=g[vn]||null)E=O.formAction;else if(Op(v)!==null)continue}else E=O.action;typeof E=="function"?s[c+1]=E:(s.splice(c,3),c-=3),MS(s)}}}function DS(){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 Np(a){this._internalRoot=a}Bc.prototype.render=Np.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,c=In();jS(s,c,a,i,null,null)},Bc.prototype.unmount=Np.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;jS(a.current,2,null,a,null,null),gc(),i[il]=null}};function Bc(a){this._internalRoot=a}Bc.prototype.unstable_scheduleHydration=function(a){if(a){var i=qb();a={blockedOn:null,target:a,priority:i};for(var s=0;s<Xa.length&&i!==0&&i<Xa[s].priority;s++);Xa.splice(s,0,a),s===0&&CS(a)}};var kS=t.version;if(kS!=="19.2.3")throw Error(r(527,kS,"19.2.3"));Q.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 bk={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ic.isDisabled&&Ic.supportsFiber)try{Ao=Ic.inject(bk),Mn=Ic}catch{}}return bs.createRoot=function(a,i){if(!l(a))throw Error(r(299));var s=!1,c="",v=$1,g=U1,O=q1;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=wS(a,1,!1,null,null,s,c,null,v,g,O,DS),a[il]=i.current,sp(a),new Np(i)},bs.hydrateRoot=function(a,i,s){if(!l(a))throw Error(r(299));var c=!1,v="",g=$1,O=U1,E=q1,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&&(E=s.onRecoverableError),s.formState!==void 0&&(z=s.formState)),i=wS(a,1,!0,i,s??null,c,v,z,g,O,E,DS),i.context=SS(null),s=i.current,c=In(),c=yh(c),v=Pa(c),v.callback=null,Ra(s,v,c),s=c,i.current.lanes=s,Eo(i,s),Or(i),a[il]=i.current,sp(a),new Bc(i)},bs.version="19.2.3",bs}var HS;function Dk(){if(HS)return Mp.exports;HS=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(),Mp.exports=Mk(),Mp.exports}var kk=Dk();const Pk=kr(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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),FS=e=>{const t=zk(e);return t.charAt(0).toUpperCase()+t.slice(1)},gN=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Lk=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 Bk={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 Ik=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,...Bk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gN("lucide",l),...!o&&!Lk(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 Oe=(e,t)=>{const n=x.forwardRef(({className:r,...l},o)=>x.createElement(Ik,{ref:o,iconNode:t,className:gN(`lucide-${Rk(FS(e))}`,`lucide-${e}`,r),...l}));return n.displayName=FS(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 $k=[["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"}]],Uk=Oe("activity",$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 qk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hk=Oe("arrow-right",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:"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"}]],ra=Oe("bot",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:"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"}]],bN=Oe("box",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:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Rp=Oe("check",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 Gk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Vk=Oe("chevron-left",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 Xk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zk=Oe("chevron-right",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:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],KS=Oe("clock",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=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],YS=Oe("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 Jk=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],xN=Oe("credit-card",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 eP=[["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"}]],tP=Oe("database",eP);/**
 * @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 nP=[["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"}]],rP=Oe("dollar-sign",nP);/**
 * @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 aP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],iP=Oe("external-link",aP);/**
 * @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 lP=[["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"}]],jy=Oe("eye-off",lP);/**
 * @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 oP=[["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"}]],bf=Oe("eye",oP);/**
 * @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 sP=[["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"}]],GS=Oe("file-text",sP);/**
 * @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 uP=[["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"}]],VS=Oe("image",uP);/**
 * @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 cP=[["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"}]],fP=Oe("key-round",cP);/**
 * @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 dP=[["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"}]],lf=Oe("key",dP);/**
 * @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 hP=[["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"}]],mP=Oe("layout-dashboard",hP);/**
 * @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 pP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Di=Oe("loader-circle",pP);/**
 * @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 vP=[["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"}]],yP=Oe("lock",vP);/**
 * @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 gP=[["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"}]],bP=Oe("log-out",gP);/**
 * @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 xP=[["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"}]],wP=Oe("mail",xP);/**
 * @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 SP=[["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"}]],ta=Oe("message-square",SP);/**
 * @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 jP=[["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"}]],XS=Oe("package-check",jP);/**
 * @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 _P=[["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"}]],wN=Oe("package",_P);/**
 * @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 OP=[["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"}]],of=Oe("pen",OP);/**
 * @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 AP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ks=Oe("plus",AP);/**
 * @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 NP=[["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"}]],EP=Oe("power-off",NP);/**
 * @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 CP=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],sf=Oe("power",CP);/**
 * @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 TP=[["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"}]],MP=Oe("qr-code",TP);/**
 * @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 DP=[["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"}]],Fi=Oe("refresh-cw",DP);/**
 * @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 kP=[["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"}]],ti=Oe("save",kP);/**
 * @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 PP=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],RP=Oe("search",PP);/**
 * @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 zP=[["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"}]],Dg=Oe("settings",zP);/**
 * @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 LP=[["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"}]],BP=Oe("shield-check",LP);/**
 * @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 IP=[["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"}]],SN=Oe("shopping-bag",IP);/**
 * @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 $P=[["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"}]],ZS=Oe("shopping-cart",$P);/**
 * @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 UP=[["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"}]],xf=Oe("sparkles",UP);/**
 * @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 qP=[["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"}]],kg=Oe("square-pen",qP);/**
 * @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 HP=[["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"}]],Ql=Oe("trash-2",HP);/**
 * @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 FP=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],KP=Oe("trending-up",FP);/**
 * @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 YP=[["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"}]],Vl=Oe("truck",YP);/**
 * @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 GP=[["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"}]],VP=Oe("upload",GP);/**
 * @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 XP=[["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"}]],jN=Oe("user",XP);/**
 * @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 ZP=[["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"}]],_N=Oe("users",ZP);/**
 * @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 WP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ir=Oe("x",WP),QP=({activeTab:e,setActiveTab:t,onLogout:n})=>{const r=[{id:"dashboard",icon:mP,label:"仪表盘"},{id:"accounts",icon:_N,label:"账号管理"},{id:"orders",icon:SN,label:"订单管理"},{id:"cards",icon:xN,label:"卡密库存"},{id:"items",icon:bN,label:"商品列表"},{id:"keywords",icon:ta,label:"关键词管理"},{id:"settings",icon:Dg,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(xf,{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(bP,{className:"w-5 h-5"}),m.jsx("span",{className:"text-sm",children:"退出登录"})]})})]})};function ON(e,t){return function(){return e.apply(t,arguments)}}const{toString:JP}=Object.prototype,{getPrototypeOf:Pg}=Object,{iterator:gd,toStringTag:AN}=Symbol,bd=(e=>t=>{const n=JP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xr=e=>(e=e.toLowerCase(),t=>bd(t)===e),xd=e=>t=>typeof t===e,{isArray:fo}=Array,no=xd("undefined");function Xs(e){return e!==null&&!no(e)&&e.constructor!==null&&!no(e.constructor)&&_n(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NN=xr("ArrayBuffer");function e4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&NN(e.buffer),t}const t4=xd("string"),_n=xd("function"),EN=xd("number"),Zs=e=>e!==null&&typeof e=="object",n4=e=>e===!0||e===!1,uf=e=>{if(bd(e)!=="object")return!1;const t=Pg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(AN in e)&&!(gd in e)},r4=e=>{if(!Zs(e)||Xs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},a4=xr("Date"),i4=xr("File"),l4=xr("Blob"),o4=xr("FileList"),s4=e=>Zs(e)&&_n(e.pipe),u4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_n(e.append)&&((t=bd(e))==="formdata"||t==="object"&&_n(e.toString)&&e.toString()==="[object FormData]"))},c4=xr("URLSearchParams"),[f4,d4,h4,m4]=["ReadableStream","Request","Response","Headers"].map(xr),p4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ws(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),fo(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{if(Xs(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 CN(e,t){if(Xs(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 ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,TN=e=>!no(e)&&e!==ki;function _y(){const{caseless:e,skipUndefined:t}=TN(this)&&this||{},n={},r=(l,o)=>{const u=e&&CN(n,o)||o;uf(n[u])&&uf(l)?n[u]=_y(n[u],l):uf(l)?n[u]=_y({},l):fo(l)?n[u]=l.slice():(!t||!no(l))&&(n[u]=l)};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&Ws(arguments[l],r);return n}const v4=(e,t,n,{allOwnKeys:r}={})=>(Ws(t,(l,o)=>{n&&_n(l)?e[o]=ON(l,n):e[o]=l},{allOwnKeys:r}),e),y4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),g4=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},b4=(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&&Pg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},x4=(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},w4=e=>{if(!e)return null;if(fo(e))return e;let t=e.length;if(!EN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},S4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pg(Uint8Array)),j4=(e,t)=>{const r=(e&&e[gd]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},_4=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},O4=xr("HTMLFormElement"),A4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),WS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N4=xr("RegExp"),MN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ws(n,(l,o)=>{let u;(u=t(l,o,e))!==!1&&(r[o]=u||l)}),Object.defineProperties(e,r)},E4=e=>{MN(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+"'")})}})},C4=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return fo(e)?r(e):r(String(e).split(t)),n},T4=()=>{},M4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function D4(e){return!!(e&&_n(e.append)&&e[AN]==="FormData"&&e[gd])}const k4=e=>{const t=new Array(10),n=(r,l)=>{if(Zs(r)){if(t.indexOf(r)>=0)return;if(Xs(r))return r;if(!("toJSON"in r)){t[l]=r;const o=fo(r)?[]:{};return Ws(r,(u,f)=>{const d=n(u,l+1);!no(d)&&(o[f]=d)}),t[l]=void 0,o}}return r};return n(e,0)},P4=xr("AsyncFunction"),R4=e=>e&&(Zs(e)||_n(e))&&_n(e.then)&&_n(e.catch),DN=((e,t)=>e?setImmediate:t?((n,r)=>(ki.addEventListener("message",({source:l,data:o})=>{l===ki&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),ki.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_n(ki.postMessage)),z4=typeof queueMicrotask<"u"?queueMicrotask.bind(ki):typeof process<"u"&&process.nextTick||DN,L4=e=>e!=null&&_n(e[gd]),X={isArray:fo,isArrayBuffer:NN,isBuffer:Xs,isFormData:u4,isArrayBufferView:e4,isString:t4,isNumber:EN,isBoolean:n4,isObject:Zs,isPlainObject:uf,isEmptyObject:r4,isReadableStream:f4,isRequest:d4,isResponse:h4,isHeaders:m4,isUndefined:no,isDate:a4,isFile:i4,isBlob:l4,isRegExp:N4,isFunction:_n,isStream:s4,isURLSearchParams:c4,isTypedArray:S4,isFileList:o4,forEach:Ws,merge:_y,extend:v4,trim:p4,stripBOM:y4,inherits:g4,toFlatObject:b4,kindOf:bd,kindOfTest:xr,endsWith:x4,toArray:w4,forEachEntry:j4,matchAll:_4,isHTMLForm:O4,hasOwnProperty:WS,hasOwnProp:WS,reduceDescriptors:MN,freezeMethods:E4,toObjectSet:C4,toCamelCase:A4,noop:T4,toFiniteNumber:M4,findKey:CN,global:ki,isContextDefined:TN,isSpecCompliantForm:D4,toJSONObject:k4,isAsyncFn:P4,isThenable:R4,setImmediate:DN,asap:z4,isIterable:L4};function Ce(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}X.inherits(Ce,Error,{toJSON:function(){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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const kN=Ce.prototype,PN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{PN[e]={value:e}});Object.defineProperties(Ce,PN);Object.defineProperty(kN,"isAxiosError",{value:!0});Ce.from=(e,t,n,r,l,o)=>{const u=Object.create(kN);X.toFlatObject(e,u,function(p){return p!==Error.prototype},h=>h!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Ce.call(u,f,d,n,r,l),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",o&&Object.assign(u,o),u};const B4=null;function Oy(e){return X.isPlainObject(e)||X.isArray(e)}function RN(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function QS(e,t,n){return e?e.concat(t).map(function(l,o){return l=RN(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function I4(e){return X.isArray(e)&&!e.some(Oy)}const $4=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function wd(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,_){return!X.isUndefined(_[j])});const r=n.metaTokens,l=n.visitor||p,o=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(l))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(X.isDate(S))return S.toISOString();if(X.isBoolean(S))return S.toString();if(!d&&X.isBlob(S))throw new Ce("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(S)||X.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function p(S,j,_){let N=S;if(S&&!_&&typeof S=="object"){if(X.endsWith(j,"{}"))j=r?j:j.slice(0,-2),S=JSON.stringify(S);else if(X.isArray(S)&&I4(S)||(X.isFileList(S)||X.endsWith(j,"[]"))&&(N=X.toArray(S)))return j=RN(j),N.forEach(function(C,M){!(X.isUndefined(C)||C===null)&&t.append(u===!0?QS([j],M,o):u===null?j:j+"[]",h(C))}),!1}return Oy(S)?!0:(t.append(QS(_,j,o),h(S)),!1)}const y=[],b=Object.assign($4,{defaultVisitor:p,convertValue:h,isVisitable:Oy});function w(S,j){if(!X.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+j.join("."));y.push(S),X.forEach(S,function(N,A){(!(X.isUndefined(N)||N===null)&&l.call(t,N,X.isString(A)?A.trim():A,j,b))===!0&&w(N,j?j.concat(A):[A])}),y.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return w(e),t}function JS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Rg(e,t){this._pairs=[],e&&wd(e,this,t)}const zN=Rg.prototype;zN.append=function(t,n){this._pairs.push([t,n])};zN.toString=function(t){const n=t?function(r){return t.call(this,r,JS)}:JS;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function U4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function LN(e,t,n){if(!t)return e;const r=n&&n.encode||U4;X.isFunction(n)&&(n={serialize:n});const l=n&&n.serialize;let o;if(l?o=l(t,n):o=X.isURLSearchParams(t)?t.toString():new Rg(t,n).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class e2{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){X.forEach(this.handlers,function(r){r!==null&&t(r)})}}const BN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},q4=typeof URLSearchParams<"u"?URLSearchParams:Rg,H4=typeof FormData<"u"?FormData:null,F4=typeof Blob<"u"?Blob:null,K4={isBrowser:!0,classes:{URLSearchParams:q4,FormData:H4,Blob:F4},protocols:["http","https","file","blob","url","data"]},zg=typeof window<"u"&&typeof document<"u",Ay=typeof navigator=="object"&&navigator||void 0,Y4=zg&&(!Ay||["ReactNative","NativeScript","NS"].indexOf(Ay.product)<0),G4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",V4=zg&&window.location.href||"http://localhost",X4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zg,hasStandardBrowserEnv:Y4,hasStandardBrowserWebWorkerEnv:G4,navigator:Ay,origin:V4},Symbol.toStringTag,{value:"Module"})),on={...X4,...K4};function Z4(e,t){return wd(e,new on.classes.URLSearchParams,{visitor:function(n,r,l,o){return on.isNode&&X.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function W4(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q4(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 IN(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&&X.isArray(l)?l.length:u,d?(X.hasOwnProp(l,u)?l[u]=[l[u],r]:l[u]=r,!f):((!l[u]||!X.isObject(l[u]))&&(l[u]=[]),t(n,r,l[u],o)&&X.isArray(l[u])&&(l[u]=Q4(l[u])),!f)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(r,l)=>{t(W4(r),l,n,0)}),n}return null}function J4(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qs={transitional:BN,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=X.isObject(t);if(o&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return l?JSON.stringify(IN(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.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 Z4(t,this.formSerializer).toString();if((f=X.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return wd(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),J4(t)):t}],transformResponse:[function(t){const n=this.transitional||Qs.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.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"?Ce.from(f,Ce.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:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{Qs.headers[e]={}});const e6=X.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"]),t6=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]&&e6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},t2=Symbol("internals");function xs(e){return e&&String(e).trim().toLowerCase()}function cf(e){return e===!1||e==null?e:X.isArray(e)?e.map(cf):String(e)}function n6(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 r6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zp(e,t,n,r,l){if(X.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function a6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function i6(e,t){const n=X.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=xs(d);if(!p)throw new Error("header name must be a non-empty string");const y=X.findKey(l,p);(!y||l[y]===void 0||h===!0||h===void 0&&l[y]!==!1)&&(l[y||d]=cf(f))}const u=(f,d)=>X.forEach(f,(h,p)=>o(h,p,d));if(X.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(X.isString(t)&&(t=t.trim())&&!r6(t))u(t6(t),n);else if(X.isObject(t)&&X.isIterable(t)){let f={},d,h;for(const p of t){if(!X.isArray(p))throw TypeError("Object iterator must return a key-value pair");f[h=p[0]]=(d=f[h])?X.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=xs(t),t){const r=X.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return n6(l);if(X.isFunction(n))return n.call(this,l,r);if(X.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xs(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(u){if(u=xs(u),u){const f=X.findKey(r,u);f&&(!n||zp(r,r[f],f,n))&&(delete r[f],l=!0)}}return X.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||zp(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return X.forEach(this,(l,o)=>{const u=X.findKey(r,o);if(u){n[u]=cf(l),delete n[o];return}const f=t?a6(o):String(o).trim();f!==o&&delete n[o],n[f]=cf(l),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&X.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[t2]=this[t2]={accessors:{}}).accessors,l=this.prototype;function o(u){const f=xs(u);r[f]||(i6(l,u),r[f]=!0)}return X.isArray(t)?t.forEach(o):o(t),this}};On.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(On.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(On);function Lp(e,t){const n=this||Qs,r=t||n,l=On.from(r.headers);let o=r.data;return X.forEach(e,function(f){o=f.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function $N(e){return!!(e&&e.__CANCEL__)}function ho(e,t,n){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(ho,Ce,{__CANCEL__:!0});function UN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ce("Request failed with status code "+n.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function o6(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 w=p&&h-p;return w?Math.round(b*1e3/w):void 0}}function s6(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 wf=(e,t,n=3)=>{let r=0;const l=o6(50,250);return s6(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)},n2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},r2=e=>(...t)=>X.asap(()=>e(...t)),u6=on.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,on.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(on.origin),on.navigator&&/(msie|trident)/i.test(on.navigator.userAgent)):()=>!0,c6=on.hasStandardBrowserEnv?{write(e,t,n,r,l,o,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&f.push(`path=${r}`),X.isString(l)&&f.push(`domain=${l}`),o===!0&&f.push("secure"),X.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 f6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function d6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qN(e,t,n){let r=!f6(t);return e&&(r||n==!1)?d6(e,t):t}const a2=e=>e instanceof On?{...e}:e;function Ki(e,t){t=t||{};const n={};function r(h,p,y,b){return X.isPlainObject(h)&&X.isPlainObject(p)?X.merge.call({caseless:b},h,p):X.isPlainObject(p)?X.merge({},p):X.isArray(p)?p.slice():p}function l(h,p,y,b){if(X.isUndefined(p)){if(!X.isUndefined(h))return r(void 0,h,y,b)}else return r(h,p,y,b)}function o(h,p){if(!X.isUndefined(p))return r(void 0,p)}function u(h,p){if(X.isUndefined(p)){if(!X.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(a2(h),a2(p),y,!0)};return X.forEach(Object.keys({...e,...t}),function(p){const y=d[p]||l,b=y(e[p],t[p],p);X.isUndefined(b)&&y!==f||(n[p]=b)}),n}const HN=e=>{const t=Ki({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:u,auth:f}=t;if(t.headers=u=On.from(u),t.url=LN(qN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),X.isFormData(n)){if(on.hasStandardBrowserEnv||on.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(X.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(on.hasStandardBrowserEnv&&(r&&X.isFunction(r)&&(r=r(t)),r||r!==!1&&u6(t.url))){const d=l&&o&&c6.read(o);d&&u.set(l,d)}return t},h6=typeof XMLHttpRequest<"u",m6=h6&&function(e){return new Promise(function(n,r){const l=HN(e);let o=l.data;const u=On.from(l.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=l,p,y,b,w,S;function j(){w&&w(),S&&S(),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 N(){if(!_)return;const C=On.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),D={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:C,config:e,request:_};UN(function(k){n(k),j()},function(k){r(k),j()},D),_=null}"onloadend"in _?_.onloadend=N:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(N)},_.onabort=function(){_&&(r(new Ce("Request aborted",Ce.ECONNABORTED,e,_)),_=null)},_.onerror=function(M){const D=M&&M.message?M.message:"Network Error",T=new Ce(D,Ce.ERR_NETWORK,e,_);T.event=M||null,r(T),_=null},_.ontimeout=function(){let M=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const D=l.transitional||BN;l.timeoutErrorMessage&&(M=l.timeoutErrorMessage),r(new Ce(M,D.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,_)),_=null},o===void 0&&u.setContentType(null),"setRequestHeader"in _&&X.forEach(u.toJSON(),function(M,D){_.setRequestHeader(D,M)}),X.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),f&&f!=="json"&&(_.responseType=l.responseType),h&&([b,S]=wf(h,!0),_.addEventListener("progress",b)),d&&_.upload&&([y,w]=wf(d),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(p=C=>{_&&(r(!C||C.type?new ho(null,e,_):C),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p)));const A=l6(l.url);if(A&&on.protocols.indexOf(A)===-1){r(new Ce("Unsupported protocol "+A+":",Ce.ERR_BAD_REQUEST,e));return}_.send(o||null)})},p6=(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 Ce?p:new ho(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,o(new Ce(`timeout ${t} of ms exceeded`,Ce.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=()=>X.asap(f),d}},v6=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},y6=async function*(e,t){for await(const n of g6(e))yield*v6(n,t)},g6=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()}},i2=(e,t,n,r)=>{const l=y6(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})},l2=64*1024,{isFunction:$c}=X,b6=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:o2,TextEncoder:s2}=X.global,u2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},x6=e=>{e=X.merge.call({skipUndefined:!0},b6,e);const{fetch:t,Request:n,Response:r}=e,l=t?$c(t):typeof fetch=="function",o=$c(n),u=$c(r);if(!l)return!1;const f=l&&$c(o2),d=l&&(typeof s2=="function"?(S=>j=>S.encode(j))(new s2):async S=>new Uint8Array(await new n(S).arrayBuffer())),h=o&&f&&u2(()=>{let S=!1;const j=new n(on.origin,{body:new o2,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!j}),p=u&&f&&u2(()=>X.isReadableStream(new r("").body)),y={stream:p&&(S=>S.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(j,_)=>{let N=j&&j[S];if(N)return N.call(j);throw new Ce(`Response type '${S}' is not supported`,Ce.ERR_NOT_SUPPORT,_)})});const b=async S=>{if(S==null)return 0;if(X.isBlob(S))return S.size;if(X.isSpecCompliantForm(S))return(await new n(on.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(X.isArrayBufferView(S)||X.isArrayBuffer(S))return S.byteLength;if(X.isURLSearchParams(S)&&(S=S+""),X.isString(S))return(await d(S)).byteLength},w=async(S,j)=>{const _=X.toFiniteNumber(S.getContentLength());return _??b(j)};return async S=>{let{url:j,method:_,data:N,signal:A,cancelToken:C,timeout:M,onDownloadProgress:D,onUploadProgress:T,responseType:k,headers:$,withCredentials:Z="same-origin",fetchOptions:V}=HN(S),re=t||fetch;k=k?(k+"").toLowerCase():"text";let P=p6([A,C&&C.toAbortSignal()],M),ue=null;const U=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let ne;try{if(T&&h&&_!=="get"&&_!=="head"&&(ne=await w($,N))!==0){let R=new n(j,{method:"POST",body:N,duplex:"half"}),G;if(X.isFormData(N)&&(G=R.headers.get("content-type"))&&$.setContentType(G),R.body){const[oe,ce]=n2(ne,wf(r2(T)));N=i2(R.body,l2,oe,ce)}}X.isString(Z)||(Z=Z?"include":"omit");const B=o&&"credentials"in n.prototype,Q={...V,signal:P,method:_.toUpperCase(),headers:$.normalize().toJSON(),body:N,duplex:"half",credentials:B?Z:void 0};ue=o&&new n(j,Q);let ie=await(o?re(ue,V):re(j,Q));const fe=p&&(k==="stream"||k==="response");if(p&&(D||fe&&U)){const R={};["status","statusText","headers"].forEach(pe=>{R[pe]=ie[pe]});const G=X.toFiniteNumber(ie.headers.get("content-length")),[oe,ce]=D&&n2(G,wf(r2(D),!0))||[];ie=new r(i2(ie.body,l2,oe,()=>{ce&&ce(),U&&U()}),R)}k=k||"text";let de=await y[X.findKey(y,k)||"text"](ie,S);return!fe&&U&&U(),await new Promise((R,G)=>{UN(R,G,{data:de,headers:On.from(ie.headers),status:ie.status,statusText:ie.statusText,config:S,request:ue})})}catch(B){throw U&&U(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,S,ue),{cause:B.cause||B}):Ce.from(B,B&&B.code,S,ue)}}},w6=new Map,FN=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=w6;for(;f--;)d=o[f],h=p.get(d),h===void 0&&p.set(d,h=f?new Map:x6(t)),p=h;return h};FN();const Lg={http:B4,xhr:m6,fetch:{get:FN}};X.forEach(Lg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const c2=e=>`- ${e}`,S6=e=>X.isFunction(e)||e===null||e===!1;function j6(e,t){e=X.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,!S6(r)&&(l=Lg[(f=String(r)).toLowerCase()],l===void 0))throw new Ce(`Unknown adapter '${f}'`);if(l&&(X.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(c2).join(`
`):" "+c2(u[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return l}const KN={getAdapter:j6,adapters:Lg};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ho(null,e)}function f2(e){return Bp(e),e.headers=On.from(e.headers),e.data=Lp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),KN.getAdapter(e.adapter||Qs.adapter,e)(e).then(function(r){return Bp(e),r.data=Lp.call(e,e.transformResponse,r),r.headers=On.from(r.headers),r},function(r){return $N(r)||(Bp(e),r&&r.response&&(r.response.data=Lp.call(e,e.transformResponse,r.response),r.response.headers=On.from(r.response.headers))),Promise.reject(r)})}const YN="1.13.2",Sd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const d2={};Sd.transitional=function(t,n,r){function l(o,u){return"[Axios v"+YN+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,f)=>{if(t===!1)throw new Ce(l(u," has been removed"+(n?" in "+n:"")),Ce.ERR_DEPRECATED);return n&&!d2[u]&&(d2[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}};Sd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _6(e,t,n){if(typeof e!="object")throw new Ce("options must be an object",Ce.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 Ce("option "+o+" must be "+d,Ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ce("Unknown option "+o,Ce.ERR_BAD_OPTION)}}const ff={assertOptions:_6,validators:Sd},Ar=ff.validators;let Bi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new e2,response:new e2}}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=Ki(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&ff.assertOptions(r,{silentJSONParsing:Ar.transitional(Ar.boolean),forcedJSONParsing:Ar.transitional(Ar.boolean),clarifyTimeoutError:Ar.transitional(Ar.boolean)},!1),l!=null&&(X.isFunction(l)?n.paramsSerializer={serialize:l}:ff.assertOptions(l,{encode:Ar.function,serialize:Ar.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ff.assertOptions(n,{baseUrl:Ar.spelling("baseURL"),withXsrfToken:Ar.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=o&&X.merge(o.common,o[n.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=On.concat(u,o);const f=[];let d=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(d=d&&j.synchronous,f.unshift(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 S=[f2.bind(this),void 0];for(S.unshift(...f),S.push(...h),b=S.length,p=Promise.resolve(n);y<b;)p=p.then(S[y++],S[y++]);return p}b=f.length;let w=n;for(;y<b;){const S=f[y++],j=f[y++];try{w=S(w)}catch(_){j.call(this,_);break}}try{p=f2.call(this,w)}catch(S){return Promise.reject(S)}for(y=0,b=h.length;y<b;)p=p.then(h[y++],h[y++]);return p}getUri(t){t=Ki(this.defaults,t);const n=qN(t.baseURL,t.url,t.allowAbsoluteUrls);return LN(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Bi.prototype[t]=function(n,r){return this.request(Ki(r||{},{method:t,url:n,data:(r||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(r){return function(o,u,f){return this.request(Ki(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:u}))}}Bi.prototype[t]=n(),Bi.prototype[t+"Form"]=n(!0)});let O6=class GN{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 ho(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 GN(function(l){t=l}),cancel:t}}};function A6(e){return function(n){return e.apply(null,n)}}function N6(e){return X.isObject(e)&&e.isAxiosError===!0}const Ny={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(Ny).forEach(([e,t])=>{Ny[t]=e});function VN(e){const t=new Bi(e),n=ON(Bi.prototype.request,t);return X.extend(n,Bi.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return VN(Ki(e,l))},n}const _t=VN(Qs);_t.Axios=Bi;_t.CanceledError=ho;_t.CancelToken=O6;_t.isCancel=$N;_t.VERSION=YN;_t.toFormData=wd;_t.AxiosError=Ce;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=A6;_t.isAxiosError=N6;_t.mergeConfig=Ki;_t.AxiosHeaders=On;_t.formToJSON=e=>IN(X.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=KN.getAdapter;_t.HttpStatusCode=Ny;_t.default=_t;const{Axios:zW,AxiosError:LW,CanceledError:BW,isCancel:IW,CancelToken:$W,VERSION:UW,all:qW,Cancel:HW,isAxiosError:FW,spread:KW,toFormData:YW,AxiosHeaders:GW,HttpStatusCode:VW,formToJSON:XW,getAdapter:ZW,mergeConfig:WW}=_t,mo=_t.create({baseURL:"",timeout:3e4,headers:{"Content-Type":"application/json"}});mo.interceptors.request.use(e=>{const t=localStorage.getItem("auth_token");return t&&e.headers&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));mo.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 nn=(e,t,n)=>mo.get(e,{...n,params:t}),ya=(e,t,n)=>mo.post(e,t,n),cr=(e,t,n)=>mo.put(e,t,n),jd=(e,t)=>mo.delete(e,t),E6=async e=>ya("/login",e),C6=async()=>nn("/verify"),Bg=async()=>(await nn("/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})),T6=async()=>ya("/qr-login/generate"),M6=async e=>nn(`/qr-login/check/${e}`),D6=async(e,t)=>cr(`/cookies/${e}/status`,{enabled:t}),k6=async e=>jd(`/cookies/${e}`),P6=async(e,t)=>cr(`/cookies/${e}/remark`,{remark:t}),R6=async(e,t)=>cr(`/cookies/${e}/auto-confirm`,{auto_confirm:t}),z6=async(e,t)=>cr(`/cookies/${e}/pause-duration`,{pause_duration:t}),L6=async(e,t)=>cr(`/cookies/${e}`,{id:e,value:t}),B6=async(e,t)=>cr(`/cookies/${e}/login-info`,t),I6=async()=>nn("/ai-reply-settings"),h2=async(e,t,n=1,r=20)=>{const l={page:n,page_size:r};t&&t!=="all"&&(l.status=t);const o=await nn("/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}},$6=async(e,t)=>cr(`/api/orders/${e}`,t),U6=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()},q6=async(e,t,n)=>ya("/api/orders/manual-ship",{order_ids:e,ship_mode:t,custom_content:n}),H6=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()},F6=async()=>nn("/admin/stats"),m2=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 nn("/analytics/orders",t)},Yl=async()=>{const e=await nn("/cards");return Array.isArray(e)?e:e.cards||[]},K6=async e=>ya("/cards",e),p2=async(e,t)=>cr(`/cards/${e}`,t),Y6=async e=>jd(`/cards/${e}`),Ey=async()=>{const e=await nn("/items");return Array.isArray(e)?e:e.items||[]},G6=async e=>ya("/items/get-all-from-account",{cookie_id:e}),V6=async()=>{const e=await nn("/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}))},v2=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?cr(`/delivery-rules/${e.id}`,t):ya("/delivery-rules",t)},X6=async e=>jd(`/delivery-rules/${e}`),Z6=async e=>{if(!e)return[];const t=await nn(`/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}))},W6=async(e,t)=>{const n=await nn(`/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 ya(`/keywords-with-item-id/${t}`,{keywords:r})},Q6=async(e,t)=>{const n=await nn(`/keywords-with-item-id/${t}`),r=Array.isArray(n)?n:[],l=parseInt(e);return l>=0&&l<r.length&&r.splice(l,1),ya(`/keywords-with-item-id/${t}`,{keywords:r})},J6=async()=>{const e=await nn("/system-settings");return e.data||e},eR=async e=>{const t=Object.entries(e).map(([n,r])=>cr(`/system-settings/${n}`,{value:String(r)}));return await Promise.all(t),{success:!0,message:"Settings saved"}},tR=async e=>nn(`/ai-reply-settings/${e}`),nR=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 cr(`/ai-reply-settings/${e}`,n)},rR=async()=>nn("/api/default-replies"),aR=async e=>{const t=await nn(`/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||""}},iR=async(e,t)=>cr(`/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||""}),lR=async e=>jd(`/api/default-reply/${e}`),oR=async e=>ya(`/api/default-reply/${e}/clear-records`,{});function XN(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=XN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $e(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=XN(e))&&(r&&(r+=" "),r+=t);return r}var sR=["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 Ig(e){if(typeof e!="string")return!1;var t=sR;return t.includes(e)}var uR=["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"],cR=new Set(uR);function ZN(e){return typeof e!="string"?!1:cR.has(e)}function WN(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)&&(ZN(n)||WN(n))&&(t[n]=e[n]);return t}function Yi(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 mn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(ZN(n)||WN(n)||Ig(n))&&(t[n]=e[n]);return t}function fR(e){return e==null?null:x.isValidElement(e)?mn(e.props):typeof e=="object"&&!Array.isArray(e)?mn(e):null}var dR=["children","width","height","viewBox","className","style","title","desc"];function Cy(){return Cy=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},Cy.apply(null,arguments)}function hR(e,t){if(e==null)return{};var n,r,l=mR(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 mR(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 $g=x.forwardRef((e,t)=>{var{children:n,width:r,height:l,viewBox:o,className:u,style:f,title:d,desc:h}=e,p=hR(e,dR),y=o||{width:r,height:l,x:0,y:0},b=$e("recharts-surface",u);return x.createElement("svg",Cy({},mn(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)}),pR=["children","className"];function Ty(){return Ty=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},Ty.apply(null,arguments)}function vR(e,t){if(e==null)return{};var n,r,l=yR(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 yR(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=vR(e,pR),o=$e("recharts-layer",r);return x.createElement("g",Ty({className:o},mn(l),{ref:t}),n)}),dn=yN(),QN=x.createContext(null),gR=()=>x.useContext(QN);function rt(e){return function(){return e}}const JN=Math.cos,Sf=Math.sin,wr=Math.sqrt,jf=Math.PI,_d=2*jf,My=Math.PI,Dy=2*My,Ci=1e-6,bR=Dy-Ci;function eE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return eE;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 wR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?eE:xR(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>Ci)if(!(Math.abs(y*d-h*p)>Ci)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let w=r-u,S=l-f,j=d*d+h*h,_=w*w+S*S,N=Math.sqrt(j),A=Math.sqrt(b),C=o*Math.tan((My-Math.acos((j+b-_)/(2*N*A)))/2),M=C/A,D=C/N;Math.abs(M-1)>Ci&&this._append`L${t+M*p},${n+M*y}`,this._append`A${o},${o},0,0,${+(y*w>p*S)},${this._x1=t+D*d},${this._y1=n+D*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)>Ci||Math.abs(this._y1-p)>Ci)&&this._append`L${h},${p}`,r&&(b<0&&(b=b%Dy+Dy),b>bR?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>Ci&&this._append`A${r},${r},0,${+(b>=My)},${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 Ug(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 wR(t)}function qg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tE(e){this._context=e}tE.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 Od(e){return new tE(e)}function nE(e){return e[0]}function rE(e){return e[1]}function aE(e,t){var n=rt(!0),r=null,l=Od,o=null,u=Ug(f);e=typeof e=="function"?e:e===void 0?nE:rt(e),t=typeof t=="function"?t:t===void 0?rE:rt(t);function f(d){var h,p=(d=qg(d)).length,y,b=!1,w;for(r==null&&(o=l(w=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(w)return o=null,w+""||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 Uc(e,t,n){var r=null,l=rt(!0),o=null,u=Od,f=null,d=Ug(h);e=typeof e=="function"?e:e===void 0?nE:rt(+e),t=typeof t=="function"?t:rt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?rE:rt(+n);function h(y){var b,w,S,j=(y=qg(y)).length,_,N=!1,A,C=new Array(j),M=new Array(j);for(o==null&&(f=u(A=d())),b=0;b<=j;++b){if(!(b<j&&l(_=y[b],b,y))===N)if(N=!N)w=b,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),S=b-1;S>=w;--S)f.point(C[S],M[S]);f.lineEnd(),f.areaEnd()}N&&(C[b]=+e(_,b,y),M[b]=+t(_,b,y),f.point(r?+r(_,b,y):C[b],n?+n(_,b,y):M[b]))}if(A)return f=null,A+""||null}function p(){return aE().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 iE{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 SR(e){return new iE(e,!0)}function jR(e){return new iE(e,!1)}const Hg={draw(e,t){const n=wr(t/jf);e.moveTo(n,0),e.arc(0,0,n,0,_d)}},_R={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()}},lE=wr(1/3),OR=lE*2,AR={draw(e,t){const n=wr(t/OR),r=n*lE;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},NR={draw(e,t){const n=wr(t),r=-n/2;e.rect(r,r,n,n)}},ER=.8908130915292852,oE=Sf(jf/10)/Sf(7*jf/10),CR=Sf(_d/10)*oE,TR=-JN(_d/10)*oE,MR={draw(e,t){const n=wr(t*ER),r=CR*n,l=TR*n;e.moveTo(0,-n),e.lineTo(r,l);for(let o=1;o<5;++o){const u=_d*o/5,f=JN(u),d=Sf(u);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*l,d*r+f*l)}e.closePath()}},Ip=wr(3),DR={draw(e,t){const n=-wr(t/(Ip*3));e.moveTo(0,n*2),e.lineTo(-Ip*n,-n),e.lineTo(Ip*n,-n),e.closePath()}},tr=-.5,nr=wr(3)/2,ky=1/wr(12),kR=(ky/2+1)*3,PR={draw(e,t){const n=wr(t/kR),r=n/2,l=n*ky,o=r,u=n*ky+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 RR(e,t){let n=null,r=Ug(l);e=typeof e=="function"?e:rt(e||Hg),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 _f(){}function Of(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 sE(e){this._context=e}sE.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:Of(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:Of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zR(e){return new sE(e)}function uE(e){this._context=e}uE.prototype={areaStart:_f,areaEnd:_f,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:Of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LR(e){return new uE(e)}function cE(e){this._context=e}cE.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:Of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BR(e){return new cE(e)}function fE(e){this._context=e}fE.prototype={areaStart:_f,areaEnd:_f,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 IR(e){return new fE(e)}function y2(e){return e<0?-1:1}function g2(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(y2(o)+y2(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(f))||0}function b2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $p(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 Af(e){this._context=e}Af.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:$p(this,this._t0,b2(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,$p(this,b2(this,n=g2(this,e,t)),n);break;default:$p(this,this._t0,n=g2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function dE(e){this._context=new hE(e)}(dE.prototype=Object.create(Af.prototype)).point=function(e,t){Af.prototype.point.call(this,t,e)};function hE(e){this._context=e}hE.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 $R(e){return new Af(e)}function UR(e){return new dE(e)}function mE(e){this._context=e}mE.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=x2(e),l=x2(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 x2(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 qR(e){return new mE(e)}function Ad(e,t){this._context=e,this._t=t}Ad.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 HR(e){return new Ad(e,.5)}function FR(e){return new Ad(e,0)}function KR(e){return new Ad(e,1)}function Gi(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 Py(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function YR(e,t){return e[t]}function GR(e){const t=[];return t.key=e,t}function VR(){var e=rt([]),t=Py,n=Gi,r=YR;function l(o){var u=Array.from(e.apply(this,arguments),GR),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=qg(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?Py:typeof o=="function"?o:rt(Array.from(o)),l):t},l.offset=function(o){return arguments.length?(n=o??Gi,l):n},l}function XR(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}Gi(e,t)}}function ZR(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}Gi(e,t)}}function WR(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,w=(y-b)/2,S=0;S<f;++S){var j=e[t[S]],_=j[r][1]||0,N=j[r-1][1]||0;w+=_-N}d+=y,h+=w*y}l[r-1][1]+=l[r-1][0]=n,d&&(n-=h/d)}l[r-1][1]+=l[r-1][0]=n,Gi(e,t)}}var Up={},qp={},w2;function QR(){return w2||(w2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(qp)),qp}var Hp={},S2;function pE(){return S2||(S2=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})(Hp)),Hp}var Fp={},j2;function Fg(){return j2||(j2=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})(Fp)),Fp}var Kp={},Yp={},_2;function JR(){return _2||(_2=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})(Yp)),Yp}var O2;function Kg(){return O2||(O2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JR(),n=Fg();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})(Kp)),Kp}var A2;function Yg(){return A2||(A2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QR(),n=pE(),r=Fg(),l=Kg();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})(Up)),Up}var Gp,N2;function ez(){return N2||(N2=1,Gp=Yg().get),Gp}var tz=ez();const Vi=kr(tz);var nz=4;function ei(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nz,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function gt(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+ei(f)+o:l+o},"")}var Gt=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,ca=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!or(e),Tr=e=>he(e)||typeof e=="string",rz=0,Ps=e=>{var t=++rz;return"".concat(e||"").concat(t)},sn=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(ca(t)){if(n==null)return r;var u=t.indexOf("%");o=n*parseFloat(t.slice(0,u))/100}else o=+t;return or(o)&&(o=r),l&&n!=null&&o>n&&(o=n),o},vE=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)?ei(e+n*(t-e)):t}function yE(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Vi(r,t))===n)}var mt=e=>e===null||typeof e>"u",Js=e=>mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function az(e){return e!=null}function eu(){}var iz=["type","size","sizeType"];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 E2(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 C2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E2(Object(n),!0).forEach(function(r){lz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lz(e,t,n){return(t=oz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oz(e){var t=sz(e,"string");return typeof t=="symbol"?t:t+""}function sz(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 uz(e,t){if(e==null)return{};var n,r,l=cz(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 cz(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 gE={symbolCircle:Hg,symbolCross:_R,symbolDiamond:AR,symbolSquare:NR,symbolStar:MR,symbolTriangle:DR,symbolWye:PR},fz=Math.PI/180,dz=e=>{var t="symbol".concat(Js(e));return gE[t]||Hg},hz=(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*fz;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}},mz=(e,t)=>{gE["symbol".concat(Js(e))]=t},Gg=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,l=uz(e,iz),o=C2(C2({},l),{},{type:t,size:n,sizeType:r}),u="circle";typeof t=="string"&&(u=t);var f=()=>{var b=dz(u),w=RR().type(b).size(hz(n,r,u)),S=w();if(S!==null)return S},{className:d,cx:h,cy:p}=o,y=mn(o);return he(h)&&he(p)&&he(n)?x.createElement("path",Ry({},y,{className:$e("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Gg.registerSymbol=mz;var bE=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Vg=(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=>{Ig(l)&&(r[l]=(o=>n[l](n,o)))}),r},pz=(e,t,n)=>r=>(e(t,n,r),null),tu=(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];Ig(l)&&typeof o=="function"&&(r||(r={}),r[l]=pz(o,t,n))}),r};function T2(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 vz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T2(Object(n),!0).forEach(function(r){yz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T2(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 Rt(e,t){var n=vz({},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 Nf(){return Nf=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},Nf.apply(null,arguments)}function M2(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 xz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M2(Object(n),!0).forEach(function(r){wz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wz(e,t,n){return(t=Sz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sz(e){var t=jz(e,"string");return typeof t=="symbol"?t:t+""}function jz(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,_z={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function Oz(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=xz({},t);return delete p.legendIcon,x.cloneElement(t.legendIcon,p)}return x.createElement(Gg,{fill:f,cx:l,cy:l,size:ar,sizeType:"diameter",type:d})}function Az(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,w=$e({"recharts-legend-item":!0,["legend-item-".concat(y)]:!0,inactive:p.inactive});if(p.type==="none")return null;var S=p.inactive?o:p.color,j=b?b(p.value,p,y):p.value;return x.createElement("li",Nf({className:w,style:d,key:"legend-item-".concat(y)},tu(e,p,y)),x.createElement($g,{width:n,height:n,viewBox:f,style:h,"aria-label":"".concat(j," legend icon")},x.createElement(Oz,{data:p,iconType:u,inactiveColor:o})),x.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},j))})}var Nz=e=>{var t=Rt(e,_z),{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(Az,Nf({},t,{payload:n})))},Vp={},Xp={},D2;function Ez(){return D2||(D2=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})(Xp)),Xp}var Zp={},k2;function Cz(){return k2||(k2=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})(Zp)),Zp}var Wp={},P2;function xE(){return P2||(P2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(Wp)),Wp}var Qp={},Jp={},ev={},R2;function Tz(){return R2||(R2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(ev)),ev}var z2;function Xg(){return z2||(z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tz();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(Jp)),Jp}var tv={},L2;function Mz(){return L2||(L2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(tv)),tv}var B2;function Dz(){return B2||(B2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xg(),n=Mz();function r(l){return n.isObjectLike(l)&&t.isArrayLike(l)}e.isArrayLikeObject=r})(Qp)),Qp}var nv={},rv={},I2;function kz(){return I2||(I2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yg();function n(r){return function(l){return t.get(l,r)}}e.property=n})(rv)),rv}var av={},iv={},lv={},ov={},$2;function wE(){return $2||($2=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})(ov)),ov}var sv={},U2;function SE(){return U2||(U2=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})(sv)),sv}var uv={},q2;function jE(){return q2||(q2=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})(uv)),uv}var H2;function Pz(){return H2||(H2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wE(),n=SE(),r=jE();function l(p,y,b){return typeof b!="function"?l(p,y,()=>{}):o(p,y,function w(S,j,_,N,A,C){const M=b(S,j,_,N,A,C);return M!==void 0?!!M:o(S,j,w,C)},new Map)}function o(p,y,b,w){if(y===p)return!0;switch(typeof y){case"object":return u(p,y,b,w);case"function":return Object.keys(y).length>0?o(p,{...y},b,w):r.isEqualsSameValueZero(p,y);default:return t.isObject(p)?typeof y=="string"?y==="":!0:r.isEqualsSameValueZero(p,y)}}function u(p,y,b,w){if(y==null)return!0;if(Array.isArray(y))return d(p,y,b,w);if(y instanceof Map)return f(p,y,b,w);if(y instanceof Set)return h(p,y,b,w);const S=Object.keys(y);if(p==null||n.isPrimitive(p))return S.length===0;if(S.length===0)return!0;if(w!=null&&w.has(y))return w.get(y)===p;w==null||w.set(y,p);try{for(let j=0;j<S.length;j++){const _=S[j];if(!n.isPrimitive(p)&&!(_ in p)||y[_]===void 0&&p[_]!==void 0||y[_]===null&&p[_]!==null||!b(p[_],y[_],_,p,y,w))return!1}return!0}finally{w==null||w.delete(y)}}function f(p,y,b,w){if(y.size===0)return!0;if(!(p instanceof Map))return!1;for(const[S,j]of y.entries()){const _=p.get(S);if(b(_,j,S,p,y,w)===!1)return!1}return!0}function d(p,y,b,w){if(y.length===0)return!0;if(!Array.isArray(p))return!1;const S=new Set;for(let j=0;j<y.length;j++){const _=y[j];let N=!1;for(let A=0;A<p.length;A++){if(S.has(A))continue;const C=p[A];let M=!1;if(b(C,_,j,p,y,w)&&(M=!0),M){S.add(A),N=!0;break}}if(!N)return!1}return!0}function h(p,y,b,w){return y.size===0?!0:p instanceof Set?d([...p],[...y],b,w):!1}e.isMatchWith=l,e.isSetMatch=h})(lv)),lv}var F2;function _E(){return F2||(F2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pz();function n(r,l){return t.isMatchWith(r,l,()=>{})}e.isMatch=n})(iv)),iv}var cv={},fv={},dv={},K2;function Rz(){return K2||(K2=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})(dv)),dv}var hv={},Y2;function Zg(){return Y2||(Y2=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})(hv)),hv}var mv={},G2;function OE(){return G2||(G2=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]",w="[object Object]",S="[object Error]",j="[object DataView]",_="[object Uint8Array]",N="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]",M="[object BigUint64Array]",D="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",$="[object BigInt64Array]",Z="[object Float32Array]",V="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=b,e.arrayTag=p,e.bigInt64ArrayTag=$,e.bigUint64ArrayTag=M,e.booleanTag=l,e.dataViewTag=j,e.dateTag=f,e.errorTag=S,e.float32ArrayTag=Z,e.float64ArrayTag=V,e.functionTag=y,e.int16ArrayTag=T,e.int32ArrayTag=k,e.int8ArrayTag=D,e.mapTag=d,e.numberTag=r,e.objectTag=w,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=u,e.uint16ArrayTag=A,e.uint32ArrayTag=C,e.uint8ArrayTag=_,e.uint8ClampedArrayTag=N})(mv)),mv}var pv={},V2;function zz(){return V2||(V2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(pv)),pv}var X2;function AE(){return X2||(X2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rz(),n=Zg(),r=OE(),l=SE(),o=zz();function u(p,y){return f(p,void 0,p,new Map,y)}function f(p,y,b,w=new Map,S=void 0){const j=S==null?void 0:S(p,y,b,w);if(j!==void 0)return j;if(l.isPrimitive(p))return p;if(w.has(p))return w.get(p);if(Array.isArray(p)){const _=new Array(p.length);w.set(p,_);for(let N=0;N<p.length;N++)_[N]=f(p[N],N,b,w,S);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;w.set(p,_);for(const[N,A]of p)_.set(N,f(A,N,b,w,S));return _}if(p instanceof Set){const _=new Set;w.set(p,_);for(const N of p)_.add(f(N,void 0,b,w,S));return _}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(o.isTypedArray(p)){const _=new(Object.getPrototypeOf(p)).constructor(p.length);w.set(p,_);for(let N=0;N<p.length;N++)_[N]=f(p[N],N,b,w,S);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 w.set(p,_),d(_,p,b,w,S),_}if(typeof File<"u"&&p instanceof File){const _=new File([p],p.name,{type:p.type});return w.set(p,_),d(_,p,b,w,S),_}if(typeof Blob<"u"&&p instanceof Blob){const _=new Blob([p],{type:p.type});return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof Error){const _=new p.constructor;return w.set(p,_),_.message=p.message,_.name=p.name,_.stack=p.stack,_.cause=p.cause,d(_,p,b,w,S),_}if(p instanceof Boolean){const _=new Boolean(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof Number){const _=new Number(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof String){const _=new String(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(typeof p=="object"&&h(p)){const _=Object.create(Object.getPrototypeOf(p));return w.set(p,_),d(_,p,b,w,S),_}return p}function d(p,y,b=p,w,S){const j=[...Object.keys(y),...t.getSymbols(y)];for(let _=0;_<j.length;_++){const N=j[_],A=Object.getOwnPropertyDescriptor(p,N);(A==null||A.writable)&&(p[N]=f(y[N],N,b,w,S))}}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})(fv)),fv}var Z2;function Lz(){return Z2||(Z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AE();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(cv)),cv}var W2;function Bz(){return W2||(W2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_E(),n=Lz();function r(l){return l=n.cloneDeep(l),o=>t.isMatch(o,l)}e.matches=r})(av)),av}var vv={},yv={},gv={},Q2;function Iz(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AE(),n=Zg(),r=OE();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})(gv)),gv}var J2;function $z(){return J2||(J2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iz();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(yv)),yv}var bv={},xv={},ej;function NE(){return ej||(ej=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})(xv)),xv}var wv={},tj;function Uz(){return tj||(tj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zg();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(wv)),wv}var nj;function qz(){return nj||(nj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pE(),n=NE(),r=Uz(),l=Kg();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})(bv)),bv}var rj;function Hz(){return rj||(rj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_E(),n=Fg(),r=$z(),l=Yg(),o=qz();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})(vv)),vv}var aj;function Fz(){return aj||(aj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xE(),n=kz(),r=Bz(),l=Hz();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})(nv)),nv}var ij;function Kz(){return ij||(ij=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ez(),n=Cz(),r=xE(),l=Dz(),o=Fz();function u(f,d=r.identity){return l.isArrayLikeObject(f)?t.uniqBy(Array.from(f),n.ary(o.iteratee(d),1)):[]}e.uniqBy=u})(Vp)),Vp}var Sv,lj;function Yz(){return lj||(lj=1,Sv=Kz().uniqBy),Sv}var Gz=Yz();const oj=kr(Gz);function EE(e,t,n){return t===!0?oj(e,n):typeof t=="function"?oj(e,t):e}var jv={exports:{}},_v={},Ov={exports:{}},Av={};/**
 * @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 sj;function Vz(){if(sj)return Av;sj=1;var e=co();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 w=b(),S=r({inst:{value:w,getSnapshot:b}}),j=S[0].inst,_=S[1];return o(function(){j.value=w,j.getSnapshot=b,d(j)&&_({inst:j})},[y,w,b]),l(function(){return d(j)&&_({inst:j}),y(function(){d(j)&&_({inst:j})})},[y]),u(w),w}function d(y){var b=y.getSnapshot;y=y.value;try{var w=b();return!n(y,w)}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 Av.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Av}var uj;function Xz(){return uj||(uj=1,Ov.exports=Vz()),Ov.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 cj;function Zz(){if(cj)return _v;cj=1;var e=co(),t=Xz();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 _v.useSyncExternalStoreWithSelector=function(h,p,y,b,w){var S=o(null);if(S.current===null){var j={hasValue:!1,value:null};S.current=j}else j=S.current;S=f(function(){function N(T){if(!A){if(A=!0,C=T,T=b(T),w!==void 0&&j.hasValue){var k=j.value;if(w(k,T))return M=k}return M=T}if(k=M,r(C,T))return k;var $=b(T);return w!==void 0&&w(k,$)?(C=T,k):(C=T,M=$)}var A=!1,C,M,D=y===void 0?null:y;return[function(){return N(p())},D===null?void 0:function(){return N(D())}]},[p,y,b,w]);var _=l(h,S[0],S[1]);return u(function(){j.hasValue=!0,j.value=_},[_]),d(_),_},_v}var fj;function Wz(){return fj||(fj=1,jv.exports=Zz()),jv.exports}var Qz=Wz(),Wg=x.createContext(null),Jz=e=>e,at=()=>{var e=x.useContext(Wg);return e?e.store.dispatch:Jz},df=()=>{},e8=()=>df,t8=(e,t)=>e===t;function ye(e){var t=x.useContext(Wg);return Qz.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:e8,t?t.store.getState:df,t?t.store.getState:df,t?e:df,t8)}function n8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function r8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function a8(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 dj=e=>Array.isArray(e)?e:[e];function i8(e){const t=Array.isArray(e[0])?e[0]:e;return a8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function l8(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}var o8=class{constructor(e){this.value=e}deref(){return this.value}},s8=typeof WeakRef<"u"?WeakRef:o8,u8=0,hj=1;function qc(){return{s:u8,v:void 0,o:null,p:null}}function CE(e,t={}){let n=qc();const{resultEqualityCheck:r}=t;let l,o=0;function u(){var y;let f=n;const{length:d}=arguments;for(let b=0,w=d;b<w;b++){const S=arguments[b];if(typeof S=="function"||typeof S=="object"&&S!==null){let j=f.o;j===null&&(f.o=j=new WeakMap);const _=j.get(S);_===void 0?(f=qc(),j.set(S,f)):f=_}else{let j=f.p;j===null&&(f.p=j=new Map);const _=j.get(S);_===void 0?(f=qc(),j.set(S,f)):f=_}}const h=f;let p;if(f.s===hj)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 s8(p):p}return h.s=hj,h.v=p,p}return u.clearCache=()=>{n=qc(),u.resetResultsCount()},u.resultsCount=()=>o,u.resetResultsCount=()=>{o=0},u}function c8(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()),n8(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...n,...d},{memoize:y,memoizeOptions:b=[],argsMemoize:w=CE,argsMemoizeOptions:S=[]}=p,j=dj(b),_=dj(S),N=i8(l),A=y(function(){return o++,h.apply(null,arguments)},...j),C=w(function(){u++;const D=l8(N,arguments);return f=A.apply(null,D),f},..._);return Object.assign(C,{resultFunc:h,memoizedResultFunc:A,dependencies:N,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:y,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var K=c8(CE),f8=Object.assign((e,t=K)=>{r8(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:()=>f8}),Nv={},Ev={},Cv={},mj;function d8(){return mj||(mj=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})(Cv)),Cv}var Tv={},Mv={},pj;function TE(){return pj||(pj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Mv)),Mv}var vj;function h8(){return vj||(vj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TE(),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})(Tv)),Tv}var yj;function m8(){return yj||(yj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d8(),n=h8(),r=Kg();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(w=>String(w));const h=(w,S)=>{let j=w;for(let _=0;_<S.length&&j!=null;++_)j=j[S[_]];return j},p=(w,S)=>S==null||w==null?S:typeof w=="object"&&"key"in w?Object.hasOwn(S,w.key)?S[w.key]:h(S,w.path):typeof w=="function"?w(S):Array.isArray(w)?h(S,w):typeof S=="object"?S[w]:S,y=u.map(w=>(Array.isArray(w)&&w.length===1&&(w=w[0]),w==null||typeof w=="function"||Array.isArray(w)||n.isKey(w)?w:{key:w,path:r.toPath(w)}));return o.map(w=>({original:w,criteria:y.map(S=>p(S,w))})).slice().sort((w,S)=>{for(let j=0;j<y.length;j++){const _=t.compareValues(w.criteria[j],S.criteria[j],f[j]);if(_!==0)return _}return 0}).map(w=>w.original)}e.orderBy=l})(Ev)),Ev}var Dv={},gj;function p8(){return gj||(gj=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})(Dv)),Dv}var kv={},bj;function ME(){return bj||(bj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NE(),n=Xg(),r=wE(),l=jE();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})(kv)),kv}var xj;function v8(){return xj||(xj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=m8(),n=p8(),r=ME();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})(Nv)),Nv}var Pv,wj;function y8(){return wj||(wj=1,Pv=v8().sortBy),Pv}var g8=y8();const Nd=kr(g8);var DE=e=>e.legend.settings,b8=e=>e.legend.size,x8=e=>e.legend.payload,w8=K([x8,DE],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Nd(r,n):r});function S8(){return ye(w8)}var Hc=1;function kE(){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)>Hc||Math.abs(u.left-t.left)>Hc||Math.abs(u.top-t.top)>Hc||Math.abs(u.width-t.width)>Hc)&&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 en(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 j8=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sj=j8,Rv=()=>Math.random().toString(36).substring(7).split("").join("."),_8={INIT:`@@redux/INIT${Rv()}`,REPLACE:`@@redux/REPLACE${Rv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rv()}`},Ef=_8;function Qg(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 PE(e,t,n){if(typeof e!="function")throw new Error(en(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(en(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(en(1));return n(PE)(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((_,N)=>{u.set(N,_)}))}function p(){if(d)throw new Error(en(3));return l}function y(_){if(typeof _!="function")throw new Error(en(4));if(d)throw new Error(en(5));let N=!0;h();const A=f++;return u.set(A,_),function(){if(N){if(d)throw new Error(en(6));N=!1,h(),u.delete(A),o=null}}}function b(_){if(!Qg(_))throw new Error(en(7));if(typeof _.type>"u")throw new Error(en(8));if(typeof _.type!="string")throw new Error(en(17));if(d)throw new Error(en(9));try{d=!0,l=r(l,_)}finally{d=!1}return(o=u).forEach(A=>{A()}),_}function w(_){if(typeof _!="function")throw new Error(en(10));r=_,b({type:Ef.REPLACE})}function S(){const _=y;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(en(11));function A(){const M=N;M.next&&M.next(p())}return A(),{unsubscribe:_(A)}},[Sj](){return this}}}return b({type:Ef.INIT}),{dispatch:b,subscribe:y,getState:p,replaceReducer:w,[Sj]:S}}function O8(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ef.INIT})>"u")throw new Error(en(12));if(typeof n(void 0,{type:Ef.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(en(13))})}function RE(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{O8(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],w=u[y],S=b(w,f);if(typeof S>"u")throw f&&f.type,new Error(en(14));h[y]=S,d=d||S!==w}return d=d||r.length!==Object.keys(u).length,d?h:u}}function Cf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function A8(...e){return t=>(n,r)=>{const l=t(n,r);let o=()=>{throw new Error(en(15))};const u={getState:l.getState,dispatch:(d,...h)=>o(d,...h)},f=e.map(d=>d(u));return o=Cf(...f)(l.dispatch),{...l,dispatch:o}}}function zE(e){return Qg(e)&&"type"in e&&typeof e.type=="string"}var LE=Symbol.for("immer-nothing"),jj=Symbol.for("immer-draftable"),pn=Symbol.for("immer-state");function pr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qn=Object,ro=qn.getPrototypeOf,Tf="constructor",Ed="prototype",zy="configurable",Mf="enumerable",hf="writable",Rs="value",fa=e=>!!e&&!!e[pn];function br(e){var t;return e?BE(e)||Td(e)||!!e[jj]||!!((t=e[Tf])!=null&&t[jj])||Md(e)||Dd(e):!1}var N8=qn[Ed][Tf].toString(),_j=new WeakMap;function BE(e){if(!e||!Jg(e))return!1;const t=ro(e);if(t===null||t===qn[Ed])return!0;const n=qn.hasOwnProperty.call(t,Tf)&&t[Tf];if(n===Object)return!0;if(!Gl(n))return!1;let r=_j.get(n);return r===void 0&&(r=Function.toString.call(n),_j.set(n,r)),r===N8}function Cd(e,t,n=!0){nu(e)===0?(n?Reflect.ownKeys(e):qn.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function nu(e){const t=e[pn];return t?t.type_:Td(e)?1:Md(e)?2:Dd(e)?3:0}var Oj=(e,t,n=nu(e))=>n===2?e.has(t):qn[Ed].hasOwnProperty.call(e,t),Ly=(e,t,n=nu(e))=>n===2?e.get(t):e[t],Df=(e,t,n,r=nu(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function E8(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Td=Array.isArray,Md=e=>e instanceof Map,Dd=e=>e instanceof Set,Jg=e=>typeof e=="object",Gl=e=>typeof e=="function",zv=e=>typeof e=="boolean";function C8(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var na=e=>e.copy_||e.base_,e0=e=>e.modified_?e.copy_:e.base_;function By(e,t){if(Md(e))return new Map(e);if(Dd(e))return new Set(e);if(Td(e))return Array[Ed].slice.call(e);const n=BE(e);if(t===!0||t==="class_only"&&!n){const r=qn.getOwnPropertyDescriptors(e);delete r[pn];let l=Reflect.ownKeys(r);for(let o=0;o<l.length;o++){const u=l[o],f=r[u];f[hf]===!1&&(f[hf]=!0,f[zy]=!0),(f.get||f.set)&&(r[u]={[zy]:!0,[hf]:!0,[Mf]:f[Mf],[Rs]:e[u]})}return qn.create(ro(e),r)}else{const r=ro(e);if(r!==null&&n)return{...e};const l=qn.create(r);return qn.assign(l,e)}}function t0(e,t=!1){return kd(e)||fa(e)||!br(e)||(nu(e)>1&&qn.defineProperties(e,{set:Fc,add:Fc,clear:Fc,delete:Fc}),qn.freeze(e),t&&Cd(e,(n,r)=>{t0(r,!0)},!1)),e}function T8(){pr(2)}var Fc={[Rs]:T8};function kd(e){return e===null||!Jg(e)?!0:qn.isFrozen(e)}var kf="MapSet",Iy="Patches",Aj="ArrayMethods",IE={};function Xi(e){const t=IE[e];return t||pr(0,e),t}var Nj=e=>!!IE[e],zs,$E=()=>zs,M8=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Nj(kf)?Xi(kf):void 0,arrayMethodsPlugin_:Nj(Aj)?Xi(Aj):void 0});function Ej(e,t){t&&(e.patchPlugin_=Xi(Iy),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $y(e){Uy(e),e.drafts_.forEach(D8),e.drafts_=null}function Uy(e){e===zs&&(zs=e.parent_)}var Cj=e=>zs=M8(zs,e);function D8(e){const t=e[pn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[pn].modified_&&($y(t),pr(4)),br(e)&&(e=Mj(t,e));const{patchPlugin_:l}=t;l&&l.generateReplacementPatches_(n[pn].base_,e,t)}else e=Mj(t,n);return k8(t,e,!0),$y(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==LE?e:void 0}function Mj(e,t){if(kd(t))return t;const n=t[pn];if(!n)return Pf(t,e.handledSet_,e);if(!Pd(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);HE(n,e)}return n.copy_}function k8(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&t0(t,n)}function UE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Pd=(e,t)=>e.scope_===t,P8=[];function qE(e,t,n,r){const l=na(e),o=e.type_;if(r!==void 0&&Ly(l,r,o)===t){Df(l,r,n,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;Cd(l,(d,h)=>{if(fa(h)){const p=f.get(h)||[];p.push(d),f.set(h,p)}})}const u=e.draftLocations_.get(t)??P8;for(const f of u)Df(l,f,n,o)}function R8(e,t,n){e.callbacks_.push(function(l){var f;const o=t;if(!o||!Pd(o,l))return;(f=l.mapSetPlugin_)==null||f.fixSetContents(o);const u=e0(o);qE(e,o.draft_??o,u,n),HE(o,l)})}function HE(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)}UE(e)}}function z8(e,t,n){const{scope_:r}=e;if(fa(n)){const l=n[pn];Pd(l,r)&&l.callbacks_.push(function(){mf(e);const u=e0(l);qE(e,n,u,t)})}else br(n)&&e.callbacks_.push(function(){const o=na(e);e.type_===3?o.has(n)&&Pf(n,r.handledSet_,r):Ly(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Pf(Ly(e.copy_,t,e.type_),r.handledSet_,r)})}function Pf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||fa(e)||t.has(e)||!br(e)||kd(e)||(t.add(e),Cd(e,(r,l)=>{if(fa(l)){const o=l[pn];if(Pd(o,n)){const u=e0(o);Df(e,r,u,e.type_),UE(o)}}else br(l)&&Pf(l,t,n)})),e}function L8(e,t){const n=Td(e),r={type_:n?1:0,scope_:t?t.scope_:$E(),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=Rf;n&&(l=[r],o=Ls);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,[f,r]}var Rf={get(e,t){if(t===pn)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=na(e);if(!Oj(l,t,e.type_))return B8(e,l,t);const o=l[t];if(e.finalized_||!br(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&C8(t))return o;if(o===Lv(e.base_,t)){mf(e);const u=e.type_===1?+t:t,f=Hy(e.scope_,o,e,u);return e.copy_[u]=f}return o},has(e,t){return t in na(e)},ownKeys(e){return Reflect.ownKeys(na(e))},set(e,t,n){const r=FE(na(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Lv(na(e),t),o=l==null?void 0:l[pn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(E8(n,l)&&(n!==void 0||Oj(e.base_,t,e.type_)))return!0;mf(e),qy(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),z8(e,t,n)),!0},deleteProperty(e,t){return mf(e),Lv(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),qy(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=na(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[hf]:!0,[zy]:e.type_!==1||t!=="length",[Mf]:r[Mf],[Rs]:n[t]}},defineProperty(){pr(11)},getPrototypeOf(e){return ro(e.base_)},setPrototypeOf(){pr(12)}},Ls={};for(let e in Rf){let t=Rf[e];Ls[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ls.deleteProperty=function(e,t){return Ls.set.call(this,e,t,void 0)};Ls.set=function(e,t,n){return Rf.set.call(this,e[0],t,n,e[0])};function Lv(e,t){const n=e[pn];return(n?na(n):e)[t]}function B8(e,t,n){var l;const r=FE(t,n);return r?Rs in r?r[Rs]:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function FE(e,t){if(!(t in e))return;let n=ro(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ro(n)}}function qy(e){e.modified_||(e.modified_=!0,e.parent_&&qy(e.parent_))}function mf(e){e.copy_||(e.assigned_=new Map,e.copy_=By(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var I8=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,l)=>{if(Gl(n)&&!Gl(r)){const u=r;r=n;const f=this;return function(h=u,...p){return f.produce(h,y=>r.call(this,y,...p))}}Gl(r)||pr(6),l!==void 0&&!Gl(l)&&pr(7);let o;if(br(n)){const u=Cj(this),f=Hy(u,n,void 0);let d=!0;try{o=r(f),d=!1}finally{d?$y(u):Uy(u)}return Ej(u,l),Tj(o,u)}else if(!n||!Jg(n)){if(o=r(n),o===void 0&&(o=n),o===LE&&(o=void 0),this.autoFreeze_&&t0(o,!0),l){const u=[],f=[];Xi(Iy).generateReplacementPatches_(n,o,{patches_:u,inversePatches_:f}),l(u,f)}return o}else pr(1,n)},this.produceWithPatches=(n,r)=>{if(Gl(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]},zv(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),zv(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),zv(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){br(t)||pr(8),fa(t)&&(t=gr(t));const n=Cj(this),r=Hy(n,t,void 0);return r[pn].isManual_=!0,Uy(n),r}finishDraft(t,n){const r=t&&t[pn];(!r||!r.isManual_)&&pr(9);const{scope_:l}=r;return Ej(l,n),Tj(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=Xi(Iy).applyPatches_;return fa(t)?l(t,n):this.produce(t,o=>l(o,n))}};function Hy(e,t,n,r){const[l,o]=Md(t)?Xi(kf).proxyMap_(t,n):Dd(t)?Xi(kf).proxySet_(t,n):L8(t,n);return((n==null?void 0:n.scope_)??$E()).drafts_.push(l),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?R8(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 gr(e){return fa(e)||pr(10,e),KE(e)}function KE(e){if(!br(e)||kd(e))return e;const t=e[pn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=By(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=By(e,!0);return Cd(n,(l,o)=>{Df(n,l,KE(o))},r),t&&(t.finalized_=!1),n}var $8=new I8,YE=$8.produce;function GE(e){return({dispatch:n,getState:r})=>l=>o=>typeof o=="function"?o(n,r,e):l(o)}var U8=GE(),q8=GE,H8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cf:Cf.apply(null,arguments)};function sr(e,t){function n(...r){if(t){let l=t(...r);if(!l)throw new Error(Hn(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=>zE(r)&&r.type===e,n}var VE=class Ts extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ts.prototype)}static get[Symbol.species](){return Ts}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ts(...t[0].concat(this)):new Ts(...t.concat(this))}};function Dj(e){return br(e)?YE(e,()=>{}):e}function Kc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function F8(e){return typeof e=="boolean"}var K8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:l=!0,actionCreatorCheck:o=!0}=t??{};let u=new VE;return n&&(F8(n)?u.push(U8):u.push(q8(n.extraArgument))),u},XE="RTK_autoBatch",ft=()=>e=>({payload:e,meta:{[XE]:!0}}),kj=e=>t=>{setTimeout(t,e)},ZE=(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:kj(10):e.type==="callback"?e.queueNotification:kj(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[XE]),o=!l,o&&(u||(u=!0,d(h))),r.dispatch(p)}finally{l=!0}}})},Y8=e=>function(n){const{autoBatch:r=!0}=n??{};let l=new VE(e);return r&&l.push(ZE(typeof r=="object"?r:void 0)),l};function G8(e){const t=K8(),{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(Qg(n))f=RE(n);else throw new Error(Hn(1));let d;typeof r=="function"?d=r(t):d=t();let h=Cf;l&&(h=H8({trace:!1,...typeof l=="object"&&l}));const p=A8(...d),y=Y8(p);let b=typeof u=="function"?u(y):y();const w=h(...b);return PE(f,o,w)}function WE(e){const t={},n=[];let r;const l={addCase(o,u){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(Hn(28));if(f in t)throw new Error(Hn(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 V8(e){return typeof e=="function"}function X8(e,t){let[n,r,l]=WE(t),o;if(V8(e))o=()=>Dj(e());else{const f=Dj(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(fa(p)){const w=y(p,d);return w===void 0?p:w}else{if(br(p))return YE(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 Z8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",W8=(e=21)=>{let t="",n=e;for(;n--;)t+=Z8[Math.random()*64|0];return t},Q8=Symbol.for("rtk-slice-createasyncthunk");function J8(e,t){return`${e}/${t}`}function eL({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Q8];return function(l){const{name:o,reducerPath:u=o}=l;if(!o)throw new Error(Hn(11));const f=(typeof l.reducers=="function"?l.reducers(nL()):l.reducers)||{},d=Object.keys(f),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(M,D){const T=typeof M=="string"?M:M.type;if(!T)throw new Error(Hn(12));if(T in h.sliceCaseReducersByType)throw new Error(Hn(13));return h.sliceCaseReducersByType[T]=D,p},addMatcher(M,D){return h.sliceMatchers.push({matcher:M,reducer:D}),p},exposeAction(M,D){return h.actionCreators[M]=D,p},exposeCaseReducer(M,D){return h.sliceCaseReducersByName[M]=D,p}};d.forEach(M=>{const D=f[M],T={reducerName:M,type:J8(o,M),createNotation:typeof l.reducers=="function"};aL(D)?lL(T,D,p,t):rL(T,D,p)});function y(){const[M={},D=[],T=void 0]=typeof l.extraReducers=="function"?WE(l.extraReducers):[l.extraReducers],k={...M,...h.sliceCaseReducersByType};return X8(l.initialState,$=>{for(let Z in k)$.addCase(Z,k[Z]);for(let Z of h.sliceMatchers)$.addMatcher(Z.matcher,Z.reducer);for(let Z of D)$.addMatcher(Z.matcher,Z.reducer);T&&$.addDefaultCase(T)})}const b=M=>M,w=new Map,S=new WeakMap;let j;function _(M,D){return j||(j=y()),j(M,D)}function N(){return j||(j=y()),j.getInitialState()}function A(M,D=!1){function T($){let Z=$[M];return typeof Z>"u"&&D&&(Z=Kc(S,T,N)),Z}function k($=b){const Z=Kc(w,D,()=>new WeakMap);return Kc(Z,$,()=>{const V={};for(const[re,P]of Object.entries(l.selectors??{}))V[re]=tL(P,$,()=>Kc(S,$,N),D);return V})}return{reducerPath:M,getSelectors:k,get selectors(){return k(T)},selectSlice:T}}const C={name:o,reducer:_,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:N,...A(u),injectInto(M,{reducerPath:D,...T}={}){const k=D??u;return M.inject({reducerPath:k,reducer:_},T),{...C,...A(k,!0)}}};return C}}function tL(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 Nn=eL();function nL(){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 rL({type:e,reducerName:t,createNotation:n},r,l){let o,u;if("reducer"in r){if(n&&!iL(r))throw new Error(Hn(17));o=r.reducer,u=r.prepare}else o=r;l.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,u?sr(e,u):sr(e))}function aL(e){return e._reducerDefinitionType==="asyncThunk"}function iL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lL({type:e,reducerName:t},n,r,l){if(!l)throw new Error(Hn(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||Yc,pending:f||Yc,rejected:d||Yc,settled:h||Yc})}function Yc(){}var oL="task",QE="listener",JE="completed",n0="cancelled",sL=`task-${n0}`,uL=`task-${JE}`,Fy=`${QE}-${n0}`,cL=`${QE}-${JE}`,Rd=class{constructor(e){Ep(this,"name","TaskAbortError");Ep(this,"message");this.code=e,this.message=`${oL} ${n0} (reason: ${e})`}},r0=(e,t)=>{if(typeof e!="function")throw new TypeError(Hn(32))},zf=()=>{},eC=(e,t=zf)=>(e.catch(t),e),tC=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ii=e=>{if(e.aborted)throw new Rd(e.reason)};function nC(e,t){let n=zf;return new Promise((r,l)=>{const o=()=>l(new Rd(e.reason));if(e.aborted){o();return}n=tC(e,o),t.finally(()=>n()).then(r,l)}).finally(()=>{n=zf})}var fL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Rd?"cancelled":"rejected",error:n}}finally{t==null||t()}},Lf=e=>t=>eC(nC(e,t).then(n=>(Ii(e),n))),rC=e=>{const t=Lf(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Jl}=Object,Pj={},zd="listenerMiddleware",dL=(e,t)=>{const n=r=>tC(e,()=>r.abort(e.reason));return(r,l)=>{r0(r);const o=new AbortController;n(o);const u=fL(async()=>{Ii(e),Ii(o.signal);const f=await r({pause:Lf(o.signal),delay:rC(o.signal),signal:o.signal});return Ii(o.signal),f},()=>o.abort(uL));return l!=null&&l.autoJoin&&t.push(u.catch(zf)),{result:Lf(e)(u),cancel(){o.abort(sL)}}}},hL=(e,t)=>{const n=async(r,l)=>{Ii(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 nC(t,Promise.race(f));return Ii(t),d}finally{o()}};return(r,l)=>eC(n(r,l))},aC=e=>{let{type:t,actionCreator:n,matcher:r,predicate:l,effect:o}=e;if(t)l=sr(t).match;else if(n)t=n.type,l=n.match;else if(r)l=r;else if(!l)throw new Error(Hn(21));return r0(o),{predicate:l,type:t,effect:o}},iC=Jl(e=>{const{type:t,predicate:n,effect:r}=aC(e);return{id:W8(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Hn(22))}}},{withTypes:()=>iC}),Rj=(e,t)=>{const{type:n,effect:r,predicate:l}=aC(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===l)&&o.effect===r)},Ky=e=>{e.pending.forEach(t=>{t.abort(Fy)})},mL=(e,t)=>()=>{for(const n of t.keys())Ky(n);e.clear()},zj=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},lC=Jl(sr(`${zd}/add`),{withTypes:()=>lC}),pL=sr(`${zd}/removeAll`),oC=Jl(sr(`${zd}/remove`),{withTypes:()=>oC}),vL=(...e)=>{console.error(`${zd}/error`,...e)},ru=(e={})=>{const t=new Map,n=new Map,r=w=>{const S=n.get(w)??0;n.set(w,S+1)},l=w=>{const S=n.get(w)??1;S===1?n.delete(w):n.set(w,S-1)},{extra:o,onError:u=vL}=e;r0(u);const f=w=>(w.unsubscribe=()=>t.delete(w.id),t.set(w.id,w),S=>{w.unsubscribe(),S!=null&&S.cancelActive&&Ky(w)}),d=w=>{const S=Rj(t,w)??iC(w);return f(S)};Jl(d,{withTypes:()=>d});const h=w=>{const S=Rj(t,w);return S&&(S.unsubscribe(),w.cancelActive&&Ky(S)),!!S};Jl(h,{withTypes:()=>h});const p=async(w,S,j,_)=>{const N=new AbortController,A=hL(d,N.signal),C=[];try{w.pending.add(N),r(w),await Promise.resolve(w.effect(S,Jl({},j,{getOriginalState:_,condition:(M,D)=>A(M,D).then(Boolean),take:A,delay:rC(N.signal),pause:Lf(N.signal),extra:o,signal:N.signal,fork:dL(N.signal,C),unsubscribe:w.unsubscribe,subscribe:()=>{t.set(w.id,w)},cancelActiveListeners:()=>{w.pending.forEach((M,D,T)=>{M!==N&&(M.abort(Fy),T.delete(M))})},cancel:()=>{N.abort(Fy),w.pending.delete(N)},throwIfCancelled:()=>{Ii(N.signal)}})))}catch(M){M instanceof Rd||zj(u,M,{raisedBy:"effect"})}finally{await Promise.all(C),N.abort(cL),l(w),w.pending.delete(N)}},y=mL(t,n);return{middleware:w=>S=>j=>{if(!zE(j))return S(j);if(lC.match(j))return d(j.payload);if(pL.match(j)){y();return}if(oC.match(j))return h(j.payload);let _=w.getState();const N=()=>{if(_===Pj)throw new Error(Hn(23));return _};let A;try{if(A=S(j),t.size>0){const C=w.getState(),M=Array.from(t.values());for(const D of M){let T=!1;try{T=D.predicate(j,C,_)}catch(k){T=!1,zj(u,k,{raisedBy:"predicate"})}T&&p(D,j,w,N)}}}finally{_=Pj}return A},startListening:d,stopListening:h,clearListeners:y}};function Hn(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 yL={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},sC=Nn({name:"chartLayout",initialState:yL,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:gL,setLayout:bL,setChartSize:xL,setScale:wL}=sC.actions,SL=sC.reducer;function uC(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function nt(e){return Number.isFinite(e)}function Mr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Lj(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?Lj(Object(n),!0).forEach(function(r){jL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jL(e,t,n){return(t=_L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _L(e){var t=OL(e,"string");return typeof t=="symbol"?t:t+""}function OL(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 Qe(e,t,n){return mt(e)||mt(t)?n:Tr(t)?Vi(e,t,n):typeof t=="function"?t(e):n}var AL=(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 Xl(Xl({},e),{},{[o]:e[o]+(r||0)});if((f==="horizontal"||f==="vertical"&&o==="center")&&u!=="middle"&&he(e[u]))return Xl(Xl({},e),{},{[u]:e[u]+(l||0)})}return e},ga=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",cC=(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},fC=(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:w}=e;if(!u)return null;var S=f==="scaleBand"&&u.bandwidth?u.bandwidth()/2:2,j=l==="category"&&u.bandwidth?u.bandwidth()/S:0;if(j=w==="angleAxis"&&o&&o.length>=2?Gt(o[0]-o[1])*2*j:j,y||b){var _=(y||b||[]).map((N,A)=>{var C=r?r.indexOf(N):N;return{coordinate:u(C)+j,value:N,offset:j,index:A}});return _.filter(N=>!or(N.coordinate))}return d&&h?h.map((N,A)=>({coordinate:u(N)+j,value:N,index:A,offset:j})):u.ticks&&p!=null?u.ticks(p).map((N,A)=>({coordinate:u(N)+j,value:N,offset:j,index:A})):u.domain().map((N,A)=>({coordinate:u(N)+j,value:r?r[N]:N,index:A,offset:j}))},Bj=1e-4,NL=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),l=Math.min(r[0],r[1])-Bj,o=Math.max(r[0],r[1])+Bj,u=e(t[0]),f=e(t[n-1]);(u<l||u>o||f<l||f>o)&&e.domain([t[0],t[n-1]])}},EL=(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},CL=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=or(p)?y:p;b>=0?(h[0]=o,h[1]=o+b,o=p):(h[0]=u,h[1]=u+b,u=p)}}}},TL=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=or(d[1])?d[0]:d[1];h>=0?(d[0]=o,d[1]=o+h,o=d[1]):(d[0]=0,d[1]=0)}}}},ML={sign:CL,expand:XR,none:Gi,silhouette:ZR,wiggle:WR,positive:TL},DL=(e,t,n)=>{var r,l=(r=ML[n])!==null&&r!==void 0?r:Gi,o=VR().keys(t).value((f,d)=>Number(Qe(f,d,0))).order(Py).offset(l),u=o(e);return u.forEach((f,d)=>{f.forEach((h,p)=>{var y=Qe(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 dC(e){return e==null?void 0:String(e)}function Ij(e){var{axis:t,ticks:n,bandSize:r,entry:l,index:o,dataKey:u}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!mt(l[t.dataKey])){var f=yE(n,"value",l[t.dataKey]);if(f)return f.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=Qe(l,mt(u)?t.dataKey:u);return mt(d)?null:t.scale(d)}var $j=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=Qe(o,t.dataKey,t.scale.domain()[u]);return mt(f)?null:t.scale(f)-l/2+r},kL=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]},PL=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},RL=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],zL=(e,t,n)=>{if(e!=null)return RL(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=uC(h,t,n),y=PL(p);return!nt(y[0])||!nt(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]))},Uj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ao=(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=Nd(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 Hj(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:l,name:o}=e;return Xl(Xl({},t),{},{dataKey:n,payload:r,value:l,name:o})}function po(e,t){if(e)return String(e);if(typeof t=="string")return t}var LL=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},BL=(e,t)=>t==="centric"?e.angle:e.radius,ba=e=>e.layout.width,xa=e=>e.layout.height,IL=e=>e.layout.scale,hC=e=>e.layout.margin,Ld=K(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Bd=K(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),mC="data-recharts-item-index",pC="data-recharts-item-id",au=60;function Fj(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 Gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fj(Object(n),!0).forEach(function(r){$L(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $L(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(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 HL=e=>e.brush.height;function FL(e){var t=Bd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:au;return n+l}return n},0)}function KL(e){var t=Bd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:au;return n+l}return n},0)}function YL(e){var t=Ld(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function GL(e){var t=Ld(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Bt=K([ba,xa,hC,HL,FL,KL,YL,GL,DE,b8],(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=Gc(Gc({},y),p),w=b.bottom;b.bottom+=r,b=AL(b,d,h);var S=e-b.left-b.right,j=t-b.top-b.bottom;return Gc(Gc({brushBottom:w},b),{},{width:Math.max(S,0),height:Math.max(j,0)})}),VL=K(Bt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),a0=K(ba,xa,(e,t)=>({x:0,y:0,width:e,height:t})),XL=x.createContext(null),un=()=>x.useContext(XL)!=null,Id=e=>e.brush,$d=K([Id,Bt,hC],(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})),Bv={},Iv={},$v={},Kj;function ZL(){return Kj||(Kj=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 w=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,y()},r)},S=()=>{b!==null&&(clearTimeout(b),b=null)},j=()=>{S(),u=void 0,f=null},_=()=>{p()},N=function(...A){if(l!=null&&l.aborted)return;u=this,f=A;const C=b==null;w(),d&&C&&p()};return N.schedule=w,N.cancel=j,N.flush=_,l==null||l.addEventListener("abort",j,{once:!0}),N}e.debounce=t})($v)),$v}var Yj;function WL(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZL();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}),w=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)},S=()=>(b.flush(),p);return w.cancel=b.cancel,w.flush=S,w}e.debounce=n})(Iv)),Iv}var Gj;function QL(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WL();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})(Bv)),Bv}var Uv,Vj;function JL(){return Vj||(Vj=1,Uv=QL().throttle),Uv}var e7=JL();const t7=kr(e7);var Bf=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++]))}},vC=(e,t,n)=>{var{width:r="100%",height:l="100%",aspect:o,maxHeight:u}=n,f=ca(r)?e:Number(r),d=ca(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}},n7={width:0,height:0,overflow:"visible"},r7={width:0,overflowX:"visible"},a7={height:0,overflowY:"visible"},i7={},l7=e=>{var{width:t,height:n}=e,r=ca(t),l=ca(n);return r&&l?n7:r?r7:l?a7:i7};function o7(e){var{width:t,height:n,aspect:r}=e,l=t,o=n;return l===void 0&&o===void 0?(l="100%",o="100%"):l===void 0?l=r&&r>0?void 0:"100%":o===void 0&&(o=r&&r>0?void 0:"100%"),{width:l,height:o}}function Yy(){return Yy=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},Yy.apply(null,arguments)}function Xj(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 Zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xj(Object(n),!0).forEach(function(r){s7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s7(e,t,n){return(t=u7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u7(e){var t=c7(e,"string");return typeof t=="symbol"?t:t+""}function c7(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 yC=x.createContext({width:-1,height:-1});function f7(e){return Mr(e.width)&&Mr(e.height)}function gC(e){var{children:t,width:n,height:r}=e,l=x.useMemo(()=>({width:n,height:r}),[n,r]);return f7(l)?x.createElement(yC.Provider,{value:l},t):null}var i0=()=>x.useContext(yC),d7=x.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:l,height:o,minWidth:u=0,minHeight:f,maxHeight:d,children:h,debounce:p=0,id:y,className:b,onResize:w,style:S={}}=e,j=x.useRef(null),_=x.useRef();_.current=w,x.useImperativeHandle(t,()=>j.current);var[N,A]=x.useState({containerWidth:r.width,containerHeight:r.height}),C=x.useCallback(($,Z)=>{A(V=>{var re=Math.round($),P=Math.round(Z);return V.containerWidth===re&&V.containerHeight===P?V:{containerWidth:re,containerHeight:P}})},[]);x.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return eu;var $=P=>{var ue,{width:U,height:ne}=P[0].contentRect;C(U,ne),(ue=_.current)===null||ue===void 0||ue.call(_,U,ne)};p>0&&($=t7($,p,{trailing:!0,leading:!1}));var Z=new ResizeObserver($),{width:V,height:re}=j.current.getBoundingClientRect();return C(V,re),Z.observe(j.current),()=>{Z.disconnect()}},[C,p]);var{containerWidth:M,containerHeight:D}=N;Bf(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:T,calculatedHeight:k}=vC(M,D,{width:l,height:o,aspect:n,maxHeight:d});return Bf(T!=null&&T>0||k!=null&&k>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.`,T,k,l,o,u,f,n),x.createElement("div",{id:y?"".concat(y):void 0,className:$e("recharts-responsive-container",b),style:Zj(Zj({},S),{},{width:l,height:o,minWidth:u,minHeight:f,maxHeight:d}),ref:j},x.createElement("div",{style:l7({width:l,height:o})},x.createElement(gC,{width:T,height:k},h)))}),ws=x.forwardRef((e,t)=>{var n=i0();if(Mr(n.width)&&Mr(n.height))return e.children;var{width:r,height:l}=o7({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:u}=vC(void 0,void 0,{width:r,height:l,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(u)?x.createElement(gC,{width:o,height:u},e.children):x.createElement(d7,Yy({},e,{width:r,height:l,ref:t}))});function bC(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 Ud=()=>{var e,t=un(),n=ye(VL),r=ye($d),l=(e=ye(Id))===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}},h7={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},xC=()=>{var e;return(e=ye(Bt))!==null&&e!==void 0?e:h7},l0=()=>ye(ba),o0=()=>ye(xa),m7=()=>ye(e=>e.layout.margin),ze=e=>e.layout.layoutType,tl=()=>ye(ze),p7=()=>{var e=tl();if(e==="horizontal"||e==="vertical")return e},v7=()=>{var e=tl();return e!==void 0},qd=e=>{var t=at(),n=un(),{width:r,height:l}=e,o=i0(),u=r,f=l;return o&&(u=o.width>0?o.width:r,f=o.height>0?o.height:l),x.useEffect(()=>{!n&&Mr(u)&&Mr(f)&&t(xL({width:u,height:f}))},[t,n,u,f]),null},wC=Symbol.for("immer-nothing"),Wj=Symbol.for("immer-draftable"),Fn=Symbol.for("immer-state");function vr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bs=Object.getPrototypeOf;function io(e){return!!e&&!!e[Fn]}function Zi(e){var t;return e?SC(e)||Array.isArray(e)||!!e[Wj]||!!((t=e.constructor)!=null&&t[Wj])||iu(e)||Fd(e):!1}var y7=Object.prototype.constructor.toString(),Qj=new WeakMap;function SC(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=Qj.get(n);return r===void 0&&(r=Function.toString.call(n),Qj.set(n,r)),r===y7}function If(e,t,n=!0){Hd(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 Hd(e){const t=e[Fn];return t?t.type_:Array.isArray(e)?1:iu(e)?2:Fd(e)?3:0}function Gy(e,t){return Hd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jC(e,t,n){const r=Hd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function g7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function iu(e){return e instanceof Map}function Fd(e){return e instanceof Set}function Ti(e){return e.copy_||e.base_}function Vy(e,t){if(iu(e))return new Map(e);if(Fd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=SC(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Fn];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(Bs(e),r)}else{const r=Bs(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function s0(e,t=!1){return Kd(e)||io(e)||!Zi(e)||(Hd(e)>1&&Object.defineProperties(e,{set:Vc,add:Vc,clear:Vc,delete:Vc}),Object.freeze(e),t&&Object.values(e).forEach(n=>s0(n,!0))),e}function b7(){vr(2)}var Vc={value:b7};function Kd(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var x7={};function Wi(e){const t=x7[e];return t||vr(0,e),t}var Is;function _C(){return Is}function w7(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Jj(e,t){t&&(Wi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xy(e){Zy(e),e.drafts_.forEach(S7),e.drafts_=null}function Zy(e){e===Is&&(Is=e.parent_)}function e_(e){return Is=w7(Is,e)}function S7(e){const t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function t_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Fn].modified_&&(Xy(t),vr(4)),Zi(e)&&(e=$f(t,e),t.parent_||Uf(t,e)),t.patches_&&Wi("Patches").generateReplacementPatches_(n[Fn].base_,e,t.patches_,t.inversePatches_)):e=$f(t,n,[]),Xy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==wC?e:void 0}function $f(e,t,n){if(Kd(t))return t;const r=e.immer_.shouldUseStrictIteration(),l=t[Fn];if(!l)return If(t,(o,u)=>n_(e,l,t,o,u,n),r),t;if(l.scope_!==e)return t;if(!l.modified_)return Uf(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),If(u,(d,h)=>n_(e,l,o,d,h,n,f),r),Uf(e,o,!1),n&&e.patches_&&Wi("Patches").generatePatches_(l,n,e.patches_,e.inversePatches_)}return l.copy_}function n_(e,t,n,r,l,o,u){if(l==null||typeof l!="object"&&!u)return;const f=Kd(l);if(!(f&&!u)){if(io(l)){const d=o&&t&&t.type_!==3&&!Gy(t.assigned_,r)?o.concat(r):void 0,h=$f(e,l,d);if(jC(n,r,h),io(h))e.canAutoFreeze_=!1;else return}else u&&n.add(l);if(Zi(l)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===l&&f)return;$f(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(iu(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Uf(e,l)}}}function Uf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&s0(t,n)}function j7(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:_C(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,o=u0;n&&(l=[r],o=$s);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,f}var u0={get(e,t){if(t===Fn)return e;const n=Ti(e);if(!Gy(n,t))return _7(e,n,t);const r=n[t];return e.finalized_||!Zi(r)?r:r===qv(e.base_,t)?(Hv(e),e.copy_[t]=Qy(r,e)):r},has(e,t){return t in Ti(e)},ownKeys(e){return Reflect.ownKeys(Ti(e))},set(e,t,n){const r=OC(Ti(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=qv(Ti(e),t),o=l==null?void 0:l[Fn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(g7(n,l)&&(n!==void 0||Gy(e.base_,t)))return!0;Hv(e),Wy(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 qv(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Hv(e),Wy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ti(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return Bs(e.base_)},setPrototypeOf(){vr(12)}},$s={};If(u0,(e,t)=>{$s[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});$s.deleteProperty=function(e,t){return $s.set.call(this,e,t,void 0)};$s.set=function(e,t,n){return u0.set.call(this,e[0],t,n,e[0])};function qv(e,t){const n=e[Fn];return(n?Ti(n):e)[t]}function _7(e,t,n){var l;const r=OC(t,n);return r?"value"in r?r.value:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function OC(e,t){if(!(t in e))return;let n=Bs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Bs(n)}}function Wy(e){e.modified_||(e.modified_=!0,e.parent_&&Wy(e.parent_))}function Hv(e){e.copy_||(e.copy_=Vy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var O7=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"&&vr(6),r!==void 0&&typeof r!="function"&&vr(7);let l;if(Zi(t)){const o=e_(this),u=Qy(t,void 0);let f=!0;try{l=n(u),f=!1}finally{f?Xy(o):Zy(o)}return Jj(o,r),t_(l,o)}else if(!t||typeof t!="object"){if(l=n(t),l===void 0&&(l=t),l===wC&&(l=void 0),this.autoFreeze_&&s0(l,!0),r){const o=[],u=[];Wi("Patches").generateReplacementPatches_(t,l,o,u),r(o,u)}return l}else vr(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){Zi(e)||vr(8),io(e)&&(e=A7(e));const t=e_(this),n=Qy(e,void 0);return n[Fn].isManual_=!0,Zy(t),n}finishDraft(e,t){const n=e&&e[Fn];(!n||!n.isManual_)&&vr(9);const{scope_:r}=n;return Jj(r,t),t_(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=Wi("Patches").applyPatches_;return io(e)?r(e,t):this.produce(e,l=>r(l,t))}};function Qy(e,t){const n=iu(e)?Wi("MapSet").proxyMap_(e,t):Fd(e)?Wi("MapSet").proxySet_(e,t):j7(e,t);return(t?t.scope_:_C()).drafts_.push(n),n}function A7(e){return io(e)||vr(10,e),AC(e)}function AC(e){if(!Zi(e)||Kd(e))return e;const t=e[Fn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Vy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Vy(e,!0);return If(n,(l,o)=>{jC(n,l,AC(o))},r),t&&(t.finalized_=!1),n}var N7=new O7;N7.produce;var E7={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},NC=Nn({name:"legend",initialState:E7,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=gr(e).payload.indexOf(n);l>-1&&(e.payload[l]=r)},prepare:ft()},removeLegendPayload:{reducer(e,t){var n=gr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:ft()}}}),{setLegendSize:r_,setLegendSettings:C7,addLegendPayload:EC,replaceLegendPayload:CC,removeLegendPayload:TC}=NC.actions,T7=NC.reducer,M7=["contextPayload"];function Jy(){return Jy=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},Jy.apply(null,arguments)}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 lo(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){D7(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 D7(e,t,n){return(t=k7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k7(e){var t=P7(e,"string");return typeof t=="symbol"?t:t+""}function P7(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 R7(e,t){if(e==null)return{};var n,r,l=z7(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 z7(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 L7(e){return e.value}function B7(e){var{contextPayload:t}=e,n=R7(e,M7),r=EE(t,e.payloadUniqBy,L7),l=lo(lo({},n),{},{payload:r});return x.isValidElement(e.content)?x.cloneElement(e.content,l):typeof e.content=="function"?x.createElement(e.content,l):x.createElement(Nz,l)}function I7(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}),lo(lo({},h),p)}function $7(e){var t=at();return x.useEffect(()=>{t(C7(e))},[t,e]),null}function U7(e){var t=at();return x.useEffect(()=>(t(r_(e)),()=>{t(r_({width:0,height:0}))}),[t,e]),null}function q7(e,t,n,r){return e==="vertical"&&he(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var H7={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function MC(e){var t=Rt(e,H7),n=S8(),r=gR(),l=m7(),{width:o,height:u,wrapperStyle:f,portal:d}=t,[h,p]=kE([n]),y=l0(),b=o0();if(y==null||b==null)return null;var w=y-((l==null?void 0:l.left)||0)-((l==null?void 0:l.right)||0),S=q7(t.layout,u,o,w),j=d?f:lo(lo({position:"absolute",width:(S==null?void 0:S.width)||o||"auto",height:(S==null?void 0:S.height)||u||"auto"},I7(f,t,l,y,b,h)),f),_=d??r;if(_==null||n==null)return null;var N=x.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:p},x.createElement($7,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!d&&x.createElement(U7,{width:h.width,height:h.height}),x.createElement(B7,Jy({},t,S,{margin:l,chartWidth:y,chartHeight:b,contextPayload:n})));return dn.createPortal(N,_)}MC.displayName="Legend";function eg(){return eg=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},eg.apply(null,arguments)}function i_(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(n),!0).forEach(function(r){F7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F7(e,t,n){return(t=K7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K7(e){var t=Y7(e,"string");return typeof t=="symbol"?t:t+""}function Y7(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 G7(e){return Array.isArray(e)&&Tr(e[0])&&Tr(e[1])?e.join(" ~ "):e}var V7=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:l={},payload:o,formatter:u,itemSorter:f,wrapperClassName:d,labelClassName:h,label:p,labelFormatter:y,accessibilityLayer:b=!1}=e,w=()=>{if(o&&o.length){var D={padding:0,margin:0},T=(f?Nd(o,f):o).map((k,$)=>{if(k.type==="none")return null;var Z=k.formatter||u||G7,{value:V,name:re}=k,P=V,ue=re;if(Z){var U=Z(V,re,k,$,o);if(Array.isArray(U))[P,ue]=U;else if(U!=null)P=U;else return null}var ne=Fv({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},r);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:ne},Tr(ue)?x.createElement("span",{className:"recharts-tooltip-item-name"},ue):null,Tr(ue)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},P),x.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:D},T)}return null},S=Fv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),j=Fv({margin:0},l),_=!mt(p),N=_?p:"",A=$e("recharts-default-tooltip",d),C=$e("recharts-tooltip-label",h);_&&y&&o!==void 0&&o!==null&&(N=y(p,o));var M=b?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",eg({className:A,style:S},M),x.createElement("p",{className:C,style:j},x.isValidElement(N)?N:"".concat(N)),w())},Ss="recharts-tooltip-wrapper",X7={visibility:"hidden"};function Z7(e){var{coordinate:t,translateX:n,translateY:r}=e;return $e(Ss,{["".concat(Ss,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Ss,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Ss,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Ss,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function l_(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft: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 w=p,S=b;return w<S?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 W7(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 Q7(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:f,viewBox:d}=e,h,p,y;return u.height>0&&u.width>0&&n?(p=l_({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:d,viewBoxDimension:d.width}),y=l_({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:d,viewBoxDimension:d.height}),h=W7({translateX:p,translateY:y,useTranslate3d:f})):h=X7,{cssProperties:h,cssClasses:Z7({translateX:p,translateY:y,coordinate:n})}}function o_(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 Xc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(n),!0).forEach(function(r){tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tg(e,t,n){return(t=J7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J7(e){var t=eB(e,"string");return typeof t=="symbol"?t:t+""}function eB(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 tB extends x.PureComponent{constructor(){super(...arguments),tg(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),tg(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:w,wrapperStyle:S,lastBoundingBox:j,innerRef:_,hasPortalFromProps:N}=this.props,{cssClasses:A,cssProperties:C}=Q7({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:h,position:p,reverseDirection:y,tooltipBox:{height:j.height,width:j.width},useTranslate3d:b,viewBox:w}),M=N?{}:Xc(Xc({transition:d&&t?"transform ".concat(r,"ms ").concat(l):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&f?"visible":"hidden",position:"absolute",top:0,left:0}),D=Xc(Xc({},M),{},{visibility:!this.state.dismissed&&t&&f?"visible":"hidden"},S);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:A,style:D,ref:_},o)}}var DC=()=>{var e;return(e=ye(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};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 s_(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 u_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(n),!0).forEach(function(r){nB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nB(e,t,n){return(t=rB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e){var t=aB(e,"string");return typeof t=="symbol"?t:t+""}function aB(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 c_={curveBasisClosed:LR,curveBasisOpen:BR,curveBasis:zR,curveBumpX:SR,curveBumpY:jR,curveLinearClosed:IR,curveLinear:Od,curveMonotoneX:$R,curveMonotoneY:UR,curveNatural:qR,curveStep:HR,curveStepAfter:KR,curveStepBefore:FR},qf=e=>nt(e.x)&&nt(e.y),f_=e=>e.base!=null&&qf(e.base)&&qf(e),js=e=>e.x,_s=e=>e.y,iB=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Js(e));return(n==="curveMonotone"||n==="curveBump")&&t?c_["".concat(n).concat(t==="vertical"?"Y":"X")]:c_[n]||Od},lB=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:l,connectNulls:o=!1}=e,u=iB(t,l),f=o?n.filter(qf):n,d;if(Array.isArray(r)){var h=n.map((w,S)=>u_(u_({},w),{},{base:r[S]}));l==="vertical"?d=Uc().y(_s).x1(js).x0(w=>w.base.x):d=Uc().x(js).y1(_s).y0(w=>w.base.y);var p=d.defined(f_).curve(u),y=o?h.filter(f_):h;return p(y)}l==="vertical"&&he(r)?d=Uc().y(_s).x1(js).x0(r):he(r)?d=Uc().x(js).y1(_s).y0(r):d=aE().x(js).y(_s);var b=d.defined(qf).curve(u);return b(f)},eo=e=>{var{className:t,points:n,path:r,pathRef:l}=e,o=tl();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?lB(u):r;return x.createElement("path",ng({},An(e),Vg(e),{className:$e("recharts-curve",t),d:f===null?void 0:f,ref:l}))},oB=["x","y","top","left","width","height","className"];function rg(){return rg=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},rg.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 sB(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){uB(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 uB(e,t,n){return(t=cB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e){var t=fB(e,"string");return typeof t=="symbol"?t:t+""}function fB(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 dB(e,t){if(e==null)return{};var n,r,l=hB(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 hB(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 mB=(e,t,n,r,l,o)=>"M".concat(e,",").concat(l,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),pB=e=>{var{x:t=0,y:n=0,top:r=0,left:l=0,width:o=0,height:u=0,className:f}=e,d=dB(e,oB),h=sB({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",rg({},mn(h),{className:$e("recharts-cross",f),d:mB(t,n,o,u,r,l)}))};function vB(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 h_(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 m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){yB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yB(e,t,n){return(t=gB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gB(e){var t=bB(e,"string");return typeof t=="symbol"?t:t+""}function bB(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 xB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),kC=(e,t,n)=>e.map(r=>"".concat(xB(r)," ").concat(t,"ms ").concat(n)).join(","),wB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(l=>r.includes(l))),Us=(e,t)=>Object.keys(t).reduce((n,r)=>m_(m_({},n),{},{[r]:e(r,t[r])}),{});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 Lt(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){SB(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 SB(e,t,n){return(t=jB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jB(e){var t=_B(e,"string");return typeof t=="symbol"?t:t+""}function _B(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 Hf=(e,t,n)=>e+(t-e)*n,ag=e=>{var{from:t,to:n}=e;return t!==n},PC=(e,t,n)=>{var r=Us((l,o)=>{if(ag(o)){var[u,f]=e(o.from,o.to,o.velocity);return Lt(Lt({},o),{},{from:u,velocity:f})}return o},t);return n<1?Us((l,o)=>ag(o)&&r[l]!=null?Lt(Lt({},o),{},{velocity:Hf(o.velocity,r[l].velocity,n),from:Hf(o.from,r[l].from,n)}):o,t):PC(e,r,n-1)};function OB(e,t,n,r,l,o){var u,f=r.reduce((b,w)=>Lt(Lt({},b),{},{[w]:{from:e[w],velocity:0,to:t[w]}}),{}),d=()=>Us((b,w)=>w.from,f),h=()=>!Object.values(f).filter(ag).length,p=null,y=b=>{u||(u=b);var w=b-u,S=w/n.dt;f=PC(n,f,S),l(Lt(Lt(Lt({},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 AB(e,t,n,r,l,o,u){var f=null,d=l.reduce((y,b)=>{var w=e[b],S=t[b];return w==null||S==null?y:Lt(Lt({},y),{},{[b]:[w,S]})},{}),h,p=y=>{h||(h=y);var b=(y-h)/r,w=Us((j,_)=>Hf(..._,n(b)),d);if(o(Lt(Lt(Lt({},e),t),w)),b<1)f=u.setTimeout(p);else{var S=Us((j,_)=>Hf(..._,n(1)),d);o(Lt(Lt(Lt({},e),t),S))}};return()=>(f=u.setTimeout(p),()=>{var y;(y=f)===null||y===void 0||y()})}const NB=(e,t,n,r,l,o)=>{var u=wB(e,t);return n==null?()=>(l(Lt(Lt({},e),t)),()=>{}):n.isStepper===!0?OB(e,t,n,u,l,o):AB(e,t,n,r,u,l,o)};var Ff=1e-4,RC=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],zC=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),v_=(e,t)=>n=>{var r=RC(e,t);return zC(r,n)},EB=(e,t)=>n=>{var r=RC(e,t),l=[...r.map((o,u)=>o*u).slice(1),0];return zC(l,n)},CB=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]]},TB=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=CB(n[0]);if(l)return l}}return n.length===4?n:[0,0,1,1]},MB=(e,t,n,r)=>{var l=v_(e,n),o=v_(t,r),u=EB(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 w=l(y)-p,S=u(y);if(Math.abs(w-p)<Ff||S<Ff)return o(y);y=f(y-w/S)}return o(y)};return d.isStepper=!1,d},y_=function(){return MB(...TB(...arguments))},DB=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)<Ff&&Math.abs(y)<Ff?[f,0]:[b,y]};return o.isStepper=!0,o.dt=l,o},kB=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return y_(e);case"spring":return DB();default:if(e.split("(")[0]==="cubic-bezier")return y_(e)}return typeof e=="function"?e:null};function PB(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 RB{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 zB(){return PB(new RB)}var LB=x.createContext(zB);function BB(e,t){var n=x.useContext(LB);return x.useMemo(()=>t??n(e),[e,t,n])}var IB=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),lu={isSsr:IB()},$B={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},g_={t:0},Kv={t:1};function ou(e){var t=Rt(e,$B),{isActive:n,canBegin:r,duration:l,easing:o,begin:u,onAnimationEnd:f,onAnimationStart:d,children:h}=t,p=n==="auto"?!lu.isSsr:n,y=BB(t.animationId,t.animationManager),[b,w]=x.useState(p?g_:Kv),S=x.useRef(null);return x.useEffect(()=>{p||w(Kv)},[p]),x.useEffect(()=>{if(!p||!r)return eu;var j=NB(g_,Kv,kB(o),l,w,y.getTimeoutController()),_=()=>{S.current=j()};return y.start([d,u,_,l,f]),()=>{y.stop(),S.current&&S.current(),f()}},[p,r,l,o,u,d,f,y]),h(b.t)}function su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=x.useRef(Ps(t)),r=x.useRef(e);return r.current!==e&&(n.current=Ps(t),r.current=e),n.current}var UB=["radius"],qB=["radius"],b_,x_,w_,S_,j_,__,O_,A_,N_,E_;function C_(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 T_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(r){HB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HB(e,t,n){return(t=FB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FB(e){var t=KB(e,"string");return typeof t=="symbol"?t:t+""}function KB(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 Kf(){return Kf=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},Kf.apply(null,arguments)}function M_(e,t){if(e==null)return{};var n,r,l=YB(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 YB(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 Nr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D_=(e,t,n,r,l)=>{var o=ei(n),u=ei(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&&l instanceof Array){for(var b=[0,0,0,0],w=0,S=4;w<S;w++)b[w]=l[w]>f?f:l[w];y=gt(b_||(b_=Nr(["M",",",""])),e,t+d*b[0]),b[0]>0&&(y+=gt(x_||(x_=Nr(["A ",",",",0,0,",",",",",""])),b[0],b[0],p,e+h*b[0],t)),y+=gt(w_||(w_=Nr(["L ",",",""])),e+n-h*b[1],t),b[1]>0&&(y+=gt(S_||(S_=Nr(["A ",",",",0,0,",`,
        `,",",""])),b[1],b[1],p,e+n,t+d*b[1])),y+=gt(j_||(j_=Nr(["L ",",",""])),e+n,t+r-d*b[2]),b[2]>0&&(y+=gt(__||(__=Nr(["A ",",",",0,0,",`,
        `,",",""])),b[2],b[2],p,e+n-h*b[2],t+r)),y+=gt(O_||(O_=Nr(["L ",",",""])),e+h*b[3],t+r),b[3]>0&&(y+=gt(A_||(A_=Nr(["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 j=Math.min(f,l);y=gt(N_||(N_=Nr(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+d*j,j,j,p,e+h*j,t,e+n-h*j,t,j,j,p,e+n,t+d*j,e+n,t+r-d*j,j,j,p,e+n-h*j,t+r,e+h*j,t+r,j,j,p,e,t+r-d*j)}else y=gt(E_||(E_=Nr(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return y},k_={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},LC=e=>{var t=Rt(e,k_),n=x.useRef(null),[r,l]=x.useState(-1);x.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var Q=n.current.getTotalLength();Q&&l(Q)}catch{}},[]);var{x:o,y:u,width:f,height:d,radius:h,className:p}=t,{animationEasing:y,animationDuration:b,animationBegin:w,isAnimationActive:S,isUpdateAnimationActive:j}=t,_=x.useRef(f),N=x.useRef(d),A=x.useRef(o),C=x.useRef(u),M=x.useMemo(()=>({x:o,y:u,width:f,height:d,radius:h}),[o,u,f,d,h]),D=su(M,"rectangle-");if(o!==+o||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var T=$e("recharts-rectangle",p);if(!j){var k=mn(t),{radius:$}=k,Z=M_(k,UB);return x.createElement("path",Kf({},Z,{x:ei(o),y:ei(u),width:ei(f),height:ei(d),radius:typeof h=="number"?h:void 0,className:T,d:D_(o,u,f,d,h)}))}var V=_.current,re=N.current,P=A.current,ue=C.current,U="0px ".concat(r===-1?1:r,"px"),ne="".concat(r,"px 0px"),B=kC(["strokeDasharray"],b,typeof y=="string"?y:k_.animationEasing);return x.createElement(ou,{animationId:D,key:D,canBegin:r>0,duration:b,easing:y,isActive:j,begin:w},Q=>{var ie=st(V,f,Q),fe=st(re,d,Q),de=st(P,o,Q),R=st(ue,u,Q);n.current&&(_.current=ie,N.current=fe,A.current=de,C.current=R);var G;S?Q>0?G={transition:B,strokeDasharray:ne}:G={strokeDasharray:U}:G={strokeDasharray:ne};var oe=mn(t),{radius:ce}=oe,pe=M_(oe,qB);return x.createElement("path",Kf({},pe,{radius:typeof h=="number"?h:void 0,className:T,d:D_(de,R,ie,fe,h),ref:n,style:T_(T_({},G),t.style)}))})};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 R_(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){GB(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 GB(e,t,n){return(t=VB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VB(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 Yf=Math.PI/180,ZB=e=>e*180/Math.PI,Dt=(e,t,n,r)=>({x:e+Math.cos(-Yf*r)*n,y:t+Math.sin(-Yf*r)*n}),BC=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},WB=(e,t)=>{var{x:n,y:r}=e,{x:l,y:o}=t;return Math.sqrt((n-l)**2+(r-o)**2)},QB=(e,t)=>{var{x:n,y:r}=e,{cx:l,cy:o}=t,u=WB({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:ZB(d),angleInRadian:d}},JB=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}},eI=(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},tI=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:l,angle:o}=QB({x:n,y:r},t),{innerRadius:u,outerRadius:f}=t;if(l<u||l>f||l===0)return null;var{startAngle:d,endAngle:h}=JB(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?R_(R_({},t),{},{radius:l,angle:eI(p,t)}):null};function IC(e){var{cx:t,cy:n,radius:r,startAngle:l,endAngle:o}=e,u=Dt(t,n,r,l),f=Dt(t,n,r,o);return{points:[u,f],cx:t,cy:n,radius:r,startAngle:l,endAngle:o}}var z_,L_,B_,I_,$_,U_,q_;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 Pi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nI=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Zc=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)/Yf,y=d?l:l+o*p,b=Dt(t,n,h,y),w=Dt(t,n,r,y),S=d?l-o*p:l,j=Dt(t,n,h*Math.cos(p*Yf),S);return{center:b,circleTangency:w,lineTangency:j,theta:p}},$C=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:o,endAngle:u}=e,f=nI(o,u),d=o+f,h=Dt(t,n,l,o),p=Dt(t,n,l,d),y=gt(z_||(z_=Pi(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),h.x,h.y,l,l,+(Math.abs(f)>180),+(o>d),p.x,p.y);if(r>0){var b=Dt(t,n,r,o),w=Dt(t,n,r,d);y+=gt(L_||(L_=Pi(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),w.x,w.y,r,r,+(Math.abs(f)>180),+(o<=d),b.x,b.y)}else y+=gt(B_||(B_=Pi(["L ",","," Z"])),t,n);return y},rI=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}=e,p=Gt(h-d),{circleTangency:y,lineTangency:b,theta:w}=Zc({cx:t,cy:n,radius:l,angle:d,sign:p,cornerRadius:o,cornerIsExternal:f}),{circleTangency:S,lineTangency:j,theta:_}=Zc({cx:t,cy:n,radius:l,angle:h,sign:-p,cornerRadius:o,cornerIsExternal:f}),N=f?Math.abs(d-h):Math.abs(d-h)-w-_;if(N<0)return u?gt(I_||(I_=Pi(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),b.x,b.y,o,o,o*2,o,o,-o*2):$C({cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:d,endAngle:h});var A=gt($_||($_=Pi(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),b.x,b.y,o,o,+(p<0),y.x,y.y,l,l,+(N>180),+(p<0),S.x,S.y,o,o,+(p<0),j.x,j.y);if(r>0){var{circleTangency:C,lineTangency:M,theta:D}=Zc({cx:t,cy:n,radius:r,angle:d,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),{circleTangency:T,lineTangency:k,theta:$}=Zc({cx:t,cy:n,radius:r,angle:h,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),Z=f?Math.abs(d-h):Math.abs(d-h)-D-$;if(Z<0&&o===0)return"".concat(A,"L").concat(t,",").concat(n,"Z");A+=gt(U_||(U_=Pi(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),k.x,k.y,o,o,+(p<0),T.x,T.y,r,r,+(Z>180),+(p>0),C.x,C.y,o,o,+(p<0),M.x,M.y)}else A+=gt(q_||(q_=Pi(["L",",","Z"])),t,n);return A},aI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},UC=e=>{var t=Rt(e,aI),{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=$e("recharts-sector",y),w=o-l,S=sn(u,w,0,!0),j;return S>0&&Math.abs(h-p)<360?j=rI({cx:n,cy:r,innerRadius:l,outerRadius:o,cornerRadius:Math.min(S,w/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:h,endAngle:p}):j=$C({cx:n,cy:r,innerRadius:l,outerRadius:o,startAngle:h,endAngle:p}),x.createElement("path",ig({},mn(t),{className:b,d:j}))};function iI(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(bE(t)){if(e==="centric"){var{cx:r,cy:l,innerRadius:o,outerRadius:u,angle:f}=t,d=Dt(r,l,o,f),h=Dt(r,l,u,f);return[{x:d.x,y:d.y},{x:h.x,y:h.y}]}return IC(t)}}var Yv={},Gv={},Vv={},H_;function lI(){return H_||(H_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TE();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Vv)),Vv}var F_;function oI(){return F_||(F_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lI();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})(Gv)),Gv}var K_;function sI(){return K_||(K_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ME(),n=oI();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})(Yv)),Yv}var Xv,Y_;function uI(){return Y_||(Y_=1,Xv=sI().range),Xv}var cI=uI();const qC=kr(cI);function ni(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fI(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function c0(e){let t,n,r;e.length!==2?(t=ni,n=(f,d)=>ni(e(f),d),r=(f,d)=>e(f)-d):(t=e===ni||e===fI?e:dI,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 dI(){return 0}function HC(e){return e===null?NaN:+e}function*hI(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const mI=c0(ni),uu=mI.right;c0(HC).center;class G_ extends Map{constructor(t,n=yI){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(V_(this,t))}has(t){return super.has(V_(this,t))}set(t,n){return super.set(pI(this,t),n)}delete(t){return super.delete(vI(this,t))}}function V_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function pI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function vI({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function yI(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gI(e=ni){if(e===ni)return FC;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 FC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const bI=Math.sqrt(50),xI=Math.sqrt(10),wI=Math.sqrt(2);function Gf(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>=bI?10:o>=xI?5:o>=wI?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?Gf(e,t,n*2):[f,d,h]}function lg(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?Gf(t,e,n):Gf(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 og(e,t,n){return t=+t,e=+e,n=+n,Gf(e,t,n)[2]}function sg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,l=r?og(t,e,n):og(e,t,n);return(r?-1:1)*(l<0?1/-l:l)}function X_(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Z_(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function KC(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?FC:gI(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),w=Math.max(n,Math.floor(t-h*y/d+b)),S=Math.min(r,Math.floor(t+(d-h)*y/d+b));KC(e,t,w,S,l)}const o=e[t];let u=n,f=r;for(Os(e,n,t),l(e[r],o)>0&&Os(e,n,r);u<f;){for(Os(e,u,f),++u,--f;l(e[u],o)<0;)++u;for(;l(e[f],o)>0;)--f}l(e[n],o)===0?Os(e,n,f):(++f,Os(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function Os(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function SI(e,t,n){if(e=Float64Array.from(hI(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Z_(e);if(t>=1)return X_(e);var r,l=(r-1)*t,o=Math.floor(l),u=X_(KC(e,o).subarray(0,o+1)),f=Z_(e.subarray(o+1));return u+(f-u)*(l-o)}}function jI(e,t,n=HC){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 _I(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 fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function wa(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 ug=Symbol("implicit");function f0(){var e=new G_,t=[],n=[],r=ug;function l(o){let u=e.get(o);if(u===void 0){if(r!==ug)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 G_;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 f0(t,n).unknown(r)},fr.apply(l,arguments),l}function d0(){var e=f0().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,w=l<r,S=w?l:r,j=w?r:l;o=(j-S)/Math.max(1,b-d+h*2),f&&(o=Math.floor(o)),S+=(j-S-o*(b-d))*p,u=o*(1-d),f&&(S=Math.round(S),u=Math.round(u));var _=_I(b).map(function(N){return S+o*N});return n(w?_.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 d0(t(),[r,l]).round(f).paddingInner(d).paddingOuter(h).align(p)},fr.apply(y(),arguments)}function YC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return YC(t())},e}function OI(){return YC(d0.apply(null,arguments).paddingInner(1))}function h0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function GC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cu(){}var qs=.7,Vf=1/qs,to="\\s*([+-]?\\d+)\\s*",Hs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AI=/^#([0-9a-f]{3,8})$/,NI=new RegExp(`^rgb\\(${to},${to},${to}\\)$`),EI=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),CI=new RegExp(`^rgba\\(${to},${to},${to},${Hs}\\)$`),TI=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${Hs}\\)$`),MI=new RegExp(`^hsl\\(${Hs},${Cr},${Cr}\\)$`),DI=new RegExp(`^hsla\\(${Hs},${Cr},${Cr},${Hs}\\)$`),W_={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};h0(cu,Fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Q_,formatHex:Q_,formatHex8:kI,formatHsl:PI,formatRgb:J_,toString:J_});function Q_(){return this.rgb().formatHex()}function kI(){return this.rgb().formatHex8()}function PI(){return VC(this).formatHsl()}function J_(){return this.rgb().formatRgb()}function Fs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=AI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?eO(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wc(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=NI.exec(e))?new jn(t[1],t[2],t[3],1):(t=EI.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CI.exec(e))?Wc(t[1],t[2],t[3],t[4]):(t=TI.exec(e))?Wc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MI.exec(e))?rO(t[1],t[2]/100,t[3]/100,1):(t=DI.exec(e))?rO(t[1],t[2]/100,t[3]/100,t[4]):W_.hasOwnProperty(e)?eO(W_[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function eO(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function Wc(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function RI(e){return e instanceof cu||(e=Fs(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function cg(e,t,n,r){return arguments.length===1?RI(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}h0(jn,cg,GC(cu,{brighter(e){return e=e==null?Vf:Math.pow(Vf,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qs:Math.pow(qs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn($i(this.r),$i(this.g),$i(this.b),Xf(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:tO,formatHex:tO,formatHex8:zI,formatRgb:nO,toString:nO}));function tO(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function zI(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function nO(){const e=Xf(this.opacity);return`${e===1?"rgb(":"rgba("}${$i(this.r)}, ${$i(this.g)}, ${$i(this.b)}${e===1?")":`, ${e})`}`}function Xf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $i(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ri(e){return e=$i(e),(e<16?"0":"")+e.toString(16)}function rO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yr(e,t,n,r)}function VC(e){if(e instanceof yr)return new yr(e.h,e.s,e.l,e.opacity);if(e instanceof cu||(e=Fs(e)),!e)return new yr;if(e instanceof yr)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 yr(u,f,d,e.opacity)}function LI(e,t,n,r){return arguments.length===1?VC(e):new yr(e,t,n,r??1)}function yr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}h0(yr,LI,GC(cu,{brighter(e){return e=e==null?Vf:Math.pow(Vf,e),new yr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qs:Math.pow(qs,e),new yr(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(Zv(e>=240?e-240:e+120,l,r),Zv(e,l,r),Zv(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new yr(aO(this.h),Qc(this.s),Qc(this.l),Xf(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=Xf(this.opacity);return`${e===1?"hsl(":"hsla("}${aO(this.h)}, ${Qc(this.s)*100}%, ${Qc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aO(e){return e=(e||0)%360,e<0?e+360:e}function Qc(e){return Math.max(0,Math.min(1,e||0))}function Zv(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 m0=e=>()=>e;function BI(e,t){return function(n){return e+n*t}}function II(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 $I(e){return(e=+e)==1?XC:function(t,n){return n-t?II(t,n,e):m0(isNaN(t)?n:t)}}function XC(e,t){var n=t-e;return n?BI(e,n):m0(isNaN(e)?t:e)}const iO=(function e(t){var n=$I(t);function r(l,o){var u=n((l=cg(l)).r,(o=cg(o)).r),f=n(l.g,o.g),d=n(l.b,o.b),h=XC(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 UI(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 qI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function HI(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]=vo(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 FI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Zf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function KI(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]=vo(e[l],t[l]):r[l]=t[l];return function(o){for(l in n)r[l]=n[l](o);return r}}var fg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wv=new RegExp(fg.source,"g");function YI(e){return function(){return e}}function GI(e){return function(t){return e(t)+""}}function VI(e,t){var n=fg.lastIndex=Wv.lastIndex=0,r,l,o,u=-1,f=[],d=[];for(e=e+"",t=t+"";(r=fg.exec(e))&&(l=Wv.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:Zf(r,l)})),n=Wv.lastIndex;return n<t.length&&(o=t.slice(n),f[u]?f[u]+=o:f[++u]=o),f.length<2?d[0]?GI(d[0].x):YI(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 vo(e,t){var n=typeof t,r;return t==null||n==="boolean"?m0(t):(n==="number"?Zf:n==="string"?(r=Fs(t))?(t=r,iO):VI:t instanceof Fs?iO:t instanceof Date?FI:qI(t)?UI:Array.isArray(t)?HI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?KI:Zf)(e,t)}function p0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function XI(e,t){t===void 0&&(t=e,e=vo);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 ZI(e){return function(){return e}}function Wf(e){return+e}var lO=[0,1];function hn(e){return e}function dg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ZI(isNaN(t)?NaN:.5)}function WI(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function QI(e,t,n){var r=e[0],l=e[1],o=t[0],u=t[1];return l<r?(r=dg(l,r),o=n(u,o)):(r=dg(r,l),o=n(o,u)),function(f){return o(r(f))}}function JI(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]=dg(e[u],e[u+1]),o[u]=n(t[u],t[u+1]);return function(f){var d=uu(e,f,1,r)-1;return o[d](l[d](f))}}function fu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yd(){var e=lO,t=lO,n=vo,r,l,o,u=hn,f,d,h;function p(){var b=Math.min(e.length,t.length);return u!==hn&&(u=WI(e[0],e[b-1])),f=b>2?JI:QI,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),Zf)))(b)))},y.domain=function(b){return arguments.length?(e=Array.from(b,Wf),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=p0,p()},y.clamp=function(b){return arguments.length?(u=b?!0:hn,p()):u!==hn},y.interpolate=function(b){return arguments.length?(n=b,p()):n},y.unknown=function(b){return arguments.length?(o=b,y):o},function(b,w){return r=b,l=w,p()}}function v0(){return Yd()(hn,hn)}function e$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qf(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 oo(e){return e=Qf(Math.abs(e)),e?e[1]:NaN}function t$(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 n$(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var r$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ks(e){if(!(t=r$.exec(e)))throw new Error("invalid format: "+e);var t;return new y0({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]})}Ks.prototype=y0.prototype;function y0(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+""}y0.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 a$(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 Jf;function i$(e,t){var n=Qf(e,t);if(!n)return Jf=void 0,e.toPrecision(t);var r=n[0],l=n[1],o=l-(Jf=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")+Qf(e,Math.max(0,t+o-1))[0]}function oO(e,t){var n=Qf(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 sO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:e$,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)=>oO(e*100,t),r:oO,s:i$,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uO(e){return e}var cO=Array.prototype.map,fO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l$(e){var t=e.grouping===void 0||e.thousands===void 0?uO:t$(cO.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?uO:n$(cO.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=Ks(y);var w=y.fill,S=y.align,j=y.sign,_=y.symbol,N=y.zero,A=y.width,C=y.comma,M=y.precision,D=y.trim,T=y.type;T==="n"?(C=!0,T="g"):sO[T]||(M===void 0&&(M=12),D=!0,T="g"),(N||w==="0"&&S==="=")&&(N=!0,w="0",S="=");var k=(b&&b.prefix!==void 0?b.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),$=(_==="$"?r:/[%p]/.test(T)?u:"")+(b&&b.suffix!==void 0?b.suffix:""),Z=sO[T],V=/[defgprs%]/.test(T);M=M===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function re(P){var ue=k,U=$,ne,B,Q;if(T==="c")U=Z(P)+U,P="";else{P=+P;var ie=P<0||1/P<0;if(P=isNaN(P)?d:Z(Math.abs(P),M),D&&(P=a$(P)),ie&&+P==0&&j!=="+"&&(ie=!1),ue=(ie?j==="("?j:f:j==="-"||j==="("?"":j)+ue,U=(T==="s"&&!isNaN(P)&&Jf!==void 0?fO[8+Jf/3]:"")+U+(ie&&j==="("?")":""),V){for(ne=-1,B=P.length;++ne<B;)if(Q=P.charCodeAt(ne),48>Q||Q>57){U=(Q===46?l+P.slice(ne+1):P.slice(ne))+U,P=P.slice(0,ne);break}}}C&&!N&&(P=t(P,1/0));var fe=ue.length+P.length+U.length,de=fe<A?new Array(A-fe+1).join(w):"";switch(C&&N&&(P=t(de+P,de.length?A-U.length:1/0),de=""),S){case"<":P=ue+P+U+de;break;case"=":P=ue+de+P+U;break;case"^":P=de.slice(0,fe=de.length>>1)+ue+P+U+de.slice(fe);break;default:P=de+ue+P+U;break}return o(P)}return re.toString=function(){return y+""},re}function p(y,b){var w=Math.max(-8,Math.min(8,Math.floor(oo(b)/3)))*3,S=Math.pow(10,-w),j=h((y=Ks(y),y.type="f",y),{suffix:fO[8+w/3]});return function(_){return j(S*_)}}return{format:h,formatPrefix:p}}var Jc,g0,ZC;o$({thousands:",",grouping:[3],currency:["$",""]});function o$(e){return Jc=l$(e),g0=Jc.format,ZC=Jc.formatPrefix,Jc}function s$(e){return Math.max(0,-oo(Math.abs(e)))}function u$(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(oo(t)/3)))*3-oo(Math.abs(e)))}function c$(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,oo(t)-oo(e))+1}function WC(e,t,n,r){var l=sg(e,t,n),o;switch(r=Ks(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=u$(l,u))&&(r.precision=o),ZC(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=c$(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=s$(l))&&(r.precision=o-(r.type==="%")*2);break}}return g0(r)}function si(e){var t=e.domain;return e.ticks=function(n){var r=t();return lg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return WC(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=og(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 QC(){var e=v0();return e.copy=function(){return fu(e,QC())},fr.apply(e,arguments),si(e)}function JC(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,Wf),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return JC(e).unknown(t)},e=arguments.length?Array.from(e,Wf):[0,1],si(n)}function eT(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 dO(e){return Math.log(e)}function hO(e){return Math.exp(e)}function f$(e){return-Math.log(-e)}function d$(e){return-Math.exp(-e)}function h$(e){return isFinite(e)?+("1e"+e):e<0?0:e}function m$(e){return e===10?h$:e===Math.E?Math.exp:t=>Math.pow(e,t)}function p$(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 mO(e){return(t,n)=>-e(-t,n)}function b0(e){const t=e(dO,hO),n=t.domain;let r=10,l,o;function u(){return l=p$(r),o=m$(r),n()[0]<0?(l=mO(l),o=mO(o),e(f$,d$)):e(dO,hO),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),w=l(p),S,j;const _=f==null?10:+f;let N=[];if(!(r%1)&&w-b<_){if(b=Math.floor(b),w=Math.ceil(w),h>0){for(;b<=w;++b)for(S=1;S<r;++S)if(j=b<0?S/o(-b):S*o(b),!(j<h)){if(j>p)break;N.push(j)}}else for(;b<=w;++b)for(S=r-1;S>=1;--S)if(j=b>0?S/o(-b):S*o(b),!(j<h)){if(j>p)break;N.push(j)}N.length*2<_&&(N=lg(h,p,_))}else N=lg(b,w,Math.min(w-b,_)).map(o);return y?N.reverse():N},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Ks(d)).precision==null&&(d.trim=!0),d=g0(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(eT(n(),{floor:f=>o(Math.floor(l(f))),ceil:f=>o(Math.ceil(l(f)))})),t}function tT(){const e=b0(Yd()).domain([1,10]);return e.copy=()=>fu(e,tT()).base(e.base()),fr.apply(e,arguments),e}function pO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function x0(e){var t=1,n=e(pO(t),vO(t));return n.constant=function(r){return arguments.length?e(pO(t=+r),vO(t)):t},si(n)}function nT(){var e=x0(Yd());return e.copy=function(){return fu(e,nT()).constant(e.constant())},fr.apply(e,arguments)}function yO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function v$(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function y$(e){return e<0?-e*e:e*e}function w0(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(v$,y$):e(yO(n),yO(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},si(t)}function S0(){var e=w0(Yd());return e.copy=function(){return fu(e,S0()).exponent(e.exponent())},fr.apply(e,arguments),e}function g$(){return S0.apply(null,arguments).exponent(.5)}function gO(e){return Math.sign(e)*e*e}function b$(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rT(){var e=v0(),t=[0,1],n=!1,r;function l(o){var u=b$(e(o));return isNaN(u)?r:n?Math.round(u):u}return l.invert=function(o){return e.invert(gO(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,Wf)).map(gO)),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 rT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(l,arguments),si(l)}function aT(){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]=jI(e,u/f);return o}function o(u){return u==null||isNaN(u=+u)?r:t[uu(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(ni),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 aT().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}function iT(){var e=0,t=1,n=1,r=[.5],l=[0,1],o;function u(d){return d!=null&&d<=d?l[uu(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 iT().domain([e,t]).range(l).unknown(o)},fr.apply(si(u),arguments)}function lT(){var e=[.5],t=[0,1],n,r=1;function l(o){return o!=null&&o<=o?t[uu(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 lT().domain(e).range(t).unknown(n)},fr.apply(l,arguments)}const Qv=new Date,Jv=new Date;function It(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=>It(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)=>(Qv.setTime(+o),Jv.setTime(+u),e(Qv),e(Jv),Math.floor(n(Qv,Jv))),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 ed=It(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ed.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?It(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ed);ed.range;const la=1e3,lr=la*60,oa=lr*60,da=oa*24,j0=da*7,bO=da*30,ey=da*365,zi=It(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*la)},(e,t)=>(t-e)/la,e=>e.getUTCSeconds());zi.range;const _0=It(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*la)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());_0.range;const O0=It(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());O0.range;const A0=It(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*la-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*oa)},(e,t)=>(t-e)/oa,e=>e.getHours());A0.range;const N0=It(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*oa)},(e,t)=>(t-e)/oa,e=>e.getUTCHours());N0.range;const du=It(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/da,e=>e.getDate()-1);du.range;const Gd=It(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>e.getUTCDate()-1);Gd.range;const oT=It(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>Math.floor(e/da));oT.range;function nl(e){return It(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)/j0)}const Vd=nl(0),td=nl(1),x$=nl(2),w$=nl(3),so=nl(4),S$=nl(5),j$=nl(6);Vd.range;td.range;x$.range;w$.range;so.range;S$.range;j$.range;function rl(e){return It(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)/j0)}const Xd=rl(0),nd=rl(1),_$=rl(2),O$=rl(3),uo=rl(4),A$=rl(5),N$=rl(6);Xd.range;nd.range;_$.range;O$.range;uo.range;A$.range;N$.range;const E0=It(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());E0.range;const C0=It(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());C0.range;const ha=It(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());ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:It(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)});ha.range;const ma=It(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());ma.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:It(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)});ma.range;function sT(e,t,n,r,l,o){const u=[[zi,1,la],[zi,5,5*la],[zi,15,15*la],[zi,30,30*la],[o,1,lr],[o,5,5*lr],[o,15,15*lr],[o,30,30*lr],[l,1,oa],[l,3,3*oa],[l,6,6*oa],[l,12,12*oa],[r,1,da],[r,2,2*da],[n,1,j0],[t,1,bO],[t,3,3*bO],[e,1,ey]];function f(h,p,y){const b=p<h;b&&([h,p]=[p,h]);const w=y&&typeof y.range=="function"?y:d(h,p,y),S=w?w.range(h,+p+1):[];return b?S.reverse():S}function d(h,p,y){const b=Math.abs(p-h)/y,w=c0(([,,_])=>_).right(u,b);if(w===u.length)return e.every(sg(h/ey,p/ey,y));if(w===0)return ed.every(Math.max(sg(h,p,y),1));const[S,j]=u[b/u[w-1][2]<u[w][2]/b?w-1:w];return S.every(j)}return[f,d]}const[E$,C$]=sT(ma,C0,Xd,oT,N0,O0),[T$,M$]=sT(ha,E0,Vd,du,A0,_0);function ty(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 ny(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 As(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D$(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=Ns(l),p=Es(l),y=Ns(o),b=Es(o),w=Ns(u),S=Es(u),j=Ns(f),_=Es(f),N=Ns(d),A=Es(d),C={a:Q,A:ie,b:fe,B:de,c:null,d:OO,e:OO,f:t9,g:f9,G:h9,H:Q$,I:J$,j:e9,L:uT,m:n9,M:r9,p:R,q:G,Q:EO,s:CO,S:a9,u:i9,U:l9,V:o9,w:s9,W:u9,x:null,X:null,y:c9,Y:d9,Z:m9,"%":NO},M={a:oe,A:ce,b:pe,B:xe,c:null,d:AO,e:AO,f:g9,g:E9,G:T9,H:p9,I:v9,j:y9,L:fT,m:b9,M:x9,p:be,q:Je,Q:EO,s:CO,S:w9,u:S9,U:j9,V:_9,w:O9,W:A9,x:null,X:null,y:N9,Y:C9,Z:M9,"%":NO},D={a:V,A:re,b:P,B:ue,c:U,d:jO,e:jO,f:V$,g:SO,G:wO,H:_O,I:_O,j:F$,L:G$,m:H$,M:K$,p:Z,q:q$,Q:Z$,s:W$,S:Y$,u:L$,U:B$,V:I$,w:z$,W:$$,x:ne,X:B,y:SO,Y:wO,Z:U$,"%":X$};C.x=T(n,C),C.X=T(r,C),C.c=T(t,C),M.x=T(n,M),M.X=T(r,M),M.c=T(t,M);function T(J,_e){return function(Ae){var se=[],ut=-1,q=0,Se=J.length,He,Cn,zr;for(Ae instanceof Date||(Ae=new Date(+Ae));++ut<Se;)J.charCodeAt(ut)===37&&(se.push(J.slice(q,ut)),(Cn=xO[He=J.charAt(++ut)])!=null?He=J.charAt(++ut):Cn=He==="e"?" ":"0",(zr=_e[He])&&(He=zr(Ae,Cn)),se.push(He),q=ut+1);return se.push(J.slice(q,ut)),se.join("")}}function k(J,_e){return function(Ae){var se=As(1900,void 0,1),ut=$(se,J,Ae+="",0),q,Se;if(ut!=Ae.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(_e&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(q=ny(As(se.y,0,1)),Se=q.getUTCDay(),q=Se>4||Se===0?nd.ceil(q):nd(q),q=Gd.offset(q,(se.V-1)*7),se.y=q.getUTCFullYear(),se.m=q.getUTCMonth(),se.d=q.getUTCDate()+(se.w+6)%7):(q=ty(As(se.y,0,1)),Se=q.getDay(),q=Se>4||Se===0?td.ceil(q):td(q),q=du.offset(q,(se.V-1)*7),se.y=q.getFullYear(),se.m=q.getMonth(),se.d=q.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Se="Z"in se?ny(As(se.y,0,1)).getUTCDay():ty(As(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Se+5)%7:se.w+se.U*7-(Se+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,ny(se)):ty(se)}}function $(J,_e,Ae,se){for(var ut=0,q=_e.length,Se=Ae.length,He,Cn;ut<q;){if(se>=Se)return-1;if(He=_e.charCodeAt(ut++),He===37){if(He=_e.charAt(ut++),Cn=D[He in xO?_e.charAt(ut++):He],!Cn||(se=Cn(J,Ae,se))<0)return-1}else if(He!=Ae.charCodeAt(se++))return-1}return se}function Z(J,_e,Ae){var se=h.exec(_e.slice(Ae));return se?(J.p=p.get(se[0].toLowerCase()),Ae+se[0].length):-1}function V(J,_e,Ae){var se=w.exec(_e.slice(Ae));return se?(J.w=S.get(se[0].toLowerCase()),Ae+se[0].length):-1}function re(J,_e,Ae){var se=y.exec(_e.slice(Ae));return se?(J.w=b.get(se[0].toLowerCase()),Ae+se[0].length):-1}function P(J,_e,Ae){var se=N.exec(_e.slice(Ae));return se?(J.m=A.get(se[0].toLowerCase()),Ae+se[0].length):-1}function ue(J,_e,Ae){var se=j.exec(_e.slice(Ae));return se?(J.m=_.get(se[0].toLowerCase()),Ae+se[0].length):-1}function U(J,_e,Ae){return $(J,t,_e,Ae)}function ne(J,_e,Ae){return $(J,n,_e,Ae)}function B(J,_e,Ae){return $(J,r,_e,Ae)}function Q(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 G(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 Je(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var _e=T(J+="",C);return _e.toString=function(){return J},_e},parse:function(J){var _e=k(J+="",!1);return _e.toString=function(){return J},_e},utcFormat:function(J){var _e=T(J+="",M);return _e.toString=function(){return J},_e},utcParse:function(J){var _e=k(J+="",!0);return _e.toString=function(){return J},_e}}}var xO={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,k$=/^%/,P$=/[\\^$*+?|[\]().{}]/g;function Ue(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 R$(e){return e.replace(P$,"\\$&")}function Ns(e){return new RegExp("^(?:"+e.map(R$).join("|")+")","i")}function Es(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function z$(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function L$(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function B$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function I$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wO(e,t,n){var r=Vt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function SO(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function U$(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 q$(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function H$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jO(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function F$(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function K$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Y$(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function G$(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V$(e,t,n){var r=Vt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function X$(e,t,n){var r=k$.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z$(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function W$(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function OO(e,t){return Ue(e.getDate(),t,2)}function Q$(e,t){return Ue(e.getHours(),t,2)}function J$(e,t){return Ue(e.getHours()%12||12,t,2)}function e9(e,t){return Ue(1+du.count(ha(e),e),t,3)}function uT(e,t){return Ue(e.getMilliseconds(),t,3)}function t9(e,t){return uT(e,t)+"000"}function n9(e,t){return Ue(e.getMonth()+1,t,2)}function r9(e,t){return Ue(e.getMinutes(),t,2)}function a9(e,t){return Ue(e.getSeconds(),t,2)}function i9(e){var t=e.getDay();return t===0?7:t}function l9(e,t){return Ue(Vd.count(ha(e)-1,e),t,2)}function cT(e){var t=e.getDay();return t>=4||t===0?so(e):so.ceil(e)}function o9(e,t){return e=cT(e),Ue(so.count(ha(e),e)+(ha(e).getDay()===4),t,2)}function s9(e){return e.getDay()}function u9(e,t){return Ue(td.count(ha(e)-1,e),t,2)}function c9(e,t){return Ue(e.getFullYear()%100,t,2)}function f9(e,t){return e=cT(e),Ue(e.getFullYear()%100,t,2)}function d9(e,t){return Ue(e.getFullYear()%1e4,t,4)}function h9(e,t){var n=e.getDay();return e=n>=4||n===0?so(e):so.ceil(e),Ue(e.getFullYear()%1e4,t,4)}function m9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ue(t/60|0,"0",2)+Ue(t%60,"0",2)}function AO(e,t){return Ue(e.getUTCDate(),t,2)}function p9(e,t){return Ue(e.getUTCHours(),t,2)}function v9(e,t){return Ue(e.getUTCHours()%12||12,t,2)}function y9(e,t){return Ue(1+Gd.count(ma(e),e),t,3)}function fT(e,t){return Ue(e.getUTCMilliseconds(),t,3)}function g9(e,t){return fT(e,t)+"000"}function b9(e,t){return Ue(e.getUTCMonth()+1,t,2)}function x9(e,t){return Ue(e.getUTCMinutes(),t,2)}function w9(e,t){return Ue(e.getUTCSeconds(),t,2)}function S9(e){var t=e.getUTCDay();return t===0?7:t}function j9(e,t){return Ue(Xd.count(ma(e)-1,e),t,2)}function dT(e){var t=e.getUTCDay();return t>=4||t===0?uo(e):uo.ceil(e)}function _9(e,t){return e=dT(e),Ue(uo.count(ma(e),e)+(ma(e).getUTCDay()===4),t,2)}function O9(e){return e.getUTCDay()}function A9(e,t){return Ue(nd.count(ma(e)-1,e),t,2)}function N9(e,t){return Ue(e.getUTCFullYear()%100,t,2)}function E9(e,t){return e=dT(e),Ue(e.getUTCFullYear()%100,t,2)}function C9(e,t){return Ue(e.getUTCFullYear()%1e4,t,4)}function T9(e,t){var n=e.getUTCDay();return e=n>=4||n===0?uo(e):uo.ceil(e),Ue(e.getUTCFullYear()%1e4,t,4)}function M9(){return"+0000"}function NO(){return"%"}function EO(e){return+e}function CO(e){return Math.floor(+e/1e3)}var Hl,hT,mT;D9({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 D9(e){return Hl=D$(e),hT=Hl.format,Hl.parse,mT=Hl.utcFormat,Hl.utcParse,Hl}function k9(e){return new Date(e)}function P9(e){return e instanceof Date?+e:+new Date(+e)}function T0(e,t,n,r,l,o,u,f,d,h){var p=v0(),y=p.invert,b=p.domain,w=h(".%L"),S=h(":%S"),j=h("%I:%M"),_=h("%I %p"),N=h("%a %d"),A=h("%b %d"),C=h("%B"),M=h("%Y");function D(T){return(d(T)<T?w:f(T)<T?S:u(T)<T?j:o(T)<T?_:r(T)<T?l(T)<T?N:A:n(T)<T?C:M)(T)}return p.invert=function(T){return new Date(y(T))},p.domain=function(T){return arguments.length?b(Array.from(T,P9)):b().map(k9)},p.ticks=function(T){var k=b();return e(k[0],k[k.length-1],T??10)},p.tickFormat=function(T,k){return k==null?D:h(k)},p.nice=function(T){var k=b();return(!T||typeof T.range!="function")&&(T=t(k[0],k[k.length-1],T??10)),T?b(eT(k,T)):p},p.copy=function(){return fu(p,T0(e,t,n,r,l,o,u,f,d,h))},p}function R9(){return fr.apply(T0(T$,M$,ha,E0,Vd,du,A0,_0,zi,hT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function z9(){return fr.apply(T0(E$,C$,ma,C0,Xd,Gd,N0,O0,zi,mT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zd(){var e=0,t=1,n,r,l,o,u=hn,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 w,S;return arguments.length?([w,S]=b,u=y(w,S),h):[u(0),u(1)]}}return h.range=p(vo),h.rangeRound=p(p0),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 ui(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pT(){var e=si(Zd()(hn));return e.copy=function(){return ui(e,pT())},wa.apply(e,arguments)}function vT(){var e=b0(Zd()).domain([1,10]);return e.copy=function(){return ui(e,vT()).base(e.base())},wa.apply(e,arguments)}function yT(){var e=x0(Zd());return e.copy=function(){return ui(e,yT()).constant(e.constant())},wa.apply(e,arguments)}function M0(){var e=w0(Zd());return e.copy=function(){return ui(e,M0()).exponent(e.exponent())},wa.apply(e,arguments)}function L9(){return M0.apply(null,arguments).exponent(.5)}function gT(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((uu(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(ni),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)=>SI(e,o/r))},n.copy=function(){return gT(t).domain(e)},wa.apply(n,arguments)}function Wd(){var e=0,t=.5,n=1,r=1,l,o,u,f,d,h=hn,p,y=!1,b;function w(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))}w.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,w):[e,t,n]},w.clamp=function(j){return arguments.length?(y=!!j,w):y},w.interpolator=function(j){return arguments.length?(h=j,w):h};function S(j){return function(_){var N,A,C;return arguments.length?([N,A,C]=_,h=XI(j,[N,A,C]),w):[h(0),h(.5),h(1)]}}return w.range=S(vo),w.rangeRound=S(p0),w.unknown=function(j){return arguments.length?(b=j,w):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,w}}function bT(){var e=si(Wd()(hn));return e.copy=function(){return ui(e,bT())},wa.apply(e,arguments)}function xT(){var e=b0(Wd()).domain([.1,1,10]);return e.copy=function(){return ui(e,xT()).base(e.base())},wa.apply(e,arguments)}function wT(){var e=x0(Wd());return e.copy=function(){return ui(e,wT()).constant(e.constant())},wa.apply(e,arguments)}function D0(){var e=w0(Wd());return e.copy=function(){return ui(e,D0()).exponent(e.exponent())},wa.apply(e,arguments)}function B9(){return D0.apply(null,arguments).exponent(.5)}const Ms=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:d0,scaleDiverging:bT,scaleDivergingLog:xT,scaleDivergingPow:D0,scaleDivergingSqrt:B9,scaleDivergingSymlog:wT,scaleIdentity:JC,scaleImplicit:ug,scaleLinear:QC,scaleLog:tT,scaleOrdinal:f0,scalePoint:OI,scalePow:S0,scaleQuantile:aT,scaleQuantize:iT,scaleRadial:rT,scaleSequential:pT,scaleSequentialLog:vT,scaleSequentialPow:M0,scaleSequentialQuantile:gT,scaleSequentialSqrt:L9,scaleSequentialSymlog:yT,scaleSqrt:g$,scaleSymlog:nT,scaleThreshold:lT,scaleTime:R9,scaleUtc:z9,tickFormat:WC},Symbol.toStringTag,{value:"Module"}));var Sa=e=>e.chartData,Qd=K([Sa],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ST=(e,t,n,r)=>r?Qd(e):Sa(e),jT=(e,t,n)=>n?Qd(e):Sa(e);function ri(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(nt(t)&&nt(n))return!0}return!1}function TO(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function _T(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,l,o;if(nt(n))l=n;else if(typeof n=="function")return;if(nt(r))o=r;else if(typeof r=="function")return;var u=[l,o];if(ri(u))return u}}function I9(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ri(r))return TO(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"&&Uj.test(l)){var d=Uj.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"&&qj.test(o)){var p=qj.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(ri(b))return t==null?b:TO(b,t,n)}}}var yo=1e9,$9={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},P0,dt=!0,ur="[DecimalError] ",Ui=ur+"Invalid argument: ",k0=ur+"Exponent out of range: ",go=Math.floor,Mi=Math.pow,U9=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Un,Yt=1e7,ot=7,OT=9007199254740991,rd=go(OT/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 sa(this,new this.constructor(e))};me.dividedToIntegerBy=me.idiv=function(e){var t=this,n=t.constructor;return tt(sa(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(Un))throw Error(ur+"NaN");if(n.s<1)throw Error(ur+(n.s?"NaN":"-Infinity"));return n.eq(Un)?new r(0):(dt=!1,t=sa(Ys(n,o),Ys(e,o),o),dt=!0,tt(t,l))};me.minus=me.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ET(t,e):AT(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(ur+"NaN");return n.s?(dt=!1,t=sa(n,e,0,1).times(e),dt=!0,n.minus(t)):tt(new r(n),l)};me.naturalExponential=me.exp=function(){return NT(this)};me.naturalLogarithm=me.ln=function(){return Ys(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?AT(t,e):ET(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(Ui+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(ur+"NaN")}for(e=Pt(f),dt=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Er(f.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=go((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(sa(f,o,u+2)).times(.5),Er(o.d).slice(0,u)===(t=Er(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),l==u&&t=="4999"){if(tt(o,n+1,0),o.times(o).eq(f)){r=o;break}}else if(t!="9999")break;u+=4}return dt=!0,tt(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,w=(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=w.length,d<h&&(o=b,b=w,w=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]+w[r]*b[l-r-1]+t,o[l--]=f%Yt|0,t=f/Yt|0;o[l]=(o[l]+t)%Yt|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,dt?tt(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:(Dr(e,0,yo),t===void 0?t=r.rounding:Dr(t,0,8),tt(n,e+Pt(n)+1,t))};me.toExponential=function(e,t){var n,r=this,l=r.constructor;return e===void 0?n=Qi(r,!0):(Dr(e,0,yo),t===void 0?t=l.rounding:Dr(t,0,8),r=tt(new l(r),e+1,t),n=Qi(r,!0,e+1)),n};me.toFixed=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?Qi(l):(Dr(e,0,yo),t===void 0?t=o.rounding:Dr(t,0,8),r=tt(new o(l),e+Pt(l)+1,t),n=Qi(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 tt(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(Un);if(f=new d(f),!f.s){if(e.s<1)throw Error(ur+"Infinity");return f}if(f.eq(Un))return f;if(r=d.precision,e.eq(Un))return tt(f,r);if(t=e.e,n=e.d.length-1,u=t>=n,o=f.s,u){if((n=p<0?-p:p)<=OT){for(l=new d(Un),t=Math.ceil(r/ot+4),dt=!1;n%2&&(l=l.times(f),DO(l.d,t)),n=go(n/2),n!==0;)f=f.times(f),DO(f.d,t);return dt=!0,e.s<0?new d(Un).div(l):tt(l,r)}}else if(o<0)throw Error(ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,dt=!1,l=e.times(Ys(f,r+h)),dt=!0,l=NT(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=Qi(l,n<=o.toExpNeg||n>=o.toExpPos)):(Dr(e,1,yo),t===void 0?t=o.rounding:Dr(t,0,8),l=tt(new o(l),e,t),n=Pt(l),r=Qi(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):(Dr(e,1,yo),t===void 0?t=r.rounding:Dr(t,0,8)),tt(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 Qi(e,t<=n.toExpNeg||t>=n.toExpPos)};function AT(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?tt(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)/Yt|0,d[o]%=Yt;for(n&&(d.unshift(n),++l),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=l,dt?tt(t,y):t}function Dr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ui+e)}function Er(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+=Wa(n)),o+=r;u=e[t],r=u+"",n=ot-r.length,n&&(o+=Wa(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var sa=(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%Yt|0,u=o/Yt|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*Yt+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,w,S,j,_,N,A,C,M,D,T,k,$,Z=r.constructor,V=r.s==l.s?1:-1,re=r.d,P=l.d;if(!r.s)return new Z(r);if(!l.s)throw Error(ur+"Division by zero");for(d=r.e-l.e,k=P.length,D=re.length,w=new Z(V),S=w.d=[],h=0;P[h]==(re[h]||0);)++h;if(P[h]>(re[h]||0)&&--d,o==null?A=o=Z.precision:u?A=o+(Pt(r)-Pt(l))+1:A=o,A<0)return new Z(0);if(A=A/ot+2|0,h=0,k==1)for(p=0,P=P[0],A++;(h<D||p)&&A--;h++)C=p*Yt+(re[h]||0),S[h]=C/P|0,p=C%P|0;else{for(p=Yt/(P[0]+1)|0,p>1&&(P=e(P,p),re=e(re,p),k=P.length,D=re.length),M=k,j=re.slice(0,k),_=j.length;_<k;)j[_++]=0;$=P.slice(),$.unshift(0),T=P[0],P[1]>=Yt/2&&++T;do p=0,f=t(P,j,k,_),f<0?(N=j[0],k!=_&&(N=N*Yt+(j[1]||0)),p=N/T|0,p>1?(p>=Yt&&(p=Yt-1),y=e(P,p),b=y.length,_=j.length,f=t(y,j,b,_),f==1&&(p--,n(y,k<b?$:P,b))):(p==0&&(f=p=1),y=P.slice()),b=y.length,b<_&&y.unshift(0),n(j,y,_),f==-1&&(_=j.length,f=t(P,j,k,_),f<1&&(p++,n(j,k<_?$:P,_))),_=j.length):f===0&&(p++,j=[0]),S[h++]=p,f&&j[0]?j[_++]=re[M]||0:(j=[re[M]],_=1);while((M++<D||j[0]!==void 0)&&A--)}return S[0]||S.shift(),w.e=d,tt(w,u?o+Pt(w)+1:o)}})();function NT(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(k0+Pt(e));if(!e.s)return new p(Un);for(dt=!1,f=y,u=new p(.03125);e.abs().gte(.1);)e=e.times(u),h+=5;for(r=Math.log(Mi(2,h))/Math.LN10*2+5|0,f+=r,n=l=o=new p(Un),p.precision=f;;){if(l=tt(l.times(e),f),n=n.times(++d),u=o.plus(sa(l,n,f)),Er(u.d).slice(0,f)===Er(o.d).slice(0,f)){for(;h--;)o=tt(o.times(o),f);return p.precision=y,t==null?(dt=!0,tt(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 ry(e,t,n){if(t>e.LN10.sd())throw dt=!0,n&&(e.precision=n),Error(ur+"LN10 precision limit exceeded");return tt(new e(e.LN10),t)}function Wa(e){for(var t="";e--;)t+="0";return t}function Ys(e,t){var n,r,l,o,u,f,d,h,p,y=1,b=10,w=e,S=w.d,j=w.constructor,_=j.precision;if(w.s<1)throw Error(ur+(w.s?"NaN":"-Infinity"));if(w.eq(Un))return new j(0);if(t==null?(dt=!1,h=_):h=t,w.eq(10))return t==null&&(dt=!0),ry(j,h);if(h+=b,j.precision=h,n=Er(S),r=n.charAt(0),o=Pt(w),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)w=w.times(e),n=Er(w.d),r=n.charAt(0),y++;o=Pt(w),r>1?(w=new j("0."+n),o++):w=new j(r+"."+n.slice(1))}else return d=ry(j,h+2,_).times(o+""),w=Ys(new j(r+"."+n.slice(1)),h-b).plus(d),j.precision=_,t==null?(dt=!0,tt(w,_)):w;for(f=u=w=sa(w.minus(Un),w.plus(Un),h),p=tt(w.times(w),h),l=3;;){if(u=tt(u.times(p),h),d=f.plus(sa(u,new j(l),h)),Er(d.d).slice(0,h)===Er(f.d).slice(0,h))return f=f.times(2),o!==0&&(f=f.plus(ry(j,h+2,_).times(o+""))),f=sa(f,new j(y),h),j.precision=_,t==null?(dt=!0,tt(f,_)):f;f=d,l+=2}}function MO(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=go(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>rd||e.e<-rd))throw Error(k0+n)}else e.s=0,e.e=0,e.d=[0];return e}function tt(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=Mi(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/Mi(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]=Mi(10,(ot-t%ot)%ot),e.e=go(-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=Mi(10,ot-r),y[p]=l>0?(h/Mi(10,u-l)%Mi(10,l)|0)*o:0),d)for(;;)if(p==0){(y[0]+=o)==Yt&&(y[0]=1,++e.e);break}else{if(y[p]+=o,y[p]!=Yt)break;y[p--]=0,o=1}for(r=y.length;y[--r]===0;)y.pop();if(dt&&(e.e>rd||e.e<-rd))throw Error(k0+Pt(e));return e}function ET(e,t){var n,r,l,o,u,f,d,h,p,y,b=e.constructor,w=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),dt?tt(t,w):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(w/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]=Yt-1;--d[o],d[l]+=Yt}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?tt(t,w):t):new b(0)}function Qi(e,t,n){var r,l=Pt(e),o=Er(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+Wa(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(l<0?"e":"e+")+l):l<0?(o="0."+Wa(-l-1)+o,n&&(r=n-u)>0&&(o+=Wa(r))):l>=u?(o+=Wa(l+1-u),n&&(r=n-l-1)>0&&(o=o+"."+Wa(r))):((r=l+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(l+1===u&&(o+="."),o+=Wa(r))),e.s<0?"-"+o:o}function DO(e,t){if(e.length>t)return e.length=t,!0}function CT(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(Ui+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 MO(u,o.toString())}else if(typeof o!="string")throw Error(Ui+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,U9.test(o))MO(u,o);else throw Error(Ui+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=CT,l.config=l.set=q9,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 q9(e){if(!e||typeof e!="object")throw Error(ur+"Object expected");var t,n,r,l=["precision",1,yo,"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(go(r)===r&&r>=l[t+1]&&r<=l[t+2])this[n]=r;else throw Error(Ui+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ui+n+": "+r);return this}var P0=CT($9);Un=new P0(1);const Ye=P0;var H9=e=>e,TT={},MT=e=>e===TT,kO=e=>function t(){return arguments.length===0||arguments.length===1&&MT(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},DT=(e,t)=>e===1?t:kO(function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];var o=r.filter(u=>u!==TT).length;return o>=e?t(...r):DT(e-o,kO(function(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];var h=r.map(p=>MT(p)?f.shift():p);return t(...h,...f)}))}),F9=e=>DT(e.length,e),hg=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},K9=F9((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Y9=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return H9;var l=n.reverse(),o=l[0],u=l.slice(1);return function(){return u.reduce((f,d)=>d(f),o(...arguments))}};function kT(e){var t;return e===0?t=1:t=Math.floor(new Ye(e).abs().log(10).toNumber())+1,t}function PT(e,t,n){for(var r=new Ye(e),l=0,o=[];r.lt(t)&&l<1e5;)o.push(r.toNumber()),r=r.add(n),l++;return o}var RT=e=>{var[t,n]=e,[r,l]=[t,n];return t>n&&([r,l]=[n,t]),[r,l]},zT=(e,t,n)=>{if(e.lte(0))return new Ye(0);var r=kT(e.toNumber()),l=new Ye(10).pow(r),o=e.div(l),u=r!==1?.05:.1,f=new Ye(Math.ceil(o.div(u).toNumber())).add(n).mul(u),d=f.mul(l);return t?new Ye(d.toNumber()):new Ye(Math.ceil(d.toNumber()))},G9=(e,t,n)=>{var r=new Ye(1),l=new Ye(e);if(!l.isint()&&n){var o=Math.abs(e);o<1?(r=new Ye(10).pow(kT(e)-1),l=new Ye(Math.floor(l.div(r).toNumber())).mul(r)):o>1&&(l=new Ye(Math.floor(e)))}else e===0?l=new Ye(Math.floor((t-1)/2)):n||(l=new Ye(Math.floor(e)));var u=Math.floor((t-1)/2),f=Y9(K9(d=>l.add(new Ye(d-u).mul(r)).toNumber()),hg);return f(0,t)},LT=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 Ye(0),tickMin:new Ye(0),tickMax:new Ye(0)};var u=zT(new Ye(n).sub(t).div(r-1),l,o),f;t<=0&&n>=0?f=new Ye(0):(f=new Ye(t).add(n).div(2),f=f.sub(new Ye(f).mod(u)));var d=Math.ceil(f.sub(t).div(u).toNumber()),h=Math.ceil(new Ye(n).sub(f).div(u).toNumber()),p=d+h+1;return p>r?LT(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 Ye(d).mul(u)),tickMax:f.add(new Ye(h).mul(u))})},V9=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]=RT([n,r]);if(f===-1/0||d===1/0){var h=d===1/0?[f,...hg(0,l-1).map(()=>1/0)]:[...hg(0,l-1).map(()=>-1/0),d];return n>r?h.reverse():h}if(f===d)return G9(f,l,o);var{step:p,tickMin:y,tickMax:b}=LT(f,d,u,o,0),w=PT(y,b.add(new Ye(.1).mul(p)),p);return n>r?w.reverse():w},X9=function(t,n){var[r,l]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[u,f]=RT([r,l]);if(u===-1/0||f===1/0)return[r,l];if(u===f)return[u];var d=Math.max(n,2),h=zT(new Ye(f).sub(u).div(d-1),o,0),p=[...PT(new Ye(u),new Ye(f),h),f];return o===!1&&(p=p.map(y=>Math.round(y))),r>l?p.reverse():p},BT=e=>e.rootProps.maxBarSize,Z9=e=>e.rootProps.barGap,IT=e=>e.rootProps.barCategoryGap,W9=e=>e.rootProps.barSize,hu=e=>e.rootProps.stackOffset,$T=e=>e.rootProps.reverseStackOrder,R0=e=>e.options.chartName,z0=e=>e.rootProps.syncId,UT=e=>e.rootProps.syncMethod,L0=e=>e.options.eventEmitter,Q9=e=>e.rootProps.baseValue,kt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},aa={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},$n={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Jd=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},J9={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:aa.angleAxisId,includeHidden:!1,name:void 0,reversed:aa.reversed,scale:aa.scale,tick:aa.tick,tickCount:void 0,ticks:void 0,type:aa.type,unit:void 0},eU={allowDataOverflow:$n.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:$n.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:$n.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:$n.scale,tick:$n.tick,tickCount:$n.tickCount,ticks:void 0,type:$n.type,unit:void 0},tU={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:aa.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:aa.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:aa.scale,tick:aa.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},nU={allowDataOverflow:$n.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:$n.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:$n.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:$n.scale,tick:$n.tick,tickCount:$n.tickCount,ticks:void 0,type:"category",unit:void 0},B0=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?tU:J9,I0=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?nU:eU,eh=e=>e.polarOptions,$0=K([ba,xa,Bt],BC),qT=K([eh,$0],(e,t)=>{if(e!=null)return sn(e.innerRadius,t,0)}),HT=K([eh,$0],(e,t)=>{if(e!=null)return sn(e.outerRadius,t,t*.8)}),rU=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},FT=K([eh],rU);K([B0,FT],Jd);var KT=K([$0,qT,HT],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});K([I0,KT],Jd);var YT=K([ze,eh,qT,HT,ba,xa],(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:sn(u,l,l/2),cy:sn(f,o,o/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:h,clockWise:!1}}}),ht=(e,t)=>t,mu=(e,t,n)=>n;function th(e){return e==null?void 0:e.id}function GT(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=th(f);h.forEach((y,b)=>{var w=o==null||l?b:String(Qe(y,o,null)),S=Qe(y,f.dataKey,0),j;u.has(w)?j=u.get(w):j={},Object.assign(j,{[p]:S}),u.set(w,j)})}}),Array.from(u.values())}function nh(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var rh=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ah(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function aU(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 $t=e=>{var t=ze(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},bo=e=>e.tooltip.settings.axisId;function PO(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 ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(n),!0).forEach(function(r){iU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iU(e,t,n){return(t=lU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lU(e){var t=oU(e,"string");return typeof t=="symbol"?t:t+""}function oU(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 mg=[0,"auto"],Ft={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},VT=(e,t)=>e.cartesianAxis.xAxis[t],ja=(e,t)=>{var n=VT(e,t);return n??Ft},Kt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:mg,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:au},XT=(e,t)=>e.cartesianAxis.yAxis[t],_a=(e,t)=>{var n=XT(e,t);return n??Kt},sU={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:""},U0=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??sU},pt=(e,t,n)=>{switch(t){case"xAxis":return ja(e,n);case"yAxis":return _a(e,n);case"zAxis":return U0(e,n);case"angleAxis":return B0(e,n);case"radiusAxis":return I0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},uU=(e,t,n)=>{switch(t){case"xAxis":return ja(e,n);case"yAxis":return _a(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},pu=(e,t,n)=>{switch(t){case"xAxis":return ja(e,n);case"yAxis":return _a(e,n);case"angleAxis":return B0(e,n);case"radiusAxis":return I0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},ZT=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function q0(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 ih=e=>e.graphicalItems.cartesianItems,cU=K([ht,mu],q0),H0=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),vu=K([ih,pt,cU],H0,{memoizeOptions:{resultEqualityCheck:ah}}),WT=K([vu],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(nh)),QT=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),fU=K([vu],QT),F0=e=>e.map(t=>t.data).filter(Boolean).flat(1),dU=K([vu],F0,{memoizeOptions:{resultEqualityCheck:ah}}),K0=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:l}=t;return e.length>0?e:n.slice(r,l+1)},Y0=K([dU,ST],K0),G0=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Qe(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(l=>({value:Qe(l,r)}))):e.map(r=>({value:r})),lh=K([Y0,pt,vu],G0);function JT(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function pf(e){if(Tr(e)||e instanceof Date){var t=Number(e);if(nt(t))return t}}function RO(e){if(Array.isArray(e)){var t=[pf(e[0]),pf(e[1])];return ri(t)?t:void 0}var n=pf(e);if(n!=null)return[n,n]}function pa(e){return e.map(pf).filter(az)}function hU(e,t,n){return!n||typeof t!="number"||or(t)?[]:n.length?pa(n.flatMap(r=>{var l=Qe(e,r.dataKey),o,u;if(Array.isArray(l)?[o,u]=l:o=u=l,!(!nt(o)||!nt(u)))return[t-o,t+u]})):[]}var Ut=e=>{var t=$t(e),n=bo(e);return pu(e,t,n)},yu=K([Ut],e=>e==null?void 0:e.dataKey),mU=K([WT,ST,Ut],GT),e5=(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(th);return[f,{stackedData:DL(e,p,n),graphicalItems:h}]}))},id=K([mU,WT,hu,$T],e5),t5=(e,t,n,r)=>{var{dataStartIndex:l,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var u=zL(e,l,o);if(!(u!=null&&u[0]===0&&u[1]===0))return u}},pU=K([pt],e=>e.allowDataOverflow),V0=e=>{var t;if(e==null||!("domain"in e))return mg;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=pa(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:mg},X0=K([pt],V0),Z0=K([X0,pU],_T),vU=K([id,Sa,ht,Z0],t5,{memoizeOptions:{resultEqualityCheck:rh}}),oh=e=>e.errorBars,yU=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>JT(n,r)),ld=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]}},W0=(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(N=>JT(l,N)),b=Qe(f,(p=t.dataKey)!==null&&p!==void 0?p:d.dataKey),w=hU(f,b,y);if(w.length>=2){var S=Math.min(...w),j=Math.max(...w);(o==null||S<o)&&(o=S),(u==null||j>u)&&(u=j)}var _=RO(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=RO(Qe(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]))}),nt(o)&&nt(u))return[o,u]},gU=K([Y0,pt,fU,oh,ht],W0,{memoizeOptions:{resultEqualityCheck:rh}});function bU(e){var{value:t}=e;if(Tr(t)||t instanceof Date)return t}var xU=(e,t,n)=>{var r=e.map(bU).filter(l=>l!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&vE(r))?qC(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},n5=e=>e.referenceElements.dots,xo=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),wU=K([n5,ht,mu],xo),r5=e=>e.referenceElements.areas,SU=K([r5,ht,mu],xo),a5=e=>e.referenceElements.lines,jU=K([a5,ht,mu],xo),i5=(e,t)=>{if(e!=null){var n=pa(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},_U=K(wU,ht,i5),l5=(e,t)=>{if(e!=null){var n=pa(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)]}},OU=K([SU,ht],l5);function AU(e){var t;if(e.x!=null)return pa([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:pa(n)}function NU(e){var t;if(e.y!=null)return pa([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:pa(n)}var o5=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?AU(r):NU(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},EU=K([jU,ht],o5),CU=K(_U,EU,OU,(e,t,n)=>ld(e,n,t)),Q0=(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?ld(r,o,l):ld(o,l);return I9(t,h,e.allowDataOverflow)},TU=K([pt,X0,Z0,vU,gU,CU,ze,ht],Q0,{memoizeOptions:{resultEqualityCheck:rh}}),MU=[0,1],J0=(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=ga(t,o);if(h&&f==null){var p;return qC(0,(p=n==null?void 0:n.length)!==null&&p!==void 0?p:0)}return d==="category"?xU(r,e,h):l==="expand"?MU:u}},eb=K([pt,ze,Y0,lh,hu,ht,TU],J0),s5=(e,t,n,r,l)=>{if(e!=null){var{scale:o,type:u}=e;if(o==="auto")return t==="radial"&&l==="radiusAxis"?"band":t==="radial"&&l==="angleAxis"?"linear":u==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":u==="category"?"band":"linear";if(typeof o=="string"){var f="scale".concat(Js(o));return f in Ms?f:"point"}}},wo=K([pt,ze,ZT,R0,ht],s5);function DU(e){if(e!=null){if(e in Ms)return Ms[e]();var t="scale".concat(Js(e));if(t in Ms)return Ms[t]()}}function tb(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var l=DU(t);if(l!=null){var o=l.domain(n).range(r);return NL(o),o}}}var nb=(e,t,n)=>{var r=V0(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&ri(e))return V9(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&ri(e))return X9(e,t.tickCount,t.allowDecimals)}},rb=K([eb,pu,wo],nb),ab=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&ri(t)&&Array.isArray(n)&&n.length>0){var l=t[0],o=n[0],u=t[1],f=n[n.length-1];return[Math.min(l,o),Math.max(u,f)]}return t},kU=K([pt,eb,rb,ht],ab),PU=K(lh,pt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(pa(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}}),u5=K(PU,ze,IT,Bt,(e,t,n,r,l)=>l,(e,t,n,r,l)=>{if(!nt(e))return 0;var o=t==="vertical"?r.height:r.width;if(l==="gap")return e*o/2;if(l==="no-gap"){var u=sn(n,e*o),f=e*o/2;return f-u-(f-u)/o*u}return 0}),RU=(e,t,n)=>{var r=ja(e,t);return r==null||typeof r.padding!="string"?0:u5(e,"xAxis",t,n,r.padding)},zU=(e,t,n)=>{var r=_a(e,t);return r==null||typeof r.padding!="string"?0:u5(e,"yAxis",t,n,r.padding)},LU=K(ja,RU,(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}}),BU=K(_a,zU,(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}}),IU=K([Bt,LU,$d,Id,(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]}),$U=K([Bt,ze,BU,$d,Id,(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]}),gu=(e,t,n,r)=>{var l;switch(t){case"xAxis":return IU(e,n,r);case"yAxis":return $U(e,n,r);case"zAxis":return(l=U0(e,n))===null||l===void 0?void 0:l.range;case"angleAxis":return FT(e);case"radiusAxis":return KT(e,n);default:return}},c5=K([pt,gu],Jd),sh=K([pt,wo,kU,c5],tb);K([vu,oh,ht],yU);function f5(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var uh=(e,t)=>t,ch=(e,t,n)=>n,UU=K(Ld,uh,ch,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(f5)),qU=K(Bd,uh,ch,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(f5)),d5=(e,t)=>({width:e.width,height:t.height}),HU=(e,t)=>{var n=typeof t.width=="number"?t.width:au;return{width:n,height:e.height}},h5=K(Bt,ja,d5),FU=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},KU=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},YU=K(xa,Bt,UU,uh,ch,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=d5(t,f);u==null&&(u=FU(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}),GU=K(ba,Bt,qU,uh,ch,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=HU(t,f);u==null&&(u=KU(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}),VU=(e,t)=>{var n=ja(e,t);if(n!=null)return YU(e,n.orientation,n.mirror)},XU=K([Bt,ja,VU,(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}}}),ZU=(e,t)=>{var n=_a(e,t);if(n!=null)return GU(e,n.orientation,n.mirror)},WU=K([Bt,_a,ZU,(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}}}),m5=K(Bt,_a,(e,t)=>{var n=typeof t.width=="number"?t.width:au;return{width:n,height:e.height}}),zO=(e,t,n)=>{switch(t){case"xAxis":return h5(e,n).width;case"yAxis":return m5(e,n).height;default:return}},p5=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:l,type:o,dataKey:u}=n,f=ga(e,r),d=t.map(h=>h.value);if(u&&f&&o==="category"&&l&&vE(d))return d}},ib=K([ze,lh,pt,ht],p5),v5=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:l,scale:o}=n,u=ga(e,r);if(u&&(l==="number"||o!=="auto"))return t.map(f=>f.value)}},lb=K([ze,lh,pu,ht],v5),LO=K([ze,uU,wo,sh,ib,lb,gu,rb,ht],(e,t,n,r,l,o,u,f,d)=>{if(t!=null){var h=ga(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}}}),QU=(e,t,n,r,l,o,u,f,d)=>{if(!(t==null||r==null)){var h=ga(e,d),{type:p,ticks:y,tickCount:b}=t,w=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,S=p==="category"&&r.bandwidth?r.bandwidth()/w:0;S=d==="angleAxis"&&o!=null&&o.length>=2?Gt(o[0]-o[1])*2*S:S;var j=y||l;if(j){var _=j.map((N,A)=>{var C=u?u.indexOf(N):N;return{index:A,coordinate:r(C)+S,value:N,offset:S}});return _.filter(N=>nt(N.coordinate))}return h&&f?f.map((N,A)=>({coordinate:r(N)+S,value:N,index:A,offset:S})).filter(N=>nt(N.coordinate)):r.ticks?r.ticks(b).map(N=>({coordinate:r(N)+S,value:N,offset:S})):r.domain().map((N,A)=>({coordinate:r(N)+S,value:u?u[N]:N,index:A,offset:S}))}},y5=K([ze,pu,wo,sh,rb,gu,ib,lb,ht],QU),JU=(e,t,n,r,l,o,u)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var f=ga(e,u),{tickCount:d}=t,h=0;return h=u==="angleAxis"&&(r==null?void 0:r.length)>=2?Gt(r[0]-r[1])*2*h:h,f&&o?o.map((p,y)=>({coordinate:n(p)+h,value:p,index:y,offset:h})):n.ticks?n.ticks(d).map(p=>({coordinate:n(p)+h,value:p,offset:h})):n.domain().map((p,y)=>({coordinate:n(p)+h,value:l?l[p]:p,index:y,offset:h}))}},ai=K([ze,pu,sh,gu,ib,lb,ht],JU),ii=K(pt,sh,(e,t)=>{if(!(e==null||t==null))return ad(ad({},e),{},{scale:t})}),eq=K([pt,wo,eb,c5],tb);K((e,t,n)=>U0(e,n),eq,(e,t)=>{if(!(e==null||t==null))return ad(ad({},e),{},{scale:t})});var tq=K([ze,Ld,Bd],(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}}),g5=e=>e.options.defaultTooltipEventType,b5=e=>e.options.validateTooltipEventTypes;function x5(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function ob(e,t){var n=g5(e),r=b5(e);return x5(t,n,r)}function nq(e){return ye(t=>ob(t,e))}var w5=(e,t)=>{var n,r=Number(t);if(!(or(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},rq=e=>e.tooltip.settings,Ja={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},aq={itemInteraction:{click:Ja,hover:Ja},axisInteraction:{click:Ja,hover:Ja},keyboardInteraction:Ja,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}},S5=Nn({name:"tooltip",initialState:aq,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ft()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,l=gr(e).tooltipItemPayloads.indexOf(n);l>-1&&(e.tooltipItemPayloads[l]=r)},prepare:ft()},removeTooltipEntrySettings:{reducer(e,t){var n=gr(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:iq,replaceTooltipEntrySettings:lq,removeTooltipEntrySettings:oq,setTooltipSettingsState:sq,setActiveMouseOverItemIndex:j5,mouseLeaveItem:uq,mouseLeaveChart:_5,setActiveClickItemIndex:cq,setMouseOverAxisIndex:O5,setMouseClickAxisIndex:fq,setSyncInteraction:pg,setKeyboardInteraction:vg}=S5.actions,dq=S5.reducer;function BO(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?BO(Object(n),!0).forEach(function(r){hq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hq(e,t,n){return(t=mq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=pq(e,"string");return typeof t=="symbol"?t:t+""}function pq(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 vq(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function yq(e){return e.index!=null}var A5=(e,t,n,r)=>{if(t==null)return Ja;var l=vq(e,t,n);if(l==null)return Ja;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(yq(l)){if(o)return ef(ef({},l),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return ef(ef({},Ja),{},{coordinate:l.coordinate})};function gq(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 bq(e,t){var n=gq(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 xq(e,t,n){if(n==null||t==null)return!0;var r=Qe(e,t);return r==null||!ri(n)?!0:bq(r,n)}var sb=(e,t,n,r)=>{var l=e==null?void 0:e.index;if(l==null)return null;var o=Number(l);if(!nt(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||xq(h,n,r)?String(d):null},N5=(e,t,n,r,l,o,u,f)=>{if(!(o==null||f==null)){var d=u[0],h=d==null?void 0:f(d.positions,o);if(h!=null)return h;var p=l==null?void 0:l[Number(o)];if(p)switch(n){case"horizontal":return{x:p.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:p.coordinate}}}},E5=(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})},bu=e=>e.options.tooltipPayloadSearcher,So=e=>e.tooltip;function IO(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 $O(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(n),!0).forEach(function(r){wq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(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){return e??t}var C5=(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,w)=>{var S,{dataDefinedOnItem:j,settings:_}=w,N=_q(j,f),A=Array.isArray(N)?uC(N,h,p):N,C=(S=_==null?void 0:_.dataKey)!==null&&S!==void 0?S:r,M=_==null?void 0:_.nameKey,D;if(r&&Array.isArray(A)&&!Array.isArray(A[0])&&u==="axis"?D=yE(A,r,l):D=o(A,t,d,M),Array.isArray(D))D.forEach(k=>{var $=$O($O({},_),{},{name:k.name,unit:k.unit,color:void 0,fill:void 0});b.push(Hj({tooltipEntrySettings:$,dataKey:k.dataKey,payload:k.payload,value:Qe(k.payload,k.dataKey),name:k.name}))});else{var T;b.push(Hj({tooltipEntrySettings:_,dataKey:C,payload:D,value:Qe(D,C),name:(T=Qe(D,M))!==null&&T!==void 0?T:_==null?void 0:_.name}))}return b},y)}},ub=K([Ut,ze,ZT,R0,$t],s5),Oq=K([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Aq=K([$t,bo],q0),jo=K([Oq,Ut,Aq],H0,{memoizeOptions:{resultEqualityCheck:ah}}),Nq=K([jo],e=>e.filter(nh)),Eq=K([jo],F0,{memoizeOptions:{resultEqualityCheck:ah}}),_o=K([Eq,Sa],K0),Cq=K([Nq,Sa,Ut],GT),cb=K([_o,Ut,jo],G0),T5=K([Ut],V0),Tq=K([Ut],e=>e.allowDataOverflow),M5=K([T5,Tq],_T),Mq=K([jo],e=>e.filter(nh)),Dq=K([Cq,Mq,hu,$T],e5),kq=K([Dq,Sa,$t,M5],t5),Pq=K([jo],QT),Rq=K([_o,Ut,Pq,oh,$t],W0,{memoizeOptions:{resultEqualityCheck:rh}}),zq=K([n5,$t,bo],xo),Lq=K([zq,$t],i5),Bq=K([r5,$t,bo],xo),Iq=K([Bq,$t],l5),$q=K([a5,$t,bo],xo),Uq=K([$q,$t],o5),qq=K([Lq,Uq,Iq],ld),Hq=K([Ut,T5,M5,kq,Rq,qq,ze,$t],Q0),xu=K([Ut,ze,_o,cb,hu,$t,Hq],J0),Fq=K([xu,Ut,ub],nb),Kq=K([Ut,xu,Fq,$t],ab),D5=e=>{var t=$t(e),n=bo(e),r=!1;return gu(e,t,n,r)},k5=K([Ut,D5],Jd),P5=K([Ut,ub,Kq,k5],tb),Yq=K([ze,cb,Ut,$t],p5),Gq=K([ze,cb,Ut,$t],v5),Vq=(e,t,n,r,l,o,u,f)=>{if(t){var{type:d}=t,h=ga(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?Gt(l[0]-l[1])*2*y:y,h&&u?u.map((b,w)=>({coordinate:r(b)+y,value:b,index:w,offset:y})):r.domain().map((b,w)=>({coordinate:r(b)+y,value:o?o[b]:b,index:w,offset:y}))}}},Oa=K([ze,Ut,ub,P5,D5,Yq,Gq,$t],Vq),fb=K([g5,b5,rq],(e,t,n)=>x5(n.shared,e,t)),R5=e=>e.tooltip.settings.trigger,db=e=>e.tooltip.settings.defaultIndex,wu=K([So,fb,R5,db],A5),li=K([wu,_o,yu,xu],sb),z5=K([Oa,li],w5),hb=K([wu],e=>{if(e)return e.dataKey}),Xq=K([wu],e=>{if(e)return e.graphicalItemId}),L5=K([So,fb,R5,db],E5),Zq=K([ba,xa,ze,Bt,Oa,db,L5,bu],N5),Wq=K([wu,Zq],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Qq=K([wu],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Jq=K([L5,li,Sa,yu,z5,bu,fb],C5),eH=K([Jq],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});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 qO(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){tH(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 tH(e,t,n){return(t=nH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nH(e){var t=rH(e,"string");return typeof t=="symbol"?t:t+""}function rH(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 aH=()=>ye(Ut),iH=()=>{var e=aH(),t=ye(Oa),n=ye(P5);return ao(!e||!n?void 0:qO(qO({},e),{},{scale:n}),t)};function HO(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){lH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lH(e,t,n){return(t=oH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oH(e){var t=sH(e,"string");return typeof t=="symbol"?t:t+""}function sH(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 uH=(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}},cH=(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 Fl(Fl(Fl({},r),Dt(r.cx,r.cy,u,o)),{},{angle:o,radius:u})}var f=l.coordinate,{angle:d}=r;return Fl(Fl(Fl({},r),Dt(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 fH(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 B5=(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,w=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,S=(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(!(w==null||S==null||j==null))if(Gt(S-w)!==Gt(j-S)){var N=[];if(Gt(j-S)===Gt(l[1]-l[0])){_=j;var A=S+l[1]-l[0];N[0]=Math.min(A,(A+w)/2),N[1]=Math.max(A,(A+w)/2)}else{_=w;var C=j+l[1]-l[0];N[0]=Math.min(S,(C+S)/2),N[1]=Math.max(S,(C+S)/2)}var M=[Math.min(S,(_+S)/2),Math.max(S,(_+S)/2)];if(e>M[0]&&e<=M[1]||e>=N[0]&&e<=N[1]){var D;return(D=n[f])===null||D===void 0?void 0:D.index}}else{var T=Math.min(w,j),k=Math.max(w,j);if(e>(T+S)/2&&e<=(k+S)/2){var $;return($=n[f])===null||$===void 0?void 0:$.index}}}else if(t)for(var Z=0;Z<u;Z++){var V=t[Z];if(V!=null){var re=t[Z+1],P=t[Z-1];if(Z===0&&re!=null&&e<=(V.coordinate+re.coordinate)/2||Z===u-1&&P!=null&&e>(V.coordinate+P.coordinate)/2||Z>0&&Z<u-1&&P!=null&&re!=null&&e>(V.coordinate+P.coordinate)/2&&e<=(V.coordinate+re.coordinate)/2)return V.index}}return-1},I5=()=>ye(R0),mb=(e,t)=>t,$5=(e,t,n)=>n,pb=(e,t,n,r)=>r,dH=K(Oa,e=>Nd(e,t=>t.coordinate)),vb=K([So,mb,$5,pb],A5),yb=K([vb,_o,yu,xu],sb),hH=(e,t,n)=>{if(t!=null){var r=So(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},U5=K([So,mb,$5,pb],E5),od=K([ba,xa,ze,Bt,Oa,pb,U5,bu],N5),mH=K([vb,od],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),q5=K([Oa,yb],w5),pH=K([U5,yb,Sa,yu,q5,bu,mb],C5),vH=K([vb,yb],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),yH=(e,t,n,r,l,o,u)=>{if(!(!e||!n||!r||!l)&&fH(e,u)){var f=LL(e,t),d=B5(f,o,l,n,r),h=uH(t,l,d,e);return{activeIndex:String(d),activeCoordinate:h}}},gH=(e,t,n,r,l,o,u)=>{if(!(!e||!r||!l||!o||!n)){var f=tI(e,n);if(f){var d=BL(f,t),h=B5(d,u,o,r,l),p=cH(t,o,h,f);return{activeIndex:String(h),activeCoordinate:p}}}},bH=(e,t,n,r,l,o,u,f)=>{if(!(!e||!t||!r||!l||!o))return t==="horizontal"||t==="vertical"?yH(e,t,r,l,o,u,f):gH(e,t,n,r,l,o,u)},xH=K(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}}),wH=K(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(kt)),n=Array.from(new Set(t));return n.sort((r,l)=>r-l)},{memoizeOptions:{resultEqualityCheck:aU}});function FO(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 KO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(r){SH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SH(e,t,n){return(t=jH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jH(e){var t=_H(e,"string");return typeof t=="symbol"?t:t+""}function _H(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 OH={},AH={zIndexMap:Object.values(kt).reduce((e,t)=>KO(KO({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),OH)},NH=new Set(Object.values(kt));function EH(e){return NH.has(e)}var H5=Nn({name:"zIndex",initialState:AH,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&&!EH(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:CH,unregisterZIndexPortal:TH,registerZIndexPortalElement:MH,unregisterZIndexPortalElement:DH}=H5.actions,kH=H5.reducer;function En(e){var{zIndex:t,children:n}=e,r=v7(),l=r&&t!==void 0&&t!==0,o=un(),u=at();x.useLayoutEffect(()=>l?(u(CH({zIndex:t})),()=>{u(TH({zIndex:t}))}):eu,[u,t,l]);var f=ye(d=>xH(d,t,o));return l?f?dn.createPortal(n,f):null:n}function yg(){return yg=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},yg.apply(null,arguments)}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 tf(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){PH(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 PH(e,t,n){return(t=RH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RH(e){var t=zH(e,"string");return typeof t=="symbol"?t:t+""}function zH(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 LH(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return x.isValidElement(t)?x.cloneElement(t,r):x.createElement(n,r)}function BH(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,w=l;if(!d||!y||p!=="ScatterChart"&&h!=="axis")return null;var S,j,_;if(p==="ScatterChart")S=y,j=pB,_=kt.cursorLine;else if(p==="BarChart")S=vB(f,y,o,u),j=LC,_=kt.cursorRectangle;else if(f==="radial"&&bE(y)){var{cx:N,cy:A,radius:C,startAngle:M,endAngle:D}=IC(y);S={cx:N,cy:A,startAngle:M,endAngle:D,innerRadius:C,outerRadius:C},j=UC,_=kt.cursorLine}else S={points:iI(f,y,o)},j=eo,_=kt.cursorLine;var T=typeof d=="object"&&"className"in d?d.className:void 0,k=tf(tf(tf(tf({stroke:"#ccc",pointerEvents:"none"},o),S),Yi(d)),{},{payload:b,payloadIndex:w,className:$e("recharts-tooltip-cursor",T)});return x.createElement(En,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:_},x.createElement(LH,{cursor:d,cursorComp:j,cursorProps:k}))}function IH(e){var t=iH(),n=xC(),r=tl(),l=I5();return t==null||n==null||r==null||l==null?null:x.createElement(BH,yg({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:l}))}var F5=x.createContext(null),$H=()=>x.useContext(F5),ay={exports:{}},GO;function UH(){return GO||(GO=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 w=new l(p,y||d,b),S=n?n+h:h;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],w]:d._events[S].push(w):(d._events[S]=w,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,w=y.length,S=new Array(w);b<w;b++)S[b]=y[b].fn;return S},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,w,S){var j=n?n+h:h;if(!this._events[j])return!1;var _=this._events[j],N=arguments.length,A,C;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),N){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,w),!0;case 6:return _.fn.call(_.context,p,y,b,w,S),!0}for(C=1,A=new Array(N-1);C<N;C++)A[C-1]=arguments[C];_.fn.apply(_.context,A)}else{var M=_.length,D;for(C=0;C<M;C++)switch(_[C].once&&this.removeListener(h,_[C].fn,void 0,!0),N){case 1:_[C].fn.call(_[C].context);break;case 2:_[C].fn.call(_[C].context,p);break;case 3:_[C].fn.call(_[C].context,p,y);break;case 4:_[C].fn.call(_[C].context,p,y,b);break;default:if(!A)for(D=1,A=new Array(N-1);D<N;D++)A[D-1]=arguments[D];_[C].fn.apply(_[C].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 w=n?n+h:h;if(!this._events[w])return this;if(!p)return u(this,w),this;var S=this._events[w];if(S.fn)S.fn===p&&(!b||S.once)&&(!y||S.context===y)&&u(this,w);else{for(var j=0,_=[],N=S.length;j<N;j++)(S[j].fn!==p||b&&!S[j].once||y&&S[j].context!==y)&&_.push(S[j]);_.length?this._events[w]=_.length===1?_[0]:_:u(this,w)}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})(ay)),ay.exports}var qH=UH();const HH=kr(qH);var Gs=new HH,gg="recharts.syncEvent.tooltip",VO="recharts.syncEvent.brush";function gb(e,t){if(t){var n=Number.parseInt(t,10);if(!or(n))return e==null?void 0:e[n]}}var FH={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},K5=Nn({name:"options",initialState:FH,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),KH=K5.reducer,{createEventEmitter:YH}=K5.actions;function GH(e){return e.tooltip.syncInteraction}var VH={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Y5=Nn({name:"chartData",initialState:VH,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:XO,setDataStartEndIndexes:XH,setComputedData:JW}=Y5.actions,ZH=Y5.reducer,WH=["x","y"];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 Kl(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){QH(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 QH(e,t,n){return(t=JH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JH(e){var t=eF(e,"string");return typeof t=="symbol"?t:t+""}function eF(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 tF(e,t){if(e==null)return{};var n,r,l=nF(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 nF(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 rF(){var e=ye(z0),t=ye(L0),n=at(),r=ye(UT),l=ye(Oa),o=tl(),u=Ud(),f=ye(d=>d.rootProps.className);x.useEffect(()=>{if(e==null)return eu;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 w=p.payload.coordinate,{x:S,y:j}=w,_=tF(w,WH),{x:N,y:A,width:C,height:M}=p.payload.sourceViewBox,D=Kl(Kl({},_),{},{x:u.x+(C?(S-N)/C:0)*u.width,y:u.y+(M?(j-A)/M:0)*u.height});n(Kl(Kl({},p),{},{payload:Kl(Kl({},p.payload),{},{coordinate:D})}))}else n(p);return}if(l!=null){var T;if(typeof r=="function"){var k={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},$=r(l,k);T=l[$]}else r==="value"&&(T=l.find(B=>String(B.value)===p.payload.label));var{coordinate:Z}=p.payload;if(T==null||p.payload.active===!1||Z==null||u==null){n(pg({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:V,y:re}=Z,P=Math.min(V,u.x+u.width),ue=Math.min(re,u.y+u.height),U={x:o==="horizontal"?T.coordinate:P,y:o==="horizontal"?ue:T.coordinate},ne=pg({active:p.payload.active,coordinate:U,dataKey:p.payload.dataKey,index:String(T.index),label:p.payload.label,sourceViewBox:p.payload.sourceViewBox,graphicalItemId:p.payload.graphicalItemId});n(ne)}}};return Gs.on(gg,d),()=>{Gs.off(gg,d)}},[f,n,t,e,r,l,o,u])}function aF(){var e=ye(z0),t=ye(L0),n=at();x.useEffect(()=>{if(e==null)return eu;var r=(l,o,u)=>{t!==u&&e===l&&n(XH(o))};return Gs.on(VO,r),()=>{Gs.off(VO,r)}},[n,t,e])}function iF(){var e=at();x.useEffect(()=>{e(YH())},[e]),rF(),aF()}function lF(e,t,n,r,l,o){var u=ye(w=>hH(w,e,t)),f=ye(L0),d=ye(z0),h=ye(UT),p=ye(GH),y=p==null?void 0:p.active,b=Ud();x.useEffect(()=>{if(!y&&d!=null&&f!=null){var w=pg({active:o,coordinate:n,dataKey:u,index:l,label:typeof r=="number"?String(r):r,sourceViewBox:b,graphicalItemId:void 0});Gs.emit(gg,d,w,f)}},[y,n,u,l,r,f,d,h,o,b])}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){oF(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 oF(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=uF(e,"string");return typeof t=="symbol"?t:t+""}function uF(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 cF(e){return e.dataKey}function fF(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(V7,t)}var JO=[],dF={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 iy(e){var t,n,r=Rt(e,dF),{active:l,allowEscapeViewBox:o,animationDuration:u,animationEasing:f,content:d,filterNull:h,isAnimationActive:p,offset:y,payloadUniqBy:b,position:w,reverseDirection:S,useTranslate3d:j,wrapperStyle:_,cursor:N,shared:A,trigger:C,defaultIndex:M,portal:D,axisId:T}=r,k=at(),$=typeof M=="number"?String(M):M;x.useEffect(()=>{k(sq({shared:A,trigger:C,axisId:T,active:l,defaultIndex:$}))},[k,A,C,T,l,$]);var Z=Ud(),V=DC(),re=nq(A),{activeIndex:P,isActive:ue}=(t=ye(be=>vH(be,re,C,$)))!==null&&t!==void 0?t:{},U=ye(be=>pH(be,re,C,$)),ne=ye(be=>q5(be,re,C,$)),B=ye(be=>mH(be,re,C,$)),Q=U,ie=$H(),fe=(n=l??ue)!==null&&n!==void 0?n:!1,[de,R]=kE([Q,fe]),G=re==="axis"?ne:void 0;lF(re,C,B,G,P,fe);var oe=D??ie;if(oe==null||Z==null||re==null)return null;var ce=Q??JO;fe||(ce=JO),h&&ce.length&&(ce=EE(ce.filter(be=>be.value!=null&&(be.hide!==!0||r.includeHidden)),b,cF));var pe=ce.length>0,xe=x.createElement(tB,{allowEscapeViewBox:o,animationDuration:u,animationEasing:f,isAnimationActive:p,active:fe,coordinate:B,hasPayload:pe,offset:y,position:w,reverseDirection:S,useTranslate3d:j,viewBox:Z,wrapperStyle:_,lastBoundingBox:de,innerRef:R,hasPortalFromProps:!!D},fF(d,QO(QO({},r),{},{payload:ce,label:G,active:fe,activeIndex:P,coordinate:B,accessibilityLayer:V})));return x.createElement(x.Fragment,null,dn.createPortal(xe,oe),fe&&x.createElement(IH,{cursor:N,tooltipEventType:re,coordinate:B,payload:ce,index:P}))}var qi=e=>null;qi.displayName="Cell";function hF(e,t,n){return(t=mF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mF(e){var t=pF(e,"string");return typeof t=="symbol"?t:t+""}function pF(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 vF{constructor(t){hF(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 eA(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 yF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){gF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gF(e,t,n){return(t=bF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e){var t=xF(e,"string");return typeof t=="symbol"?t:t+""}function xF(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 wF={cacheSize:2e3,enableCache:!0},G5=yF({},wF),tA=new vF(G5.cacheSize),SF={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nA="recharts_measurement_span";function jF(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 rA=(e,t)=>{try{var n=document.getElementById(nA);n||(n=document.createElement("span"),n.setAttribute("id",nA),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,SF,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Ds=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||lu.isSsr)return{width:0,height:0};if(!G5.enableCache)return rA(t,n);var r=jF(t,n),l=tA.get(r);if(l)return l;var o=rA(t,n);return tA.set(r,o),o},V5;function _F(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=AF(e,"string");return typeof t=="symbol"?t:t+""}function AF(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 aA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,NF=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,EF=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},TF=["cm","mm","pt","pc","in","Q","px"];function MF(e){return TF.includes(e)}var Zl="NaN";function DF(e,t){return e*CF[t]}class tn{static parse(t){var n,[,r,l]=(n=EF.exec(t))!==null&&n!==void 0?n:[];return r==null?tn.NaN:new tn(parseFloat(r),l??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,or(t)&&(this.unit=""),n!==""&&!NF.test(n)&&(this.num=NaN,this.unit=""),MF(n)&&(this.num=DF(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new tn(NaN,""):new tn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new tn(NaN,""):new tn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new tn(NaN,""):new tn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new tn(NaN,""):new tn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}V5=tn;_F(tn,"NaN",new V5(NaN,""));function X5(e){if(e==null||e.includes(Zl))return Zl;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,l,o]=(n=aA.exec(t))!==null&&n!==void 0?n:[],u=tn.parse(r??""),f=tn.parse(o??""),d=l==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return Zl;t=t.replace(aA,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,p,y,b]=(h=iA.exec(t))!==null&&h!==void 0?h:[],w=tn.parse(p??""),S=tn.parse(b??""),j=y==="+"?w.add(S):w.subtract(S);if(j.isNaN())return Zl;t=t.replace(iA,j.toString())}return t}var lA=/\(([^()]*)\)/;function kF(e){for(var t=e,n;(n=lA.exec(t))!=null;){var[,r]=n;t=t.replace(lA,X5(r))}return t}function PF(e){var t=e.replace(/\s+/g,"");return t=kF(t),t=X5(t),t}function RF(e){try{return PF(e)}catch{return Zl}}function ly(e){var t=RF(e.slice(5,-1));return t===Zl?"":t}var zF=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],LF=["dx","dy","angle","className","breakAll"];function bg(){return bg=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},bg.apply(null,arguments)}function oA(e,t){if(e==null)return{};var n,r,l=BF(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 BF(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 Z5=/[ \f\n\r\t\v\u2028\u2029]+/,W5=e=>{var{children:t,breakAll:n,style:r}=e;try{var l=[];mt(t)||(n?l=t.toString().split(""):l=t.toString().split(Z5));var o=l.map(f=>({word:f,width:Ds(f,r).width})),u=n?0:Ds(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}};function IF(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var Q5=(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},[]),J5=e=>e.reduce((t,n)=>t.width>n.width?t:n),$F="…",sA=(e,t,n,r,l,o,u,f)=>{var d=e.slice(0,t),h=W5({breakAll:n,style:r,children:d+$F});if(!h)return[!1,[]];var p=Q5(h.wordsWithComputedWidth,o,u,f),y=p.length>l||J5(p).width>Number(o);return[y,p]},UF=(e,t,n,r,l)=>{var{maxLines:o,children:u,style:f,breakAll:d}=e,h=he(o),p=String(u),y=Q5(t,r,n,l);if(!h||l)return y;var b=y.length>o||J5(y).width>Number(r);if(!b)return y;for(var w=0,S=p.length-1,j=0,_;w<=S&&j<=p.length-1;){var N=Math.floor((w+S)/2),A=N-1,[C,M]=sA(p,A,d,f,o,r,n,l),[D]=sA(p,N,d,f,o,r,n,l);if(!C&&!D&&(w=N+1),C&&D&&(S=N-1),!C&&D){_=M;break}j++}return _||y},uA=e=>{var t=mt(e)?[]:e.toString().split(Z5);return[{words:t,width:void 0}]},qF=e=>{var{width:t,scaleToFit:n,children:r,style:l,breakAll:o,maxLines:u}=e;if((t||n)&&!lu.isSsr){var f,d,h=W5({breakAll:o,children:r,style:l});if(h){var{wordsWithComputedWidth:p,spaceWidth:y}=h;f=p,d=y}else return uA(r);return UF({breakAll:o,children:r,maxLines:u,style:l},f,d,t,!!n)}return uA(r)},eM="#808080",HF={angle:0,breakAll:!1,capHeight:"0.71em",fill:eM,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},fh=x.forwardRef((e,t)=>{var n=Rt(e,HF),{x:r,y:l,lineHeight:o,capHeight:u,fill:f,scaleToFit:d,textAnchor:h,verticalAnchor:p}=n,y=oA(n,zF),b=x.useMemo(()=>qF({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:w,dy:S,angle:j,className:_,breakAll:N}=y,A=oA(y,LF);if(!Tr(r)||!Tr(l)||b.length===0)return null;var C=Number(r)+(he(w)?w:0),M=Number(l)+(he(S)?S:0);if(!nt(C)||!nt(M))return null;var D;switch(p){case"start":D=ly("calc(".concat(u,")"));break;case"middle":D=ly("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:D=ly("calc(".concat(b.length-1," * -").concat(o,")"));break}var T=[];if(d){var k=b[0].width,{width:$}=y;T.push("scale(".concat(he($)&&he(k)?$/k:1,")"))}return j&&T.push("rotate(".concat(j,", ").concat(C,", ").concat(M,")")),T.length&&(A.transform=T.join(" ")),x.createElement("text",bg({},mn(A),{ref:t,x:C,y:M,className:$e("recharts-text",_),textAnchor:h,fill:f.includes("url")?eM:f}),b.map((Z,V)=>{var re=Z.words.join(N?"":" ");return x.createElement("tspan",{x:C,dy:V===0?D:o,key:"".concat(re,"-").concat(V)},re)}))});fh.displayName="Text";var FF=["labelRef"],KF=["content"];function cA(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}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 jt(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){GF(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 GF(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=XF(e,"string");return typeof t=="symbol"?t:t+""}function XF(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 ia(){return ia=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},ia.apply(null,arguments)}var tM=x.createContext(null),ZF=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(tM.Provider,{value:d},f)},nM=()=>{var e=x.useContext(tM),t=Ud();return e||bC(t)},WF=x.createContext(null),QF=()=>{var e=x.useContext(WF),t=ye(YT);return e||t},JF=e=>{var{value:t,formatter:n}=e,r=mt(e.children)?t:e.children;return typeof n=="function"?n(r):r},bb=e=>e!=null&&typeof e=="function",eK=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),360);return n*r},tK=(e,t,n,r,l)=>{var{offset:o,className:u}=e,{cx:f,cy:d,innerRadius:h,outerRadius:p,startAngle:y,endAngle:b,clockWise:w}=l,S=(h+p)/2,j=eK(y,b),_=j>=0?1:-1,N,A;switch(t){case"insideStart":N=y+_*o,A=w;break;case"insideEnd":N=b-_*o,A=!w;break;case"end":N=b+_*o,A=w;break;default:throw new Error("Unsupported position ".concat(t))}A=j<=0?A:!A;var C=Dt(f,d,S,N),M=Dt(f,d,S,N+(A?1:-1)*359),D="M".concat(C.x,",").concat(C.y,`
    A`).concat(S,",").concat(S,",0,1,").concat(A?0:1,`,
    `).concat(M.x,",").concat(M.y),T=mt(e.id)?Ps("recharts-radial-line-"):e.id;return x.createElement("text",ia({},r,{dominantBaseline:"central",className:$e("recharts-radial-bar-label",u)}),x.createElement("defs",null,x.createElement("path",{id:T,d:D})),x.createElement("textPath",{xlinkHref:"#".concat(T)},n))},nK=(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}=Dt(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:w,y:S}=Dt(r,l,b,h);return{x:w,y:S,textAnchor:"middle",verticalAnchor:"middle"}},xg=e=>"cx"in e&&he(e.cx),rK=(e,t)=>{var{parentViewBox:n,offset:r,position:l}=e,o;n!=null&&!xg(n)&&(o=n);var{x:u,y:f,upperWidth:d,lowerWidth:h,height:p}=t,y=u,b=u+(d-h)/2,w=(y+b)/2,S=(d+h)/2,j=y+d/2,_=p>=0?1:-1,N=_*r,A=_>0?"end":"start",C=_>0?"start":"end",M=d>=0?1:-1,D=M*r,T=M>0?"end":"start",k=M>0?"start":"end";if(l==="top"){var $={x:y+d/2,y:f-N,textAnchor:"middle",verticalAnchor:A};return jt(jt({},$),o?{height:Math.max(f-o.y,0),width:d}:{})}if(l==="bottom"){var Z={x:b+h/2,y:f+p+N,textAnchor:"middle",verticalAnchor:C};return jt(jt({},Z),o?{height:Math.max(o.y+o.height-(f+p),0),width:h}:{})}if(l==="left"){var V={x:w-D,y:f+p/2,textAnchor:T,verticalAnchor:"middle"};return jt(jt({},V),o?{width:Math.max(V.x-o.x,0),height:p}:{})}if(l==="right"){var re={x:w+S+D,y:f+p/2,textAnchor:k,verticalAnchor:"middle"};return jt(jt({},re),o?{width:Math.max(o.x+o.width-re.x,0),height:p}:{})}var P=o?{width:S,height:p}:{};return l==="insideLeft"?jt({x:w+D,y:f+p/2,textAnchor:k,verticalAnchor:"middle"},P):l==="insideRight"?jt({x:w+S-D,y:f+p/2,textAnchor:T,verticalAnchor:"middle"},P):l==="insideTop"?jt({x:y+d/2,y:f+N,textAnchor:"middle",verticalAnchor:C},P):l==="insideBottom"?jt({x:b+h/2,y:f+p-N,textAnchor:"middle",verticalAnchor:A},P):l==="insideTopLeft"?jt({x:y+D,y:f+N,textAnchor:k,verticalAnchor:C},P):l==="insideTopRight"?jt({x:y+d-D,y:f+N,textAnchor:T,verticalAnchor:C},P):l==="insideBottomLeft"?jt({x:b+D,y:f+p-N,textAnchor:k,verticalAnchor:A},P):l==="insideBottomRight"?jt({x:b+h-D,y:f+p-N,textAnchor:T,verticalAnchor:A},P):l&&typeof l=="object"&&(he(l.x)||ca(l.x))&&(he(l.y)||ca(l.y))?jt({x:u+sn(l.x,S),y:f+sn(l.y,p),textAnchor:"end",verticalAnchor:"end"},P):jt({x:j,y:f+p/2,textAnchor:"middle",verticalAnchor:"middle"},P)},aK={angle:0,offset:5,zIndex:kt.label,position:"middle",textBreakAll:!1};function Qa(e){var t=Rt(e,aK),{viewBox:n,position:r,value:l,children:o,content:u,className:f="",textBreakAll:d,labelRef:h}=t,p=QF(),y=nM(),b=r==="center"?y:p??y,w,S,j;if(n==null?w=b:xg(n)?w=n:w=bC(n),!w||mt(l)&&mt(o)&&!x.isValidElement(u)&&typeof u!="function")return null;var _=jt(jt({},t),{},{viewBox:w});if(x.isValidElement(u)){var{labelRef:N}=_,A=cA(_,FF);return x.cloneElement(u,A)}if(typeof u=="function"){var{content:C}=_,M=cA(_,KF);if(S=x.createElement(u,M),x.isValidElement(S))return S}else S=JF(t);var D=mn(t);if(xg(w)){if(r==="insideStart"||r==="insideEnd"||r==="end")return tK(t,r,S,D,w);j=nK(w,t.offset,t.position)}else j=rK(t,w);return x.createElement(En,{zIndex:t.zIndex},x.createElement(fh,ia({ref:h,className:$e("recharts-label",f)},D,j,{textAnchor:IF(D.textAnchor)?D.textAnchor:j.textAnchor,breakAll:d}),S))}Qa.displayName="Label";var iK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?x.createElement(Qa,ia({key:"label-implicit"},r)):Tr(e)?x.createElement(Qa,ia({key:"label-implicit",value:e},r)):x.isValidElement(e)?e.type===Qa?x.cloneElement(e,jt({key:"label-implicit"},r)):x.createElement(Qa,ia({key:"label-implicit",content:e},r)):bb(e)?x.createElement(Qa,ia({key:"label-implicit",content:e},r)):e&&typeof e=="object"?x.createElement(Qa,ia({},e,{key:"label-implicit"},r)):null};function lK(e){var{label:t,labelRef:n}=e,r=nM();return iK(t,r,n)||null}var oy={},sy={},dA;function oK(){return dA||(dA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(sy)),sy}var uy={},hA;function sK(){return hA||(hA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(uy)),uy}var mA;function uK(){return mA||(mA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oK(),n=sK(),r=Xg();function l(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=l})(oy)),oy}var cy,pA;function cK(){return pA||(pA=1,cy=uK().last),cy}var fK=cK();const dK=kr(fK);var hK=["valueAccessor"],mK=["dataKey","clockWise","id","textBreakAll","zIndex"];function sd(){return sd=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},sd.apply(null,arguments)}function vA(e,t){if(e==null)return{};var n,r,l=pK(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 pK(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 vK=e=>Array.isArray(e.value)?dK(e.value):e.value,rM=x.createContext(void 0),aM=rM.Provider,iM=x.createContext(void 0),yK=iM.Provider;function gK(){return x.useContext(rM)}function bK(){return x.useContext(iM)}function vf(e){var{valueAccessor:t=vK}=e,n=vA(e,hK),{dataKey:r,clockWise:l,id:o,textBreakAll:u,zIndex:f}=n,d=vA(n,mK),h=gK(),p=bK(),y=h||p;return!y||!y.length?null:x.createElement(En,{zIndex:f??kt.label},x.createElement(Ot,{className:"recharts-label-list"},y.map((b,w)=>{var S,j=mt(r)?t(b,w):Qe(b&&b.payload,r),_=mt(o)?{}:{id:"".concat(o,"-").concat(w)};return x.createElement(Qa,sd({key:"label-".concat(w)},mn(b),d,_,{fill:(S=n.fill)!==null&&S!==void 0?S:b.fill,parentViewBox:b.parentViewBox,value:j,textBreakAll:u,viewBox:b.viewBox,index:w,zIndex:0}))})))}vf.displayName="LabelList";function xb(e){var{label:t}=e;return t?t===!0?x.createElement(vf,{key:"labelList-implicit"}):x.isValidElement(t)||bb(t)?x.createElement(vf,{key:"labelList-implicit",content:t}):typeof t=="object"?x.createElement(vf,sd({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function wg(){return wg=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},wg.apply(null,arguments)}var lM=e=>{var{cx:t,cy:n,r,className:l}=e,o=$e("recharts-dot",l);return he(t)&&he(n)&&he(r)?x.createElement("circle",wg({},An(e),Vg(e),{className:o,cx:t,cy:n,r})):null},oM=e=>e.graphicalItems.polarItems,xK=K([ht,mu],q0),dh=K([oM,pt,xK],H0),wK=K([dh],F0),hh=K([wK,Qd],K0),SK=K([hh,pt,dh],G0);K([hh,pt,dh],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(l=>{var o,u=Qe(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:Qe(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var yA=()=>{},jK=K([hh,pt,dh,oh,ht],W0),_K=K([pt,X0,Z0,yA,jK,yA,ze,ht],Q0),sM=K([pt,ze,hh,SK,hu,ht,_K],J0),OK=K([sM,pt,wo],nb);K([pt,sM,OK,ht],ab);var AK={radiusAxis:{},angleAxis:{}},uM=Nn({name:"polarAxis",initialState:AK,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:eQ,removeRadiusAxis:tQ,addAngleAxis:nQ,removeAngleAxis:rQ}=uM.actions,NK=uM.reducer;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 bA(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){EK(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 EK(e,t,n){return(t=CK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CK(e){var t=TK(e,"string");return typeof t=="symbol"?t:t+""}function TK(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 MK=(e,t)=>t,wb=K([oM,MK],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),DK=[],Sb=(e,t,n)=>(n==null?void 0:n.length)===0?DK:n,cM=K([Qd,wb,Sb],(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=>bA(bA({},t.presentationProps),o.props))),l!=null)return l}}),kK=K([cM,wb,Sb],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,l)=>{var o,u=Qe(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:po(u,t.dataKey),color:f,payload:r,type:t.legendType}})}),PK=K([cM,wb,Sb,Bt],(e,t,n,r)=>{if(!(t==null||e==null))return zY({offset:r,pieSettings:t,displayedData:e,cells:n})}),fy={exports:{}},We={};/**
 * @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 xA;function RK(){if(xA)return We;xA=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"),w=Symbol.for("react.client.reference");function S(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 We.ContextConsumer=o,We.ContextProvider=u,We.Element=e,We.ForwardRef=f,We.Fragment=n,We.Lazy=y,We.Memo=p,We.Portal=t,We.Profiler=l,We.StrictMode=r,We.Suspense=d,We.SuspenseList=h,We.isContextConsumer=function(j){return S(j)===o},We.isContextProvider=function(j){return S(j)===u},We.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},We.isForwardRef=function(j){return S(j)===f},We.isFragment=function(j){return S(j)===n},We.isLazy=function(j){return S(j)===y},We.isMemo=function(j){return S(j)===p},We.isPortal=function(j){return S(j)===t},We.isProfiler=function(j){return S(j)===l},We.isStrictMode=function(j){return S(j)===r},We.isSuspense=function(j){return S(j)===d},We.isSuspenseList=function(j){return S(j)===h},We.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===w||j.getModuleId!==void 0)},We.typeOf=S,We}var wA;function zK(){return wA||(wA=1,fy.exports=RK()),fy.exports}var LK=zK(),SA=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",jA=null,dy=null,fM=e=>{if(e===jA&&Array.isArray(dy))return dy;var t=[];return x.Children.forEach(e,n=>{mt(n)||(LK.isFragment(n)?t=t.concat(fM(n.props.children)):t.push(n))}),dy=t,jA=e,t};function jb(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(l=>SA(l)):r=[SA(t)],fM(e).forEach(l=>{var o=Vi(l,"type.displayName")||Vi(l,"type.name");o&&r.indexOf(o)!==-1&&n.push(l)}),n}var dM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,hy={},_A;function BK(){return _A||(_A=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})(hy)),hy}var my,OA;function IK(){return OA||(OA=1,my=BK().isPlainObject),my}var $K=IK();const UK=kr($K);var AA,NA,EA,CA,TA;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){qK(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 qK(e,t,n){return(t=HK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HK(e){var t=FK(e,"string");return typeof t=="symbol"?t:t+""}function FK(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 ud(){return ud=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},ud.apply(null,arguments)}function Cs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var kA=(e,t,n,r,l)=>{var o=n-r,u;return u=gt(AA||(AA=Cs(["M ",",",""])),e,t),u+=gt(NA||(NA=Cs(["L ",",",""])),e+n,t),u+=gt(EA||(EA=Cs(["L ",",",""])),e+n-o/2,t+l),u+=gt(CA||(CA=Cs(["L ",",",""])),e+n-o/2-r,t+l),u+=gt(TA||(TA=Cs(["L ",","," Z"])),e,t),u},KK={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YK=e=>{var t=Rt(e,KK),{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),[w,S]=x.useState(-1),j=x.useRef(l),_=x.useRef(o),N=x.useRef(u),A=x.useRef(n),C=x.useRef(r),M=su(e,"trapezoid-");if(x.useEffect(()=>{if(b.current&&b.current.getTotalLength)try{var U=b.current.getTotalLength();U&&S(U)}catch{}},[]),n!==+n||r!==+r||l!==+l||o!==+o||u!==+u||l===0&&o===0||u===0)return null;var D=$e("recharts-trapezoid",f);if(!y)return x.createElement("g",null,x.createElement("path",ud({},mn(t),{className:D,d:kA(n,r,l,o,u)})));var T=j.current,k=_.current,$=N.current,Z=A.current,V=C.current,re="0px ".concat(w===-1?1:w,"px"),P="".concat(w,"px 0px"),ue=kC(["strokeDasharray"],h,d);return x.createElement(ou,{animationId:M,key:M,canBegin:w>0,duration:h,easing:d,isActive:y,begin:p},U=>{var ne=st(T,l,U),B=st(k,o,U),Q=st($,u,U),ie=st(Z,n,U),fe=st(V,r,U);b.current&&(j.current=ne,_.current=B,N.current=Q,A.current=ie,C.current=fe);var de=U>0?{transition:ue,strokeDasharray:P}:{strokeDasharray:re};return x.createElement("path",ud({},mn(t),{className:D,d:kA(ie,fe,ne,B,Q),ref:b,style:DA(DA({},de),t.style)}))})},GK=["option","shapeType","activeClassName"];function VK(e,t){if(e==null)return{};var n,r,l=XK(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 XK(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 PA(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?PA(Object(n),!0).forEach(function(r){ZK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZK(e,t,n){return(t=WK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WK(e){var t=QK(e,"string");return typeof t=="symbol"?t:t+""}function QK(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 JK(e,t){return cd(cd({},t),e)}function eY(e,t){return e==="symbols"}function RA(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return x.createElement(LC,n);case"trapezoid":return x.createElement(YK,n);case"sector":return x.createElement(UC,n);case"symbols":if(eY(t))return x.createElement(Gg,n);break;case"curve":return x.createElement(eo,n);default:return null}}function tY(e){return x.isValidElement(e)?e.props:e}function hM(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,l=VK(e,GK),o;if(x.isValidElement(t))o=x.cloneElement(t,cd(cd({},l),tY(t)));else if(typeof t=="function")o=t(l,l.index);else if(UK(t)&&typeof t!="boolean"){var u=JK(t,l);o=x.createElement(RA,{shapeType:n,elementProps:u})}else{var f=l;o=x.createElement(RA,{shapeType:n,elementProps:f})}return l.isActive?x.createElement(Ot,{className:r},o):o}var _b=(e,t,n)=>{var r=at();return(l,o)=>u=>{e==null||e(l,o,u),r(j5({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}},Ob=e=>{var t=at();return(n,r)=>l=>{e==null||e(n,r,l),t(uq())}},Ab=(e,t,n)=>{var r=at();return(l,o)=>u=>{e==null||e(l,o,u),r(cq({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}};function Nb(e){var{tooltipEntrySettings:t}=e,n=at(),r=un(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(iq(t)):l.current!==t&&n(lq({prev:l.current,next:t})),l.current=t)},[t,n,r]),x.useLayoutEffect(()=>()=>{l.current&&(n(oq(l.current)),l.current=null)},[n]),null}function mM(e){var{legendPayload:t}=e,n=at(),r=un(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(EC(t)):l.current!==t&&n(CC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(TC(l.current)),l.current=null)},[n]),null}function nY(e){var{legendPayload:t}=e,n=at(),r=ye(ze),l=x.useRef(null);return x.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(l.current===null?n(EC(t)):l.current!==t&&n(CC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(TC(l.current)),l.current=null)},[n]),null}var py,rY=()=>{var[e]=x.useState(()=>Ps("uid-"));return e},aY=(py=Nk.useId)!==null&&py!==void 0?py:rY;function iY(e,t){var n=aY();return t||(e?"".concat(e,"-").concat(n):n)}var lY=x.createContext(void 0),Eb=e=>{var{id:t,type:n,children:r}=e,l=iY("recharts-".concat(n),t);return x.createElement(lY.Provider,{value:l},r(l))},oY={cartesianItems:[],polarItems:[]},pM=Nn({name:"graphicalItems",initialState:oY,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ft()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,l=gr(e).cartesianItems.indexOf(n);l>-1&&(e.cartesianItems[l]=r)},prepare:ft()},removeCartesianGraphicalItem:{reducer(e,t){var n=gr(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=gr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:ft()}}}),{addCartesianGraphicalItem:sY,replaceCartesianGraphicalItem:uY,removeCartesianGraphicalItem:cY,addPolarGraphicalItem:fY,removePolarGraphicalItem:dY}=pM.actions,hY=pM.reducer,mY=e=>{var t=at(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(sY(e)):n.current!==e&&t(uY({prev:n.current,next:e})),n.current=e},[t,e]),x.useLayoutEffect(()=>()=>{n.current&&(t(cY(n.current)),n.current=null)},[t]),null},vM=x.memo(mY);function pY(e){var t=at();return x.useLayoutEffect(()=>(t(fY(e)),()=>{t(dY(e))}),[t,e]),null}var vY=["key"],yY=["onMouseEnter","onClick","onMouseLeave"],gY=["id"],bY=["id"];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 bt(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){xY(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 xY(e,t,n){return(t=wY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wY(e){var t=SY(e,"string");return typeof t=="symbol"?t:t+""}function SY(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 oi(){return oi=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},oi.apply(null,arguments)}function mh(e,t){if(e==null)return{};var n,r,l=jY(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 jY(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 _Y(e){var t=x.useMemo(()=>jb(e.children,qi),[e.children]),n=ye(r=>kK(r,e.id,t));return n==null?null:x.createElement(nY,{legendPayload:n})}var OY=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),positions:r.map(b=>b.tooltipPosition),settings:{stroke:l,strokeWidth:o,fill:u,dataKey:t,nameKey:n,name:po(f,t),hide:d,type:h,color:u,unit:"",graphicalItemId:p}};return x.createElement(Nb,{tooltipEntrySettings:y})}),AY=(e,t)=>e>t?"start":e<t?"end":"middle",NY=(e,t,n)=>sn(typeof t=="function"?t(e):t,n,n*.8),EY=(e,t,n)=>{var{top:r,left:l,width:o,height:u}=t,f=BC(o,u),d=l+sn(e.cx,o,o/2),h=r+sn(e.cy,u,u/2),p=sn(e.innerRadius,f,0),y=NY(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}},CY=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function TY(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var MY=(e,t)=>{if(x.isValidElement(e))return x.cloneElement(e,t);if(typeof e=="function")return e(t);var n=$e("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,l=mh(t,vY);return x.createElement(eo,oi({},l,{type:"linear",className:n}))},DY=(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=$e("recharts-pie-label-text",TY(e));return x.createElement(fh,oi({},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=Yi(l),h=Yi(o),p=typeof l=="object"&&"offsetRadius"in l&&typeof l.offsetRadius=="number"&&l.offsetRadius||20,y=t.map((b,w)=>{var S=(b.startAngle+b.endAngle)/2,j=Dt(b.cx,b.cy,b.outerRadius+p,S),_=bt(bt(bt(bt({},f),b),{},{stroke:"none"},d),{},{index:w,textAnchor:AY(j.x,b.cx)},j),N=bt(bt(bt(bt({},f),b),{},{fill:"none",stroke:b.fill},h),{},{index:w,points:[Dt(b.cx,b.cy,b.outerRadius,S),j],key:"line"});return x.createElement(En,{zIndex:kt.label,key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(w)},x.createElement(Ot,null,o&&MY(o,N),DY(l,_,Qe(b,u))))});return x.createElement(Ot,{className:"recharts-pie-labels"},y)}function PY(e){var{sectors:t,props:n,showLabels:r}=e,{label:l}=n;return typeof l=="object"&&l!=null&&"position"in l?x.createElement(xb,{label:l}):x.createElement(kY,{sectors:t,props:n,showLabels:r})}function RY(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:l,shape:o,id:u}=e,f=ye(li),d=ye(hb),h=ye(Xq),{onMouseEnter:p,onClick:y,onMouseLeave:b}=l,w=mh(l,yY),S=_b(p,l.dataKey,u),j=Ob(b),_=Ab(y,l.dataKey,u);return t==null||t.length===0?null:x.createElement(x.Fragment,null,t.map((N,A)=>{if((N==null?void 0:N.startAngle)===0&&(N==null?void 0:N.endAngle)===0&&t.length!==1)return null;var C=h==null||h===u,M=String(A)===f&&(d==null||l.dataKey===d)&&C,D=f?r:null,T=n&&M?n:D,k=bt(bt({},N),{},{stroke:N.stroke,tabIndex:-1,[mC]:A,[pC]:u});return x.createElement(Ot,oi({key:"sector-".concat(N==null?void 0:N.startAngle,"-").concat(N==null?void 0:N.endAngle,"-").concat(N.midAngle,"-").concat(A),tabIndex:-1,className:"recharts-pie-sector"},tu(w,N,A),{onMouseEnter:S(N,A),onMouseLeave:j(N,A),onClick:_(N,A)}),x.createElement(hM,oi({option:o??T,index:A,shapeType:"sector",isActive:M},k)))}))}function zY(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),w=CY(f,d),S=Math.abs(w),j=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,_=r.filter(T=>Qe(T,h,0)!==0).length,N=(S>=360?_:_-1)*j,A=S-_*b-N,C=r.reduce((T,k)=>{var $=Qe(k,h,0);return T+(he($)?$:0)},0),M;if(C>0){var D;M=r.map((T,k)=>{var $=Qe(T,h,0),Z=Qe(T,p,k),V=EY(n,o,T),re=(he($)?$:0)/C,P,ue=bt(bt({},T),l&&l[k]&&l[k].props);k?P=D.endAngle+Gt(w)*j*($!==0?1:0):P=f;var U=P+Gt(w)*(($!==0?b:0)+re*A),ne=(P+U)/2,B=(V.innerRadius+V.outerRadius)/2,Q=[{name:Z,value:$,payload:ue,dataKey:h,type:y,graphicalItemId:n.id}],ie=Dt(V.cx,V.cy,B,ne);return D=bt(bt(bt(bt({},n.presentationProps),{},{percent:re,cornerRadius:typeof u=="string"?parseFloat(u):u,name:Z,tooltipPayload:Q,midAngle:ne,middleRadius:B,tooltipPosition:ie},ue),V),{},{value:$,dataKey:h,startAngle:P,endAngle:U,payload:ue,paddingAngle:Gt(w)*j}),D})}return M}function LY(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(yK,{value:t?l:void 0},r)}function BY(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,w=su(t,"recharts-pie-"),S=n.current,[j,_]=x.useState(!1),N=x.useCallback(()=>{typeof b=="function"&&b(),_(!1)},[b]),A=x.useCallback(()=>{typeof y=="function"&&y(),_(!0)},[y]);return x.createElement(LY,{showLabels:!j,sectors:l},x.createElement(ou,{animationId:w,begin:u,duration:f,isActive:o,easing:d,onAnimationStart:A,onAnimationEnd:N,key:w},C=>{var M=[],D=l&&l[0],T=D==null?void 0:D.startAngle;return l==null||l.forEach((k,$)=>{var Z=S&&S[$],V=$>0?Vi(k,"paddingAngle",0):0;if(Z){var re=st(Z.endAngle-Z.startAngle,k.endAngle-k.startAngle,C),P=bt(bt({},k),{},{startAngle:T+V,endAngle:T+re+V});M.push(P),T=P.endAngle}else{var{endAngle:ue,startAngle:U}=k,ne=st(0,ue-U,C),B=bt(bt({},k),{},{startAngle:T+V,endAngle:T+ne+V});M.push(B),T=B.endAngle}}),n.current=M,x.createElement(Ot,null,x.createElement(RY,{sectors:M,activeShape:h,inactiveShape:p,allOtherPieProps:t,shape:t.shape,id:r}))}),x.createElement(PY,{showLabels:!j,sectors:l,props:t}),t.children)}var IY={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:kt.area};function $Y(e){var{id:t}=e,n=mh(e,gY),{hide:r,className:l,rootTabIndex:o}=e,u=x.useMemo(()=>jb(e.children,qi),[e.children]),f=ye(p=>PK(p,t,u)),d=x.useRef(null),h=$e("recharts-pie",l);return r||f==null?(d.current=null,x.createElement(Ot,{tabIndex:o,className:h})):x.createElement(En,{zIndex:e.zIndex},x.createElement(OY,{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(BY,{props:bt(bt({},n),{},{sectors:f}),previousSectorsRef:d,id:t})))}function Sg(e){var t=Rt(e,IY),{id:n}=t,r=mh(t,bY),l=An(r);return x.createElement(Eb,{id:n,type:"pie"},o=>x.createElement(x.Fragment,null,x.createElement(pY,{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(_Y,oi({},r,{id:o})),x.createElement($Y,oi({},r,{id:o}))))}Sg.displayName="Pie";var UY=["points"];function LA(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 vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(r){qY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qY(e,t,n){return(t=HY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HY(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 fd(){return fd=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},fd.apply(null,arguments)}function KY(e,t){if(e==null)return{};var n,r,l=YY(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 YY(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 GY(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=$e(r,typeof t!="boolean"?t.className:""),o=n??{},{points:u}=o,f=KY(o,UY);return x.createElement(lM,fd({},f,{className:l}))}function VY(e,t){return e==null?!1:t?!0:e.length===1}function XY(e){var{points:t,dot:n,className:r,dotClassName:l,dataKey:o,baseProps:u,needClip:f,clipPathId:d,zIndex:h=kt.scatter}=e;if(!VY(t,n))return null;var p=dM(n),y=fR(n),b=t.map((S,j)=>{var _,N,A=vy(vy(vy({r:3},u),y),{},{index:j,cx:(_=S.x)!==null&&_!==void 0?_:void 0,cy:(N=S.y)!==null&&N!==void 0?N:void 0,dataKey:o,value:S.value,payload:S.payload,points:t});return x.createElement(GY,{key:"dot-".concat(j),option:n,dotProps:A,className:l})}),w={};return f&&d!=null&&(w.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(d,")")),x.createElement(En,{zIndex:h},x.createElement(Ot,fd({className:r},w),b))}function BA(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 IA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(n),!0).forEach(function(r){ZY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZY(e,t,n){return(t=WY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WY(e){var t=QY(e,"string");return typeof t=="symbol"?t:t+""}function QY(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 yM=0,JY={xAxis:{},yAxis:{},zAxis:{}},gM=Nn({name:"cartesianAxis",initialState:JY,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=l.widthHistory||[];if(o.length===3&&o[0]===o[2]&&r===o[1]&&r!==l.width&&Math.abs(r-o[0])<=1)return;var u=[...o,r].slice(-3);e.yAxis[n]=IA(IA({},e.yAxis[n]),{},{width:r,widthHistory:u})}}}}),{addXAxis:eG,replaceXAxis:tG,removeXAxis:nG,addYAxis:rG,replaceYAxis:aG,removeYAxis:iG,addZAxis:aQ,replaceZAxis:iQ,removeZAxis:lQ,updateYAxisWidth:lG}=gM.actions,oG=gM.reducer,sG=K([Bt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),uG=K([sG,ba,xa],(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)}}),Cb=()=>ye(uG),cG=()=>ye(eH);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 yy(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){fG(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 fG(e,t,n){return(t=dG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dG(e){var t=hG(e,"string");return typeof t=="symbol"?t:t+""}function hG(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 mG=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=yy(yy(yy({},f),Yi(l)),Vg(l)),h;return x.isValidElement(l)?h=x.cloneElement(l,d):typeof l=="function"?h=l(d):h=x.createElement(lM,d),x.createElement(Ot,{className:"recharts-active-dot",clipPath:u},h)};function UA(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:l,clipPath:o,zIndex:u=kt.activeDot}=e,f=ye(li),d=cG();if(t==null||d==null)return null;var h=t.find(p=>d.includes(p.payload));return mt(h)?null:x.createElement(En,{zIndex:u},x.createElement(mG,{point:h,childIndex:Number(f),mainColor:n,dataKey:l,activeDot:r,clipPath:o}))}var qA=(e,t,n)=>{var r=n??e;if(!mt(r))return sn(r,t,0)},pG=(e,t,n)=>{var r={},l=e.filter(nh),o=e.filter(h=>h.stackId==null),u=l.reduce((h,p)=>(h[p.stackId]||(h[p.stackId]=[]),h[p.stackId].push(p),h),r),f=Object.entries(u).map(h=>{var[p,y]=h,b=y.map(S=>S.dataKey),w=qA(t,n,y[0].barSize);return{stackId:p,dataKeys:b,barSize:w}}),d=o.map(h=>{var p=[h.dataKey].filter(b=>b!=null),y=qA(t,n,h.barSize);return{stackId:void 0,dataKeys:p,barSize:y}});return[...f,...d]};function HA(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 nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(r){vG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vG(e,t,n){return(t=yG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yG(e){var t=gG(e,"string");return typeof t=="symbol"?t:t+""}function gG(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 bG(e,t,n,r,l){var o=r.length;if(!(o<1)){var u=sn(e,n,0,!0),f,d=[];if(nt(r[0].barSize)){var h=!1,p=n/o,y=r.reduce((N,A)=>N+(A.barSize||0),0);y+=(o-1)*u,y>=n&&(y-=(o-1)*u,u=0),y>=n&&p>0&&(h=!0,p*=.9,y=o*p);var b=(n-y)/2>>0,w={offset:b-u,size:0};f=r.reduce((N,A)=>{var C,M={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:w.offset+w.size+u,size:h?p:(C=A.barSize)!==null&&C!==void 0?C:0}},D=[...N,M];return w=D[D.length-1].position,D},d)}else{var S=sn(t,n,0,!0);n-2*S-(o-1)*u<=0&&(u=0);var j=(n-2*S-(o-1)*u)/o;j>1&&(j>>=0);var _=nt(l)?Math.min(j,l):j;f=r.reduce((N,A,C)=>[...N,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:S+(j+u)*C+(j-_)/2,size:_}}],d)}return f}}var xG=(e,t,n,r,l,o,u)=>{var f=mt(u)?t:u,d=bG(n,r,l!==o?l:o,e,f);return l!==o&&d!=null&&(d=d.map(h=>nf(nf({},h),{},{position:nf(nf({},h.position),{},{offset:h.position.offset-l/2})}))),d},wG=(e,t)=>{var n=th(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)}}}};function SG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&nt(e.zIndex)?e.zIndex:t}var bM=e=>{var{chartData:t}=e,n=at(),r=un();return x.useEffect(()=>r?()=>{}:(n(XO(t)),()=>{n(XO(void 0))}),[t,n,r]),null},FA={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},xM=Nn({name:"brush",initialState:FA,reducers:{setBrushSettings(e,t){return t.payload==null?FA:t.payload}}}),{setBrushSettings:oQ}=xM.actions,jG=xM.reducer;function _G(e,t,n){return(t=OG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OG(e){var t=AG(e,"string");return typeof t=="symbol"?t:t+""}function AG(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 Tb{static create(t){return new Tb(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+l}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+u}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],l=n[n.length-1];return r<=l?t>=r&&t<=l:t>=l&&t<=r}}_G(Tb,"EPS",1e-4);function NG(e){return(e%180+180)%180}var EG=function(t){var{width:n,height:r}=t,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=NG(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)},CG={dots:[],areas:[],lines:[]},wM=Nn({name:"referenceElements",initialState:CG,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=gr(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=gr(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=gr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:sQ,removeDot:uQ,addArea:cQ,removeArea:fQ,addLine:dQ,removeLine:hQ}=wM.actions,TG=wM.reducer,MG=x.createContext(void 0),DG=e=>{var{children:t}=e,[n]=x.useState("".concat(Ps("recharts"),"-clip")),r=Cb();if(r==null)return null;var{x:l,y:o,width:u,height:f}=r;return x.createElement(MG.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 SM(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 kG(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return EG(r,n)}function PG(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 Vs(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 RG(e,t){return SM(e,t+1)}function zG(e,t,n,r,l){for(var o=(r||[]).slice(),{start:u,end:f}=t,d=0,h=1,p=u,y=function(){var S=r==null?void 0:r[d];if(S===void 0)return{v:SM(r,h)};var j=d,_,N=()=>(_===void 0&&(_=n(S,j)),_),A=S.coordinate,C=d===0||Vs(e,A,N,p,f);C||(d=0,p=u,h+=1),C&&(p=A+e*(N()/2+l),d+=h)},b;h<=o.length;)if(b=y(),b)return b.v;return[]}function LG(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,w=function(){var A=r[S],C=S,M,D=()=>(M===void 0&&(M=n(A,C)),M),T=A.coordinate,k=S===p||Vs(e,T,D,y,d);if(!k)return b=!1,1;k&&(y=T+e*(D()/2+l))},S=p;S<u&&!w();S+=h);if(b){for(var j=[],_=p;_<u;_+=h)j.push(r[_]);return j}}return[]}function KA(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?KA(Object(n),!0).forEach(function(r){BG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BG(e,t,n){return(t=IG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IG(e){var t=$G(e,"string");return typeof t=="symbol"?t:t+""}function $G(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 UG(e,t,n,r,l){for(var o=(r||[]).slice(),u=o.length,{start:f}=t,{end:d}=t,h=function(b){var w=o[b],S,j=()=>(S===void 0&&(S=n(w,b)),S);if(b===u-1){var _=e*(w.coordinate+e*j()/2-d);o[b]=w=an(an({},w),{},{tickCoord:_>0?w.coordinate-_*e:w.coordinate})}else o[b]=w=an(an({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var N=Vs(e,w.tickCoord,j,f,d);N&&(d=w.tickCoord-e*(j()/2+l),o[b]=an(an({},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],y=n(p,f-1),b=e*(p.coordinate+e*y/2-h);if(u[f-1]=p=an(an({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate}),p.tickCoord!=null){var w=Vs(e,p.tickCoord,()=>y,d,h);w&&(h=p.tickCoord-e*(y/2+l),u[f-1]=an(an({},p),{},{isShow:!0}))}}for(var S=o?f-1:f,j=function(A){var C=u[A],M,D=()=>(M===void 0&&(M=n(C,A)),M);if(A===0){var T=e*(C.coordinate-e*D()/2-d);u[A]=C=an(an({},C),{},{tickCoord:T<0?C.coordinate-T*e:C.coordinate})}else u[A]=C=an(an({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var k=Vs(e,C.tickCoord,D,d,h);k&&(d=C.tickCoord+e*(D()/2+l),u[A]=an(an({},C),{},{isShow:!0}))}},_=0;_<S;_++)j(_);return u}function Mb(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)||lu.isSsr){var b;return(b=RG(l,he(d)?d:0))!==null&&b!==void 0?b:[]}var w=[],S=f==="top"||f==="bottom"?"width":"height",j=p&&S==="width"?Ds(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=(C,M)=>{var D=typeof h=="function"?h(C.value,M):C.value;return S==="width"?kG(Ds(D,{fontSize:t,letterSpacing:n}),j,y):Ds(D,{fontSize:t,letterSpacing:n})[S]},N=l.length>=2?Gt(l[1].coordinate-l[0].coordinate):1,A=PG(o,N,S);return d==="equidistantPreserveStart"?zG(N,A,_,l,u):d==="equidistantPreserveEnd"?LG(N,A,_,l,u):(d==="preserveStart"||d==="preserveStartEnd"?w=qG(N,A,_,l,u,d==="preserveStartEnd"):w=UG(N,A,_,l,u),w.filter(C=>C.isShow))}var HG=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},FG=["axisLine","width","height","className","hide","ticks","axisType"];function KG(e,t){if(e==null)return{};var n,r,l=YG(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 YG(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 Ji(){return Ji=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},Ji.apply(null,arguments)}function YA(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(n),!0).forEach(function(r){GG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GG(e,t,n){return(t=VG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VG(e){var t=XG(e,"string");return typeof t=="symbol"?t:t+""}function XG(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 ua={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:kt.axis};function ZG(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=Mt(Mt(Mt({},d),An(f)),{},{fill:"none"});if(o==="top"||o==="bottom"){var p=+(o==="top"&&!u||o==="bottom"&&u);h=Mt(Mt({},h),{},{x1:t,y1:n+p*l,x2:t+r,y2:n+p*l})}else{var y=+(o==="left"&&!u||o==="right"&&u);h=Mt(Mt({},h),{},{x1:t+y*r,y1:n,x2:t+y*r,y2:n+l})}return x.createElement("line",Ji({},h,{className:$e("recharts-cartesian-axis-line",Vi(f,"className"))}))}function WG(e,t,n,r,l,o,u,f,d){var h,p,y,b,w,S,j=f?-1:1,_=e.tickSize||u,N=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=p=e.coordinate,b=n+ +!f*l,y=b-j*_,S=y-j*d,w=N;break;case"left":y=b=e.coordinate,p=t+ +!f*r,h=p-j*_,w=h-j*d,S=N;break;case"right":y=b=e.coordinate,p=t+ +f*r,h=p+j*_,w=h+j*d,S=N;break;default:h=p=e.coordinate,b=n+ +f*l,y=b+j*_,S=y+j*d,w=N;break}return{line:{x1:h,y1:y,x2:p,y2:b},tick:{x:w,y:S}}}function QG(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function JG(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function eV(e){var{option:t,tickProps:n,value:r}=e,l,o=$e(n.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))l=x.cloneElement(t,Mt(Mt({},n),{},{className:o}));else if(typeof t=="function")l=t(Mt(Mt({},n),{},{className:o}));else{var u="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(u=$e(u,t==null?void 0:t.className)),l=x.createElement(fh,Ji({},n,{className:u}),r)}return l}var tV=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:w,width:S,height:j,tickSize:_,tickMargin:N,fontSize:A,letterSpacing:C,getTicksConfig:M,events:D,axisType:T}=e,k=Mb(Mt(Mt({},M),{},{ticks:n}),A,C),$=QG(p,y),Z=JG(p,y),V=An(M),re=Yi(r),P={};typeof l=="object"&&(P=l);var ue=Mt(Mt({},V),{},{fill:"none"},P),U=k.map(Q=>Mt({entry:Q},WG(Q,b,w,S,j,p,_,y,N))),ne=U.map(Q=>{var{entry:ie,line:fe}=Q;return x.createElement(Ot,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(ie.value,"-").concat(ie.coordinate,"-").concat(ie.tickCoord)},l&&x.createElement("line",Ji({},ue,fe,{className:$e("recharts-cartesian-axis-tick-line",Vi(l,"className"))})))}),B=U.map((Q,ie)=>{var{entry:fe,tick:de}=Q,R=Mt(Mt(Mt(Mt({textAnchor:$,verticalAnchor:Z},V),{},{stroke:"none",fill:o},re),de),{},{index:ie,payload:fe,visibleTicksCount:k.length,tickFormatter:u,padding:d},h);return x.createElement(Ot,Ji({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(fe.value,"-").concat(fe.coordinate,"-").concat(fe.tickCoord)},tu(D,fe,ie)),r&&x.createElement(eV,{option:r,tickProps:R,value:"".concat(typeof u=="function"?u(fe.value,ie):fe.value).concat(f||"")}))});return x.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(T,"-ticks")},B.length>0&&x.createElement(En,{zIndex:kt.label},x.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(T,"-tick-labels"),ref:t},B)),ne.length>0&&x.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(T,"-tick-lines")},ne))}),nV=x.forwardRef((e,t)=>{var{axisLine:n,width:r,height:l,className:o,hide:u,ticks:f,axisType:d}=e,h=KG(e,FG),[p,y]=x.useState(""),[b,w]=x.useState(""),S=x.useRef(null);x.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return HG({ticks:S.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=x.useCallback(_=>{if(_){var N=_.getElementsByClassName("recharts-cartesian-axis-tick-value");S.current=N;var A=N[0];if(A){var C=window.getComputedStyle(A),M=C.fontSize,D=C.letterSpacing;(M!==p||D!==b)&&(y(M),w(D))}}},[p,b]);return u||r!=null&&r<=0||l!=null&&l<=0?null:x.createElement(En,{zIndex:e.zIndex},x.createElement(Ot,{className:$e("recharts-cartesian-axis",o)},x.createElement(ZG,{x:e.x,y:e.y,width:r,height:l,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:An(e)}),x.createElement(tV,{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(ZF,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},x.createElement(lK,{label:e.label,labelRef:e.labelRef}),e.children)))}),Db=x.forwardRef((e,t)=>{var n=Rt(e,ua);return x.createElement(nV,Ji({},n,{ref:t}))});Db.displayName="CartesianAxis";var rV=["x1","y1","x2","y2","key"],aV=["offset"],iV=["xAxisId","yAxisId"],lV=["xAxisId","yAxisId"];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 ln(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){oV(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 oV(e,t,n){return(t=sV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sV(e){var t=uV(e,"string");return typeof t=="symbol"?t:t+""}function uV(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 Li(){return Li=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},Li.apply(null,arguments)}function dd(e,t){if(e==null)return{};var n,r,l=cV(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 cV(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 fV=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 jM(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=dd(n,rV),y=(l=An(p))!==null&&l!==void 0?l:{},{offset:b}=y,w=dd(y,aV);r=x.createElement("line",Li({},w,{x1:o,y1:u,x2:f,y2:d,fill:"none",key:h}))}return r}function dV(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=dd(e,iV),d=l.map((h,p)=>{var y=ln(ln({},f),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(p),index:p});return x.createElement(jM,{key:"line-".concat(p),option:r,lineItemProps:y})});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function hV(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=dd(e,lV),d=l.map((h,p)=>{var y=ln(ln({},f),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(p),index:p});return x.createElement(jM,{option:r,lineItemProps:y,key:"line-".concat(p)})});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function mV(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 w=!h[b+1],S=w?l+u-y:h[b+1]-y;if(S<=0)return null;var j=b%t.length;return x.createElement("rect",{key:"react-".concat(b),y,x:r,height:S,width:o,stroke:"none",fill:t[j],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function pV(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 w=!h[b+1],S=w?l+u-y:h[b+1]-y;if(S<=0)return null;var j=b%n.length;return x.createElement("rect",{key:"react-".concat(b),x:y,y:o,width:S,height:f,stroke:"none",fill:n[j],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var vV=(e,t)=>{var{xAxis:n,width:r,height:l,offset:o}=e;return cC(Mb(ln(ln(ln({},ua),n),{},{ticks:fC(n),viewBox:{x:0,y:0,width:r,height:l}})),o.left,o.left+o.width,t)},yV=(e,t)=>{var{yAxis:n,width:r,height:l,offset:o}=e;return cC(Mb(ln(ln(ln({},ua),n),{},{ticks:fC(n),viewBox:{x:0,y:0,width:r,height:l}})),o.top,o.top+o.height,t)},gV={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:kt.grid};function jg(e){var t=l0(),n=o0(),r=xC(),l=ln(ln({},Rt(e,gV)),{},{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:w}=l,S=un(),j=ye(Z=>LO(Z,"xAxis",o,S)),_=ye(Z=>LO(Z,"yAxis",u,S));if(!Mr(h)||!Mr(p)||!he(f)||!he(d))return null;var N=l.verticalCoordinatesGenerator||vV,A=l.horizontalCoordinatesGenerator||yV,{horizontalPoints:C,verticalPoints:M}=l;if((!C||!C.length)&&typeof A=="function"){var D=b&&b.length,T=A({yAxis:_?ln(ln({},_),{},{ticks:D?b:_.ticks}):void 0,width:t??h,height:n??p,offset:r},D?!0:y);Bf(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof T,"]")),Array.isArray(T)&&(C=T)}if((!M||!M.length)&&typeof N=="function"){var k=w&&w.length,$=N({xAxis:j?ln(ln({},j),{},{ticks:k?w:j.ticks}):void 0,width:t??h,height:n??p,offset:r},k?!0:y);Bf(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(M=$)}return x.createElement(En,{zIndex:l.zIndex},x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(fV,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),x.createElement(mV,Li({},l,{horizontalPoints:C})),x.createElement(pV,Li({},l,{verticalPoints:M})),x.createElement(dV,Li({},l,{offset:r,horizontalPoints:C,xAxis:j,yAxis:_})),x.createElement(hV,Li({},l,{offset:r,verticalPoints:M,xAxis:j,yAxis:_}))))}jg.displayName="CartesianGrid";var bV={},_M=Nn({name:"errorBars",initialState:bV,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:mQ,replaceErrorBar:pQ,removeErrorBar:vQ}=_M.actions,xV=_M.reducer,wV=["children"];function SV(e,t){if(e==null)return{};var n,r,l=jV(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 jV(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 _V={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},OV=x.createContext(_V);function AV(e){var{children:t}=e,n=SV(e,wV);return x.createElement(OV.Provider,{value:n},t)}function kb(e,t){var n,r,l=ye(h=>ja(h,e)),o=ye(h=>_a(h,t)),u=(n=l==null?void 0:l.allowDataOverflow)!==null&&n!==void 0?n:Ft.allowDataOverflow,f=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:Kt.allowDataOverflow,d=u||f;return{needClip:d,needClipX:u,needClipY:f}}function OM(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,l=Cb(),{needClipX:o,needClipY:u,needClip:f}=kb(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 NV(e){var t=Yi(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 gy={exports:{}},by={};/**
 * @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 VA;function EV(){if(VA)return by;VA=1;var e=co();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 by.useSyncExternalStoreWithSelector=function(d,h,p,y,b){var w=l(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=u(function(){function _(D){if(!N){if(N=!0,A=D,D=y(D),b!==void 0&&S.hasValue){var T=S.value;if(b(T,D))return C=T}return C=D}if(T=C,n(A,D))return T;var k=y(D);return b!==void 0&&b(T,k)?(A=D,T):(A=D,C=k)}var N=!1,A,C,M=p===void 0?null:p;return[function(){return _(h())},M===null?void 0:function(){return _(M())}]},[h,p,y,b]);var j=r(d,w[0],w[1]);return o(function(){S.hasValue=!0,S.value=j},[j]),f(j),j},by}var XA;function CV(){return XA||(XA=1,gy.exports=EV()),gy.exports}CV();function TV(e){e()}function MV(){let e=null,t=null;return{clear(){e=null,t=null},notify(){TV(()=>{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 ZA={notify(){},get:()=>[]};function DV(e,t){let n,r=ZA,l=0,o=!1;function u(j){p();const _=r.subscribe(j);let N=!1;return()=>{N||(N=!0,_(),y())}}function f(){r.notify()}function d(){S.onStateChange&&S.onStateChange()}function h(){return o}function p(){l++,n||(n=e.subscribe(d),r=MV())}function y(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=ZA)}function b(){o||(o=!0,p())}function w(){o&&(o=!1,y())}const S={addNestedSub:u,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:h,trySubscribe:b,tryUnsubscribe:w,getListeners:()=>r};return S}var kV=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PV=kV(),RV=()=>typeof navigator<"u"&&navigator.product==="ReactNative",zV=RV(),LV=()=>PV||zV?x.useLayoutEffect:x.useEffect,BV=LV();function WA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function IV(e,t){if(WA(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])||!WA(e[n[l]],t[n[l]]))return!1;return!0}var xy=Symbol.for("react-redux-context"),wy=typeof globalThis<"u"?globalThis:{};function $V(){if(!x.createContext)return{};const e=wy[xy]??(wy[xy]=new Map);let t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var UV=$V();function qV(e){const{children:t,context:n,serverState:r,store:l}=e,o=x.useMemo(()=>{const d=DV(l);return{store:l,subscription:d,getServerState:r?()=>r:void 0}},[l,r]),u=x.useMemo(()=>l.getState(),[l]);BV(()=>{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||UV;return x.createElement(f.Provider,{value:o},t)}var HV=qV,FV=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function KV(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function ph(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(FV.has(r)){if(e[r]==null&&t[r]==null)continue;if(!IV(e[r],t[r]))return!1}else if(!KV(e[r],t[r]))return!1;return!0}function Pr(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:yM}function Rr(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:yM}var AM=(e,t,n)=>ii(e,"xAxis",Pr(e,t),n),NM=(e,t,n)=>ai(e,"xAxis",Pr(e,t),n),EM=(e,t,n)=>ii(e,"yAxis",Rr(e,t),n),CM=(e,t,n)=>ai(e,"yAxis",Rr(e,t),n),YV=K([ze,AM,EM,NM,CM],(e,t,n,r,l)=>ga(e,"xAxis")?ao(t,r,!1):ao(n,l,!1)),GV=(e,t)=>t,TM=K([ih,GV],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),MM=e=>{var t=ze(e),n=ga(t,"xAxis");return n?"yAxis":"xAxis"},VV=(e,t)=>{var n=MM(e);return n==="yAxis"?Rr(e,t):Pr(e,t)},XV=(e,t,n)=>id(e,MM(e),VV(e,t),n),ZV=K([TM,XV],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,l=th(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]])}}}),WV=K([ze,AM,EM,NM,CM,ZV,jT,YV,TM,Q9],(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:w}=d,S;if(w&&w.length>0?S=w:S=p==null?void 0:p.slice(y,b+1),S!=null)return vX({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:l,dataStartIndex:y,areaSettings:d,stackedData:o,displayedData:S,chartBaseValue:h,bandSize:f})}}),QV=["id"],JV=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Hi(){return Hi=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},Hi.apply(null,arguments)}function DM(e,t){if(e==null)return{};var n,r,l=eX(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 eX(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 QA(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 Wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(n),!0).forEach(function(r){tX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tX(e,t,n){return(t=nX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e){var t=rX(e,"string");return typeof t=="symbol"?t:t+""}function rX(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 hd(e,t){return e&&e!=="none"?e:t}var aX=e=>{var{dataKey:t,name:n,stroke:r,fill:l,legendType:o,hide:u}=e;return[{inactive:u,dataKey:t,type:o,color:hd(r,l),value:po(n,t),payload:e}]},iX=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,positions:void 0,settings:{stroke:r,strokeWidth:l,fill:o,dataKey:t,nameKey:void 0,name:po(u,t),hide:f,type:h,color:hd(r,o),unit:d,graphicalItemId:p}};return x.createElement(Nb,{tooltipEntrySettings:y})});function lX(e){var{clipPathId:t,points:n,props:r}=e,{needClip:l,dot:o,dataKey:u}=r,f=An(r);return x.createElement(XY,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:u,baseProps:f,needClip:l,clipPathId:t})}function oX(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 Wl(Wl({},d),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:d,fill:void 0})});return x.createElement(aM,{value:t?l:void 0},n)}function JA(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=DM(o,QV),w=An(b),S=mn(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(eo,Hi({},S,{id:y,points:t,connectNulls:h,type:f,baseLine:n,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&x.createElement(eo,Hi({},w,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:t})),d!=="none"&&p&&x.createElement(eo,Hi({},w,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:n}))),x.createElement(lX,{points:t,props:b,clipPathId:l}))}function sX(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(!nt(f)||!nt(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 uX(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(!nt(f)||!nt(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 cX(e){var{alpha:t,layout:n,points:r,baseLine:l,strokeWidth:o}=e;return n==="vertical"?x.createElement(sX,{alpha:t,points:r,baseLine:l,strokeWidth:o}):x.createElement(uX,{alpha:t,points:r,baseLine:l,strokeWidth:o})}function fX(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:w}=r,S=x.useMemo(()=>({points:u,baseLine:f}),[u,f]),j=su(S,"recharts-area-"),_=p7(),[N,A]=x.useState(!1),C=!N,M=x.useCallback(()=>{typeof w=="function"&&w(),A(!1)},[w]),D=x.useCallback(()=>{typeof b=="function"&&b(),A(!0)},[b]);if(_==null)return null;var T=l.current,k=o.current;return x.createElement(oX,{showLabels:C,points:u},r.children,x.createElement(ou,{animationId:j,begin:h,duration:p,isActive:d,easing:y,onAnimationEnd:M,onAnimationStart:D,key:j},$=>{if(T){var Z=T.length/u.length,V=$===1?u:u.map((P,ue)=>{var U=Math.floor(ue*Z);if(T[U]){var ne=T[U];return Wl(Wl({},P),{},{x:st(ne.x,P.x,$),y:st(ne.y,P.y,$)})}return P}),re;return he(f)?re=st(k,f,$):mt(f)||or(f)?re=st(k,0,$):re=f.map((P,ue)=>{var U=Math.floor(ue*Z);if(Array.isArray(k)&&k[U]){var ne=k[U];return Wl(Wl({},P),{},{x:st(ne.x,P.x,$),y:st(ne.y,P.y,$)})}return P}),$>0&&(l.current=V,o.current=re),x.createElement(JA,{points:V,baseLine:re,needClip:t,clipPathId:n,props:r})}return $>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(cX,{alpha:$,points:u,baseLine:f,layout:_,strokeWidth:r.strokeWidth}))),x.createElement(Ot,{clipPath:"url(#animationClipPath-".concat(n,")")},x.createElement(JA,{points:u,baseLine:f,needClip:t,clipPathId:n,props:r})))}),x.createElement(xb,{label:r.label}))}function dX(e){var{needClip:t,clipPathId:n,props:r}=e,l=x.useRef(null),o=x.useRef();return x.createElement(fX,{needClip:t,clipPathId:n,props:r,previousPointsRef:l,previousBaselineRef:o})}class hX 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:w,zIndex:S}=this.props;if(t)return null;var j=$e("recharts-area",l),_=b,{r:N,strokeWidth:A}=NV(n),C=dM(n),M=N*2+A,D=f?"url(#clipPath-".concat(C?"":"dots-").concat(_,")"):void 0;return x.createElement(En,{zIndex:S},x.createElement(Ot,{className:j},f&&x.createElement("defs",null,x.createElement(OM,{clipPathId:_,xAxisId:d,yAxisId:h}),!C&&x.createElement("clipPath",{id:"clipPath-dots-".concat(_)},x.createElement("rect",{x:u-M/2,y:o-M/2,width:p+M,height:y+M}))),x.createElement(dX,{needClip:f,clipPathId:_,props:this.props})),x.createElement(UA,{points:r,mainColor:hd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:D}),this.props.isRange&&Array.isArray(w)&&x.createElement(UA,{points:w,mainColor:hd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:D}))}}var kM={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:kt.area};function mX(e){var t,n=Rt(e,kM),{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,connectNulls:f,dot:d,fill:h,fillOpacity:p,hide:y,isAnimationActive:b,legendType:w,stroke:S,xAxisId:j,yAxisId:_}=n,N=DM(n,JV),A=tl(),C=I5(),{needClip:M}=kb(j,_),D=un(),{points:T,isRange:k,baseLine:$}=(t=ye(U=>WV(U,e.id,D)))!==null&&t!==void 0?t:{},Z=Cb();if(A!=="horizontal"&&A!=="vertical"||Z==null||C!=="AreaChart"&&C!=="ComposedChart")return null;var{height:V,width:re,x:P,y:ue}=Z;return!T||!T.length?null:x.createElement(hX,Hi({},N,{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,baseLine:$,connectNulls:f,dot:d,fill:h,fillOpacity:p,height:V,hide:y,layout:A,isAnimationActive:b==="auto"?!lu.isSsr:b,isRange:k,legendType:w,needClip:M,points:T,stroke:S,width:re,left:P,top:ue,xAxisId:j,yAxisId:_}))}var pX=(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 vX(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:w}=e,S=l&&l.length,j=pX(o,u,n,f,d),_=o==="horizontal",N=!1,A=h.map((M,D)=>{var T,k,$;if(S)$=l[p+D];else{var Z=Qe(M,r);Array.isArray(Z)?($=Z,N=!0):$=[j,Z]}var V=(T=(k=$)===null||k===void 0?void 0:k[1])!==null&&T!==void 0?T:null,re=V==null||S&&!t&&Qe(M,r)==null;return _?{x:Ij({axis:f,ticks:y,bandSize:w,entry:M,index:D}),y:re?null:d.scale(V),value:$,payload:M}:{x:re?null:f.scale(V),y:Ij({axis:d,ticks:b,bandSize:w,entry:M,index:D}),value:$,payload:M}}),C;return S||N?C=A.map(M=>{var D=Array.isArray(M.value)?M.value[0]:null;return _?{x:M.x,y:D!=null&&M.y!=null?d.scale(D):null,payload:M.payload}:{x:D!=null?f.scale(D):null,y:M.y,payload:M.payload}}):C=_?d.scale(j):f.scale(j),{points:A,baseLine:C,isRange:N}}function yX(e){var t=Rt(e,kM),n=un();return x.createElement(Eb,{id:t.id,type:"area"},r=>x.createElement(x.Fragment,null,x.createElement(mM,{legendPayload:aX(t)}),x.createElement(iX,{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(vM,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:dC(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),x.createElement(mX,Hi({},t,{id:r}))))}var PM=x.memo(yX,ph);PM.displayName="Area";var gX="Invariant failed";function bX(e,t){throw new Error(gX)}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 md(e){return x.createElement(hM,_g({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var xX=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)||mt(r);return o?t(r,l):(o||bX(),n)}},wX=(e,t,n)=>n,SX=(e,t)=>t,Su=K([ih,SX],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),jX=K([Su],e=>e==null?void 0:e.maxBarSize),_X=(e,t,n,r)=>r,OX=K([ze,ih,Pr,Rr,wX],(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")),AX=(e,t,n)=>{var r=ze(e),l=Pr(e,t),o=Rr(e,t);if(!(l==null||o==null))return r==="horizontal"?id(e,"yAxis",o,n):id(e,"xAxis",l,n)},NX=(e,t)=>{var n=ze(e),r=Pr(e,t),l=Rr(e,t);if(!(r==null||l==null))return n==="horizontal"?zO(e,"xAxis",r):zO(e,"yAxis",l)},EX=K([OX,W9,NX],pG),CX=(e,t,n)=>{var r,l,o=Su(e,t);if(o!=null){var u=Pr(e,t),f=Rr(e,t);if(!(u==null||f==null)){var d=ze(e),h=BT(e),{maxBarSize:p}=o,y=mt(p)?h:p,b,w;return d==="horizontal"?(b=ii(e,"xAxis",u,n),w=ai(e,"xAxis",u,n)):(b=ii(e,"yAxis",f,n),w=ai(e,"yAxis",f,n)),(r=(l=ao(b,w,!0))!==null&&l!==void 0?l:y)!==null&&r!==void 0?r:0}}},RM=(e,t,n)=>{var r=ze(e),l=Pr(e,t),o=Rr(e,t);if(!(l==null||o==null)){var u,f;return r==="horizontal"?(u=ii(e,"xAxis",l,n),f=ai(e,"xAxis",l,n)):(u=ii(e,"yAxis",o,n),f=ai(e,"yAxis",o,n)),ao(u,f)}},TX=K([EX,BT,Z9,IT,CX,RM,jX],xG),MX=(e,t,n)=>{var r=Pr(e,t);if(r!=null)return ii(e,"xAxis",r,n)},DX=(e,t,n)=>{var r=Rr(e,t);if(r!=null)return ii(e,"yAxis",r,n)},kX=(e,t,n)=>{var r=Pr(e,t);if(r!=null)return ai(e,"xAxis",r,n)},PX=(e,t,n)=>{var r=Rr(e,t);if(r!=null)return ai(e,"yAxis",r,n)},RX=K([TX,Su],(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}}),zX=K([AX,Su],wG),LX=K([Bt,a0,MX,DX,kX,PX,RX,ze,jT,RM,zX,Su,_X],(e,t,n,r,l,o,u,f,d,h,p,y,b)=>{var{chartData:w,dataStartIndex:S,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,N;if(_!=null&&_.length>0?N=_:N=w==null?void 0:w.slice(S,j+1),N!=null)return dZ({layout:f,barSettings:y,pos:u,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:l,yAxisTicks:o,stackedData:p,displayedData:N,offset:e,cells:b,dataStartIndex:S})}}),BX=["index"];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)}function IX(e,t){if(e==null)return{};var n,r,l=$X(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 $X(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 zM=x.createContext(void 0),UX=e=>{var t=x.useContext(zM);if(t!=null)return t.stackId;if(e!=null)return dC(e)},qX=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),HX=e=>{var t=x.useContext(zM);if(t!=null){var{stackId:n}=t;return"url(#".concat(qX(n,e),")")}},FX=e=>{var{index:t}=e,n=IX(e,BX),r=HX(t);return x.createElement(Ot,Og({className:"recharts-bar-stack-layer",clipPath:r},n))},KX=["onMouseEnter","onMouseLeave","onClick"],YX=["value","background","tooltipPosition"],GX=["id"],VX=["onMouseEnter","onClick","onMouseLeave"];function va(){return va=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},va.apply(null,arguments)}function eN(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 fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(r){XX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XX(e,t,n){return(t=ZX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZX(e){var t=WX(e,"string");return typeof t=="symbol"?t:t+""}function WX(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 pd(e,t){if(e==null)return{};var n,r,l=QX(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 QX(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 JX=e=>{var{dataKey:t,name:n,fill:r,legendType:l,hide:o}=e;return[{inactive:o,dataKey:t,type:l,color:r,value:po(n,t),payload:e}]},eZ=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,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:l,dataKey:t,nameKey:void 0,name:po(o,t),hide:u,type:d,color:l,unit:f,graphicalItemId:h}};return x.createElement(Nb,{tooltipEntrySettings:p})});function tZ(e){var t=ye(li),{data:n,dataKey:r,background:l,allOtherBarProps:o}=e,{onMouseEnter:u,onMouseLeave:f,onClick:d}=o,h=pd(o,KX),p=_b(u,r,o.id),y=Ob(f),b=Ab(d,r,o.id);if(!l||n==null)return null;var w=Yi(l);return x.createElement(En,{zIndex:SG(l,kt.barBackground)},n.map((S,j)=>{var{value:_,background:N,tooltipPosition:A}=S,C=pd(S,YX);if(!N)return null;var M=p(S,j),D=y(S,j),T=b(S,j),k=fn(fn(fn(fn(fn({option:l,isActive:String(j)===t},C),{},{fill:"#eee"},N),w),tu(h,S,j)),{},{onMouseEnter:M,onMouseLeave:D,onClick:T,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return x.createElement(md,va({key:"background-bar-".concat(j)},k))}))}function nZ(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 fn(fn({},u),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:u,fill:o.fill})});return x.createElement(aM,{value:t?l:void 0},n)}function rZ(e){var{shape:t,activeBar:n,baseProps:r,entry:l,index:o,dataKey:u}=e,f=ye(li),d=ye(hb),h=n&&String(o)===f&&(d==null||u===d),p=h?n:t;return h?x.createElement(En,{zIndex:kt.activeBar},x.createElement(md,va({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u}))):x.createElement(md,va({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u}))}function aZ(e){var{shape:t,baseProps:n,entry:r,index:l,dataKey:o}=e;return x.createElement(md,va({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:l,dataKey:o}))}function iZ(e){var t,{data:n,props:r}=e,l=(t=An(r))!==null&&t!==void 0?t:{},{id:o}=l,u=pd(l,GX),{shape:f,dataKey:d,activeBar:h}=r,{onMouseEnter:p,onClick:y,onMouseLeave:b}=r,w=pd(r,VX),S=_b(p,d,o),j=Ob(b),_=Ab(y,d,o);return n?x.createElement(x.Fragment,null,n.map((N,A)=>x.createElement(FX,va({index:A,key:"rectangle-".concat(N==null?void 0:N.x,"-").concat(N==null?void 0:N.y,"-").concat(N==null?void 0:N.value,"-").concat(A),className:"recharts-bar-rectangle"},tu(w,N,A),{onMouseEnter:S(N,A),onMouseLeave:j(N,A),onClick:_(N,A)}),h?x.createElement(rZ,{shape:f,activeBar:h,baseProps:u,entry:N,index:A,dataKey:d}):x.createElement(aZ,{shape:f,baseProps:u,entry:N,index:A,dataKey:d})))):null}function lZ(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=su(t,"recharts-bar-"),[w,S]=x.useState(!1),j=!w,_=x.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),N=x.useCallback(()=>{typeof p=="function"&&p(),S(!0)},[p]);return x.createElement(nZ,{showLabels:j,rects:r},x.createElement(ou,{animationId:b,begin:u,duration:f,isActive:o,easing:d,onAnimationEnd:_,onAnimationStart:N,key:b},A=>{var C=A===1?r:r==null?void 0:r.map((M,D)=>{var T=y&&y[D];if(T)return fn(fn({},M),{},{x:st(T.x,M.x,A),y:st(T.y,M.y,A),width:st(T.width,M.width,A),height:st(T.height,M.height,A)});if(l==="horizontal"){var k=st(0,M.height,A),$=st(M.stackedBarStart,M.y,A);return fn(fn({},M),{},{y:$,height:k})}var Z=st(0,M.width,A),V=st(M.stackedBarStart,M.x,A);return fn(fn({},M),{},{width:Z,x:V})});return A>0&&(n.current=C??null),C==null?null:x.createElement(Ot,null,x.createElement(iZ,{props:t,data:C}))}),x.createElement(xb,{label:t.label}),t.children)}function oZ(e){var t=x.useRef(null);return x.createElement(lZ,{previousRectanglesRef:t,props:e})}var LM=0,sZ=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Qe(e,t)}};class uZ 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=$e("recharts-bar",l),y=h;return x.createElement(Ot,{className:p,id:h},f&&x.createElement("defs",null,x.createElement(OM,{clipPathId:y,xAxisId:o,yAxisId:u})),x.createElement(Ot,{className:"recharts-bar-rectangles",clipPath:f?"url(#clipPath-".concat(y,")"):void 0},x.createElement(tZ,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),x.createElement(oZ,this.props)))}}var cZ={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:LM,xAxisId:0,yAxisId:0,zIndex:kt.bar};function fZ(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}=kb(t,n),b=tl(),w=un(),S=jb(e.children,qi),j=ye(A=>LX(A,e.id,w,S));if(b!=="vertical"&&b!=="horizontal")return null;var _,N=j==null?void 0:j[0];return N==null||N.height==null||N.width==null?_=0:_=b==="vertical"?N.height/2:N.width/2,x.createElement(AV,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:sZ,errorBarOffset:_},x.createElement(uZ,va({},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 dZ(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:w,parentViewBox:S,dataStartIndex:j}=e,_=t==="horizontal"?f:u,N=p?_.scale.domain():null,A=kL({numericAxis:_}),C=_.scale(A);return y.map((M,D)=>{var T,k,$,Z,V,re;if(p){var P=p[D+j];if(P==null)return null;T=EL(P,N)}else T=Qe(M,n),Array.isArray(T)||(T=[A,T]);var ue=xX(r,LM)(T[1],D);if(t==="horizontal"){var U,[ne,B]=[f.scale(T[0]),f.scale(T[1])];k=$j({axis:u,ticks:d,bandSize:o,offset:l.offset,entry:M,index:D}),$=(U=B??ne)!==null&&U!==void 0?U:void 0,Z=l.size;var Q=ne-B;if(V=or(Q)?0:Q,re={x:k,y:b.top,width:Z,height:b.height},Math.abs(ue)>0&&Math.abs(V)<Math.abs(ue)){var ie=Gt(V||ue)*(Math.abs(ue)-Math.abs(V));$-=ie,V+=ie}}else{var[fe,de]=[u.scale(T[0]),u.scale(T[1])];if(k=fe,$=$j({axis:f,ticks:h,bandSize:o,offset:l.offset,entry:M,index:D}),Z=de-fe,V=l.size,re={x:b.left,y:$,width:b.width,height:V},Math.abs(ue)>0&&Math.abs(Z)<Math.abs(ue)){var R=Gt(Z||ue)*(Math.abs(ue)-Math.abs(Z));Z+=R}}if(k==null||$==null||Z==null||V==null)return null;var G=fn(fn({},M),{},{stackedBarStart:C,x:k,y:$,width:Z,height:V,value:p?T:T[1],payload:M,background:re,tooltipPosition:{x:k+Z/2,y:$+V/2},parentViewBox:S},w&&w[D]&&w[D].props);return G}).filter(Boolean)}function hZ(e){var t=Rt(e,cZ),n=UX(t.stackId),r=un();return x.createElement(Eb,{id:t.id,type:"bar"},l=>x.createElement(x.Fragment,null,x.createElement(mM,{legendPayload:JX(t)}),x.createElement(eZ,{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(vM,{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(En,{zIndex:t.zIndex},x.createElement(fZ,va({},t,{id:l})))))}var Ag=x.memo(hZ,ph);Ag.displayName="Bar";var mZ=["domain","range"],pZ=["domain","range"];function tN(e,t){if(e==null)return{};var n,r,l=vZ(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 vZ(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 nN(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 BM(e,t){if(e===t)return!0;var{domain:n,range:r}=e,l=tN(e,mZ),{domain:o,range:u}=t,f=tN(t,pZ);return!nN(n,o)||!nN(r,u)?!1:ph(l,f)}var yZ=["dangerouslySetInnerHTML","ticks","scale"],gZ=["id","scale"];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 rN(e,t){if(e==null)return{};var n,r,l=bZ(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 bZ(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 xZ(e){var t=at(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(eG(e)):n.current!==e&&t(tG({prev:n.current,next:e})),n.current=e},[e,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(nG(n.current)),n.current=null)},[t]),null}var wZ=e=>{var{xAxisId:t,className:n}=e,r=ye(a0),l=un(),o="xAxis",u=ye(N=>y5(N,o,t,l)),f=ye(N=>h5(N,t)),d=ye(N=>XU(N,t)),h=ye(N=>VT(N,t));if(f==null||d==null||h==null)return null;var{dangerouslySetInnerHTML:p,ticks:y,scale:b}=e,w=rN(e,yZ),{id:S,scale:j}=h,_=rN(h,gZ);return x.createElement(Db,Ng({},w,_,{x:d.x,y:d.y,width:f.width,height:f.height,className:$e("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u,axisType:o}))},SZ={allowDataOverflow:Ft.allowDataOverflow,allowDecimals:Ft.allowDecimals,allowDuplicatedCategory:Ft.allowDuplicatedCategory,angle:Ft.angle,axisLine:ua.axisLine,height:Ft.height,hide:!1,includeHidden:Ft.includeHidden,interval:Ft.interval,minTickGap:Ft.minTickGap,mirror:Ft.mirror,orientation:Ft.orientation,padding:Ft.padding,reversed:Ft.reversed,scale:Ft.scale,tick:Ft.tick,tickCount:Ft.tickCount,tickLine:ua.tickLine,tickSize:ua.tickSize,type:Ft.type,xAxisId:0},jZ=e=>{var t=Rt(e,SZ);return x.createElement(x.Fragment,null,x.createElement(xZ,{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(wZ,t))},yf=x.memo(jZ,BM);yf.displayName="XAxis";var _Z=["dangerouslySetInnerHTML","ticks","scale"],OZ=["id","scale"];function Eg(){return Eg=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},Eg.apply(null,arguments)}function aN(e,t){if(e==null)return{};var n,r,l=AZ(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 AZ(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 NZ(e){var t=at(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(rG(e)):n.current!==e&&t(aG({prev:n.current,next:e})),n.current=e},[e,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(iG(n.current)),n.current=null)},[t]),null}var EZ=e=>{var{yAxisId:t,className:n,width:r,label:l}=e,o=x.useRef(null),u=x.useRef(null),f=ye(a0),d=un(),h=at(),p="yAxis",y=ye(T=>m5(T,t)),b=ye(T=>WU(T,t)),w=ye(T=>y5(T,p,t,d)),S=ye(T=>XT(T,t));if(x.useLayoutEffect(()=>{if(!(r!=="auto"||!y||bb(l)||x.isValidElement(l)||S==null)){var T=o.current;if(T){var k=T.getCalculatedWidth();Math.round(y.width)!==Math.round(k)&&h(lG({id:t,width:k}))}}},[w,y,h,l,t,r,S]),y==null||b==null||S==null)return null;var{dangerouslySetInnerHTML:j,ticks:_,scale:N}=e,A=aN(e,_Z),{id:C,scale:M}=S,D=aN(S,OZ);return x.createElement(Db,Eg({},A,D,{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:$e("recharts-".concat(p," ").concat(p),n),viewBox:f,ticks:w,axisType:p}))},CZ={allowDataOverflow:Kt.allowDataOverflow,allowDecimals:Kt.allowDecimals,allowDuplicatedCategory:Kt.allowDuplicatedCategory,angle:Kt.angle,axisLine:ua.axisLine,hide:!1,includeHidden:Kt.includeHidden,interval:Kt.interval,minTickGap:Kt.minTickGap,mirror:Kt.mirror,orientation:Kt.orientation,padding:Kt.padding,reversed:Kt.reversed,scale:Kt.scale,tick:Kt.tick,tickCount:Kt.tickCount,tickLine:ua.tickLine,tickSize:ua.tickSize,type:Kt.type,width:Kt.width,yAxisId:0},TZ=e=>{var t=Rt(e,CZ);return x.createElement(x.Fragment,null,x.createElement(NZ,{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(EZ,t))},gf=x.memo(TZ,BM);gf.displayName="YAxis";var MZ=(e,t)=>t,Pb=K([MZ,ze,YT,$t,k5,Oa,dH,Bt],bH),Rb=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)}},IM=sr("mouseClick"),$M=ru();$M.startListening({actionCreator:IM,effect:(e,t)=>{var n=e.payload,r=Pb(t.getState(),Rb(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(fq({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Cg=sr("mouseMove"),UM=ru(),rf=null;UM.startListening({actionCreator:Cg,effect:(e,t)=>{var n=e.payload;rf!==null&&cancelAnimationFrame(rf);var r=Rb(n);rf=requestAnimationFrame(()=>{var l=t.getState(),o=ob(l,l.tooltip.settings.shared);if(o==="axis"){var u=Pb(l,r);(u==null?void 0:u.activeIndex)!=null?t.dispatch(O5({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(_5())}rf=null})}});function DZ(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 iN={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},qM=Nn({name:"rootProps",initialState:iN,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:iN.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}}}),kZ=qM.reducer,{updateOptions:PZ}=qM.actions,HM=Nn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:RZ}=HM.actions,zZ=HM.reducer,FM=sr("keyDown"),KM=sr("focus"),zb=ru();zb.startListening({actionCreator:FM,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=sb(l,_o(n),yu(n),xu(n)),f=u==null?-1:Number(u);if(!(!Number.isFinite(f)||f<0)){var d=Oa(n);if(o==="Enter"){var h=od(n,"axis","hover",String(l.index));t.dispatch(vg({active:!l.active,activeIndex:l.index,activeCoordinate:h}));return}var p=tq(n),y=p==="left-to-right"?1:-1,b=o==="ArrowRight"?1:-1,w=f+b*y;if(!(d==null||w>=d.length||w<0)){var S=od(n,"axis","hover",String(w));t.dispatch(vg({active:!0,activeIndex:w.toString(),activeCoordinate:S}))}}}}}});zb.startListening({actionCreator:KM,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=od(n,"axis","hover",String(o));t.dispatch(vg({active:!0,activeIndex:o,activeCoordinate:u}))}}}});var rr=sr("externalEvent"),YM=ru(),Sy=new Map;YM.startListening({actionCreator:rr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var l=r.type,o=Sy.get(l);o!==void 0&&cancelAnimationFrame(o);var u=requestAnimationFrame(()=>{try{var f=t.getState(),d={activeCoordinate:Wq(f),activeDataKey:hb(f),activeIndex:li(f),activeLabel:z5(f),activeTooltipIndex:li(f),isTooltipActive:Qq(f)};n(d,r)}finally{Sy.delete(l)}});Sy.set(l,u)}}});var LZ=K([So],e=>e.tooltipItemPayloads),BZ=K([LZ,bu,(e,t)=>t,(e,t,n)=>n],(e,t,n,r)=>{var l=e.find(f=>f.settings.graphicalItemId===r);if(l!=null){var{positions:o}=l;if(o!=null){var u=t(o,n);return u}}}),GM=sr("touchMove"),VM=ru();VM.startListening({actionCreator:GM,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),l=ob(r,r.tooltip.settings.shared);if(l==="axis"){var o=n.touches[0];if(o==null)return;var u=Pb(r,Rb({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(u==null?void 0:u.activeIndex)!=null&&t.dispatch(O5({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(mC),y=(f=h.getAttribute(pC))!==null&&f!==void 0?f:void 0,b=jo(r).find(j=>j.id===y);if(p==null||b==null||y==null)return;var{dataKey:w}=b,S=BZ(r,p,y);t.dispatch(j5({activeDataKey:w,activeIndex:p,activeCoordinate:S,activeGraphicalItemId:y}))}}}});var IZ=RE({brush:jG,cartesianAxis:oG,chartData:ZH,errorBars:xV,graphicalItems:hY,layout:SL,legend:T7,options:KH,polarAxis:NK,polarOptions:zZ,referenceElements:TG,rootProps:kZ,tooltip:dq,zIndex:kH}),$Z=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return G8({reducer:IZ,preloadedState:t,middleware:r=>{var l;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((l="es6")!==null&&l!==void 0?l:"")}).concat([$M.middleware,UM.middleware,zb.middleware,YM.middleware,VM.middleware])},enhancers:r=>{var l=r;return typeof r=="function"&&(l=r()),l.concat(ZE({type:"raf"}))},devTools:{serialize:{replacer:DZ},name:"recharts-".concat(n)}})};function XM(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,l=un(),o=x.useRef(null);if(l)return n;o.current==null&&(o.current=$Z(t,r));var u=Wg;return x.createElement(HV,{context:u,store:o.current},n)}function UZ(e){var{layout:t,margin:n}=e,r=at(),l=un();return x.useEffect(()=>{l||(r(bL(t)),r(gL(n)))},[r,l,t,n]),null}var ZM=x.memo(UZ,ph);function WM(e){var t=at();return x.useEffect(()=>{t(PZ(e))},[t,e]),null}function lN(e){var{zIndex:t,isPanorama:n}=e,r=x.useRef(null),l=at();return x.useLayoutEffect(()=>(r.current&&l(MH({zIndex:t,element:r.current,isPanorama:n})),()=>{l(DH({zIndex:t,isPanorama:n}))}),[l,t,n]),x.createElement("g",{tabIndex:-1,ref:r})}function oN(e){var{children:t,isPanorama:n}=e,r=ye(wH);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(lN,{key:u,zIndex:u,isPanorama:n})),t,o.map(u=>x.createElement(lN,{key:u,zIndex:u,isPanorama:n})))}var qZ=["children"];function HZ(e,t){if(e==null)return{};var n,r,l=FZ(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 FZ(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 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)}var KZ={width:"100%",height:"100%",display:"block"},YZ=x.forwardRef((e,t)=>{var n=l0(),r=o0(),l=DC();if(!Mr(n)||!Mr(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($g,vd({},u,{title:f,desc:d,role:p,tabIndex:h,width:n,height:r,style:KZ,ref:t}),o)}),GZ=e=>{var{children:t}=e,n=ye($d);if(!n)return null;var{width:r,height:l,y:o,x:u}=n;return x.createElement($g,{width:r,height:l,x:u,y:o},t)},sN=x.forwardRef((e,t)=>{var{children:n}=e,r=HZ(e,qZ),l=un();return l?x.createElement(GZ,null,x.createElement(oN,{isPanorama:!0},n)):x.createElement(YZ,vd({ref:t},r),x.createElement(oN,{isPanorama:!1},n))});function VZ(){var e=at(),[t,n]=x.useState(null),r=ye(IL);return x.useEffect(()=>{if(t!=null){var l=t.getBoundingClientRect(),o=l.width/t.offsetWidth;nt(o)&&o!==r&&e(wL(o))}},[t,e,r]),n}function uN(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 XZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(n),!0).forEach(function(r){ZZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZZ(e,t,n){return(t=WZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WZ(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 el(){return el=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},el.apply(null,arguments)}var JZ=()=>(iF(),null);function yd(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var eW=x.forwardRef((e,t)=>{var n,r,l=x.useRef(null),[o,u]=x.useState({containerWidth:yd((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:yd((r=e.style)===null||r===void 0?void 0:r.height)}),f=x.useCallback((h,p)=>{u(y=>{var b=Math.round(h),w=Math.round(p);return y.containerWidth===b&&y.containerHeight===w?y:{containerWidth:b,containerHeight:w}})},[]),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=S=>{var{width:j,height:_}=S[0].contentRect;f(j,_)},w=new ResizeObserver(b);w.observe(h),l.current=w}},[t,f]);return x.useEffect(()=>()=>{var h=l.current;h!=null&&h.disconnect()},[f]),x.createElement(x.Fragment,null,x.createElement(qd,{width:o.containerWidth,height:o.containerHeight}),x.createElement("div",el({ref:d},e)))}),tW=x.forwardRef((e,t)=>{var{width:n,height:r}=e,[l,o]=x.useState({containerWidth:yd(n),containerHeight:yd(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(qd,{width:l.containerWidth,height:l.containerHeight}),x.createElement("div",el({ref:f},e)))}),nW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return x.createElement(x.Fragment,null,x.createElement(qd,{width:n,height:r}),x.createElement("div",el({ref:t},e)))}),rW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return ca(n)||ca(r)?x.createElement(tW,el({},e,{ref:t})):x.createElement(nW,el({},e,{ref:t}))});function aW(e){return e===!0?eW:rW}var iW=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:w,onTouchMove:S,onTouchStart:j,style:_,width:N,responsive:A,dispatchTouchEvents:C=!0}=e,M=x.useRef(null),D=at(),[T,k]=x.useState(null),[$,Z]=x.useState(null),V=VZ(),re=i0(),P=(re==null?void 0:re.width)>0?re.width:N,ue=(re==null?void 0:re.height)>0?re.height:l,U=x.useCallback(J=>{V(J),typeof t=="function"&&t(J),k(J),Z(J),J!=null&&(M.current=J)},[V,t,k,Z]),ne=x.useCallback(J=>{D(IM(J)),D(rr({handler:o,reactEvent:J}))},[D,o]),B=x.useCallback(J=>{D(Cg(J)),D(rr({handler:h,reactEvent:J}))},[D,h]),Q=x.useCallback(J=>{D(_5()),D(rr({handler:p,reactEvent:J}))},[D,p]),ie=x.useCallback(J=>{D(Cg(J)),D(rr({handler:y,reactEvent:J}))},[D,y]),fe=x.useCallback(()=>{D(KM())},[D]),de=x.useCallback(J=>{D(FM(J.key))},[D]),R=x.useCallback(J=>{D(rr({handler:u,reactEvent:J}))},[D,u]),G=x.useCallback(J=>{D(rr({handler:f,reactEvent:J}))},[D,f]),oe=x.useCallback(J=>{D(rr({handler:d,reactEvent:J}))},[D,d]),ce=x.useCallback(J=>{D(rr({handler:b,reactEvent:J}))},[D,b]),pe=x.useCallback(J=>{D(rr({handler:j,reactEvent:J}))},[D,j]),xe=x.useCallback(J=>{C&&D(GM(J)),D(rr({handler:S,reactEvent:J}))},[D,C,S]),be=x.useCallback(J=>{D(rr({handler:w,reactEvent:J}))},[D,w]),Je=aW(A);return x.createElement(F5.Provider,{value:T},x.createElement(QN.Provider,{value:$},x.createElement(Je,{width:P??(_==null?void 0:_.width),height:ue??(_==null?void 0:_.height),className:$e("recharts-wrapper",r),style:XZ({position:"relative",cursor:"default",width:P,height:ue},_),onClick:ne,onContextMenu:R,onDoubleClick:G,onFocus:fe,onKeyDown:de,onMouseDown:oe,onMouseEnter:B,onMouseLeave:Q,onMouseMove:ie,onMouseUp:ce,onTouchEnd:be,onTouchMove:xe,onTouchStart:pe,ref:U},x.createElement(JZ,null),n)))}),lW=["width","height","responsive","children","className","style","compact","title","desc"];function oW(e,t){if(e==null)return{};var n,r,l=sW(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 sW(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 QM=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=oW(e,lW),b=An(y);return d?x.createElement(x.Fragment,null,x.createElement(qd,{width:n,height:r}),x.createElement(sN,{otherAttributes:b,title:h,desc:p},o)):x.createElement(iW,{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(sN,{otherAttributes:b,title:h,desc:p,ref:t},x.createElement(DG,null,o)))});function Tg(){return Tg=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},Tg.apply(null,arguments)}var uW={top:5,right:5,bottom:5,left:5},cW={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:uW,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},JM=x.forwardRef(function(t,n){var r,l=Rt(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(XM,{preloadedState:{options:p},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},x.createElement(bM,{chartData:h.data}),x.createElement(ZM,{layout:l.layout,margin:l.margin}),x.createElement(WM,{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(QM,Tg({},l,{ref:n})))}),fW=["axis","item"],cN=x.forwardRef((e,t)=>x.createElement(JM,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:fW,tooltipPayloadSearcher:gb,categoricalChartProps:e,ref:t}));function dW(e){var t=at();return x.useEffect(()=>{t(RZ(e))},[t,e]),null}var hW=["layout"];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 mW(e,t){if(e==null)return{};var n,r,l=pW(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 pW(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 vW={top:5,right:5,bottom:5,left:5},e3={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:vW,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},yW=x.forwardRef(function(t,n){var r,l=Rt(t.categoricalChartProps,e3),{layout:o}=l,u=mW(l,hW),{chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p}=t,y={chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p,eventEmitter:void 0};return x.createElement(XM,{preloadedState:{options:y},reduxStoreName:(r=l.id)!==null&&r!==void 0?r:f},x.createElement(bM,{chartData:l.data}),x.createElement(ZM,{layout:o,margin:l.margin}),x.createElement(WM,{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(dW,{cx:l.cx,cy:l.cy,startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius}),x.createElement(QM,Mg({},u,{ref:n})))});function fN(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 dN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){gW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gW(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=xW(e,"string");return typeof t=="symbol"?t:t+""}function xW(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 wW=["item"],SW=dN(dN({},e3),{},{layout:"centric",startAngle:0,endAngle:360}),hN=x.forwardRef((e,t)=>{var n=Rt(e,SW);return x.createElement(yW,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:wW,tooltipPayloadSearcher:gb,categoricalChartProps:n,ref:t})}),jW=["axis"],_W=x.forwardRef((e,t)=>x.createElement(JM,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:jW,tooltipPayloadSearcher:gb,categoricalChartProps:e,ref:t}));const af=({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(KP,{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})]})]}),mN=()=>{var ue;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,w]=x.useState([]),[S,j]=x.useState(""),[_,N]=x.useState([]),[A,C]=x.useState([]),[M,D]=x.useState([]),T=U=>{const ne=new Date,B=ne.getFullYear(),Q=String(ne.getMonth()+1).padStart(2,"0"),ie=String(ne.getDate()).padStart(2,"0"),fe=`${B}-${Q}-${ie}`;let de;switch(U){case"today":de={start_date:fe,end_date:fe};break;case"yesterday":const G=new Date(ne);G.setDate(G.getDate()-1);const oe=G.getFullYear(),ce=String(G.getMonth()+1).padStart(2,"0"),pe=String(G.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 Je=be.getFullYear(),J=String(be.getMonth()+1).padStart(2,"0"),_e=String(be.getDate()).padStart(2,"0");de={start_date:`${Je}-${J}-${_e}`,end_date:fe};break;case"7days":const Ae=new Date(ne);Ae.setDate(Ae.getDate()-7);const se=Ae.getFullYear(),ut=String(Ae.getMonth()+1).padStart(2,"0"),q=String(Ae.getDate()).padStart(2,"0");de={start_date:`${se}-${ut}-${q}`,end_date:fe};break;case"30days":const Se=new Date(ne);Se.setDate(Se.getDate()-30);const He=Se.getFullYear(),Cn=String(Se.getMonth()+1).padStart(2,"0"),zr=String(Se.getDate()).padStart(2,"0");de={start_date:`${He}-${Cn}-${zr}`,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 xt=Tn.getFullYear(),al=String(Tn.getMonth()+1).padStart(2,"0"),ci=String(Tn.getDate()).padStart(2,"0");de={start_date:`${xt}-${al}-${ci}`,end_date:fe}}break;default:const le=new Date(ne);le.setDate(le.getDate()-7);const Le=le.getFullYear(),Ge=String(le.getMonth()+1).padStart(2,"0"),At=String(le.getDate()).padStart(2,"0");de={start_date:`${Le}-${Ge}-${At}`,end_date:fe}}const R=k(U,ne);R&&m2(R).then(y).catch(console.error),m2(de).then(r).catch(console.error)},k=(U,ne)=>{switch(ne.getFullYear(),String(ne.getMonth()+1).padStart(2,"0"),String(ne.getDate()).padStart(2,"0"),U){case"today":const B=new Date(ne);B.setDate(B.getDate()-1);const Q=B.getFullYear(),ie=String(B.getMonth()+1).padStart(2,"0"),fe=String(B.getDate()).padStart(2,"0");return{start_date:`${Q}-${ie}-${fe}`,end_date:`${Q}-${ie}-${fe}`};case"yesterday":const de=new Date(ne);de.setDate(de.getDate()-2);const R=de.getFullYear(),G=String(de.getMonth()+1).padStart(2,"0"),oe=String(de.getDate()).padStart(2,"0");return{start_date:`${R}-${G}-${oe}`,end_date:`${R}-${G}-${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}},$=()=>{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 B=(U-ne)/ne*100;return`${B>=0?"+":""}${B.toFixed(1)}%`};x.useEffect(()=>{F6().then(t).catch(console.error),T(l)},[l]),x.useEffect(()=>{const{startDate:U,endDate:ne}=Z(l);fetch(`http://localhost:8080/reports/transactions?page=1&page_size=20&start_date=${U}&end_date=${ne}`,{credentials:"include"}).then(B=>B.json()).then(B=>{w(B.transactions||[])}).catch(console.error),fetch(`http://localhost:8080/reports/categories?start_date=${U}&end_date=${ne}`,{credentials:"include"}).then(B=>B.json()).then(B=>{const Q=B.categories||[];N(Q);const ie=Q.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}));C(ie)}).catch(console.error),D([{name:"直接访问",value:45,color:"#FFE815"},{name:"搜索",value:30,color:"#000000"},{name:"推荐",value:15,color:"#9CA3AF"},{name:"其他",value:10,color:"#E5E7EB"}])},[l]);const Z=U=>{const ne=new Date,B=ne.toISOString().split("T")[0];let Q=B;if(U==="7days"){const ie=new Date(ne);ie.setDate(ie.getDate()-7),Q=ie.toISOString().split("T")[0]}else if(U==="30days"){const ie=new Date(ne);ie.setDate(ie.getDate()-30),Q=ie.toISOString().split("T")[0]}return{startDate:Q,endDate:B}};if(!e||!n)return m.jsx("div",{className:"p-8 flex justify-center text-gray-400",children:m.jsx(Uk,{className:"w-8 h-8 animate-spin text-[#FFE815]"})});const V=((ue=n.daily_stats)==null?void 0:ue.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})))||[],re=[{key:"today",label:"今天"},{key:"yesterday",label:"昨天"},{key:"3days",label:"三天内"},{key:"7days",label:"7天内"},{key:"30days",label:"一个月内"},{key:"custom",label:"自定义"}],P=["#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:[re.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:()=>T("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(af,{title:"累计营收 (CNY)",value:`¥${n.revenue_stats.total_amount.toLocaleString("zh-CN",{minimumFractionDigits:2})}`,icon:rP,colorClass:"bg-yellow-400",trend:$()||void 0}),m.jsx(af,{title:"活跃账号 / 总数",value:`${e.active_cookies} / ${e.total_cookies}`,icon:_N,colorClass:"bg-blue-500"}),m.jsx(af,{title:"订单数",value:n.revenue_stats.total_orders.toLocaleString(),icon:ZS,colorClass:"bg-orange-500"}),m.jsx(af,{title:"库存卡密余量",value:e.total_cards,icon:wN,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:V.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(ZS,{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:"所选时间范围内暂无订单记录"})]}):V.length<=2?m.jsx(ws,{width:"100%",height:"100%",children:m.jsxs(cN,{data:V,margin:{top:30,right:20,left:-20,bottom:30},barCategoryGap:30,children:[m.jsx(yf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#374151",fontSize:14,fontWeight:600},dy:10}),m.jsx(gf,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},tickFormatter:U=>`¥${U}`}),m.jsx(iy,{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(Ag,{dataKey:"amount",fill:"#FFE815",radius:[12,12,0,0],stroke:"#000000",strokeWidth:0,children:V.map((U,ne)=>m.jsx(qi,{fill:["#FFE815","#FCD34D","#FBBF24"][ne%3]},`cell-${ne}`))})]})}):m.jsx(ws,{width:"100%",height:"100%",children:m.jsxs(_W,{data:V,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(yf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},dy:15}),m.jsx(gf,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500}}),m.jsx(jg,{vertical:!1,stroke:"#F3F4F6",strokeDasharray:"3 3"}),m.jsx(iy,{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(PM,{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(ws,{width:"100%",height:"100%",children:m.jsxs(cN,{data:A,layout:"vertical",children:[m.jsx(jg,{strokeDasharray:"3 3",horizontal:!0,vertical:!1,stroke:"#f0f0f0"}),m.jsx(yf,{type:"number",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:12}}),m.jsx(gf,{type:"category",dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#6B7280",fontSize:12},width:100}),m.jsx(iy,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"}}),m.jsx(Ag,{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(ws,{width:"100%",height:"100%",children:m.jsxs(hN,{children:[m.jsx(Sg,{data:M,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:M.map((U,ne)=>m.jsx(qi,{fill:U.color},`cell-${ne}`))}),m.jsx(MC,{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:S,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(S.toLowerCase())||U.item_name&&U.item_name.toLowerCase().includes(S.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(S.toLowerCase())||U.item_name&&U.item_name.toLowerCase().includes(S.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(ws,{width:"100%",height:"100%",children:m.jsx(hN,{children:m.jsx(Sg,{data:_,cx:"50%",cy:"50%",innerRadius:60,outerRadius:100,paddingAngle:2,dataKey:"value",children:_.map((U,ne)=>m.jsx(qi,{fill:U.color||P[ne%P.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||P[_.indexOf(U)%P.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))})]})]})]})]})},OW=()=>{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,w]=x.useState(null),[S,j]=x.useState({remark:"",cookie:"",auto_confirm:!1,pause_duration:0,username:"",login_password:"",show_browser:!1,showLoginPassword:!1}),[_,N]=x.useState({ai_enabled:!1,max_discount_percent:10,max_discount_amount:100,max_bargain_rounds:3,custom_prompts:""}),[A,C]=x.useState(!1),M=async()=>{r(!0);try{const P=await Bg();let ue={};try{ue=await I6()}catch(ne){console.error("Failed to load AI settings:",ne)}const U=P.map(ne=>{var B,Q,ie,fe,de;return{...ne,ai_enabled:((B=ue[ne.id])==null?void 0:B.ai_enabled)??!1,max_discount_percent:((Q=ue[ne.id])==null?void 0:Q.max_discount_percent)??10,max_discount_amount:((ie=ue[ne.id])==null?void 0:ie.max_discount_amount)??100,max_bargain_rounds:((fe=ue[ne.id])==null?void 0:fe.max_bargain_rounds)??3,custom_prompts:((de=ue[ne.id])==null?void 0:de.custom_prompts)??""}});t(U)}catch(P){console.error("Failed to load accounts:",P)}finally{r(!1)}};x.useEffect(()=>{M()},[]);const D=async(P,ue)=>{await D6(P,!ue),M()},T=async P=>{confirm("确认删除该账号吗？")&&(await k6(P),M())},k=P=>{w(P),j({remark:P.remark||P.note||"",cookie:P.cookie||P.value||"",auto_confirm:P.auto_confirm||!1,pause_duration:P.pause_duration||0,username:P.username||"",login_password:P.login_password||"",show_browser:P.show_browser||!1,showLoginPassword:!1}),y("edit")},$=async P=>{w(P),C(!0);try{const ue=await tR(P.id);N({ai_enabled:ue.ai_enabled??!1,max_discount_percent:ue.max_discount_percent??10,max_discount_amount:ue.max_discount_amount??100,max_bargain_rounds:ue.max_bargain_rounds??3,custom_prompts:ue.custom_prompts??""})}catch(ue){console.error("Failed to load AI settings:",ue)}finally{C(!1)}y("ai-settings")},Z=async()=>{if(b){C(!0);try{const P=[];S.remark!==(b.remark||b.note||"")&&P.push(P6(b.id,S.remark)),S.cookie&&S.cookie!==(b.cookie||b.value||"")&&P.push(L6(b.id,S.cookie)),S.auto_confirm!==b.auto_confirm&&P.push(R6(b.id,S.auto_confirm)),S.pause_duration!==(b.pause_duration||0)&&P.push(z6(b.id,S.pause_duration)),(S.username!==(b.username||"")||S.login_password!==(b.login_password||"")||S.show_browser!==(b.show_browser||!1))&&P.push(B6(b.id,{username:S.username,login_password:S.login_password,show_browser:S.show_browser})),await Promise.all(P),y(null),M()}catch(P){console.error("更新账号失败:",P),alert("更新失败，请重试")}finally{C(!1)}}},V=async()=>{if(b){C(!0);try{await nR(b.id,_),y(null),M()}catch(P){console.error("更新AI设置失败:",P),alert("更新失败，请重试")}finally{C(!1)}}},re=async()=>{o(!0),h("loading");try{const P=await T6();if(P.success&&P.qr_code_url&&P.session_id){f(P.qr_code_url),h("waiting");const ue=setInterval(async()=>{const U=await M6(P.session_id);U.status==="success"?(clearInterval(ue),h("success"),setTimeout(()=>{o(!1),M()},1e3)):(U.status==="expired"||U.status==="error")&&(clearInterval(ue),h("error"))},2e3)}}catch{h("error")}};return n?m.jsx("div",{className:"p-20 flex justify-center",children:m.jsx(Di,{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:re,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(MP,{className:"w-5 h-5"}),"扫码添加新账号"]})]}),m.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.map(P=>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:P.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 ${P.enabled?"bg-green-500":"bg-gray-300"}`,children:P.enabled&&m.jsx(Rp,{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:P.nickname||P.remark||`账号 ${P.id.substring(0,6)}...`}),P.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:"暂停"}),P.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(ra,{className:"w-3 h-3"})," AI"]})]}),m.jsx("p",{className:"text-sm text-gray-500 font-medium mb-3",children:P.remark||P.note||"暂无备注"}),m.jsxs("div",{className:"flex gap-2",children:[P.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(ta,{className:"w-3 h-3"})," 自动回复"]}),P.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(KS,{className:"w-3 h-3"})," 暂停",P.pause_duration,"分钟"]})]})]})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>k(P),className:"p-3 rounded-xl hover:bg-gray-100 transition-colors text-gray-600",title:"编辑账号",children:m.jsx(of,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>$(P),className:"p-3 rounded-xl hover:bg-purple-100 transition-colors text-purple-600",title:"AI设置",children:m.jsx(ra,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>D(P.id,P.enabled),className:`p-3 rounded-xl transition-colors ${P.enabled?"text-green-600 hover:bg-green-50":"text-gray-400 hover:bg-gray-100"}`,children:m.jsx(sf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>T(P.id),className:"p-3 rounded-xl hover:bg-red-100 transition-colors text-red-500",children:m.jsx(Ql,{className:"w-5 h-5"})})]})]},P.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(jN,{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&&dn.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(Di,{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(Rp,{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:re,className:"text-xs bg-gray-200 px-3 py-1 rounded-full flex items-center gap-1 hover:bg-gray-300",children:[m.jsx(Fi,{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&&dn.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:S.remark,onChange:P=>j({...S,remark:P.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:S.cookie,onChange:P=>j({...S,cookie:P.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长度: ",S.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(Rp,{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({...S,auto_confirm:!S.auto_confirm}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${S.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 ${S.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(KS,{className:"w-4 h-4 text-blue-500"}),"暂停处理时长（分钟）"]}),m.jsx("input",{type:"number",value:S.pause_duration,onChange:P=>j({...S,pause_duration:parseInt(P.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(lf,{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:S.username,onChange:P=>j({...S,username:P.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:S.showLoginPassword?"text":"password",value:S.login_password,onChange:P=>j({...S,login_password:P.target.value}),placeholder:"用于自动登录",className:"w-full ios-input px-4 py-3 rounded-xl pr-12"}),m.jsx("button",{type:"button",onClick:()=>j({...S,showLoginPassword:!S.showLoginPassword}),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:S.showLoginPassword?m.jsx(jy,{className:"w-5 h-5"}):m.jsx(bf,{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({...S,show_browser:!S.show_browser}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${S.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 ${S.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:Z,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(Di,{className:"w-4 h-4 animate-spin"}):m.jsx(ti,{className:"w-4 h-4"}),A?"保存中...":"保存"]})]})})]})}),document.body),p==="ai-settings"&&b&&dn.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(ra,{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(ra,{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:()=>N({..._,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:P=>N({..._,max_discount_percent:parseInt(P.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:P=>N({..._,max_discount_amount:parseInt(P.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:P=>N({..._,max_bargain_rounds:parseInt(P.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:P=>N({..._,custom_prompts:P.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(Dg,{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: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(Di,{className:"w-4 h-4 animate-spin"}):m.jsx(ti,{className:"w-4 h-4"}),A?"保存中...":"保存"]})]})})]})}),document.body)]})},pN=({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})},AW=()=>{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,w]=x.useState(1),[S,j]=x.useState(1),[_,N]=x.useState(!1),[A,C]=x.useState(!1),[M,D]=x.useState(!1),[T,k]=x.useState(!1),[$,Z]=x.useState(null),[V,re]=x.useState(null),[P,ue]=x.useState({}),[U,ne]=x.useState(""),[B,Q]=x.useState(!1),[ie,fe]=x.useState(""),[de,R]=x.useState(!1),[G,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:""}),Je=le=>{if(!p.trim())return le;const Le=p.toLowerCase().trim();return le.filter(Ge=>{var At,Tn,xt,al,ci,Oo;return((At=Ge.order_id)==null?void 0:At.toLowerCase().includes(Le))||((Tn=Ge.item_id)==null?void 0:Tn.toLowerCase().includes(Le))||((xt=Ge.buyer_id)==null?void 0:xt.toLowerCase().includes(Le))||((al=Ge.item_title)==null?void 0:al.toLowerCase().includes(Le))||((ci=Ge.receiver_name)==null?void 0:ci.toLowerCase().includes(Le))||((Oo=Ge.receiver_phone)==null?void 0:Oo.toLowerCase().includes(Le))})},J=async()=>{N(!0);try{if(p.trim()){let le=[],Le=1,Ge=!0;for(;Ge;){const At=await h2(void 0,d,Le,100);le=[...le,...At.data],Ge=Le<At.total_pages,Le++}r(le),t(Je(le)),j(1)}else{const le=await h2(void 0,d,b,20);r(le.data),t(Je(le.data)),j(le.total_pages)}}catch(le){console.error("加载订单失败:",le)}finally{N(!1)}};x.useEffect(()=>{t(Je(n))},[n,p]);const _e=(le,Le)=>{if(Le&&Le.trim())return Le;if(u[le])return u[le];const Ge=l.find(At=>{if(Le&&At.item_title){const Tn=Le.toLowerCase(),xt=At.item_title.toLowerCase();return xt.includes(Tn)||Tn.includes(xt)}return!1});return Ge!=null&&Ge.item_title?Ge.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(),Ey().then(le=>{o(le),Ae()}).catch(le=>{console.error("加载商品列表失败:",le)})},[d,b,p]);const se=async()=>{N(!0),await U6(),J()},ut=le=>{fe(le),oe(null),Q(!0)},q=async le=>{var Le;R(!0),oe(null);try{const Ge=await q6([ie],le),At=(Le=Ge==null?void 0:Ge.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(Ge){oe({success:!1,message:(Ge==null?void 0:Ge.message)||"请求失败"})}finally{R(!1)}},Se=le=>{Z(le),C(!0)},He=le=>{re({...le}),D(!0)},Cn=async()=>{if(!(!V||!V.order_id))try{const le={};V.status!==void 0&&(le.order_status=V.status),V.buyer_id!==void 0&&(le.buyer_id=V.buyer_id),V.amount!==void 0&&(le.amount=V.amount),V.receiver_name!==void 0&&(le.receiver_name=V.receiver_name),V.receiver_phone!==void 0&&(le.receiver_phone=V.receiver_phone),V.receiver_address!==void 0&&(le.receiver_address=V.receiver_address),V.item_id!==void 0&&(le.item_id=V.item_id),V.quantity!==void 0&&(le.quantity=V.quantity),await $6(V.order_id,le),D(!1),re(null),J()}catch(le){console.error("更新订单失败:",le),alert("更新失败，请重试")}},zr=async()=>{try{const le=JSON.parse(U);await H6(Array.isArray(le)?le:[le]),k(!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(Fi,{className:`w-5 h-5 ${_?"animate-spin":""}`})}),m.jsxs("button",{onClick:()=>k(!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(ks,{className:"w-4 h-4"}),"插入订单"]}),m.jsxs("button",{onClick:se,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(Vl,{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),w(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(RP,{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),w(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(XS,{})})}),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(pN,{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("a",{href:`https://www.goofish.com/order-detail?orderId=${le.order_id}&role=seller`,target:"_blank",rel:"noopener noreferrer",className:"mr-2 inline-flex text-gray-400 hover:text-amber-600 p-2 rounded-xl hover:bg-amber-50 transition-colors",title:"查看闲鱼详情",children:m.jsx(iP,{className:"w-4 h-4"})}),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(bf,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>He(le),className:"text-gray-400 hover:text-black p-2 rounded-xl hover:bg-gray-100 transition-colors",title:"编辑订单",children:m.jsx(kg,{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," 页 / 共 ",S," 页"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{disabled:b<=1,onClick:()=>w(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(Vk,{className:"w-5 h-5"})}),m.jsx("button",{disabled:b>=S,onClick:()=>w(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(Zk,{className:"w-5 h-5"})})]})]})]}),A&&$&&dn.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:()=>C(!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:$.order_id})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"状态"}),m.jsx(pN,{status:$.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:["¥",$.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:$.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:$.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:[$.item_image&&m.jsx("img",{src:$.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($.item_id,$.item_title)}),m.jsxs("div",{className:"text-sm text-gray-500",children:["商品ID: ",$.item_id]}),$.item_price&&m.jsxs("div",{className:"text-sm text-gray-500 mt-1",children:["标价: ¥",$.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:$.buyer_id})]}),$.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:$.receiver_name})]}),$.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:$.receiver_phone})]}),$.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:$.receiver_address})]})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>C(!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:"关闭"}),$.status==="pending_ship"&&m.jsx("button",{onClick:()=>{C(!1),ut($.order_id)},className:"flex-1 px-6 py-3 rounded-xl ios-btn-primary font-bold shadow-lg shadow-yellow-200",children:"立即发货"})]})})]})}),document.body),T&&dn.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:()=>k(!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(VP,{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:()=>k(!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:zr,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),B&&dn.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:()=>{Q(!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(Vl,{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(XS,{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(Fi,{className:"w-4 h-4 animate-spin text-gray-500"}),m.jsx("span",{className:"text-sm text-gray-500",children:"正在处理中..."})]}),G&&m.jsxs("div",{className:`p-3 rounded-xl text-sm ${G.success?"bg-green-50 text-green-800":"bg-red-50 text-red-800"}`,children:[G.success?"✓ ":"✗ ",G.message]})]}),m.jsx("div",{className:"modal-footer",children:m.jsx("button",{onClick:()=>{Q(!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:G!=null&&G.success?"完成":"取消"})})]})}),document.body),M&&V&&dn.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",{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:V.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:V.status,onChange:le=>re({...V,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:V.buyer_id,onChange:le=>re({...V,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:V.amount,onChange:le=>re({...V,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:V.receiver_name||"",onChange:le=>re({...V,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:V.receiver_phone||"",onChange:le=>re({...V,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:V.receiver_address||"",onChange:le=>re({...V,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:V.item_title||"",onChange:le=>re({...V,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:()=>D(!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(ti,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body)]})},NW=()=>{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(()=>{Yl().then(t)},[]);const b=({type:A})=>{switch(A){case"text":return m.jsx(GS,{className:"w-5 h-5 text-blue-500"});case"image":return m.jsx(VS,{className:"w-5 h-5 text-purple-500"});case"api":return m.jsx(YS,{className:"w-5 h-5 text-orange-500"});default:return m.jsx(xN,{className:"w-5 h-5 text-gray-500"})}},w=A=>{var C,M,D,T,k;f(A),h({id:A.id,name:A.name||"",type:A.type||"text",api_url:((C=A.api_config)==null?void 0:C.url)||"",api_method:((M=A.api_config)==null?void 0:M.method)||"GET",api_timeout:((D=A.api_config)==null?void 0:D.timeout)||10,api_headers:((T=A.api_config)==null?void 0:T.headers)||"",api_params:((k=A.api_config)==null?void 0:k.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)},S=async()=>{var A,C,M,D,T,k,$,Z;if(u){if(!((A=d.name)!=null&&A.trim())){alert("请输入卡密名称");return}if(!d.type){alert("请选择卡密类型");return}try{const V={name:d.name.trim(),type:d.type,description:(C=d.description)==null?void 0:C.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"?V.api_config={url:(M=d.api_url)==null?void 0:M.trim(),method:d.api_method,timeout:d.api_timeout||10,headers:((D=d.api_headers)==null?void 0:D.trim())||void 0,params:((T=d.api_params)==null?void 0:T.trim())||void 0}:d.type==="text"?V.text_content=((k=d.text_content)==null?void 0:k.trim())||"":d.type==="data"?V.data_content=(($=d.data_content)==null?void 0:$.trim())||"":d.type==="image"&&(V.image_url=((Z=d.image_url)==null?void 0:Z.trim())||""),await p2(u.id,V),r(!1),Yl().then(t)}catch(V){console.error("更新卡密失败:",V),alert("更新失败，请重试")}}},j=async A=>{if(confirm("确认删除该卡密吗？"))try{await Y6(A),Yl().then(t)}catch(C){console.error("删除卡密失败:",C),alert("删除失败，请重试")}},_=async()=>{try{await K6(p),o(!1),y({name:"",type:"text",content:"",description:"",enabled:!0,delay_seconds:0}),Yl().then(t)}catch(A){console.error("添加卡密失败:",A),alert("添加失败，请重试")}},N=async A=>{try{await p2(A.id,{...A,enabled:!A.enabled}),Yl().then(t)}catch(C){console.error("切换状态失败:",C)}};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(ks,{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 C="";return A.type==="data"&&A.data_content?C=`库存: ${A.data_content.split(`
`).filter(D=>D.trim()).length} 条`:A.type==="text"&&A.text_content?C=A.text_content.substring(0,20)+(A.text_content.length>20?"...":""):A.type==="api"&&A.api_config?C=A.api_config.url:A.type==="image"&&A.text_content&&(C="图片链接"),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:C,children:C})}),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:()=>N(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:()=>w(A),className:"p-2 text-gray-400 hover:text-black hover:bg-gray-100 rounded-xl transition-colors",title:"编辑",children:m.jsx(kg,{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(Ql,{className:"w-5 h-5"})})]})})]},A.id)})})]})}),e.length===0&&m.jsxs("div",{className:"py-20 text-center text-gray-400",children:[m.jsx(wN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),m.jsx("p",{children:"暂无卡密配置，请点击右上角添加。"})]})]}),n&&u&&dn.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:S,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(ti,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body),l&&dn.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(GS,{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(VS,{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(YS,{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(ks,{className:"w-4 h-4"}),"添加卡密"]})]})})]})}),document.body)]})},EW=()=>{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,w]=x.useState(null),[S,j]=x.useState({}),[_,N]=x.useState({cookie_id:"",item_id:"",item_title:"",item_price:"",item_image:"",is_multi_spec:!1,is_multi_qty_ship:!1});x.useEffect(()=>{Bg().then(r),Ey().then(t)},[]);const A=async()=>{if(!l)return alert("请先选择账号");f(!0),await G6(l),Ey().then(t),f(!1)},C=k=>{w(k),j({...k}),h(!0)},M=async k=>{if(confirm(`确认删除商品"${k.item_title}"吗？`))try{const $=e.filter(Z=>!(Z.cookie_id===k.cookie_id&&Z.item_id===k.item_id));t($)}catch($){console.error("删除商品失败:",$),alert("删除失败，请重试")}},D=async k=>{try{const $=e.map(Z=>Z.cookie_id===k.cookie_id&&Z.item_id===k.item_id?{...Z,is_multi_spec:!Z.is_multi_spec}:Z);t($)}catch($){console.error("切换状态失败:",$)}},T=async k=>{try{const $=e.map(Z=>Z.cookie_id===k.cookie_id&&Z.item_id===k.item_id?{...Z,is_multi_qty_ship:!Z.is_multi_qty_ship}:Z);t($)}catch($){console.error("切换状态失败:",$)}};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:k=>o(k.target.value),children:[m.jsx("option",{value:"",children:"选择账号以同步"}),n.map(k=>m.jsx("option",{value:k.id,children:k.nickname},k.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(Fi,{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(ks,{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(k=>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:()=>C(k),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md hover:bg-[#FFE815] transition-colors",title:"编辑",children:m.jsx(kg,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>M(k),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(Ql,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"aspect-square bg-gray-100 rounded-2xl mb-4 overflow-hidden relative",children:[k.item_image?m.jsx("img",{src:k.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(bN,{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:["¥",k.item_price]})]}),m.jsx("h3",{className:"font-bold text-gray-900 line-clamp-2 text-sm mb-2 h-10",children:k.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: ",k.item_id]})}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:()=>D(k),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${k.is_multi_spec?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多规格"}),m.jsx("button",{onClick:()=>T(k),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${k.is_multi_qty_ship?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多数量发货"})]})]},`${k.cookie_id}-${k.item_id}`)),e.length===0&&m.jsxs("div",{className:"col-span-full py-20 text-center text-gray-400",children:[m.jsx(SN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),"暂无商品数据，请选择账号进行同步"]})]})]})},CW=()=>{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),J6().then(t).finally(()=>r(!1))},y=async()=>{if(e){o(!0);try{await eR(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(Dg,{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(Fi,{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(tP,{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 w=parseInt(b.target.value)||10;t({...e,item_sync_interval:w*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(xf,{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(jy,{className:"w-4 h-4"}):m.jsx(bf,{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(wP,{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(jy,{className:"w-4 h-4"}):m.jsx(bf,{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(ti,{className:"w-6 h-6"}),l?"保存中...":"保存所有配置"]})})]}):m.jsx("div",{className:"p-8 text-center text-gray-400",children:"加载配置中..."})},TW=()=>{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,w]=x.useState({keyword:"",reply_content:""}),[S,j]=x.useState([]),[_,N]=x.useState([]),[A,C]=x.useState(!1),[M,D]=x.useState(null),[T,k]=x.useState({keyword:"",card_id:"",description:"",enabled:!0}),[$,Z]=x.useState({}),[V,re]=x.useState(!1),[P,ue]=x.useState(null),[U,ne]=x.useState({cookie_id:"",enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),[B,Q]=x.useState(!1);x.useEffect(()=>{Bg().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 rR();Z(q)}catch(q){console.error("加载默认回复失败",q)}},fe=async()=>{try{const q=await V6();j(q)}catch(q){console.error("加载发货规则失败",q)}},de=async()=>{try{const q=await Yl();N(q)}catch(q){console.error("加载卡券失败",q)}},R=async()=>{if(n){Q(!0);try{const q=await Z6(n);f(q)}catch(q){console.error("加载关键词失败",q)}finally{Q(!1)}}},G=()=>{if(l==="reply")y(null),w({keyword:"",reply_content:""}),h(!0);else if(l==="delivery")D(null),k({keyword:"",card_id:"",description:"",enabled:!0}),C(!0);else{if(!n)return;oe(n)}},oe=async q=>{try{const Se=await aR(q);ue(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||""}),re(!0)}catch(Se){console.error("加载默认回复失败",Se),ue(null),ne({cookie_id:q,enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),re(!0)}},ce=q=>{l==="reply"&&(y(q),w({keyword:q.keyword,reply_content:q.reply_content}),h(!0))},pe=q=>{D(q),k({keyword:q.item_keyword,card_id:String(q.card_group_id),description:q.name,enabled:q.enabled}),C(!0)},xe=async()=>{if(!n){alert("请先选择账号");return}if(!b.keyword.trim()||!b.reply_content.trim()){alert("请填写关键词和回复内容");return}try{await W6({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(!T.keyword.trim()){alert("请填写触发关键词");return}if(!T.card_id){alert("请选择卡券");return}try{await v2({id:M==null?void 0:M.id,item_keyword:T.keyword,card_group_id:parseInt(T.card_id),name:T.description,priority:1,enabled:T.enabled}),C(!1),fe(),alert("保存成功！")}catch(q){alert("保存失败："+q.message)}},Je=async q=>{if(!(!n||!confirm("确认删除该关键词吗？")))try{await Q6(q,n),R(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},J=async q=>{if(confirm("确认删除该发货规则吗？"))try{await X6(q),fe(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},_e=async q=>{try{await v2({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 iR(U.cookie_id,{enabled:U.enabled,reply_content:U.reply_content,reply_once:U.reply_once,reply_image_url:U.reply_image_url}),re(!1),ie(),alert("保存成功！")}catch(q){alert("保存失败："+q.message)}},se=async q=>{if(confirm("确认删除该默认回复吗？"))try{await lR(q),ie(),alert("删除成功！")}catch(Se){alert("删除失败："+Se.message)}},ut=async q=>{if(confirm("确认清空该账号的回复记录吗？清空后可以重新对所有对话使用默认回复。"))try{await oR(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(ta,{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(Vl,{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:S.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(ra,{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($).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(Fi,{className:"w-5 h-5"}),"刷新"]}),m.jsxs("button",{onClick:G,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(ks,{className:"w-5 h-5"}),l==="reply"?"添加关键词":l==="delivery"?"添加发货规则":"编辑默认回复"]})]})]})}),n?l==="reply"?B?m.jsx("div",{className:"py-24 flex justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4",children:[m.jsx(Di,{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(lf,{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(of,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>Je(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(Ql,{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(ta,{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:[S.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(Vl,{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(EP,{className:"w-5 h-5"}):m.jsx(sf,{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(of,{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(Ql,{className:"w-5 h-5"})})]})]})]},q.id)),S.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(Vl,{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=$[q.id],He=Se&&Se.enabled;return m.jsxs("div",{className:`group relative bg-gradient-to-br ${He?"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 ${He?"border-transparent hover:border-purple-400/30":"border-gray-200"} overflow-hidden`,children:[He&&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 ${He?"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(ra,{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 ${He?"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:He?"已启用":"未设置"}),(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:"只回复一次"})]}),He&&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(of,{className:"w-5 h-5"})}),He&&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(Fi,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>se(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(Ql,{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(ra,{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(ta,{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&&dn.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(ta,{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(lf,{className:"w-5 h-5 text-[#FFE815]"}),"触发关键词"]}),m.jsx("input",{type:"text",value:b.keyword,onChange:q=>w({...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(ta,{className:"w-5 h-5 text-[#FFE815]"}),"回复内容"]}),m.jsx("textarea",{value:b.reply_content,onChange:q=>w({...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(ti,{className:"w-5 h-5"}),"保存关键词"]})]})})]})}),document.body),A&&dn.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(Vl,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:M?"编辑发货规则":"添加发货规则"})]}),m.jsx("button",{onClick:()=>C(!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(lf,{className:"w-5 h-5 text-blue-500"}),"触发关键词"]}),m.jsx("input",{type:"text",value:T.keyword,onChange:q=>k({...T,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(xf,{className:"w-5 h-5 text-blue-500"}),"关联卡券"]}),m.jsxs("select",{value:T.card_id,onChange:q=>k({...T,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(ta,{className:"w-5 h-5 text-blue-500"}),"描述（可选）"]}),m.jsx("input",{type:"text",value:T.description,onChange:q=>k({...T,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(sf,{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:()=>k({...T,enabled:!T.enabled}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${T.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 ${T.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:()=>C(!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(ti,{className:"w-5 h-5"}),"保存发货规则"]})]})})]})}),document.body),V&&dn.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(ra,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:"账号默认回复"})]}),m.jsx("button",{onClick:()=>re(!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(ra,{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(sf,{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(ta,{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(xf,{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:()=>re(!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(ti,{className:"w-5 h-5"}),"保存默认回复"]})]})})]})}),document.body)]})},MW=()=>{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,w]=x.useState("");x.useEffect(()=>{localStorage.getItem("auth_token")?C6().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 S=async N=>{N.preventDefault(),y(!0),w("");try{const A=await E6({username:u,password:d});A.success&&A.token?(localStorage.setItem("auth_token",A.token),t(!0)):w(A.message||"登录失败")}catch{w("无法连接服务器")}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(Di,{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:S,className:"space-y-5",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"relative group",children:[m.jsx(jN,{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:N=>f(N.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(yP,{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:N=>h(N.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(BP,{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(Di,{className:"w-5 h-5 animate-spin"}):m.jsxs(m.Fragment,{children:["立即登录 ",m.jsx(Hk,{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(fP,{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(mN,{});case"accounts":return m.jsx(OW,{});case"orders":return m.jsx(AW,{});case"cards":return m.jsx(NW,{});case"items":return m.jsx(EW,{});case"keywords":return m.jsx(TW,{});case"settings":return m.jsx(CW,{});default:return m.jsx(mN,{})}};return m.jsxs("div",{className:"flex min-h-screen bg-[#F4F5F7] text-[#111]",children:[m.jsx(QP,{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:_()})]})]})},t3=document.getElementById("root");if(!t3)throw new Error("Could not find root element to mount to");const DW=Pk.createRoot(t3);DW.render(m.jsx(vN.StrictMode,{children:m.jsx(MW,{})}));
//# sourceMappingURL=index-CCCCSTDO.js.map
