var o1=e=>{throw TypeError(e)};var py=(e,t,n)=>t.has(e)||o1("Cannot "+n);var C=(e,t,n)=>(py(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?o1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(py(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(py(e,t,"access private method"),n);var nf=(e,t,n,r)=>({set _(a){X(e,t,a,n)},get _(){return C(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L2={exports:{}},Fh={};/**
 * @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 RR=Symbol.for("react.transitional.element"),$R=Symbol.for("react.fragment");function z2(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:RR,type:e,key:r,ref:t!==void 0?t:null,props:n}}Fh.Fragment=$R;Fh.jsx=z2;Fh.jsxs=z2;L2.exports=Fh;var d=L2.exports,B2={exports:{}},ce={};/**
 * @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 N0=Symbol.for("react.transitional.element"),DR=Symbol.for("react.portal"),kR=Symbol.for("react.fragment"),LR=Symbol.for("react.strict_mode"),zR=Symbol.for("react.profiler"),BR=Symbol.for("react.consumer"),UR=Symbol.for("react.context"),IR=Symbol.for("react.forward_ref"),HR=Symbol.for("react.suspense"),qR=Symbol.for("react.memo"),U2=Symbol.for("react.lazy"),FR=Symbol.for("react.activity"),l1=Symbol.iterator;function GR(e){return e===null||typeof e!="object"?null:(e=l1&&e[l1]||e["@@iterator"],typeof e=="function"?e:null)}var I2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H2=Object.assign,q2={};function ss(e,t,n){this.props=e,this.context=t,this.refs=q2,this.updater=n||I2}ss.prototype.isReactComponent={};ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F2(){}F2.prototype=ss.prototype;function M0(e,t,n){this.props=e,this.context=t,this.refs=q2,this.updater=n||I2}var P0=M0.prototype=new F2;P0.constructor=M0;H2(P0,ss.prototype);P0.isPureReactComponent=!0;var s1=Array.isArray;function Lm(){}var Je={H:null,A:null,T:null,S:null},G2=Object.prototype.hasOwnProperty;function R0(e,t,n){var r=n.ref;return{$$typeof:N0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function YR(e,t){return R0(e.type,t,e.props)}function $0(e){return typeof e=="object"&&e!==null&&e.$$typeof===N0}function KR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var u1=/\/+/g;function yy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KR(""+e.key):t.toString(36)}function XR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Lm,Lm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function $o(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case N0:case DR:o=!0;break;case U2:return o=e._init,$o(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+yy(e,0):r,s1(a)?(n="",o!=null&&(n=o.replace(u1,"$&/")+"/"),$o(a,t,n,"",function(u){return u})):a!=null&&($0(a)&&(a=YR(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(u1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(s1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+yy(r,s),o+=$o(r,t,n,i,a);else if(s=GR(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+yy(r,s++),o+=$o(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return $o(XR(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function af(e,t,n){if(e==null)return e;var r=[],a=0;return $o(e,r,"","",function(i){return t.call(n,i,a++)}),r}function VR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var c1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},QR={map:af,forEach:function(e,t,n){af(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return af(e,function(){t++}),t},toArray:function(e){return af(e,function(t){return t})||[]},only:function(e){if(!$0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Activity=FR;ce.Children=QR;ce.Component=ss;ce.Fragment=kR;ce.Profiler=zR;ce.PureComponent=M0;ce.StrictMode=LR;ce.Suspense=HR;ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Je;ce.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Je.H.useMemoCache(e)}};ce.cache=function(e){return function(){return e.apply(null,arguments)}};ce.cacheSignal=function(){return null};ce.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=H2({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!G2.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];r.children=o}return R0(e.type,a,r)};ce.createContext=function(e){return e={$$typeof:UR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:BR,_context:e},e};ce.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)G2.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var l=Array(o),s=0;s<o;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)a[r]===void 0&&(a[r]=o[r]);return R0(e,i,a)};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:IR,render:e}};ce.isValidElement=$0;ce.lazy=function(e){return{$$typeof:U2,_payload:{_status:-1,_result:e},_init:VR}};ce.memo=function(e,t){return{$$typeof:qR,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=Je.T,n={};Je.T=n;try{var r=e(),a=Je.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Lm,c1)}catch(i){c1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Je.T=t}};ce.unstable_useCacheRefresh=function(){return Je.H.useCacheRefresh()};ce.use=function(e){return Je.H.use(e)};ce.useActionState=function(e,t,n){return Je.H.useActionState(e,t,n)};ce.useCallback=function(e,t){return Je.H.useCallback(e,t)};ce.useContext=function(e){return Je.H.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e,t){return Je.H.useDeferredValue(e,t)};ce.useEffect=function(e,t){return Je.H.useEffect(e,t)};ce.useEffectEvent=function(e){return Je.H.useEffectEvent(e)};ce.useId=function(){return Je.H.useId()};ce.useImperativeHandle=function(e,t,n){return Je.H.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return Je.H.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return Je.H.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return Je.H.useMemo(e,t)};ce.useOptimistic=function(e,t){return Je.H.useOptimistic(e,t)};ce.useReducer=function(e,t,n){return Je.H.useReducer(e,t,n)};ce.useRef=function(e){return Je.H.useRef(e)};ce.useState=function(e){return Je.H.useState(e)};ce.useSyncExternalStore=function(e,t,n){return Je.H.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return Je.H.useTransition()};ce.version="19.2.7";B2.exports=ce;var j=B2.exports;const $=Ie(j);var Y2={exports:{}},Gh={},K2={exports:{}},X2={};/**
 * @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.
 */(function(e){function t(R,z){var B=R.length;R.push(z);e:for(;0<B;){var q=B-1>>>1,F=R[q];if(0<a(F,z))R[q]=z,R[B]=F,B=q;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var z=R[0],B=R.pop();if(B!==z){R[0]=B;e:for(var q=0,F=R.length,Q=F>>>1;q<Q;){var G=2*(q+1)-1,ee=R[G],ye=G+1,ke=R[ye];if(0>a(ee,B))ye<F&&0>a(ke,ee)?(R[q]=ke,R[ye]=B,q=ye):(R[q]=ee,R[G]=B,q=G);else if(ye<F&&0>a(ke,B))R[q]=ke,R[ye]=B,q=ye;else break e}}return z}function a(R,z){var B=R.sortIndex-z.sortIndex;return B!==0?B:R.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],f=1,c=null,h=3,p=!1,b=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(R){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=R)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function S(R){if(v=!1,w(R),!b)if(n(s)!==null)b=!0,O||(O=!0,E());else{var z=n(u);z!==null&&k(S,z.startTime-R)}}var O=!1,A=-1,_=5,T=-1;function M(){return g?!0:!(e.unstable_now()-T<_)}function L(){if(g=!1,O){var R=e.unstable_now();T=R;var z=!0;try{e:{b=!1,v&&(v=!1,m(A),A=-1),p=!0;var B=h;try{t:{for(w(R),c=n(s);c!==null&&!(c.expirationTime>R&&M());){var q=c.callback;if(typeof q=="function"){c.callback=null,h=c.priorityLevel;var F=q(c.expirationTime<=R);if(R=e.unstable_now(),typeof F=="function"){c.callback=F,w(R),z=!0;break t}c===n(s)&&r(s),w(R)}else r(s);c=n(s)}if(c!==null)z=!0;else{var Q=n(u);Q!==null&&k(S,Q.startTime-R),z=!1}}break e}finally{c=null,h=B,p=!1}z=void 0}}finally{z?E():O=!1}}}var E;if(typeof x=="function")E=function(){x(L)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,D=N.port2;N.port1.onmessage=L,E=function(){D.postMessage(null)}}else E=function(){y(L,0)};function k(R,z){A=y(function(){R(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var B=h;h=z;try{return R()}finally{h=B}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(R,z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var B=h;h=R;try{return z()}finally{h=B}},e.unstable_scheduleCallback=function(R,z,B){var q=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?q+B:q):B=q,R){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=B+F,R={id:f++,callback:z,priorityLevel:R,startTime:B,expirationTime:F,sortIndex:-1},B>q?(R.sortIndex=B,t(u,R),n(s)===null&&R===n(u)&&(v?(m(A),A=-1):v=!0,k(S,B-q))):(R.sortIndex=F,t(s,R),b||p||(b=!0,O||(O=!0,E()))),R},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(R){var z=h;return function(){var B=h;h=z;try{return R.apply(this,arguments)}finally{h=B}}}})(X2);K2.exports=X2;var WR=K2.exports,V2={exports:{}},tn={};/**
 * @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 ZR=j;function Q2(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function wa(){}var Wt={d:{f:wa,r:function(){throw Error(Q2(522))},D:wa,C:wa,L:wa,m:wa,X:wa,S:wa,M:wa},p:0,findDOMNode:null},JR=Symbol.for("react.portal");function e$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:JR,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var lu=ZR.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Yh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Wt;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Q2(299));return e$(e,t,null,n)};tn.flushSync=function(e){var t=lu.T,n=Wt.p;try{if(lu.T=null,Wt.p=2,e)return e()}finally{lu.T=t,Wt.p=n,Wt.d.f()}};tn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Wt.d.C(e,t))};tn.prefetchDNS=function(e){typeof e=="string"&&Wt.d.D(e)};tn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Yh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Wt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Wt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};tn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Yh(t.as,t.crossOrigin);Wt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Wt.d.M(e)};tn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Yh(n,t.crossOrigin);Wt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};tn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Yh(t.as,t.crossOrigin);Wt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Wt.d.m(e)};tn.requestFormReset=function(e){Wt.d.r(e)};tn.unstable_batchedUpdates=function(e,t){return e(t)};tn.useFormState=function(e,t,n){return lu.H.useFormState(e,t,n)};tn.useFormStatus=function(){return lu.H.useHostTransitionStatus()};tn.version="19.2.7";function W2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W2)}catch(e){console.error(e)}}W2(),V2.exports=tn;var t$=V2.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 Ot=WR,Z2=j,n$=t$;function I(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function J2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function eE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function tE(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f1(e){if(Mc(e)!==e)throw Error(I(188))}function r$(e){var t=e.alternate;if(!t){if(t=Mc(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return f1(a),e;if(i===r)return f1(a),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function nE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=nE(e),t!==null)return t;e=e.sibling}return null}var et=Object.assign,a$=Symbol.for("react.element"),of=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),zo=Symbol.for("react.fragment"),rE=Symbol.for("react.strict_mode"),zm=Symbol.for("react.profiler"),aE=Symbol.for("react.consumer"),Vr=Symbol.for("react.context"),D0=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),Um=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Im=Symbol.for("react.activity"),i$=Symbol.for("react.memo_cache_sentinel"),d1=Symbol.iterator;function Ds(e){return e===null||typeof e!="object"?null:(e=d1&&e[d1]||e["@@iterator"],typeof e=="function"?e:null)}var o$=Symbol.for("react.client.reference");function Hm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===o$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zo:return"Fragment";case zm:return"Profiler";case rE:return"StrictMode";case Bm:return"Suspense";case Um:return"SuspenseList";case Im:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case Vr:return e.displayName||"Context";case aE:return(e._context.displayName||"Context")+".Consumer";case D0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k0:return t=e.displayName||null,t!==null?t:Hm(e.type)||"Memo";case ja:t=e._payload,e=e._init;try{return Hm(e(t))}catch{}}return null}var tu=Array.isArray,ie=Z2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=n$.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fi={pending:!1,data:null,method:null,action:null},qm=[],Bo=-1;function Cr(e){return{current:e}}function Mt(e){0>Bo||(e.current=qm[Bo],qm[Bo]=null,Bo--)}function Ye(e,t){Bo++,qm[Bo]=e.current,e.current=t}var Ar=Cr(null),_u=Cr(null),Ka=Cr(null),ld=Cr(null);function sd(e,t){switch(Ye(Ka,t),Ye(_u,e),Ye(Ar,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gS(t),e=jT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Mt(Ar),Ye(Ar,e)}function Al(){Mt(Ar),Mt(_u),Mt(Ka)}function Fm(e){e.memoizedState!==null&&Ye(ld,e);var t=Ar.current,n=jT(t,e.type);t!==n&&(Ye(_u,e),Ye(Ar,n))}function ud(e){_u.current===e&&(Mt(Ar),Mt(_u)),ld.current===e&&(Mt(ld),zu._currentValue=Fi)}var my,h1;function Si(e){if(my===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);my=t&&t[1]||"",h1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+my+e+h1}var vy=!1;function gy(e,t){if(!e||vy)return"";vy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(p){var h=p}Reflect.construct(e,[],c)}else{try{c.call()}catch(p){h=p}e.call(c.prototype)}}else{try{throw Error()}catch(p){h=p}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],l=i[1];if(o&&l){var s=o.split(`
`),u=l.split(`
`);for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var f=`
`+s[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{vy=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Si(n):""}function l$(e,t){switch(e.tag){case 26:case 27:case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return e.child!==t&&t!==null?Si("Suspense Fallback"):Si("Suspense");case 19:return Si("SuspenseList");case 0:case 15:return gy(e.type,!1);case 11:return gy(e.type.render,!1);case 1:return gy(e.type,!0);case 31:return Si("Activity");default:return""}}function p1(e){try{var t="",n=null;do t+=l$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Gm=Object.prototype.hasOwnProperty,L0=Ot.unstable_scheduleCallback,by=Ot.unstable_cancelCallback,s$=Ot.unstable_shouldYield,u$=Ot.unstable_requestPaint,En=Ot.unstable_now,c$=Ot.unstable_getCurrentPriorityLevel,iE=Ot.unstable_ImmediatePriority,oE=Ot.unstable_UserBlockingPriority,cd=Ot.unstable_NormalPriority,f$=Ot.unstable_LowPriority,lE=Ot.unstable_IdlePriority,d$=Ot.log,h$=Ot.unstable_setDisableYieldValue,Pc=null,_n=null;function Ia(e){if(typeof d$=="function"&&h$(e),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(Pc,e)}catch{}}var Tn=Math.clz32?Math.clz32:m$,p$=Math.log,y$=Math.LN2;function m$(e){return e>>>=0,e===0?32:31-(p$(e)/y$|0)|0}var lf=256,sf=262144,uf=4194304;function wi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kh(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~i,r!==0?a=wi(r):(o&=l,o!==0?a=wi(o):n||(n=l&~e,n!==0&&(a=wi(n))))):(l=r&~i,l!==0?a=wi(l):o!==0?a=wi(o):n||(n=r&~e,n!==0&&(a=wi(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function Rc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function v$(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+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 sE(){var e=uf;return uf<<=1,!(uf&62914560)&&(uf=4194304),e}function xy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $c(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function g$(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Tn(n),c=1<<f;l[f]=0,s[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~c}r!==0&&uE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function uE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Tn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function cE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function fE(e,t){var n=t&-t;return n=n&42?1:z0(n),n&(e.suspendedLanes|t)?0:n}function z0(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function B0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dE(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:DT(e.type))}function y1(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var ui=Math.random().toString(36).slice(2),Lt="__reactFiber$"+ui,hn="__reactProps$"+ui,us="__reactContainer$"+ui,Ym="__reactEvents$"+ui,b$="__reactListeners$"+ui,x$="__reactHandles$"+ui,m1="__reactResources$"+ui,Dc="__reactMarker$"+ui;function U0(e){delete e[Lt],delete e[hn],delete e[Ym],delete e[b$],delete e[x$]}function Uo(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[us]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=OS(e);e!==null;){if(n=e[Lt])return n;e=OS(e)}return t}e=n,n=e.parentNode}return null}function cs(e){if(e=e[Lt]||e[us]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function tl(e){var t=e[m1];return t||(t=e[m1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Dc]=!0}var hE=new Set,pE={};function fo(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(pE[e]=t,e=0;e<t.length;e++)hE.add(t[e])}var S$=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]*$"),v1={},g1={};function w$(e){return Gm.call(g1,e)?!0:Gm.call(v1,e)?!1:S$.test(e)?g1[e]=!0:(v1[e]=!0,!1)}function zf(e,t,n){if(w$(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Dr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function In(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O$(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Km(e){if(!e._valueTracker){var t=yE(e)?"checked":"value";e._valueTracker=O$(e,t,""+e[t])}}function mE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var j$=/[\n"\\]/g;function Fn(e){return e.replace(j$,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xm(e,t,n,r,a,i,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+In(t)):e.value!==""+In(t)&&(e.value=""+In(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Vm(e,o,In(t)):n!=null?Vm(e,o,In(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+In(l):e.removeAttribute("name")}function vE(e,t,n,r,a,i,o,l){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Km(e);return}n=n!=null?""+In(n):"",t=t!=null?""+In(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Km(e)}function Vm(e,t,n){t==="number"&&fd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function nl(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+In(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gE(e,t,n){if(t!=null&&(t=""+In(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+In(n):""}function bE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(I(92));if(tu(r)){if(1<r.length)throw Error(I(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=In(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Km(e)}function _l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var A$=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 b1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||A$.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function xE(e,t,n){if(t!=null&&typeof t!="object")throw Error(I(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&b1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&b1(e,i,t[i])}function I0(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var E$=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"]]),_$=/^[\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 Bf(e){return _$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qr(){}var Qm=null;function H0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,rl=null;function x1(e){var t=cs(e);if(t&&(e=t.stateNode)){var n=e[hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Fn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[hn]||null;if(!a)throw Error(I(90));Xm(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&mE(r)}break e;case"textarea":gE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&nl(e,!!n.multiple,t,!1)}}}var Sy=!1;function SE(e,t,n){if(Sy)return e(t,n);Sy=!0;try{var r=e(t);return r}finally{if(Sy=!1,(Io!==null||rl!==null)&&(ip(),Io&&(t=Io,e=rl,rl=Io=null,x1(t),e)))for(t=0;t<e.length;t++)x1(e[t])}}function Tu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[hn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wm=!1;if(la)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){Wm=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{Wm=!1}var Ha=null,q0=null,Uf=null;function wE(){if(Uf)return Uf;var e,t=q0,n=t.length,r,a="value"in Ha?Ha.value:Ha.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return Uf=a.slice(e,1<r?1-r:void 0)}function If(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ff(){return!0}function S1(){return!1}function pn(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ff:S1,this.isPropagationStopped=S1,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ff)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ff)},persist:function(){},isPersistent:ff}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xh=pn(ho),kc=et({},ho,{view:0,detail:0}),T$=pn(kc),wy,Oy,Ls,Vh=et({},kc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:F0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ls&&(Ls&&e.type==="mousemove"?(wy=e.screenX-Ls.screenX,Oy=e.screenY-Ls.screenY):Oy=wy=0,Ls=e),wy)},movementY:function(e){return"movementY"in e?e.movementY:Oy}}),w1=pn(Vh),C$=et({},Vh,{dataTransfer:0}),N$=pn(C$),M$=et({},kc,{relatedTarget:0}),jy=pn(M$),P$=et({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),R$=pn(P$),$$=et({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D$=pn($$),k$=et({},ho,{data:0}),O1=pn(k$),L$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z$={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"},B$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B$[e])?!!t[e]:!1}function F0(){return U$}var I$=et({},kc,{key:function(e){if(e.key){var t=L$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=If(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:F0,charCode:function(e){return e.type==="keypress"?If(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?If(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H$=pn(I$),q$=et({},Vh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j1=pn(q$),F$=et({},kc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:F0}),G$=pn(F$),Y$=et({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),K$=pn(Y$),X$=et({},Vh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),V$=pn(X$),Q$=et({},ho,{newState:0,oldState:0}),W$=pn(Q$),Z$=[9,13,27,32],G0=la&&"CompositionEvent"in window,su=null;la&&"documentMode"in document&&(su=document.documentMode);var J$=la&&"TextEvent"in window&&!su,OE=la&&(!G0||su&&8<su&&11>=su),A1=" ",E1=!1;function jE(e,t){switch(e){case"keyup":return Z$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ho=!1;function eD(e,t){switch(e){case"compositionend":return AE(t);case"keypress":return t.which!==32?null:(E1=!0,A1);case"textInput":return e=t.data,e===A1&&E1?null:e;default:return null}}function tD(e,t){if(Ho)return e==="compositionend"||!G0&&jE(e,t)?(e=wE(),Uf=q0=Ha=null,Ho=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return OE&&t.locale!=="ko"?null:t.data;default:return null}}var nD={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 _1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nD[e.type]:t==="textarea"}function EE(e,t,n,r){Io?rl?rl.push(r):rl=[r]:Io=r,t=Cd(t,"onChange"),0<t.length&&(n=new Xh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uu=null,Cu=null;function rD(e){ST(e,0)}function Qh(e){var t=nu(e);if(mE(t))return e}function T1(e,t){if(e==="change")return t}var _E=!1;if(la){var Ay;if(la){var Ey="oninput"in document;if(!Ey){var C1=document.createElement("div");C1.setAttribute("oninput","return;"),Ey=typeof C1.oninput=="function"}Ay=Ey}else Ay=!1;_E=Ay&&(!document.documentMode||9<document.documentMode)}function N1(){uu&&(uu.detachEvent("onpropertychange",TE),Cu=uu=null)}function TE(e){if(e.propertyName==="value"&&Qh(Cu)){var t=[];EE(t,Cu,e,H0(e)),SE(rD,t)}}function aD(e,t,n){e==="focusin"?(N1(),uu=t,Cu=n,uu.attachEvent("onpropertychange",TE)):e==="focusout"&&N1()}function iD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qh(Cu)}function oD(e,t){if(e==="click")return Qh(t)}function lD(e,t){if(e==="input"||e==="change")return Qh(t)}function sD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:sD;function Nu(e,t){if(Mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Gm.call(t,a)||!Mn(e[a],t[a]))return!1}return!0}function M1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function P1(e,t){var n=M1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=M1(n)}}function CE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?CE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fd(e.document)}return t}function Y0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var uD=la&&"documentMode"in document&&11>=document.documentMode,qo=null,Zm=null,cu=null,Jm=!1;function R1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jm||qo==null||qo!==fd(r)||(r=qo,"selectionStart"in r&&Y0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cu&&Nu(cu,r)||(cu=r,r=Cd(Zm,"onSelect"),0<r.length&&(t=new Xh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fo={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},_y={},ME={};la&&(ME=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function po(e){if(_y[e])return _y[e];if(!Fo[e])return e;var t=Fo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ME)return _y[e]=t[n];return e}var PE=po("animationend"),RE=po("animationiteration"),$E=po("animationstart"),cD=po("transitionrun"),fD=po("transitionstart"),dD=po("transitioncancel"),DE=po("transitionend"),kE=new Map,ev="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(" ");ev.push("scrollEnd");function hr(e,t){kE.set(e,t),fo(t,[e])}var dd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Un=[],Go=0,K0=0;function Wh(){for(var e=Go,t=K0=Go=0;t<e;){var n=Un[t];Un[t++]=null;var r=Un[t];Un[t++]=null;var a=Un[t];Un[t++]=null;var i=Un[t];if(Un[t++]=null,r!==null&&a!==null){var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}i!==0&&LE(n,a,i)}}function Zh(e,t,n,r){Un[Go++]=e,Un[Go++]=t,Un[Go++]=n,Un[Go++]=r,K0|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function X0(e,t,n,r){return Zh(e,t,n,r),hd(e)}function yo(e,t){return Zh(e,null,null,t),hd(e)}function LE(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Tn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function hd(e){if(50<bu)throw bu=0,Sv=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yo={};function hD(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,n,r){return new hD(e,t,n,r)}function V0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var n=e.alternate;return n===null?(n=On(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zE(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hf(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")V0(e)&&(o=1);else if(typeof e=="string")o=g3(e,n,Ar.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Im:return e=On(31,n,t,a),e.elementType=Im,e.lanes=i,e;case zo:return Gi(n.children,a,i,t);case rE:o=8,a|=24;break;case zm:return e=On(12,n,t,a|2),e.elementType=zm,e.lanes=i,e;case Bm:return e=On(13,n,t,a),e.elementType=Bm,e.lanes=i,e;case Um:return e=On(19,n,t,a),e.elementType=Um,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vr:o=10;break e;case aE:o=9;break e;case D0:o=11;break e;case k0:o=14;break e;case ja:o=16,r=null;break e}o=29,n=Error(I(130,e===null?"null":typeof e,"")),r=null}return t=On(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gi(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Ty(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function BE(e){var t=On(18,null,null,0);return t.stateNode=e,t}function Cy(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=$1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:p1(t)},$1.set(e,t),t)}return{value:e,source:t,stack:p1(t)}}var Ko=[],Xo=0,pd=null,Mu=0,Hn=[],qn=0,ii=null,Sr=1,wr="";function qr(e,t){Ko[Xo++]=Mu,Ko[Xo++]=pd,pd=e,Mu=t}function UE(e,t,n){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ii,ii=e;var r=Sr;e=wr;var a=32-Tn(r)-1;r&=~(1<<a),n+=1;var i=32-Tn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Sr=1<<32-Tn(t)+a|n<<a|r,wr=i+e}else Sr=1<<i|n<<a|r,wr=e}function Q0(e){e.return!==null&&(qr(e,1),UE(e,1,0))}function W0(e){for(;e===pd;)pd=Ko[--Xo],Ko[Xo]=null,Mu=Ko[--Xo],Ko[Xo]=null;for(;e===ii;)ii=Hn[--qn],Hn[qn]=null,wr=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null}function IE(e,t){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ii,Sr=t.id,wr=t.overflow,ii=e}var zt=null,Ze=null,Oe=!1,Xa=null,Yn=!1,tv=Error(I(519));function oi(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pu(Gn(t,e)),tv}function D1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Lt]=e,t[hn]=r,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<ku.length;n++)be(ku[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),vE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),bE(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||OT(t.textContent,n)?(r.popover!=null&&(be("beforetoggle",t),be("toggle",t)),r.onScroll!=null&&be("scroll",t),r.onScrollEnd!=null&&be("scrollend",t),r.onClick!=null&&(t.onclick=Qr),t=!0):t=!1,t||oi(e,!0)}function k1(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:zt=zt.return}}function To(e){if(e!==zt)return!1;if(!Oe)return k1(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ev(e.type,e.memoizedProps)),n=!n),n&&Ze&&oi(e),k1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Ze=wS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Ze=wS(e)}else t===27?(t=Ze,ci(e.type)?(e=Nv,Nv=null,Ze=e):Ze=t):Ze=zt?Qn(e.stateNode.nextSibling):null;return!0}function Zi(){Ze=zt=null,Oe=!1}function Ny(){var e=Xa;return e!==null&&(un===null?un=e:un.push.apply(un,e),Xa=null),e}function Pu(e){Xa===null?Xa=[e]:Xa.push(e)}var nv=Cr(null),mo=null,Wr=null;function Ta(e,t,n){Ye(nv,t._currentValue),t._currentValue=n}function ta(e){e._currentValue=nv.current,Mt(nv)}function rv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function av(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var l=i;i=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),rv(i.return,n,e),r||(o=null);break e}i=l.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(I(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),rv(o,n,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function fs(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(I(387));if(o=o.memoizedProps,o!==null){var l=a.type;Mn(a.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(a===ld.current){if(o=a.alternate,o===null)throw Error(I(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(zu):e=[zu])}a=a.return}e!==null&&av(t,e,n,r),t.flags|=262144}function yd(e){for(e=e.firstContext;e!==null;){if(!Mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){mo=e,Wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return HE(mo,e)}function df(e,t){return mo===null&&Ji(e),HE(e,t)}function HE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wr===null){if(e===null)throw Error(I(308));Wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wr=Wr.next=t;return n}var pD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},yD=Ot.unstable_scheduleCallback,mD=Ot.unstable_NormalPriority,pt={$$typeof:Vr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Z0(){return{controller:new pD,data:new Map,refCount:0}}function Lc(e){e.refCount--,e.refCount===0&&yD(mD,function(){e.controller.abort()})}var fu=null,iv=0,Tl=0,al=null;function vD(e,t){if(fu===null){var n=fu=[];iv=0,Tl=Ob(),al={status:"pending",value:void 0,then:function(r){n.push(r)}}}return iv++,t.then(L1,L1),t}function L1(){if(--iv===0&&fu!==null){al!==null&&(al.status="fulfilled");var e=fu;fu=null,Tl=0,al=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gD(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var z1=ie.S;ie.S=function(e,t){nT=En(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vD(e,t),z1!==null&&z1(e,t)};var Yi=Cr(null);function J0(){var e=Yi.current;return e!==null?e:qe.pooledCache}function qf(e,t){t===null?Ye(Yi,Yi.current):Ye(Yi,t.pool)}function qE(){var e=J0();return e===null?null:{parent:pt._currentValue,pool:e}}var ds=Error(I(460)),eb=Error(I(474)),Jh=Error(I(542)),md={then:function(){}};function B1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function FE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qr,Qr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I1(e),e;default:if(typeof t.status=="string")t.then(Qr,Qr);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(I(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I1(e),e}throw Ki=t,ds}}function Oi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ki=n,ds):n}}var Ki=null;function U1(){if(Ki===null)throw Error(I(459));var e=Ki;return Ki=null,e}function I1(e){if(e===ds||e===Jh)throw Error(I(483))}var il=null,Ru=0;function hf(e){var t=Ru;return Ru+=1,il===null&&(il=[]),FE(il,e,t)}function zs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pf(e,t){throw t.$$typeof===a$?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function GE(e){function t(y,m){if(e){var x=y.deletions;x===null?(y.deletions=[m],y.flags|=16):x.push(m)}}function n(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function r(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=ea(y,m),y.index=0,y.sibling=null,y}function i(y,m,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<m?(y.flags|=67108866,m):x):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function l(y,m,x,w){return m===null||m.tag!==6?(m=Ty(x,y.mode,w),m.return=y,m):(m=a(m,x),m.return=y,m)}function s(y,m,x,w){var S=x.type;return S===zo?f(y,m,x.props.children,w,x.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ja&&Oi(S)===m.type)?(m=a(m,x.props),zs(m,x),m.return=y,m):(m=Hf(x.type,x.key,x.props,null,y.mode,w),zs(m,x),m.return=y,m)}function u(y,m,x,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Cy(x,y.mode,w),m.return=y,m):(m=a(m,x.children||[]),m.return=y,m)}function f(y,m,x,w,S){return m===null||m.tag!==7?(m=Gi(x,y.mode,w,S),m.return=y,m):(m=a(m,x),m.return=y,m)}function c(y,m,x){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ty(""+m,y.mode,x),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case of:return x=Hf(m.type,m.key,m.props,null,y.mode,x),zs(x,m),x.return=y,x;case eu:return m=Cy(m,y.mode,x),m.return=y,m;case ja:return m=Oi(m),c(y,m,x)}if(tu(m)||Ds(m))return m=Gi(m,y.mode,x,null),m.return=y,m;if(typeof m.then=="function")return c(y,hf(m),x);if(m.$$typeof===Vr)return c(y,df(y,m),x);pf(y,m)}return null}function h(y,m,x,w){var S=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:l(y,m,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case of:return x.key===S?s(y,m,x,w):null;case eu:return x.key===S?u(y,m,x,w):null;case ja:return x=Oi(x),h(y,m,x,w)}if(tu(x)||Ds(x))return S!==null?null:f(y,m,x,w,null);if(typeof x.then=="function")return h(y,m,hf(x),w);if(x.$$typeof===Vr)return h(y,m,df(y,x),w);pf(y,x)}return null}function p(y,m,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,l(m,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case of:return y=y.get(w.key===null?x:w.key)||null,s(m,y,w,S);case eu:return y=y.get(w.key===null?x:w.key)||null,u(m,y,w,S);case ja:return w=Oi(w),p(y,m,x,w,S)}if(tu(w)||Ds(w))return y=y.get(x)||null,f(m,y,w,S,null);if(typeof w.then=="function")return p(y,m,x,hf(w),S);if(w.$$typeof===Vr)return p(y,m,x,df(m,w),S);pf(m,w)}return null}function b(y,m,x,w){for(var S=null,O=null,A=m,_=m=0,T=null;A!==null&&_<x.length;_++){A.index>_?(T=A,A=null):T=A.sibling;var M=h(y,A,x[_],w);if(M===null){A===null&&(A=T);break}e&&A&&M.alternate===null&&t(y,A),m=i(M,m,_),O===null?S=M:O.sibling=M,O=M,A=T}if(_===x.length)return n(y,A),Oe&&qr(y,_),S;if(A===null){for(;_<x.length;_++)A=c(y,x[_],w),A!==null&&(m=i(A,m,_),O===null?S=A:O.sibling=A,O=A);return Oe&&qr(y,_),S}for(A=r(A);_<x.length;_++)T=p(A,y,_,x[_],w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?_:T.key),m=i(T,m,_),O===null?S=T:O.sibling=T,O=T);return e&&A.forEach(function(L){return t(y,L)}),Oe&&qr(y,_),S}function v(y,m,x,w){if(x==null)throw Error(I(151));for(var S=null,O=null,A=m,_=m=0,T=null,M=x.next();A!==null&&!M.done;_++,M=x.next()){A.index>_?(T=A,A=null):T=A.sibling;var L=h(y,A,M.value,w);if(L===null){A===null&&(A=T);break}e&&A&&L.alternate===null&&t(y,A),m=i(L,m,_),O===null?S=L:O.sibling=L,O=L,A=T}if(M.done)return n(y,A),Oe&&qr(y,_),S;if(A===null){for(;!M.done;_++,M=x.next())M=c(y,M.value,w),M!==null&&(m=i(M,m,_),O===null?S=M:O.sibling=M,O=M);return Oe&&qr(y,_),S}for(A=r(A);!M.done;_++,M=x.next())M=p(A,y,_,M.value,w),M!==null&&(e&&M.alternate!==null&&A.delete(M.key===null?_:M.key),m=i(M,m,_),O===null?S=M:O.sibling=M,O=M);return e&&A.forEach(function(E){return t(y,E)}),Oe&&qr(y,_),S}function g(y,m,x,w){if(typeof x=="object"&&x!==null&&x.type===zo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case of:e:{for(var S=x.key;m!==null;){if(m.key===S){if(S=x.type,S===zo){if(m.tag===7){n(y,m.sibling),w=a(m,x.props.children),w.return=y,y=w;break e}}else if(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ja&&Oi(S)===m.type){n(y,m.sibling),w=a(m,x.props),zs(w,x),w.return=y,y=w;break e}n(y,m);break}else t(y,m);m=m.sibling}x.type===zo?(w=Gi(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=Hf(x.type,x.key,x.props,null,y.mode,w),zs(w,x),w.return=y,y=w)}return o(y);case eu:e:{for(S=x.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),w=a(m,x.children||[]),w.return=y,y=w;break e}else{n(y,m);break}else t(y,m);m=m.sibling}w=Cy(x,y.mode,w),w.return=y,y=w}return o(y);case ja:return x=Oi(x),g(y,m,x,w)}if(tu(x))return b(y,m,x,w);if(Ds(x)){if(S=Ds(x),typeof S!="function")throw Error(I(150));return x=S.call(x),v(y,m,x,w)}if(typeof x.then=="function")return g(y,m,hf(x),w);if(x.$$typeof===Vr)return g(y,m,df(y,x),w);pf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),w=a(m,x),w.return=y,y=w):(n(y,m),w=Ty(x,y.mode,w),w.return=y,y=w),o(y)):n(y,m)}return function(y,m,x,w){try{Ru=0;var S=g(y,m,x,w);return il=null,S}catch(A){if(A===ds||A===Jh)throw A;var O=On(29,A,null,y.mode);return O.lanes=w,O.return=y,O}finally{}}}var eo=GE(!0),YE=GE(!1),Aa=!1;function tb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ov(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=hd(e),LE(e,null,n),t}return Zh(e,r,t,n),hd(e)}function du(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cE(e,n)}}function My(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var lv=!1;function hu(){if(lv){var e=al;if(e!==null)throw e}}function pu(e,t,n,r){lv=!1;var a=e.updateQueue;Aa=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=a.baseState;o=0,f=u=s=null,l=i;do{var h=l.lane&-536870913,p=h!==l.lane;if(p?(Se&h)===h:(r&h)===h){h!==0&&h===Tl&&(lv=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;h=t;var g=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){c=b.call(g,c,h);break e}c=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(g,c,h):b,h==null)break e;c=et({},c,h);break e;case 2:Aa=!0}}h=l.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;p=l,l=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);f===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),si|=o,e.lanes=o,e.memoizedState=c}}function KE(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function XE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)KE(n[e],t)}var Cl=Cr(null),vd=Cr(0);function H1(e,t){e=fa,Ye(vd,e),Ye(Cl,t),fa=e|t.baseLanes}function sv(){Ye(vd,fa),Ye(Cl,Cl.current)}function nb(){fa=vd.current,Mt(Cl),Mt(vd)}var Pn=Cr(null),Vn=null;function Ca(e){var t=e.alternate;Ye(st,st.current&1),Ye(Pn,e),Vn===null&&(t===null||Cl.current!==null||t.memoizedState!==null)&&(Vn=e)}function uv(e){Ye(st,st.current),Ye(Pn,e),Vn===null&&(Vn=e)}function VE(e){e.tag===22?(Ye(st,st.current),Ye(Pn,e),Vn===null&&(Vn=e)):Na()}function Na(){Ye(st,st.current),Ye(Pn,Pn.current)}function wn(e){Mt(Pn),Vn===e&&(Vn=null),Mt(st)}var st=Cr(0);function gd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tv(n)||Cv(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=0,he=null,Ue=null,dt=null,bd=!1,ol=!1,to=!1,xd=0,$u=0,ll=null,bD=0;function at(){throw Error(I(321))}function rb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mn(e[n],t[n]))return!1;return!0}function ab(e,t,n,r,a,i){return sa=i,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?E_:yb,to=!1,i=n(r,a),to=!1,ol&&(i=WE(t,n,r,a)),QE(e),i}function QE(e){ie.H=Du;var t=Ue!==null&&Ue.next!==null;if(sa=0,dt=Ue=he=null,bd=!1,$u=0,ll=null,t)throw Error(I(300));e===null||yt||(e=e.dependencies,e!==null&&yd(e)&&(yt=!0))}function WE(e,t,n,r){he=e;var a=0;do{if(ol&&(ll=null),$u=0,ol=!1,25<=a)throw Error(I(301));if(a+=1,dt=Ue=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ie.H=__,i=t(n,r)}while(ol);return i}function xD(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?zc(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(he.flags|=1024),t}function ib(){var e=xd!==0;return xd=0,e}function ob(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lb(e){if(bd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bd=!1}sa=0,dt=Ue=he=null,ol=!1,$u=xd=0,ll=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?he.memoizedState=dt=e:dt=dt.next=e,dt}function ut(){if(Ue===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=dt===null?he.memoizedState:dt.next;if(t!==null)dt=t,Ue=e;else{if(e===null)throw he.alternate===null?Error(I(467)):Error(I(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},dt===null?he.memoizedState=dt=e:dt=dt.next=e}return dt}function ep(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zc(e){var t=$u;return $u+=1,ll===null&&(ll=[]),e=FE(ll,e,t),t=he,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?E_:yb),e}function tp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zc(e);if(e.$$typeof===Vr)return Ut(e)}throw Error(I(438,String(e)))}function sb(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=he.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ep(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=i$;return t.index++,n}function ua(e,t){return typeof t=="function"?t(e):t}function Ff(e){var t=ut();return ub(t,Ue,e)}function ub(e,t,n){var r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var l=o=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(Se&c)===c:(sa&c)===c){var h=u.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===Tl&&(f=!0);else if((sa&h)===h){u=u.next,h===Tl&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=c,o=i):s=s.next=c,he.lanes|=h,si|=h;c=u.action,to&&n(i,c),i=u.hasEagerState?u.eagerState:n(i,c)}else h={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=h,o=i):s=s.next=h,he.lanes|=c,si|=c;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Mn(i,e.memoizedState)&&(yt=!0,f&&(n=al,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=s,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Py(e){var t=ut(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Mn(i,t.memoizedState)||(yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ZE(e,t,n){var r=he,a=ut(),i=Oe;if(i){if(n===void 0)throw Error(I(407));n=n()}else n=t();var o=!Mn((Ue||a).memoizedState,n);if(o&&(a.memoizedState=n,yt=!0),a=a.queue,cb(t_.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,Nl(9,{destroy:void 0},e_.bind(null,r,a,n,t),null),qe===null)throw Error(I(349));i||sa&127||JE(r,t,n)}return n}function JE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=ep(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function e_(e,t,n,r){t.value=n,t.getSnapshot=r,n_(t)&&r_(e)}function t_(e,t,n){return n(function(){n_(t)&&r_(e)})}function n_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function r_(e){var t=yo(e,2);t!==null&&fn(t,e,2)}function cv(e){var t=Vt();if(typeof e=="function"){var n=e;if(e=n(),to){Ia(!0);try{n()}finally{Ia(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function a_(e,t,n,r){return e.baseState=n,ub(e,Ue,typeof r=="function"?r:ua)}function SD(e,t,n,r,a){if(rp(e))throw Error(I(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};ie.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,i_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function i_(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=ie.T,o={};ie.T=o;try{var l=n(a,r),s=ie.S;s!==null&&s(o,l),q1(e,t,l)}catch(u){fv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),ie.T=i}}else try{i=n(a,r),q1(e,t,i)}catch(u){fv(e,t,u)}}function q1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){F1(e,t,r)},function(r){return fv(e,t,r)}):F1(e,t,n)}function F1(e,t,n){t.status="fulfilled",t.value=n,o_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,i_(e,n)))}function fv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,o_(t),t=t.next;while(t!==r)}e.action=null}function o_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function l_(e,t){return t}function G1(e,t){if(Oe){var n=qe.formState;if(n!==null){e:{var r=he;if(Oe){if(Ze){t:{for(var a=Ze,i=Yn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Qn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ze=Qn(a.nextSibling),r=a.data==="F!";break e}}oi(r)}r=!1}r&&(t=n[0])}}return n=Vt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l_,lastRenderedState:t},n.queue=r,n=O_.bind(null,he,r),r.dispatch=n,r=cv(!1),i=pb.bind(null,he,!1,r.queue),r=Vt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=SD.bind(null,he,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Y1(e){var t=ut();return s_(t,Ue,e)}function s_(e,t,n){if(t=ub(e,t,l_)[0],e=Ff(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=zc(t)}catch(o){throw o===ds?Jh:o}else r=t;t=ut();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Nl(9,{destroy:void 0},wD.bind(null,a,n),null)),[r,i,e]}function wD(e,t){e.action=t}function K1(e){var t=ut(),n=Ue;if(n!==null)return s_(t,n,e);ut(),t=t.memoizedState,n=ut();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Nl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=he.updateQueue,t===null&&(t=ep(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function u_(){return ut().memoizedState}function Gf(e,t,n,r){var a=Vt();he.flags|=e,a.memoizedState=Nl(1|t,{destroy:void 0},n,r===void 0?null:r)}function np(e,t,n,r){var a=ut();r=r===void 0?null:r;var i=a.memoizedState.inst;Ue!==null&&r!==null&&rb(r,Ue.memoizedState.deps)?a.memoizedState=Nl(t,i,n,r):(he.flags|=e,a.memoizedState=Nl(1|t,i,n,r))}function X1(e,t){Gf(8390656,8,e,t)}function cb(e,t){np(2048,8,e,t)}function OD(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=ep(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function c_(e){var t=ut().memoizedState;return OD({ref:t,nextImpl:e}),function(){if(_e&2)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function f_(e,t){return np(4,2,e,t)}function d_(e,t){return np(4,4,e,t)}function h_(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function p_(e,t,n){n=n!=null?n.concat([e]):null,np(4,4,h_.bind(null,t,e),n)}function fb(){}function y_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&rb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function m_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&rb(t,r[1]))return r[0];if(r=e(),to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r}function db(e,t,n){return n===void 0||sa&1073741824&&!(Se&261930)?e.memoizedState=t:(e.memoizedState=n,e=aT(),he.lanes|=e,si|=e,n)}function v_(e,t,n,r){return Mn(n,t)?n:Cl.current!==null?(e=db(e,n,r),Mn(e,t)||(yt=!0),e):!(sa&42)||sa&1073741824&&!(Se&261930)?(yt=!0,e.memoizedState=n):(e=aT(),he.lanes|=e,si|=e,t)}function g_(e,t,n,r,a){var i=Te.p;Te.p=i!==0&&8>i?i:8;var o=ie.T,l={};ie.T=l,pb(e,!1,t,n);try{var s=a(),u=ie.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=gD(s,r);yu(e,t,f,Cn(e))}else yu(e,t,r,Cn(e))}catch(c){yu(e,t,{then:function(){},status:"rejected",reason:c},Cn())}finally{Te.p=i,o!==null&&l.types!==null&&(o.types=l.types),ie.T=o}}function jD(){}function dv(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=b_(e).queue;g_(e,a,t,Fi,n===null?jD:function(){return x_(e),n(r)})}function b_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fi,baseState:Fi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:Fi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function x_(e){var t=b_(e);t.next===null&&(t=e.alternate.memoizedState),yu(e,t.next.queue,{},Cn())}function hb(){return Ut(zu)}function S_(){return ut().memoizedState}function w_(){return ut().memoizedState}function AD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=Va(n);var r=Qa(t,e,n);r!==null&&(fn(r,t,n),du(r,t,n)),t={cache:Z0()},e.payload=t;return}t=t.return}}function ED(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rp(e)?j_(t,n):(n=X0(e,t,n,r),n!==null&&(fn(n,e,r),A_(n,t,r)))}function O_(e,t,n){var r=Cn();yu(e,t,n,r)}function yu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rp(e))j_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Mn(l,o))return Zh(e,t,a,0),qe===null&&Wh(),!1}catch{}finally{}if(n=X0(e,t,a,r),n!==null)return fn(n,e,r),A_(n,t,r),!0}return!1}function pb(e,t,n,r){if(r={lane:2,revertLane:Ob(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rp(e)){if(t)throw Error(I(479))}else t=X0(e,n,r,2),t!==null&&fn(t,e,2)}function rp(e){var t=e.alternate;return e===he||t!==null&&t===he}function j_(e,t){ol=bd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function A_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cE(e,n)}}var Du={readContext:Ut,use:tp,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};Du.useEffectEvent=at;var E_={readContext:Ut,use:tp,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:X1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Gf(4194308,4,h_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gf(4194308,4,e,t)},useInsertionEffect:function(e,t){Gf(4,2,e,t)},useMemo:function(e,t){var n=Vt();t=t===void 0?null:t;var r=e();if(to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Vt();if(n!==void 0){var a=n(t);if(to){Ia(!0);try{n(t)}finally{Ia(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=ED.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=cv(e);var t=e.queue,n=O_.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fb,useDeferredValue:function(e,t){var n=Vt();return db(n,e,t)},useTransition:function(){var e=cv(!1);return e=g_.bind(null,he,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=he,a=Vt();if(Oe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),qe===null)throw Error(I(349));Se&127||JE(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,X1(t_.bind(null,r,i,e),[e]),r.flags|=2048,Nl(9,{destroy:void 0},e_.bind(null,r,i,n,t),null),n},useId:function(){var e=Vt(),t=qe.identifierPrefix;if(Oe){var n=wr,r=Sr;n=(r&~(1<<32-Tn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=xd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bD++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hb,useFormState:G1,useActionState:G1,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pb.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:sb,useCacheRefresh:function(){return Vt().memoizedState=AD.bind(null,he)},useEffectEvent:function(e){var t=Vt(),n={impl:e};return t.memoizedState=n,function(){if(_e&2)throw Error(I(440));return n.impl.apply(void 0,arguments)}}},yb={readContext:Ut,use:tp,useCallback:y_,useContext:Ut,useEffect:cb,useImperativeHandle:p_,useInsertionEffect:f_,useLayoutEffect:d_,useMemo:m_,useReducer:Ff,useRef:u_,useState:function(){return Ff(ua)},useDebugValue:fb,useDeferredValue:function(e,t){var n=ut();return v_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Ff(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:zc(e),t]},useSyncExternalStore:ZE,useId:S_,useHostTransitionStatus:hb,useFormState:Y1,useActionState:Y1,useOptimistic:function(e,t){var n=ut();return a_(n,Ue,e,t)},useMemoCache:sb,useCacheRefresh:w_};yb.useEffectEvent=c_;var __={readContext:Ut,use:tp,useCallback:y_,useContext:Ut,useEffect:cb,useImperativeHandle:p_,useInsertionEffect:f_,useLayoutEffect:d_,useMemo:m_,useReducer:Py,useRef:u_,useState:function(){return Py(ua)},useDebugValue:fb,useDeferredValue:function(e,t){var n=ut();return Ue===null?db(n,e,t):v_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Py(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:zc(e),t]},useSyncExternalStore:ZE,useId:S_,useHostTransitionStatus:hb,useFormState:K1,useActionState:K1,useOptimistic:function(e,t){var n=ut();return Ue!==null?a_(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:sb,useCacheRefresh:w_};__.useEffectEvent=c_;function Ry(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Va(r);a.payload=t,n!=null&&(a.callback=n),t=Qa(e,a,r),t!==null&&(fn(t,e,r),du(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Va(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Qa(e,a,r),t!==null&&(fn(t,e,r),du(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Qa(e,r,n),t!==null&&(fn(t,e,n),du(t,e,n))}};function V1(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Nu(n,r)||!Nu(a,i):!0}function Q1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hv.enqueueReplaceState(t,t.state,null)}function no(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=et({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function T_(e){dd(e)}function C_(e){console.error(e)}function N_(e){dd(e)}function Sd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function W1(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function pv(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Sd(e,t)},n}function M_(e){return e=Va(e),e.tag=3,e}function P_(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){W1(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){W1(t,n,r),typeof a!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function _D(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&fs(t,n,a,!0),n=Pn.current,n!==null){switch(n.tag){case 31:case 13:return Vn===null?Ed():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===md?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Fy(e,r,a)),!1;case 22:return n.flags|=65536,r===md?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Fy(e,r,a)),!1}throw Error(I(435,n.tag))}return Fy(e,r,a),Ed(),!1}if(Oe)return t=Pn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==tv&&(e=Error(I(422),{cause:r}),Pu(Gn(e,n)))):(r!==tv&&(t=Error(I(423),{cause:r}),Pu(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=pv(e.stateNode,r,a),My(e,a),lt!==4&&(lt=2)),!1;var i=Error(I(520),{cause:r});if(i=Gn(i,n),gu===null?gu=[i]:gu.push(i),lt!==4&&(lt=2),t===null)return!0;r=Gn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=pv(n.stateNode,r,e),My(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Wa===null||!Wa.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=M_(a),P_(a,e,n,r),My(n,a),!1}n=n.return}while(n!==null);return!1}var mb=Error(I(461)),yt=!1;function kt(e,t,n,r){t.child=e===null?YE(t,null,n,r):eo(t,e.child,n,r)}function Z1(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}else o=r;return Ji(t),r=ab(e,t,n,o,i,a),l=ib(),e!==null&&!yt?(ob(e,t,a),ca(e,t,a)):(Oe&&l&&Q0(t),t.flags|=1,kt(e,t,r,a),t.child)}function J1(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!V0(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,R_(e,t,i,r,a)):(e=Hf(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!vb(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Nu,n(o,r)&&e.ref===t.ref)return ca(e,t,a)}return t.flags|=1,e=ea(i,r),e.ref=t.ref,e.return=t,t.child=e}function R_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Nu(i,r)&&e.ref===t.ref)if(yt=!1,t.pendingProps=r=i,vb(e,a))e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,ca(e,t,a)}return yv(e,t,n,r,a)}function $_(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return eS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qf(t,i!==null?i.cachePool:null),i!==null?H1(t,i):sv(),VE(t);else return r=t.lanes=536870912,eS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(qf(t,i.cachePool),H1(t,i),Na(),t.memoizedState=null):(e!==null&&qf(t,null),sv(),Na());return kt(e,t,a,n),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function eS(e,t,n,r,a){var i=J0();return i=i===null?null:{parent:pt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&qf(t,null),sv(),VE(t),e!==null&&fs(e,t,r,!0),t.childLanes=a,null}function Yf(e,t){return t=wd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tS(e,t,n){return eo(t,e.child,null,n),e=Yf(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function TD(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=Yf(t,r),t.lanes=536870912,ru(null,e);if(uv(t),(e=Ze)?(e=ET(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=BE(e),n.return=t,t.child=n,zt=t,Ze=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return Yf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(uv(t),a)if(t.flags&256)t.flags&=-257,t=tS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(yt||fs(e,t,n,!1),a=(n&e.childLanes)!==0,yt||a){if(r=qe,r!==null&&(o=fE(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,yo(e,o),fn(r,e,o),mb;Ed(),t=tS(e,t,n)}else e=i.treeContext,Ze=Qn(o.nextSibling),zt=t,Oe=!0,Xa=null,Yn=!1,e!==null&&IE(t,e),t=Yf(t,r),t.flags|=4096;return t}return e=ea(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Kf(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(I(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yv(e,t,n,r,a){return Ji(t),n=ab(e,t,n,r,void 0,a),r=ib(),e!==null&&!yt?(ob(e,t,a),ca(e,t,a)):(Oe&&r&&Q0(t),t.flags|=1,kt(e,t,n,a),t.child)}function nS(e,t,n,r,a,i){return Ji(t),t.updateQueue=null,n=WE(t,r,n,a),QE(e),r=ib(),e!==null&&!yt?(ob(e,t,i),ca(e,t,i)):(Oe&&r&&Q0(t),t.flags|=1,kt(e,t,n,i),t.child)}function rS(e,t,n,r,a){if(Ji(t),t.stateNode===null){var i=Yo,o=n.contextType;typeof o=="object"&&o!==null&&(i=Ut(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=hv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},tb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):Yo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Ry(t,n,o,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&hv.enqueueReplaceState(i,i.state,null),pu(t,r,i,a),hu(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var l=t.memoizedProps,s=no(n,l);i.props=s;var u=i.context,f=n.contextType;o=Yo,typeof f=="object"&&f!==null&&(o=Ut(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&Q1(t,i,r,o),Aa=!1;var h=t.memoizedState;i.state=h,pu(t,r,i,a),hu(),u=t.memoizedState,l||h!==u||Aa?(typeof c=="function"&&(Ry(t,n,c,r),u=t.memoizedState),(s=Aa||V1(t,n,s,r,h,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=o,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ov(e,t),o=t.memoizedProps,f=no(n,o),i.props=f,c=t.pendingProps,h=i.context,u=n.contextType,s=Yo,typeof u=="object"&&u!==null&&(s=Ut(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||h!==s)&&Q1(t,i,r,s),Aa=!1,h=t.memoizedState,i.state=h,pu(t,r,i,a),hu();var p=t.memoizedState;o!==c||h!==p||Aa||e!==null&&e.dependencies!==null&&yd(e.dependencies)?(typeof l=="function"&&(Ry(t,n,l,r),p=t.memoizedState),(f=Aa||V1(t,n,f,r,h,p,s)||e!==null&&e.dependencies!==null&&yd(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Kf(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=eo(t,e.child,null,a),t.child=eo(t,null,n,a)):kt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ca(e,t,a),e}function aS(e,t,n,r){return Zi(),t.flags|=256,kt(e,t,n,r),t.child}var $y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dy(e){return{baseLanes:e,cachePool:qE()}}function ky(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=An),e}function D_(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(a?Ca(t):Na(),(e=Ze)?(e=ET(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=BE(e),n.return=t,t.child=n,zt=t,Ze=null)):e=null,e===null)throw oi(t);return Cv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=wd({mode:"hidden",children:l},a),r=Gi(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Dy(n),r.childLanes=ky(e,o,n),t.memoizedState=$y,ru(null,r)):(Ca(t),mv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(Ca(t),t.flags&=-257,t=Ly(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=wd({mode:"visible",children:r.children},a),l=Gi(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,eo(t,e.child,null,n),r=t.child,r.memoizedState=Dy(n),r.childLanes=ky(e,o,n),t.memoizedState=$y,t=ru(null,r));else if(Ca(t),Cv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(I(419)),r.stack="",r.digest=o,Pu({value:r,source:null,stack:null}),t=Ly(e,t,n)}else if(yt||fs(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(o=qe,o!==null&&(r=fE(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,yo(e,r),fn(o,e,r),mb;Tv(l)||Ed(),t=Ly(e,t,n)}else Tv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ze=Qn(l.nextSibling),zt=t,Oe=!0,Xa=null,Yn=!1,e!==null&&IE(t,e),t=mv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=ea(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=ea(u,l):(l=Gi(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,ru(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Dy(n):(a=l.cachePool,a!==null?(s=pt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=qE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=ky(e,o,n),t.memoizedState=$y,ru(e.child,r)):(Ca(t),n=e.child,e=n.sibling,n=ea(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function mv(e,t){return t=wd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wd(e,t){return e=On(22,e,null,t),e.lanes=0,e}function Ly(e,t,n){return eo(t,e.child,null,n),e=mv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rv(e.return,t,n)}function zy(e,t,n,r,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.treeForkCount=i)}function k_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=st.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Ye(st,o),kt(e,t,r,n),r=Oe?Mu:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iS(e,n,t);else if(e.tag===19)iS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&gd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zy(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&gd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zy(t,!0,n,null,i,r);break;case"together":zy(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ca(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),si|=t.lanes,!(n&t.childLanes))if(e!==null){if(fs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&yd(e)))}function CD(e,t,n){switch(t.tag){case 3:sd(t,t.stateNode.containerInfo),Ta(t,pt,e.memoizedState.cache),Zi();break;case 27:case 5:Fm(t);break;case 4:sd(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ca(t),t.flags|=128,null):n&t.child.childLanes?D_(e,t,n):(Ca(t),e=ca(e,t,n),e!==null?e.sibling:null);Ca(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(fs(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return k_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ye(st,st.current),r)break;return null;case 22:return t.lanes=0,$_(e,t,n,t.pendingProps);case 24:Ta(t,pt,e.memoizedState.cache)}return ca(e,t,n)}function L_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!vb(e,n)&&!(t.flags&128))return yt=!1,CD(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Oe&&t.flags&1048576&&UE(t,Mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Oi(t.elementType),t.type=e,typeof e=="function")V0(e)?(r=no(e,r),t.tag=1,t=rS(null,t,e,r,n)):(t.tag=0,t=yv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===D0){t.tag=11,t=Z1(null,t,e,r,n);break e}else if(a===k0){t.tag=14,t=J1(null,t,e,r,n);break e}}throw t=Hm(e)||e,Error(I(306,t,""))}}return t;case 0:return yv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),rS(e,t,r,a,n);case 3:e:{if(sd(t,t.stateNode.containerInfo),e===null)throw Error(I(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,ov(e,t),pu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ta(t,pt,r),r!==i.cache&&av(t,[pt],n,!0),hu(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=aS(e,t,r,n);break e}else if(r!==a){a=Gn(Error(I(424)),t),Pu(a),t=aS(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=Qn(e.firstChild),zt=t,Oe=!0,Xa=null,Yn=!0,n=YE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zi(),r===a){t=ca(e,t,n);break e}kt(e,t,r,n)}t=t.child}return t;case 26:return Kf(e,t),e===null?(n=AS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,r=Nd(Ka.current).createElement(n),r[Lt]=t,r[hn]=e,It(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=AS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fm(t),e===null&&Oe&&(r=t.stateNode=_T(t.type,t.pendingProps,Ka.current),zt=t,Yn=!0,a=Ze,ci(t.type)?(Nv=a,Ze=Qn(r.firstChild)):Ze=a),kt(e,t,t.pendingProps.children,n),Kf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((a=r=Ze)&&(r=i3(r,t.type,t.pendingProps,Yn),r!==null?(t.stateNode=r,zt=t,Ze=Qn(r.firstChild),Yn=!1,a=!0):a=!1),a||oi(t)),Fm(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Ev(a,i)?r=null:o!==null&&Ev(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=ab(e,t,xD,null,null,n),zu._currentValue=a),Kf(e,t),kt(e,t,r,n),t.child;case 6:return e===null&&Oe&&((e=n=Ze)&&(n=o3(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,zt=t,Ze=null,e=!0):e=!1),e||oi(t)),null;case 13:return D_(e,t,n);case 4:return sd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):kt(e,t,r,n),t.child;case 11:return Z1(e,t,t.type,t.pendingProps,n);case 7:return kt(e,t,t.pendingProps,n),t.child;case 8:return kt(e,t,t.pendingProps.children,n),t.child;case 12:return kt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ta(t,t.type,r.value),kt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Ut(a),r=r(a),t.flags|=1,kt(e,t,r,n),t.child;case 14:return J1(e,t,t.type,t.pendingProps,n);case 15:return R_(e,t,t.type,t.pendingProps,n);case 19:return k_(e,t,n);case 31:return TD(e,t,n);case 22:return $_(e,t,n,t.pendingProps);case 24:return Ji(t),r=Ut(pt),e===null?(a=J0(),a===null&&(a=qe,i=Z0(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},tb(t),Ta(t,pt,a)):(e.lanes&n&&(ov(e,t),pu(t,null,null,n),hu()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ta(t,pt,r)):(r=i.cache,Ta(t,pt,r),r!==a.cache&&av(t,[pt],n,!0))),kt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function kr(e){e.flags|=4}function By(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(lT())e.flags|=8192;else throw Ki=md,eb}else e.flags&=-16777217}function oS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!NT(t))if(lT())e.flags|=8192;else throw Ki=md,eb}function yf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sE():536870912,e.lanes|=t,Ml|=t)}function Bs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ND(e,t,n){var r=t.pendingProps;switch(W0(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ta(pt),Al(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(To(t)?kr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ny())),Ve(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(kr(t),i!==null?(Ve(t),oS(t,i)):(Ve(t),By(t,a,null,r,n))):i?i!==e.memoizedState?(kr(t),Ve(t),oS(t,i)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&kr(t),Ve(t),By(t,a,e,r,n)),null;case 27:if(ud(t),n=Ka.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ve(t),null}e=Ar.current,To(t)?D1(t):(e=_T(a,r,n),t.stateNode=e,kr(t))}return Ve(t),null;case 5:if(ud(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ve(t),null}if(i=Ar.current,To(t))D1(t);else{var o=Nd(Ka.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(a,{is:r.is}):o.createElement(a)}}i[Lt]=t,i[hn]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(It(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&kr(t)}}return Ve(t),By(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=Ka.current,To(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=zt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||OT(e.nodeValue,n)),e||oi(t,!0)}else e=Nd(e).createTextNode(r),e[Lt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=To(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[Lt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Ny(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if(t.flags&128)throw Error(I(558))}return Ve(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=To(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[Lt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ve(t),a=!1}else a=Ny(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yf(t,t.updateQueue),Ve(t),null);case 4:return Al(),e===null&&jb(t.stateNode.containerInfo),Ve(t),null;case 10:return ta(t.type),Ve(t),null;case 19:if(Mt(st),r=t.memoizedState,r===null)return Ve(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Bs(r,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=gd(e),i!==null){for(t.flags|=128,Bs(r,!1),e=i.updateQueue,t.updateQueue=e,yf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zE(n,e),n=n.sibling;return Ye(st,st.current&1|2),Oe&&qr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&En()>jd&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304)}else{if(!a)if(e=gd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,yf(t,e),Bs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Oe)return Ve(t),null}else 2*En()-r.renderingStartTime>jd&&n!==536870912&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=En(),e.sibling=null,n=st.current,Ye(st,a?n&1|2:n&1),Oe&&qr(t,r.treeForkCount),e):(Ve(t),null);case 22:case 23:return wn(t),nb(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&yf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Mt(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(pt),Ve(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function MD(e,t){switch(W0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(pt),Al(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ud(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(I(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mt(st),null;case 4:return Al(),null;case 10:return ta(t.type),null;case 22:case 23:return wn(t),nb(),e!==null&&Mt(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(pt),null;case 25:return null;default:return null}}function z_(e,t){switch(W0(t),t.tag){case 3:ta(pt),Al();break;case 26:case 27:case 5:ud(t);break;case 4:Al();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Mt(st);break;case 10:ta(t.type);break;case 22:case 23:wn(t),nb(),e!==null&&Mt(Yi);break;case 24:ta(pt)}}function Bc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(l){Re(t,t.return,l)}}function li(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,a=t;var s=n,u=l;try{u()}catch(f){Re(a,s,f)}}}r=r.next}while(r!==i)}}catch(f){Re(t,t.return,f)}}function B_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{XE(t,n)}catch(r){Re(e,e.return,r)}}}function U_(e,t,n){n.props=no(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Re(e,t,r)}}function mu(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Re(e,t,a)}}function Or(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Re(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Re(e,t,a)}else n.current=null}function I_(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Re(e,e.return,a)}}function Uy(e,t,n){try{var r=e.stateNode;JD(r,e.type,n,t),r[hn]=t}catch(a){Re(e,e.return,a)}}function H_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ci(e.type)||e.tag===4}function Iy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ci(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qr));else if(r!==4&&(r===27&&ci(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(vv(e,t,n),e=e.sibling;e!==null;)vv(e,t,n),e=e.sibling}function Od(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ci(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Od(e,t,n),e=e.sibling;e!==null;)Od(e,t,n),e=e.sibling}function q_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);It(t,r,n),t[Lt]=e,t[hn]=n}catch(i){Re(e,e.return,i)}}var Xr=!1,ht=!1,Hy=!1,lS=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function PD(e,t){if(e=e.containerInfo,jv=$d,e=NE(e),Y0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==n||a!==0&&c.nodeType!==3||(l=o+a),c!==i||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++f===r&&(s=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Av={focusedElem:e,selectionRange:n},$d=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var b=no(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Re(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)_v(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_v(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(I(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function F_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zr(e,n),r&4&&Bc(5,n);break;case 1:if(zr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Re(n,n.return,o)}else{var a=no(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Re(n,n.return,o)}}r&64&&B_(n),r&512&&mu(n,n.return);break;case 3:if(zr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{XE(e,t)}catch(o){Re(n,n.return,o)}}break;case 27:t===null&&r&4&&q_(n);case 26:case 5:zr(e,n),t===null&&r&4&&I_(n),r&512&&mu(n,n.return);break;case 12:zr(e,n);break;case 31:zr(e,n),r&4&&K_(e,n);break;case 13:zr(e,n),r&4&&X_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ID.bind(null,n),l3(e,n))));break;case 22:if(r=n.memoizedState!==null||Xr,!r){t=t!==null&&t.memoizedState!==null||ht,a=Xr;var i=ht;Xr=r,(ht=t)&&!i?Ur(e,n,(n.subtreeFlags&8772)!==0):zr(e,n),Xr=a,ht=i}break;case 30:break;default:zr(e,n)}}function G_(e){var t=e.alternate;t!==null&&(e.alternate=null,G_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&U0(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,sn=!1;function Lr(e,t,n){for(n=n.child;n!==null;)Y_(e,t,n),n=n.sibling}function Y_(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 26:ht||Or(n,t),Lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ht||Or(n,t);var r=tt,a=sn;ci(n.type)&&(tt=n.stateNode,sn=!1),Lr(e,t,n),xu(n.stateNode),tt=r,sn=a;break;case 5:ht||Or(n,t);case 6:if(r=tt,a=sn,tt=null,Lr(e,t,n),tt=r,sn=a,tt!==null)if(sn)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(i){Re(n,t,i)}else try{tt.removeChild(n.stateNode)}catch(i){Re(n,t,i)}break;case 18:tt!==null&&(sn?(e=tt,xS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Dl(e)):xS(tt,n.stateNode));break;case 4:r=tt,a=sn,tt=n.stateNode.containerInfo,sn=!0,Lr(e,t,n),tt=r,sn=a;break;case 0:case 11:case 14:case 15:li(2,n,t),ht||li(4,n,t),Lr(e,t,n);break;case 1:ht||(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&U_(n,t,r)),Lr(e,t,n);break;case 21:Lr(e,t,n);break;case 22:ht=(r=ht)||n.memoizedState!==null,Lr(e,t,n),ht=r;break;default:Lr(e,t,n)}}function K_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dl(e)}catch(n){Re(t,t.return,n)}}}function X_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(n){Re(t,t.return,n)}}function RD(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lS),t;default:throw Error(I(435,e.tag))}}function mf(e,t){var n=RD(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=HD.bind(null,e,r);r.then(a,a)}})}function rn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 27:if(ci(l.type)){tt=l.stateNode,sn=!1;break e}break;case 5:tt=l.stateNode,sn=!1;break e;case 3:case 4:tt=l.stateNode.containerInfo,sn=!0;break e}l=l.return}if(tt===null)throw Error(I(160));Y_(i,o,a),tt=null,sn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)V_(t,e),t=t.sibling}var ir=null;function V_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),an(e),r&4&&(li(3,e,e.return),Bc(3,e),li(5,e,e.return));break;case 1:rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),r&64&&Xr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ir;if(rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Dc]||i[Lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),It(i,r,n),i[Lt]=e,Ct(i),r=i;break e;case"link":var o=_S("link","href",a).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(r),It(i,r,n),a.head.appendChild(i);break;case"meta":if(o=_S("meta","content",a).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(r),It(i,r,n),a.head.appendChild(i);break;default:throw Error(I(468,r))}i[Lt]=e,Ct(i),r=i}e.stateNode=r}else TS(a,e.type,e.stateNode);else e.stateNode=ES(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?TS(a,e.type,e.stateNode):ES(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Uy(e,e.memoizedProps,n.memoizedProps)}break;case 27:rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),n!==null&&r&4&&Uy(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),e.flags&32){a=e.stateNode;try{_l(a,"")}catch(b){Re(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Uy(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Hy=!0);break;case 6:if(rn(t,e),an(e),r&4){if(e.stateNode===null)throw Error(I(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){Re(e,e.return,b)}}break;case 3:if(Qf=null,a=ir,ir=Md(t.containerInfo),rn(t,e),ir=a,an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(b){Re(e,e.return,b)}Hy&&(Hy=!1,Q_(e));break;case 4:r=ir,ir=Md(e.stateNode.containerInfo),rn(t,e),an(e),ir=r;break;case 12:rn(t,e),an(e);break;case 31:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mf(e,r)));break;case 13:rn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ap=En()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mf(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Xr,f=ht;if(Xr=u||a,ht=f||s,rn(t,e),ht=f,Xr=u,an(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Xr||ht||ji(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(i=s.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{l=s.stateNode;var c=s.memoizedProps.style,h=c!=null&&c.hasOwnProperty("display")?c.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(b){Re(s,s.return,b)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){Re(s,s.return,b)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?SS(p,!0):SS(s.stateNode,!1)}catch(b){Re(s,s.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,mf(e,n))));break;case 19:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,mf(e,r)));break;case 30:break;case 21:break;default:rn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(H_(r)){n=r;break}r=r.return}if(n==null)throw Error(I(160));switch(n.tag){case 27:var a=n.stateNode,i=Iy(e);Od(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(_l(o,""),n.flags&=-33);var l=Iy(e);Od(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Iy(e);vv(e,u,s);break;default:throw Error(I(161))}}catch(f){Re(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Q_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Q_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)F_(e,t.alternate,t),t=t.sibling}function ji(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:li(4,t,t.return),ji(t);break;case 1:Or(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&U_(t,t.return,n),ji(t);break;case 27:xu(t.stateNode);case 26:case 5:Or(t,t.return),ji(t);break;case 22:t.memoizedState===null&&ji(t);break;case 30:ji(t);break;default:ji(t)}e=e.sibling}}function Ur(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Ur(a,i,n),Bc(4,i);break;case 1:if(Ur(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Re(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)KE(s[a],l)}catch(u){Re(r,r.return,u)}}n&&o&64&&B_(i),mu(i,i.return);break;case 27:q_(i);case 26:case 5:Ur(a,i,n),n&&r===null&&o&4&&I_(i),mu(i,i.return);break;case 12:Ur(a,i,n);break;case 31:Ur(a,i,n),n&&o&4&&K_(a,i);break;case 13:Ur(a,i,n),n&&o&4&&X_(a,i);break;case 22:i.memoizedState===null&&Ur(a,i,n),mu(i,i.return);break;case 30:break;default:Ur(a,i,n)}t=t.sibling}}function gb(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Lc(n))}function bb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lc(e))}function nr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)W_(e,t,n,r),t=t.sibling}function W_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:nr(e,t,n,r),a&2048&&Bc(9,t);break;case 1:nr(e,t,n,r);break;case 3:nr(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lc(e)));break;case 12:if(a&2048){nr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,l=i.onPostCommit;typeof l=="function"&&l(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Re(t,t.return,s)}}else nr(e,t,n,r);break;case 31:nr(e,t,n,r);break;case 13:nr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?nr(e,t,n,r):vu(e,t):i._visibility&2?nr(e,t,n,r):(i._visibility|=2,Do(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&gb(o,t);break;case 24:nr(e,t,n,r),a&2048&&bb(t.alternate,t);break;default:nr(e,t,n,r)}}function Do(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,l=n,s=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:Do(i,o,l,s,a),Bc(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Do(i,o,l,s,a):vu(i,o):(f._visibility|=2,Do(i,o,l,s,a)),a&&u&2048&&gb(o.alternate,o);break;case 24:Do(i,o,l,s,a),a&&u&2048&&bb(o.alternate,o);break;default:Do(i,o,l,s,a)}t=t.sibling}}function vu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:vu(n,r),a&2048&&gb(r.alternate,r);break;case 24:vu(n,r),a&2048&&bb(r.alternate,r);break;default:vu(n,r)}t=t.sibling}}var au=8192;function Co(e,t,n){if(e.subtreeFlags&au)for(e=e.child;e!==null;)Z_(e,t,n),e=e.sibling}function Z_(e,t,n){switch(e.tag){case 26:Co(e,t,n),e.flags&au&&e.memoizedState!==null&&b3(n,ir,e.memoizedState,e.memoizedProps);break;case 5:Co(e,t,n);break;case 3:case 4:var r=ir;ir=Md(e.stateNode.containerInfo),Co(e,t,n),ir=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=au,au=16777216,Co(e,t,n),au=r):Co(e,t,n));break;default:Co(e,t,n)}}function J_(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Us(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Tt=r,tT(r,e)}J_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)eT(e),e=e.sibling}function eT(e){switch(e.tag){case 0:case 11:case 15:Us(e),e.flags&2048&&li(9,e,e.return);break;case 3:Us(e);break;case 12:Us(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xf(e)):Us(e);break;default:Us(e)}}function Xf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Tt=r,tT(r,e)}J_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:li(8,t,t.return),Xf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xf(t));break;default:Xf(t)}e=e.sibling}}function tT(e,t){for(;Tt!==null;){var n=Tt;switch(n.tag){case 0:case 11:case 15:li(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Lc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Tt=r;else e:for(n=e;Tt!==null;){r=Tt;var a=r.sibling,i=r.return;if(G_(r),r===n){Tt=null;break e}if(a!==null){a.return=i,Tt=a;break e}Tt=i}}}var $D={getCacheForType:function(e){var t=Ut(pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(pt).controller.signal}},DD=typeof WeakMap=="function"?WeakMap:Map,_e=0,qe=null,xe=null,Se=0,Pe=0,gn=null,qa=!1,hs=!1,xb=!1,fa=0,lt=0,si=0,Xi=0,Sb=0,An=0,Ml=0,gu=null,un=null,gv=!1,ap=0,nT=0,jd=1/0,Ad=null,Wa=null,St=0,Za=null,Pl=null,na=0,bv=0,xv=null,rT=null,bu=0,Sv=null;function Cn(){return _e&2&&Se!==0?Se&-Se:ie.T!==null?Ob():dE()}function aT(){if(An===0)if(!(Se&536870912)||Oe){var e=sf;sf<<=1,!(sf&3932160)&&(sf=262144),An=e}else An=536870912;return e=Pn.current,e!==null&&(e.flags|=32),An}function fn(e,t,n){(e===qe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Fa(e,Se,An,!1)),$c(e,n),(!(_e&2)||e!==qe)&&(e===qe&&(!(_e&2)&&(Xi|=n),lt===4&&Fa(e,Se,An,!1)),Nr(e))}function iT(e,t,n){if(_e&6)throw Error(I(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rc(e,t),a=r?zD(e,t):qy(e,t,!0),i=r;do{if(a===0){hs&&!r&&Fa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!kD(n)){a=qy(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var l=e;a=gu;var s=l.current.memoizedState.isDehydrated;if(s&&(Rl(l,o).flags|=256),o=qy(l,o,!1),o!==2){if(xb&&!s){l.errorRecoveryDisabledLanes|=i,Xi|=i,a=4;break e}i=un,un=a,i!==null&&(un===null?un=i:un.push.apply(un,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Rl(e,0),Fa(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(I(345));case 4:if((t&4194048)!==t)break;case 6:Fa(r,t,An,!qa);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(a=ap+300-En(),10<a)){if(Fa(r,t,An,!qa),Kh(r,0,!0)!==0)break e;na=t,r.timeoutHandle=AT(sS.bind(null,r,n,un,Ad,gv,t,An,Xi,Ml,qa,i,"Throttled",-0,0),a);break e}sS(r,n,un,Ad,gv,t,An,Xi,Ml,qa,i,null,-0,0)}}break}while(!0);Nr(e)}function sS(e,t,n,r,a,i,o,l,s,u,f,c,h,p){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},Z_(t,i,c);var b=(i&62914560)===i?ap-En():(i&4194048)===i?nT-En():0;if(b=x3(c,b),b!==null){na=i,e.cancelPendingCommit=b(cS.bind(null,e,t,i,n,r,a,o,l,s,f,c,null,h,p)),Fa(e,i,o,!u);return}}cS(e,t,i,n,r,a,o,l,s)}function kD(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Mn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,n,r){t&=~Sb,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Tn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&uE(e,n,t)}function ip(){return _e&6?!0:(Uc(0),!1)}function wb(){if(xe!==null){if(Pe===0)var e=xe.return;else e=xe,Wr=mo=null,lb(e),il=null,Ru=0,e=xe;for(;e!==null;)z_(e.alternate,e),e=e.return;xe=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,n3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),na=0,wb(),qe=e,xe=n=ea(e.current,null),Se=t,Pe=0,gn=null,qa=!1,hs=Rc(e,t),xb=!1,Ml=An=Sb=Xi=si=lt=0,un=gu=null,gv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Tn(r),i=1<<a;t|=e[a],r&=~i}return fa=t,Wh(),n}function oT(e,t){he=null,ie.H=Du,t===ds||t===Jh?(t=U1(),Pe=3):t===eb?(t=U1(),Pe=4):Pe=t===mb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,xe===null&&(lt=1,Sd(e,Gn(t,e.current)))}function lT(){var e=Pn.current;return e===null?!0:(Se&4194048)===Se?Vn===null:(Se&62914560)===Se||Se&536870912?e===Vn:!1}function sT(){var e=ie.H;return ie.H=Du,e===null?Du:e}function uT(){var e=ie.A;return ie.A=$D,e}function Ed(){lt=4,qa||(Se&4194048)!==Se&&Pn.current!==null||(hs=!0),!(si&134217727)&&!(Xi&134217727)||qe===null||Fa(qe,Se,An,!1)}function qy(e,t,n){var r=_e;_e|=2;var a=sT(),i=uT();(qe!==e||Se!==t)&&(Ad=null,Rl(e,t)),t=!1;var o=lt;e:do try{if(Pe!==0&&xe!==null){var l=xe,s=gn;switch(Pe){case 8:wb(),o=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(t=!0);var u=Pe;if(Pe=0,gn=null,Vo(e,l,s,u),n&&hs){o=0;break e}break;default:u=Pe,Pe=0,gn=null,Vo(e,l,s,u)}}LD(),o=lt;break}catch(f){oT(e,f)}while(!0);return t&&e.shellSuspendCounter++,Wr=mo=null,_e=r,ie.H=a,ie.A=i,xe===null&&(qe=null,Se=0,Wh()),o}function LD(){for(;xe!==null;)cT(xe)}function zD(e,t){var n=_e;_e|=2;var r=sT(),a=uT();qe!==e||Se!==t?(Ad=null,jd=En()+500,Rl(e,t)):hs=Rc(e,t);e:do try{if(Pe!==0&&xe!==null){t=xe;var i=gn;t:switch(Pe){case 1:Pe=0,gn=null,Vo(e,t,i,1);break;case 2:case 9:if(B1(i)){Pe=0,gn=null,uS(t);break}t=function(){Pe!==2&&Pe!==9||qe!==e||(Pe=7),Nr(e)},i.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:B1(i)?(Pe=0,gn=null,uS(t)):(Pe=0,gn=null,Vo(e,t,i,7));break;case 5:var o=null;switch(xe.tag){case 26:o=xe.memoizedState;case 5:case 27:var l=xe;if(o?NT(o):l.stateNode.complete){Pe=0,gn=null;var s=l.sibling;if(s!==null)xe=s;else{var u=l.return;u!==null?(xe=u,op(u)):xe=null}break t}}Pe=0,gn=null,Vo(e,t,i,5);break;case 6:Pe=0,gn=null,Vo(e,t,i,6);break;case 8:wb(),lt=6;break e;default:throw Error(I(462))}}BD();break}catch(f){oT(e,f)}while(!0);return Wr=mo=null,ie.H=r,ie.A=a,_e=n,xe!==null?0:(qe=null,Se=0,Wh(),lt)}function BD(){for(;xe!==null&&!s$();)cT(xe)}function cT(e){var t=L_(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?op(e):xe=t}function uS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=nS(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=nS(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:lb(t);default:z_(n,t),t=xe=zE(t,fa),t=L_(n,t,fa)}e.memoizedProps=e.pendingProps,t===null?op(e):xe=t}function Vo(e,t,n,r){Wr=mo=null,lb(t),il=null,Ru=0;var a=t.return;try{if(_D(e,a,t,n,Se)){lt=1,Sd(e,Gn(n,e.current)),xe=null;return}}catch(i){if(a!==null)throw xe=a,i;lt=1,Sd(e,Gn(n,e.current)),xe=null;return}t.flags&32768?(Oe||r===1?e=!0:hs||Se&536870912?e=!1:(qa=e=!0,(r===2||r===9||r===3||r===6)&&(r=Pn.current,r!==null&&r.tag===13&&(r.flags|=16384))),fT(t,e)):op(t)}function op(e){var t=e;do{if(t.flags&32768){fT(t,qa);return}e=t.return;var n=ND(t.alternate,t,fa);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);lt===0&&(lt=5)}function fT(e,t){do{var n=MD(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);lt=6,xe=null}function cS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do lp();while(St!==0);if(_e&6)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(i=t.lanes|t.childLanes,i|=K0,g$(e,n,i,o,l,s),e===qe&&(xe=qe=null,Se=0),Pl=t,Za=e,na=n,bv=i,xv=a,rT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,qD(cd,function(){return mT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ie.T,ie.T=null,a=Te.p,Te.p=2,o=_e,_e|=4;try{PD(e,t,n)}finally{_e=o,Te.p=a,ie.T=r}}St=1,dT(),hT(),pT()}}function dT(){if(St===1){St=0;var e=Za,t=Pl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ie.T,ie.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{V_(t,e);var i=Av,o=NE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&CE(l.ownerDocument.documentElement,l)){if(s!==null&&Y0(l)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(f,l.value.length);else{var c=l.ownerDocument||document,h=c&&c.defaultView||window;if(h.getSelection){var p=h.getSelection(),b=l.textContent.length,v=Math.min(s.start,b),g=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>g&&(o=g,g=v,v=o);var y=P1(l,v),m=P1(l,g);if(y&&m&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var x=c.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),v>g?(p.addRange(x),p.extend(m.node,m.offset)):(x.setEnd(m.node,m.offset),p.addRange(x))}}}}for(c=[],p=l;p=p.parentNode;)p.nodeType===1&&c.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<c.length;l++){var w=c[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}$d=!!jv,Av=jv=null}finally{_e=a,Te.p=r,ie.T=n}}e.current=t,St=2}}function hT(){if(St===2){St=0;var e=Za,t=Pl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ie.T,ie.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{F_(e,t.alternate,t)}finally{_e=a,Te.p=r,ie.T=n}}St=3}}function pT(){if(St===4||St===3){St=0,u$();var e=Za,t=Pl,n=na,r=rT;t.subtreeFlags&10256||t.flags&10256?St=5:(St=0,Pl=Za=null,yT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Wa=null),B0(n),t=t.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Pc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ie.T,a=Te.p,Te.p=2,ie.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var l=r[o];i(l.value,{componentStack:l.stack})}}finally{ie.T=t,Te.p=a}}na&3&&lp(),Nr(e),a=e.pendingLanes,n&261930&&a&42?e===Sv?bu++:(bu=0,Sv=e):bu=0,Uc(0)}}function yT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Lc(t)))}function lp(){return dT(),hT(),pT(),mT()}function mT(){if(St!==5)return!1;var e=Za,t=bv;bv=0;var n=B0(na),r=ie.T,a=Te.p;try{Te.p=32>n?32:n,ie.T=null,n=xv,xv=null;var i=Za,o=na;if(St=0,Pl=Za=null,na=0,_e&6)throw Error(I(331));var l=_e;if(_e|=4,eT(i.current),W_(i,i.current,o,n),_e=l,Uc(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Pc,i)}catch{}return!0}finally{Te.p=a,ie.T=r,yT(e,t)}}function fS(e,t,n){t=Gn(n,t),t=pv(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&($c(e,2),Nr(e))}function Re(e,t,n){if(e.tag===3)fS(e,e,n);else for(;t!==null;){if(t.tag===3){fS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Gn(n,e),n=M_(2),r=Qa(t,n,2),r!==null&&(P_(n,r,t,e),$c(r,2),Nr(r));break}}t=t.return}}function Fy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DD;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(xb=!0,a.add(n),e=UD.bind(null,e,t,n),t.then(e,e))}function UD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qe===e&&(Se&n)===n&&(lt===4||lt===3&&(Se&62914560)===Se&&300>En()-ap?!(_e&2)&&Rl(e,0):Sb|=n,Ml===Se&&(Ml=0)),Nr(e)}function vT(e,t){t===0&&(t=sE()),e=yo(e,t),e!==null&&($c(e,t),Nr(e))}function ID(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vT(e,n)}function HD(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),vT(e,n)}function qD(e,t){return L0(e,t)}var _d=null,ko=null,wv=!1,Td=!1,Gy=!1,Ga=0;function Nr(e){e!==ko&&e.next===null&&(ko===null?_d=ko=e:ko=ko.next=e),Td=!0,wv||(wv=!0,GD())}function Uc(e,t){if(!Gy&&Td){Gy=!0;do for(var n=!1,r=_d;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var o=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-Tn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,dS(r,i))}else i=Se,i=Kh(r,r===qe?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Rc(r,i)||(n=!0,dS(r,i));r=r.next}while(n);Gy=!1}}function FD(){gT()}function gT(){Td=wv=!1;var e=0;Ga!==0&&t3()&&(e=Ga);for(var t=En(),n=null,r=_d;r!==null;){var a=r.next,i=bT(r,t);i===0?(r.next=null,n===null?_d=a:n.next=a,a===null&&(ko=n)):(n=r,(e!==0||i&3)&&(Td=!0)),r=a}St!==0&&St!==5||Uc(e),Ga!==0&&(Ga=0)}function bT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Tn(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=v$(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=qe,n=Se,n=Kh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&by(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Rc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&by(r),B0(n)){case 2:case 8:n=oE;break;case 32:n=cd;break;case 268435456:n=lE;break;default:n=cd}return r=xT.bind(null,e),n=L0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&by(r),e.callbackPriority=2,e.callbackNode=null,2}function xT(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lp()&&e.callbackNode!==n)return null;var r=Se;return r=Kh(e,e===qe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(iT(e,r,t),bT(e,En()),e.callbackNode!=null&&e.callbackNode===n?xT.bind(null,e):null)}function dS(e,t){if(lp())return null;iT(e,t,!0)}function GD(){r3(function(){_e&6?L0(iE,FD):gT()})}function Ob(){if(Ga===0){var e=Tl;e===0&&(e=lf,lf<<=1,!(lf&261888)&&(lf=256)),Ga=e}return Ga}function hS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bf(""+e)}function pS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function YD(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=hS((a[hn]||null).action),o=r.submitter;o&&(t=(t=o[hn]||null)?hS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Xh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ga!==0){var s=o?pS(a,o):new FormData(a);dv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?pS(a,o):new FormData(a),dv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Yy=0;Yy<ev.length;Yy++){var Ky=ev[Yy],KD=Ky.toLowerCase(),XD=Ky[0].toUpperCase()+Ky.slice(1);hr(KD,"on"+XD)}hr(PE,"onAnimationEnd");hr(RE,"onAnimationIteration");hr($E,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(cD,"onTransitionRun");hr(fD,"onTransitionStart");hr(dD,"onTransitionCancel");hr(DE,"onTransitionEnd");El("onMouseEnter",["mouseout","mouseover"]);El("onMouseLeave",["mouseout","mouseover"]);El("onPointerEnter",["pointerout","pointerover"]);El("onPointerLeave",["pointerout","pointerover"]);fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="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(" "),VD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function ST(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){dd(f)}a.currentTarget=null,i=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){dd(f)}a.currentTarget=null,i=s}}}}function be(e,t){var n=t[Ym];n===void 0&&(n=t[Ym]=new Set);var r=e+"__bubble";n.has(r)||(wT(t,e,2,!1),n.add(r))}function Xy(e,t,n){var r=0;t&&(r|=4),wT(n,e,r,t)}var vf="_reactListening"+Math.random().toString(36).slice(2);function jb(e){if(!e[vf]){e[vf]=!0,hE.forEach(function(n){n!=="selectionchange"&&(VD.has(n)||Xy(n,!1,e),Xy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vf]||(t[vf]=!0,Xy("selectionchange",!1,t))}}function wT(e,t,n,r){switch(DT(t)){case 2:var a=O3;break;case 8:a=j3;break;default:a=Tb}n=a.bind(null,t,n,e),a=void 0,!Wm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===a)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;l!==null;){if(o=Uo(l),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){r=i=o;continue e}l=l.parentNode}}r=r.return}SE(function(){var u=i,f=H0(n),c=[];e:{var h=kE.get(e);if(h!==void 0){var p=Xh,b=e;switch(e){case"keypress":if(If(n)===0)break e;case"keydown":case"keyup":p=H$;break;case"focusin":b="focus",p=jy;break;case"focusout":b="blur",p=jy;break;case"beforeblur":case"afterblur":p=jy;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=w1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=N$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=G$;break;case PE:case RE:case $E:p=R$;break;case DE:p=K$;break;case"scroll":case"scrollend":p=T$;break;case"wheel":p=V$;break;case"copy":case"cut":case"paste":p=D$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=j1;break;case"toggle":case"beforetoggle":p=W$}var v=(t&4)!==0,g=!v&&(e==="scroll"||e==="scrollend"),y=v?h!==null?h+"Capture":null:h;v=[];for(var m=u,x;m!==null;){var w=m;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=Tu(m,y),w!=null&&v.push(Lu(m,w,x))),g)break;m=m.return}0<v.length&&(h=new p(h,b,null,n,f),c.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Qm&&(b=n.relatedTarget||n.fromElement)&&(Uo(b)||b[us]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Uo(b):null,b!==null&&(g=Mc(b),v=b.tag,b!==g||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=w1,w="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=j1,w="onPointerLeave",y="onPointerEnter",m="pointer"),g=p==null?h:nu(p),x=b==null?h:nu(b),h=new v(w,m+"leave",p,n,f),h.target=g,h.relatedTarget=x,w=null,Uo(f)===u&&(v=new v(y,m+"enter",b,n,f),v.target=x,v.relatedTarget=g,w=v),g=w,p&&b)t:{for(v=QD,y=p,m=b,x=0,w=y;w;w=v(w))x++;w=0;for(var S=m;S;S=v(S))w++;for(;0<x-w;)y=v(y),x--;for(;0<w-x;)m=v(m),w--;for(;x--;){if(y===m||m!==null&&y===m.alternate){v=y;break t}y=v(y),m=v(m)}v=null}else v=null;p!==null&&yS(c,h,p,v,!1),b!==null&&g!==null&&yS(c,g,b,v,!0)}}e:{if(h=u?nu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=T1;else if(_1(h))if(_E)O=lD;else{O=iD;var A=aD}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&I0(u.elementType)&&(O=T1):O=oD;if(O&&(O=O(e,u))){EE(c,O,n,f);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Vm(h,"number",h.value)}switch(A=u?nu(u):window,e){case"focusin":(_1(A)||A.contentEditable==="true")&&(qo=A,Zm=u,cu=null);break;case"focusout":cu=Zm=qo=null;break;case"mousedown":Jm=!0;break;case"contextmenu":case"mouseup":case"dragend":Jm=!1,R1(c,n,f);break;case"selectionchange":if(uD)break;case"keydown":case"keyup":R1(c,n,f)}var _;if(G0)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ho?jE(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(OE&&n.locale!=="ko"&&(Ho||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ho&&(_=wE()):(Ha=f,q0="value"in Ha?Ha.value:Ha.textContent,Ho=!0)),A=Cd(u,T),0<A.length&&(T=new O1(T,e,null,n,f),c.push({event:T,listeners:A}),_?T.data=_:(_=AE(n),_!==null&&(T.data=_)))),(_=J$?eD(e,n):tD(e,n))&&(T=Cd(u,"onBeforeInput"),0<T.length&&(A=new O1("onBeforeInput","beforeinput",null,n,f),c.push({event:A,listeners:T}),A.data=_)),YD(c,e,u,n,f)}ST(c,t)})}function Lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cd(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Tu(e,n),a!=null&&r.unshift(Lu(e,a,i)),a=Tu(e,t),a!=null&&r.push(Lu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function QD(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yS(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===r)break;l!==5&&l!==26&&l!==27||u===null||(s=u,a?(u=Tu(n,i),u!=null&&o.unshift(Lu(n,u,s))):a||(u=Tu(n,i),u!=null&&o.push(Lu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var WD=/\r\n?/g,ZD=/\u0000|\uFFFD/g;function mS(e){return(typeof e=="string"?e:""+e).replace(WD,`
`).replace(ZD,"")}function OT(e,t){return t=mS(t),mS(e)===t}function ze(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||_l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&_l(e,""+r);break;case"className":cf(e,"class",r);break;case"tabIndex":cf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cf(e,n,r);break;case"style":xE(e,r,i);break;case"data":if(t!=="object"){cf(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Bf(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 i=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Bf(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Bf(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":be("beforetoggle",e),be("toggle",e),zf(e,"popover",r);break;case"xlinkActuate":Dr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Dr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Dr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Dr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Dr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Dr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":zf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=E$.get(n)||n,zf(e,n,r))}}function Ov(e,t,n,r,a,i){switch(n){case"style":xE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"children":typeof r=="string"?_l(e,r):(typeof r=="number"||typeof r=="bigint")&&_l(e,""+r);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pE.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[hn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):zf(e,n,r)}}}function It(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ze(e,t,i,o,n,null)}}a&&ze(e,t,"srcSet",n.srcSet,n,null),r&&ze(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var l=i=o=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":o=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(I(137,t));break;default:ze(e,t,r,f,n,null)}}vE(e,i,l,s,u,o,a,!1);return;case"select":be("invalid",e),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:ze(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?nl(e,!!r,t,!1):n!=null&&nl(e,!!r,n,!0);return;case"textarea":be("invalid",e),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(I(91));break;default:ze(e,t,o,l,n,null)}bE(e,r,a,i);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:ze(e,t,s,r,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(r=0;r<ku.length;r++)be(ku[r],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ze(e,t,u,r,n,null)}return;default:if(I0(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Ov(e,t,f,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&ze(e,t,l,r,n,null))}function JD(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,l=null,s=null,u=null,f=null;for(p in n){var c=n[p];if(n.hasOwnProperty(p)&&c!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(p)||ze(e,t,p,null,r,c)}}for(var h in r){var p=r[h];if(c=n[h],r.hasOwnProperty(h)&&(p!=null||c!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(I(137,t));break;default:p!==c&&ze(e,t,h,p,r,c)}}Xm(e,o,l,s,u,f,i,a);return;case"select":p=o=l=h=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(i)||ze(e,t,i,null,r,s)}for(a in r)if(i=r[a],s=n[a],r.hasOwnProperty(a)&&(i!=null||s!=null))switch(a){case"value":h=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==s&&ze(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?nl(e,!!n,h,!1):!!r!=!!n&&(t!=null?nl(e,!!n,t,!0):nl(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ze(e,t,l,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(I(91));break;default:a!==i&&ze(e,t,o,a,r,i)}gE(e,h,p);return;case"option":for(var b in n)if(h=n[b],n.hasOwnProperty(b)&&h!=null&&!r.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:ze(e,t,b,null,r,h)}for(s in r)if(h=r[s],p=n[s],r.hasOwnProperty(s)&&h!==p&&(h!=null||p!=null))switch(s){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ze(e,t,s,h,r,p)}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 v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&ze(e,t,v,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,t));break;default:ze(e,t,u,h,r,p)}return;default:if(I0(t)){for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!==void 0&&!r.hasOwnProperty(g)&&Ov(e,t,g,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||Ov(e,t,f,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&ze(e,t,y,null,r,h);for(c in r)h=r[c],p=n[c],!r.hasOwnProperty(c)||h===p||h==null&&p==null||ze(e,t,c,h,r,p)}function vS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,o=a.initiatorType,l=a.duration;if(i&&l&&vS(o)){for(o=0,l=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>l)break;var f=s.transferSize,c=s.initiatorType;f&&vS(c)&&(s=s.responseEnd,o+=f*(s<l?1:(l-u)/(s-u)))}if(--r,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jv=null,Av=null;function Nd(e){return e.nodeType===9?e:e.ownerDocument}function gS(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jT(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ev(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qy=null;function t3(){var e=window.event;return e&&e.type==="popstate"?e===Qy?!1:(Qy=e,!0):(Qy=null,!1)}var AT=typeof setTimeout=="function"?setTimeout:void 0,n3=typeof clearTimeout=="function"?clearTimeout:void 0,bS=typeof Promise=="function"?Promise:void 0,r3=typeof queueMicrotask=="function"?queueMicrotask:typeof bS<"u"?function(e){return bS.resolve(null).then(e).catch(a3)}:AT;function a3(e){setTimeout(function(){throw e})}function ci(e){return e==="head"}function xS(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Dl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")xu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Dc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&xu(e.ownerDocument.body);n=a}while(n);Dl(t)}function SS(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function _v(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":_v(n),U0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function i3(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Dc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Qn(e.nextSibling),e===null)break}return null}function o3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qn(e.nextSibling),e===null))return null;return e}function ET(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qn(e.nextSibling),e===null))return null;return e}function Tv(e){return e.data==="$?"||e.data==="$~"}function Cv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function l3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nv=null;function wS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function OS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function _T(e,t,n){switch(t=Nd(n),e){case"html":if(e=t.documentElement,!e)throw Error(I(452));return e;case"head":if(e=t.head,!e)throw Error(I(453));return e;case"body":if(e=t.body,!e)throw Error(I(454));return e;default:throw Error(I(451))}}function xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);U0(e)}var Zn=new Map,jS=new Set;function Md(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Te.d;Te.d={f:s3,r:u3,D:c3,C:f3,L:d3,m:h3,X:y3,S:p3,M:m3};function s3(){var e=va.f(),t=ip();return e||t}function u3(e){var t=cs(e);t!==null&&t.tag===5&&t.type==="form"?x_(t):va.r(e)}var ps=typeof document>"u"?null:document;function TT(e,t,n){var r=ps;if(r&&typeof t=="string"&&t){var a=Fn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),jS.has(a)||(jS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),It(t,"link",e),Ct(t),r.head.appendChild(t)))}}function c3(e){va.D(e),TT("dns-prefetch",e,null)}function f3(e,t){va.C(e,t),TT("preconnect",e,t)}function d3(e,t,n){va.L(e,t,n);var r=ps;if(r&&e&&t){var a='link[rel="preload"][as="'+Fn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Fn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Fn(n.imageSizes)+'"]')):a+='[href="'+Fn(e)+'"]';var i=a;switch(t){case"style":i=$l(e);break;case"script":i=ys(e)}Zn.has(i)||(e=et({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Ic(i))||t==="script"&&r.querySelector(Hc(i))||(t=r.createElement("link"),It(t,"link",e),Ct(t),r.head.appendChild(t)))}}function h3(e,t){va.m(e,t);var n=ps;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Fn(r)+'"][href="'+Fn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ys(e)}if(!Zn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Zn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Hc(i)))return}r=n.createElement("link"),It(r,"link",e),Ct(r),n.head.appendChild(r)}}}function p3(e,t,n){va.S(e,t,n);var r=ps;if(r&&e){var a=tl(r).hoistableStyles,i=$l(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(Ic(i)))l.loading=5;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(i))&&Ab(e,n);var s=o=r.createElement("link");Ct(s),It(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Vf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function y3(e,t){va.X(e,t);var n=ps;if(n&&e){var r=tl(n).hoistableScripts,a=ys(e),i=r.get(a);i||(i=n.querySelector(Hc(a)),i||(e=et({src:e,async:!0},t),(t=Zn.get(a))&&Eb(e,t),i=n.createElement("script"),Ct(i),It(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function m3(e,t){va.M(e,t);var n=ps;if(n&&e){var r=tl(n).hoistableScripts,a=ys(e),i=r.get(a);i||(i=n.querySelector(Hc(a)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Zn.get(a))&&Eb(e,t),i=n.createElement("script"),Ct(i),It(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function AS(e,t,n,r){var a=(a=Ka.current)?Md(a):null;if(!a)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=$l(n.href),n=tl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$l(n.href);var i=tl(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(Ic(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),i||v3(a,e,n,o.state))),t&&r===null)throw Error(I(528,""));return o}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ys(n),n=tl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function $l(e){return'href="'+Fn(e)+'"'}function Ic(e){return'link[rel="stylesheet"]['+e+"]"}function CT(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function v3(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),It(t,"link",n),Ct(t),e.head.appendChild(t))}function ys(e){return'[src="'+Fn(e)+'"]'}function Hc(e){return"script[async]"+e}function ES(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Fn(n.href)+'"]');if(r)return t.instance=r,Ct(r),r;var a=et({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ct(r),It(r,"style",a),Vf(r,n.precedence,e),t.instance=r;case"stylesheet":a=$l(n.href);var i=e.querySelector(Ic(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=CT(n),(a=Zn.get(a))&&Ab(r,a),i=(e.ownerDocument||e).createElement("link"),Ct(i);var o=i;return o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),It(i,"link",r),t.state.loading|=4,Vf(i,n.precedence,e),t.instance=i;case"script":return i=ys(n.src),(a=e.querySelector(Hc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Zn.get(i))&&(r=et({},n),Eb(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ct(a),It(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var l=r[o];if(l.dataset.precedence===t)i=l;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ab(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Eb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qf=null;function _S(e,t,n){if(Qf===null){var r=new Map,a=Qf=new Map;a.set(n,r)}else a=Qf,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[Dc]||i[Lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var l=r.get(o);l?l.push(i):r.set(o,[i])}}return r}function TS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function g3(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function NT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function b3(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=$l(r.href),i=t.querySelector(Ic(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=CT(r),(a=Zn.get(a))&&Ab(r,a),i=i.createElement("link"),Ct(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),It(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Pd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wy=0;function x3(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Wy===0&&(Wy=62500*e3());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Wy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Pd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rd=null;function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rd=new Map,t.forEach(S3,e),Rd=null,Pd.call(e))}function S3(e,t){if(!(t.state.loading&4)){var n=Rd.get(e);if(n)var r=n.get(null);else{n=new Map,Rd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=Pd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var zu={$$typeof:Vr,Provider:null,Consumer:null,_currentValue:Fi,_currentValue2:Fi,_threadCount:0};function w3(e,t,n,r,a,i,o,l,s){this.tag=1,this.containerInfo=e,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=xy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xy(0),this.hiddenUpdates=xy(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function MT(e,t,n,r,a,i,o,l,s,u,f,c){return e=new w3(e,t,n,o,s,u,f,c,l),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=Z0(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},tb(i),e}function PT(e){return e?(e=Yo,e):Yo}function RT(e,t,n,r,a,i){a=PT(a),r.context===null?r.context=a:r.pendingContext=a,r=Va(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Qa(e,r,t),n!==null&&(fn(n,e,t),du(n,e,t))}function CS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _b(e,t){CS(e,t),(e=e.alternate)&&CS(e,t)}function $T(e){if(e.tag===13||e.tag===31){var t=yo(e,67108864);t!==null&&fn(t,e,67108864),_b(e,67108864)}}function NS(e){if(e.tag===13||e.tag===31){var t=Cn();t=z0(t);var n=yo(e,t);n!==null&&fn(n,e,t),_b(e,t)}}var $d=!0;function O3(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=2,Tb(e,t,n,r)}finally{Te.p=i,ie.T=a}}function j3(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=8,Tb(e,t,n,r)}finally{Te.p=i,ie.T=a}}function Tb(e,t,n,r){if($d){var a=Mv(r);if(a===null)Vy(e,t,r,Dd,n),MS(e,r);else if(E3(a,e,t,n,r))r.stopPropagation();else if(MS(e,r),t&4&&-1<A3.indexOf(e)){for(;a!==null;){var i=cs(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=wi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-Tn(o);l.entanglements[1]|=s,o&=~s}Nr(i),!(_e&6)&&(jd=En()+500,Uc(0))}}break;case 31:case 13:l=yo(i,2),l!==null&&fn(l,i,2),ip(),_b(i,2)}if(i=Mv(r),i===null&&Vy(e,t,r,Dd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Vy(e,t,r,null,n)}}function Mv(e){return e=H0(e),Cb(e)}var Dd=null;function Cb(e){if(Dd=null,e=Uo(e),e!==null){var t=Mc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=eE(t),e!==null)return e;e=null}else if(n===31){if(e=tE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dd=e,null}function DT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(c$()){case iE:return 2;case oE:return 8;case cd:case f$:return 32;case lE:return 268435456;default:return 32}default:return 32}}var Pv=!1,Ja=null,ei=null,ti=null,Bu=new Map,Uu=new Map,Ma=[],A3="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 MS(e,t){switch(e){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uu.delete(t.pointerId)}}function Is(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=cs(t),t!==null&&$T(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function E3(e,t,n,r,a){switch(t){case"focusin":return Ja=Is(Ja,e,t,n,r,a),!0;case"dragenter":return ei=Is(ei,e,t,n,r,a),!0;case"mouseover":return ti=Is(ti,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Bu.set(i,Is(Bu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Uu.set(i,Is(Uu.get(i)||null,e,t,n,r,a)),!0}return!1}function kT(e){var t=Uo(e.target);if(t!==null){var n=Mc(t);if(n!==null){if(t=n.tag,t===13){if(t=eE(n),t!==null){e.blockedOn=t,y1(e.priority,function(){NS(n)});return}}else if(t===31){if(t=tE(n),t!==null){e.blockedOn=t,y1(e.priority,function(){NS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qm=r,n.target.dispatchEvent(r),Qm=null}else return t=cs(n),t!==null&&$T(t),e.blockedOn=n,!1;t.shift()}return!0}function PS(e,t,n){Zf(e)&&n.delete(t)}function _3(){Pv=!1,Ja!==null&&Zf(Ja)&&(Ja=null),ei!==null&&Zf(ei)&&(ei=null),ti!==null&&Zf(ti)&&(ti=null),Bu.forEach(PS),Uu.forEach(PS)}function gf(e,t){e.blockedOn===t&&(e.blockedOn=null,Pv||(Pv=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,_3)))}var bf=null;function RS(e){bf!==e&&(bf=e,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,function(){bf===e&&(bf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(Cb(r||n)===null)continue;break}var i=cs(n);i!==null&&(e.splice(t,3),t-=3,dv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Dl(e){function t(s){return gf(s,e)}Ja!==null&&gf(Ja,e),ei!==null&&gf(ei,e),ti!==null&&gf(ti,e),Bu.forEach(t),Uu.forEach(t);for(var n=0;n<Ma.length;n++){var r=Ma[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ma.length&&(n=Ma[0],n.blockedOn===null);)kT(n),n.blockedOn===null&&Ma.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[hn]||null;if(typeof i=="function")o||RS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[hn]||null)l=o.formAction;else if(Cb(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),RS(n)}}}function LT(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Nb(e){this._internalRoot=e}sp.prototype.render=Nb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var n=t.current,r=Cn();RT(n,r,e,t,null,null)};sp.prototype.unmount=Nb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;RT(e.current,2,null,e,null,null),ip(),t[us]=null}};function sp(e){this._internalRoot=e}sp.prototype.unstable_scheduleHydration=function(e){if(e){var t=dE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ma.length&&t!==0&&t<Ma[n].priority;n++);Ma.splice(n,0,e),n===0&&kT(e)}};var $S=Z2.version;if($S!=="19.2.7")throw Error(I(527,$S,"19.2.7"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=r$(t),e=e!==null?nE(e):null,e=e===null?null:e.stateNode,e};var T3={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{Pc=xf.inject(T3),_n=xf}catch{}}Gh.createRoot=function(e,t){if(!J2(e))throw Error(I(299));var n=!1,r="",a=T_,i=C_,o=N_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=MT(e,1,!1,null,null,n,r,null,a,i,o,LT),e[us]=t.current,jb(e),new Nb(t)};Gh.hydrateRoot=function(e,t,n){if(!J2(e))throw Error(I(299));var r=!1,a="",i=T_,o=C_,l=N_,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=MT(e,1,!0,t,n??null,r,a,s,i,o,l,LT),t.context=PT(null),n=t.current,r=Cn(),r=z0(r),a=Va(r),a.callback=null,Qa(n,a,r),n=r,t.current.lanes=n,$c(t,n),Nr(t),e[us]=t.current,jb(e),new sp(t)};Gh.version="19.2.7";function zT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zT)}catch(e){console.error(e)}}zT(),Y2.exports=Gh;var C3=Y2.exports;const BT=j.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),DS="esn_theme";function N3(e){document.documentElement.setAttribute("data-theme",e)}function M3({children:e}){const[t,n]=j.useState(()=>localStorage.getItem(DS)==="light"?"light":"dark");j.useEffect(()=>{N3(t),localStorage.setItem(DS,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return d.jsx(BT.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function P3(){return j.useContext(BT)}/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var kS="popstate";function LS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function R3(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:o,search:l,hash:s}=i||r.location;return Rv("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Iu(a)}return D3(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $3(){return Math.random().toString(36).substring(2,10)}function zS(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Rv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ms(t):t,state:n,key:t&&t.key||r||$3(),mask:a}}function Iu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function D3(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=f();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function f(){return(o.state||{idx:null}).idx}function c(){l="POP";let g=f(),y=g==null?null:g-u;u=g,s&&s({action:l,location:v.location,delta:y})}function h(g,y){l="PUSH";let m=LS(g)?g:Rv(v.location,g,y);u=f()+1;let x=zS(m,u),w=v.createHref(m.mask||m);try{o.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&s&&s({action:l,location:v.location,delta:1})}function p(g,y){l="REPLACE";let m=LS(g)?g:Rv(v.location,g,y);u=f();let x=zS(m,u),w=v.createHref(m.mask||m);o.replaceState(x,"",w),i&&s&&s({action:l,location:v.location,delta:0})}function b(g){return k3(a,g)}let v={get action(){return l},get location(){return e(a,o)},listen(g){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(kS,c),s=g,()=>{a.removeEventListener(kS,c),s=null}},createHref(g){return t(a,g)},createURL:b,encodeLocation(g){let y=b(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(g){return o.go(g)}};return v}function k3(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),rt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Iu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function UT(e,t,n="/"){return L3(e,t,n,!1)}function L3(e,t,n,r,a){let i=typeof t=="string"?ms(t):t,o=da(i.pathname||"/",n);if(o==null)return null;let l=z3(e),s=null,u=Q3(o);for(let f=0;s==null&&f<l.length;++f)s=X3(l[f],u,r);return s}function z3(e){let t=IT(e);return B3(t),t}function IT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&s)return;rt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=ur([r,f.relativePath]),h=n.concat(f);o.children&&o.children.length>0&&(rt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),IT(o.children,t,h,c,s)),!(o.path==null&&!o.index)&&t.push({path:c,score:Y3(c,o.index),routesMeta:h})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let u of HT(o.path))i(o,l,!0,u)}),t}function HT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=HT(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function B3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var U3=/^:[\w-]+$/,I3=3,H3=2,q3=1,F3=10,G3=-2,BS=e=>e==="*";function Y3(e,t){let n=e.split("/"),r=n.length;return n.some(BS)&&(r+=G3),t&&(r+=H3),n.filter(a=>!BS(a)).reduce((a,i)=>a+(U3.test(i)?I3:i===""?q3:F3),r)}function K3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function X3(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",c=kd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),h=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=kd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:ur([i,c.pathname]),pathnameBase:e4(ur([i,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(i=ur([i,c.pathnameBase]))}return o}function kd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=V3(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:c},h)=>{if(f==="*"){let b=l[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=l[h];return c&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function V3(e,t=!1,n=!0){fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s,u,f)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let c=f.charAt(u+o.length);return c&&c!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Q3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function da(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var W3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Z3(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ms(e):e,i;return n?(n=qT(n),n.startsWith("/")?i=US(n.substring(1),"/"):i=US(n,t)):i=t,{pathname:i,search:t4(r),hash:n4(a)}}function US(e,t){let n=Ld(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Zy(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function J3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mb(e){let t=J3(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function up(e,t,n,r=!1){let a;typeof e=="string"?a=ms(e):(a={...e},rt(!a.pathname||!a.pathname.includes("?"),Zy("?","pathname","search",a)),rt(!a.pathname||!a.pathname.includes("#"),Zy("#","pathname","hash",a)),rt(!a.search||!a.search.includes("#"),Zy("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;a.pathname=h.join("/")}l=c>=0?t[c]:"/"}let s=Z3(a,l),u=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var qT=e=>e.replace(/\/\/+/g,"/"),ur=e=>qT(e.join("/")),Ld=e=>e.replace(/\/+$/,""),e4=e=>Ld(e).replace(/^\/*/,"/"),t4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,r4=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function a4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function i4(e){let t=e.map(n=>n.route.path).filter(Boolean);return ur(t)||"/"}var FT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function GT(e,t){let n=e;if(typeof n!="string"||!W3.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(FT)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=da(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{fr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var YT=["POST","PUT","PATCH","DELETE"];new Set(YT);var o4=["GET",...YT];new Set(o4);var vs=j.createContext(null);vs.displayName="DataRouter";var cp=j.createContext(null);cp.displayName="DataRouterState";var KT=j.createContext(!1);function l4(){return j.useContext(KT)}var XT=j.createContext({isTransitioning:!1});XT.displayName="ViewTransition";var s4=j.createContext(new Map);s4.displayName="Fetchers";var u4=j.createContext(null);u4.displayName="Await";var Rn=j.createContext(null);Rn.displayName="Navigation";var qc=j.createContext(null);qc.displayName="Location";var pr=j.createContext({outlet:null,matches:[],isDataRoute:!1});pr.displayName="Route";var Pb=j.createContext(null);Pb.displayName="RouteError";var VT="REACT_ROUTER_ERROR",c4="REDIRECT",f4="ROUTE_ERROR_RESPONSE";function d4(e){if(e.startsWith(`${VT}:${c4}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function h4(e){if(e.startsWith(`${VT}:${f4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new r4(t.status,t.statusText,t.data)}catch{}}function p4(e,{relative:t}={}){rt(gs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(Rn),{hash:a,pathname:i,search:o}=Fc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:ur([n,i])),r.createHref({pathname:l,search:o,hash:a})}function gs(){return j.useContext(qc)!=null}function Mr(){return rt(gs(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(qc).location}var QT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function WT(e){j.useContext(Rn).static||j.useLayoutEffect(e)}function vo(){let{isDataRoute:e}=j.useContext(pr);return e?C4():y4()}function y4(){rt(gs(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(vs),{basename:t,navigator:n}=j.useContext(Rn),{matches:r}=j.useContext(pr),{pathname:a}=Mr(),i=JSON.stringify(Mb(r)),o=j.useRef(!1);return WT(()=>{o.current=!0}),j.useCallback((s,u={})=>{if(fr(o.current,QT),!o.current)return;if(typeof s=="number"){n.go(s);return}let f=up(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ur([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var m4=j.createContext(null);function v4(e){let t=j.useContext(pr).outlet;return j.useMemo(()=>t&&j.createElement(m4.Provider,{value:e},t),[t,e])}function Fc(e,{relative:t}={}){let{matches:n}=j.useContext(pr),{pathname:r}=Mr(),a=JSON.stringify(Mb(n));return j.useMemo(()=>up(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function g4(e,t){return ZT(e,t)}function ZT(e,t,n){var g;rt(gs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(Rn),{matches:a}=j.useContext(pr),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let y=u&&u.path||"";eC(l,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=Mr(),c;if(t){let y=typeof t=="string"?ms(t):t;rt(s==="/"||((g=y.pathname)==null?void 0:g.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${y.pathname}" was given in the \`location\` prop.`),c=y}else c=f;let h=c.pathname||"/",p=h;if(s!=="/"){let y=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):UT(e,{pathname:p});fr(u||b!=null,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),fr(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=O4(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:ur([s,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ur([s,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&v?j.createElement(qc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...c},navigationType:"POP"}},v):v}function b4(){let e=T4(),t=a4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:i},"ErrorBoundary")," or"," ",j.createElement("code",{style:i},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:a},n):null,o)}var x4=j.createElement(b4,null),JT=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=h4(e.digest);n&&(e=n)}let t=e!==void 0?j.createElement(pr.Provider,{value:this.props.routeContext},j.createElement(Pb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(S4,{error:e},t):t}};JT.contextType=KT;var Jy=new WeakMap;function S4({children:e,error:t}){let{basename:n}=j.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=d4(t.digest);if(r){let a=Jy.get(t);if(a)throw a;let i=GT(r.location,n);if(FT&&!Jy.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Jy.set(t,o),o}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function w4({routeContext:e,match:t,children:n}){let r=j.useContext(vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(pr.Provider,{value:e},n)}function O4(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);rt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:h,errors:p}=r,b=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||b){n.isStatic&&(o=!0),l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let s=n==null?void 0:n.onError,u=r&&s?(f,c)=>{var h,p;s(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:i4(r.matches),errorInfo:c})}:void 0;return a.reduceRight((f,c,h)=>{let p,b=!1,v=null,g=null;r&&(p=i&&c.route.id?i[c.route.id]:void 0,v=c.route.errorElement||x4,o&&(l<0&&h===0?(eC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,g=null):l===h&&(b=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),m=()=>{let x;return p?x=v:b?x=g:c.route.Component?x=j.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,j.createElement(w4,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?j.createElement(JT,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):m()},null)}function Rb(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function j4(e){let t=j.useContext(vs);return rt(t,Rb(e)),t}function A4(e){let t=j.useContext(cp);return rt(t,Rb(e)),t}function E4(e){let t=j.useContext(pr);return rt(t,Rb(e)),t}function $b(e){let t=E4(e),n=t.matches[t.matches.length-1];return rt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function _4(){return $b("useRouteId")}function T4(){var r;let e=j.useContext(Pb),t=A4("useRouteError"),n=$b("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function C4(){let{router:e}=j4("useNavigate"),t=$b("useNavigate"),n=j.useRef(!1);return WT(()=>{n.current=!0}),j.useCallback(async(a,i={})=>{fr(n.current,QT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var IS={};function eC(e,t,n){!t&&!IS[e]&&(IS[e]=!0,fr(!1,n))}j.memo(N4);function N4({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return ZT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function tC({to:e,replace:t,state:n,relative:r}){rt(gs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=j.useContext(Rn);fr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=j.useContext(pr),{pathname:o}=Mr(),l=vo(),s=up(e,Mb(i),o,r==="path"),u=JSON.stringify(s);return j.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function M4(e){return v4(e.context)}function Ae(e){rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function P4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){rt(!gs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=j.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=ms(n));let{pathname:u="/",search:f="",hash:c="",state:h=null,key:p="default",mask:b}=n,v=j.useMemo(()=>{let g=da(u,l);return g==null?null:{location:{pathname:g,search:f,hash:c,state:h,key:p,mask:b},navigationType:r}},[l,u,f,c,h,p,r,b]);return fr(v!=null,`<Router basename="${l}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:j.createElement(Rn.Provider,{value:s},j.createElement(qc.Provider,{children:t,value:v}))}function R4({children:e,location:t}){return g4($v(e),t)}function $v(e,t=[]){let n=[];return j.Children.forEach(e,(r,a)=>{if(!j.isValidElement(r))return;let i=[...t,a];if(r.type===j.Fragment){n.push.apply(n,$v(r.props.children,i));return}rt(r.type===Ae,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=$v(r.props.children,i)),n.push(o)}),n}var Jf="get",ed="application/x-www-form-urlencoded";function fp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function $4(e){return fp(e)&&e.tagName.toLowerCase()==="button"}function D4(e){return fp(e)&&e.tagName.toLowerCase()==="form"}function k4(e){return fp(e)&&e.tagName.toLowerCase()==="input"}function L4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z4(e,t){return e.button===0&&(!t||t==="_self")&&!L4(e)}var Sf=null;function B4(){if(Sf===null)try{new FormData(document.createElement("form"),0),Sf=!1}catch{Sf=!0}return Sf}var U4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function em(e){return e!=null&&!U4.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ed}"`),null):e}function I4(e,t){let n,r,a,i,o;if(D4(e)){let l=e.getAttribute("action");r=l?da(l,t):null,n=e.getAttribute("method")||Jf,a=em(e.getAttribute("enctype"))||ed,i=new FormData(e)}else if($4(e)||k4(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?da(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Jf,a=em(e.getAttribute("formenctype"))||em(l.getAttribute("enctype"))||ed,i=new FormData(l,e),!B4()){let{name:u,type:f,value:c}=e;if(f==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,c)}}else{if(fp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jf,r=null,a=ed,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Db(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nC(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&da(a.pathname,t)==="/"?a.pathname=`${Ld(t)}/_root.${r}`:a.pathname=`${Ld(a.pathname)}.${r}`,a}async function H4(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function q4(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function F4(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await H4(i,n);return o.links?o.links():[]}return[]}));return X4(r.flat(1).filter(q4).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function HS(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{var c;let f=r.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function G4(e,t,{includeHydrateFallback:n}={}){return Y4(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function Y4(e){return[...new Set(e)]}function K4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function X4(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(K4(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function kb(){let e=j.useContext(vs);return Db(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function V4(){let e=j.useContext(cp);return Db(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Lb=j.createContext(void 0);Lb.displayName="FrameworkContext";function zb(){let e=j.useContext(Lb);return Db(e,"You must render this element inside a <HydratedRouter> element"),e}function Q4(e,t){let n=j.useContext(Lb),[r,a]=j.useState(!1),[i,o]=j.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,h=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=y=>{y.forEach(m=>{o(m.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return h.current&&g.observe(h.current),()=>{g.disconnect()}}},[e]),j.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Hs(l,p),onBlur:Hs(s,b),onMouseEnter:Hs(u,p),onMouseLeave:Hs(f,b),onTouchStart:Hs(c,p)}]:[!1,h,{}]}function Hs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function W4({page:e,...t}){let n=l4(),{router:r}=kb(),a=j.useMemo(()=>UT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?j.createElement(J4,{page:e,matches:a,...t}):j.createElement(ek,{page:e,matches:a,...t}):null}function Z4(e){let{manifest:t,routeModules:n}=zb(),[r,a]=j.useState([]);return j.useEffect(()=>{let i=!1;return F4(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function J4({page:e,matches:t,...n}){let r=Mr(),{future:a}=zb(),{basename:i}=kb(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=nC(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:u.push(f.route.id);return s&&u.length>0&&l.searchParams.set("_routes",u.join(",")),[l.pathname+l.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return j.createElement(j.Fragment,null,o.map(l=>j.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function ek({page:e,matches:t,...n}){let r=Mr(),{future:a,manifest:i,routeModules:o}=zb(),{basename:l}=kb(),{loaderData:s,matches:u}=V4(),f=j.useMemo(()=>HS(e,t,u,i,r,"data"),[e,t,u,i,r]),c=j.useMemo(()=>HS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(m=>{var w;let x=i.routes[m.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===m.route.id)&&m.route.id in s&&((w=o[m.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?g=!0:v.add(m.route.id))}),v.size===0)return[];let y=nC(e,l,a.v8_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&y.searchParams.set("_routes",t.filter(m=>v.has(m.route.id)).map(m=>m.route.id).join(",")),[y.pathname+y.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,f,t,e,o]),p=j.useMemo(()=>G4(c,i),[c,i]),b=Z4(c);return j.createElement(j.Fragment,null,h.map(v=>j.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>j.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:g})=>j.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function tk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var nk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{nk&&(window.__reactRouterVersion="7.17.0")}catch{}function rk({basename:e,children:t,useTransitions:n,window:r}){let a=j.useRef();a.current==null&&(a.current=R3({window:r,v5Compat:!0}));let i=a.current,[o,l]=j.useState({action:i.action,location:i.location}),s=j.useCallback(u=>{n===!1?l(u):j.startTransition(()=>l(u))},[n]);return j.useLayoutEffect(()=>i.listen(s),[i,s]),j.createElement(P4,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var rC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:f,preventScrollReset:c,viewTransition:h,defaultShouldRevalidate:p,...b},v){let{basename:g,navigator:y,useTransitions:m}=j.useContext(Rn),x=typeof f=="string"&&rC.test(f),w=GT(f,g);f=w.to;let S=p4(f,{relative:a}),O=Mr(),A=null;if(l){let k=up(l,[],O.mask?O.mask.pathname:"/",!0);g!=="/"&&(k.pathname=k.pathname==="/"?g:ur([g,k.pathname])),A=y.createHref(k)}let[_,T,M]=Q4(r,b),L=ok(f,{replace:o,mask:l,state:s,target:u,preventScrollReset:c,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:m});function E(k){t&&t(k),k.defaultPrevented||L(k)}let N=!(w.isExternal||i),D=j.createElement("a",{...b,...M,href:(N?A:void 0)||w.absoluteURL||S,onClick:N?E:t,ref:tk(v,T),target:u,"data-discover":!x&&n==="render"?"true":void 0});return _&&!x?j.createElement(j.Fragment,null,D,j.createElement(W4,{page:S})):D});cr.displayName="Link";var Dv=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},f){let c=Fc(o,{relative:u.relative}),h=Mr(),p=j.useContext(cp),{navigator:b,basename:v}=j.useContext(Rn),g=p!=null&&fk(c)&&l===!0,y=b.encodeLocation?b.encodeLocation(c).pathname:c.pathname,m=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(m=m.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&v&&(x=da(x,v)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=m===y||!a&&m.startsWith(y)&&m.charAt(w)==="/",O=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),A={isActive:S,isPending:O,isTransitioning:g},_=S?t:void 0,T;typeof r=="function"?T=r(A):T=[r,S?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(A):i;return j.createElement(cr,{...u,"aria-current":_,className:T,ref:f,style:M,to:o,viewTransition:l},typeof s=="function"?s(A):s)});Dv.displayName="NavLink";var ak=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=Jf,action:l,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:v}=j.useContext(Rn),g=uk(),y=ck(l,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&rC.test(l),w=S=>{if(s&&s(S),S.defaultPrevented)return;S.preventDefault();let O=S.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||o,_=()=>g(O||S.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h});v&&n!==!1?j.startTransition(()=>_()):_()};return j.createElement("form",{ref:b,method:m,action:y,onSubmit:r?s:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});ak.displayName="Form";function ik(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function aC(e){let t=j.useContext(vs);return rt(t,ik(e)),t}function ok(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let f=vo(),c=Mr(),h=Fc(e,{relative:o});return j.useCallback(p=>{if(z4(p,t)){p.preventDefault();let b=n!==void 0?n:Iu(c)===Iu(h),v=()=>f(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?j.startTransition(()=>v()):v()}},[c,f,h,n,r,a,t,e,i,o,l,s,u])}var lk=0,sk=()=>`__${String(++lk)}__`;function uk(){let{router:e}=aC("useSubmit"),{basename:t}=j.useContext(Rn),n=_4(),r=e.fetch,a=e.navigate;return j.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:f,body:c}=I4(i,t);if(o.navigate===!1){let h=o.fetcherKey||sk();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}function ck(e,{relative:t}={}){let{basename:n}=j.useContext(Rn),r=j.useContext(pr);rt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Fc(e||".",{relative:t})},o=Mr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(f=>f==="")){l.delete("index"),s.filter(c=>c).forEach(c=>l.append("index",c));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:ur([n,i.pathname])),Iu(i)}function fk(e,{relative:t}={}){let n=j.useContext(XT);rt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=aC("useViewTransitionState"),a=Fc(e,{relative:t});if(!n.isTransitioning)return!1;let i=da(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=da(n.nextLocation.pathname,r)||n.nextLocation.pathname;return kd(a.pathname,o)!=null||kd(a.pathname,i)!=null}var bs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Di,Pa,dl,E2,dk=(E2=class extends bs{constructor(){super();te(this,Di);te(this,Pa);te(this,dl);X(this,dl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Pa)||this.setEventListener(C(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Pa))==null||t.call(this),X(this,Pa,void 0))}setEventListener(t){var n;X(this,dl,t),(n=C(this,Pa))==null||n.call(this),X(this,Pa,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Di)!==t&&(X(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Di)=="boolean"?C(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Pa=new WeakMap,dl=new WeakMap,E2),Bb=new dk,hk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,C0,_2,pk=(_2=class{constructor(){te(this,Ra,hk);te(this,C0,!1)}setTimeoutProvider(e){X(this,Ra,e)}setTimeout(e,t){return C(this,Ra).setTimeout(e,t)}clearTimeout(e){C(this,Ra).clearTimeout(e)}setInterval(e,t){return C(this,Ra).setInterval(e,t)}clearInterval(e){C(this,Ra).clearInterval(e)}},Ra=new WeakMap,C0=new WeakMap,_2),Ci=new pk;function yk(e){setTimeout(e,0)}var mk=typeof window>"u"||"Deno"in globalThis;function Qt(){}function vk(e,t){return typeof e=="function"?e(t):e}function kv(e){return typeof e=="number"&&e>=0&&e!==1/0}function iC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ni(e,t){return typeof e=="function"?e(t):e}function Sn(e,t){return typeof e=="function"?e(t):e}function qS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Ub(o,t.options))return!1}else if(!Hu(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function FS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ro(t.options.mutationKey)!==ro(i))return!1}else if(!Hu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Ub(e,t){return((t==null?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,(t,n)=>Lv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Hu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hu(e[n],t[n])):!1}var gk=Object.prototype.hasOwnProperty;function oC(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=GS(e)&&GS(t);if(!r&&!(Lv(e)&&Lv(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),l=o.length,s=r?new Array(l):{};let u=0;for(let f=0;f<l;f++){const c=r?f:o[f],h=e[c],p=t[c];if(h===p){s[c]=h,(r?f<i:gk.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[c]=p;continue}const b=oC(h,p,n+1);s[c]=b,b===h&&u++}return i===l&&u===i?e:s}function zd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function GS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lv(e){if(!YS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!YS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function YS(e){return Object.prototype.toString.call(e)==="[object Object]"}function bk(e){return new Promise(t=>{Ci.setTimeout(t,e)})}function zv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oC(e,t):t}function xk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Sk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ib=Symbol();function lC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ib?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Hb(e,t){return typeof e=="function"?e(...t):!!e}function wk(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var qu=(()=>{let e=()=>mk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Bv(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var Ok=yk;function jk(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=Ok;const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||o()}return s},batchCalls:l=>(...s)=>{i(()=>{l(...s)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var xt=jk(),hl,$a,pl,T2,Ak=(T2=class extends bs{constructor(){super();te(this,hl,!0);te(this,$a);te(this,pl);X(this,pl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,$a)||this.setEventListener(C(this,pl))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,$a))==null||t.call(this),X(this,$a,void 0))}setEventListener(t){var n;X(this,pl,t),(n=C(this,$a))==null||n.call(this),X(this,$a,t(this.setOnline.bind(this)))}setOnline(t){C(this,hl)!==t&&(X(this,hl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,hl)}},hl=new WeakMap,$a=new WeakMap,pl=new WeakMap,T2),Bd=new Ak;function Ek(e){return Math.min(1e3*2**e,3e4)}function sC(e){return(e??"online")==="online"?Bd.isOnline():!0}var Uv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uC(e){let t=!1,n=0,r;const a=Bv(),i=()=>a.status!=="pending",o=v=>{var g;if(!i()){const y=new Uv(v);h(y),(g=e.onCancel)==null||g.call(e,y)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Bb.isFocused()&&(e.networkMode==="always"||Bd.isOnline())&&e.canRun(),f=()=>sC(e.networkMode)&&e.canRun(),c=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var g;r=y=>{(i()||u())&&v(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const g=n===0?e.initialPromise:void 0;try{v=g??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(c).catch(y=>{var O;if(i())return;const m=e.retry??(qu.isServer()?0:3),x=e.retryDelay??Ek,w=typeof x=="function"?x(n,y):x,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(t||!S){h(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),bk(w).then(()=>u()?void 0:p()).then(()=>{t?h(y):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:s,canStart:f,start:()=>(f()?b():p().then(b),a)}}var ki,C2,cC=(C2=class{constructor(){te(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kv(this.gcTime)&&X(this,ki,Ci.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qu.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,ki)!==void 0&&(Ci.clearTimeout(C(this,ki)),X(this,ki,void 0))}},ki=new WeakMap,C2);function _k(e){return{onFetch:(t,n)=>{var f,c,h,p,b;const r=t.options,a=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let v=!1;const g=x=>{wk(x,()=>t.signal,()=>v=!0)},y=lC(t.options,t.fetchOptions),m=async(x,w,S)=>{if(v)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return g(L),L})(),_=await y(A),{maxPages:T}=t.options,M=S?Sk:xk;return{pages:M(x.pages,_,T),pageParams:M(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?Tk:KS,S={pages:i,pageParams:o},O=w(r,S);l=await m(S,O,x)}else{const x=e??i.length;do{const w=s===0?o[0]??r.initialPageParam:KS(r,l);if(s>0&&w==null)break;l=await m(l,w),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function KS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var yl,Li,ml,Bn,zi,Et,Ec,Bi,xn,fC,Ir,N2,Ck=(N2=class extends cC{constructor(t){super();te(this,xn);te(this,yl);te(this,Li);te(this,ml);te(this,Bn);te(this,zi);te(this,Et);te(this,Ec);te(this,Bi);X(this,Bi,!1),X(this,Ec,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,zi,t.client),X(this,Bn,C(this,zi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Li,VS(this.options)),this.state=t.state??C(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,yl)}get promise(){var t;return(t=C(this,Et))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Ec),...t},t!=null&&t._type&&X(this,yl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=VS(this.options);n.data!==void 0&&(this.setState(XS(n.data,n.dataUpdatedAt)),X(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Bn).remove(this)}setData(t,n){const r=zv(this.state.data,t,this.options);return pe(this,xn,Ir).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){pe(this,xn,Ir).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=C(this,Et))==null?void 0:r.promise;return(a=C(this,Et))==null||a.cancel(t),n?n.then(Qt).catch(Qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,Li)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Sn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ib||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ni(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!iC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Et))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Et))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Bn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Et)&&(C(this,Bi)||pe(this,xn,fC).call(this)?C(this,Et).cancel({revert:!0}):C(this,Et).cancelRetry()),this.scheduleGc()),C(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,xn,Ir).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,c,h,p,b,v,g,y,m,x;if(this.state.fetchStatus!=="idle"&&((u=C(this,Et))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Et))return C(this,Et).continueRetry(),C(this,Et).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(X(this,Bi,!0),r.signal)})},i=()=>{const w=lC(this.options,n),O=(()=>{const A={client:C(this,zi),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return X(this,Bi,!1),this.options.persister?this.options.persister(w,O,this):w(O)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,zi),state:this.state,fetchFn:i};return a(w),w})(),s=C(this,yl)==="infinite"?_k(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),X(this,ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&pe(this,xn,Ir).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),X(this,Et,uC({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof Uv&&w.revert&&this.setState({...C(this,ml),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{pe(this,xn,Ir).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{pe(this,xn,Ir).call(this,{type:"pause"})},onContinue:()=>{pe(this,xn,Ir).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await C(this,Et).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=C(this,Bn).config).onSuccess)==null||p.call(h,w,this),(v=(b=C(this,Bn).config).onSettled)==null||v.call(b,w,this.state.error,this),w}catch(w){if(w instanceof Uv){if(w.silent)return C(this,Et).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw pe(this,xn,Ir).call(this,{type:"error",error:w}),(y=(g=C(this,Bn).config).onError)==null||y.call(g,w,this),(x=(m=C(this,Bn).config).onSettled)==null||x.call(m,this.state.data,w,this),w}finally{this.scheduleGc()}}},yl=new WeakMap,Li=new WeakMap,ml=new WeakMap,Bn=new WeakMap,zi=new WeakMap,Et=new WeakMap,Ec=new WeakMap,Bi=new WeakMap,xn=new WeakSet,fC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ir=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dC(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...XS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,ml,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Bn).notify({query:this,type:"updated",action:t})})},N2);function dC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function XS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function VS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,we,_c,Xt,Ui,vl,Fr,Da,Tc,gl,bl,Ii,Hi,ka,xl,Ne,iu,Iv,Hv,qv,Fv,Gv,Yv,Kv,hC,M2,Nk=(M2=class extends bs{constructor(t,n){super();te(this,Ne);te(this,on);te(this,we);te(this,_c);te(this,Xt);te(this,Ui);te(this,vl);te(this,Fr);te(this,Da);te(this,Tc);te(this,gl);te(this,bl);te(this,Ii);te(this,Hi);te(this,ka);te(this,xl,new Set);this.options=n,X(this,on,t),X(this,Da,null),X(this,Fr,Bv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,we).addObserver(this),QS(C(this,we),this.options)?pe(this,Ne,iu).call(this):this.updateResult(),pe(this,Ne,Fv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xv(C(this,we),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xv(C(this,we),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,Ne,Gv).call(this),pe(this,Ne,Yv).call(this),C(this,we).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,we);if(this.options=C(this,on).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sn(this.options.enabled,C(this,we))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,Ne,Kv).call(this),C(this,we).setOptions(this.options),n._defaulted&&!zd(this.options,n)&&C(this,on).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,we),observer:this});const a=this.hasListeners();a&&WS(C(this,we),r,this.options,n)&&pe(this,Ne,iu).call(this),this.updateResult(),a&&(C(this,we)!==r||Sn(this.options.enabled,C(this,we))!==Sn(n.enabled,C(this,we))||ni(this.options.staleTime,C(this,we))!==ni(n.staleTime,C(this,we)))&&pe(this,Ne,Iv).call(this);const i=pe(this,Ne,Hv).call(this);a&&(C(this,we)!==r||Sn(this.options.enabled,C(this,we))!==Sn(n.enabled,C(this,we))||i!==C(this,ka))&&pe(this,Ne,qv).call(this,i)}getOptimisticResult(t){const n=C(this,on).getQueryCache().build(C(this,on),t),r=this.createResult(n,t);return Pk(this,r)&&(X(this,Xt,r),X(this,vl,this.options),X(this,Ui,C(this,we).state)),r}getCurrentResult(){return C(this,Xt)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Fr).status==="pending"&&C(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){C(this,xl).add(t)}getCurrentQuery(){return C(this,we)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,on).defaultQueryOptions(t),r=C(this,on).getQueryCache().build(C(this,on),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,Ne,iu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Xt)))}createResult(t,n){var T;const r=C(this,we),a=this.options,i=C(this,Xt),o=C(this,Ui),l=C(this,vl),u=t!==r?t.state:C(this,_c),{state:f}=t;let c={...f},h=!1,p;if(n._optimisticResults){const M=this.hasListeners(),L=!M&&QS(t,n),E=M&&WS(t,r,n,a);(L||E)&&(c={...c,...dC(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:g}=c;p=c.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&g==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(M=i.data,y=!0):M=typeof n.placeholderData=="function"?n.placeholderData((T=C(this,bl))==null?void 0:T.state.data,C(this,bl)):n.placeholderData,M!==void 0&&(g="success",p=zv(i==null?void 0:i.data,M,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(o==null?void 0:o.data)&&n.select===C(this,Tc))p=C(this,gl);else try{X(this,Tc,n.select),p=n.select(p),p=zv(i==null?void 0:i.data,p,n),X(this,gl,p),X(this,Da,null)}catch(M){X(this,Da,M)}C(this,Da)&&(b=C(this,Da),p=C(this,gl),v=Date.now(),g="error");const m=c.fetchStatus==="fetching",x=g==="pending",w=g==="error",S=x&&m,O=p!==void 0,_={status:g,fetchStatus:c.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!x,isLoadingError:w&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:qb(t,n),refetch:this.refetch,promise:C(this,Fr),isEnabled:Sn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=_.data!==void 0,L=_.status==="error"&&!M,E=k=>{L?k.reject(_.error):M&&k.resolve(_.data)},N=()=>{const k=X(this,Fr,_.promise=Bv());E(k)},D=C(this,Fr);switch(D.status){case"pending":t.queryHash===r.queryHash&&E(D);break;case"fulfilled":(L||_.data!==D.value)&&N();break;case"rejected":(!L||_.error!==D.reason)&&N();break}}return _}updateResult(){const t=C(this,Xt),n=this.createResult(C(this,we),this.options);if(X(this,Ui,C(this,we).state),X(this,vl,this.options),C(this,Ui).data!==void 0&&X(this,bl,C(this,we)),zd(n,t))return;X(this,Xt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!C(this,xl).size)return!0;const o=new Set(i??C(this,xl));return this.options.throwOnError&&o.add("error"),Object.keys(C(this,Xt)).some(l=>{const s=l;return C(this,Xt)[s]!==t[s]&&o.has(s)})};pe(this,Ne,hC).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,Ne,Fv).call(this)}},on=new WeakMap,we=new WeakMap,_c=new WeakMap,Xt=new WeakMap,Ui=new WeakMap,vl=new WeakMap,Fr=new WeakMap,Da=new WeakMap,Tc=new WeakMap,gl=new WeakMap,bl=new WeakMap,Ii=new WeakMap,Hi=new WeakMap,ka=new WeakMap,xl=new WeakMap,Ne=new WeakSet,iu=function(t){pe(this,Ne,Kv).call(this);let n=C(this,we).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Qt)),n},Iv=function(){pe(this,Ne,Gv).call(this);const t=ni(this.options.staleTime,C(this,we));if(qu.isServer()||C(this,Xt).isStale||!kv(t))return;const r=iC(C(this,Xt).dataUpdatedAt,t)+1;X(this,Ii,Ci.setTimeout(()=>{C(this,Xt).isStale||this.updateResult()},r))},Hv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,we)):this.options.refetchInterval)??!1},qv=function(t){pe(this,Ne,Yv).call(this),X(this,ka,t),!(qu.isServer()||Sn(this.options.enabled,C(this,we))===!1||!kv(C(this,ka))||C(this,ka)===0)&&X(this,Hi,Ci.setInterval(()=>{(this.options.refetchIntervalInBackground||Bb.isFocused())&&pe(this,Ne,iu).call(this)},C(this,ka)))},Fv=function(){pe(this,Ne,Iv).call(this),pe(this,Ne,qv).call(this,pe(this,Ne,Hv).call(this))},Gv=function(){C(this,Ii)!==void 0&&(Ci.clearTimeout(C(this,Ii)),X(this,Ii,void 0))},Yv=function(){C(this,Hi)!==void 0&&(Ci.clearInterval(C(this,Hi)),X(this,Hi,void 0))},Kv=function(){const t=C(this,on).getQueryCache().build(C(this,on),this.options);if(t===C(this,we))return;const n=C(this,we);X(this,we,t),X(this,_c,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},hC=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Xt))}),C(this,on).getQueryCache().notify({query:C(this,we),type:"observerResultsUpdated"})})},M2);function Mk(e,t){return Sn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Sn(t.retryOnMount,e)===!1)}function QS(e,t){return Mk(e,t)||e.state.data!==void 0&&Xv(e,t,t.refetchOnMount)}function Xv(e,t,n){if(Sn(t.enabled,e)!==!1&&ni(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qb(e,t)}return!1}function WS(e,t,n,r){return(e!==t||Sn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qb(e,n)}function qb(e,t){return Sn(t.enabled,e)!==!1&&e.isStaleByTime(ni(t.staleTime,e))}function Pk(e,t){return!zd(e.getCurrentResult(),t)}var Cc,gr,Ft,qi,br,Oa,P2,Rk=(P2=class extends cC{constructor(t){super();te(this,br);te(this,Cc);te(this,gr);te(this,Ft);te(this,qi);X(this,Cc,t.client),this.mutationId=t.mutationId,X(this,Ft,t.mutationCache),X(this,gr,[]),this.state=t.state||pC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,gr).includes(t)||(C(this,gr).push(t),this.clearGcTimeout(),C(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,gr,C(this,gr).filter(n=>n!==t)),this.scheduleGc(),C(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,gr).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ft).remove(this))}continue(){var t;return((t=C(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,f,c,h,p,b,v,g,y,m,x,w,S,O,A;const n=()=>{pe(this,br,Oa).call(this,{type:"continue"})},r={client:C(this,Cc),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,qi,uC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(_,T)=>{pe(this,br,Oa).call(this,{type:"failed",failureCount:_,error:T})},onPause:()=>{pe(this,br,Oa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ft).canRun(this)}));const a=this.state.status==="pending",i=!C(this,qi).canStart();try{if(a)n();else{pe(this,br,Oa).call(this,{type:"pending",variables:t,isPaused:i}),C(this,Ft).config.onMutate&&await C(this,Ft).config.onMutate(t,this,r);const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));T!==this.state.context&&pe(this,br,Oa).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const _=await C(this,qi).start();return await((u=(s=C(this,Ft).config).onSuccess)==null?void 0:u.call(s,_,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,r)),await((p=(h=C(this,Ft).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,_,null,t,this.state.context,r)),pe(this,br,Oa).call(this,{type:"success",data:_}),_}catch(_){try{await((y=(g=C(this,Ft).config).onError)==null?void 0:y.call(g,_,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(m=this.options).onError)==null?void 0:x.call(m,_,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=C(this,Ft).config).onSettled)==null?void 0:S.call(w,void 0,_,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((A=(O=this.options).onSettled)==null?void 0:A.call(O,void 0,_,t,this.state.context,r))}catch(T){Promise.reject(T)}throw pe(this,br,Oa).call(this,{type:"error",error:_}),_}finally{C(this,Ft).runNext(this)}}},Cc=new WeakMap,gr=new WeakMap,Ft=new WeakMap,qi=new WeakMap,br=new WeakSet,Oa=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{C(this,gr).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ft).notify({mutation:this,type:"updated",action:t})})},P2);function pC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,ar,Nc,R2,$k=(R2=class extends bs{constructor(t={}){super();te(this,Gr);te(this,ar);te(this,Nc);this.config=t,X(this,Gr,new Set),X(this,ar,new Map),X(this,Nc,0)}build(t,n,r){const a=new Rk({client:t,mutationCache:this,mutationId:++nf(this,Nc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){C(this,Gr).add(t);const n=wf(t);if(typeof n=="string"){const r=C(this,ar).get(n);r?r.push(t):C(this,ar).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Gr).delete(t)){const n=wf(t);if(typeof n=="string"){const r=C(this,ar).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&C(this,ar).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=wf(t);if(typeof n=="string"){const r=C(this,ar).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=wf(t);if(typeof n=="string"){const a=(r=C(this,ar).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{C(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Gr).clear(),C(this,ar).clear()})}getAll(){return Array.from(C(this,Gr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>FS(n,r))}findAll(t={}){return this.getAll().filter(n=>FS(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Qt))))}},Gr=new WeakMap,ar=new WeakMap,Nc=new WeakMap,R2);function wf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Yr,La,ln,Kr,oa,td,Vv,$2,Dk=($2=class extends bs{constructor(n,r){super();te(this,oa);te(this,Yr);te(this,La);te(this,ln);te(this,Kr);X(this,Yr,n),this.setOptions(r),this.bindMethods(),pe(this,oa,td).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=C(this,Yr).defaultMutationOptions(n),zd(this.options,r)||C(this,Yr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,ln),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ro(r.mutationKey)!==ro(this.options.mutationKey)?this.reset():((a=C(this,ln))==null?void 0:a.state.status)==="pending"&&C(this,ln).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,ln))==null||n.removeObserver(this)}onMutationUpdate(n){pe(this,oa,td).call(this),pe(this,oa,Vv).call(this,n)}getCurrentResult(){return C(this,La)}reset(){var n;(n=C(this,ln))==null||n.removeObserver(this),X(this,ln,void 0),pe(this,oa,td).call(this),pe(this,oa,Vv).call(this)}mutate(n,r){var a;return X(this,Kr,r),(a=C(this,ln))==null||a.removeObserver(this),X(this,ln,C(this,Yr).getMutationCache().build(C(this,Yr),this.options)),C(this,ln).addObserver(this),C(this,ln).execute(n)}},Yr=new WeakMap,La=new WeakMap,ln=new WeakMap,Kr=new WeakMap,oa=new WeakSet,td=function(){var r;const n=((r=C(this,ln))==null?void 0:r.state)??pC();X(this,La,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vv=function(n){xt.batch(()=>{var r,a,i,o,l,s,u,f;if(C(this,Kr)&&this.hasListeners()){const c=C(this,La).variables,h=C(this,La).context,p={client:C(this,Yr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=C(this,Kr)).onSuccess)==null||a.call(r,n.data,c,h,p)}catch(b){Promise.reject(b)}try{(o=(i=C(this,Kr)).onSettled)==null||o.call(i,n.data,null,c,h,p)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(s=(l=C(this,Kr)).onError)==null||s.call(l,n.error,c,h,p)}catch(b){Promise.reject(b)}try{(f=(u=C(this,Kr)).onSettled)==null||f.call(u,void 0,n.error,c,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(c=>{c(C(this,La))})})},$2),xr,D2,kk=(D2=class extends bs{constructor(t={}){super();te(this,xr);this.config=t,X(this,xr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Ub(a,n);let o=this.get(i);return o||(o=new Ck({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){C(this,xr).has(t.queryHash)||(C(this,xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,xr).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,xr).get(t)}getAll(){return[...C(this,xr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qS(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xr=new WeakMap,D2),it,za,Ba,Sl,wl,Ua,Ol,jl,k2,Lk=(k2=class{constructor(e={}){te(this,it);te(this,za);te(this,Ba);te(this,Sl);te(this,wl);te(this,Ua);te(this,Ol);te(this,jl);X(this,it,e.queryCache||new kk),X(this,za,e.mutationCache||new $k),X(this,Ba,e.defaultOptions||{}),X(this,Sl,new Map),X(this,wl,new Map),X(this,Ua,0)}mount(){nf(this,Ua)._++,C(this,Ua)===1&&(X(this,Ol,Bb.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,it).onFocus())})),X(this,jl,Bd.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,it).onOnline())})))}unmount(){var e,t;nf(this,Ua)._--,C(this,Ua)===0&&((e=C(this,Ol))==null||e.call(this),X(this,Ol,void 0),(t=C(this,jl))==null||t.call(this),X(this,jl,void 0))}isFetching(e){return C(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,za).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,it).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ni(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,it).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=C(this,it).get(r.queryHash),i=a==null?void 0:a.state.data,o=vk(t,i);if(o!==void 0)return C(this,it).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>C(this,it).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,it);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,it);return xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xt.batch(()=>C(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Qt).catch(Qt)}invalidateQueries(e,t={}){return xt.batch(()=>(C(this,it).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xt.batch(()=>C(this,it).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Qt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Qt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,it).build(this,t);return n.isStaleByTime(ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Qt).catch(Qt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Qt).catch(Qt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Bd.isOnline()?C(this,za).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,it)}getMutationCache(){return C(this,za)}getDefaultOptions(){return C(this,Ba)}setDefaultOptions(e){X(this,Ba,e)}setQueryDefaults(e,t){C(this,Sl).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Sl).values()],n={};return t.forEach(r=>{Hu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,wl).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,wl).values()],n={};return t.forEach(r=>{Hu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ba).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ub(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ib&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ba).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,it).clear(),C(this,za).clear()}},it=new WeakMap,za=new WeakMap,Ba=new WeakMap,Sl=new WeakMap,wl=new WeakMap,Ua=new WeakMap,Ol=new WeakMap,jl=new WeakMap,k2),yC=j.createContext(void 0),$n=e=>{const t=j.useContext(yC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(yC.Provider,{value:e,children:t})),mC=j.createContext(!1),Bk=()=>j.useContext(mC);mC.Provider;function Uk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ik=j.createContext(Uk()),Hk=()=>j.useContext(Ik),qk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Hb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Fk=e=>{j.useEffect(()=>{e.clearReset()},[e])},Gk=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Hb(n,[e.error,r])),Yk=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Kk=(e,t)=>e.isLoading&&e.isFetching&&!t,Xk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ZS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Vk(e,t,n){var p,b,v,g;const r=Bk(),a=Hk(),i=$n(),o=i.defaultQueryOptions(e);(b=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||b.call(p,o);const l=i.getQueryCache().get(o.queryHash),s=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":s?"optimistic":void 0,Yk(o),qk(o,a,l),Fk(a);const u=!i.getQueryCache().get(o.queryHash),[f]=j.useState(()=>new t(i,o)),c=f.getOptimisticResult(o),h=!r&&s;if(j.useSyncExternalStore(j.useCallback(y=>{const m=h?f.subscribe(xt.batchCalls(y)):Qt;return f.updateResult(),m},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),j.useEffect(()=>{f.setOptions(o)},[o,f]),Xk(o,c))throw ZS(o,f,a);if(Gk({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw c.error;if((g=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||g.call(v,o,c),o.experimental_prefetchInRender&&!qu.isServer()&&Kk(c,r)){const y=u?ZS(o,f,a):l==null?void 0:l.promise;y==null||y.catch(Qt).finally(()=>{f.updateResult()})}return o.notifyOnChangeProps?c:f.trackResult(c)}function Dn(e,t){return Vk(e,Nk)}function Ht(e,t){const n=$n(),[r]=j.useState(()=>new Dk(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const a=j.useSyncExternalStore(j.useCallback(o=>r.subscribe(xt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=j.useCallback((o,l)=>{r.mutate(o,l).catch(Qt)},[r]);if(a.error&&Hb(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/**
 * @license lucide-react v0.400.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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vC=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Wk={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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zk=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},s)=>j.createElement("svg",{ref:s,...Wk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vC("lucide",a),...l},[...o.map(([u,f])=>j.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const re=(e,t)=>{const n=j.forwardRef(({className:r,...a},i)=>j.createElement(Zk,{ref:i,iconNode:t,className:vC(`lucide-${Qk(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.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=re("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gC=re("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bC=re("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e5=re("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xC=re("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t5=re("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SC=re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n5=re("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r5=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a5=re("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fb=re("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i5=re("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o5=re("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l5=re("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s5=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u5=re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gb=re("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c5=re("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f5=re("ExternalLink",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d5=re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h5=re("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p5=re("LayoutDashboard",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y5=re("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wC=re("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m5=re("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v5=re("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g5=re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b5=re("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x5=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S5=re("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w5=re("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O5=re("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j5=re("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.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=re("RefreshCw",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JS=re("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A5=re("ShieldCheck",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nd=re("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E5=re("SquarePen",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _5=re("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qv=re("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T5=re("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C5=re("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N5=re("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const go=re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yb=re("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M5=re("User",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P5=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OC=re("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jC=re("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R5=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wv=re("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$5=[{to:"/dashboard",icon:p5,label:"대시보드"},{to:"/stores",icon:Qv,label:"매장 관리"},{to:"/templates",icon:d5,label:"ESL 템플릿"},{to:"/pos-cvt",icon:dp,label:"POS 가격변환"},{to:"/tag-binding",icon:wC,label:"태그 바인딩"},{to:"/update-queue",icon:m5,label:"업데이트 큐"},{to:"/alarms",icon:bC,label:"알람 관리"},{to:"/hcore",icon:Gb,label:"HCore 장치"},{to:"/works",icon:l5,label:"작업 이력"},{to:"/firmware",icon:Wv,label:"펌웨어"},{to:"/products",icon:O5,label:"상품/가격"},{to:"/users",icon:P5,label:"사용자"},{to:"/tenants",icon:SC,label:"테넌트 관리"},{to:"/ai",icon:xC,label:"AI 분석"},{to:"/worklogs",icon:e5,label:"업무일지"},{to:"/schedules",icon:n5,label:"일정 관리"},{to:"/messages",icon:g5,label:"쪽지"},{to:"/work-stats",icon:Jk,label:"업무 통계"},{to:"/mobile-app",icon:nd,label:"모바일 앱"}],D5=[{to:"/system/roles",icon:A5,label:"역할/권한"},{to:"/system/role-menus",icon:h5,label:"메뉴 권한"},{to:"/system/menus",icon:x5,label:"메뉴 관리"},{to:"/system/codes",icon:N5,label:"공통코드"},{to:"/system/depts",icon:w5,label:"부서 관리"},{to:"/system/companies",icon:t5,label:"거래처 관리"}],ew=({isActive:e})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${e?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`;function k5(){const e=localStorage.getItem("esn_role"),t=e==="ADMIN"||e==="MANAGER";return d.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[d.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[d.jsx("span",{className:"text-brand font-bold text-sm tracking-wide",children:"ESN"}),d.jsx("span",{className:"ml-2 text-xs text-gray-400",children:"ESL 통합 관리"})]}),d.jsxs("nav",{className:"flex-1 overflow-y-auto py-3",children:[$5.map(({to:n,icon:r,label:a})=>d.jsxs(Dv,{to:n,className:ew,children:[d.jsx(r,{size:16}),a]},n)),t&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"px-4 pt-4 pb-1 text-[11px] font-semibold uppercase tracking-wider text-gray-500",children:"시스템관리 (권한)"}),D5.map(({to:n,icon:r,label:a})=>d.jsxs(Dv,{to:n,className:ew,children:[d.jsx(r,{size:16}),a]},n))]})]}),d.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function L5(){const{theme:e,toggle:t}=P3();return d.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?d.jsx(T5,{size:16}):d.jsx(S5,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}function z5(){const e=vo(),t=localStorage.getItem("esn_user")||"admin",n=localStorage.getItem("esn_role")||"ADMIN",r=localStorage.getItem("esn_tenant")||"ALL";function a(){localStorage.removeItem("esn_token"),localStorage.removeItem("esn_role"),localStorage.removeItem("esn_user"),localStorage.removeItem("esn_tenant"),e("/login")}return d.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[d.jsx("div",{className:"flex-1"}),d.jsx("div",{className:"w-32",children:d.jsx(L5,{})}),d.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",d.jsx("span",{className:"text-brand",children:r})]}),d.jsx("span",{className:"text-xs text-gray-400",children:"|"}),d.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[d.jsx(M5,{size:14}),d.jsx("span",{children:t}),d.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),d.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[d.jsx(v5,{size:14}),"로그아웃"]})]})}function AC(e,t){return function(){return e.apply(t,arguments)}}const{toString:B5}=Object.prototype,{getPrototypeOf:kl}=Object,{iterator:Gc,toStringTag:EC}=Symbol,Ud=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Ud(n,t))return!0;n=kl(n)}return!1},U5=(e,t)=>e!=null&&Fu(e,t)?e[t]:void 0,Kb=(e=>t=>{const n=B5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yr=e=>(e=e.toLowerCase(),t=>Kb(t)===e),hp=e=>t=>typeof t===e,{isArray:ao}=Array,Ll=hp("undefined");function xs(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _C=yr("ArrayBuffer");function I5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_C(e.buffer),t}const H5=hp("string"),dn=hp("function"),TC=hp("number"),Ss=e=>e!==null&&typeof e=="object",q5=e=>e===!0||e===!1,rd=e=>{if(!Ss(e))return!1;const t=kl(e);return(t===null||t===Object.prototype||kl(t)===null)&&!Fu(e,EC)&&!Fu(e,Gc)},F5=e=>{if(!Ss(e)||xs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},G5=yr("Date"),Y5=yr("File"),K5=e=>!!(e&&typeof e.uri<"u"),X5=e=>e&&typeof e.getParts<"u",V5=yr("Blob"),Q5=yr("FileList"),W5=e=>Ss(e)&&dn(e.pipe);function Z5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const tw=Z5(),nw=typeof tw.FormData<"u"?tw.FormData:void 0,J5=e=>{if(!e)return!1;if(nw&&e instanceof nw)return!0;const t=kl(e);if(!t||t===Object.prototype||!dn(e.append))return!1;const n=Kb(e);return n==="formdata"||n==="object"&&dn(e.toString)&&e.toString()==="[object FormData]"},eL=yr("URLSearchParams"),[tL,nL,rL,aL]=["ReadableStream","Request","Response","Headers"].map(yr),iL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ao(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(xs(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(r=0;r<o;r++)l=i[r],t.call(null,e[l],l,e)}}function CC(e,t){if(xs(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,NC=e=>!Ll(e)&&e!==Ni;function Zv(...e){const{caseless:t,skipUndefined:n}=NC(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&CC(r,o)||o,s=Ud(r,l)?r[l]:void 0;rd(s)&&rd(i)?r[l]=Zv(s,i):rd(i)?r[l]=Zv({},i):ao(i)?r[l]=i.slice():(!n||!Ll(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||xs(l)||(Yc(l,a),typeof l!="object"||ao(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const f=s[u];vL.call(l,f)&&a(l[f],f)}}return r}const oL=(e,t,n,{allOwnKeys:r}={})=>(Yc(t,(a,i)=>{n&&dn(a)?Object.defineProperty(e,i,{__proto__:null,value:AC(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),lL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sL=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},uL=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&kl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cL=(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},fL=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!TC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kl(Uint8Array)),hL=(e,t)=>{const r=(e&&e[Gc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},pL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yL=yr("HTMLFormElement"),mL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:vL}=Object.prototype,gL=yr("RegExp"),MC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},bL=e=>{MC(e,(t,n)=>{if(dn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(dn(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+"'")})}})},xL=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ao(e)?r(e):r(String(e).split(t)),n},SL=()=>{},wL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function OL(e){return!!(e&&dn(e.append)&&e[EC]==="FormData"&&e[Gc])}const jL=e=>{const t=new WeakSet,n=r=>{if(Ss(r)){if(t.has(r))return;if(xs(r))return r;if(!("toJSON"in r)){t.add(r);const a=ao(r)?[]:{};return Yc(r,(i,o)=>{const l=n(i);!Ll(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},AL=yr("AsyncFunction"),EL=e=>e&&(Ss(e)||dn(e))&&dn(e.then)&&dn(e.catch),PC=((e,t)=>e?setImmediate:t?((n,r)=>(Ni.addEventListener("message",({source:a,data:i})=>{a===Ni&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ni.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dn(Ni.postMessage)),_L=typeof queueMicrotask<"u"?queueMicrotask.bind(Ni):typeof process<"u"&&process.nextTick||PC,RC=e=>e!=null&&dn(e[Gc]),TL=e=>e!=null&&Fu(e,Gc)&&RC(e),P={isArray:ao,isArrayBuffer:_C,isBuffer:xs,isFormData:J5,isArrayBufferView:I5,isString:H5,isNumber:TC,isBoolean:q5,isObject:Ss,isPlainObject:rd,isEmptyObject:F5,isReadableStream:tL,isRequest:nL,isResponse:rL,isHeaders:aL,isUndefined:Ll,isDate:G5,isFile:Y5,isReactNativeBlob:K5,isReactNative:X5,isBlob:V5,isRegExp:gL,isFunction:dn,isStream:W5,isURLSearchParams:eL,isTypedArray:dL,isFileList:Q5,forEach:Yc,merge:Zv,extend:oL,trim:iL,stripBOM:lL,inherits:sL,toFlatObject:uL,kindOf:Kb,kindOfTest:yr,endsWith:cL,toArray:fL,forEachEntry:hL,matchAll:pL,isHTMLForm:yL,hasOwnProperty:Ud,hasOwnProp:Ud,hasOwnInPrototypeChain:Fu,getSafeProp:U5,reduceDescriptors:MC,freezeMethods:bL,toObjectSet:xL,toCamelCase:mL,noop:SL,toFiniteNumber:wL,findKey:CC,global:Ni,isContextDefined:NC,isSpecCompliantForm:OL,toJSONObject:jL,isAsyncFn:AL,isThenable:EL,setImmediate:PC,asap:_L,isIterable:RC,isSafeIterable:TL},CL=P.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"]),NL=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&CL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function ML(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const PL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),RL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Xb(e,t){return P.isArray(e)?e.map(n=>Xb(n,t)):ML(String(e).replace(t,""))}const $L=e=>Xb(e,PL),DL=e=>Xb(e,RL);function $C(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,r)=>{t[r]=DL(n)}),t}const rw=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ad(e){return e===!1||e==null?e:P.isArray(e)?e.map(ad):$L(String(e))}function kL(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 LL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tm(e,t,n,r,a){if(P.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function zL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function BL(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}let Kt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const f=qs(s);if(!f)return;const c=P.findKey(a,f);(!c||a[c]===void 0||u===!0||u===void 0&&a[c]!==!1)&&(a[c||s]=ad(l))}const o=(l,s)=>P.forEach(l,(u,f)=>i(u,f,s));if(P.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(P.isString(t)&&(t=t.trim())&&!LL(t))o(NL(t),n);else if(P.isObject(t)&&P.isSafeIterable(t)){let l=Object.create(null),s,u;for(const f of t){if(!P.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],P.hasOwnProp(l,u)?(s=l[u],l[u]=P.isArray(s)?[...s,f[1]]:[s,f[1]]):l[u]=f[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qs(t),t){const r=P.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return kL(a);if(P.isFunction(n))return n.call(this,a,r);if(P.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=qs(o),o){const l=P.findKey(r,o);l&&(!n||tm(r,r[l],l,n))&&(delete r[l],a=!0)}}return P.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||tm(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return P.forEach(this,(a,i)=>{const o=P.findKey(r,i);if(o){n[o]=ad(a),delete n[i];return}const l=t?zL(i):String(i).trim();l!==i&&delete n[i],n[l]=ad(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&P.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(a=>r.set(a)),r}static accessor(t){const r=(this[rw]=this[rw]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=qs(o);r[l]||(BL(a,o),r[l]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(Kt);const UL="[REDACTED ****]";function IL(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function HL(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Kt&&(i=i.toJSON()),r.push(i);let o;if(P.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);P.isUndefined(u)||(o[s]=u)});else{if(!P.isPlainObject(i)&&IL(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?UL:a(s);P.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let W=class DC extends Error{static from(t,n,r,a,i,o){const l=new DC(t.message,n||t.code,r,a,i);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,r=P.isArray(n)&&n.length>0?HL(t,n):P.toJSONObject(t);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:r,code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ECONNREFUSED="ECONNREFUSED";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";W.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const qL=null,kC=100;function Jv(e){return P.isPlainObject(e)||P.isArray(e)}function LC(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function nm(e,t,n){return e?e.concat(t).map(function(a,i){return a=LC(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function FL(e){return P.isArray(e)&&!e.some(Jv)}const GL=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function pp(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!P.isUndefined(x[m])});const r=n.metaTokens,a=n.visitor||b,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?kC:n.maxDepth,u=l&&P.isSpecCompliantForm(t),f=[];if(!P.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(P.isDate(y))return y.toISOString();if(P.isBoolean(y))return y.toString();if(!u&&P.isBlob(y))throw new W("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(y)||P.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y){if(y>s)throw new W("Object is too deeply nested ("+y+" levels). Max depth: "+s,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(y,m){if(s===1/0)return JSON.stringify(y);const x=[];return JSON.stringify(y,function(S,O){if(!P.isObject(O))return O;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(O),h(m+x.length-1),O})}function b(y,m,x){let w=y;if(P.isReactNative(t)&&P.isReactNativeBlob(y))return t.append(nm(x,m,i),c(y)),!1;if(y&&!x&&typeof y=="object"){if(P.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=p(y,1);else if(P.isArray(y)&&FL(y)||(P.isFileList(y)||P.endsWith(m,"[]"))&&(w=P.toArray(y)))return m=LC(m),w.forEach(function(O,A){!(P.isUndefined(O)||O===null)&&t.append(o===!0?nm([m],A,i):o===null?m:m+"[]",c(O))}),!1}return Jv(y)?!0:(t.append(nm(x,m,i),c(y)),!1)}const v=Object.assign(GL,{defaultVisitor:b,convertValue:c,isVisitable:Jv});function g(y,m,x=0){if(!P.isUndefined(y)){if(h(x),f.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));f.push(y),P.forEach(y,function(S,O){(!(P.isUndefined(S)||S===null)&&a.call(t,S,P.isString(O)?O.trim():O,m,v))===!0&&g(S,m?m.concat(O):[O],x+1)}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return g(e),t}function aw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Vb(e,t){this._pairs=[],e&&pp(e,this,t)}const zC=Vb.prototype;zC.append=function(t,n){this._pairs.push([t,n])};zC.toString=function(t){const n=t?function(r){return t.call(this,r,aw)}:aw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function YL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function BC(e,t,n){if(!t)return e;const r=P.isFunction(n)?{serialize:n}:n,a=P.getSafeProp(r,"encode")||YL,i=P.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=P.isURLSearchParams(t)?t.toString():new Vb(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class iw{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){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},KL=typeof URLSearchParams<"u"?URLSearchParams:Vb,XL=typeof FormData<"u"?FormData:null,VL=typeof Blob<"u"?Blob:null,QL={isBrowser:!0,classes:{URLSearchParams:KL,FormData:XL,Blob:VL},protocols:["http","https","file","blob","url","data"]},Wb=typeof window<"u"&&typeof document<"u",eg=typeof navigator=="object"&&navigator||void 0,WL=Wb&&(!eg||["ReactNative","NativeScript","NS"].indexOf(eg.product)<0),ZL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JL=Wb&&window.location.href||"http://localhost",e6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wb,hasStandardBrowserEnv:WL,hasStandardBrowserWebWorkerEnv:ZL,navigator:eg,origin:JL},Symbol.toStringTag,{value:"Module"})),Bt={...e6,...QL};function t6(e,t){return pp(e,new Bt.classes.URLSearchParams,{visitor:function(n,r,a,i){return Bt.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const ow=kC;function UC(e){if(e>ow)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+ow,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function n6(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)UC(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function r6(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function IC(e){function t(n,r,a,i){UC(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&P.isArray(a)?a.length:o,s?(P.hasOwnProp(a,o)?a[o]=P.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!P.hasOwnProp(a,o)||!P.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&P.isArray(a[o])&&(a[o]=r6(a[o])),!l)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,a)=>{t(n6(r),a,n,0)}),n}return null}const No=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function a6(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kc={transitional:Qb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return a?JSON.stringify(IC(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=No(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return t6(t,s).toString();if((l=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=No(this,"env"),f=u&&u.FormData;return pp(l?{"files[]":t}:t,f&&new f,s)}}return i||a?(n.setContentType("application/json",!1),a6(t)):t}],transformResponse:[function(t){const n=No(this,"transitional")||Kc.transitional,r=n&&n.forcedJSONParsing,a=No(this,"responseType"),i=a==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,No(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,No(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{Kc.headers[e]={}});function rm(e,t){const n=this||Kc,r=t||n,a=Kt.from(r.headers);let i=r.data;return P.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function HC(e){return!!(e&&e.__CANCEL__)}let Xc=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function qC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,n.status>=400&&n.status<500?W.ERR_BAD_REQUEST:W.ERR_BAD_RESPONSE,n.config,n.request,n))}function i6(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 a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),f=r[i];o||(o=u),n[a]=s,r[a]=u;let c=i,h=0;for(;c!==a;)h+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function l6(e,t){let n=0,r=1e3/t,a,i;const o=(u,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?o(u,f):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-c)))},()=>a&&o(a)]}const Id=(e,t,n=3)=>{let r=0;const a=o6(50,250);return l6(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,l=i.lengthComputable?i.total:void 0,s=l!=null?Math.min(o,l):o,u=Math.max(0,s-r),f=a(u);r=Math.max(r,s);const c={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l?(l-s)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(c)},n)},lw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sw=e=>(...t)=>P.asap(()=>e(...t)),s6=Bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Bt.origin),Bt.navigator&&/(msie|trident)/i.test(Bt.navigator.userAgent)):()=>!0,u6=Bt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&l.push(`path=${r}`),P.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),P.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function c6(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const d6=/^https?:(?!\/\/)/i,h6=/[\t\n\r]/g;function p6(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function y6(e){return p6(e).replace(h6,"")}function uw(e,t){if(typeof e=="string"&&d6.test(y6(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function FC(e,t,n,r){uw(t,r);let a=!c6(t);return e&&(a||n===!1)?(uw(e,r),f6(e,t)):t}const cw=e=>e instanceof Kt?{...e}:e;function io(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,h,p){return P.isPlainObject(f)&&P.isPlainObject(c)?P.merge.call({caseless:p},f,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function a(f,c,h,p){if(P.isUndefined(c)){if(!P.isUndefined(f))return r(void 0,f,h,p)}else return r(f,c,h,p)}function i(f,c){if(!P.isUndefined(c))return r(void 0,c)}function o(f,c){if(P.isUndefined(c)){if(!P.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f){const c=P.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!P.isUndefined(c))if(P.isPlainObject(c)){if(P.hasOwnProp(c,f))return c[f]}else return;const h=P.hasOwnProp(e,"transitional")?e.transitional:void 0;if(P.isPlainObject(h)&&P.hasOwnProp(h,f))return h[f]}function s(f,c,h){if(P.hasOwnProp(t,h))return r(f,c);if(P.hasOwnProp(e,h))return r(void 0,f)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(f,c,h)=>a(cw(f),cw(c),h,!0)};return P.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=P.hasOwnProp(u,c)?u[c]:a,p=P.hasOwnProp(e,c)?e[c]:void 0,b=P.hasOwnProp(t,c)?t[c]:void 0,v=h(p,b,c);P.isUndefined(v)&&h!==s||(n[c]=v)}),P.hasOwnProp(t,"validateStatus")&&P.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(P.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const m6=["content-type","content-length"];function v6(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{m6.includes(r.toLowerCase())&&e.set(r,a)})}const g6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function GC(e){const t=io({},e),n=h=>P.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let l=n("headers");const s=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=l=Kt.from(l),t.url=BC(FC(u,c,f,t),n("params"),n("paramsSerializer")),s){const h=P.getSafeProp(s,"username")||"",p=P.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?g6(p):"")))}if(P.isFormData(r)&&(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?l.setContentType(void 0):P.isFunction(r.getHeaders)&&v6(l,r.getHeaders(),n("formDataHeaderPolicy"))),Bt.hasStandardBrowserEnv&&(P.isFunction(a)&&(a=a(t)),a===!0||a==null&&s6(t.url))){const p=i&&o&&u6.read(o);p&&l.set(i,p)}return t}const b6=typeof XMLHttpRequest<"u",x6=b6&&function(e){return new Promise(function(n,r){const a=GC(e);let i=a.data;const o=Kt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,f,c,h,p,b;function v(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const x=Kt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};qC(function(A){n(A),v()},function(A){r(A),v()},S),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(y)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),v(),g=null)},g.onerror=function(w){const S=w&&w.message?w.message:"Network Error",O=new W(S,W.ERR_NETWORK,e,g);O.event=w||null,r(O),v(),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Qb;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new W(w,S.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),v(),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&P.forEach($C(o),function(w,S){g.setRequestHeader(S,w)}),P.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),l&&l!=="json"&&(g.responseType=a.responseType),u&&([h,b]=Id(u,!0),g.addEventListener("progress",h)),s&&g.upload&&([c,p]=Id(s),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{g&&(r(!x||x.type?new Xc(null,e,g):x),g.abort(),v(),g=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const m=i6(a.url);if(m&&!Bt.protocols.includes(m)){r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},S6=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(s){if(!r){r=!0,o();const u=s instanceof Error?s:this.reason;n.abort(u instanceof W?u:new Xc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(a):s.removeEventListener("abort",a)}),e=null)};e.forEach(s=>s.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>P.asap(o),l},w6=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},O6=async function*(e,t){for await(const n of j6(e))yield*w6(n,t)},j6=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()}},fw=(e,t,n,r)=>{const a=O6(e,t);let i=0,o,l=s=>{o||(o=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:f}=await a.next();if(u){l(),s.close();return}let c=f.byteLength;if(n){let h=i+=c;n(h)}s.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},Hd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,A6=(e,t,n)=>t+2<n&&Hd(e.charCodeAt(t+1))&&Hd(e.charCodeAt(t+2));function E6(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let p=0;p<l;p++)if(r.charCodeAt(p)===37&&p+2<l){const b=r.charCodeAt(p+1),v=r.charCodeAt(p+2);Hd(b)&&Hd(v)&&(o-=2,p+=2)}let s=0,u=l-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);u>=0&&(r.charCodeAt(u)===61?(s++,u--):f(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&s++;const h=Math.floor(o/4)*3-(s||0);return h>0?h:0}let i=0;for(let o=0,l=r.length;o<l;o++){const s=r.charCodeAt(o);if(s===37&&A6(r,o,l))i+=1,o+=2;else if(s<128)i+=1;else if(s<2048)i+=2;else if(s>=55296&&s<=56319&&o+1<l){const u=r.charCodeAt(o+1);u>=56320&&u<=57343?(i+=4,o++):i+=3}else i+=3}return i}const Zb="1.18.0",dw=64*1024,{isFunction:Of}=P,_6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),hw=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},pw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},T6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},C6=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?Of(a):typeof fetch=="function",s=Of(i),u=Of(o);if(!l)return!1;const f=l&&Of(n),c=l&&(typeof r=="function"?(y=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=s&&f&&pw(()=>{let y=!1;const m=new i(Bt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!x}),p=u&&f&&pw(()=>P.isReadableStream(new o("").body)),b={stream:p&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!b[y]&&(b[y]=(m,x)=>{let w=m&&m[y];if(w)return w.call(m);throw new W(`Response type '${y}' is not supported`,W.ERR_NOT_SUPPORT,x)})});const v=async y=>{if(y==null)return 0;if(P.isBlob(y))return y.size;if(P.isSpecCompliantForm(y))return(await new i(Bt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(P.isArrayBufferView(y)||P.isArrayBuffer(y))return y.byteLength;if(P.isURLSearchParams(y)&&(y=y+""),P.isString(y))return(await c(y)).byteLength},g=async(y,m)=>{const x=P.toFiniteNumber(y.getContentLength());return x??v(m)};return async y=>{let{url:m,method:x,data:w,signal:S,cancelToken:O,timeout:A,onDownloadProgress:_,onUploadProgress:T,responseType:M,headers:L,withCredentials:E="same-origin",fetchOptions:N,maxContentLength:D,maxBodyLength:k}=GC(y);const R=P.isNumber(D)&&D>-1,z=P.isNumber(k)&&k>-1,B=fe=>P.hasOwnProp(y,fe)?y[fe]:void 0;let q=a||fetch;M=M?(M+"").toLowerCase():"text";let F=S6([S,O&&O.toAbortSignal()],A),Q=null;const G=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let ee,ye=null;const ke=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,y,Q);try{let fe;const Rt=B("auth");if(Rt){const J=P.getSafeProp(Rt,"username")||"",Le=P.getSafeProp(Rt,"password")||"";fe={username:J,password:Le}}if(T6(m)){const J=new URL(m,Bt.origin);if(!fe&&(J.username||J.password)){const Le=hw(J.username),$t=hw(J.password);fe={username:Le,password:$t}}(J.username||J.password)&&(J.username="",J.password="",m=J.href)}if(fe&&(L.delete("authorization"),L.set("Authorization","Basic "+btoa(_6((fe.username||"")+":"+(fe.password||""))))),R&&typeof m=="string"&&m.startsWith("data:")&&E6(m)>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,y,Q);if(z&&x!=="get"&&x!=="head"){const J=await v(w);if(typeof J=="number"&&isFinite(J)&&(ee=J,J>k))throw ke()}const vt=z&&(P.isReadableStream(w)||P.isStream(w)),V=(J,Le,$t)=>fw(J,dw,nn=>{if(z&&nn>k)throw ye=ke();Le&&Le(nn)},$t);if(h&&x!=="get"&&x!=="head"&&(T||vt)){if(ee=ee??await g(L,w),ee!==0||vt){let J=new i(m,{method:"POST",body:w,duplex:"half"}),Le;if(P.isFormData(w)&&(Le=J.headers.get("content-type"))&&L.setContentType(Le),J.body){const[$t,nn]=T&&lw(ee,Id(sw(T)))||[];w=V(J.body,$t,nn)}}}else if(vt&&!s&&f&&x!=="get"&&x!=="head")w=V(w);else if(vt&&s&&!h&&x!=="get"&&x!=="head")throw new W("Stream request bodies are not supported by the current fetch implementation",W.ERR_NOT_SUPPORT,y,Q);P.isString(E)||(E=E?"include":"omit");const se=s&&"credentials"in i.prototype;if(P.isFormData(w)){const J=L.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&L.delete("content-type")}L.set("User-Agent","axios/"+Zb,!1);const de={...N,signal:F,method:x.toUpperCase(),headers:$C(L.normalize()),body:w,duplex:"half",credentials:se?E:void 0};Q=s&&new i(m,de);let H=await(s?q(Q,N):q(m,de));const Xe=Kt.from(H.headers);if(R){const J=P.toFiniteNumber(Xe.getContentLength());if(J!=null&&J>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}const ge=p&&(M==="stream"||M==="response");if(p&&H.body&&(_||R||ge&&G)){const J={};["status","statusText","headers"].forEach(mn=>{J[mn]=H[mn]});const Le=P.toFiniteNumber(Xe.getContentLength()),[$t,nn]=_&&lw(Le,Id(sw(_),!0))||[];let mi=0;const $r=mn=>{if(R&&(mi=mn,mi>D))throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,y,Q);$t&&$t(mn)};H=new o(fw(H.body,dw,$r,()=>{nn&&nn(),G&&G()}),J)}M=M||"text";let Me=await b[P.findKey(b,M)||"text"](H,y);if(R&&!p&&!ge){let J;if(Me!=null&&(typeof Me.byteLength=="number"?J=Me.byteLength:typeof Me.size=="number"?J=Me.size:typeof Me=="string"&&(J=typeof r=="function"?new r().encode(Me).byteLength:Me.length)),typeof J=="number"&&J>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}return!ge&&G&&G(),await new Promise((J,Le)=>{qC(J,Le,{data:Me,headers:Kt.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:Q})})}catch(fe){if(G&&G(),F&&F.aborted&&F.reason instanceof W){const Rt=F.reason;throw Rt.config=y,Q&&(Rt.request=Q),fe!==Rt&&(Rt.cause=fe),Rt}throw ye?(Q&&!ye.request&&(ye.request=Q),ye):fe instanceof W?(Q&&!fe.request&&(fe.request=Q),fe):fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,y,Q,fe&&fe.response),{cause:fe.cause||fe}):W.from(fe,fe&&fe.code,y,Q,fe&&fe.response)}}},N6=new Map,YC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o=i.length,l=o,s,u,f=N6;for(;l--;)s=i[l],u=f.get(s),u===void 0&&f.set(s,u=l?new Map:C6(t)),f=u;return u};YC();const Jb={http:qL,xhr:x6,fetch:{get:YC}};P.forEach(Jb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const yw=e=>`- ${e}`,M6=e=>P.isFunction(e)||e===null||e===!1;function P6(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){r=e[o];let l;if(a=r,!M6(r)&&(a=Jb[(l=String(r)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${l}'`);if(a&&(P.isFunction(a)||(a=a.get(t))))break;i[l||"#"+o]=a}if(!a){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
`+o.map(yw).join(`
`):" "+yw(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const KC={getAdapter:P6,adapters:Jb};function am(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xc(null,e)}function mw(e){return am(e),e.headers=Kt.from(e.headers),e.data=rm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),KC.getAdapter(e.adapter||Kc.adapter,e)(e).then(function(r){am(e),e.response=r;try{r.data=rm.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Kt.from(r.headers),r},function(r){if(!HC(r)&&(am(e),r&&r.response)){e.response=r.response;try{r.response.data=rm.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Kt.from(r.response.headers)}return Promise.reject(r)})}const yp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vw={};yp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+Zb+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new W(a(o," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!vw[o]&&(vw[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};yp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function R6(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new W("option "+i+" must be "+s,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const id={assertOptions:R6,validators:yp},qt=id.validators;let Vi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new iw,response:new iw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const o=a.stack.indexOf(`
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!r.stack)r.stack=i;else if(i){const o=i.indexOf(`
`),l=o===-1?-1:i.indexOf(`
`,o+1),s=l===-1?"":i.slice(l+1);String(r.stack).endsWith(s)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=io(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&id.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean),legacyInterceptorReqResOrdering:qt.transitional(qt.boolean),advertiseZstdAcceptEncoding:qt.transitional(qt.boolean),validateStatusUndefinedResolves:qt.transitional(qt.boolean)},!1),a!=null&&(P.isFunction(a)?n.paramsSerializer={serialize:a}:id.assertOptions(a,{encode:qt.function,serialize:qt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),id.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Kt.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;s=s&&v.synchronous;const g=n.transitional||Qb;g&&g.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let f,c=0,h;if(!s){const b=[mw.bind(this),void 0];for(b.unshift(...l),b.push(...u),h=b.length,f=Promise.resolve(n);c<h;)f=f.then(b[c++],b[c++]);return f}h=l.length;let p=n;for(;c<h;){const b=l[c++],v=l[c++];try{p=b(p)}catch(g){v.call(this,g);break}}try{f=mw.call(this,p)}catch(b){return Promise.reject(b)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=io(this.defaults,t);const n=FC(t.baseURL,t.url,t.allowAbsoluteUrls,t);return BC(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){Vi.prototype[t]=function(n,r){return this.request(io(r||{},{method:t,url:n,data:r&&P.hasOwnProp(r,"data")?r.data:void 0}))}});P.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(io(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Vi.prototype[t]=n(),t!=="query"&&(Vi.prototype[t+"Form"]=n(!0))});let $6=class XC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new Xc(i,o,l),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 XC(function(a){t=a}),cancel:t}}};function D6(e){return function(n){return e.apply(null,n)}}function k6(e){return P.isObject(e)&&e.isAxiosError===!0}const tg={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(tg).forEach(([e,t])=>{tg[t]=e});function VC(e){const t=new Vi(e),n=AC(Vi.prototype.request,t);return P.extend(n,Vi.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return VC(io(e,a))},n}const ct=VC(Kc);ct.Axios=Vi;ct.CanceledError=Xc;ct.CancelToken=$6;ct.isCancel=HC;ct.VERSION=Zb;ct.toFormData=pp;ct.AxiosError=W;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=D6;ct.isAxiosError=k6;ct.mergeConfig=io;ct.AxiosHeaders=Kt;ct.formToJSON=e=>IC(P.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=KC.getAdapter;ct.HttpStatusCode=tg;ct.default=ct;const{Axios:Kce,AxiosError:Xce,CanceledError:Vce,isCancel:Qce,CancelToken:Wce,VERSION:Zce,all:Jce,Cancel:efe,isAxiosError:tfe,spread:nfe,toFormData:rfe,AxiosHeaders:afe,HttpStatusCode:ife,formToJSON:ofe,getAdapter:lfe,mergeConfig:sfe,create:ufe}=ct,Y=ct.create({baseURL:""});Y.interceptors.request.use(e=>{const t=localStorage.getItem("esn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});Y.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("esn_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const jt=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),L6=(e,t)=>Y.post("/api/auth/login",{username:e,password:t}),z6=()=>Y.get("/api/auth/me"),B6=e=>jt(Y.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),U6=()=>jt(Y.get("/api/tenants")),I6=e=>Y.delete(`/api/tenants/${e}`),H6=e=>jt(Y.get("/api/stores",{params:e})),q6=e=>jt(Y.post("/api/stores",e)),F6=(e,t)=>jt(Y.put(`/api/stores/${e}`,t)),G6=e=>Y.delete(`/api/stores/${e}`),Y6=e=>jt(Y.get("/api/templates",{params:e})),K6=e=>Y.delete(`/api/templates/${e}`),X6=e=>jt(Y.get("/api/pos-cvt",{params:e})),V6=e=>jt(Y.put(`/api/pos-cvt/${e}/process`)),Q6=e=>jt(Y.put(`/api/pos-cvt/${e}/ignore`)),W6=e=>jt(Y.get("/api/alarms",{params:e})),Z6=(e,t)=>jt(Y.put(`/api/alarms/${e}/resolve`,{resolution:t})),J6=e=>Y.delete(`/api/alarms/${e}`),ez=e=>jt(Y.get("/api/hcore",{params:e})),tz=(e,t)=>jt(Y.put(`/api/hcore/${e}/status`,{status:t})),nz=e=>jt(Y.get("/api/works",{params:e})),rz=e=>jt(Y.get("/api/firmware",{params:e})),az=e=>Y.delete(`/api/firmware/${e}`),iz=e=>jt(Y.get("/api/users",{params:e})),oz=e=>Y.delete(`/api/users/${e}`),lz=e=>jt(Y.get("/api/products",{params:e})),sz=e=>Y.delete(`/api/products/${e}`),uz=e=>jt(Y.post("/api/ai/analyze-alarm",e)),cz=e=>jt(Y.post("/api/ai/classify-pos",e));function fz(){const e=localStorage.getItem("esn_token");return j.useEffect(()=>{e&&z6().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("esn_role",n.role),n.username&&localStorage.setItem("esn_user",n.username),n.tenant&&localStorage.setItem("esn_tenant",n.tenant)}).catch(()=>{})},[e]),e?d.jsxs("div",{className:"flex h-screen bg-ink",children:[d.jsx(k5,{}),d.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[d.jsx(z5,{}),d.jsx("main",{className:"flex-1 overflow-auto p-6",children:d.jsx(M4,{})})]})]}):d.jsx(tC,{to:"/login",replace:!0})}const dz=(e,t)=>Y.post("/api/auth/verify",{verifyToken:e,code:t}),hz=e=>Y.post("/api/messages",e),pz=e=>Y.get("/api/messages/sent",{params:e}),yz=e=>Y.get(`/api/messages/sent/${e}`),mz=e=>Y.get("/api/messages/received",{params:e}),vz=e=>Y.get(`/api/messages/received/${e}`),gz=e=>Y.get("/api/schedules",{params:e}),bz=e=>Y.post("/api/schedules",e),xz=e=>Y.get(`/api/schedules/${e}`),Sz=e=>Y.delete(`/api/schedules/${e}`),wz=e=>Y.get("/api/worklogs",{params:e}),Oz=e=>Y.get("/api/worklogs/dashboard/progress",{params:e}),jz=e=>Y.post("/api/worklogs",e),Az=e=>Y.get(`/api/worklogs/${e}`),Ez=e=>Y.delete(`/api/worklogs/${e}`),_z=(e,t)=>Y.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Tz=e=>Y.get("/api/stats/personal-work",{params:e}),Cz=e=>Y.get("/api/stats/company-work",{params:e}),Nz=e=>Y.post("/api/auth/signup",e),Mz=e=>Y.post("/api/auth/find-id",e),Pz=e=>Y.post("/api/auth/reset-password",e),Rz=e=>Y.get("/api/system/roles",{params:e}),$z=e=>Y.post("/api/system/roles",e),Dz=(e,t)=>Y.put(`/api/system/roles/${e}`,t),kz=e=>Y.delete("/api/system/roles",{data:{ids:e}}),Lz=e=>Y.get("/api/system/role-menus",{params:e}),zz=e=>Y.get(`/api/system/roles/${e}/menus`),Bz=(e,t)=>Y.put(`/api/system/roles/${e}/menus`,{menus:t}),Uz=e=>Y.get("/api/system/codes",{params:e}),Iz=e=>Y.get(`/api/system/codes/${e}`),Hz=e=>Y.post("/api/system/codes",e),qz=(e,t)=>Y.put(`/api/system/codes/${e}`,t),Fz=e=>Y.delete(`/api/system/codes/${e}`),Gz=e=>Y.get("/api/system/menus",{params:e}),Yz=e=>Y.post("/api/system/menus",e),Kz=(e,t)=>Y.put(`/api/system/menus/${e}`,t),Xz=e=>Y.delete("/api/system/menus",{data:{ids:e}}),Vz=e=>Y.get("/api/system/programs",{params:e}),Qz=e=>Y.get("/api/system/depts",{params:e}),Wz=e=>Y.post("/api/system/depts",e),Zz=(e,t)=>Y.put(`/api/system/depts/${e}`,t),Jz=e=>Y.delete(`/api/system/depts/${e}`),e8=e=>Y.get("/api/system/companies",{params:e}),t8=e=>Y.post("/api/system/companies",e),n8=(e,t)=>Y.put(`/api/system/companies/${e}`,t),r8=e=>Y.delete("/api/system/companies",{data:{ids:e}});function a8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState("login"),[c,h]=j.useState(""),[p,b]=j.useState(""),[v,g]=j.useState("");function y(w){localStorage.setItem("esn_token",w),localStorage.setItem("esn_user",t),e("/dashboard")}async function m(w){var S;w.preventDefault(),s(!0),o("");try{const A=(S=(await L6(t,r)).data)==null?void 0:S.data;if((A==null?void 0:A.twofa)==="true")h(A.verifyToken),b(A.maskedEmail||""),f("verify");else{if(!(A!=null&&A.token))throw new Error("토큰 없음");y(A.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function x(w){var S,O;w.preventDefault(),s(!0),o("");try{const A=await dz(c,v);y((O=(S=A.data)==null?void 0:S.data)==null?void 0:O.token)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"zioinfo-esn"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"})]}),u==="login"?d.jsxs("form",{onSubmit:m,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:w=>n(w.target.value),placeholder:"admin",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),d.jsx("input",{type:"password",value:r,onChange:w=>a(w.target.value),placeholder:"••••••••",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"로그인 중...":"로그인"}),d.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 text-xs text-gray-400",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand transition-colors",children:"회원가입"}),d.jsx("span",{className:"text-edge",children:"|"}),d.jsx(cr,{to:"/find-id",className:"hover:text-brand transition-colors",children:"아이디 찾기"}),d.jsx("span",{className:"text-edge",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand transition-colors",children:"비밀번호 초기화"})]})]}):d.jsxs("form",{onSubmit:x,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:p?`${p} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),d.jsx("input",{inputMode:"numeric",maxLength:6,value:v,onChange:w=>g(w.target.value),placeholder:"000000",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white text-center tracking-[0.4em] placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"인증 중...":"인증하고 로그인"}),d.jsx("button",{type:"button",onClick:()=>{f("login"),g(""),o("")},className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]})})}function i8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(""),[u,f]=j.useState(""),[c,h]=j.useState(!1),[p,b]=j.useState(!1);async function v(g){var y;g.preventDefault(),b(!0),f("");try{const x=(y=(await Nz({username:t,password:r,displayName:i,email:l})).data)==null?void 0:y.data;h(!!(x!=null&&x.success)),f((x==null?void 0:x.message)||"처리되었습니다.")}catch{h(!1),f("가입 신청 처리 중 오류가 발생했습니다.")}finally{b(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"회원가입"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"관리자 승인 후 로그인할 수 있습니다."})]}),d.jsxs("form",{onSubmit:v,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:g=>n(g.target.value),placeholder:"아이디",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호 (4자 이상)"}),d.jsx("input",{type:"password",value:r,onChange:g=>a(g.target.value),placeholder:"••••••••",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),d.jsx("input",{value:i,onChange:g=>o(g.target.value),placeholder:"홍길동",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:l,onChange:g=>s(g.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),u&&d.jsx("p",{className:`text-xs ${c?"text-accent":"text-red-400"}`,children:u}),d.jsx("button",{type:"submit",disabled:p,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:p?"처리 중...":"가입 신청"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function o8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(null),[l,s]=j.useState(!1),[u,f]=j.useState(!1);async function c(h){var p;h.preventDefault(),f(!0),o(null),s(!1);try{const v=(p=(await Mz({displayName:t,email:r})).data)==null?void 0:p.data;v!=null&&v.found?o(v.maskedUsername):s(!0)}catch{s(!0)}finally{f(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"아이디 찾기"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"이름과 이메일로 아이디를 확인합니다."})]}),d.jsxs("form",{onSubmit:c,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"홍길동",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsxs("p",{className:"text-xs text-accent",children:["회원님의 아이디: ",d.jsx("span",{className:"font-mono font-bold tracking-wider",children:i})]}),l&&d.jsx("p",{className:"text-xs text-red-400",children:"일치하는 계정을 찾을 수 없습니다."}),d.jsx("button",{type:"submit",disabled:u,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:u?"확인 중...":"아이디 찾기"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function l8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState(!1);async function c(h){var p;h.preventDefault(),f(!0),o("");try{const v=(p=(await Pz({username:t,email:r})).data)==null?void 0:p.data;s(!!(v!=null&&v.success)),o((v==null?void 0:v.message)||"처리되었습니다.")}catch{s(!1),o("비밀번호 초기화 처리 중 오류가 발생했습니다.")}finally{f(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"비밀번호 초기화"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"임시 비밀번호를 이메일로 발송합니다."})]}),d.jsxs("form",{onSubmit:c,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"아이디",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:`text-xs ${l?"text-accent":"text-red-400"}`,children:i}),d.jsx("button",{type:"submit",disabled:u,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:u?"처리 중...":"임시 비밀번호 발송"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"})]})]})]})})}function QC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=QC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=QC(e))&&(r&&(r+=" "),r+=t);return r}var s8=Array.isArray,yn=s8,u8=typeof rf=="object"&&rf&&rf.Object===Object&&rf,WC=u8,c8=WC,f8=typeof self=="object"&&self&&self.Object===Object&&self,d8=c8||f8||Function("return this")(),Pr=d8,h8=Pr,p8=h8.Symbol,Vc=p8,gw=Vc,ZC=Object.prototype,y8=ZC.hasOwnProperty,m8=ZC.toString,Fs=gw?gw.toStringTag:void 0;function v8(e){var t=y8.call(e,Fs),n=e[Fs];try{e[Fs]=void 0;var r=!0}catch{}var a=m8.call(e);return r&&(t?e[Fs]=n:delete e[Fs]),a}var g8=v8,b8=Object.prototype,x8=b8.toString;function S8(e){return x8.call(e)}var w8=S8,bw=Vc,O8=g8,j8=w8,A8="[object Null]",E8="[object Undefined]",xw=bw?bw.toStringTag:void 0;function _8(e){return e==null?e===void 0?E8:A8:xw&&xw in Object(e)?O8(e):j8(e)}var ga=_8;function T8(e){return e!=null&&typeof e=="object"}var ba=T8,C8=ga,N8=ba,M8="[object Symbol]";function P8(e){return typeof e=="symbol"||N8(e)&&C8(e)==M8}var ws=P8,R8=yn,$8=ws,D8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k8=/^\w*$/;function L8(e,t){if(R8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$8(e)?!0:k8.test(e)||!D8.test(e)||t!=null&&e in Object(t)}var ex=L8;function z8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fi=z8;const Os=Ie(fi);var B8=ga,U8=fi,I8="[object AsyncFunction]",H8="[object Function]",q8="[object GeneratorFunction]",F8="[object Proxy]";function G8(e){if(!U8(e))return!1;var t=B8(e);return t==H8||t==q8||t==I8||t==F8}var tx=G8;const ue=Ie(tx);var Y8=Pr,K8=Y8["__core-js_shared__"],X8=K8,im=X8,Sw=function(){var e=/[^.]+$/.exec(im&&im.keys&&im.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function V8(e){return!!Sw&&Sw in e}var Q8=V8,W8=Function.prototype,Z8=W8.toString;function J8(e){if(e!=null){try{return Z8.call(e)}catch{}try{return e+""}catch{}}return""}var JC=J8,eB=tx,tB=Q8,nB=fi,rB=JC,aB=/[\\^$.*+?()[\]{}|]/g,iB=/^\[object .+?Constructor\]$/,oB=Function.prototype,lB=Object.prototype,sB=oB.toString,uB=lB.hasOwnProperty,cB=RegExp("^"+sB.call(uB).replace(aB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fB(e){if(!nB(e)||tB(e))return!1;var t=eB(e)?cB:iB;return t.test(rB(e))}var dB=fB;function hB(e,t){return e==null?void 0:e[t]}var pB=hB,yB=dB,mB=pB;function vB(e,t){var n=mB(e,t);return yB(n)?n:void 0}var bo=vB,gB=bo,bB=gB(Object,"create"),mp=bB,ww=mp;function xB(){this.__data__=ww?ww(null):{},this.size=0}var SB=xB;function wB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OB=wB,jB=mp,AB="__lodash_hash_undefined__",EB=Object.prototype,_B=EB.hasOwnProperty;function TB(e){var t=this.__data__;if(jB){var n=t[e];return n===AB?void 0:n}return _B.call(t,e)?t[e]:void 0}var CB=TB,NB=mp,MB=Object.prototype,PB=MB.hasOwnProperty;function RB(e){var t=this.__data__;return NB?t[e]!==void 0:PB.call(t,e)}var $B=RB,DB=mp,kB="__lodash_hash_undefined__";function LB(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=DB&&t===void 0?kB:t,this}var zB=LB,BB=SB,UB=OB,IB=CB,HB=$B,qB=zB;function js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}js.prototype.clear=BB;js.prototype.delete=UB;js.prototype.get=IB;js.prototype.has=HB;js.prototype.set=qB;var FB=js;function GB(){this.__data__=[],this.size=0}var YB=GB;function KB(e,t){return e===t||e!==e&&t!==t}var nx=KB,XB=nx;function VB(e,t){for(var n=e.length;n--;)if(XB(e[n][0],t))return n;return-1}var vp=VB,QB=vp,WB=Array.prototype,ZB=WB.splice;function JB(e){var t=this.__data__,n=QB(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ZB.call(t,n,1),--this.size,!0}var eU=JB,tU=vp;function nU(e){var t=this.__data__,n=tU(t,e);return n<0?void 0:t[n][1]}var rU=nU,aU=vp;function iU(e){return aU(this.__data__,e)>-1}var oU=iU,lU=vp;function sU(e,t){var n=this.__data__,r=lU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uU=sU,cU=YB,fU=eU,dU=rU,hU=oU,pU=uU;function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}As.prototype.clear=cU;As.prototype.delete=fU;As.prototype.get=dU;As.prototype.has=hU;As.prototype.set=pU;var gp=As,yU=bo,mU=Pr,vU=yU(mU,"Map"),rx=vU,Ow=FB,gU=gp,bU=rx;function xU(){this.size=0,this.__data__={hash:new Ow,map:new(bU||gU),string:new Ow}}var SU=xU;function wU(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var OU=wU,jU=OU;function AU(e,t){var n=e.__data__;return jU(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bp=AU,EU=bp;function _U(e){var t=EU(this,e).delete(e);return this.size-=t?1:0,t}var TU=_U,CU=bp;function NU(e){return CU(this,e).get(e)}var MU=NU,PU=bp;function RU(e){return PU(this,e).has(e)}var $U=RU,DU=bp;function kU(e,t){var n=DU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var LU=kU,zU=SU,BU=TU,UU=MU,IU=$U,HU=LU;function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=zU;Es.prototype.delete=BU;Es.prototype.get=UU;Es.prototype.has=IU;Es.prototype.set=HU;var ax=Es,eN=ax,qU="Expected a function";function ix(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qU);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ix.Cache||eN),n}ix.Cache=eN;var tN=ix;const FU=Ie(tN);var GU=tN,YU=500;function KU(e){var t=GU(e,function(r){return n.size===YU&&n.clear(),r}),n=t.cache;return t}var XU=KU,VU=XU,QU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WU=/\\(\\)?/g,ZU=VU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QU,function(n,r,a,i){t.push(a?i.replace(WU,"$1"):r||n)}),t}),JU=ZU;function eI(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ox=eI,jw=Vc,tI=ox,nI=yn,rI=ws,Aw=jw?jw.prototype:void 0,Ew=Aw?Aw.toString:void 0;function nN(e){if(typeof e=="string")return e;if(nI(e))return tI(e,nN)+"";if(rI(e))return Ew?Ew.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var aI=nN,iI=aI;function oI(e){return e==null?"":iI(e)}var rN=oI,lI=yn,sI=ex,uI=JU,cI=rN;function fI(e,t){return lI(e)?e:sI(e,t)?[e]:uI(cI(e))}var aN=fI,dI=ws;function hI(e){if(typeof e=="string"||dI(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var xp=hI,pI=aN,yI=xp;function mI(e,t){t=pI(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[yI(t[n++])];return n&&n==r?e:void 0}var lx=mI,vI=lx;function gI(e,t,n){var r=e==null?void 0:vI(e,t);return r===void 0?n:r}var iN=gI;const Nn=Ie(iN);function bI(e){return e==null}var xI=bI;const ve=Ie(xI);var SI=ga,wI=yn,OI=ba,jI="[object String]";function AI(e){return typeof e=="string"||!wI(e)&&OI(e)&&SI(e)==jI}var EI=AI;const oo=Ie(EI);var oN={exports:{}},De={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sx=Symbol.for("react.element"),ux=Symbol.for("react.portal"),Sp=Symbol.for("react.fragment"),wp=Symbol.for("react.strict_mode"),Op=Symbol.for("react.profiler"),jp=Symbol.for("react.provider"),Ap=Symbol.for("react.context"),_I=Symbol.for("react.server_context"),Ep=Symbol.for("react.forward_ref"),_p=Symbol.for("react.suspense"),Tp=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),Np=Symbol.for("react.lazy"),TI=Symbol.for("react.offscreen"),lN;lN=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sx:switch(e=e.type,e){case Sp:case Op:case wp:case _p:case Tp:return e;default:switch(e=e&&e.$$typeof,e){case _I:case Ap:case Ep:case Np:case Cp:case jp:return e;default:return t}}case ux:return t}}}De.ContextConsumer=Ap;De.ContextProvider=jp;De.Element=sx;De.ForwardRef=Ep;De.Fragment=Sp;De.Lazy=Np;De.Memo=Cp;De.Portal=ux;De.Profiler=Op;De.StrictMode=wp;De.Suspense=_p;De.SuspenseList=Tp;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return er(e)===Ap};De.isContextProvider=function(e){return er(e)===jp};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sx};De.isForwardRef=function(e){return er(e)===Ep};De.isFragment=function(e){return er(e)===Sp};De.isLazy=function(e){return er(e)===Np};De.isMemo=function(e){return er(e)===Cp};De.isPortal=function(e){return er(e)===ux};De.isProfiler=function(e){return er(e)===Op};De.isStrictMode=function(e){return er(e)===wp};De.isSuspense=function(e){return er(e)===_p};De.isSuspenseList=function(e){return er(e)===Tp};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sp||e===Op||e===wp||e===_p||e===Tp||e===TI||typeof e=="object"&&e!==null&&(e.$$typeof===Np||e.$$typeof===Cp||e.$$typeof===jp||e.$$typeof===Ap||e.$$typeof===Ep||e.$$typeof===lN||e.getModuleId!==void 0)};De.typeOf=er;oN.exports=De;var CI=oN.exports,NI=ga,MI=ba,PI="[object Number]";function RI(e){return typeof e=="number"||MI(e)&&NI(e)==PI}var sN=RI;const $I=Ie(sN);var DI=sN;function kI(e){return DI(e)&&e!=+e}var LI=kI;const Qc=Ie(LI);var Zt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return oo(t)&&t.indexOf("%")===t.length-1},K=function(t){return $I(t)&&!Qc(t)},zI=function(t){return ve(t)},wt=function(t){return K(t)||oo(t)},BI=0,Wc=function(t){var n=++BI;return"".concat(t||"").concat(n)},Jt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!oo(t))return r;var i;if(Mi(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Qc(i)&&(i=r),a&&i>n&&(i=n),i},Lo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},UI=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Ea=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function ng(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Nn(r,t))===n})}var II=function(t,n){return K(t)&&K(n)?t-n:oo(t)&&oo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function sl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function rg(e){"@babel/helpers - typeof";return rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rg(e)}var HI=["viewBox","children"],qI=["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"],_w=["points","pathLength"],om={svg:HI,polygon:_w,polyline:_w},cx=["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"],qd=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Os(r))return null;var a={};return Object.keys(r).forEach(function(i){cx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},FI=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Os(t)||rg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];cx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=FI(o,n,r))}),a},GI=["children"],YI=["children"];function Tw(e,t){if(e==null)return{};var n=KI(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Cw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ra=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Nw=null,lm=null,fx=function e(t){if(t===Nw&&Array.isArray(lm))return lm;var n=[];return j.Children.forEach(t,function(r){ve(r)||(CI.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),lm=n,Nw=t,n};function Wn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return ra(a)}):r=[ra(t)],fx(e).forEach(function(a){var i=Nn(a,"type.displayName")||Nn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function bn(e,t){var n=Wn(e,t);return n&&n[0]}var Mw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!K(r)||r<=0||!K(a)||a<=0)},XI=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],VI=function(t){return t&&t.type&&oo(t.type)&&XI.indexOf(t.type)>=0},QI=function(t,n,r,a){var i,o=(i=om==null?void 0:om[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ue(t)&&(a&&o.includes(n)||qI.includes(n))||r&&cx.includes(n)},oe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(j.isValidElement(t)&&(a=t.props),!Os(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;QI((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},ag=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Pw(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],o=n[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!Pw(i,o))return!1}return!0},Pw=function(t,n){if(ve(t)&&ve(n))return!0;if(!ve(t)&&!ve(n)){var r=t.props||{},a=r.children,i=Tw(r,GI),o=n.props||{},l=o.children,s=Tw(o,YI);return a&&l?sl(i,s)&&ag(a,l):!a&&!l?sl(i,s):!1}return!1},Rw=function(t,n){var r=[],a={};return fx(t).forEach(function(i,o){if(VI(i))r.push(i);else if(i){var l=ra(i.type),s=n[l]||{},u=s.handler,f=s.once;if(u&&(!f||!a[l])){var c=u(i,l,o);r.push(c),a[l]=!0}}}),r},WI=function(t){var n=t&&t.type;return n&&Cw[n]?Cw[n]:null},ZI=function(t,n){return fx(n).indexOf(t)},JI=["children","width","height","viewBox","className","style","title","desc"];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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ig.apply(this,arguments)}function e7(e,t){if(e==null)return{};var n=t7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function og(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,s=e.desc,u=e7(e,JI),f=a||{width:n,height:r,x:0,y:0},c=me("recharts-surface",i);return $.createElement("svg",ig({},oe(u,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),$.createElement("title",null,l),$.createElement("desc",null,s),t)}var n7=["children","className"];function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lg.apply(this,arguments)}function r7(e,t){if(e==null)return{};var n=a7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $e=$.forwardRef(function(e,t){var n=e.children,r=e.className,a=r7(e,n7),i=me("recharts-layer",r);return $.createElement("g",lg({className:i},oe(a,!0),{ref:t}),n)}),aa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function i7(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var o7=i7,l7=o7;function s7(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:l7(e,t,n)}var u7=s7,c7="\\ud800-\\udfff",f7="\\u0300-\\u036f",d7="\\ufe20-\\ufe2f",h7="\\u20d0-\\u20ff",p7=f7+d7+h7,y7="\\ufe0e\\ufe0f",m7="\\u200d",v7=RegExp("["+m7+c7+p7+y7+"]");function g7(e){return v7.test(e)}var uN=g7;function b7(e){return e.split("")}var x7=b7,cN="\\ud800-\\udfff",S7="\\u0300-\\u036f",w7="\\ufe20-\\ufe2f",O7="\\u20d0-\\u20ff",j7=S7+w7+O7,A7="\\ufe0e\\ufe0f",E7="["+cN+"]",sg="["+j7+"]",ug="\\ud83c[\\udffb-\\udfff]",_7="(?:"+sg+"|"+ug+")",fN="[^"+cN+"]",dN="(?:\\ud83c[\\udde6-\\uddff]){2}",hN="[\\ud800-\\udbff][\\udc00-\\udfff]",T7="\\u200d",pN=_7+"?",yN="["+A7+"]?",C7="(?:"+T7+"(?:"+[fN,dN,hN].join("|")+")"+yN+pN+")*",N7=yN+pN+C7,M7="(?:"+[fN+sg+"?",sg,dN,hN,E7].join("|")+")",P7=RegExp(ug+"(?="+ug+")|"+M7+N7,"g");function R7(e){return e.match(P7)||[]}var $7=R7,D7=x7,k7=uN,L7=$7;function z7(e){return k7(e)?L7(e):D7(e)}var B7=z7,U7=u7,I7=uN,H7=B7,q7=rN;function F7(e){return function(t){t=q7(t);var n=I7(t)?H7(t):void 0,r=n?n[0]:t.charAt(0),a=n?U7(n,1).join(""):t.slice(1);return r[e]()+a}}var G7=F7,Y7=G7,K7=Y7("toUpperCase"),X7=K7;const Mp=Ie(X7);function Ge(e){return function(){return e}}const mN=Math.cos,Fd=Math.sin,mr=Math.sqrt,Gd=Math.PI,Pp=2*Gd,cg=Math.PI,fg=2*cg,Ai=1e-6,V7=fg-Ai;function vN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Q7(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vN;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class W7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vN:Q7(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,s=r-t,u=a-n,f=o-t,c=l-n,h=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ai)if(!(Math.abs(c*s-u*f)>Ai)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,b=a-l,v=s*s+u*u,g=p*p+b*b,y=Math.sqrt(v),m=Math.sqrt(h),x=i*Math.tan((cg-Math.acos((v+h-g)/(2*y*m)))/2),w=x/m,S=x/y;Math.abs(w-1)>Ai&&this._append`L${t+w*f},${n+w*c}`,this._append`A${i},${i},0,0,${+(c*p>f*b)},${this._x1=t+S*s},${this._y1=n+S*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,f=n+s,c=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ai||Math.abs(this._y1-f)>Ai)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%fg+fg),h>V7?this._append`A${r},${r},0,1,${c},${t-l},${n-s}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:h>Ai&&this._append`A${r},${r},0,${+(h>=cg)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function dx(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 W7(t)}function hx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gN(e){this._context=e}gN.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 Rp(e){return new gN(e)}function bN(e){return e[0]}function xN(e){return e[1]}function SN(e,t){var n=Ge(!0),r=null,a=Rp,i=null,o=dx(l);e=typeof e=="function"?e:e===void 0?bN:Ge(e),t=typeof t=="function"?t:t===void 0?xN:Ge(t);function l(s){var u,f=(s=hx(s)).length,c,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=f;++u)!(u<f&&n(c=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,u,s),+t(c,u,s));if(p)return i=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ge(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ge(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ge(!!s),l):n},l.curve=function(s){return arguments.length?(a=s,r!=null&&(i=a(r)),l):a},l.context=function(s){return arguments.length?(s==null?r=i=null:i=a(r=s),l):r},l}function jf(e,t,n){var r=null,a=Ge(!0),i=null,o=Rp,l=null,s=dx(u);e=typeof e=="function"?e:e===void 0?bN:Ge(+e),t=typeof t=="function"?t:Ge(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?xN:Ge(+n);function u(c){var h,p,b,v=(c=hx(c)).length,g,y=!1,m,x=new Array(v),w=new Array(v);for(i==null&&(l=o(m=s())),h=0;h<=v;++h){if(!(h<v&&a(g=c[h],h,c))===y)if(y=!y)p=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=h-1;b>=p;--b)l.point(x[b],w[b]);l.lineEnd(),l.areaEnd()}y&&(x[h]=+e(g,h,c),w[h]=+t(g,h,c),l.point(r?+r(g,h,c):x[h],n?+n(g,h,c):w[h]))}if(m)return l=null,m+""||null}function f(){return SN().defined(a).curve(o).context(i)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ge(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ge(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ge(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ge(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ge(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ge(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(a=typeof c=="function"?c:Ge(!!c),u):a},u.curve=function(c){return arguments.length?(o=c,i!=null&&(l=o(i)),u):o},u.context=function(c){return arguments.length?(c==null?i=l=null:l=o(i=c),u):i},u}class wN{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 Z7(e){return new wN(e,!0)}function J7(e){return new wN(e,!1)}const px={draw(e,t){const n=mr(t/Gd);e.moveTo(n,0),e.arc(0,0,n,0,Pp)}},e9={draw(e,t){const n=mr(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()}},ON=mr(1/3),t9=ON*2,n9={draw(e,t){const n=mr(t/t9),r=n*ON;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},r9={draw(e,t){const n=mr(t),r=-n/2;e.rect(r,r,n,n)}},a9=.8908130915292852,jN=Fd(Gd/10)/Fd(7*Gd/10),i9=Fd(Pp/10)*jN,o9=-mN(Pp/10)*jN,l9={draw(e,t){const n=mr(t*a9),r=i9*n,a=o9*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Pp*i/5,l=mN(o),s=Fd(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},sm=mr(3),s9={draw(e,t){const n=-mr(t/(sm*3));e.moveTo(0,n*2),e.lineTo(-sm*n,-n),e.lineTo(sm*n,-n),e.closePath()}},kn=-.5,Ln=mr(3)/2,dg=1/mr(12),u9=(dg/2+1)*3,c9={draw(e,t){const n=mr(t/u9),r=n/2,a=n*dg,i=r,o=n*dg+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(kn*r-Ln*a,Ln*r+kn*a),e.lineTo(kn*i-Ln*o,Ln*i+kn*o),e.lineTo(kn*l-Ln*s,Ln*l+kn*s),e.lineTo(kn*r+Ln*a,kn*a-Ln*r),e.lineTo(kn*i+Ln*o,kn*o-Ln*i),e.lineTo(kn*l+Ln*s,kn*s-Ln*l),e.closePath()}};function f9(e,t){let n=null,r=dx(a);e=typeof e=="function"?e:Ge(e||px),t=typeof t=="function"?t:Ge(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ge(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ge(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Yd(){}function Kd(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 AN(e){this._context=e}AN.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:Kd(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:Kd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function d9(e){return new AN(e)}function EN(e){this._context=e}EN.prototype={areaStart:Yd,areaEnd:Yd,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:Kd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h9(e){return new EN(e)}function _N(e){this._context=e}_N.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:Kd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function p9(e){return new _N(e)}function TN(e){this._context=e}TN.prototype={areaStart:Yd,areaEnd:Yd,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 y9(e){return new TN(e)}function $w(e){return e<0?-1:1}function Dw(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return($w(i)+$w(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function kw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function um(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Xd(e){this._context=e}Xd.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:um(this,this._t0,kw(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,um(this,kw(this,n=Dw(this,e,t)),n);break;default:um(this,this._t0,n=Dw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function CN(e){this._context=new NN(e)}(CN.prototype=Object.create(Xd.prototype)).point=function(e,t){Xd.prototype.point.call(this,t,e)};function NN(e){this._context=e}NN.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function m9(e){return new Xd(e)}function v9(e){return new CN(e)}function MN(e){this._context=e}MN.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=Lw(e),a=Lw(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(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 Lw(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function g9(e){return new MN(e)}function $p(e,t){this._context=e,this._t=t}$p.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 b9(e){return new $p(e,.5)}function x9(e){return new $p(e,0)}function S9(e){return new $p(e,1)}function zl(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function hg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function w9(e,t){return e[t]}function O9(e){const t=[];return t.key=e,t}function j9(){var e=Ge([]),t=hg,n=zl,r=w9;function a(i){var o=Array.from(e.apply(this,arguments),O9),l,s=o.length,u=-1,f;for(const c of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(c,o[l].key,u,i)]).data=c;for(l=0,f=hx(t(o));l<s;++l)o[f[l]].index=l;return n(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ge(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ge(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?hg:typeof i=="function"?i:Ge(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??zl,a):n},a}function A9(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,o;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}zl(e,t)}}function E9(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}zl(e,t)}}function _9(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r<i;++r){for(var l=0,s=0,u=0;l<o;++l){for(var f=e[t[l]],c=f[r][1]||0,h=f[r-1][1]||0,p=(c-h)/2,b=0;b<l;++b){var v=e[t[b]],g=v[r][1]||0,y=v[r-1][1]||0;p+=g-y}s+=c,u+=p*c}a[r-1][1]+=a[r-1][0]=n,s&&(n-=u/s)}a[r-1][1]+=a[r-1][0]=n,zl(e,t)}}function Gu(e){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}var T9=["type","size","sizeType"];function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pg.apply(this,arguments)}function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){C9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C9(e,t,n){return t=N9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N9(e){var t=M9(e,"string");return Gu(t)=="symbol"?t:t+""}function M9(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P9(e,t){if(e==null)return{};var n=R9(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var PN={symbolCircle:px,symbolCross:e9,symbolDiamond:n9,symbolSquare:r9,symbolStar:l9,symbolTriangle:s9,symbolWye:c9},$9=Math.PI/180,D9=function(t){var n="symbol".concat(Mp(t));return PN[n]||px},k9=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*$9;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},L9=function(t,n){PN["symbol".concat(Mp(t))]=n},yx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,s=P9(t,T9),u=Bw(Bw({},s),{},{type:r,size:i,sizeType:l}),f=function(){var g=D9(r),y=f9().type(g).size(k9(i,l,r));return y()},c=u.className,h=u.cx,p=u.cy,b=oe(u,!0);return h===+h&&p===+p&&i===+i?$.createElement("path",pg({},b,{className:me("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};yx.registerSymbol=L9;function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yg.apply(this,arguments)}function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function z9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(n),!0).forEach(function(r){Yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$N(r.key),r)}}function I9(e,t,n){return t&&U9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function H9(e,t,n){return t=Vd(t),q9(e,RN()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function q9(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F9(e)}function F9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RN=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function G9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mg(e,t)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},mg(e,t)}function Yu(e,t,n){return t=$N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e){var t=Y9(e,"string");return Bl(t)=="symbol"?t:t+""}function Y9(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zn=32,mx=function(e){function t(){return B9(this,t),H9(this,t,arguments)}return G9(t,e),I9(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=zn/2,o=zn/6,l=zn/3,s=r.inactive?a:r.color;if(r.type==="plainline")return $.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:zn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return $.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
            H`).concat(zn,"M").concat(2*l,",").concat(i,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return $.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(zn/8,"h").concat(zn,"v").concat(zn*3/4,"h").concat(-zn,"z"),className:"recharts-legend-icon"});if($.isValidElement(r.legendIcon)){var u=z9({},r);return delete u.legendIcon,$.cloneElement(r.legendIcon,u)}return $.createElement(yx,{fill:s,cx:i,cy:i,size:zn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,s=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:zn,height:zn},c={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,b){var v=p.formatter||s,g=me(Yu(Yu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=ue(p.value)?null:p.value;aa(!ue(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var m=p.inactive?u:p.color;return $.createElement("li",yg({className:g,style:c,key:"legend-item-".concat(b)},lo(r.props,p,b)),$.createElement(og,{width:o,height:o,viewBox:f,style:h},r.renderIcon(p)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},v?v(y,p,b):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Yu(mx,"displayName","Legend");Yu(mx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var K9=gp;function X9(){this.__data__=new K9,this.size=0}var V9=X9;function Q9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var W9=Q9;function Z9(e){return this.__data__.get(e)}var J9=Z9;function eH(e){return this.__data__.has(e)}var tH=eH,nH=gp,rH=rx,aH=ax,iH=200;function oH(e,t){var n=this.__data__;if(n instanceof nH){var r=n.__data__;if(!rH||r.length<iH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new aH(r)}return n.set(e,t),this.size=n.size,this}var lH=oH,sH=gp,uH=V9,cH=W9,fH=J9,dH=tH,hH=lH;function _s(e){var t=this.__data__=new sH(e);this.size=t.size}_s.prototype.clear=uH;_s.prototype.delete=cH;_s.prototype.get=fH;_s.prototype.has=dH;_s.prototype.set=hH;var DN=_s,pH="__lodash_hash_undefined__";function yH(e){return this.__data__.set(e,pH),this}var mH=yH;function vH(e){return this.__data__.has(e)}var gH=vH,bH=ax,xH=mH,SH=gH;function Qd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bH;++t<n;)this.add(e[t])}Qd.prototype.add=Qd.prototype.push=xH;Qd.prototype.has=SH;var kN=Qd;function wH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var LN=wH;function OH(e,t){return e.has(t)}var zN=OH,jH=kN,AH=LN,EH=zN,_H=1,TH=2;function CH(e,t,n,r,a,i){var o=n&_H,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=n&TH?new jH:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var b=e[c],v=t[c];if(r)var g=o?r(v,b,c,t,e,i):r(b,v,c,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!AH(t,function(y,m){if(!EH(p,m)&&(b===y||a(b,y,n,r,i)))return p.push(m)})){h=!1;break}}else if(!(b===v||a(b,v,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var BN=CH,NH=Pr,MH=NH.Uint8Array,PH=MH;function RH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var $H=RH;function DH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var vx=DH,Iw=Vc,Hw=PH,kH=nx,LH=BN,zH=$H,BH=vx,UH=1,IH=2,HH="[object Boolean]",qH="[object Date]",FH="[object Error]",GH="[object Map]",YH="[object Number]",KH="[object RegExp]",XH="[object Set]",VH="[object String]",QH="[object Symbol]",WH="[object ArrayBuffer]",ZH="[object DataView]",qw=Iw?Iw.prototype:void 0,cm=qw?qw.valueOf:void 0;function JH(e,t,n,r,a,i,o){switch(n){case ZH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case WH:return!(e.byteLength!=t.byteLength||!i(new Hw(e),new Hw(t)));case HH:case qH:case YH:return kH(+e,+t);case FH:return e.name==t.name&&e.message==t.message;case KH:case VH:return e==t+"";case GH:var l=zH;case XH:var s=r&UH;if(l||(l=BH),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=IH,o.set(e,t);var f=LH(l(e),l(t),r,a,i,o);return o.delete(e),f;case QH:if(cm)return cm.call(e)==cm.call(t)}return!1}var eq=JH;function tq(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var UN=tq,nq=UN,rq=yn;function aq(e,t,n){var r=t(e);return rq(e)?r:nq(r,n(e))}var iq=aq;function oq(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var lq=oq;function sq(){return[]}var uq=sq,cq=lq,fq=uq,dq=Object.prototype,hq=dq.propertyIsEnumerable,Fw=Object.getOwnPropertySymbols,pq=Fw?function(e){return e==null?[]:(e=Object(e),cq(Fw(e),function(t){return hq.call(e,t)}))}:fq,yq=pq;function mq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vq=mq,gq=ga,bq=ba,xq="[object Arguments]";function Sq(e){return bq(e)&&gq(e)==xq}var wq=Sq,Gw=wq,Oq=ba,IN=Object.prototype,jq=IN.hasOwnProperty,Aq=IN.propertyIsEnumerable,Eq=Gw(function(){return arguments}())?Gw:function(e){return Oq(e)&&jq.call(e,"callee")&&!Aq.call(e,"callee")},gx=Eq,Wd={exports:{}};function _q(){return!1}var Tq=_q;Wd.exports;(function(e,t){var n=Pr,r=Tq,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Wd,Wd.exports);var HN=Wd.exports,Cq=9007199254740991,Nq=/^(?:0|[1-9]\d*)$/;function Mq(e,t){var n=typeof e;return t=t??Cq,!!t&&(n=="number"||n!="symbol"&&Nq.test(e))&&e>-1&&e%1==0&&e<t}var bx=Mq,Pq=9007199254740991;function Rq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pq}var xx=Rq,$q=ga,Dq=xx,kq=ba,Lq="[object Arguments]",zq="[object Array]",Bq="[object Boolean]",Uq="[object Date]",Iq="[object Error]",Hq="[object Function]",qq="[object Map]",Fq="[object Number]",Gq="[object Object]",Yq="[object RegExp]",Kq="[object Set]",Xq="[object String]",Vq="[object WeakMap]",Qq="[object ArrayBuffer]",Wq="[object DataView]",Zq="[object Float32Array]",Jq="[object Float64Array]",eF="[object Int8Array]",tF="[object Int16Array]",nF="[object Int32Array]",rF="[object Uint8Array]",aF="[object Uint8ClampedArray]",iF="[object Uint16Array]",oF="[object Uint32Array]",Qe={};Qe[Zq]=Qe[Jq]=Qe[eF]=Qe[tF]=Qe[nF]=Qe[rF]=Qe[aF]=Qe[iF]=Qe[oF]=!0;Qe[Lq]=Qe[zq]=Qe[Qq]=Qe[Bq]=Qe[Wq]=Qe[Uq]=Qe[Iq]=Qe[Hq]=Qe[qq]=Qe[Fq]=Qe[Gq]=Qe[Yq]=Qe[Kq]=Qe[Xq]=Qe[Vq]=!1;function lF(e){return kq(e)&&Dq(e.length)&&!!Qe[$q(e)]}var sF=lF;function uF(e){return function(t){return e(t)}}var qN=uF,Zd={exports:{}};Zd.exports;(function(e,t){var n=WC,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Zd,Zd.exports);var cF=Zd.exports,fF=sF,dF=qN,Yw=cF,Kw=Yw&&Yw.isTypedArray,hF=Kw?dF(Kw):fF,FN=hF,pF=vq,yF=gx,mF=yn,vF=HN,gF=bx,bF=FN,xF=Object.prototype,SF=xF.hasOwnProperty;function wF(e,t){var n=mF(e),r=!n&&yF(e),a=!n&&!r&&vF(e),i=!n&&!r&&!a&&bF(e),o=n||r||a||i,l=o?pF(e.length,String):[],s=l.length;for(var u in e)(t||SF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||gF(u,s)))&&l.push(u);return l}var OF=wF,jF=Object.prototype;function AF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jF;return e===n}var EF=AF;function _F(e,t){return function(n){return e(t(n))}}var GN=_F,TF=GN,CF=TF(Object.keys,Object),NF=CF,MF=EF,PF=NF,RF=Object.prototype,$F=RF.hasOwnProperty;function DF(e){if(!MF(e))return PF(e);var t=[];for(var n in Object(e))$F.call(e,n)&&n!="constructor"&&t.push(n);return t}var kF=DF,LF=tx,zF=xx;function BF(e){return e!=null&&zF(e.length)&&!LF(e)}var Dp=BF,UF=OF,IF=kF,HF=Dp;function qF(e){return HF(e)?UF(e):IF(e)}var Sx=qF,FF=iq,GF=yq,YF=Sx;function KF(e){return FF(e,YF,GF)}var XF=KF,Xw=XF,VF=1,QF=Object.prototype,WF=QF.hasOwnProperty;function ZF(e,t,n,r,a,i){var o=n&VF,l=Xw(e),s=l.length,u=Xw(t),f=u.length;if(s!=f&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in t:WF.call(t,h)))return!1}var p=i.get(e),b=i.get(t);if(p&&b)return p==t&&b==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++c<s;){h=l[c];var y=e[h],m=t[h];if(r)var x=o?r(m,y,h,t,e,i):r(y,m,h,e,t,i);if(!(x===void 0?y===m||a(y,m,n,r,i):x)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var JF=ZF,eG=bo,tG=Pr,nG=eG(tG,"DataView"),rG=nG,aG=bo,iG=Pr,oG=aG(iG,"Promise"),lG=oG,sG=bo,uG=Pr,cG=sG(uG,"Set"),YN=cG,fG=bo,dG=Pr,hG=fG(dG,"WeakMap"),pG=hG,vg=rG,gg=rx,bg=lG,xg=YN,Sg=pG,KN=ga,Ts=JC,Vw="[object Map]",yG="[object Object]",Qw="[object Promise]",Ww="[object Set]",Zw="[object WeakMap]",Jw="[object DataView]",mG=Ts(vg),vG=Ts(gg),gG=Ts(bg),bG=Ts(xg),xG=Ts(Sg),Ei=KN;(vg&&Ei(new vg(new ArrayBuffer(1)))!=Jw||gg&&Ei(new gg)!=Vw||bg&&Ei(bg.resolve())!=Qw||xg&&Ei(new xg)!=Ww||Sg&&Ei(new Sg)!=Zw)&&(Ei=function(e){var t=KN(e),n=t==yG?e.constructor:void 0,r=n?Ts(n):"";if(r)switch(r){case mG:return Jw;case vG:return Vw;case gG:return Qw;case bG:return Ww;case xG:return Zw}return t});var SG=Ei,fm=DN,wG=BN,OG=eq,jG=JF,eO=SG,tO=yn,nO=HN,AG=FN,EG=1,rO="[object Arguments]",aO="[object Array]",Af="[object Object]",_G=Object.prototype,iO=_G.hasOwnProperty;function TG(e,t,n,r,a,i){var o=tO(e),l=tO(t),s=o?aO:eO(e),u=l?aO:eO(t);s=s==rO?Af:s,u=u==rO?Af:u;var f=s==Af,c=u==Af,h=s==u;if(h&&nO(e)){if(!nO(t))return!1;o=!0,f=!1}if(h&&!f)return i||(i=new fm),o||AG(e)?wG(e,t,n,r,a,i):OG(e,t,s,n,r,a,i);if(!(n&EG)){var p=f&&iO.call(e,"__wrapped__"),b=c&&iO.call(t,"__wrapped__");if(p||b){var v=p?e.value():e,g=b?t.value():t;return i||(i=new fm),a(v,g,n,r,i)}}return h?(i||(i=new fm),jG(e,t,n,r,a,i)):!1}var CG=TG,NG=CG,oO=ba;function XN(e,t,n,r,a){return e===t?!0:e==null||t==null||!oO(e)&&!oO(t)?e!==e&&t!==t:NG(e,t,n,r,XN,a)}var wx=XN,MG=DN,PG=wx,RG=1,$G=2;function DG(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var s=l[0],u=e[s],f=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var c=new MG;if(r)var h=r(u,f,s,e,t,c);if(!(h===void 0?PG(f,u,RG|$G,r,c):h))return!1}}return!0}var kG=DG,LG=fi;function zG(e){return e===e&&!LG(e)}var VN=zG,BG=VN,UG=Sx;function IG(e){for(var t=UG(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,BG(a)]}return t}var HG=IG;function qG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var QN=qG,FG=kG,GG=HG,YG=QN;function KG(e){var t=GG(e);return t.length==1&&t[0][2]?YG(t[0][0],t[0][1]):function(n){return n===e||FG(n,e,t)}}var XG=KG;function VG(e,t){return e!=null&&t in Object(e)}var QG=VG,WG=aN,ZG=gx,JG=yn,eY=bx,tY=xx,nY=xp;function rY(e,t,n){t=WG(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=nY(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&tY(a)&&eY(o,a)&&(JG(e)||ZG(e)))}var aY=rY,iY=QG,oY=aY;function lY(e,t){return e!=null&&oY(e,t,iY)}var sY=lY,uY=wx,cY=iN,fY=sY,dY=ex,hY=VN,pY=QN,yY=xp,mY=1,vY=2;function gY(e,t){return dY(e)&&hY(t)?pY(yY(e),t):function(n){var r=cY(n,e);return r===void 0&&r===t?fY(n,e):uY(t,r,mY|vY)}}var bY=gY;function xY(e){return e}var Cs=xY;function SY(e){return function(t){return t==null?void 0:t[e]}}var wY=SY,OY=lx;function jY(e){return function(t){return OY(t,e)}}var AY=jY,EY=wY,_Y=AY,TY=ex,CY=xp;function NY(e){return TY(e)?EY(CY(e)):_Y(e)}var MY=NY,PY=XG,RY=bY,$Y=Cs,DY=yn,kY=MY;function LY(e){return typeof e=="function"?e:e==null?$Y:typeof e=="object"?DY(e)?RY(e[0],e[1]):PY(e):kY(e)}var di=LY;function zY(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var BY=zY;function UY(e){return e!==e}var IY=UY;function HY(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var qY=HY,FY=BY,GY=IY,YY=qY;function KY(e,t,n){return t===t?YY(e,t,n):FY(e,GY,n)}var XY=KY,VY=XY;function QY(e,t){var n=e==null?0:e.length;return!!n&&VY(e,t,0)>-1}var WY=QY;function ZY(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var JY=ZY;function eK(){}var tK=eK,dm=YN,nK=tK,rK=vx,aK=1/0,iK=dm&&1/rK(new dm([,-0]))[1]==aK?function(e){return new dm(e)}:nK,oK=iK,lK=kN,sK=WY,uK=JY,cK=zN,fK=oK,dK=vx,hK=200;function pK(e,t,n){var r=-1,a=sK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=uK;else if(i>=hK){var u=t?null:fK(e);if(u)return dK(u);o=!1,a=cK,s=new lK}else s=t?[]:l;e:for(;++r<i;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,o&&c===c){for(var h=s.length;h--;)if(s[h]===c)continue e;t&&s.push(c),l.push(f)}else a(s,c,n)||(s!==l&&s.push(c),l.push(f))}return l}var yK=pK,mK=di,vK=yK;function gK(e,t){return e&&e.length?vK(e,mK(t)):[]}var bK=gK;const lO=Ie(bK);function WN(e,t,n){return t===!0?lO(e,n):ue(t)?lO(e,t):e}function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}var xK=["ref"];function sO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(n),!0).forEach(function(r){kp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JN(r.key),r)}}function wK(e,t,n){return t&&uO(e.prototype,t),n&&uO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OK(e,t,n){return t=Jd(t),jK(e,ZN()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function jK(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AK(e)}function AK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZN=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jd(e)}function EK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wg(e,t)}function kp(e,t,n){return t=JN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e){var t=_K(e,"string");return Ul(t)=="symbol"?t:t+""}function _K(e,t){if(Ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function TK(e,t){if(e==null)return{};var n=CK(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NK(e){return e.value}function MK(e,t){if($.isValidElement(e))return $.cloneElement(e,t);if(typeof e=="function")return $.createElement(e,t);t.ref;var n=TK(t,xK);return $.createElement(mx,n)}var cO=1,ul=function(e){function t(){var n;SK(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=OK(this,t,[].concat(a)),kp(n,"lastBoundingBox",{width:-1,height:-1}),n}return EK(t,e),wK(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>cO||Math.abs(a.height-this.lastBoundingBox.height)>cO)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Br({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,s=a.margin,u=a.chartWidth,f=a.chartHeight,c,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((f||0)-b.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Br(Br({},c),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,o=a.width,l=a.height,s=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,c=Br(Br({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return $.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},MK(i,Br(Br({},this.props),{},{payload:WN(f,u,NK)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Br(Br({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&K(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(j.PureComponent);kp(ul,"displayName","Legend");kp(ul,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var fO=Vc,PK=gx,RK=yn,dO=fO?fO.isConcatSpreadable:void 0;function $K(e){return RK(e)||PK(e)||!!(dO&&e&&e[dO])}var DK=$K,kK=UN,LK=DK;function eM(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=LK),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?eM(l,t-1,n,r,a):kK(a,l):r||(a[a.length]=l)}return a}var tM=eM;function zK(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++a];if(n(i[s],s,i)===!1)break}return t}}var BK=zK,UK=BK,IK=UK(),HK=IK,qK=HK,FK=Sx;function GK(e,t){return e&&qK(e,t,FK)}var nM=GK,YK=Dp;function KK(e,t){return function(n,r){if(n==null)return n;if(!YK(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var XK=KK,VK=nM,QK=XK,WK=QK(VK),Ox=WK,ZK=Ox,JK=Dp;function eX(e,t){var n=-1,r=JK(e)?Array(e.length):[];return ZK(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var rM=eX;function tX(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var nX=tX,hO=ws;function rX(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=hO(e),o=t!==void 0,l=t===null,s=t===t,u=hO(t);if(!l&&!u&&!i&&e>t||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!s)return-1}return 0}var aX=rX,iX=aX;function oX(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=iX(a[r],i[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var lX=oX,hm=ox,sX=lx,uX=di,cX=rM,fX=nX,dX=qN,hX=lX,pX=Cs,yX=yn;function mX(e,t,n){t.length?t=hm(t,function(i){return yX(i)?function(o){return sX(o,i.length===1?i[0]:i)}:i}):t=[pX];var r=-1;t=hm(t,dX(uX));var a=cX(e,function(i,o,l){var s=hm(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return fX(a,function(i,o){return hX(i,o,n)})}var vX=mX;function gX(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var bX=gX,xX=bX,pO=Math.max;function SX(e,t,n){return t=pO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=pO(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),xX(e,this,l)}}var wX=SX;function OX(e){return function(){return e}}var jX=OX,AX=bo,EX=function(){try{var e=AX(Object,"defineProperty");return e({},"",{}),e}catch{}}(),aM=EX,_X=jX,yO=aM,TX=Cs,CX=yO?function(e,t){return yO(e,"toString",{configurable:!0,enumerable:!1,value:_X(t),writable:!0})}:TX,NX=CX,MX=800,PX=16,RX=Date.now;function $X(e){var t=0,n=0;return function(){var r=RX(),a=PX-(r-n);if(n=r,a>0){if(++t>=MX)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var DX=$X,kX=NX,LX=DX,zX=LX(kX),BX=zX,UX=Cs,IX=wX,HX=BX;function qX(e,t){return HX(IX(e,t,UX),e+"")}var FX=qX,GX=nx,YX=Dp,KX=bx,XX=fi;function VX(e,t,n){if(!XX(n))return!1;var r=typeof t;return(r=="number"?YX(n)&&KX(t,n.length):r=="string"&&t in n)?GX(n[t],e):!1}var Lp=VX,QX=tM,WX=vX,ZX=FX,mO=Lp,JX=ZX(function(e,t){if(e==null)return[];var n=t.length;return n>1&&mO(e,t[0],t[1])?t=[]:n>2&&mO(t[0],t[1],t[2])&&(t=[t[0]]),WX(e,QX(t,1),[])}),eV=JX;const jx=Ie(eV);function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Og.apply(this,arguments)}function tV(e,t){return iV(e)||aV(e,t)||rV(e,t)||nV()}function nV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rV(e,t){if(e){if(typeof e=="string")return vO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function iV(e){if(Array.isArray(e))return e}function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(r){oV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oV(e,t,n){return t=lV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lV(e){var t=sV(e,"string");return Ku(t)=="symbol"?t:t+""}function sV(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uV(e){return Array.isArray(e)&&wt(e[0])&&wt(e[1])?e.join(" ~ "):e}var cV=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,f=t.payload,c=t.formatter,h=t.itemSorter,p=t.wrapperClassName,b=t.labelClassName,v=t.label,g=t.labelFormatter,y=t.accessibilityLayer,m=y===void 0?!1:y,x=function(){if(f&&f.length){var E={padding:0,margin:0},N=(h?jx(f,h):f).map(function(D,k){if(D.type==="none")return null;var R=pm({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),z=D.formatter||c||uV,B=D.value,q=D.name,F=B,Q=q;if(z&&F!=null&&Q!=null){var G=z(B,q,D,k,f);if(Array.isArray(G)){var ee=tV(G,2);F=ee[0],Q=ee[1]}else F=G}return $.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},wt(Q)?$.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,wt(Q)?$.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,$.createElement("span",{className:"recharts-tooltip-item-value"},F),$.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return $.createElement("ul",{className:"recharts-tooltip-item-list",style:E},N)}return null},w=pm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=pm({margin:0},u),O=!ve(v),A=O?v:"",_=me("recharts-default-tooltip",p),T=me("recharts-tooltip-label",b);O&&g&&f!==void 0&&f!==null&&(A=g(v,f));var M=m?{role:"status","aria-live":"assertive"}:{};return $.createElement("div",Og({className:_,style:w},M),$.createElement("p",{className:T,style:S},$.isValidElement(A)?A:"".concat(A)),x())};function Xu(e){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(e)}function Ef(e,t,n){return t=fV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fV(e){var t=dV(e,"string");return Xu(t)=="symbol"?t:t+""}function dV(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gs="recharts-tooltip-wrapper",hV={visibility:"hidden"};function pV(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return me(Gs,Ef(Ef(Ef(Ef({},"".concat(Gs,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Gs,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Gs,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Gs,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function bO(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&K(i[r]))return i[r];var f=n[r]-l-a,c=n[r]+a;if(t[r])return o[r]?f:c;if(o[r]){var h=f,p=s[r];return h<p?Math.max(c,s[r]):Math.max(f,s[r])}var b=c+l,v=s[r]+u;return b>v?Math.max(f,s[r]):Math.max(c,s[r])}function yV(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function mV(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,f,c;return o.height>0&&o.width>0&&n?(f=bO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),c=bO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=yV({translateX:f,translateY:c,useTranslate3d:l})):u=hV,{cssProperties:u,cssClasses:pV({translateX:f,translateY:c,coordinate:n})}}function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function xO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function SO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(r){Ag(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oM(r.key),r)}}function bV(e,t,n){return t&&gV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xV(e,t,n){return t=eh(t),SV(e,iM()?Reflect.construct(t,n||[],eh(e).constructor):t.apply(e,n))}function SV(e,t){if(t&&(Il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wV(e)}function wV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iM=function(){return!!e})()}function eh(e){return eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eh(e)}function OV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jg(e,t)}function Ag(e,t,n){return t=oM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oM(e){var t=jV(e,"string");return Il(t)=="symbol"?t:t+""}function jV(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wO=1,AV=function(e){function t(){var n;vV(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=xV(this,t,[].concat(a)),Ag(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ag(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return OV(t,e),bV(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>wO||Math.abs(r.height-this.state.lastBoundingBox.height)>wO)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.children,f=a.coordinate,c=a.hasPayload,h=a.isAnimationActive,p=a.offset,b=a.position,v=a.reverseDirection,g=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,x=mV({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=x.cssClasses,S=x.cssProperties,O=SO(SO({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return $.createElement("div",{tabIndex:-1,className:w,style:O,ref:function(_){r.wrapperNode=_}},u)}}])}(j.PureComponent),EV=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ns={isSsr:EV()};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(n),!0).forEach(function(r){Ax(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sM(r.key),r)}}function CV(e,t,n){return t&&TV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NV(e,t,n){return t=th(t),MV(e,lM()?Reflect.construct(t,n||[],th(e).constructor):t.apply(e,n))}function MV(e,t){if(t&&(Hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PV(e)}function PV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lM=function(){return!!e})()}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},th(e)}function RV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Eg(e,t)}function Ax(e,t,n){return t=sM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sM(e){var t=$V(e,"string");return Hl(t)=="symbol"?t:t+""}function $V(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function DV(e){return e.dataKey}function kV(e,t){return $.isValidElement(e)?$.cloneElement(e,t):typeof e=="function"?$.createElement(e,t):$.createElement(cV,t)}var or=function(e){function t(){return _V(this,t),NV(this,t,arguments)}return RV(t,e),CV(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.content,f=a.coordinate,c=a.filterNull,h=a.isAnimationActive,p=a.offset,b=a.payload,v=a.payloadUniqBy,g=a.position,y=a.reverseDirection,m=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=b??[];c&&S.length&&(S=WN(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,DV));var O=S.length>0;return $.createElement(AV,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:f,hasPayload:O,offset:p,position:g,reverseDirection:y,useTranslate3d:m,viewBox:x,wrapperStyle:w},kV(u,jO(jO({},this.props),{},{payload:S})))}}])}(j.PureComponent);Ax(or,"displayName","Tooltip");Ax(or,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ns.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var LV=Pr,zV=function(){return LV.Date.now()},BV=zV,UV=/\s/;function IV(e){for(var t=e.length;t--&&UV.test(e.charAt(t)););return t}var HV=IV,qV=HV,FV=/^\s+/;function GV(e){return e&&e.slice(0,qV(e)+1).replace(FV,"")}var YV=GV,KV=YV,AO=fi,XV=ws,EO=NaN,VV=/^[-+]0x[0-9a-f]+$/i,QV=/^0b[01]+$/i,WV=/^0o[0-7]+$/i,ZV=parseInt;function JV(e){if(typeof e=="number")return e;if(XV(e))return EO;if(AO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=AO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=KV(e);var n=QV.test(e);return n||WV.test(e)?ZV(e.slice(2),n?2:8):VV.test(e)?EO:+e}var uM=JV,eQ=fi,ym=BV,_O=uM,tQ="Expected a function",nQ=Math.max,rQ=Math.min;function aQ(e,t,n){var r,a,i,o,l,s,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(tQ);t=_O(t)||0,eQ(n)&&(f=!!n.leading,c="maxWait"in n,i=c?nQ(_O(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(O){var A=r,_=a;return r=a=void 0,u=O,o=e.apply(_,A),o}function b(O){return u=O,l=setTimeout(y,t),f?p(O):o}function v(O){var A=O-s,_=O-u,T=t-A;return c?rQ(T,i-_):T}function g(O){var A=O-s,_=O-u;return s===void 0||A>=t||A<0||c&&_>=i}function y(){var O=ym();if(g(O))return m(O);l=setTimeout(y,v(O))}function m(O){return l=void 0,h&&r?p(O):(r=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function w(){return l===void 0?o:m(ym())}function S(){var O=ym(),A=g(O);if(r=arguments,a=this,s=O,A){if(l===void 0)return b(s);if(c)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return S.cancel=x,S.flush=w,S}var iQ=aQ,oQ=iQ,lQ=fi,sQ="Expected a function";function uQ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(sQ);return lQ(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),oQ(e,t,{leading:r,maxWait:t,trailing:a})}var cQ=uQ;const cM=Ie(cQ);function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(n),!0).forEach(function(r){fQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fQ(e,t,n){return t=dQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dQ(e){var t=hQ(e,"string");return Vu(t)=="symbol"?t:t+""}function hQ(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pQ(e,t){return gQ(e)||vQ(e,t)||mQ(e,t)||yQ()}function yQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mQ(e,t){if(e){if(typeof e=="string")return CO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CO(e,t)}}function CO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function gQ(e){if(Array.isArray(e))return e}var NO=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,o=i===void 0?"100%":i,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,h=e.maxHeight,p=e.children,b=e.debounce,v=b===void 0?0:b,g=e.id,y=e.className,m=e.onResize,x=e.style,w=x===void 0?{}:x,S=j.useRef(null),O=j.useRef();O.current=m,j.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var A=j.useState({containerWidth:a.width,containerHeight:a.height}),_=pQ(A,2),T=_[0],M=_[1],L=j.useCallback(function(N,D){M(function(k){var R=Math.round(N),z=Math.round(D);return k.containerWidth===R&&k.containerHeight===z?k:{containerWidth:R,containerHeight:z}})},[]);j.useEffect(function(){var N=function(q){var F,Q=q[0].contentRect,G=Q.width,ee=Q.height;L(G,ee),(F=O.current)===null||F===void 0||F.call(O,G,ee)};v>0&&(N=cM(N,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(N),k=S.current.getBoundingClientRect(),R=k.width,z=k.height;return L(R,z),D.observe(S.current),function(){D.disconnect()}},[L,v]);var E=j.useMemo(function(){var N=T.containerWidth,D=T.containerHeight;if(N<0||D<0)return null;aa(Mi(o)||Mi(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),aa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=Mi(o)?N:o,R=Mi(s)?D:s;n&&n>0&&(k?R=k/n:R&&(k=R*n),h&&R>h&&(R=h)),aa(k>0||R>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.`,k,R,o,s,f,c,n);var z=!Array.isArray(p)&&ra(p.type).endsWith("Chart");return $.Children.map(p,function(B){return $.isValidElement(B)?j.cloneElement(B,_f({width:k,height:R},z?{style:_f({height:"100%",width:"100%",maxHeight:R,maxWidth:k},B.props.style)}:{})):B})},[n,p,s,h,c,f,T,o]);return $.createElement("div",{id:g?"".concat(g):void 0,className:me("recharts-responsive-container",y),style:_f(_f({},w),{},{width:o,height:s,minWidth:f,minHeight:c,maxHeight:h}),ref:S},E)}),zp=function(t){return null};zp.displayName="Cell";function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function MO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(n),!0).forEach(function(r){bQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bQ(e,t,n){return t=xQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xQ(e){var t=SQ(e,"string");return Qu(t)=="symbol"?t:t+""}function SQ(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mo={widthCache:{},cacheCount:0},wQ=2e3,OQ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},PO="recharts_measurement_span";function jQ(e){var t=_g({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Su=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ns.isSsr)return{width:0,height:0};var r=jQ(n),a=JSON.stringify({text:t,copyStyle:r});if(Mo.widthCache[a])return Mo.widthCache[a];try{var i=document.getElementById(PO);i||(i=document.createElement("span"),i.setAttribute("id",PO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=_g(_g({},OQ),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return Mo.widthCache[a]=s,++Mo.cacheCount>wQ&&(Mo.cacheCount=0,Mo.widthCache={}),s}catch{return{width:0,height:0}}},AQ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function nh(e,t){return CQ(e)||TQ(e,t)||_Q(e,t)||EQ()}function EQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Q(e,t){if(e){if(typeof e=="string")return RO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RO(e,t)}}function RO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function CQ(e){if(Array.isArray(e))return e}function NQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PQ(r.key),r)}}function MQ(e,t,n){return t&&$O(e.prototype,t),n&&$O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PQ(e){var t=RQ(e,"string");return Wu(t)=="symbol"?t:t+""}function RQ(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var DO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$Q=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,DQ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,fM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},kQ=Object.keys(fM),Qo="NaN";function LQ(e,t){return e*fM[t]}var Tf=function(){function e(t,n){NQ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!$Q.test(n)&&(this.num=NaN,this.unit=""),kQ.includes(n)&&(this.num=LQ(t,n),this.unit="px")}return MQ(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=DQ.exec(n))!==null&&r!==void 0?r:[],i=nh(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function dM(e){if(e.includes(Qo))return Qo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=DO.exec(t))!==null&&n!==void 0?n:[],a=nh(r,4),i=a[1],o=a[2],l=a[3],s=Tf.parse(i??""),u=Tf.parse(l??""),f=o==="*"?s.multiply(u):s.divide(u);if(f.isNaN())return Qo;t=t.replace(DO,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,h=(c=kO.exec(t))!==null&&c!==void 0?c:[],p=nh(h,4),b=p[1],v=p[2],g=p[3],y=Tf.parse(b??""),m=Tf.parse(g??""),x=v==="+"?y.add(m):y.subtract(m);if(x.isNaN())return Qo;t=t.replace(kO,x.toString())}return t}var LO=/\(([^()]*)\)/;function zQ(e){for(var t=e;t.includes("(");){var n=LO.exec(t),r=nh(n,2),a=r[1];t=t.replace(LO,dM(a))}return t}function BQ(e){var t=e.replace(/\s+/g,"");return t=zQ(t),t=dM(t),t}function UQ(e){try{return BQ(e)}catch{return Qo}}function mm(e){var t=UQ(e.slice(5,-1));return t===Qo?"":t}var IQ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],HQ=["dx","dy","angle","className","breakAll"];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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tg.apply(this,arguments)}function zO(e,t){if(e==null)return{};var n=qQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function BO(e,t){return KQ(e)||YQ(e,t)||GQ(e,t)||FQ()}function FQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GQ(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KQ(e){if(Array.isArray(e))return e}var hM=/[ \f\n\r\t\v\u2028\u2029]+/,pM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ve(n)||(r?i=n.toString().split(""):i=n.toString().split(hM));var o=i.map(function(s){return{word:s,width:Su(s,a).width}}),l=r?0:Su(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},XQ=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,f=K(o),c=l,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(R,z){var B=z.word,q=z.width,F=R[R.length-1];if(F&&(a==null||i||F.width+q+r<Number(a)))F.words.push(B),F.width+=q+r;else{var Q={words:[B],width:q};R.push(Q)}return R},[])},p=h(n),b=function(k){return k.reduce(function(R,z){return R.width>z.width?R:z})};if(!f)return p;for(var v="…",g=function(k){var R=c.slice(0,k),z=pM({breakAll:u,style:s,children:R+v}).wordsWithComputedWidth,B=h(z),q=B.length>o||b(B).width>Number(a);return[q,B]},y=0,m=c.length-1,x=0,w;y<=m&&x<=c.length-1;){var S=Math.floor((y+m)/2),O=S-1,A=g(O),_=BO(A,2),T=_[0],M=_[1],L=g(S),E=BO(L,1),N=E[0];if(!T&&!N&&(y=S+1),T&&N&&(m=S-1),!T&&N){w=M;break}x++}return w||p},IO=function(t){var n=ve(t)?[]:t.toString().split(hM);return[{words:n}]},VQ=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Ns.isSsr){var s,u,f=pM({breakAll:o,children:a,style:i});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;s=c,u=h}else return IO(a);return XQ({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return IO(a)},HO="#808080",so=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,b=t.verticalAnchor,v=b===void 0?"end":b,g=t.fill,y=g===void 0?HO:g,m=zO(t,IQ),x=j.useMemo(function(){return VQ({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),w=m.dx,S=m.dy,O=m.angle,A=m.className,_=m.breakAll,T=zO(m,HQ);if(!wt(r)||!wt(i))return null;var M=r+(K(w)?w:0),L=i+(K(S)?S:0),E;switch(v){case"start":E=mm("calc(".concat(u,")"));break;case"middle":E=mm("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:E=mm("calc(".concat(x.length-1," * -").concat(l,")"));break}var N=[];if(c){var D=x[0].width,k=m.width;N.push("scale(".concat((K(k)?k/D:1)/D,")"))}return O&&N.push("rotate(".concat(O,", ").concat(M,", ").concat(L,")")),N.length&&(T.transform=N.join(" ")),$.createElement("text",Tg({},oe(T,!0),{x:M,y:L,className:me("recharts-text",A),textAnchor:p,fill:y.includes("url")?HO:y}),x.map(function(R,z){var B=R.words.join(_?"":" ");return $.createElement("tspan",{x:M,dy:z===0?E:l,key:"".concat(B,"-").concat(z)},B)}))};function ri(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function QQ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ex(e){let t,n,r;e.length!==2?(t=ri,n=(l,s)=>ri(e(l),s),r=(l,s)=>e(l)-s):(t=e===ri||e===QQ?e:WQ,n=e,r=e);function a(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<0?u=c+1:f=c}while(u<f)}return u}function i(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<=0?u=c+1:f=c}while(u<f)}return u}function o(l,s,u=0,f=l.length){const c=a(l,s,u,f-1);return c>u&&r(l[c-1],s)>-r(l[c],s)?c-1:c}return{left:a,center:o,right:i}}function WQ(){return 0}function yM(e){return e===null?NaN:+e}function*ZQ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const JQ=Ex(ri),Zc=JQ.right;Ex(yM).center;class qO extends Map{constructor(t,n=nW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(FO(this,t))}has(t){return super.has(FO(this,t))}set(t,n){return super.set(eW(this,t),n)}delete(t){return super.delete(tW(this,t))}}function FO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rW(e=ri){if(e===ri)return mM;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 mM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const aW=Math.sqrt(50),iW=Math.sqrt(10),oW=Math.sqrt(2);function rh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=aW?10:i>=iW?5:i>=oW?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?rh(e,t,n*2):[l,s,u]}function Cg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?rh(t,e,n):rh(e,t,n);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(i-u)/-o;else for(let u=0;u<l;++u)s[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(a+u)/-o;else for(let u=0;u<l;++u)s[u]=(a+u)*o;return s}function Ng(e,t,n){return t=+t,e=+e,n=+n,rh(e,t,n)[2]}function Mg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Ng(t,e,n):Ng(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function GO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function YO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function vM(e,t,n=0,r=1/0,a){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(a=a===void 0?mM:rW(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,f=Math.log(s),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(s-c)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*c/s+h)),b=Math.min(r,Math.floor(t+(s-u)*c/s+h));vM(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Ys(e,n,t),a(e[r],i)>0&&Ys(e,n,r);o<l;){for(Ys(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Ys(e,n,l):(++l,Ys(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ys(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function lW(e,t,n){if(e=Float64Array.from(ZQ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return YO(e);if(t>=1)return GO(e);var r,a=(r-1)*t,i=Math.floor(a),o=GO(vM(e,i).subarray(0,i+1)),l=YO(e.subarray(i+1));return o+(l-o)*(a-i)}}function sW(e,t,n=yM){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,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function uW(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function tr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xa(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Pg=Symbol("implicit");function _x(){var e=new qO,t=[],n=[],r=Pg;function a(i){let o=e.get(i);if(o===void 0){if(r!==Pg)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new qO;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return _x(t,n).unknown(r)},tr.apply(a,arguments),a}function Zu(){var e=_x().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,f=.5;delete e.unknown;function c(){var h=t().length,p=a<r,b=p?a:r,v=p?r:a;i=(v-b)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),b+=(v-b-i*(h-s))*f,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var g=uW(h).map(function(y){return b+i*y});return n(p?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),c()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,c()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,c()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,c()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),c()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),c()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,c()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),c()):f},e.copy=function(){return Zu(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(f)},tr.apply(c(),arguments)}function gM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gM(t())},e}function wu(){return gM(Zu.apply(null,arguments).paddingInner(1))}function Tx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Jc(){}var Ju=.7,ah=1/Ju,cl="\\s*([+-]?\\d+)\\s*",ec="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cW=/^#([0-9a-f]{3,8})$/,fW=new RegExp(`^rgb\\(${cl},${cl},${cl}\\)$`),dW=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),hW=new RegExp(`^rgba\\(${cl},${cl},${cl},${ec}\\)$`),pW=new RegExp(`^rgba\\(${Er},${Er},${Er},${ec}\\)$`),yW=new RegExp(`^hsl\\(${ec},${Er},${Er}\\)$`),mW=new RegExp(`^hsla\\(${ec},${Er},${Er},${ec}\\)$`),KO={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};Tx(Jc,tc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:XO,formatHex:XO,formatHex8:vW,formatHsl:gW,formatRgb:VO,toString:VO});function XO(){return this.rgb().formatHex()}function vW(){return this.rgb().formatHex8()}function gW(){return xM(this).formatHsl()}function VO(){return this.rgb().formatRgb()}function tc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?QO(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Cf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Cf(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=fW.exec(e))?new cn(t[1],t[2],t[3],1):(t=dW.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hW.exec(e))?Cf(t[1],t[2],t[3],t[4]):(t=pW.exec(e))?Cf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yW.exec(e))?JO(t[1],t[2]/100,t[3]/100,1):(t=mW.exec(e))?JO(t[1],t[2]/100,t[3]/100,t[4]):KO.hasOwnProperty(e)?QO(KO[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function QO(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Cf(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function bW(e){return e instanceof Jc||(e=tc(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Rg(e,t,n,r){return arguments.length===1?bW(e):new cn(e,t,n,r??1)}function cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Tx(cn,Rg,bM(Jc,{brighter(e){return e=e==null?ah:Math.pow(ah,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ju:Math.pow(Ju,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(Qi(this.r),Qi(this.g),Qi(this.b),ih(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:WO,formatHex:WO,formatHex8:xW,formatRgb:ZO,toString:ZO}));function WO(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function xW(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZO(){const e=ih(this.opacity);return`${e===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${e===1?")":`, ${e})`}`}function ih(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pi(e){return e=Qi(e),(e<16?"0":"")+e.toString(16)}function JO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sr(e,t,n,r)}function xM(e){if(e instanceof sr)return new sr(e.h,e.s,e.l,e.opacity);if(e instanceof Jc||(e=tc(e)),!e)return new sr;if(e instanceof sr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n<r)*6:n===i?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new sr(o,l,s,e.opacity)}function SW(e,t,n,r){return arguments.length===1?xM(e):new sr(e,t,n,r??1)}function sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Tx(sr,SW,bM(Jc,{brighter(e){return e=e==null?ah:Math.pow(ah,e),new sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ju:Math.pow(Ju,e),new sr(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,a=2*n-r;return new cn(vm(e>=240?e-240:e+120,a,r),vm(e,a,r),vm(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new sr(ej(this.h),Nf(this.s),Nf(this.l),ih(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=ih(this.opacity);return`${e===1?"hsl(":"hsla("}${ej(this.h)}, ${Nf(this.s)*100}%, ${Nf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ej(e){return e=(e||0)%360,e<0?e+360:e}function Nf(e){return Math.max(0,Math.min(1,e||0))}function vm(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 Cx=e=>()=>e;function wW(e,t){return function(n){return e+n*t}}function OW(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 jW(e){return(e=+e)==1?SM:function(t,n){return n-t?OW(t,n,e):Cx(isNaN(t)?n:t)}}function SM(e,t){var n=t-e;return n?wW(e,n):Cx(isNaN(e)?t:e)}const tj=function e(t){var n=jW(t);function r(a,i){var o=n((a=Rg(a)).r,(i=Rg(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=SM(a.opacity,i.opacity);return function(f){return a.r=o(f),a.g=l(f),a.b=s(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function AW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function EW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _W(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=Ms(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(l){for(o=0;o<r;++o)i[o]=a[o](l);return i}}function TW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function oh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function CW(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ms(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var $g=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gm=new RegExp($g.source,"g");function NW(e){return function(){return e}}function MW(e){return function(t){return e(t)+""}}function PW(e,t){var n=$g.lastIndex=gm.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=$g.exec(e))&&(a=gm.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:oh(r,a)})),n=gm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?MW(s[0].x):NW(t):(t=s.length,function(u){for(var f=0,c;f<t;++f)l[(c=s[f]).i]=c.x(u);return l.join("")})}function Ms(e,t){var n=typeof t,r;return t==null||n==="boolean"?Cx(t):(n==="number"?oh:n==="string"?(r=tc(t))?(t=r,tj):PW:t instanceof tc?tj:t instanceof Date?TW:EW(t)?AW:Array.isArray(t)?_W:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?CW:oh)(e,t)}function Nx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function RW(e,t){t===void 0&&(t=e,e=Ms);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[l](o-l)}}function $W(e){return function(){return e}}function lh(e){return+e}var nj=[0,1];function en(e){return e}function Dg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:$W(isNaN(t)?NaN:.5)}function DW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function kW(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Dg(a,r),i=n(o,i)):(r=Dg(r,a),i=n(i,o)),function(l){return i(r(l))}}function LW(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Dg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=Zc(e,l,1,r)-1;return i[s](a[s](l))}}function ef(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bp(){var e=nj,t=nj,n=Ms,r,a,i,o=en,l,s,u;function f(){var h=Math.min(e.length,t.length);return o!==en&&(o=DW(e[0],e[h-1])),l=h>2?LW:kW,s=u=null,c}function c(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return c.invert=function(h){return o(a((u||(u=l(t,e.map(r),oh)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,lh),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),n=Nx,f()},c.clamp=function(h){return arguments.length?(o=h?!0:en,f()):o!==en},c.interpolate=function(h){return arguments.length?(n=h,f()):n},c.unknown=function(h){return arguments.length?(i=h,c):i},function(h,p){return r=h,a=p,f()}}function Mx(){return Bp()(en,en)}function zW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function sh(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 ql(e){return e=sh(Math.abs(e)),e?e[1]:NaN}function BW(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function UW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var IW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nc(e){if(!(t=IW.exec(e)))throw new Error("invalid format: "+e);var t;return new Px({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]})}nc.prototype=Px.prototype;function Px(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+""}Px.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 HW(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var uh;function qW(e,t){var n=sh(e,t);if(!n)return uh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(uh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+sh(e,Math.max(0,t+i-1))[0]}function rj(e,t){var n=sh(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const aj={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zW,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)=>rj(e*100,t),r:rj,s:qW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ij(e){return e}var oj=Array.prototype.map,lj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function FW(e){var t=e.grouping===void 0||e.thousands===void 0?ij:BW(oj.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?ij:UW(oj.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=nc(c);var p=c.fill,b=c.align,v=c.sign,g=c.symbol,y=c.zero,m=c.width,x=c.comma,w=c.precision,S=c.trim,O=c.type;O==="n"?(x=!0,O="g"):aj[O]||(w===void 0&&(w=12),S=!0,O="g"),(y||p==="0"&&b==="=")&&(y=!0,p="0",b="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),_=(g==="$"?r:/[%p]/.test(O)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),T=aj[O],M=/[defgprs%]/.test(O);w=w===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function L(E){var N=A,D=_,k,R,z;if(O==="c")D=T(E)+D,E="";else{E=+E;var B=E<0||1/E<0;if(E=isNaN(E)?s:T(Math.abs(E),w),S&&(E=HW(E)),B&&+E==0&&v!=="+"&&(B=!1),N=(B?v==="("?v:l:v==="-"||v==="("?"":v)+N,D=(O==="s"&&!isNaN(E)&&uh!==void 0?lj[8+uh/3]:"")+D+(B&&v==="("?")":""),M){for(k=-1,R=E.length;++k<R;)if(z=E.charCodeAt(k),48>z||z>57){D=(z===46?a+E.slice(k+1):E.slice(k))+D,E=E.slice(0,k);break}}}x&&!y&&(E=t(E,1/0));var q=N.length+E.length+D.length,F=q<m?new Array(m-q+1).join(p):"";switch(x&&y&&(E=t(F+E,F.length?m-D.length:1/0),F=""),b){case"<":E=N+E+D+F;break;case"=":E=N+F+E+D;break;case"^":E=F.slice(0,q=F.length>>1)+N+E+D+F.slice(q);break;default:E=F+N+E+D;break}return i(E)}return L.toString=function(){return c+""},L}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor(ql(h)/3)))*3,b=Math.pow(10,-p),v=u((c=nc(c),c.type="f",c),{suffix:lj[8+p/3]});return function(g){return v(b*g)}}return{format:u,formatPrefix:f}}var Mf,Rx,wM;GW({thousands:",",grouping:[3],currency:["$",""]});function GW(e){return Mf=FW(e),Rx=Mf.format,wM=Mf.formatPrefix,Mf}function YW(e){return Math.max(0,-ql(Math.abs(e)))}function KW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ql(t)/3)))*3-ql(Math.abs(e)))}function XW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ql(t)-ql(e))+1}function OM(e,t,n,r){var a=Mg(e,t,n),i;switch(r=nc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=KW(a,o))&&(r.precision=i),wM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=XW(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=YW(a))&&(r.precision=i-(r.type==="%")*2);break}}return Rx(r)}function hi(e){var t=e.domain;return e.ticks=function(n){var r=t();return Cg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return OM(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,f=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);f-- >0;){if(u=Ng(o,l,n),u===s)return r[a]=o,r[i]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function ch(){var e=Mx();return e.copy=function(){return ef(e,ch())},tr.apply(e,arguments),hi(e)}function jM(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,lh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return jM(e).unknown(t)},e=arguments.length?Array.from(e,lh):[0,1],hi(n)}function AM(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function sj(e){return Math.log(e)}function uj(e){return Math.exp(e)}function VW(e){return-Math.log(-e)}function QW(e){return-Math.exp(-e)}function WW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ZW(e){return e===10?WW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function JW(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 cj(e){return(t,n)=>-e(-t,n)}function $x(e){const t=e(sj,uj),n=t.domain;let r=10,a,i;function o(){return a=JW(r),i=ZW(r),n()[0]<0?(a=cj(a),i=cj(i),e(VW,QW)):e(sj,uj),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],f=s[s.length-1];const c=f<u;c&&([u,f]=[f,u]);let h=a(u),p=a(f),b,v;const g=l==null?10:+l;let y=[];if(!(r%1)&&p-h<g){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(b=1;b<r;++b)if(v=h<0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}}else for(;h<=p;++h)for(b=r-1;b>=1;--b)if(v=h>0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}y.length*2<g&&(y=Cg(u,f,g))}else y=Cg(h,p,Math.min(p-h,g)).map(i);return c?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=nc(s)).precision==null&&(s.trim=!0),s=Rx(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return f=>{let c=f/i(Math.round(a(f)));return c*r<r-.5&&(c*=r),c<=u?s(f):""}},t.nice=()=>n(AM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function EM(){const e=$x(Bp()).domain([1,10]);return e.copy=()=>ef(e,EM()).base(e.base()),tr.apply(e,arguments),e}function fj(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dj(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Dx(e){var t=1,n=e(fj(t),dj(t));return n.constant=function(r){return arguments.length?e(fj(t=+r),dj(t)):t},hi(n)}function _M(){var e=Dx(Bp());return e.copy=function(){return ef(e,_M()).constant(e.constant())},tr.apply(e,arguments)}function hj(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tZ(e){return e<0?-e*e:e*e}function kx(e){var t=e(en,en),n=1;function r(){return n===1?e(en,en):n===.5?e(eZ,tZ):e(hj(n),hj(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},hi(t)}function Lx(){var e=kx(Bp());return e.copy=function(){return ef(e,Lx()).exponent(e.exponent())},tr.apply(e,arguments),e}function nZ(){return Lx.apply(null,arguments).exponent(.5)}function pj(e){return Math.sign(e)*e*e}function rZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function TM(){var e=Mx(),t=[0,1],n=!1,r;function a(i){var o=rZ(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(pj(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,lh)).map(pj)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return TM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},tr.apply(a,arguments),hi(a)}function CM(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=sW(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Zc(n,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ri),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return CM().domain(e).range(t).unknown(r)},tr.apply(i,arguments)}function NM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Zc(r,s,0,n)]:i}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(a=Array.from(s)).length-1,l()):a.slice()},o.invertExtent=function(s){var u=a.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return NM().domain([e,t]).range(a).unknown(i)},tr.apply(hi(o),arguments)}function MM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Zc(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return MM().domain(e).range(t).unknown(n)},tr.apply(a,arguments)}const bm=new Date,xm=new Date;function At(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return s},a.filter=i=>At(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(bm.setTime(+i),xm.setTime(+o),e(bm),e(xm),Math.floor(n(bm,xm))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const fh=At(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?At(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fh);fh.range;const Zr=1e3,Xn=Zr*60,Jr=Xn*60,ha=Jr*24,zx=ha*7,yj=ha*30,Sm=ha*365,Ri=At(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCSeconds());Ri.range;const Bx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr)},(e,t)=>{e.setTime(+e+t*Xn)},(e,t)=>(t-e)/Xn,e=>e.getMinutes());Bx.range;const Ux=At(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xn)},(e,t)=>(t-e)/Xn,e=>e.getUTCMinutes());Ux.range;const Ix=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr-e.getMinutes()*Xn)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getHours());Ix.range;const Hx=At(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCHours());Hx.range;const tf=At(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xn)/ha,e=>e.getDate()-1);tf.range;const Up=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>e.getUTCDate()-1);Up.range;const PM=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>Math.floor(e/ha));PM.range;function xo(e){return At(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())*Xn)/zx)}const Ip=xo(0),dh=xo(1),aZ=xo(2),iZ=xo(3),Fl=xo(4),oZ=xo(5),lZ=xo(6);Ip.range;dh.range;aZ.range;iZ.range;Fl.range;oZ.range;lZ.range;function So(e){return At(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)/zx)}const Hp=So(0),hh=So(1),sZ=So(2),uZ=So(3),Gl=So(4),cZ=So(5),fZ=So(6);Hp.range;hh.range;sZ.range;uZ.range;Gl.range;cZ.range;fZ.range;const qx=At(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());qx.range;const Fx=At(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());Fx.range;const pa=At(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());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(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)});pa.range;const ya=At(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());ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(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)});ya.range;function RM(e,t,n,r,a,i){const o=[[Ri,1,Zr],[Ri,5,5*Zr],[Ri,15,15*Zr],[Ri,30,30*Zr],[i,1,Xn],[i,5,5*Xn],[i,15,15*Xn],[i,30,30*Xn],[a,1,Jr],[a,3,3*Jr],[a,6,6*Jr],[a,12,12*Jr],[r,1,ha],[r,2,2*ha],[n,1,zx],[t,1,yj],[t,3,3*yj],[e,1,Sm]];function l(u,f,c){const h=f<u;h&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:s(u,f,c),b=p?p.range(u,+f+1):[];return h?b.reverse():b}function s(u,f,c){const h=Math.abs(f-u)/c,p=Ex(([,,g])=>g).right(o,h);if(p===o.length)return e.every(Mg(u/Sm,f/Sm,c));if(p===0)return fh.every(Math.max(Mg(u,f,c),1));const[b,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return b.every(v)}return[l,s]}const[dZ,hZ]=RM(ya,Fx,Hp,PM,Hx,Ux),[pZ,yZ]=RM(pa,qx,Ip,tf,Ix,Bx);function wm(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 Om(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 Ks(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mZ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=Xs(a),f=Vs(a),c=Xs(i),h=Vs(i),p=Xs(o),b=Vs(o),v=Xs(l),g=Vs(l),y=Xs(s),m=Vs(s),x={a:z,A:B,b:q,B:F,c:null,d:Sj,e:Sj,f:BZ,g:VZ,G:WZ,H:kZ,I:LZ,j:zZ,L:$M,m:UZ,M:IZ,p:Q,q:G,Q:jj,s:Aj,S:HZ,u:qZ,U:FZ,V:GZ,w:YZ,W:KZ,x:null,X:null,y:XZ,Y:QZ,Z:ZZ,"%":Oj},w={a:ee,A:ye,b:ke,B:fe,c:null,d:wj,e:wj,f:nJ,g:dJ,G:pJ,H:JZ,I:eJ,j:tJ,L:kM,m:rJ,M:aJ,p:Rt,q:vt,Q:jj,s:Aj,S:iJ,u:oJ,U:lJ,V:sJ,w:uJ,W:cJ,x:null,X:null,y:fJ,Y:hJ,Z:yJ,"%":Oj},S={a:M,A:L,b:E,B:N,c:D,d:bj,e:bj,f:PZ,g:gj,G:vj,H:xj,I:xj,j:TZ,L:MZ,m:_Z,M:CZ,p:T,q:EZ,Q:$Z,s:DZ,S:NZ,u:SZ,U:wZ,V:OZ,w:xZ,W:jZ,x:k,X:R,y:gj,Y:vj,Z:AZ,"%":RZ};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w);function O(V,se){return function(de){var H=[],Xe=-1,ge=0,Me=V.length,J,Le,$t;for(de instanceof Date||(de=new Date(+de));++Xe<Me;)V.charCodeAt(Xe)===37&&(H.push(V.slice(ge,Xe)),(Le=mj[J=V.charAt(++Xe)])!=null?J=V.charAt(++Xe):Le=J==="e"?" ":"0",($t=se[J])&&(J=$t(de,Le)),H.push(J),ge=Xe+1);return H.push(V.slice(ge,Xe)),H.join("")}}function A(V,se){return function(de){var H=Ks(1900,void 0,1),Xe=_(H,V,de+="",0),ge,Me;if(Xe!=de.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(se&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(ge=Om(Ks(H.y,0,1)),Me=ge.getUTCDay(),ge=Me>4||Me===0?hh.ceil(ge):hh(ge),ge=Up.offset(ge,(H.V-1)*7),H.y=ge.getUTCFullYear(),H.m=ge.getUTCMonth(),H.d=ge.getUTCDate()+(H.w+6)%7):(ge=wm(Ks(H.y,0,1)),Me=ge.getDay(),ge=Me>4||Me===0?dh.ceil(ge):dh(ge),ge=tf.offset(ge,(H.V-1)*7),H.y=ge.getFullYear(),H.m=ge.getMonth(),H.d=ge.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Me="Z"in H?Om(Ks(H.y,0,1)).getUTCDay():wm(Ks(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Me+5)%7:H.w+H.U*7-(Me+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Om(H)):wm(H)}}function _(V,se,de,H){for(var Xe=0,ge=se.length,Me=de.length,J,Le;Xe<ge;){if(H>=Me)return-1;if(J=se.charCodeAt(Xe++),J===37){if(J=se.charAt(Xe++),Le=S[J in mj?se.charAt(Xe++):J],!Le||(H=Le(V,de,H))<0)return-1}else if(J!=de.charCodeAt(H++))return-1}return H}function T(V,se,de){var H=u.exec(se.slice(de));return H?(V.p=f.get(H[0].toLowerCase()),de+H[0].length):-1}function M(V,se,de){var H=p.exec(se.slice(de));return H?(V.w=b.get(H[0].toLowerCase()),de+H[0].length):-1}function L(V,se,de){var H=c.exec(se.slice(de));return H?(V.w=h.get(H[0].toLowerCase()),de+H[0].length):-1}function E(V,se,de){var H=y.exec(se.slice(de));return H?(V.m=m.get(H[0].toLowerCase()),de+H[0].length):-1}function N(V,se,de){var H=v.exec(se.slice(de));return H?(V.m=g.get(H[0].toLowerCase()),de+H[0].length):-1}function D(V,se,de){return _(V,t,se,de)}function k(V,se,de){return _(V,n,se,de)}function R(V,se,de){return _(V,r,se,de)}function z(V){return o[V.getDay()]}function B(V){return i[V.getDay()]}function q(V){return s[V.getMonth()]}function F(V){return l[V.getMonth()]}function Q(V){return a[+(V.getHours()>=12)]}function G(V){return 1+~~(V.getMonth()/3)}function ee(V){return o[V.getUTCDay()]}function ye(V){return i[V.getUTCDay()]}function ke(V){return s[V.getUTCMonth()]}function fe(V){return l[V.getUTCMonth()]}function Rt(V){return a[+(V.getUTCHours()>=12)]}function vt(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var se=O(V+="",x);return se.toString=function(){return V},se},parse:function(V){var se=A(V+="",!1);return se.toString=function(){return V},se},utcFormat:function(V){var se=O(V+="",w);return se.toString=function(){return V},se},utcParse:function(V){var se=A(V+="",!0);return se.toString=function(){return V},se}}}var mj={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,vZ=/^%/,gZ=/[\\^$*+?|[\]().{}]/g;function Ee(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function bZ(e){return e.replace(gZ,"\\$&")}function Xs(e){return new RegExp("^(?:"+e.map(bZ).join("|")+")","i")}function Vs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function xZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function SZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function OZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function jZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vj(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AZ(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 EZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function _Z(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function TZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function CZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function MZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function PZ(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RZ(e,t,n){var r=vZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function $Z(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Sj(e,t){return Ee(e.getDate(),t,2)}function kZ(e,t){return Ee(e.getHours(),t,2)}function LZ(e,t){return Ee(e.getHours()%12||12,t,2)}function zZ(e,t){return Ee(1+tf.count(pa(e),e),t,3)}function $M(e,t){return Ee(e.getMilliseconds(),t,3)}function BZ(e,t){return $M(e,t)+"000"}function UZ(e,t){return Ee(e.getMonth()+1,t,2)}function IZ(e,t){return Ee(e.getMinutes(),t,2)}function HZ(e,t){return Ee(e.getSeconds(),t,2)}function qZ(e){var t=e.getDay();return t===0?7:t}function FZ(e,t){return Ee(Ip.count(pa(e)-1,e),t,2)}function DM(e){var t=e.getDay();return t>=4||t===0?Fl(e):Fl.ceil(e)}function GZ(e,t){return e=DM(e),Ee(Fl.count(pa(e),e)+(pa(e).getDay()===4),t,2)}function YZ(e){return e.getDay()}function KZ(e,t){return Ee(dh.count(pa(e)-1,e),t,2)}function XZ(e,t){return Ee(e.getFullYear()%100,t,2)}function VZ(e,t){return e=DM(e),Ee(e.getFullYear()%100,t,2)}function QZ(e,t){return Ee(e.getFullYear()%1e4,t,4)}function WZ(e,t){var n=e.getDay();return e=n>=4||n===0?Fl(e):Fl.ceil(e),Ee(e.getFullYear()%1e4,t,4)}function ZZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ee(t/60|0,"0",2)+Ee(t%60,"0",2)}function wj(e,t){return Ee(e.getUTCDate(),t,2)}function JZ(e,t){return Ee(e.getUTCHours(),t,2)}function eJ(e,t){return Ee(e.getUTCHours()%12||12,t,2)}function tJ(e,t){return Ee(1+Up.count(ya(e),e),t,3)}function kM(e,t){return Ee(e.getUTCMilliseconds(),t,3)}function nJ(e,t){return kM(e,t)+"000"}function rJ(e,t){return Ee(e.getUTCMonth()+1,t,2)}function aJ(e,t){return Ee(e.getUTCMinutes(),t,2)}function iJ(e,t){return Ee(e.getUTCSeconds(),t,2)}function oJ(e){var t=e.getUTCDay();return t===0?7:t}function lJ(e,t){return Ee(Hp.count(ya(e)-1,e),t,2)}function LM(e){var t=e.getUTCDay();return t>=4||t===0?Gl(e):Gl.ceil(e)}function sJ(e,t){return e=LM(e),Ee(Gl.count(ya(e),e)+(ya(e).getUTCDay()===4),t,2)}function uJ(e){return e.getUTCDay()}function cJ(e,t){return Ee(hh.count(ya(e)-1,e),t,2)}function fJ(e,t){return Ee(e.getUTCFullYear()%100,t,2)}function dJ(e,t){return e=LM(e),Ee(e.getUTCFullYear()%100,t,2)}function hJ(e,t){return Ee(e.getUTCFullYear()%1e4,t,4)}function pJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Gl(e):Gl.ceil(e),Ee(e.getUTCFullYear()%1e4,t,4)}function yJ(){return"+0000"}function Oj(){return"%"}function jj(e){return+e}function Aj(e){return Math.floor(+e/1e3)}var Po,zM,BM;mJ({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 mJ(e){return Po=mZ(e),zM=Po.format,Po.parse,BM=Po.utcFormat,Po.utcParse,Po}function vJ(e){return new Date(e)}function gJ(e){return e instanceof Date?+e:+new Date(+e)}function Gx(e,t,n,r,a,i,o,l,s,u){var f=Mx(),c=f.invert,h=f.domain,p=u(".%L"),b=u(":%S"),v=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),m=u("%b %d"),x=u("%B"),w=u("%Y");function S(O){return(s(O)<O?p:l(O)<O?b:o(O)<O?v:i(O)<O?g:r(O)<O?a(O)<O?y:m:n(O)<O?x:w)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?h(Array.from(O,gJ)):h().map(vJ)},f.ticks=function(O){var A=h();return e(A[0],A[A.length-1],O??10)},f.tickFormat=function(O,A){return A==null?S:u(A)},f.nice=function(O){var A=h();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?h(AM(A,O)):f},f.copy=function(){return ef(f,Gx(e,t,n,r,a,i,o,l,s,u))},f}function bJ(){return tr.apply(Gx(pZ,yZ,pa,qx,Ip,tf,Ix,Bx,Ri,zM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xJ(){return tr.apply(Gx(dZ,hZ,ya,Fx,Hp,Up,Hx,Ux,Ri,BM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qp(){var e=0,t=1,n,r,a,i,o=en,l=!1,s;function u(c){return c==null||isNaN(c=+c)?s:o(a===0?.5:(c=(i(c)-n)*a,l?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(c){return arguments.length?(l=!!c,u):l},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(h){var p,b;return arguments.length?([p,b]=h,o=c(p,b),u):[o(0),o(1)]}}return u.range=f(Ms),u.rangeRound=f(Nx),u.unknown=function(c){return arguments.length?(s=c,u):s},function(c){return i=c,n=c(e),r=c(t),a=n===r?0:1/(r-n),u}}function pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function UM(){var e=hi(qp()(en));return e.copy=function(){return pi(e,UM())},xa.apply(e,arguments)}function IM(){var e=$x(qp()).domain([1,10]);return e.copy=function(){return pi(e,IM()).base(e.base())},xa.apply(e,arguments)}function HM(){var e=Dx(qp());return e.copy=function(){return pi(e,HM()).constant(e.constant())},xa.apply(e,arguments)}function Yx(){var e=kx(qp());return e.copy=function(){return pi(e,Yx()).exponent(e.exponent())},xa.apply(e,arguments)}function SJ(){return Yx.apply(null,arguments).exponent(.5)}function qM(){var e=[],t=en;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(ri),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>lW(e,i/r))},n.copy=function(){return qM(t).domain(e)},xa.apply(n,arguments)}function Fp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=en,f,c=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-i)*(r*v<r*i?l:s),u(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,a=f(e=+e),i=f(t=+t),o=f(n=+n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(u=v,p):u};function b(v){return function(g){var y,m,x;return arguments.length?([y,m,x]=g,u=RW(v,[y,m,x]),p):[u(0),u(.5),u(1)]}}return p.range=b(Ms),p.rangeRound=b(Nx),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,a=v(e),i=v(t),o=v(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function FM(){var e=hi(Fp()(en));return e.copy=function(){return pi(e,FM())},xa.apply(e,arguments)}function GM(){var e=$x(Fp()).domain([.1,1,10]);return e.copy=function(){return pi(e,GM()).base(e.base())},xa.apply(e,arguments)}function YM(){var e=Dx(Fp());return e.copy=function(){return pi(e,YM()).constant(e.constant())},xa.apply(e,arguments)}function Kx(){var e=kx(Fp());return e.copy=function(){return pi(e,Kx()).exponent(e.exponent())},xa.apply(e,arguments)}function wJ(){return Kx.apply(null,arguments).exponent(.5)}const Ej=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zu,scaleDiverging:FM,scaleDivergingLog:GM,scaleDivergingPow:Kx,scaleDivergingSqrt:wJ,scaleDivergingSymlog:YM,scaleIdentity:jM,scaleImplicit:Pg,scaleLinear:ch,scaleLog:EM,scaleOrdinal:_x,scalePoint:wu,scalePow:Lx,scaleQuantile:CM,scaleQuantize:NM,scaleRadial:TM,scaleSequential:UM,scaleSequentialLog:IM,scaleSequentialPow:Yx,scaleSequentialQuantile:qM,scaleSequentialSqrt:SJ,scaleSequentialSymlog:HM,scaleSqrt:nZ,scaleSymlog:_M,scaleThreshold:MM,scaleTime:bJ,scaleUtc:xJ,tickFormat:OM},Symbol.toStringTag,{value:"Module"}));var OJ=ws;function jJ(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(o!=null&&(l===void 0?o===o&&!OJ(o):n(o,l)))var l=o,s=i}return s}var Gp=jJ;function AJ(e,t){return e>t}var KM=AJ,EJ=Gp,_J=KM,TJ=Cs;function CJ(e){return e&&e.length?EJ(e,TJ,_J):void 0}var NJ=CJ;const Yp=Ie(NJ);function MJ(e,t){return e<t}var XM=MJ,PJ=Gp,RJ=XM,$J=Cs;function DJ(e){return e&&e.length?PJ(e,$J,RJ):void 0}var kJ=DJ;const Kp=Ie(kJ);var LJ=ox,zJ=di,BJ=rM,UJ=yn;function IJ(e,t){var n=UJ(e)?LJ:BJ;return n(e,zJ(t))}var HJ=IJ,qJ=tM,FJ=HJ;function GJ(e,t){return qJ(FJ(e,t),1)}var YJ=GJ;const KJ=Ie(YJ);var XJ=wx;function VJ(e,t){return XJ(e,t)}var QJ=VJ;const Xp=Ie(QJ);var Ps=1e9,WJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vx,nt=!0,Jn="[DecimalError] ",Wi=Jn+"Invalid argument: ",Xx=Jn+"Exponent out of range: ",Rs=Math.floor,_i=Math.pow,ZJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jn,_t=1e7,We=7,VM=9007199254740991,ph=Rs(VM/We),Z={};Z.absoluteValue=Z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Z.comparedTo=Z.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};Z.decimalPlaces=Z.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*We;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Z.dividedBy=Z.div=function(e){return ia(this,new this.constructor(e))};Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return He(ia(t,new n(e),0,1),n.precision)};Z.equals=Z.eq=function(e){return!this.cmp(e)};Z.exponent=function(){return mt(this)};Z.greaterThan=Z.gt=function(e){return this.cmp(e)>0};Z.greaterThanOrEqualTo=Z.gte=function(e){return this.cmp(e)>=0};Z.isInteger=Z.isint=function(){return this.e>this.d.length-2};Z.isNegative=Z.isneg=function(){return this.s<0};Z.isPositive=Z.ispos=function(){return this.s>0};Z.isZero=function(){return this.s===0};Z.lessThan=Z.lt=function(e){return this.cmp(e)<0};Z.lessThanOrEqualTo=Z.lte=function(e){return this.cmp(e)<1};Z.logarithm=Z.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(jn))throw Error(Jn+"NaN");if(n.s<1)throw Error(Jn+(n.s?"NaN":"-Infinity"));return n.eq(jn)?new r(0):(nt=!1,t=ia(rc(n,i),rc(e,i),i),nt=!0,He(t,a))};Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ZM(t,e):QM(t,(e.s=-e.s,e))};Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Jn+"NaN");return n.s?(nt=!1,t=ia(n,e,0,1).times(e),nt=!0,n.minus(t)):He(new r(n),a)};Z.naturalExponential=Z.exp=function(){return WM(this)};Z.naturalLogarithm=Z.ln=function(){return rc(this)};Z.negated=Z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Z.plus=Z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?QM(t,e):ZM(t,(e.s=-e.s,e))};Z.precision=Z.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wi+e);if(t=mt(a)+1,r=a.d.length-1,n=r*We+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Z.squareRoot=Z.sqrt=function(){var e,t,n,r,a,i,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Jn+"NaN")}for(e=mt(l),nt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=jr(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Rs((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(a.toString()),n=s.precision,a=o=n+3;;)if(i=r,r=i.plus(ia(l,i,o+2)).times(.5),jr(i.d).slice(0,o)===(t=jr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(He(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return nt=!0,He(r,n)};Z.times=Z.mul=function(e){var t,n,r,a,i,o,l,s,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,s=h.length,u=p.length,s<u&&(i=h,h=p,p=i,o=s,s=u,u=o),i=[],o=s+u,r=o;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=s+r;a>r;)l=i[a]+p[r]*h[a-r-1]+t,i[a--]=l%_t|0,t=l/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,nt?He(e,c.precision):e};Z.toDecimalPlaces=Z.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Tr(e,0,Ps),t===void 0?t=r.rounding:Tr(t,0,8),He(n,e+mt(n)+1,t))};Z.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=uo(r,!0):(Tr(e,0,Ps),t===void 0?t=a.rounding:Tr(t,0,8),r=He(new a(r),e+1,t),n=uo(r,!0,e+1)),n};Z.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?uo(a):(Tr(e,0,Ps),t===void 0?t=i.rounding:Tr(t,0,8),r=He(new i(a),e+mt(a)+1,t),n=uo(r.abs(),!1,e+mt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return He(new t(e),mt(e)+1,t.rounding)};Z.toNumber=function(){return+this};Z.toPower=Z.pow=function(e){var t,n,r,a,i,o,l=this,s=l.constructor,u=12,f=+(e=new s(e));if(!e.s)return new s(jn);if(l=new s(l),!l.s){if(e.s<1)throw Error(Jn+"Infinity");return l}if(l.eq(jn))return l;if(r=s.precision,e.eq(jn))return He(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=f<0?-f:f)<=VM){for(a=new s(jn),t=Math.ceil(r/We+4),nt=!1;n%2&&(a=a.times(l),Tj(a.d,t)),n=Rs(n/2),n!==0;)l=l.times(l),Tj(l.d,t);return nt=!0,e.s<0?new s(jn).div(a):He(a,r)}}else if(i<0)throw Error(Jn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,nt=!1,a=e.times(rc(l,r+u)),nt=!0,a=WM(a),a.s=i,a};Z.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=mt(a),r=uo(a,n<=i.toExpNeg||n>=i.toExpPos)):(Tr(e,1,Ps),t===void 0?t=i.rounding:Tr(t,0,8),a=He(new i(a),e,t),n=mt(a),r=uo(a,e<=n||n<=i.toExpNeg,e)),r};Z.toSignificantDigits=Z.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Tr(e,1,Ps),t===void 0?t=r.rounding:Tr(t,0,8)),He(new r(n),e,t)};Z.toString=Z.valueOf=Z.val=Z.toJSON=Z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=mt(e),n=e.constructor;return uo(e,t<=n.toExpNeg||t>=n.toExpPos)};function QM(e,t){var n,r,a,i,o,l,s,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),nt?He(t,c):t;if(s=e.d,u=t.d,o=e.e,a=t.e,s=s.slice(),i=o-a,i){for(i<0?(r=s,i=-i,l=u.length):(r=u,a=o,l=s.length),o=Math.ceil(c/We),l=o>l?o+1:l+1,i>l&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(l=s.length,i=u.length,l-i<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/_t|0,s[i]%=_t;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,nt?He(t,c):t}function Tr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wi+e)}function jr(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)r=e[t]+"",n=We-r.length,n&&(i+=_a(n)),i+=r;o=e[t],r=o+"",n=We-r.length,n&&(i+=_a(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ia=function(){function e(r,a){var i,o=0,l=r.length;for(r=r.slice();l--;)i=r[l]*a+o,r[l]=i%_t|0,o=i/_t|0;return o&&r.unshift(o),r}function t(r,a,i,o){var l,s;if(i!=o)s=i>o?1:-1;else for(l=s=0;l<i;l++)if(r[l]!=a[l]){s=r[l]>a[l]?1:-1;break}return s}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]<a[i]?1:0,r[i]=o*_t+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,s,u,f,c,h,p,b,v,g,y,m,x,w,S,O,A,_,T=r.constructor,M=r.s==a.s?1:-1,L=r.d,E=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(Jn+"Division by zero");for(s=r.e-a.e,A=E.length,S=L.length,p=new T(M),b=p.d=[],u=0;E[u]==(L[u]||0);)++u;if(E[u]>(L[u]||0)&&--s,i==null?m=i=T.precision:o?m=i+(mt(r)-mt(a))+1:m=i,m<0)return new T(0);if(m=m/We+2|0,u=0,A==1)for(f=0,E=E[0],m++;(u<S||f)&&m--;u++)x=f*_t+(L[u]||0),b[u]=x/E|0,f=x%E|0;else{for(f=_t/(E[0]+1)|0,f>1&&(E=e(E,f),L=e(L,f),A=E.length,S=L.length),w=A,v=L.slice(0,A),g=v.length;g<A;)v[g++]=0;_=E.slice(),_.unshift(0),O=E[0],E[1]>=_t/2&&++O;do f=0,l=t(E,v,A,g),l<0?(y=v[0],A!=g&&(y=y*_t+(v[1]||0)),f=y/O|0,f>1?(f>=_t&&(f=_t-1),c=e(E,f),h=c.length,g=v.length,l=t(c,v,h,g),l==1&&(f--,n(c,A<h?_:E,h))):(f==0&&(l=f=1),c=E.slice()),h=c.length,h<g&&c.unshift(0),n(v,c,g),l==-1&&(g=v.length,l=t(E,v,A,g),l<1&&(f++,n(v,A<g?_:E,g))),g=v.length):l===0&&(f++,v=[0]),b[u++]=f,l&&v[0]?v[g++]=L[w]||0:(v=[L[w]],g=1);while((w++<S||v[0]!==void 0)&&m--)}return b[0]||b.shift(),p.e=s,He(p,o?i+mt(p)+1:i)}}();function WM(e,t){var n,r,a,i,o,l,s=0,u=0,f=e.constructor,c=f.precision;if(mt(e)>16)throw Error(Xx+mt(e));if(!e.s)return new f(jn);for(nt=!1,l=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(_i(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new f(jn),f.precision=l;;){if(a=He(a.times(e),l),n=n.times(++s),o=i.plus(ia(a,n,l)),jr(o.d).slice(0,l)===jr(i.d).slice(0,l)){for(;u--;)i=He(i.times(i),l);return f.precision=c,t==null?(nt=!0,He(i,c)):i}i=o}}function mt(e){for(var t=e.e*We,n=e.d[0];n>=10;n/=10)t++;return t}function jm(e,t,n){if(t>e.LN10.sd())throw nt=!0,n&&(e.precision=n),Error(Jn+"LN10 precision limit exceeded");return He(new e(e.LN10),t)}function _a(e){for(var t="";e--;)t+="0";return t}function rc(e,t){var n,r,a,i,o,l,s,u,f,c=1,h=10,p=e,b=p.d,v=p.constructor,g=v.precision;if(p.s<1)throw Error(Jn+(p.s?"NaN":"-Infinity"));if(p.eq(jn))return new v(0);if(t==null?(nt=!1,u=g):u=t,p.eq(10))return t==null&&(nt=!0),jm(v,u);if(u+=h,v.precision=u,n=jr(b),r=n.charAt(0),i=mt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=jr(p.d),r=n.charAt(0),c++;i=mt(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return s=jm(v,u+2,g).times(i+""),p=rc(new v(r+"."+n.slice(1)),u-h).plus(s),v.precision=g,t==null?(nt=!0,He(p,g)):p;for(l=o=p=ia(p.minus(jn),p.plus(jn),u),f=He(p.times(p),u),a=3;;){if(o=He(o.times(f),u),s=l.plus(ia(o,new v(a),u)),jr(s.d).slice(0,u)===jr(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(jm(v,u+2,g).times(i+""))),l=ia(l,new v(c),u),v.precision=g,t==null?(nt=!0,He(l,g)):l;l=s,a+=2}}function _j(e,t){var n,r,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Rs(n/We),e.d=[],r=(n+1)%We,n<0&&(r+=We),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=We;r<a;)e.d.push(+t.slice(r,r+=We));t=t.slice(r),r=We-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),nt&&(e.e>ph||e.e<-ph))throw Error(Xx+n)}else e.s=0,e.e=0,e.d=[0];return e}function He(e,t,n){var r,a,i,o,l,s,u,f,c=e.d;for(o=1,i=c[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=We,a=t,u=c[f=0];else{if(f=Math.ceil((r+1)/We),i=c.length,f>=i)return e;for(u=i=c[f],o=1;i>=10;i/=10)o++;r%=We,a=r-We+o}if(n!==void 0&&(i=_i(10,o-a-1),l=u/i%10|0,s=t<0||c[f+1]!==void 0||u%i,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?a>0?u/_i(10,o-a):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return s?(i=mt(e),c.length=1,t=t-i-1,c[0]=_i(10,(We-t%We)%We),e.e=Rs(-t/We)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,i=1,f--):(c.length=f+1,i=_i(10,We-r),c[f]=a>0?(u/_i(10,o-a)%_i(10,a)|0)*i:0),s)for(;;)if(f==0){(c[0]+=i)==_t&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=_t)break;c[f--]=0,i=1}for(r=c.length;c[--r]===0;)c.pop();if(nt&&(e.e>ph||e.e<-ph))throw Error(Xx+mt(e));return e}function ZM(e,t){var n,r,a,i,o,l,s,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),nt?He(t,p):t;if(s=e.d,c=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(f=o<0,f?(n=s,o=-o,l=c.length):(n=c,r=u,l=s.length),a=Math.max(Math.ceil(p/We),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=s.length,l=c.length,f=a<l,f&&(l=a),a=0;a<l;a++)if(s[a]!=c[a]){f=s[a]<c[a];break}o=0}for(f&&(n=s,s=c,c=n,t.s=-t.s),l=s.length,a=c.length-l;a>0;--a)s[l++]=0;for(a=c.length;a>o;){if(s[--a]<c[a]){for(i=a;i&&s[--i]===0;)s[i]=_t-1;--s[i],s[a]+=_t}s[a]-=c[a]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,nt?He(t,p):t):new h(0)}function uo(e,t,n){var r,a=mt(e),i=jr(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+_a(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+_a(-a-1)+i,n&&(r=n-o)>0&&(i+=_a(r))):a>=o?(i+=_a(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+_a(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=_a(r))),e.s<0?"-"+i:i}function Tj(e,t){if(e.length>t)return e.length=t,!0}function JM(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Wi+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return _j(o,i.toString())}else if(typeof i!="string")throw Error(Wi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,ZJ.test(i))_j(o,i);else throw Error(Wi+i)}if(a.prototype=Z,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=JM,a.config=a.set=JJ,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 a.config(e),a}function JJ(e){if(!e||typeof e!="object")throw Error(Jn+"Object expected");var t,n,r,a=["precision",1,Ps,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Rs(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Wi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Wi+n+": "+r);return this}var Vx=JM(WJ);jn=new Vx(1);const Be=Vx;function eee(e){return aee(e)||ree(e)||nee(e)||tee()}function tee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nee(e,t){if(e){if(typeof e=="string")return kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kg(e,t)}}function ree(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function aee(e){if(Array.isArray(e))return kg(e)}function kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iee=function(t){return t},eP={},tP=function(t){return t===eP},Cj=function(t){return function n(){return arguments.length===0||arguments.length===1&&tP(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},oee=function e(t,n){return t===1?n:Cj(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==eP}).length;return o>=t?n.apply(void 0,a):e(t-o,Cj(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var f=a.map(function(c){return tP(c)?s.shift():c});return n.apply(void 0,eee(f).concat(s))}))})},Vp=function(t){return oee(t.length,t)},Lg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},lee=Vp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),see=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return iee;var a=n.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,s){return s(l)},i.apply(void 0,arguments))}},zg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},nP=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n&&i.every(function(l,s){return l===n[s]})||(n=i,r=t.apply(void 0,i)),r}};function uee(e){var t;return e===0?t=1:t=Math.floor(new Be(e).abs().log(10).toNumber())+1,t}function cee(e,t,n){for(var r=new Be(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var fee=Vp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),dee=Vp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),hee=Vp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Qp={rangeStep:cee,getDigitCount:uee,interpolateNumber:fee,uninterpolateNumber:dee,uninterpolateTruncation:hee};function Bg(e){return mee(e)||yee(e)||rP(e)||pee()}function pee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mee(e){if(Array.isArray(e))return Ug(e)}function ac(e,t){return bee(e)||gee(e,t)||rP(e,t)||vee()}function vee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rP(e,t){if(e){if(typeof e=="string")return Ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ug(e,t)}}function Ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gee(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function bee(e){if(Array.isArray(e))return e}function aP(e){var t=ac(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function iP(e,t,n){if(e.lte(0))return new Be(0);var r=Qp.getDigitCount(e.toNumber()),a=new Be(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new Be(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new Be(Math.ceil(s))}function xee(e,t,n){var r=1,a=new Be(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Be(10).pow(Qp.getDigitCount(e)-1),a=new Be(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Be(Math.floor(e)))}else e===0?a=new Be(Math.floor((t-1)/2)):n||(a=new Be(Math.floor(e)));var o=Math.floor((t-1)/2),l=see(lee(function(s){return a.add(new Be(s-o).mul(r)).toNumber()}),Lg);return l(0,t)}function oP(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Be(0),tickMin:new Be(0),tickMax:new Be(0)};var i=iP(new Be(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new Be(0):(o=new Be(e).add(t).div(2),o=o.sub(new Be(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new Be(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?oP(e,t,n,r,a+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:i,tickMin:o.sub(new Be(l).mul(i)),tickMax:o.add(new Be(s).mul(i))})}function See(e){var t=ac(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=aP([n,r]),s=ac(l,2),u=s[0],f=s[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Bg(Lg(0,a-1).map(function(){return 1/0}))):[].concat(Bg(Lg(0,a-1).map(function(){return-1/0})),[f]);return n>r?zg(c):c}if(u===f)return xee(u,a,i);var h=oP(u,f,o,i),p=h.step,b=h.tickMin,v=h.tickMax,g=Qp.rangeStep(b,v.add(new Be(.1).mul(p)),p);return n>r?zg(g):g}function wee(e,t){var n=ac(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=aP([r,a]),l=ac(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var f=Math.max(t,2),c=iP(new Be(u).sub(s).div(f-1),i,0),h=[].concat(Bg(Qp.rangeStep(new Be(s),new Be(u).sub(new Be(.99).mul(c)),c)),[u]);return r>a?zg(h):h}var Oee=nP(See),jee=nP(wee),Aee="Invariant failed";function co(e,t){throw new Error(Aee)}var Eee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yh.apply(this,arguments)}function _ee(e,t){return Mee(e)||Nee(e,t)||Cee(e,t)||Tee()}function Tee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cee(e,t){if(e){if(typeof e=="string")return Nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nj(e,t)}}function Nj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Mee(e){if(Array.isArray(e))return e}function Pee(e,t){if(e==null)return{};var n=Ree(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ree(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uP(r.key),r)}}function kee(e,t,n){return t&&Dee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lee(e,t,n){return t=mh(t),zee(e,lP()?Reflect.construct(t,n||[],mh(e).constructor):t.apply(e,n))}function zee(e,t){if(t&&(Yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bee(e)}function Bee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lP=function(){return!!e})()}function mh(e){return mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mh(e)}function Uee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ig(e,t)}function sP(e,t,n){return t=uP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=Iee(e,"string");return Yl(t)=="symbol"?t:t+""}function Iee(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wp=function(e){function t(){return $ee(this,t),Lee(this,t,arguments)}return Uee(t,e),kee(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,o=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,f=r.xAxis,c=r.yAxis,h=Pee(r,Eee),p=oe(h,!1);this.props.direction==="x"&&f.type!=="number"&&co();var b=s.map(function(v){var g=u(v,l),y=g.x,m=g.y,x=g.value,w=g.errorVal;if(!w)return null;var S=[],O,A;if(Array.isArray(w)){var _=_ee(w,2);O=_[0],A=_[1]}else O=A=w;if(i==="vertical"){var T=f.scale,M=m+a,L=M+o,E=M-o,N=T(x-O),D=T(x+A);S.push({x1:D,y1:L,x2:D,y2:E}),S.push({x1:N,y1:M,x2:D,y2:M}),S.push({x1:N,y1:L,x2:N,y2:E})}else if(i==="horizontal"){var k=c.scale,R=y+a,z=R-o,B=R+o,q=k(x-O),F=k(x+A);S.push({x1:z,y1:F,x2:B,y2:F}),S.push({x1:R,y1:q,x2:R,y2:F}),S.push({x1:z,y1:q,x2:B,y2:q})}return $.createElement($e,yh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},p),S.map(function(Q){return $.createElement("line",yh({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return $.createElement($e,{className:"recharts-errorBars"},b)}}])}($.Component);sP(Wp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});sP(Wp,"displayName","ErrorBar");function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function Mj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(n),!0).forEach(function(r){Hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hee(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=Fee(e,"string");return ic(t)=="symbol"?t:t+""}function Fee(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cP=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=bn(n,ul);if(!o)return null;var l=ul.defaultProps,s=l!==void 0?gi(gi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(f,c){var h=c.item,p=c.props,b=p.sectors||p.data||[];return f.concat(b.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(f){var c=f.item,h=c.type.defaultProps,p=h!==void 0?gi(gi({},h),c.props):{},b=p.dataKey,v=p.name,g=p.legendType,y=p.hide;return{inactive:y,dataKey:b,type:s.iconType||g||"square",color:Qx(c),value:v||b,payload:p}}),gi(gi(gi({},s),ul.getWithHeight(o,a)),{},{payload:u,item:o})};function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function Pj(e){return Xee(e)||Kee(e)||Yee(e)||Gee()}function Gee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yee(e,t){if(e){if(typeof e=="string")return Hg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hg(e,t)}}function Kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xee(e){if(Array.isArray(e))return Hg(e)}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rj(Object(n),!0).forEach(function(r){fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fl(e,t,n){return t=Vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vee(e){var t=Qee(e,"string");return oc(t)=="symbol"?t:t+""}function Qee(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(e,t,n){return ve(e)||ve(t)?n:wt(t)?Nn(e,t,n):ue(t)?t(e):n}function Ou(e,t,n,r){var a=KJ(e,function(l){return Yt(l,t)});if(n==="number"){var i=a.filter(function(l){return K(l)||parseFloat(l)});return i.length?[Kp(i),Yp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ve(l)}):a;return o.map(function(l){return wt(l)||l instanceof Date?l:""})}var Wee=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,u=0;u<l;u++){var f=u>0?a[u-1].coordinate:a[l-1].coordinate,c=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Zt(c-f)!==Zt(h-c)){var b=[];if(Zt(h-c)===Zt(s[1]-s[0])){p=h;var v=c+s[1]-s[0];b[0]=Math.min(v,(v+f)/2),b[1]=Math.max(v,(v+f)/2)}else{p=f;var g=h+s[1]-s[0];b[0]=Math.min(c,(g+c)/2),b[1]=Math.max(c,(g+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){o=a[u].index;break}}else{var m=Math.min(f,h),x=Math.max(f,h);if(t>(m+c)/2&&t<=(x+c)/2){o=a[u].index;break}}}else for(var w=0;w<l;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},Qx=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,s;switch(a){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},Zee=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),s=0,u=l.length;s<u;s++)for(var f=i[l[s]].stackGroups,c=Object.keys(f),h=0,p=c.length;h<p;h++){var b=f[c[h]],v=b.items,g=b.cateAxisId,y=v.filter(function(A){return ra(A.type).indexOf("Bar")>=0});if(y&&y.length){var m=y[0].type.defaultProps,x=m!==void 0?ot(ot({},m),y[0].props):y[0].props,w=x.barSize,S=x[g];o[S]||(o[S]=[]);var O=ve(w)?n:w;o[S].push({item:y[0],stackList:y.slice(1),barSize:ve(O)?void 0:Jt(O,r,0)})}}return o},Jee=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=Jt(n,a,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,b=o.reduce(function(w,S){return w+S.barSize||0},0);b+=(s-1)*u,b>=a&&(b-=(s-1)*u,u=0),b>=a&&p>0&&(h=!0,p*=.9,b=s*p);var v=(a-b)/2>>0,g={offset:v-u,size:0};f=o.reduce(function(w,S){var O={item:S.item,position:{offset:g.offset+g.size+u,size:h?p:S.barSize}},A=[].concat(Pj(w),[O]);return g=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:g})}),A},c)}else{var y=Jt(r,a,0,!0);a-2*y-(s-1)*u<=0&&(u=0);var m=(a-2*y-(s-1)*u)/s;m>1&&(m>>=0);var x=l===+l?Math.min(m,l):m;f=o.reduce(function(w,S,O){var A=[].concat(Pj(w),[{item:S.item,position:{offset:y+(m+u)*O+(m-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},c)}return f},ete=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=cP({children:i,legendWidth:s});if(u){var f=a||{},c=f.width,h=f.height,p=u.align,b=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&p!=="center"&&K(t[p]))return ot(ot({},t),{},fl({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&b!=="middle"&&K(t[b]))return ot(ot({},t),{},fl({},b,t[b]+(h||0)))}return t},tte=function(t,n,r){return ve(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},fP=function(t,n,r,a,i){var o=n.props.children,l=Wn(o,Wp).filter(function(u){return tte(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=Yt(f,r);if(ve(c))return u;var h=Array.isArray(c)?[Kp(c),Yp(c)]:[c,c],p=s.reduce(function(b,v){var g=Yt(f,v,0),y=h[0]-Math.abs(Array.isArray(g)?g[0]:g),m=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,b[0]),Math.max(m,b[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},nte=function(t,n,r,a,i){var o=n.map(function(l){return fP(t,l,r,i,a)}).filter(function(l){return!ve(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},dP=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&fP(t,s,u,a)||Ou(t,u,r,i)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var f=0,c=u.length;f<c;f++)l[u[f]]||(l[u[f]]=!0,s.push(u[f]));return s},[])},hP=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$i=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&o==="category"&&a.bandwidth?a.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Zt(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=i?i.indexOf(c):c;return{coordinate:a(h)+u,value:c,offset:u}});return f.filter(function(c){return!Qc(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:a(c)+u,value:c,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(c){return{coordinate:a(c)+u,value:c,offset:u}}):a.domain().map(function(c,h){return{coordinate:a(c)+u,value:i?i[c]:c,index:h,offset:u}})},Am=new WeakMap,Pf=function(t,n){if(typeof n!="function")return t;Am.has(t)||Am.set(t,new WeakMap);var r=Am.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},pP=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Zu(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ch(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:wu(),realScaleType:"point"}:i==="category"?{scale:Zu(),realScaleType:"band"}:{scale:ch(),realScaleType:"linear"};if(oo(a)){var s="scale".concat(Mp(a));return{scale:(Ej[s]||wu)(),realScaleType:Ej[s]?s:"point"}}return ue(a)?{scale:a}:{scale:wu(),realScaleType:"point"}},$j=1e-4,yP=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-$j,o=Math.max(a[0],a[1])+$j,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},rte=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},ate=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},ite=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0,l=0;l<n;++l){var s=Qc(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=i,t[l][r][1]=i+s,i=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},ote=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0;o<n;++o){var l=Qc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},lte={sign:ite,expand:A9,none:zl,silhouette:E9,wiggle:_9,positive:ote},ste=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=lte[r],o=j9().keys(a).value(function(l,s){return+Yt(l,s,0)}).order(hg).offset(i);return o(t)},ute=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(c,h){var p,b=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ot(ot({},h.type.defaultProps),h.props):h.props,v=b.stackId,g=b.hide;if(g)return c;var y=b[r],m=c[y]||{hasStack:!1,stackGroups:{}};if(wt(v)){var x=m.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),m.hasStack=!0,m.stackGroups[v]=x}else m.stackGroups[Wc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ot(ot({},c),{},fl({},y,m))},s),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var b={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,g){var y=p.stackGroups[g];return ot(ot({},v),{},fl({},g,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:ste(t,y.items,i)}))},b)}return ot(ot({},c),{},fl({},h,p))},f)},mP=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=Oee(u,i,l);return t.domain([Kp(f),Yp(f)]),{niceTicks:f}}if(i&&a==="number"){var c=t.domain(),h=jee(c,i,l);return{niceTicks:h}}return null},Dj=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+a:null;var s=Yt(o,n.dataKey,n.domain[l]);return ve(s)?null:n.scale(s)-i/2+a},cte=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},fte=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(wt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},dte=function(t){return t.reduce(function(n,r){return[Kp(r.concat([n[0]]).filter(K)),Yp(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},vP=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,f){var c=dte(f.slice(n,r+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},kj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Lj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qg=function(t,n,r){if(ue(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(K(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(kj.test(t[0])){var i=+kj.exec(t[0])[1];a[0]=n[0]-i}else ue(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(K(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Lj.test(t[1])){var o=+Lj.exec(t[1])[1];a[1]=n[1]+o}else ue(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},vh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=jx(n,function(c){return c.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],f=i[l-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},zj=function(t,n,r){return!t||!t.length||Xp(t,Nn(r,"type.defaultProps.domain"))?n:t},gP=function(t,n){var r=t.type.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,f=r.hide;return ot(ot({},oe(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:Qx(t),value:Yt(n,a),type:s,payload:n,chartType:u,hide:f})};function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){bP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bP(e,t,n){return t=hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hte(e){var t=pte(e,"string");return lc(t)=="symbol"?t:t+""}function pte(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yte(e,t){return bte(e)||gte(e,t)||vte(e,t)||mte()}function mte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vte(e,t){if(e){if(typeof e=="string")return Uj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uj(e,t)}}function Uj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function bte(e){if(Array.isArray(e))return e}var gh=Math.PI/180,xte=function(t){return t*180/Math.PI},Ke=function(t,n,r,a){return{x:t+Math.cos(-gh*a)*r,y:n+Math.sin(-gh*a)*r}},xP=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},Ste=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,f=Jt(t.cx,o,o/2),c=Jt(t.cy,l,l/2),h=xP(o,l,r),p=Jt(t.innerRadius,h,0),b=Jt(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(g,y){var m=n[y],x=m.domain,w=m.reversed,S;if(ve(m.range))a==="angleAxis"?S=[s,u]:a==="radiusAxis"&&(S=[p,b]),w&&(S=[S[1],S[0]]);else{S=m.range;var O=S,A=yte(O,2);s=A[0],u=A[1]}var _=pP(m,i),T=_.realScaleType,M=_.scale;M.domain(x).range(S),yP(M);var L=mP(M,Hr(Hr({},m),{},{realScaleType:T})),E=Hr(Hr(Hr({},m),L),{},{range:S,radius:b,realScaleType:T,scale:M,cx:f,cy:c,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return Hr(Hr({},g),{},bP({},y,E))},{})},wte=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-o,2))},Ote=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=wte({x:r,y:a},{x:i,y:o});if(l<=0)return{radius:l};var s=(r-i)/l,u=Math.acos(s);return a>o&&(u=2*Math.PI-u),{radius:l,angle:xte(u),angleInRadian:u}},jte=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},Ate=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},Ij=function(t,n){var r=t.x,a=t.y,i=Ote({x:r,y:a},n),o=i.radius,l=i.angle,s=n.innerRadius,u=n.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var f=jte(n),c=f.startAngle,h=f.endAngle,p=l,b;if(c<=h){for(;p>h;)p-=360;for(;p<c;)p+=360;b=p>=c&&p<=h}else{for(;p>c;)p-=360;for(;p<h;)p+=360;b=p>=h&&p<=c}return b?Hr(Hr({},n),{},{radius:o,angle:Ate(p,n)}):null},SP=function(t){return!j.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}var Ete=["offset"];function _te(e){return Mte(e)||Nte(e)||Cte(e)||Tte()}function Tte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cte(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function Nte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mte(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pte(e,t){if(e==null)return{};var n=Rte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?Hj(Object(n),!0).forEach(function(r){$te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $te(e,t,n){return t=Dte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dte(e){var t=kte(e,"string");return sc(t)=="symbol"?t:t+""}function kte(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uc.apply(this,arguments)}var Lte=function(t){var n=t.value,r=t.formatter,a=ve(t.children)?n:t.children;return ue(r)?r(a):a},zte=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Bte=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,f=s.cy,c=s.innerRadius,h=s.outerRadius,p=s.startAngle,b=s.endAngle,v=s.clockWise,g=(c+h)/2,y=zte(p,b),m=y>=0?1:-1,x,w;a==="insideStart"?(x=p+m*o,w=v):a==="insideEnd"?(x=b-m*o,w=!v):a==="end"&&(x=b+m*o,w=v),w=y<=0?w:!w;var S=Ke(u,f,g,x),O=Ke(u,f,g,x+(w?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`,
    `).concat(O.x,",").concat(O.y),_=ve(t.id)?Wc("recharts-radial-line-"):t.id;return $.createElement("text",uc({},r,{dominantBaseline:"central",className:me("recharts-radial-bar-label",l)}),$.createElement("defs",null,$.createElement("path",{id:_,d:A})),$.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Ute=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,l=i.cy,s=i.innerRadius,u=i.outerRadius,f=i.startAngle,c=i.endAngle,h=(f+c)/2;if(a==="outside"){var p=Ke(o,l,u+r,h),b=p.x,v=p.y;return{x:b,y:v,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(s+u)/2,y=Ke(o,l,g,h),m=y.x,x=y.y;return{x:m,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Ite=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,l=o.x,s=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*a,p=c>0?"end":"start",b=c>0?"start":"end",v=u>=0?1:-1,g=v*a,y=v>0?"end":"start",m=v>0?"start":"end";if(i==="top"){var x={x:l+u/2,y:s-c*a,textAnchor:"middle",verticalAnchor:p};return bt(bt({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var w={x:l+u/2,y:s+f+h,textAnchor:"middle",verticalAnchor:b};return bt(bt({},w),r?{height:Math.max(r.y+r.height-(s+f),0),width:u}:{})}if(i==="left"){var S={x:l-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"};return bt(bt({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var O={x:l+u+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"};return bt(bt({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:f}:{})}var A=r?{width:u,height:f}:{};return i==="insideLeft"?bt({x:l+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideRight"?bt({x:l+u-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?bt({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?bt({x:l+u/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?bt({x:l+g,y:s+h,textAnchor:m,verticalAnchor:b},A):i==="insideTopRight"?bt({x:l+u-g,y:s+h,textAnchor:y,verticalAnchor:b},A):i==="insideBottomLeft"?bt({x:l+g,y:s+f-h,textAnchor:m,verticalAnchor:p},A):i==="insideBottomRight"?bt({x:l+u-g,y:s+f-h,textAnchor:y,verticalAnchor:p},A):Os(i)&&(K(i.x)||Mi(i.x))&&(K(i.y)||Mi(i.y))?bt({x:l+Jt(i.x,u),y:s+Jt(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):bt({x:l+u/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Hte=function(t){return"cx"in t&&K(t.cx)};function Nt(e){var t=e.offset,n=t===void 0?5:t,r=Pte(e,Ete),a=bt({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,f=a.className,c=f===void 0?"":f,h=a.textBreakAll;if(!i||ve(l)&&ve(s)&&!j.isValidElement(u)&&!ue(u))return null;if(j.isValidElement(u))return j.cloneElement(u,a);var p;if(ue(u)){if(p=j.createElement(u,a),j.isValidElement(p))return p}else p=Lte(a);var b=Hte(i),v=oe(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Bte(a,p,v);var g=b?Ute(a):Ite(a);return $.createElement(so,uc({className:me("recharts-label",c)},v,g,{breakAll:h}),p)}Nt.displayName="Label";var wP=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,b=t.left,v=t.width,g=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(K(v)&&K(g)){if(K(c)&&K(h))return{x:c,y:h,width:v,height:g};if(K(p)&&K(b))return{x:p,y:b,width:v,height:g}}return K(c)&&K(h)?{x:c,y:h,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:f||s||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},qte=function(t,n){return t?t===!0?$.createElement(Nt,{key:"label-implicit",viewBox:n}):wt(t)?$.createElement(Nt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Nt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):$.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):ue(t)?$.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):Os(t)?$.createElement(Nt,uc({viewBox:n},t,{key:"label-implicit"})):null:null},Fte=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=wP(t),o=Wn(a,Nt).map(function(s,u){return j.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=qte(t.label,n||i);return[l].concat(_te(o))};Nt.parseViewBox=wP;Nt.renderCallByParent=Fte;function Gte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Yte=Gte;const Kte=Ie(Yte);function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}var Xte=["valueAccessor"],Vte=["data","dataKey","clockWise","id","textBreakAll"];function Qte(e){return ene(e)||Jte(e)||Zte(e)||Wte()}function Wte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zte(e,t){if(e){if(typeof e=="string")return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}}function Jte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ene(e){if(Array.isArray(e))return Gg(e)}function Gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(this,arguments)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qj(Object(n),!0).forEach(function(r){tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tne(e,t,n){return t=nne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nne(e){var t=rne(e,"string");return cc(t)=="symbol"?t:t+""}function rne(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gj(e,t){if(e==null)return{};var n=ane(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ane(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ine=function(t){return Array.isArray(t.value)?Kte(t.value):t.value};function ai(e){var t=e.valueAccessor,n=t===void 0?ine:t,r=Gj(e,Xte),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Gj(r,Vte);return!a||!a.length?null:$.createElement($e,{className:"recharts-label-list"},a.map(function(f,c){var h=ve(i)?n(f,c):Yt(f&&f.payload,i),p=ve(l)?{}:{id:"".concat(l,"-").concat(c)};return $.createElement(Nt,bh({},oe(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Nt.parseViewBox(ve(o)?f:Fj(Fj({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ai.displayName="LabelList";function one(e,t){return e?e===!0?$.createElement(ai,{key:"labelList-implicit",data:t}):$.isValidElement(e)||ue(e)?$.createElement(ai,{key:"labelList-implicit",data:t,content:e}):Os(e)?$.createElement(ai,bh({data:t},e,{key:"labelList-implicit"})):null:null}function lne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Wn(r,ai).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=one(e.label,t);return[i].concat(Qte(a))}ai.renderCallByParent=lne;function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yg.apply(this,arguments)}function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yj(Object(n),!0).forEach(function(r){sne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sne(e,t,n){return t=une(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function une(e){var t=cne(e,"string");return fc(t)=="symbol"?t:t+""}function cne(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fne=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Rf=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,f=s*(l?1:-1)+a,c=Math.asin(s/f)/gh,h=u?i:i+o*c,p=Ke(n,r,f,h),b=Ke(n,r,a,h),v=u?i-o*c:i,g=Ke(n,r,f*Math.cos(c*gh),v);return{center:p,circleTangency:b,lineTangency:g,theta:c}},OP=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=fne(o,l),u=o+s,f=Ke(n,r,i,o),c=Ke(n,r,i,u),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(c.x,",").concat(c.y,`
  `);if(a>0){var p=Ke(n,r,a,o),b=Ke(n,r,a,u);h+="L ".concat(b.x,",").concat(b.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},dne=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Zt(f-u),h=Rf({cx:n,cy:r,radius:i,angle:u,sign:c,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,v=h.theta,g=Rf({cx:n,cy:r,radius:i,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,m=g.lineTangency,x=g.theta,w=s?Math.abs(u-f):Math.abs(u-f)-v-x;if(w<0)return l?"M ".concat(b.x,",").concat(b.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):OP({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var S="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(m.x,",").concat(m.y,`
  `);if(a>0){var O=Rf({cx:n,cy:r,radius:a,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=O.circleTangency,_=O.lineTangency,T=O.theta,M=Rf({cx:n,cy:r,radius:a,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),L=M.circleTangency,E=M.lineTangency,N=M.theta,D=s?Math.abs(u-f):Math.abs(u-f)-T-N;if(D<0&&o===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(E.x,",").concat(E.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(L.x,",").concat(L.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(c>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},hne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jP=function(t){var n=Kj(Kj({},hne),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,h=n.className;if(o<i||f===c)return null;var p=me("recharts-sector",h),b=o-i,v=Jt(l,b,0,!0),g;return v>0&&Math.abs(f-c)<360?g=dne({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:f,endAngle:c}):g=OP({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:c}),$.createElement("path",Yg({},oe(n,!0),{className:p,d:g,role:"img"}))};function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}function Xj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vj(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){pne(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 pne(e,t,n){return t=yne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yne(e){var t=mne(e,"string");return dc(t)=="symbol"?t:t+""}function mne(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qj={curveBasisClosed:h9,curveBasisOpen:p9,curveBasis:d9,curveBumpX:Z7,curveBumpY:J7,curveLinearClosed:y9,curveLinear:Rp,curveMonotoneX:m9,curveMonotoneY:v9,curveNatural:g9,curveStep:b9,curveStepAfter:S9,curveStepBefore:x9},$f=function(t){return t.x===+t.x&&t.y===+t.y},Qs=function(t){return t.x},Ws=function(t){return t.y},vne=function(t,n){if(ue(t))return t;var r="curve".concat(Mp(t));return(r==="curveMonotone"||r==="curveBump")&&n?Qj["".concat(r).concat(n==="vertical"?"Y":"X")]:Qj[r]||Rp},gne=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,f=vne(r,l),c=u?i.filter(function(v){return $f(v)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(v){return $f(v)}):o,b=c.map(function(v,g){return Vj(Vj({},v),{},{base:p[g]})});return l==="vertical"?h=jf().y(Ws).x1(Qs).x0(function(v){return v.base.x}):h=jf().x(Qs).y1(Ws).y0(function(v){return v.base.y}),h.defined($f).curve(f),h(b)}return l==="vertical"&&K(o)?h=jf().y(Ws).x1(Qs).x0(o):K(o)?h=jf().x(Qs).y1(Ws).y0(o):h=SN().x(Qs).y(Ws),h.defined($f).curve(f),h(c)},Xg=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var o=r&&r.length?gne(t):a;return j.createElement("path",Kg({},oe(t,!1),qd(t),{className:me("recharts-curve",n),d:o,ref:i}))},AP={exports:{}},bne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xne=bne,Sne=xne;function EP(){}function _P(){}_P.resetWarningCache=EP;var wne=function(){function e(r,a,i,o,l,s){if(s!==Sne){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_P,resetWarningCache:EP};return n.PropTypes=n,n};AP.exports=wne();var One=AP.exports;const Ce=Ie(One),{getOwnPropertyNames:jne,getOwnPropertySymbols:Ane}=Object,{hasOwnProperty:Ene}=Object.prototype;function Em(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Df(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,o=i.get(n),l=i.get(r);if(o&&l)return o===r&&l===n;i.set(n,r),i.set(r,n);const s=e(n,r,a);return i.delete(n),i.delete(r),s}}function _ne(e){return e!=null?e[Symbol.toStringTag]:void 0}function Wj(e){return jne(e).concat(Ane(e))}const Tne=Object.hasOwn||((e,t)=>Ene.call(e,t));function wo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Cne="__v",Nne="__o",Mne="_owner",{getOwnPropertyDescriptor:Zj,keys:Jj}=Object;function Pne(e,t){return e.byteLength===t.byteLength&&xh(new Uint8Array(e),new Uint8Array(t))}function Rne(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function $ne(e,t){return e.byteLength===t.byteLength&&xh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Dne(e,t){return wo(e.getTime(),t.getTime())}function kne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Lne(e,t){return e===t}function eA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,l,s=0;for(;(o=i.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(l=u.next())&&!l.done;){if(a[c]){c++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,c,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[c]=!0;break}c++}if(!f)return!1;s++}return!0}const zne=wo;function Bne(e,t,n){const r=Jj(e);let a=r.length;if(Jj(t).length!==a)return!1;for(;a-- >0;)if(!TP(e,t,n,r[a]))return!1;return!0}function Zs(e,t,n){const r=Wj(e);let a=r.length;if(Wj(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!TP(e,t,n,i)||(o=Zj(e,i),l=Zj(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Une(e,t){return wo(e.valueOf(),t.valueOf())}function Ine(e,t){return e.source===t.source&&e.flags===t.flags}function tA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,l;for(;(o=i.next())&&!o.done;){const s=t.values();let u=!1,f=0;for(;(l=s.next())&&!l.done;){if(!a[f]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function xh(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Hne(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function TP(e,t,n,r){return(r===Mne||r===Nne||r===Cne)&&(e.$$typeof||t.$$typeof)?!0:Tne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const qne="[object ArrayBuffer]",Fne="[object Arguments]",Gne="[object Boolean]",Yne="[object DataView]",Kne="[object Date]",Xne="[object Error]",Vne="[object Map]",Qne="[object Number]",Wne="[object Object]",Zne="[object RegExp]",Jne="[object Set]",ere="[object String]",tre={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},nre="[object URL]",rre=Object.prototype.toString;function are({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:b}){return function(g,y,m){if(g===y)return!0;if(g==null||y==null)return!1;const x=typeof g;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?l(g,y,m):x==="function"?i(g,y,m):!1;const w=g.constructor;if(w!==y.constructor)return!1;if(w===Object)return s(g,y,m);if(Array.isArray(g))return t(g,y,m);if(w===Date)return r(g,y,m);if(w===RegExp)return f(g,y,m);if(w===Map)return o(g,y,m);if(w===Set)return c(g,y,m);const S=rre.call(g);if(S===Kne)return r(g,y,m);if(S===Zne)return f(g,y,m);if(S===Vne)return o(g,y,m);if(S===Jne)return c(g,y,m);if(S===Wne)return typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,m);if(S===nre)return p(g,y,m);if(S===Xne)return a(g,y,m);if(S===Fne)return s(g,y,m);if(tre[S])return h(g,y,m);if(S===qne)return e(g,y,m);if(S===Yne)return n(g,y,m);if(S===Gne||S===Qne||S===ere)return u(g,y,m);if(b){let O=b[S];if(!O){const A=_ne(g);A&&(O=b[A])}if(O)return O(g,y,m)}return!1}}function ire({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Pne,areArraysEqual:n?Zs:Rne,areDataViewsEqual:$ne,areDatesEqual:Dne,areErrorsEqual:kne,areFunctionsEqual:Lne,areMapsEqual:n?Em(eA,Zs):eA,areNumbersEqual:zne,areObjectsEqual:n?Zs:Bne,arePrimitiveWrappersEqual:Une,areRegExpsEqual:Ine,areSetsEqual:n?Em(tA,Zs):tA,areTypedArraysEqual:n?Em(xh,Zs):xh,areUrlsEqual:Hne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Df(r.areArraysEqual),i=Df(r.areMapsEqual),o=Df(r.areObjectsEqual),l=Df(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function ore(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function lre({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(l,s){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(l,s,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(l,s){return t(l,s,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(l,s){return t(l,s,i)}}const sre=yi();yi({strict:!0});yi({circular:!0});yi({circular:!0,strict:!0});yi({createInternalComparator:()=>wo});yi({strict:!0,createInternalComparator:()=>wo});yi({circular:!0,createInternalComparator:()=>wo});yi({circular:!0,createInternalComparator:()=>wo,strict:!0});function yi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=ire(e),o=are(i),l=n?n(o):ore(o);return lre({circular:t,comparator:o,createState:r,equals:l,strict:a})}function ure(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function nA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):ure(a)};requestAnimationFrame(r)}function Vg(e){"@babel/helpers - typeof";return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vg(e)}function cre(e){return pre(e)||hre(e)||dre(e)||fre()}function fre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dre(e,t){if(e){if(typeof e=="string")return rA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rA(e,t)}}function rA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pre(e){if(Array.isArray(e))return e}function yre(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var o=i,l=cre(o),s=l[0],u=l.slice(1);if(typeof s=="number"){nA(a.bind(null,u),s);return}a(s),nA(a.bind(null,u));return}Vg(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?aA(Object(n),!0).forEach(function(r){CP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CP(e,t,n){return t=mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=vre(e,"string");return hc(t)==="symbol"?t:String(t)}function vre(e,t){if(hc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},bre=function(t){return t},xre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ju=function(t,n){return Object.keys(n).reduce(function(r,a){return iA(iA({},r),{},CP({},a,t(a,n[a])))},{})},oA=function(t,n,r){return t.map(function(a){return"".concat(xre(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Sre(e,t){return jre(e)||Ore(e,t)||NP(e,t)||wre()}function wre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ore(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function jre(e){if(Array.isArray(e))return e}function Are(e){return Tre(e)||_re(e)||NP(e)||Ere()}function Ere(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NP(e,t){if(e){if(typeof e=="string")return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qg(e,t)}}function _re(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tre(e){if(Array.isArray(e))return Qg(e)}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sh=1e-4,MP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},PP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},lA=function(t,n){return function(r){var a=MP(t,n);return PP(a,r)}},Cre=function(t,n){return function(r){var a=MP(t,n),i=[].concat(Are(a.map(function(o,l){return o*l}).slice(1)),[0]);return PP(i,r)}},sA=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=Sre(u,4);a=f[0],i=f[1],o=f[2],l=f[3]}}}var c=lA(a,o),h=lA(i,l),p=Cre(a,o),b=function(y){return y>1?1:y<0?0:y},v=function(y){for(var m=y>1?1:y,x=m,w=0;w<8;++w){var S=c(x)-m,O=p(x);if(Math.abs(S-m)<Sh||O<Sh)return h(x);x=b(x-S/O)}return h(x)};return v.isStepper=!1,v},Nre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,s=function(f,c,h){var p=-(f-c)*r,b=h*i,v=h+(p-b)*l/1e3,g=h*l/1e3+f;return Math.abs(g-c)<Sh&&Math.abs(v)<Sh?[c,0]:[g,v]};return s.isStepper=!0,s.dt=l,s},Mre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return sA(a);case"spring":return Nre();default:if(a.split("(")[0]==="cubic-bezier")return sA(a)}return typeof a=="function"?a:null};function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function uA(e){return $re(e)||Rre(e)||RP(e)||Pre()}function Pre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $re(e){if(Array.isArray(e))return Zg(e)}function cA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cA(Object(n),!0).forEach(function(r){Wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wg(e,t,n){return t=Dre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dre(e){var t=kre(e,"string");return pc(t)==="symbol"?t:String(t)}function kre(e,t){if(pc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lre(e,t){return Ure(e)||Bre(e,t)||RP(e,t)||zre()}function zre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RP(e,t){if(e){if(typeof e=="string")return Zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zg(e,t)}}function Zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ure(e){if(Array.isArray(e))return e}var wh=function(t,n,r){return t+(n-t)*r},Jg=function(t){var n=t.from,r=t.to;return n!==r},Ire=function e(t,n,r){var a=ju(function(i,o){if(Jg(o)){var l=t(o.from,o.to,o.velocity),s=Lre(l,2),u=s[0],f=s[1];return Dt(Dt({},o),{},{from:u,velocity:f})}return o},n);return r<1?ju(function(i,o){return Jg(o)?Dt(Dt({},o),{},{velocity:wh(o.velocity,a[i].velocity,r),from:wh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Hre=function(e,t,n,r,a){var i=gre(e,t),o=i.reduce(function(g,y){return Dt(Dt({},g),{},Wg({},y,[e[y],t[y]]))},{}),l=i.reduce(function(g,y){return Dt(Dt({},g),{},Wg({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,f,c=function(){return null},h=function(){return ju(function(y,m){return m.from},l)},p=function(){return!Object.values(l).filter(Jg).length},b=function(y){u||(u=y);var m=y-u,x=m/n.dt;l=Ire(n,l,x),a(Dt(Dt(Dt({},e),t),h())),u=y,p()||(s=requestAnimationFrame(c))},v=function(y){f||(f=y);var m=(y-f)/r,x=ju(function(S,O){return wh.apply(void 0,uA(O).concat([n(m)]))},o);if(a(Dt(Dt(Dt({},e),t),x)),m<1)s=requestAnimationFrame(c);else{var w=ju(function(S,O){return wh.apply(void 0,uA(O).concat([n(1)]))},o);a(Dt(Dt(Dt({},e),t),w))}};return c=n.isStepper?b:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(s)}}};function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}var qre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Fre(e,t){if(e==null)return{};var n=Gre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gre(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function _m(e){return Vre(e)||Xre(e)||Kre(e)||Yre()}function Yre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kre(e,t){if(e){if(typeof e=="string")return e0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e0(e,t)}}function Xre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vre(e){if(Array.isArray(e))return e0(e)}function e0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rr(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){ou(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 ou(e,t,n){return t=$P(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$P(r.key),r)}}function Zre(e,t,n){return t&&Wre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $P(e){var t=Jre(e,"string");return Kl(t)==="symbol"?t:String(t)}function Jre(e,t){if(Kl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t0(e,t)}function t0(e,t){return t0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},t0(e,t)}function tae(e){var t=nae();return function(){var r=Oh(e),a;if(t){var i=Oh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return n0(this,a)}}function n0(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r0(e)}function r0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oh(e)}var ma=function(e){eae(n,e);var t=tae(n);function n(r,a){var i;Qre(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(r0(i)),i.changeStyle=i.changeStyle.bind(r0(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),n0(i);if(c&&c.length)i.state={style:c[0].style};else if(u){if(typeof h=="function")return i.state={style:u},n0(i);i.state={style:s?ou({},s,u):u}}else i.state={style:{}};return i}return Zre(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,s=i.attributeName,u=i.shouldReAnimate,f=i.to,c=i.from,h=this.state.style;if(l){if(!o){var p={style:s?ou({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(sre(a.to,f)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||u?c:a.to;if(this.state&&h){var g={style:s?ou({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(g)}this.runAnimation(rr(rr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,s=a.duration,u=a.easing,f=a.begin,c=a.onAnimationEnd,h=a.onAnimationStart,p=Hre(o,l,Mre(u),s,this.changeStyle),b=function(){i.stopJSAnimation=p()};this.manager.start([h,f,b,s,c])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(v,g,y){if(y===0)return v;var m=g.duration,x=g.easing,w=x===void 0?"ease":x,S=g.style,O=g.properties,A=g.onAnimationEnd,_=y>0?o[y-1]:g,T=O||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(_m(v),[i.runJSAnimation.bind(i,{from:_.style,to:S,duration:m,easing:w}),m]);var M=oA(T,m,w),L=rr(rr(rr({},_.style),S),{},{transition:M});return[].concat(_m(v),[L,m,A]).filter(bre)};return this.manager.start([s].concat(_m(o.reduce(p,[f,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=yre());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,f=a.onAnimationStart,c=a.onAnimationEnd,h=a.steps,p=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var v=l?ou({},l,s):s,g=oA(Object.keys(v),o,u);b.start([f,i,rr(rr({},v),{},{transition:g}),o,c])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var s=Fre(a,qre),u=j.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!l||u===0||o<=0)return i;var c=function(p){var b=p.props,v=b.style,g=v===void 0?{}:v,y=b.className,m=j.cloneElement(p,rr(rr({},s),{},{style:rr(rr({},g),f),className:y}));return m};return u===1?c(j.Children.only(i)):$.createElement("div",null,j.Children.map(i,function(h){return c(h)}))}}]),n}(j.PureComponent);ma.displayName="Animate";ma.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ma.propTypes={from:Ce.oneOfType([Ce.object,Ce.string]),to:Ce.oneOfType([Ce.object,Ce.string]),attributeName:Ce.string,duration:Ce.number,begin:Ce.number,easing:Ce.oneOfType([Ce.string,Ce.func]),steps:Ce.arrayOf(Ce.shape({duration:Ce.number.isRequired,style:Ce.object.isRequired,easing:Ce.oneOfType([Ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ce.func]),properties:Ce.arrayOf("string"),onAnimationEnd:Ce.func})),children:Ce.oneOfType([Ce.node,Ce.func]),isActive:Ce.bool,canBegin:Ce.bool,onAnimationEnd:Ce.func,shouldReAnimate:Ce.bool,onAnimationStart:Ce.func,onAnimationReStart:Ce.func};function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jh.apply(this,arguments)}function rae(e,t){return lae(e)||oae(e,t)||iae(e,t)||aae()}function aae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iae(e,t){if(e){if(typeof e=="string")return dA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dA(e,t)}}function dA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function lae(e){if(Array.isArray(e))return e}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pA(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){sae(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 sae(e,t,n){return t=uae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uae(e){var t=cae(e,"string");return yc(t)=="symbol"?t:t+""}function cae(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yA=function(t,n,r,a,i){var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),l=a>=0?1:-1,s=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(o>0&&i instanceof Array){for(var c=[0,0,0,0],h=0,p=4;h<p;h++)c[h]=i[h]>o?o:i[h];f="M".concat(t,",").concat(n+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+s*c[0],",").concat(n)),f+="L ".concat(t+r-s*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*c[1])),f+="L ".concat(t+r,",").concat(n+a-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
        `).concat(t+r-s*c[2],",").concat(n+a)),f+="L ".concat(t+s*c[3],",").concat(n+a),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*c[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);f="M ".concat(t,",").concat(n+l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+s*b,",").concat(n,`
            L `).concat(t+r-s*b,",").concat(n,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*b,`
            L `).concat(t+r,",").concat(n+a-l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r-s*b,",").concat(n+a,`
            L `).concat(t+s*b,",").concat(n+a,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t,",").concat(n+a-l*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},fae=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(i,i+l),f=Math.max(i,i+l),c=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=f&&a>=c&&a<=h}return!1},dae={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Wx=function(t){var n=pA(pA({},dae),t),r=j.useRef(),a=j.useState(-1),i=rae(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var s=n.x,u=n.y,f=n.width,c=n.height,h=n.radius,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,m=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=me("recharts-rectangle",p);return m?$.createElement(ma,{canBegin:o>0,from:{width:f,height:c,x:s,y:u},to:{width:f,height:c,x:s,y:u},duration:v,animationEasing:b,isActive:m},function(w){var S=w.width,O=w.height,A=w.x,_=w.y;return $.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:y,easing:b},$.createElement("path",jh({},oe(n,!0),{className:x,d:yA(A,_,S,O,h),ref:r})))}):$.createElement("path",jh({},oe(n,!0),{className:x,d:yA(s,u,f,c,h)}))},hae=["points","className","baseLinePoints","connectNulls"];function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wo.apply(this,arguments)}function pae(e,t){if(e==null)return{};var n=yae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mA(e){return bae(e)||gae(e)||vae(e)||mae()}function mae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vae(e,t){if(e){if(typeof e=="string")return a0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a0(e,t)}}function gae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bae(e){if(Array.isArray(e))return a0(e)}function a0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vA=function(t){return t&&t.x===+t.x&&t.y===+t.y},xae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){vA(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),vA(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Au=function(t,n){var r=xae(t);n&&(r=[r.reduce(function(i,o){return[].concat(mA(i),mA(o))},[])]);var a=r.map(function(i){return i.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Sae=function(t,n,r){var a=Au(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Au(n.reverse(),r).slice(1))},wae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=pae(t,hae);if(!n||!n.length)return null;var l=me("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=Sae(n,a,i);return $.createElement("g",{className:l},$.createElement("path",Wo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?$.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(n,i)})):null,s?$.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(a,i)})):null)}var f=Au(n,i);return $.createElement("path",Wo({},oe(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}var Zx=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=me("recharts-dot",i);return n===+n&&r===+r&&a===+a?j.createElement("circle",i0({},oe(t,!1),qd(t),{className:o,cx:n,cy:r,r:a})):null};function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}var Oae=["x","y","top","left","width","height","className"];function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jae(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){Aae(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 Aae(e,t,n){return t=Eae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eae(e){var t=_ae(e,"string");return mc(t)=="symbol"?t:t+""}function _ae(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tae(e,t){if(e==null)return{};var n=Cae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Mae=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,b=t.className,v=Tae(t,Oae),g=jae({x:r,y:i,top:l,left:u,width:c,height:p},v);return!K(r)||!K(i)||!K(c)||!K(p)||!K(l)||!K(u)?null:$.createElement("path",o0({},oe(g,!0),{className:me("recharts-cross",b),d:Nae(r,i,c,p,l,u)}))},Pae=Gp,Rae=KM,$ae=di;function Dae(e,t){return e&&e.length?Pae(e,$ae(t),Rae):void 0}var kae=Dae;const Lae=Ie(kae);var zae=Gp,Bae=di,Uae=XM;function Iae(e,t){return e&&e.length?zae(e,Bae(t),Uae):void 0}var Hae=Iae;const qae=Ie(Hae);var Fae=["cx","cy","angle","ticks","axisLine"],Gae=["ticks","tick","angle","tickFormatter","stroke"];function Xl(e){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(e)}function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bi(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){Zp(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 xA(e,t){if(e==null)return{};var n=Yae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kP(r.key),r)}}function Xae(e,t,n){return t&&SA(e.prototype,t),n&&SA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vae(e,t,n){return t=Ah(t),Qae(e,DP()?Reflect.construct(t,n||[],Ah(e).constructor):t.apply(e,n))}function Qae(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wae(e)}function Wae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DP=function(){return!!e})()}function Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}function Zae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l0(e,t)}function l0(e,t){return l0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},l0(e,t)}function Zp(e,t,n){return t=kP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e){var t=Jae(e,"string");return Xl(t)=="symbol"?t:t+""}function Jae(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jp=function(e){function t(){return Kae(this,t),Vae(this,t,arguments)}return Zae(t,e),Xae(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ke(l,s,a,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=Lae(l,function(f){return f.coordinate||0}),u=qae(l,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=xA(r,Fae),f=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),c=Ke(a,i,f[0],o),h=Ke(a,i,f[1],o),p=bi(bi(bi({},oe(u,!1)),{},{fill:"none"},oe(s,!1)),{},{x1:c.x,y1:c.y,x2:h.x,y2:h.y});return $.createElement("line",Eu({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,s=a.tickFormatter,u=a.stroke,f=xA(a,Gae),c=this.getTickTextAnchor(),h=oe(f,!1),p=oe(o,!1),b=i.map(function(v,g){var y=r.getTickValueCoord(v),m=bi(bi(bi(bi({textAnchor:c,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:g},y),{},{payload:v});return $.createElement($e,Eu({className:me("recharts-polar-radius-axis-tick",SP(o)),key:"tick-".concat(v.coordinate)},lo(r.props,v,g)),t.renderTickItem(o,m,s?s(v.value,g):v.value))});return $.createElement($e,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,o=r.tick;return!a||!a.length?null:$.createElement($e,{className:me("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Nt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return $.isValidElement(r)?o=$.cloneElement(r,a):ue(r)?o=r(a):o=$.createElement(so,Eu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(j.PureComponent);Zp(Jp,"displayName","PolarRadiusAxis");Zp(Jp,"axisType","radiusAxis");Zp(Jp,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){ey(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zP(r.key),r)}}function tie(e,t,n){return t&&OA(e.prototype,t),n&&OA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(e,t,n){return t=Eh(t),rie(e,LP()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function rie(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aie(e)}function aie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LP=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s0(e,t)}function s0(e,t){return s0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},s0(e,t)}function ey(e,t,n){return t=zP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zP(e){var t=oie(e,"string");return Vl(t)=="symbol"?t:t+""}function oie(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lie=Math.PI/180,jA=1e-5,ty=function(e){function t(){return eie(this,t),nie(this,t,arguments)}return iie(t,e),tie(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,o=a.cy,l=a.radius,s=a.orientation,u=a.tickSize,f=u||8,c=Ke(i,o,l,r.coordinate),h=Ke(i,o,l+(s==="inner"?-1:1)*f,r.coordinate);return{x1:c.x,y1:c.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*lie),o;return i>jA?o=a==="outer"?"start":"end":i<-jA?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=xi(xi({},oe(this.props,!1)),{},{fill:"none"},oe(l,!1));if(s==="circle")return $.createElement(Zx,Ti({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var f=this.props.ticks,c=f.map(function(h){return Ke(a,i,o,h.coordinate)});return $.createElement(wae,Ti({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,s=a.tickFormatter,u=a.stroke,f=oe(this.props,!1),c=oe(o,!1),h=xi(xi({},f),{},{fill:"none"},oe(l,!1)),p=i.map(function(b,v){var g=r.getTickLineCoord(b),y=r.getTickTextAnchor(b),m=xi(xi(xi({textAnchor:y},f),{},{stroke:"none",fill:u},c),{},{index:v,payload:b,x:g.x2,y:g.y2});return $.createElement($e,Ti({className:me("recharts-polar-angle-axis-tick",SP(o)),key:"tick-".concat(b.coordinate)},lo(r.props,b,v)),l&&$.createElement("line",Ti({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,m,s?s(b.value,v):b.value))});return $.createElement($e,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,o=r.axisLine;return i<=0||!a||!a.length?null:$.createElement($e,{className:me("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return $.isValidElement(r)?o=$.cloneElement(r,a):ue(r)?o=r(a):o=$.createElement(so,Ti({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(j.PureComponent);ey(ty,"displayName","PolarAngleAxis");ey(ty,"axisType","angleAxis");ey(ty,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var sie=GN,uie=sie(Object.getPrototypeOf,Object),cie=uie,fie=ga,die=cie,hie=ba,pie="[object Object]",yie=Function.prototype,mie=Object.prototype,BP=yie.toString,vie=mie.hasOwnProperty,gie=BP.call(Object);function bie(e){if(!hie(e)||fie(e)!=pie)return!1;var t=die(e);if(t===null)return!0;var n=vie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&BP.call(n)==gie}var xie=bie;const Sie=Ie(xie);var wie=ga,Oie=ba,jie="[object Boolean]";function Aie(e){return e===!0||e===!1||Oie(e)&&wie(e)==jie}var Eie=Aie;const _ie=Ie(Eie);function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(this,arguments)}function Tie(e,t){return Pie(e)||Mie(e,t)||Nie(e,t)||Cie()}function Cie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nie(e,t){if(e){if(typeof e=="string")return AA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AA(e,t)}}function AA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Pie(e){if(Array.isArray(e))return e}function EA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _A(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){Rie(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 Rie(e,t,n){return t=$ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ie(e){var t=Die(e,"string");return vc(t)=="symbol"?t:t+""}function Die(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TA=function(t,n,r,a,i){var o=r-a,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+i),l+="L ".concat(t+r-o/2-a,",").concat(n+i),l+="L ".concat(t,",").concat(n," Z"),l},kie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lie=function(t){var n=_A(_A({},kie),t),r=j.useRef(),a=j.useState(-1),i=Tie(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,f=n.upperWidth,c=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||h!==+h||f===0&&c===0||h===0)return null;var m=me("recharts-trapezoid",p);return y?$.createElement(ma,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:s,y:u},duration:v,animationEasing:b,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,O=x.height,A=x.x,_=x.y;return $.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:b},$.createElement("path",_h({},oe(n,!0),{className:m,d:TA(A,_,w,S,O),ref:r})))}):$.createElement("g",null,$.createElement("path",_h({},oe(n,!0),{className:m,d:TA(s,u,f,c,h)})))},zie=["option","shapeType","propTransformer","activeClassName","isActive"];function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function Bie(e,t){if(e==null)return{};var n=Uie(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){Iie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iie(e,t,n){return t=Hie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hie(e){var t=qie(e,"string");return gc(t)=="symbol"?t:t+""}function qie(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fie(e,t){return Th(Th({},t),e)}function Gie(e,t){return e==="symbols"}function NA(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return $.createElement(Wx,n);case"trapezoid":return $.createElement(Lie,n);case"sector":return $.createElement(jP,n);case"symbols":if(Gie(t))return $.createElement(yx,n);break;default:return null}}function Yie(e){return j.isValidElement(e)?e.props:e}function UP(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Fie:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=Bie(e,zie),u;if(j.isValidElement(t))u=j.cloneElement(t,Th(Th({},s),Yie(t)));else if(ue(t))u=t(s);else if(Sie(t)&&!_ie(t)){var f=a(t,s);u=$.createElement(NA,{shapeType:n,elementProps:f})}else{var c=s;u=$.createElement(NA,{shapeType:n,elementProps:c})}return l?$.createElement($e,{className:o},u):u}function ny(e,t){return t!=null&&"trapezoids"in e.props}function ry(e,t){return t!=null&&"sectors"in e.props}function bc(e,t){return t!=null&&"points"in e.props}function Kie(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function Xie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Vie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Qie(e,t){var n;return ny(e,t)?n=Kie:ry(e,t)?n=Xie:bc(e,t)&&(n=Vie),n}function Wie(e,t){var n;return ny(e,t)?n="trapezoids":ry(e,t)?n="sectors":bc(e,t)&&(n="points"),n}function Zie(e,t){if(ny(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(ry(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return bc(e,t)?t.payload:{}}function Jie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Wie(n,t),i=Zie(n,t),o=r.filter(function(s,u){var f=Xp(i,s),c=n.props[a].filter(function(b){var v=Qie(n,t);return v(b,t)}),h=n.props[a].indexOf(c[c.length-1]),p=u===h;return f&&p}),l=r.indexOf(o[o.length-1]);return l}var od;function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}function MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fe(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){Kn(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 eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HP(r.key),r)}}function toe(e,t,n){return t&&PA(e.prototype,t),n&&PA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function noe(e,t,n){return t=Ch(t),roe(e,IP()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function roe(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aoe(e)}function aoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IP=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function ioe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},u0(e,t)}function Kn(e,t,n){return t=HP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(e){var t=ooe(e,"string");return Ql(t)=="symbol"?t:t+""}function ooe(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sa=function(e){function t(n){var r;return eoe(this,t),r=noe(this,t,[n]),Kn(r,"pieRef",null),Kn(r,"sectorRefs",[]),Kn(r,"id",Wc("recharts-pie-")),Kn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ue(a)&&a()}),Kn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ue(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return ioe(t,e),toe(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,s=i.dataKey,u=i.valueKey,f=oe(this.props,!1),c=oe(o,!1),h=oe(l,!1),p=o&&o.offsetRadius||20,b=r.map(function(v,g){var y=(v.startAngle+v.endAngle)/2,m=Ke(v.cx,v.cy,v.outerRadius+p,y),x=Fe(Fe(Fe(Fe({},f),v),{},{stroke:"none"},c),{},{index:g,textAnchor:t.getTextAnchor(m.x,v.cx)},m),w=Fe(Fe(Fe(Fe({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:g,points:[Ke(v.cx,v.cy,v.outerRadius,y),m]}),S=s;return ve(s)&&ve(u)?S="value":ve(s)&&(S=u),$.createElement($e,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(g)},l&&t.renderLabelLineItem(l,w,"line"),t.renderLabelItem(o,x,Yt(v,S)))});return $.createElement($e,{className:"recharts-pie-labels"},b)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,s=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var c=a.isActiveIndex(f),h=s&&a.hasActiveIndex()?s:null,p=c?o:h,b=Fe(Fe({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return $.createElement($e,Zo({ref:function(g){g&&!a.sectorRefs.includes(g)&&a.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},lo(a.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),$.createElement(UP,Zo({option:p,isActive:c,shapeType:"sector"},b)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,s=a.animationDuration,u=a.animationEasing,f=a.animationId,c=this.state,h=c.prevSectors,p=c.prevIsAnimationActive;return $.createElement(ma,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var v=b.t,g=[],y=i&&i[0],m=y.startAngle;return i.forEach(function(x,w){var S=h&&h[w],O=w>0?Nn(x,"paddingAngle",0):0;if(S){var A=Ea(S.endAngle-S.startAngle,x.endAngle-x.startAngle),_=Fe(Fe({},x),{},{startAngle:m+O,endAngle:m+A(v)+O});g.push(_),m=_.endAngle}else{var T=x.endAngle,M=x.startAngle,L=Ea(0,T-M),E=L(v),N=Fe(Fe({},x),{},{startAngle:m+O,endAngle:m+E+O});g.push(N),m=N.endAngle}}),$.createElement($e,null,r.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Xp(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,s=a.label,u=a.cx,f=a.cy,c=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!K(u)||!K(f)||!K(c)||!K(h))return null;var v=me("recharts-pie",l);return $.createElement($e,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),Nt.renderCallByParent(this.props,null,!1),(!p||b)&&ai.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if($.isValidElement(r))return $.cloneElement(r,a);if(ue(r))return r(a);var o=me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return $.createElement(Xg,Zo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if($.isValidElement(r))return $.cloneElement(r,a);var o=i;if(ue(r)&&(o=r(a),$.isValidElement(o)))return o;var l=me("recharts-pie-label-text",typeof r!="boolean"&&!ue(r)?r.className:"");return $.createElement(so,Zo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);od=Sa;Kn(Sa,"displayName","Pie");Kn(Sa,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ns.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Kn(Sa,"parseDeltaAngle",function(e,t){var n=Zt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Kn(Sa,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Wn(n,zp);return t&&t.length?t.map(function(i,o){return Fe(Fe(Fe({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Fe(Fe({},r),i.props)}):[]});Kn(Sa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=xP(a,i),l=r+Jt(e.cx,a,a/2),s=n+Jt(e.cy,i,i/2),u=Jt(e.innerRadius,o,0),f=Jt(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:f,maxRadius:c}});Kn(Sa,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Fe(Fe({},t.type.defaultProps),t.props):t.props,a=od.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,f=r.nameKey,c=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),b=od.parseCoordinateOfPie(r,n),v=od.parseDeltaAngle(o,l),g=Math.abs(v),y=u;ve(u)&&ve(c)?(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):ve(u)&&(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=c);var m=a.filter(function(_){return Yt(_,y,0)!==0}).length,x=(g>=360?m:m-1)*s,w=g-m*p-x,S=a.reduce(function(_,T){var M=Yt(T,y,0);return _+(K(M)?M:0)},0),O;if(S>0){var A;O=a.map(function(_,T){var M=Yt(_,y,0),L=Yt(_,f,T),E=(K(M)?M:0)/S,N;T?N=A.endAngle+Zt(v)*s*(M!==0?1:0):N=o;var D=N+Zt(v)*((M!==0?p:0)+E*w),k=(N+D)/2,R=(b.innerRadius+b.outerRadius)/2,z=[{name:L,value:M,payload:_,dataKey:y,type:h}],B=Ke(b.cx,b.cy,R,k);return A=Fe(Fe(Fe({percent:E,cornerRadius:i,name:L,tooltipPayload:z,midAngle:k,middleRadius:R,tooltipPosition:B},_),b),{},{value:Yt(_,y),startAngle:N,endAngle:D,payload:_,paddingAngle:Zt(v)*s}),A})}return Fe(Fe({},b),{},{sectors:O,data:a})});var loe=Math.ceil,soe=Math.max;function uoe(e,t,n,r){for(var a=-1,i=soe(loe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var coe=uoe,foe=uM,RA=1/0,doe=17976931348623157e292;function hoe(e){if(!e)return e===0?e:0;if(e=foe(e),e===RA||e===-RA){var t=e<0?-1:1;return t*doe}return e===e?e:0}var poe=hoe,yoe=coe,moe=Lp,Tm=poe;function voe(e){return function(t,n,r){return r&&typeof r!="number"&&moe(t,n,r)&&(n=r=void 0),t=Tm(t),n===void 0?(n=t,t=0):n=Tm(n),r=r===void 0?t<n?1:-1:Tm(r),yoe(t,n,r,e)}}var goe=voe,boe=goe,xoe=boe(),Soe=xoe;const Nh=Ie(Soe);function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?$A(Object(n),!0).forEach(function(r){qP(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 qP(e,t,n){return t=woe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function woe(e){var t=Ooe(e,"string");return xc(t)=="symbol"?t:t+""}function Ooe(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var joe=["Webkit","Moz","O","ms"],Aoe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=joe.reduce(function(i,o){return DA(DA({},i),{},qP({},o+r,n))},{});return a[t]=n,a};function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cm(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){vn(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 Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GP(r.key),r)}}function _oe(e,t,n){return t&&LA(e.prototype,t),n&&LA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Toe(e,t,n){return t=Ph(t),Coe(e,FP()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function Coe(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Noe(e)}function Noe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FP=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function Moe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c0(e,t)}function c0(e,t){return c0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},c0(e,t)}function vn(e,t,n){return t=GP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GP(e){var t=Poe(e,"string");return Wl(t)=="symbol"?t:t+""}function Poe(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Roe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=wu().domain(Nh(0,s)).range([i,i+o-l]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},zA=function(t){return t.changedTouches&&!!t.changedTouches.length},Zl=function(e){function t(n){var r;return Eoe(this,t),r=Toe(this,t,[n]),vn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),vn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),vn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),r.detachDragEndListener()}),vn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),vn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),vn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),vn(r,"handleSlideDragStart",function(a){var i=zA(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Moe(t,e),_oe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,f=u.length-1,c=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,c),b=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:b===f?f:b-b%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=Yt(i[r],l,r);return ue(o)?o(s,r):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,s=this.props,u=s.x,f=s.width,c=s.travellerWidth,h=s.startIndex,p=s.endIndex,b=s.onChange,v=r.pageX-i;v>0?v=Math.min(v,u+f-c-l,u+f-c-o):v<0&&(v=Math.max(v,u-o,u-l));var g=this.getIndex({startX:o+v,endX:l+v});(g.startIndex!==h||g.endIndex!==p)&&b&&b(g),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=zA(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,s=a.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,b=f.onChange,v=f.gap,g=f.data,y={startX:this.state.startX,endX:this.state.endX},m=r.pageX-i;m>0?m=Math.min(m,c+h-p-u):m<0&&(m=Math.max(m,c-u)),y[o]=u+m;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,O=function(){var _=g.length-1;return o==="startX"&&(l>s?w%v===0:S%v===0)||l<s&&S===_||o==="endX"&&(l>s?S%v===0:w%v===0)||l>s&&S===_};this.setState(vn(vn({},o,u+m),"brushMoveStartX",r.pageX),function(){b&&O()&&b(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,f=this.state[a],c=l.indexOf(f);if(c!==-1){var h=c+r;if(!(h===-1||h>=l.length)){var p=l[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(vn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return $.createElement("rect",{stroke:u,fill:s,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.data,u=r.children,f=r.padding,c=j.Children.only(u);return c?$.cloneElement(c,{x:a,y:i,width:o,height:l,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,f=s.travellerWidth,c=s.height,h=s.traveller,p=s.ariaLabel,b=s.data,v=s.startIndex,g=s.endIndex,y=Math.max(r,this.props.x),m=Cm(Cm({},oe(this.props,!1)),{},{x:y,y:u,width:f,height:c}),x=p||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[g])===null||o===void 0?void 0:o.name);return $.createElement($e,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),l.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,m))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,c=Math.max(Math.abs(a-r)-u,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,f=this.state,c=f.startX,h=f.endX,p=5,b={pointerEvents:"none",fill:u};return $.createElement($e,{className:"recharts-brush-texts"},$.createElement(so,Mh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+l/2},b),this.getTextOfTick(a)),$.createElement(so,Mh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+s+p,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,o=r.children,l=r.x,s=r.y,u=r.width,f=r.height,c=r.alwaysShowText,h=this.state,p=h.startX,b=h.endX,v=h.isTextActive,g=h.isSlideMoving,y=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!K(l)||!K(s)||!K(u)||!K(f)||u<=0||f<=0)return null;var x=me("recharts-brush",i),w=$.Children.count(o)===1,S=Aoe("userSelect","none");return $.createElement($e,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,b),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(b,"endX"),(v||g||y||m||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(i+l/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),$.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return $.isValidElement(r)?i=$.cloneElement(r,a):ue(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,f=r.startIndex,c=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Cm({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Roe({data:i,width:o,x:l,travellerWidth:s,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||s!==a.prevTravellerWidth)){a.scale.range([l,l+o-s]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,o=0,l=i-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>a?l=s:o=s}return a>=r[l]?l:o}}])}(j.PureComponent);vn(Zl,"displayName","Brush");vn(Zl,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var $oe=Ox;function Doe(e,t){var n;return $oe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var koe=Doe,Loe=LN,zoe=di,Boe=koe,Uoe=yn,Ioe=Lp;function Hoe(e,t,n){var r=Uoe(e)?Loe:Boe;return n&&Ioe(e,t,n)&&(t=void 0),r(e,zoe(t))}var qoe=Hoe;const Foe=Ie(qoe);var _r=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},BA=aM;function Goe(e,t,n){t=="__proto__"&&BA?BA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yoe=Goe,Koe=Yoe,Xoe=nM,Voe=di;function Qoe(e,t){var n={};return t=Voe(t),Xoe(e,function(r,a,i){Koe(n,a,t(r,a,i))}),n}var Woe=Qoe;const Zoe=Ie(Woe);function Joe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var ele=Joe,tle=Ox;function nle(e,t){var n=!0;return tle(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var rle=nle,ale=ele,ile=rle,ole=di,lle=yn,sle=Lp;function ule(e,t,n){var r=lle(e)?ale:ile;return n&&sle(e,t,n)&&(t=void 0),r(e,ole(t))}var cle=ule;const fle=Ie(cle);var dle=["x","y"];function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function UA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(n),!0).forEach(function(r){hle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hle(e,t,n){return t=ple(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ple(e){var t=yle(e,"string");return Sc(t)=="symbol"?t:t+""}function yle(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e,t){if(e==null)return{};var n=vle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gle(e,t){var n=e.x,r=e.y,a=mle(e,dle),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),f=parseInt(u,10),c="".concat(t.width||a.width),h=parseInt(c,10);return Js(Js(Js(Js(Js({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function IA(e){return $.createElement(UP,f0({shapeType:"rectangle",propTransformer:gle,activeClassName:"recharts-active-bar"},e))}var ble=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=K(r)||zI(r);return i?t(r,a):(i||co(),n)}},xle=["value","background"],YP;function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function Sle(e,t){if(e==null)return{};var n=wle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(this,arguments)}function HA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ft(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){Ya(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 Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XP(r.key),r)}}function jle(e,t,n){return t&&qA(e.prototype,t),n&&qA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ale(e,t,n){return t=$h(t),Ele(e,KP()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function Ele(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _le(e)}function _le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KP=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function Tle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d0(e,t)}function d0(e,t){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},d0(e,t)}function Ya(e,t,n){return t=XP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XP(e){var t=Cle(e,"string");return Jl(t)=="symbol"?t:t+""}function Cle(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oo=function(e){function t(){var n;Ole(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Ale(this,t,[].concat(a)),Ya(n,"state",{isAnimationFinished:!1}),Ya(n,"id",Wc("recharts-bar-")),Ya(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ya(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return Tle(t,e),jle(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,f=oe(this.props,!1);return r&&r.map(function(c,h){var p=h===s,b=p?u:o,v=ft(ft(ft({},f),c),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return $.createElement($e,Rh({className:"recharts-bar-rectangle"},lo(a.props,c,h),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(h)}),$.createElement(IA,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,f=a.animationEasing,c=a.animationId,h=this.state.prevData;return $.createElement(ma,{begin:s,duration:u,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var b=p.t,v=i.map(function(g,y){var m=h&&h[y];if(m){var x=Ea(m.x,g.x),w=Ea(m.y,g.y),S=Ea(m.width,g.width),O=Ea(m.height,g.height);return ft(ft({},g),{},{x:x(b),y:w(b),width:S(b),height:O(b)})}if(o==="horizontal"){var A=Ea(0,g.height),_=A(b);return ft(ft({},g),{},{y:g.y+g.height-_,height:_})}var T=Ea(0,g.width),M=T(b);return ft(ft({},g),{},{width:M})});return $.createElement($e,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Xp(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,s=oe(this.props.background,!1);return i.map(function(u,f){u.value;var c=u.background,h=Sle(u,xle);if(!c)return null;var p=ft(ft(ft(ft(ft({},h),{},{fill:"#eee"},c),s),lo(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return $.createElement(IA,Rh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===l},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,s=i.yAxis,u=i.layout,f=i.children,c=Wn(f,Wp);if(!c)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(g,y){var m=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:m,errorVal:Yt(g,y)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return $.createElement($e,b,c.map(function(v){return $.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:s,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,s=r.yAxis,u=r.left,f=r.top,c=r.width,h=r.height,p=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,y=me("recharts-bar",o),m=l&&l.allowDataOverflow,x=s&&s.allowDataOverflow,w=m||x,S=ve(v)?this.id:v;return $.createElement($e,{className:y},m||x?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(S)},$.createElement("rect",{x:m?u:u-c/2,y:x?f:f-h/2,width:m?c:c*2,height:x?h:h*2}))):null,$.createElement($e,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||g)&&ai.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(j.PureComponent);YP=Oo;Ya(Oo,"displayName","Bar");Ya(Oo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ns.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ya(Oo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=rte(r,n);if(!p)return null;var b=t.layout,v=n.type.defaultProps,g=v!==void 0?ft(ft({},v),n.props):n.props,y=g.dataKey,m=g.children,x=g.minPointSize,w=b==="horizontal"?o:i,S=u?w.scale.domain():null,O=cte({numericAxis:w}),A=Wn(m,zp),_=c.map(function(T,M){var L,E,N,D,k,R;u?L=ate(u[f+M],S):(L=Yt(T,y),Array.isArray(L)||(L=[O,L]));var z=ble(x,YP.defaultProps.minPointSize)(L[1],M);if(b==="horizontal"){var B,q=[o.scale(L[0]),o.scale(L[1])],F=q[0],Q=q[1];E=Dj({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:T,index:M}),N=(B=Q??F)!==null&&B!==void 0?B:void 0,D=p.size;var G=F-Q;if(k=Number.isNaN(G)?0:G,R={x:E,y:o.y,width:D,height:o.height},Math.abs(z)>0&&Math.abs(k)<Math.abs(z)){var ee=Zt(k||z)*(Math.abs(z)-Math.abs(k));N-=ee,k+=ee}}else{var ye=[i.scale(L[0]),i.scale(L[1])],ke=ye[0],fe=ye[1];if(E=ke,N=Dj({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:T,index:M}),D=fe-ke,k=p.size,R={x:i.x,y:N,width:i.width,height:k},Math.abs(z)>0&&Math.abs(D)<Math.abs(z)){var Rt=Zt(D||z)*(Math.abs(z)-Math.abs(D));D+=Rt}}return ft(ft(ft({},T),{},{x:E,y:N,width:D,height:k,value:u?L:L[1],payload:T,background:R},A&&A[M]&&A[M].props),{},{tooltipPayload:[gP(n,T)],tooltipPosition:{x:E+D/2,y:N+k/2}})});return ft({data:_,layout:b},h)});function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VP(r.key),r)}}function Mle(e,t,n){return t&&FA(e.prototype,t),n&&FA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lr(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){ay(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 ay(e,t,n){return t=VP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e){var t=Ple(e,"string");return wc(t)=="symbol"?t:t+""}function Ple(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rle=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,f=Object.keys(n),c={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},h=!!bn(u,Oo);return f.reduce(function(p,b){var v=n[b],g=v.orientation,y=v.domain,m=v.padding,x=m===void 0?{}:m,w=v.mirror,S=v.reversed,O="".concat(g).concat(w?"Mirror":""),A,_,T,M,L;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=y[1]-y[0],N=1/0,D=v.categoricalDomain.sort(II);if(D.forEach(function(ye,ke){ke>0&&(N=Math.min((ye||0)-(D[ke-1]||0),N))}),Number.isFinite(N)){var k=N/E,R=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=k*R/2),v.padding==="no-gap"){var z=Jt(t.barCategoryGap,k*R),B=k*R/2;A=B-z-(B-z)/R*z}}}a==="xAxis"?_=[r.left+(x.left||0)+(A||0),r.left+r.width-(x.right||0)-(A||0)]:a==="yAxis"?_=s==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(A||0),r.top+r.height-(x.bottom||0)-(A||0)]:_=v.range,S&&(_=[_[1],_[0]]);var q=pP(v,i,h),F=q.scale,Q=q.realScaleType;F.domain(y).range(_),yP(F);var G=mP(F,lr(lr({},v),{},{realScaleType:Q}));a==="xAxis"?(L=g==="top"&&!w||g==="bottom"&&w,T=r.left,M=c[O]-L*v.height):a==="yAxis"&&(L=g==="left"&&!w||g==="right"&&w,T=c[O]-L*v.width,M=r.top);var ee=lr(lr(lr({},v),G),{},{realScaleType:Q,x:T,y:M,scale:F,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return ee.bandSize=vh(ee,G),!v.hide&&a==="xAxis"?c[O]+=(L?-1:1)*ee.height:v.hide||(c[O]+=(L?-1:1)*ee.width),lr(lr({},p),{},ay({},b,ee))},{})},QP=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},$le=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return QP({x:n,y:r},{x:a,y:i})},WP=function(){function e(t){Nle(this,e),this.scale=t}return Mle(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(a){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();ay(WP,"EPS",1e-4);var Jx=function(t){var n=Object.keys(t).reduce(function(r,a){return lr(lr({},r),{},ay({},a,WP.create(t[a])))},{});return lr(lr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Zoe(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return fle(a,function(i,o){return n[o].isInRange(i)})}})};function Dle(e){return(e%180+180)%180}var kle=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Dle(a),o=i*Math.PI/180,l=Math.atan(r/n),s=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(s)},Lle=FU(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),ZP=j.createContext(void 0),JP=j.createContext(void 0),eR=j.createContext(void 0),zle=j.createContext({}),tR=j.createContext(void 0),nR=j.createContext(0),rR=j.createContext(0),YA=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,f=Lle(i);return $.createElement(ZP.Provider,{value:r},$.createElement(JP.Provider,{value:a},$.createElement(zle.Provider,{value:i},$.createElement(eR.Provider,{value:f},$.createElement(tR.Provider,{value:o},$.createElement(nR.Provider,{value:u},$.createElement(rR.Provider,{value:s},l)))))))},Ble=function(){return j.useContext(tR)},aR=function(t){var n=j.useContext(ZP);n==null&&co();var r=n[t];return r==null&&co(),r},iR=function(t){var n=j.useContext(JP);n==null&&co();var r=n[t];return r==null&&co(),r},Ule=function(){var t=j.useContext(eR);return t},oR=function(){return j.useContext(rR)},lR=function(){return j.useContext(nR)};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Ile(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uR(r.key),r)}}function qle(e,t,n){return t&&Hle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fle(e,t,n){return t=Dh(t),Gle(e,sR()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function Gle(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yle(e)}function Yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sR=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function Kle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},h0(e,t)}function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XA(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){e1(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 e1(e,t,n){return t=uR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=Xle(e,"string");return es(t)=="symbol"?t:t+""}function Xle(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vle(e,t){return Jle(e)||Zle(e,t)||Wle(e,t)||Qle()}function Qle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wle(e,t){if(e){if(typeof e=="string")return VA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VA(e,t)}}function VA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Jle(e){if(Array.isArray(e))return e}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}var ese=function(t,n){var r;return $.isValidElement(t)?r=$.cloneElement(t,n):ue(t)?r=t(n):r=$.createElement("line",p0({},n,{className:"recharts-reference-line-line"})),r},tse=function(t,n,r,a,i,o,l,s,u){var f=i.x,c=i.y,h=i.width,p=i.height;if(r){var b=u.y,v=t.y.apply(b,{position:o});if(_r(u,"discard")&&!t.y.isInRange(v))return null;var g=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?g.reverse():g}if(n){var y=u.x,m=t.x.apply(y,{position:o});if(_r(u,"discard")&&!t.x.isInRange(m))return null;var x=[{x:m,y:c+p},{x:m,y:c}];return l==="top"?x.reverse():x}if(a){var w=u.segment,S=w.map(function(O){return t.apply(O,{position:o})});return _r(u,"discard")&&Foe(S,function(O){return!t.isInRange(O)})?null:S}return null};function nse(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=Ble(),f=aR(a),c=iR(i),h=Ule();if(!u||!h)return null;aa(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Jx({x:f.scale,y:c.scale}),b=wt(t),v=wt(n),g=r&&r.length===2,y=tse(p,b,v,g,h,e.position,f.orientation,c.orientation,e);if(!y)return null;var m=Vle(y,2),x=m[0],w=x.x,S=x.y,O=m[1],A=O.x,_=O.y,T=_r(e,"hidden")?"url(#".concat(u,")"):void 0,M=XA(XA({clipPath:T},oe(e,!0)),{},{x1:w,y1:S,x2:A,y2:_});return $.createElement($e,{className:me("recharts-reference-line",l)},ese(o,M),Nt.renderCallByParent(e,$le({x1:w,y1:S,x2:A,y2:_})))}var t1=function(e){function t(){return Ile(this,t),Fle(this,t,arguments)}return Kle(t,e),qle(t,[{key:"render",value:function(){return $.createElement(nse,this.props)}}])}($.Component);e1(t1,"displayName","ReferenceLine");e1(t1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function QA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function WA(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){iy(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 rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fR(r.key),r)}}function ise(e,t,n){return t&&ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ose(e,t,n){return t=kh(t),lse(e,cR()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function lse(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sse(e)}function sse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cR=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function use(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},m0(e,t)}function iy(e,t,n){return t=fR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e){var t=cse(e,"string");return ts(t)=="symbol"?t:t+""}function cse(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fse=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=Jx({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return _r(t,"discard")&&!o.isInRange(l)?null:l},oy=function(e){function t(){return rse(this,t),ose(this,t,arguments)}return use(t,e),ise(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=wt(a),f=wt(i);if(aa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=fse(this.props);if(!c)return null;var h=c.x,p=c.y,b=this.props,v=b.shape,g=b.className,y=_r(this.props,"hidden")?"url(#".concat(s,")"):void 0,m=WA(WA({clipPath:y},oe(this.props,!0)),{},{cx:h,cy:p});return $.createElement($e,{className:me("recharts-reference-dot",g)},t.renderDot(v,m),Nt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}($.Component);iy(oy,"displayName","ReferenceDot");iy(oy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});iy(oy,"renderDot",function(e,t){var n;return $.isValidElement(e)?n=$.cloneElement(e,t):ue(e)?n=e(t):n=$.createElement(Zx,y0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JA(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){ly(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 dse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hR(r.key),r)}}function pse(e,t,n){return t&&hse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yse(e,t,n){return t=Lh(t),mse(e,dR()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function mse(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vse(e)}function vse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dR=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function gse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g0(e,t)}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},g0(e,t)}function ly(e,t,n){return t=hR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hR(e){var t=bse(e,"string");return ns(t)=="symbol"?t:t+""}function bse(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xse=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,f=i.xAxis,c=i.yAxis;if(!f||!c)return null;var h=Jx({x:f.scale,y:c.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(s,{position:"start"}):h.y.rangeMin},b={x:n?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return _r(i,"discard")&&(!h.isInRange(p)||!h.isInRange(b))?null:QP(p,b)},sy=function(e){function t(){return dse(this,t),yse(this,t,arguments)}return gse(t,e),pse(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,f=r.clipPathId;aa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=wt(a),h=wt(i),p=wt(o),b=wt(l),v=this.props.shape;if(!c&&!h&&!p&&!b&&!v)return null;var g=xse(c,h,p,b,this.props);if(!g&&!v)return null;var y=_r(this.props,"hidden")?"url(#".concat(f,")"):void 0;return $.createElement($e,{className:me("recharts-reference-area",s)},t.renderRect(v,JA(JA({clipPath:y},oe(this.props,!0)),g)),Nt.renderCallByParent(this.props,g))}}])}($.Component);ly(sy,"displayName","ReferenceArea");ly(sy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ly(sy,"renderRect",function(e,t){var n;return $.isValidElement(e)?n=$.cloneElement(e,t):ue(e)?n=e(t):n=$.createElement(Wx,v0({},t,{className:"recharts-reference-area-rect"})),n});function pR(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Sse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return kle(r,n)}function wse(e,t,n){var r=n==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:r?a:i,end:r?a+o:i+l}:{start:r?a+o:i+l,end:r?a:i}}function zh(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function Ose(e,t){return pR(e,t+1)}function jse(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,f=o,c=function(){var b=r==null?void 0:r[s];if(b===void 0)return{v:pR(r,u)};var v=s,g,y=function(){return g===void 0&&(g=n(b,v)),g},m=b.coordinate,x=s===0||zh(e,m,y,f,l);x||(s=0,f=o,u+=1),x&&(f=m+e*(y()/2+a),s+=u)},h;u<=i.length;)if(h=c(),h)return h.v;return[]}function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){Ase(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 Ase(e,t,n){return t=Ese(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ese(e){var t=_se(e,"string");return Oc(t)=="symbol"?t:t+""}function _se(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tse(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,s=t.end,u=function(h){var p=i[h],b,v=function(){return b===void 0&&(b=n(p,h)),b};if(h===o-1){var g=e*(p.coordinate+e*v()/2-s);i[h]=p=Gt(Gt({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else i[h]=p=Gt(Gt({},p),{},{tickCoord:p.coordinate});var y=zh(e,p.tickCoord,v,l,s);y&&(s=p.tickCoord-e*(v()/2+a),i[h]=Gt(Gt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return i}function Cse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var f=r[l-1],c=n(f,l-1),h=e*(f.coordinate+e*c/2-u);o[l-1]=f=Gt(Gt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=zh(e,f.tickCoord,function(){return c},s,u);p&&(u=f.tickCoord-e*(c/2+a),o[l-1]=Gt(Gt({},f),{},{isShow:!0}))}for(var b=i?l-1:l,v=function(m){var x=o[m],w,S=function(){return w===void 0&&(w=n(x,m)),w};if(m===0){var O=e*(x.coordinate-e*S()/2-s);o[m]=x=Gt(Gt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[m]=x=Gt(Gt({},x),{},{tickCoord:x.coordinate});var A=zh(e,x.tickCoord,S,s,u);A&&(s=x.tickCoord+e*(S()/2+a),o[m]=Gt(Gt({},x),{},{isShow:!0}))},g=0;g<b;g++)v(g);return o}function Nse(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!a||!a.length||!r)return[];if(K(s)||Ns.isSsr)return Ose(a,typeof s=="number"&&K(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=f&&p==="width"?Su(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(x,w){var S=ue(u)?u(x.value,w):x.value;return p==="width"?Sse(Su(S,{fontSize:t,letterSpacing:n}),b,c):Su(S,{fontSize:t,letterSpacing:n})[p]},g=a.length>=2?Zt(a[1].coordinate-a[0].coordinate):1,y=wse(i,g,p);return s==="equidistantPreserveStart"?jse(g,y,v,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=Cse(g,y,v,a,o,s==="preserveStartEnd"):h=Tse(g,y,v,a,o),h.filter(function(m){return m.isShow}))}var Mse=["viewBox"],Pse=["viewBox"],Rse=["ticks"];function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function t2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){n1(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 Nm(e,t){if(e==null)return{};var n=$se(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $se(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mR(r.key),r)}}function kse(e,t,n){return t&&n2(e.prototype,t),n&&n2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lse(e,t,n){return t=Bh(t),zse(e,yR()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function zse(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bse(e)}function Bse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yR=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function Use(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b0(e,t)}function b0(e,t){return b0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},b0(e,t)}function n1(e,t,n){return t=mR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mR(e){var t=Ise(e,"string");return rs(t)=="symbol"?t:t+""}function Ise(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uy=function(e){function t(n){var r;return Dse(this,t),r=Lse(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Use(t,e),kse(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Nm(r,Mse),l=this.props,s=l.viewBox,u=Nm(l,Pse);return!sl(i,s)||!sl(o,u)||!sl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,o=a.y,l=a.width,s=a.height,u=a.orientation,f=a.tickSize,c=a.mirror,h=a.tickMargin,p,b,v,g,y,m,x=c?-1:1,w=r.tickSize||f,S=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,g=o+ +!c*s,v=g-x*w,m=v-x*h,y=S;break;case"left":v=g=r.coordinate,b=i+ +!c*l,p=b-x*w,y=p-x*h,m=S;break;case"right":v=g=r.coordinate,b=i+ +c*l,p=b+x*w,y=p+x*h,m=S;break;default:p=b=r.coordinate,g=o+ +c*s,v=g+x*w,m=v+x*h,y=S;break}return{line:{x1:p,y1:v,x2:b,y2:g},tick:{x:y,y:m}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.orientation,u=r.mirror,f=r.axisLine,c=gt(gt(gt({},oe(this.props,!1)),oe(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);c=gt(gt({},c),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);c=gt(gt({},c),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return $.createElement("line",Jo({},c,{className:me("recharts-cartesian-axis-line",Nn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,f=l.tick,c=l.tickFormatter,h=l.unit,p=Nse(gt(gt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=oe(this.props,!1),y=oe(f,!1),m=gt(gt({},g),{},{fill:"none"},oe(s,!1)),x=p.map(function(w,S){var O=o.getTickLineCoord(w),A=O.line,_=O.tick,T=gt(gt(gt(gt({textAnchor:b,verticalAnchor:v},g),{},{stroke:"none",fill:u},y),_),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:c});return $.createElement($e,Jo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},lo(o.props,w,S)),s&&$.createElement("line",Jo({},m,A,{className:me("recharts-cartesian-axis-tick-line",Nn(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(ue(c)?c(w.value,S):w.value).concat(h||"")))});return $.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,s=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var c=this.props,h=c.ticks,p=Nm(c,Rse),b=h;return ue(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:$.createElement($e,{className:me("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=me(a.className,"recharts-cartesian-axis-tick-value");return $.isValidElement(r)?o=$.cloneElement(r,gt(gt({},a),{},{className:l})):ue(r)?o=r(gt(gt({},a),{},{className:l})):o=$.createElement(so,Jo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(j.Component);n1(uy,"displayName","CartesianAxis");n1(uy,"defaultProps",{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"});function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bR(r.key),r)}}function Fse(e,t,n){return t&&qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gse(e,t,n){return t=Uh(t),Yse(e,vR()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function Yse(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kse(e)}function Kse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vR=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function Xse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x0(e,t)}function x0(e,t){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},x0(e,t)}function gR(e,t,n){return t=bR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bR(e){var t=Vse(e,"string");return as(t)=="symbol"?t:t+""}function Vse(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}function Qse(e){var t=e.xAxisId,n=oR(),r=lR(),a=aR(t);return a==null?null:j.createElement(uy,S0({},a,{className:me("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return $i(o,!0)}}))}var cy=function(e){function t(){return Hse(this,t),Gse(this,t,arguments)}return Xse(t,e),Fse(t,[{key:"render",value:function(){return j.createElement(Qse,this.props)}}])}(j.Component);gR(cy,"displayName","XAxis");gR(cy,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function is(e){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function Wse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wR(r.key),r)}}function Jse(e,t,n){return t&&Zse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eue(e,t,n){return t=Ih(t),tue(e,xR()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function tue(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nue(e)}function nue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xR=function(){return!!e})()}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function rue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w0(e,t)}function w0(e,t){return w0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},w0(e,t)}function SR(e,t,n){return t=wR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(e){var t=aue(e,"string");return is(t)=="symbol"?t:t+""}function aue(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}var iue=function(t){var n=t.yAxisId,r=oR(),a=lR(),i=iR(n);return i==null?null:j.createElement(uy,O0({},i,{className:me("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return $i(l,!0)}}))},fy=function(e){function t(){return Wse(this,t),eue(this,t,arguments)}return rue(t,e),Jse(t,[{key:"render",value:function(){return j.createElement(iue,this.props)}}])}(j.Component);SR(fy,"displayName","YAxis");SR(fy,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function r2(e){return uue(e)||sue(e)||lue(e)||oue()}function oue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lue(e,t){if(e){if(typeof e=="string")return j0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j0(e,t)}}function sue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uue(e){if(Array.isArray(e))return j0(e)}function j0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A0=function(t,n,r,a,i){var o=Wn(t,t1),l=Wn(t,oy),s=[].concat(r2(o),r2(l)),u=Wn(t,sy),f="".concat(a,"Id"),c=a[0],h=n;if(s.length&&(h=s.reduce(function(v,g){if(g.props[f]===r&&_r(g.props,"extendDomain")&&K(g.props[c])){var y=g.props[c];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},h)),u.length){var p="".concat(c,"1"),b="".concat(c,"2");h=u.reduce(function(v,g){if(g.props[f]===r&&_r(g.props,"extendDomain")&&K(g.props[p])&&K(g.props[b])){var y=g.props[p],m=g.props[b];return[Math.min(v[0],y,m),Math.max(v[1],y,m)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,g){return K(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},h)),h},OR={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(s,u,f){this.fn=s,this.context=u,this.once=f||!1}function i(s,u,f,c,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new a(f,c||s,h),b=n?n+u:u;return s._events[b]?s._events[b].fn?s._events[b]=[s._events[b],p]:s._events[b].push(p):(s._events[b]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var h=0,p=c.length,b=new Array(p);h<p;h++)b[h]=c[h].fn;return b},l.prototype.listenerCount=function(u){var f=n?n+u:u,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(u,f,c,h,p,b){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,m,x;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,h),!0;case 5:return g.fn.call(g.context,f,c,h,p),!0;case 6:return g.fn.call(g.context,f,c,h,p,b),!0}for(x=1,m=new Array(y-1);x<y;x++)m[x-1]=arguments[x];g.fn.apply(g.context,m)}else{var w=g.length,S;for(x=0;x<w;x++)switch(g[x].once&&this.removeListener(u,g[x].fn,void 0,!0),y){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,f);break;case 3:g[x].fn.call(g[x].context,f,c);break;case 4:g[x].fn.call(g[x].context,f,c,h);break;default:if(!m)for(S=1,m=new Array(y-1);S<y;S++)m[S-1]=arguments[S];g[x].fn.apply(g[x].context,m)}}return!0},l.prototype.on=function(u,f,c){return i(this,u,f,c,!1)},l.prototype.once=function(u,f,c){return i(this,u,f,c,!0)},l.prototype.removeListener=function(u,f,c,h){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===f&&(!h||b.once)&&(!c||b.context===c)&&o(this,p);else{for(var v=0,g=[],y=b.length;v<y;v++)(b[v].fn!==f||h&&!b[v].once||c&&b[v].context!==c)&&g.push(b[v]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&o(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(OR);var cue=OR.exports;const fue=Ie(cue);var Mm=new fue,Pm="recharts.syncMouseEvents";function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function due(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jR(r.key),r)}}function pue(e,t,n){return t&&hue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rm(e,t,n){return t=jR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e){var t=yue(e,"string");return jc(t)=="symbol"?t:t+""}function yue(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mue=function(){function e(){due(this,e),Rm(this,"activeIndex",0),Rm(this,"coordinateList",[]),Rm(this,"layout","horizontal")}return pue(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,f=n.offset,c=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,c=i+s+u,h=o+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:c,pageY:h})}}}])}();function vue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&K(r)&&K(a))return!0}return!1}function gue(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function AR(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ke(t,n,r,a),l=Ke(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function bue(e,t,n){var r,a,i,o;if(e==="horizontal")r=t.x,i=r,a=n.top,o=n.top+n.height;else if(e==="vertical")a=t.y,o=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,h=Ke(l,s,u,c),p=Ke(l,s,f,c);r=h.x,a=h.y,i=p.x,o=p.y}else return AR(t);return[{x:r,y:a},{x:i,y:o}]}function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function a2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(r){xue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t,n){return t=Sue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sue(e){var t=wue(e,"string");return Ac(t)=="symbol"?t:t+""}function wue(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oue(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!o||h!=="ScatterChart"&&a!=="axis")return null;var b,v=Xg;if(h==="ScatterChart")b=o,v=Mae;else if(h==="BarChart")b=gue(c,o,s,f),v=Wx;else if(c==="radial"){var g=AR(o),y=g.cx,m=g.cy,x=g.radius,w=g.startAngle,S=g.endAngle;b={cx:y,cy:m,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},v=jP}else b={points:bue(c,o,s)},v=Xg;var O=kf(kf(kf(kf({stroke:"#ccc",pointerEvents:"none"},s),b),oe(p,!1)),{},{payload:l,payloadIndex:u,className:me("recharts-tooltip-cursor",p.className)});return j.isValidElement(p)?j.cloneElement(p,O):j.createElement(v,O)}var jue=["item"],Aue=["children","className","width","height","style","compact","title","desc"];function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},el.apply(this,arguments)}function i2(e,t){return Tue(e)||_ue(e,t)||_R(e,t)||Eue()}function Eue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Tue(e){if(Array.isArray(e))return e}function o2(e,t){if(e==null)return{};var n=Cue(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TR(r.key),r)}}function Pue(e,t,n){return t&&Mue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rue(e,t,n){return t=Hh(t),$ue(e,ER()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function $ue(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Due(e)}function Due(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ER=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function kue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E0(e,t)}function E0(e,t){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},E0(e,t)}function ls(e){return Bue(e)||zue(e)||_R(e)||Lue()}function Lue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return _0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _0(e,t)}}function zue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bue(e){if(Array.isArray(e))return _0(e)}function _0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?l2(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ae(e,t,n){return t=TR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=Uue(e,"string");return os(t)=="symbol"?t:t+""}function Uue(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iue={xAxis:["bottom","top"],yAxis:["left","right"]},Hue={width:"100%",height:"100%"},CR={x:0,y:0};function Lf(e){return e}var que=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Fue=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return U(U(U({},a),Ke(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return U(U(U({},a),Ke(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return CR},dy=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(ls(l),ls(u)):l},[]);return o.length>0?o:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function NR(e){return e==="number"?[0,"auto"]:void 0}var T0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=dy(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;h=ng(p,o.dataKey,a)}else h=c&&c[r]||l[r];return h?[].concat(ls(s),[gP(u,h)]):s},[])},s2=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=que(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,f=Wee(o,l,u,s);if(f>=0&&u){var c=u[f]&&u[f].value,h=T0(t,n,f,c),p=Fue(r,l,f,i);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},Gue=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=hP(f,i);return r.reduce(function(b,v){var g,y=v.type.defaultProps!==void 0?U(U({},v.type.defaultProps),v.props):v.props,m=y.type,x=y.dataKey,w=y.allowDataOverflow,S=y.allowDuplicatedCategory,O=y.scale,A=y.ticks,_=y.includeHidden,T=y[o];if(b[T])return b;var M=dy(t.data,{graphicalItems:a.filter(function(G){var ee,ye=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o];return ye===T}),dataStartIndex:s,dataEndIndex:u}),L=M.length,E,N,D;vue(y.domain,w,m)&&(E=qg(y.domain,null,w),p&&(m==="number"||O!=="auto")&&(D=Ou(M,x,"category")));var k=NR(m);if(!E||E.length===0){var R,z=(R=y.domain)!==null&&R!==void 0?R:k;if(x){if(E=Ou(M,x,m),m==="category"&&p){var B=UI(E);S&&B?(N=E,E=Nh(0,L)):S||(E=zj(z,E,v).reduce(function(G,ee){return G.indexOf(ee)>=0?G:[].concat(ls(G),[ee])},[]))}else if(m==="category")S?E=E.filter(function(G){return G!==""&&!ve(G)}):E=zj(z,E,v).reduce(function(G,ee){return G.indexOf(ee)>=0||ee===""||ve(ee)?G:[].concat(ls(G),[ee])},[]);else if(m==="number"){var q=nte(M,a.filter(function(G){var ee,ye,ke=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o],fe="hide"in G.props?G.props.hide:(ye=G.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return ke===T&&(_||!fe)}),x,i,f);q&&(E=q)}p&&(m==="number"||O!=="auto")&&(D=Ou(M,x,"category"))}else p?E=Nh(0,L):l&&l[T]&&l[T].hasStack&&m==="number"?E=h==="expand"?[0,1]:vP(l[T].stackGroups,s,u):E=dP(M,a.filter(function(G){var ee=o in G.props?G.props[o]:G.type.defaultProps[o],ye="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return ee===T&&(_||!ye)}),m,f,!0);if(m==="number")E=A0(c,E,T,i,A),z&&(E=qg(z,E,w));else if(m==="category"&&z){var F=z,Q=E.every(function(G){return F.indexOf(G)>=0});Q&&(E=F)}}return U(U({},b),{},ae({},T,U(U({},y),{},{axisType:i,domain:E,categoricalDomain:D,duplicateDomain:N,originalDomain:(g=y.domain)!==null&&g!==void 0?g:k,isCategorical:p,layout:f})))},{})},Yue=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=dy(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=hP(f,i),v=-1;return r.reduce(function(g,y){var m=y.type.defaultProps!==void 0?U(U({},y.type.defaultProps),y.props):y.props,x=m[o],w=NR("number");if(!g[x]){v++;var S;return b?S=Nh(0,p):l&&l[x]&&l[x].hasStack?(S=vP(l[x].stackGroups,s,u),S=A0(c,S,x,i)):(S=qg(w,dP(h,r.filter(function(O){var A,_,T=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],M="hide"in O.props?O.props.hide:(_=O.type.defaultProps)===null||_===void 0?void 0:_.hide;return T===x&&!M}),"number",f),a.defaultProps.allowDataOverflow),S=A0(c,S,x,i)),U(U({},g),{},ae({},x,U(U({axisType:i},a.defaultProps),{},{hide:!0,orientation:Nn(Iue,"".concat(i,".").concat(v%2),null),domain:S,originalDomain:w,isCategorical:b,layout:f})))}return g},{})},Kue=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.children,c="".concat(a,"Id"),h=Wn(f,i),p={};return h&&h.length?p=Gue(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Yue(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Xue=function(t){var n=Lo(t),r=$i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:jx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:vh(n,r)}},u2=function(t){var n=t.children,r=t.defaultShowTooltip,a=bn(n,Zl),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Vue=function(t){return!t||!t.length?!1:t.some(function(n){var r=ra(n&&n.type);return r&&r.indexOf("Bar")>=0})},c2=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Que=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,f=r.height,c=r.children,h=r.margin||{},p=bn(c,Zl),b=bn(c,ul),v=Object.keys(s).reduce(function(S,O){var A=s[O],_=A.orientation;return!A.mirror&&!A.hide?U(U({},S),{},ae({},_,S[_]+A.width)):S},{left:h.left||0,right:h.right||0}),g=Object.keys(o).reduce(function(S,O){var A=o[O],_=A.orientation;return!A.mirror&&!A.hide?U(U({},S),{},ae({},_,Nn(S,"".concat(_))+A.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=U(U({},g),v),m=y.bottom;p&&(y.bottom+=p.props.height||Zl.defaultProps.height),b&&n&&(y=ete(y,a,r,n));var x=u-y.left-y.right,w=f-y.top-y.bottom;return U(U({brushBottom:m},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},Wue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},MR=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(y,m){var x=m.graphicalItems,w=m.stackGroups,S=m.offset,O=m.updateId,A=m.dataStartIndex,_=m.dataEndIndex,T=y.barSize,M=y.layout,L=y.barGap,E=y.barCategoryGap,N=y.maxBarSize,D=c2(M),k=D.numericAxisName,R=D.cateAxisName,z=Vue(x),B=[];return x.forEach(function(q,F){var Q=dy(y.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:_}),G=q.type.defaultProps!==void 0?U(U({},q.type.defaultProps),q.props):q.props,ee=G.dataKey,ye=G.maxBarSize,ke=G["".concat(k,"Id")],fe=G["".concat(R,"Id")],Rt={},vt=s.reduce(function($r,mn){var hy=m["".concat(mn.axisType,"Map")],a1=G["".concat(mn.axisType,"Id")];hy&&hy[a1]||mn.axisType==="zAxis"||co();var i1=hy[a1];return U(U({},$r),{},ae(ae({},mn.axisType,i1),"".concat(mn.axisType,"Ticks"),$i(i1)))},Rt),V=vt[R],se=vt["".concat(R,"Ticks")],de=w&&w[ke]&&w[ke].hasStack&&fte(q,w[ke].stackGroups),H=ra(q.type).indexOf("Bar")>=0,Xe=vh(V,se),ge=[],Me=z&&Zee({barSize:T,stackGroups:w,totalSize:Wue(vt,R)});if(H){var J,Le,$t=ve(ye)?N:ye,nn=(J=(Le=vh(V,se,!0))!==null&&Le!==void 0?Le:$t)!==null&&J!==void 0?J:0;ge=Jee({barGap:L,barCategoryGap:E,bandSize:nn!==Xe?nn:Xe,sizeList:Me[fe],maxBarSize:$t}),nn!==Xe&&(ge=ge.map(function($r){return U(U({},$r),{},{position:U(U({},$r.position),{},{offset:$r.position.offset-nn/2})})}))}var mi=q&&q.type&&q.type.getComposedData;mi&&B.push({props:U(U({},mi(U(U({},vt),{},{displayedData:Q,props:y,dataKey:ee,item:q,bandSize:Xe,barPosition:ge,offset:S,stackedData:de,layout:M,dataStartIndex:A,dataEndIndex:_}))),{},ae(ae(ae({key:q.key||"item-".concat(F)},k,vt[k]),R,vt[R]),"animationId",O)),childIndex:ZI(q,y.children),item:q})}),B},p=function(y,m){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,O=y.updateId;if(!Mw({props:x}))return null;var A=x.children,_=x.layout,T=x.stackOffset,M=x.data,L=x.reverseStackOrder,E=c2(_),N=E.numericAxisName,D=E.cateAxisName,k=Wn(A,r),R=ute(M,k,"".concat(N,"Id"),"".concat(D,"Id"),T,L),z=s.reduce(function(G,ee){var ye="".concat(ee.axisType,"Map");return U(U({},G),{},ae({},ye,Kue(x,U(U({},ee),{},{graphicalItems:k,stackGroups:ee.axisType===N&&R,dataStartIndex:w,dataEndIndex:S}))))},{}),B=Que(U(U({},z),{},{props:x,graphicalItems:k}),m==null?void 0:m.legendBBox);Object.keys(z).forEach(function(G){z[G]=f(x,z[G],B,G.replace("Map",""),n)});var q=z["".concat(D,"Map")],F=Xue(q),Q=h(x,U(U({},z),{},{dataStartIndex:w,dataEndIndex:S,updateId:O,graphicalItems:k,stackGroups:R,offset:B}));return U(U({formattedGraphicalItems:Q,graphicalItems:k,offset:B,stackGroups:R},F),z)},b=function(g){function y(m){var x,w,S;return Nue(this,y),S=Rue(this,y,[m]),ae(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(S,"accessibilityManager",new mue),ae(S,"handleLegendBBoxUpdate",function(O){if(O){var A=S.state,_=A.dataStartIndex,T=A.dataEndIndex,M=A.updateId;S.setState(U({legendBBox:O},p({props:S.props,dataStartIndex:_,dataEndIndex:T,updateId:M},U(U({},S.state),{},{legendBBox:O}))))}}),ae(S,"handleReceiveSyncEvent",function(O,A,_){if(S.props.syncId===O){if(_===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(A)}}),ae(S,"handleBrushChange",function(O){var A=O.startIndex,_=O.endIndex;if(A!==S.state.dataStartIndex||_!==S.state.dataEndIndex){var T=S.state.updateId;S.setState(function(){return U({dataStartIndex:A,dataEndIndex:_},p({props:S.props,dataStartIndex:A,dataEndIndex:_,updateId:T},S.state))}),S.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),ae(S,"handleMouseEnter",function(O){var A=S.getMouseInfo(O);if(A){var _=U(U({},A),{},{isTooltipActive:!0});S.setState(_),S.triggerSyncEvent(_);var T=S.props.onMouseEnter;ue(T)&&T(_,O)}}),ae(S,"triggeredAfterMouseMove",function(O){var A=S.getMouseInfo(O),_=A?U(U({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(_),S.triggerSyncEvent(_);var T=S.props.onMouseMove;ue(T)&&T(_,O)}),ae(S,"handleItemMouseEnter",function(O){S.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ae(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ae(S,"handleMouseMove",function(O){O.persist(),S.throttleTriggeredAfterMouseMove(O)}),ae(S,"handleMouseLeave",function(O){S.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};S.setState(A),S.triggerSyncEvent(A);var _=S.props.onMouseLeave;ue(_)&&_(A,O)}),ae(S,"handleOuterEvent",function(O){var A=WI(O),_=Nn(S.props,"".concat(A));if(A&&ue(_)){var T,M;/.*touch.*/i.test(A)?M=S.getMouseInfo(O.changedTouches[0]):M=S.getMouseInfo(O),_((T=M)!==null&&T!==void 0?T:{},O)}}),ae(S,"handleClick",function(O){var A=S.getMouseInfo(O);if(A){var _=U(U({},A),{},{isTooltipActive:!0});S.setState(_),S.triggerSyncEvent(_);var T=S.props.onClick;ue(T)&&T(_,O)}}),ae(S,"handleMouseDown",function(O){var A=S.props.onMouseDown;if(ue(A)){var _=S.getMouseInfo(O);A(_,O)}}),ae(S,"handleMouseUp",function(O){var A=S.props.onMouseUp;if(ue(A)){var _=S.getMouseInfo(O);A(_,O)}}),ae(S,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ae(S,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseDown(O.changedTouches[0])}),ae(S,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseUp(O.changedTouches[0])}),ae(S,"handleDoubleClick",function(O){var A=S.props.onDoubleClick;if(ue(A)){var _=S.getMouseInfo(O);A(_,O)}}),ae(S,"handleContextMenu",function(O){var A=S.props.onContextMenu;if(ue(A)){var _=S.getMouseInfo(O);A(_,O)}}),ae(S,"triggerSyncEvent",function(O){S.props.syncId!==void 0&&Mm.emit(Pm,S.props.syncId,O,S.eventEmitterSymbol)}),ae(S,"applySyncEvent",function(O){var A=S.props,_=A.layout,T=A.syncMethod,M=S.state.updateId,L=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)S.setState(U({dataStartIndex:L,dataEndIndex:E},p({props:S.props,dataStartIndex:L,dataEndIndex:E,updateId:M},S.state)));else if(O.activeTooltipIndex!==void 0){var N=O.chartX,D=O.chartY,k=O.activeTooltipIndex,R=S.state,z=R.offset,B=R.tooltipTicks;if(!z)return;if(typeof T=="function")k=T(B,O);else if(T==="value"){k=-1;for(var q=0;q<B.length;q++)if(B[q].value===O.activeLabel){k=q;break}}var F=U(U({},z),{},{x:z.left,y:z.top}),Q=Math.min(N,F.x+F.width),G=Math.min(D,F.y+F.height),ee=B[k]&&B[k].value,ye=T0(S.state,S.props.data,k),ke=B[k]?{x:_==="horizontal"?B[k].coordinate:Q,y:_==="horizontal"?G:B[k].coordinate}:CR;S.setState(U(U({},O),{},{activeLabel:ee,activeCoordinate:ke,activePayload:ye,activeTooltipIndex:k}))}else S.setState(O)}),ae(S,"renderCursor",function(O){var A,_=S.state,T=_.isTooltipActive,M=_.activeCoordinate,L=_.activePayload,E=_.offset,N=_.activeTooltipIndex,D=_.tooltipAxisBandSize,k=S.getTooltipEventType(),R=(A=O.props.active)!==null&&A!==void 0?A:T,z=S.props.layout,B=O.key||"_recharts-cursor";return $.createElement(Oue,{key:B,activeCoordinate:M,activePayload:L,activeTooltipIndex:N,chartName:n,element:O,isActive:R,layout:z,offset:E,tooltipAxisBandSize:D,tooltipEventType:k})}),ae(S,"renderPolarAxis",function(O,A,_){var T=Nn(O,"type.axisType"),M=Nn(S.state,"".concat(T,"Map")),L=O.type.defaultProps,E=L!==void 0?U(U({},L),O.props):O.props,N=M&&M[E["".concat(T,"Id")]];return j.cloneElement(O,U(U({},N),{},{className:me(T,N.className),key:O.key||"".concat(A,"-").concat(_),ticks:$i(N,!0)}))}),ae(S,"renderPolarGrid",function(O){var A=O.props,_=A.radialLines,T=A.polarAngles,M=A.polarRadius,L=S.state,E=L.radiusAxisMap,N=L.angleAxisMap,D=Lo(E),k=Lo(N),R=k.cx,z=k.cy,B=k.innerRadius,q=k.outerRadius;return j.cloneElement(O,{polarAngles:Array.isArray(T)?T:$i(k,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(M)?M:$i(D,!0).map(function(F){return F.coordinate}),cx:R,cy:z,innerRadius:B,outerRadius:q,key:O.key||"polar-grid",radialLines:_})}),ae(S,"renderLegend",function(){var O=S.state.formattedGraphicalItems,A=S.props,_=A.children,T=A.width,M=A.height,L=S.props.margin||{},E=T-(L.left||0)-(L.right||0),N=cP({children:_,formattedGraphicalItems:O,legendWidth:E,legendContent:u});if(!N)return null;var D=N.item,k=o2(N,jue);return j.cloneElement(D,U(U({},k),{},{chartWidth:T,chartHeight:M,margin:L,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ae(S,"renderTooltip",function(){var O,A=S.props,_=A.children,T=A.accessibilityLayer,M=bn(_,or);if(!M)return null;var L=S.state,E=L.isTooltipActive,N=L.activeCoordinate,D=L.activePayload,k=L.activeLabel,R=L.offset,z=(O=M.props.active)!==null&&O!==void 0?O:E;return j.cloneElement(M,{viewBox:U(U({},R),{},{x:R.left,y:R.top}),active:z,label:k,payload:z?D:[],coordinate:N,accessibilityLayer:T})}),ae(S,"renderBrush",function(O){var A=S.props,_=A.margin,T=A.data,M=S.state,L=M.offset,E=M.dataStartIndex,N=M.dataEndIndex,D=M.updateId;return j.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Pf(S.handleBrushChange,O.props.onChange),data:T,x:K(O.props.x)?O.props.x:L.left,y:K(O.props.y)?O.props.y:L.top+L.height+L.brushBottom-(_.bottom||0),width:K(O.props.width)?O.props.width:L.width,startIndex:E,endIndex:N,updateId:"brush-".concat(D)})}),ae(S,"renderReferenceElement",function(O,A,_){if(!O)return null;var T=S,M=T.clipPathId,L=S.state,E=L.xAxisMap,N=L.yAxisMap,D=L.offset,k=O.type.defaultProps||{},R=O.props,z=R.xAxisId,B=z===void 0?k.xAxisId:z,q=R.yAxisId,F=q===void 0?k.yAxisId:q;return j.cloneElement(O,{key:O.key||"".concat(A,"-").concat(_),xAxis:E[B],yAxis:N[F],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:M})}),ae(S,"renderActivePoints",function(O){var A=O.item,_=O.activePoint,T=O.basePoint,M=O.childIndex,L=O.isRange,E=[],N=A.props.key,D=A.item.type.defaultProps!==void 0?U(U({},A.item.type.defaultProps),A.item.props):A.item.props,k=D.activeDot,R=D.dataKey,z=U(U({index:M,dataKey:R,cx:_.x,cy:_.y,r:4,fill:Qx(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},oe(k,!1)),qd(k));return E.push(y.renderActiveDot(k,z,"".concat(N,"-activePoint-").concat(M))),T?E.push(y.renderActiveDot(k,U(U({},z),{},{cx:T.x,cy:T.y}),"".concat(N,"-basePoint-").concat(M))):L&&E.push(null),E}),ae(S,"renderGraphicChild",function(O,A,_){var T=S.filterFormatItem(O,A,_);if(!T)return null;var M=S.getTooltipEventType(),L=S.state,E=L.isTooltipActive,N=L.tooltipAxis,D=L.activeTooltipIndex,k=L.activeLabel,R=S.props.children,z=bn(R,or),B=T.props,q=B.points,F=B.isRange,Q=B.baseLine,G=T.item.type.defaultProps!==void 0?U(U({},T.item.type.defaultProps),T.item.props):T.item.props,ee=G.activeDot,ye=G.hide,ke=G.activeBar,fe=G.activeShape,Rt=!!(!ye&&E&&z&&(ee||ke||fe)),vt={};M!=="axis"&&z&&z.props.trigger==="click"?vt={onClick:Pf(S.handleItemMouseEnter,O.props.onClick)}:M!=="axis"&&(vt={onMouseLeave:Pf(S.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Pf(S.handleItemMouseEnter,O.props.onMouseEnter)});var V=j.cloneElement(O,U(U({},T.props),vt));function se(mn){return typeof N.dataKey=="function"?N.dataKey(mn.payload):null}if(Rt)if(D>=0){var de,H;if(N.dataKey&&!N.allowDuplicatedCategory){var Xe=typeof N.dataKey=="function"?se:"payload.".concat(N.dataKey.toString());de=ng(q,Xe,k),H=F&&Q&&ng(Q,Xe,k)}else de=q==null?void 0:q[D],H=F&&Q&&Q[D];if(fe||ke){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:D;return[j.cloneElement(O,U(U(U({},T.props),vt),{},{activeIndex:ge})),null,null]}if(!ve(de))return[V].concat(ls(S.renderActivePoints({item:T,activePoint:de,basePoint:H,childIndex:D,isRange:F})))}else{var Me,J=(Me=S.getItemByXY(S.state.activeCoordinate))!==null&&Me!==void 0?Me:{graphicalItem:V},Le=J.graphicalItem,$t=Le.item,nn=$t===void 0?O:$t,mi=Le.childIndex,$r=U(U(U({},T.props),vt),{},{activeIndex:mi});return[j.cloneElement(nn,$r),null,null]}return F?[V,null,null]:[V,null]}),ae(S,"renderCustomized",function(O,A,_){return j.cloneElement(O,U(U({key:"recharts-customized-".concat(_)},S.props),S.state))}),ae(S,"renderMap",{CartesianGrid:{handler:Lf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Lf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Lf},YAxis:{handler:Lf},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=m.id)!==null&&x!==void 0?x:Wc("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=cM(S.triggeredAfterMouseMove,(w=m.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return kue(y,g),Pue(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,O=x.height,A=x.layout,_=bn(w,or);if(_){var T=_.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,L=T0(this.state,S,T,M),E=this.state.tooltipTicks[T].coordinate,N=(this.state.offset.top+O)/2,D=A==="horizontal",k=D?{x:E,y:N}:{y:E,x:N},R=this.state.formattedGraphicalItems.find(function(B){var q=B.item;return q.type.name==="Scatter"});R&&(k=U(U({},k),R.props.points[T].tooltipPosition),L=R.props.points[T].tooltipPayload);var z={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:L,activeCoordinate:k};this.setState(z),this.renderCursor(_),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,O;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){ag([bn(x.children,or)],[bn(this.props.children,or)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=bn(this.props.children,or);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return l.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),O=AQ(S),A={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},_=S.width/w.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,_);if(!T)return null;var M=this.state,L=M.xAxisMap,E=M.yAxisMap,N=this.getTooltipEventType(),D=s2(this.state,this.props.data,this.props.layout,T);if(N!=="axis"&&L&&E){var k=Lo(L).scale,R=Lo(E).scale,z=k&&k.invert?k.invert(A.chartX):null,B=R&&R.invert?R.invert(A.chartY):null;return U(U({},A),{},{xValue:z,yValue:B},D)}return D?U(U({},A),D):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=x/S,_=w/S;if(O==="horizontal"||O==="vertical"){var T=this.state.offset,M=A>=T.left&&A<=T.left+T.width&&_>=T.top&&_<=T.top+T.height;return M?{x:A,y:_}:null}var L=this.state,E=L.angleAxisMap,N=L.radiusAxisMap;if(E&&N){var D=Lo(E);return Ij({x:A,y:_},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=bn(x,or),O={};S&&w==="axis"&&(S.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=qd(this.props,this.handleOuterEvent);return U(U({},A),O)}},{key:"addListener",value:function(){Mm.on(Pm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Mm.removeListener(Pm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var O=this.state.formattedGraphicalItems,A=0,_=O.length;A<_;A++){var T=O[A];if(T.item===x||T.props.key===x.key||w===ra(T.item.type)&&S===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,O=w.top,A=w.height,_=w.width;return $.createElement("defs",null,$.createElement("clipPath",{id:x},$.createElement("rect",{x:S,y:O,height:A,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=i2(S,2),A=O[0],_=O[1];return U(U({},w),{},ae({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=i2(S,2),A=O[0],_=O[1];return U(U({},w),{},ae({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,O=w.activeItem;if(S&&S.length)for(var A=0,_=S.length;A<_;A++){var T=S[A],M=T.props,L=T.item,E=L.type.defaultProps!==void 0?U(U({},L.type.defaultProps),L.props):L.props,N=ra(L.type);if(N==="Bar"){var D=(M.data||[]).find(function(B){return fae(x,B)});if(D)return{graphicalItem:T,payload:D}}else if(N==="RadialBar"){var k=(M.data||[]).find(function(B){return Ij(x,B)});if(k)return{graphicalItem:T,payload:k}}else if(ny(T,O)||ry(T,O)||bc(T,O)){var R=Jie({graphicalItem:T,activeTooltipItem:O,itemData:E.data}),z=E.activeIndex===void 0?R:E.activeIndex;return{graphicalItem:U(U({},T),{},{childIndex:z}),payload:bc(T,O)?E.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!Mw(this))return null;var w=this.props,S=w.children,O=w.className,A=w.width,_=w.height,T=w.style,M=w.compact,L=w.title,E=w.desc,N=o2(w,Aue),D=oe(N,!1);if(M)return $.createElement(YA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement(og,el({},D,{width:A,height:_,title:L,desc:E}),this.renderClipPath(),Rw(S,this.renderMap)));if(this.props.accessibilityLayer){var k,R;D.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,D.role=(R=this.props.role)!==null&&R!==void 0?R:"application",D.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},D.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return $.createElement(YA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",el({className:me("recharts-wrapper",O),style:U({position:"relative",cursor:"default",width:A,height:_},T)},z,{ref:function(q){x.container=q}}),$.createElement(og,el({},D,{width:A,height:_,title:L,desc:E,style:Hue}),this.renderClipPath(),Rw(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ae(b,"displayName",n),ae(b,"defaultProps",U({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(b,"getDerivedStateFromProps",function(g,y){var m=g.dataKey,x=g.data,w=g.children,S=g.width,O=g.height,A=g.layout,_=g.stackOffset,T=g.margin,M=y.dataStartIndex,L=y.dataEndIndex;if(y.updateId===void 0){var E=u2(g);return U(U(U({},E),{},{updateId:0},p(U(U({props:g},E),{},{updateId:0}),y)),{},{prevDataKey:m,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:w})}if(m!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||_!==y.prevStackOffset||!sl(T,y.prevMargin)){var N=u2(g),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},k=U(U({},s2(y,x,A)),{},{updateId:y.updateId+1}),R=U(U(U({},N),D),k);return U(U(U({},R),p(U({props:g},R),y)),{},{prevDataKey:m,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:w})}if(!ag(w,y.prevChildren)){var z,B,q,F,Q=bn(w,Zl),G=Q&&(z=(B=Q.props)===null||B===void 0?void 0:B.startIndex)!==null&&z!==void 0?z:M,ee=Q&&(q=(F=Q.props)===null||F===void 0?void 0:F.endIndex)!==null&&q!==void 0?q:L,ye=G!==M||ee!==L,ke=!ve(x),fe=ke&&!ye?y.updateId:y.updateId+1;return U(U({updateId:fe},p(U(U({props:g},y),{},{updateId:fe,dataStartIndex:G,dataEndIndex:ee}),y)),{},{prevChildren:w,dataStartIndex:G,dataEndIndex:ee})}return null}),ae(b,"renderActiveDot",function(g,y,m){var x;return j.isValidElement(g)?x=j.cloneElement(g,y):ue(g)?x=g(y):x=$.createElement(Zx,y),$.createElement($e,{className:"recharts-active-dot",key:m},x)});var v=j.forwardRef(function(y,m){return $.createElement(b,el({},y,{ref:m}))});return v.displayName=b.displayName,v},Zue=MR({chartName:"BarChart",GraphicalChild:Oo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:cy},{axisType:"yAxis",AxisComp:fy}],formatAxisMap:Rle}),Jue=MR({chartName:"PieChart",GraphicalChild:Sa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ty},{axisType:"radiusAxis",AxisComp:Jp}],formatAxisMap:Ste,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Ro({title:e,value:t,icon:n,color:r="brand",sub:a}){const i={brand:"text-brand  bg-brand/10",green:"text-green-400  bg-green-400/10",red:"text-red-400    bg-red-400/10",orange:"text-orange-400 bg-orange-400/10",yellow:"text-yellow-400 bg-yellow-400/10",accent:"text-accent  bg-accent/10"},o=i[r]||i.brand;return d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[d.jsx("div",{className:`p-3 rounded-lg ${o}`,children:d.jsx(n,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-400",children:e}),d.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&d.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}const f2=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function ece(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=Dn({queryKey:["dashboard",e],queryFn:()=>B6(e),refetchInterval:3e4});if(n)return d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});if(!t)return d.jsx("div",{className:"text-red-400 p-8",children:"데이터를 가져올 수 없습니다."});const r=[{name:"ONLINE",value:t.onlineDevices||0},{name:"OFFLINE",value:t.offlineDevices||0}],a=[{name:"오늘 작업",value:t.totalWorkToday||0},{name:"완료",value:t.completedWorkToday||0},{name:"POS 대기",value:t.pendingPosCvt||0},{name:"POS 처리",value:t.processedPosCvtToday||0}];return d.jsxs("div",{className:"space-y-6",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[d.jsx(Ro,{title:"전체 매장",value:t.totalStores||0,icon:Qv,color:"brand"}),d.jsx(Ro,{title:"운영 매장",value:t.activeStores||0,icon:Qv,color:"green"}),d.jsx(Ro,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:bC,color:"red"}),d.jsx(Ro,{title:"긴급 알람",value:t.criticalAlarms||0,icon:Yb,color:"red"}),d.jsx(Ro,{title:"온라인 장치",value:t.onlineDevices||0,icon:Gb,color:"green"}),d.jsx(Ro,{title:"POS 대기",value:t.pendingPosCvt||0,icon:dp,color:"yellow"})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"장치 상태 현황"}),d.jsx(NO,{width:"100%",height:200,children:d.jsxs(Jue,{children:[d.jsx(Sa,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>d.jsx(zp,{fill:f2[o%f2.length]},o))}),d.jsx(or,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}})]})})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"오늘의 작업/POS 현황"}),d.jsx(NO,{width:"100%",height:200,children:d.jsxs(Zue,{data:a,children:[d.jsx(cy,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(fy,{tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(or,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),d.jsx(Oo,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"오늘 작업"}),d.jsx("p",{className:"text-2xl font-bold text-brand",children:t.totalWorkToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["완료: ",t.completedWorkToday||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 알람"}),d.jsx("p",{className:"text-2xl font-bold text-yellow-400",children:t.totalAlarms||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["미해결: ",t.unresolvedAlarms||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 장치"}),d.jsx("p",{className:"text-2xl font-bold text-accent",children:t.totalDevices||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["오프라인: ",t.offlineDevices||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"POS 처리(오늘)"}),d.jsx("p",{className:"text-2xl font-bold text-green-400",children:t.processedPosCvtToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["대기: ",t.pendingPosCvt||0]})]})]})]})}function tce(){const e=$n(),[t,n]=j.useState(null),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["stores",r],queryFn:()=>H6({keyword:r||void 0})}),l=Ht({mutationFn:u=>u.id?F6(u.id,u):q6(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=Ht({mutationFn:G6,onSuccess:()=>e.invalidateQueries({queryKey:["stores"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"매장 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"매장명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(j5,{size:14})," 매장 추가"]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","코드","매장명","주소","담당자","상태","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 font-mono text-xs",children:u.storeCode}),d.jsx("td",{className:"px-4 py-3 text-white",children:u.storeName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs truncate max-w-xs",children:u.address}),d.jsx("td",{className:"px-4 py-3 text-gray-400",children:u.managerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:u.active?"운영":"중지"})}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:d.jsx(E5,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"매장이 없습니다"})})]})]})}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"매장 수정":"매장 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(R5,{size:16})})]}),d.jsx(nce,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function nce({initial:e,onSave:t}){const[n,r]=j.useState({tenantCode:e.tenantCode||"",storeCode:e.storeCode||"",storeName:e.storeName||"",address:e.address||"",phone:e.phone||"",managerName:e.managerName||"",active:e.active!==!1,id:e.id}),a=i=>o=>r(l=>({...l,[i]:o.target.value}));return d.jsxs("form",{onSubmit:i=>{i.preventDefault(),t(n)},className:"space-y-3",children:[[{label:"테넌트",key:"tenantCode",type:"select",opts:["LGINNOTEK","LGIT","EMART","ZIOINFO"]},{label:"매장코드",key:"storeCode"},{label:"매장명",key:"storeName"},{label:"주소",key:"address"},{label:"전화",key:"phone"},{label:"담당자",key:"managerName"}].map(({label:i,key:o,type:l,opts:s})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),l==="select"?d.jsx("select",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:(s||[]).map(u=>d.jsx("option",{value:u,children:u},u))}):d.jsx("input",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},o)),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function rce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["templates"],queryFn:()=>Y6()}),r=Ht({mutationFn:K6,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"flex items-center justify-between",children:d.jsx("h1",{className:"text-xl font-semibold text-white",children:"ESL 템플릿"})}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[t.map(a=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex justify-between items-start mb-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-white",children:a.templateName}),d.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[a.tenantCode," · ",a.templateType]})]}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]}),d.jsx("div",{className:"bg-panel border border-edge rounded p-3 flex items-center justify-center",style:{height:Math.min((a.height||76)/2+40,120)},children:d.jsxs("div",{className:"text-center",children:[d.jsxs("p",{className:"text-xs text-gray-400",children:[a.width,"×",a.height,"px"]}),d.jsx("p",{className:"text-xs text-gray-500 mt-1",children:a.description})]})}),d.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",a.templateCode]})]},a.id)),t.length===0&&d.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",children:"템플릿이 없습니다"})]})]})}function ace(){const e=$n(),[t,n]=j.useState("PENDING"),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["pos-cvt",t,r],queryFn:()=>X6({status:t||void 0,keyword:r||void 0})}),l=Ht({mutationFn:V6,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=Ht({mutationFn:Q6,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"POS 가격 변환"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"상품코드·상품명 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsx("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:["","PENDING","PROCESSED","ERROR","IGNORED"].map(u=>d.jsx("option",{value:u,children:u||"전체"},u))})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","정가","판매가","상태","수신일시","액션"].map(u=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>{var f,c;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:u.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),d.jsx("td",{className:"px-3 py-3 text-white text-xs",children:u.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(f=u.price)==null?void 0:f.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs",children:(c=u.salePrice)==null?void 0:c.toLocaleString()}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="PROCESSED"?"bg-green-500/20 text-green-400":u.status==="PENDING"?"bg-yellow-500/20 text-yellow-400":u.status==="ERROR"?"bg-red-500/20 text-red-400":"bg-gray-500/20 text-gray-400"}`,children:u.status})}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-3 py-3",children:u.status==="PENDING"&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>l.mutate(u.id),title:"처리",className:"text-green-400 hover:text-green-300",children:d.jsx(Fb,{size:14})}),d.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:d.jsx(i5,{size:14})})]})})]},u.id)}),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"데이터가 없습니다"})})]})]})})]})}function ice({severity:e}){const t={CRITICAL:"bg-red-500/20    text-red-400    border border-red-500/40",HIGH:"bg-orange-500/20 text-orange-400 border border-orange-500/40",MEDIUM:"bg-yellow-500/20 text-yellow-400 border border-yellow-500/40",LOW:"bg-gray-500/20   text-gray-400   border border-gray-500/40"},n=t[e]||t.LOW;return d.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${n}`,children:e})}function oce(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState("OPEN"),{data:i=[],isLoading:o}=Dn({queryKey:["alarms",t,r],queryFn:()=>W6({severity:t||void 0,status:r||void 0})}),l=Ht({mutationFn:({id:u,resolution:f})=>Z6(u,f),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=Ht({mutationFn:J6,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"알람 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 심각도"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(u=>d.jsx("option",{value:u,children:u},u))]}),d.jsxs("select",{value:r,onChange:u=>a(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["OPEN","ACKNOWLEDGED","RESOLVED"].map(u=>d.jsx("option",{value:u,children:u},u))]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["매장","유형","심각도","메시지","상태","발생일시","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30 transition-colors",children:[d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.alarmType}),d.jsx("td",{className:"px-4 py-3",children:d.jsx(ice,{severity:u.severity})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 max-w-xs truncate",children:u.message}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="RESOLVED"?"bg-green-500/20 text-green-400":u.status==="OPEN"?"bg-red-500/20 text-red-400":"bg-yellow-500/20 text-yellow-400"}`,children:u.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[u.status!=="RESOLVED"&&d.jsx("button",{onClick:()=>l.mutate({id:u.id,resolution:"운영자 확인 후 해결"}),className:"text-green-400 hover:text-green-300",title:"해결 처리",children:d.jsx(Fb,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"알람이 없습니다"})})]})]})})]})}const lce={ONLINE:d.jsx(jC,{size:14,className:"text-green-400"}),OFFLINE:d.jsx(OC,{size:14,className:"text-red-400"}),ERROR:d.jsx(Yb,{size:14,className:"text-orange-400"}),UPDATING:d.jsx(Gb,{size:14,className:"text-yellow-400"})},sce={ONLINE:"border-green-500/30 bg-green-500/5",OFFLINE:"border-red-500/30 bg-red-500/5",ERROR:"border-orange-500/30 bg-orange-500/5",UPDATING:"border-yellow-500/30 bg-yellow-500/5"};function uce(){const e=$n(),[t,n]=$.useState(""),[r,a]=$.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["hcore",t,r],queryFn:()=>ez({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=Ht({mutationFn:({id:s,status:u})=>tz(s,u),onSuccess:()=>e.invalidateQueries({queryKey:["hcore"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"HCore 장치 현황"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:s=>n(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 유형"}),["GATEWAY","HUB","ESL_DEVICE"].map(s=>d.jsx("option",{value:s,children:s},s))]}),d.jsxs("select",{value:r,onChange:s=>a(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["ONLINE","OFFLINE","ERROR","UPDATING"].map(s=>d.jsx("option",{value:s,children:s},s))]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:[i.map(s=>d.jsxs("div",{className:`border rounded-lg p-4 ${sce[s.status]||"border-edge bg-card"}`,children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[lce[s.status],d.jsx("span",{className:"text-xs font-mono text-gray-300",children:s.deviceId})]}),d.jsx("span",{className:"text-xs text-brand",children:s.deviceType})]}),d.jsx("p",{className:"text-xs text-gray-400",children:s.storeName||"미배정"}),d.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["FW: ",s.firmwareVersion||"-"]}),s.ipAddress&&d.jsx("p",{className:"text-xs text-gray-600 font-mono",children:s.ipAddress}),s.batteryLevel!=null&&d.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[d.jsx(gC,{size:12,className:s.batteryLevel<20?"text-red-400":"text-gray-400"}),d.jsxs("span",{className:`text-xs ${s.batteryLevel<20?"text-red-400":"text-gray-400"}`,children:[s.batteryLevel,"%"]})]}),s.status==="OFFLINE"&&d.jsx("button",{onClick:()=>l.mutate({id:s.id,status:"ONLINE"}),className:"mt-2 text-xs text-brand hover:underline",children:"온라인으로 변경"})]},s.id)),i.length===0&&d.jsx("div",{className:"col-span-4 text-center text-gray-500 py-8",children:"장치가 없습니다"})]})]})}const cce={SCHEDULED:"bg-blue-500/20 text-blue-400",IN_PROGRESS:"bg-yellow-500/20 text-yellow-400",COMPLETED:"bg-green-500/20 text-green-400",CANCELLED:"bg-gray-500/20 text-gray-400"};function fce(){const{data:e=[],isLoading:t}=Dn({queryKey:["works"],queryFn:()=>nz()});return t?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"작업 이력"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","작업유형","작업내용","담당자","상태","시작일시","완료일시"].map(n=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:n},n))})}),d.jsxs("tbody",{children:[e.map(n=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:n.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:n.workType}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",children:n.workContent}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.workerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${cce[n.status]||"bg-gray-500/20 text-gray-400"}`,children:n.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.startedAt?new Date(n.startedAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.completedAt?new Date(n.completedAt).toLocaleString("ko-KR"):"-"})]},n.id)),e.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"작업 이력이 없습니다"})})]})]})})]})}function dce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["firmware"],queryFn:()=>rz()}),r=Ht({mutationFn:az,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"펌웨어 관리"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["버전","테넌트","장치유형","파일명","크기","체크섬","최신","등록일","액션"].map(a=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:a},a))})}),d.jsxs("tbody",{children:[t.map(a=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand font-mono text-xs",children:a.firmwareVersion}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.deviceType}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.fileName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.fileSize?`${(a.fileSize/1024).toFixed(1)}KB`:"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs font-mono truncate max-w-[80px]",children:a.checksum?a.checksum.substring(0,8)+"...":"-"}),d.jsx("td",{className:"px-4 py-3",children:a.latest&&d.jsx(_5,{size:14,className:"text-yellow-400",fill:"currentColor"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:a.createdAt?new Date(a.createdAt).toLocaleDateString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},a.id)),t.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"펌웨어가 없습니다"})})]})]})})]})}function hce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["users"],queryFn:()=>iz()}),r=Ht({mutationFn:oz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"사용자 관리"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["아이디","테넌트","역할","이메일","전화","상태","마지막 로그인","액션"].map(a=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:a},a))})}),d.jsx("tbody",{children:t.map(a=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-white font-medium",children:a.username}),d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:a.tenantCode||"SUPER"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${a.role==="ADMIN"?"bg-red-500/20 text-red-400":a.role==="MANAGER"?"bg-brand/20 text-brand":"bg-gray-500/20 text-gray-400"}`,children:a.role})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.email||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.phone||"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${a.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:a.active?"활성":"비활성"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:a.lastLoginAt?new Date(a.lastLoginAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},a.id))})]})})]})}function pce(){const e=$n(),[t,n]=j.useState(""),{data:r=[],isLoading:a}=Dn({queryKey:["products",t],queryFn:()=>lz({keyword:t||void 0})}),i=Ht({mutationFn:sz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"상품/가격 관리"}),d.jsx("input",{value:t,onChange:o=>n(o.target.value),placeholder:"상품명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","카테고리","정가","판매가","화폐","상태","액션"].map(o=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),d.jsxs("tbody",{children:[r.map(o=>{var l,s;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:o.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:o.productCode}),d.jsx("td",{className:"px-3 py-3 text-white",children:o.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.category}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(l=o.price)==null?void 0:l.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs font-medium",children:(s=o.salePrice)==null?void 0:s.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:o.currency}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${o.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:o.active?"활성":"비활성"})}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&i.mutate(o.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},o.id)}),r.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})})]})}function yce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["tenants"],queryFn:()=>U6()}),r=Ht({mutationFn:I6,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):localStorage.getItem("esn_role")!=="ADMIN"?d.jsx("div",{className:"text-center py-16",children:d.jsx("p",{className:"text-gray-400",children:"관리자 전용 메뉴입니다."})}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:t.map(i=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(SC,{size:18,className:"text-brand"}),d.jsx("span",{className:"font-bold text-brand",children:i.tenantCode})]}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(i.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]}),d.jsx("p",{className:"text-sm text-white",children:i.tenantName}),d.jsx("p",{className:"text-xs text-gray-400 mt-1",children:i.description}),d.jsx("div",{className:"mt-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${i.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:i.active?"운영중":"비활성"})})]},i.id))})]})}function mce(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),s=Ht({mutationFn:uz,onSuccess:f=>r(f.analysis||JSON.stringify(f)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=Ht({mutationFn:cz,onSuccess:f=>l(f.category||JSON.stringify(f)),onError:()=>l("Ollama 응답 실패 — 서비스를 확인해주세요.")});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[d.jsx(xC,{size:20,className:"text-brand"})," AI 분석"]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(Yb,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),d.jsx("textarea",{value:e,onChange:f=>t(f.target.value),rows:4,placeholder:`알람 메시지를 입력하세요
예: ESL-001 배터리 부족 경고 — Store: LG이노텍 구미, Device: ESL-A123`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>s.mutate({message:e}),disabled:!e.trim()||s.isPending,className:"flex items-center gap-2 px-4 py-2 bg-brand/20 text-brand border border-brand/40 rounded hover:bg-brand/30 disabled:opacity-40 text-sm",children:[d.jsx(Wv,{size:14}),s.isPending?"분석 중...":"Ollama 분석"]}),n&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:n})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(C5,{size:16,className:"text-accent"})," POS 데이터 자동 분류"]}),d.jsx("textarea",{value:a,onChange:f=>i(f.target.value),rows:4,placeholder:`POS 데이터를 입력하세요
예: 상품코드=P001, 상품명=과자, 가격=1500, 판매수량=100, 점포=이마트 광명점`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>u.mutate({data:a}),disabled:!a.trim()||u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-accent/20 text-accent border border-accent/40 rounded hover:bg-accent/30 disabled:opacity-40 text-sm",children:[d.jsx(Wv,{size:14}),u.isPending?"분류 중...":"Ollama 분류"]}),o&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:o})]})]})}const vce={ACTIVE:"text-green-400 bg-green-500/10 border-green-500/30",UNBOUND:"text-gray-400 bg-gray-500/10 border-gray-500/30",ERROR:"text-red-400 bg-red-500/10 border-red-500/30"},gce=e=>e==="ONLINE"?d.jsx(jC,{size:13,className:"text-green-400"}):d.jsx(OC,{size:13,className:"text-red-400"});function bce(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState({tenantCode:"",storeId:"",deviceId:"",productCode:"",locationCode:"",templateCode:"EM-PRICE-STD"}),{data:c=[],isLoading:h}=Dn({queryKey:["tag-binding",t,r,i],queryFn:()=>Y.get("/tag-binding",{params:{tenantCode:t||void 0,storeId:r||void 0,keyword:i||void 0,bindStatus:"ACTIVE"}}).then(v=>v.data.data),refetchInterval:2e4}),p=Ht({mutationFn:v=>Y.post("/tag-binding",{...v,storeId:Number(v.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=Ht({mutationFn:v=>Y.put(`/tag-binding/${v}/unbind`),onSuccess:()=>e.invalidateQueries({queryKey:["tag-binding"]})});return h?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"태그 바인딩 관리"}),d.jsxs("button",{onClick:()=>s(v=>!v),className:"flex items-center gap-2 px-3 py-1.5 bg-brand text-white rounded text-sm",children:[d.jsx(wC,{size:14})," 바인딩 추가"]})]}),l&&d.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-4 space-y-3",children:[d.jsx("h2",{className:"text-sm font-medium text-white",children:"e-paper 태그 → 상품 바인딩"}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{key:"tenantCode",label:"테넌트",ph:"EMART"},{key:"storeId",label:"매장ID",ph:"1"},{key:"deviceId",label:"태그 Device ID",ph:"ESL-EM-001-0001"},{key:"productCode",label:"상품코드",ph:"P-001"},{key:"locationCode",label:"선반 위치코드",ph:"A01-03"},{key:"templateCode",label:"템플릿",ph:"EM-PRICE-STD"}].map(({key:v,label:g,ph:y})=>d.jsxs("div",{children:[d.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:g}),d.jsx("input",{value:u[v],onChange:m=>f(x=>({...x,[v]:m.target.value})),placeholder:y,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},v))}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>p.mutate(u),className:"px-3 py-1.5 bg-brand text-white rounded text-sm",children:"바인딩 저장"}),d.jsx("button",{onClick:()=>s(!1),className:"px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:"취소"})]})]}),d.jsx("div",{className:"flex gap-3",children:[{val:t,set:n,ph:"테넌트 필터"},{val:i,set:o,ph:"태그ID / 상품코드 / 위치 검색"}].map(({val:v,set:g,ph:y},m)=>d.jsx("input",{value:v,onChange:x=>g(x.target.value),placeholder:y,className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-64"},m))}),d.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[c.map(v=>d.jsxs("div",{className:`bg-panel border rounded-lg p-4 flex items-center justify-between
              ${v.deviceStatus==="ONLINE"?"border-green-500/20":"border-red-500/20"}`,children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[gce(v.deviceStatus),v.batteryLevel!==null&&d.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[d.jsx(gC,{size:11}),d.jsxs("span",{className:v.batteryLevel<20?"text-red-400":"",children:[v.batteryLevel,"%"]})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-xs font-mono text-brand",children:v.deviceId}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx(b5,{size:11,className:"text-gray-500"}),d.jsx("span",{className:"text-xs text-gray-400",children:v.locationCode||"위치 미지정"}),d.jsx("span",{className:"text-xs text-gray-600",children:"|"}),d.jsx("span",{className:"text-xs text-gray-300",children:v.storeName})]})]}),d.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[d.jsx("div",{className:"text-sm text-white",children:v.productName||v.productCode}),d.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",d.jsx("span",{className:"text-brand font-mono",children:v.lastPrice?v.lastPrice.toLocaleString()+"원":"미전송"}),v.lastUpdatedAt&&d.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(v.lastUpdatedAt).toLocaleString()]})]}),d.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",v.templateCode]})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${vce[v.bindStatus]||""}`,children:v.bindStatus}),d.jsx("button",{onClick:()=>{confirm(`태그 ${v.deviceId} 언바인딩하겠습니까?`)&&b.mutate(v.id)},className:"p-1.5 rounded bg-edge text-gray-400 hover:text-red-400",title:"언바인딩",children:d.jsx(y5,{size:14})})]})]},v.id)),c.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const $m={PENDING:{icon:d.jsx(s5,{size:13}),color:"text-yellow-400 bg-yellow-500/10 border-yellow-500/30",label:"대기"},SENDING:{icon:d.jsx(JS,{size:13}),color:"text-blue-400 bg-blue-500/10 border-blue-500/30",label:"전송중"},SENT:{icon:d.jsx(JS,{size:13}),color:"text-cyan-400 bg-cyan-500/10 border-cyan-500/30",label:"전송됨"},CONFIRMED:{icon:d.jsx(Fb,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:d.jsx(o5,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:d.jsx(a5,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function xce(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState(""),{data:i=[],isLoading:o,refetch:l}=Dn({queryKey:["update-queue",t,r],queryFn:()=>Y.get("/update-queue",{params:{tenantCode:t||void 0,status:r||void 0}}).then(h=>h.data.data),refetchInterval:5e3}),s=Ht({mutationFn:h=>Y.put(`/update-queue/${h}/cancel`),onSuccess:()=>e.invalidateQueries({queryKey:["update-queue"]})}),u=i.filter(h=>h.status==="PENDING").length,f=i.filter(h=>h.status==="FAILED").length,c=i.filter(h=>h.status==="CONFIRMED").length;return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"e-paper 가격 업데이트 큐"}),d.jsxs("button",{onClick:()=>l(),className:"flex items-center gap-1.5 px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:[d.jsx(dp,{size:13})," 새로고침"]})]}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"대기중",count:u,color:"text-yellow-400",bg:"bg-yellow-500/5 border-yellow-500/20"},{label:"실패",count:f,color:"text-red-400",bg:"bg-red-500/5 border-red-500/20"},{label:"완료",count:c,color:"text-green-400",bg:"bg-green-500/5 border-green-500/20"}].map(({label:h,count:p,color:b,bg:v})=>d.jsxs("div",{className:`border rounded-lg p-3 ${v}`,children:[d.jsx("div",{className:`text-2xl font-bold font-mono ${b}`,children:p}),d.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:h})]},h))}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"테넌트 필터",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-40"}),d.jsxs("select",{value:r,onChange:h=>a(h.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),Object.entries($m).map(([h,p])=>d.jsx("option",{value:h,children:p.label},h))]})]}),d.jsxs("div",{className:"overflow-x-auto",children:[d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-edge text-xs text-gray-500",children:[d.jsx("th",{className:"text-left py-2 px-3",children:"#"}),d.jsx("th",{className:"text-left py-2 px-3",children:"태그 ID"}),d.jsx("th",{className:"text-left py-2 px-3",children:"위치"}),d.jsx("th",{className:"text-left py-2 px-3",children:"상품"}),d.jsx("th",{className:"text-right py-2 px-3",children:"가격"}),d.jsx("th",{className:"text-center py-2 px-3",children:"우선순위"}),d.jsx("th",{className:"text-center py-2 px-3",children:"상태"}),d.jsx("th",{className:"text-center py-2 px-3",children:"재시도"}),d.jsx("th",{className:"text-left py-2 px-3",children:"등록 시각"}),d.jsx("th",{className:"text-center py-2 px-3",children:"액션"})]})}),d.jsx("tbody",{children:i.map(h=>{var b;const p=$m[h.status]||$m.PENDING;return d.jsxs("tr",{className:"border-b border-edge/50 hover:bg-edge/30",children:[d.jsx("td",{className:"py-2 px-3 text-gray-500 font-mono text-xs",children:h.id}),d.jsx("td",{className:"py-2 px-3 text-brand font-mono text-xs",children:h.deviceId}),d.jsx("td",{className:"py-2 px-3 text-gray-300 text-xs",children:h.locationCode||"-"}),d.jsx("td",{className:"py-2 px-3 text-white text-xs",children:h.productName||h.productCode}),d.jsxs("td",{className:"py-2 px-3 text-right font-mono text-xs",children:[(b=h.newPrice)==null?void 0:b.toLocaleString(),"원",h.newSalePrice&&h.newSalePrice!==h.newPrice&&d.jsxs("span",{className:"ml-1 text-red-400",children:["→ ",h.newSalePrice.toLocaleString(),"원"]})]}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`text-xs font-mono ${h.priority<=2?"text-red-400":"text-gray-400"}`,children:["P",h.priority]})}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded border ${p.color}`,children:[p.icon," ",p.label]})}),d.jsxs("td",{className:"py-2 px-3 text-center text-xs text-gray-400",children:[h.retryCount,"/",h.maxRetry]}),d.jsx("td",{className:"py-2 px-3 text-xs text-gray-500",children:new Date(h.createdAt).toLocaleString()}),d.jsx("td",{className:"py-2 px-3 text-center",children:["PENDING","FAILED"].includes(h.status)&&d.jsx("button",{onClick:()=>s.mutate(h.id),className:"text-xs text-gray-500 hover:text-red-400 px-2 py-0.5 rounded bg-edge",children:"취소"})})]},h.id)})})]}),i.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:"업데이트 큐가 비어있습니다."})]})]})}const PR="https://itsm.zioinfo.co.kr",Dm=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,PR);function Sce(){const[e,t]=j.useState(null),[n,r]=j.useState(!0),[a,i]=j.useState(""),[o,l]=j.useState(!1),s=()=>{r(!0),i(""),fetch(`${PR}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:Dm(f.qr_url),landing_url:Dm(f.landing_url),download_url:Dm(f.download_url)})).catch(()=>i("버전 정보를 불러올 수 없습니다. (중앙 앱 저장소 연결 실패)")).finally(()=>r(!1))};j.useEffect(()=>{s()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),l(!0),setTimeout(()=>l(!1),2e3)}catch{}};return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(nd,{className:"text-brand",size:22}),d.jsx("h1",{className:"text-xl font-semibold text-white",children:"GUARDiA 통합 메신저 앱 설치"})]}),d.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[d.jsx(dp,{size:15})," 새로고침"]})]}),d.jsxs("p",{className:"text-sm text-gray-400 mb-6",children:["QR 코드를 스캔하면 ",d.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 없이 바로 설치할 수 있으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&d.jsx("div",{className:"text-gray-400 text-sm",children:"불러오는 중…"}),a&&d.jsx("div",{className:"bg-card border border-edge rounded-lg p-6 text-red-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-8 text-center text-gray-400",children:[d.jsx(nd,{size:36,className:"mx-auto mb-3 text-gray-600"}),"아직 등록된 앱 버전이 없습니다.",d.jsx("br",{}),d.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[d.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?d.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"}):d.jsx(nd,{size:64,className:"text-gray-400"})}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:"text-lg font-bold text-white",children:e.app_name||"GUARDiA Messenger"}),d.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand text-white text-xs font-semibold",children:["v",e.version]})]}),d.jsxs("div",{className:"text-xs text-gray-400 mb-4",children:[e.platform,e.file_size_mb?` · ${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&d.jsxs("div",{className:"mb-4",children:[d.jsx("div",{className:"text-[11px] font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"릴리즈 노트"}),d.jsx("div",{className:"text-sm text-gray-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&d.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-white text-sm font-semibold",children:[d.jsx(f5,{size:15})," 설치 페이지 열기"]}),e.download_url&&d.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[d.jsx(c5,{size:15})," APK 직접 다운로드"]}),d.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[o?d.jsx(r5,{size:15,className:"text-green-400"}):d.jsx(u5,{size:15}),o?"복사됨":"다운로드 링크 복사"]})]})]})]})]})}const r1={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function Rr({title:e,subtitle:t,actions:n}){return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[d.jsxs("div",{children:[d.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&d.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),d.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function qh({children:e,style:t}){return d.jsx("div",{style:{...r1,padding:18,...t},children:e})}function ne({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return d.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function le({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return d.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function je({label:e,children:t}){return d.jsxs("label",{style:{display:"block",marginBottom:12},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function jo({children:e}){return d.jsx(qh,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function Ao({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return d.jsx("div",{style:{...r1,overflow:"hidden"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>d.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),d.jsx("tbody",{children:t.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>d.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:o=>o.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:o=>o.currentTarget.style.background="transparent",children:e.map(o=>d.jsx("td",{style:{padding:"11px 14px",textAlign:o.align??"left"},children:o.render?o.render(i):String(i[o.key]??"")},o.key))},n(i)))})]})})}function Eo({page:e,totalPages:t,onChange:n}){return t<=1?null:d.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[d.jsx(ne,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),d.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),d.jsx(ne,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function _o({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return d.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function vr({title:e,onClose:t,children:n,footer:r}){return d.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:d.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...r1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[d.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),d.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),d.jsx("div",{children:n}),r&&d.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function dr({label:e="불러오는 중..."}){return d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const d2={ONGOING:"진행중",DONE:"종료"};function wce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(""),[f,c]=j.useState(""),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(null),m=async()=>{p(!0);try{const O=(await wz({page:n,size:20,progressCd:s||void 0})).data.data;t(O.content??[]),i(O.totalPages??0);const A=await Oz({});l(A.data.data??[])}finally{p(!1)}};j.useEffect(()=>{m()},[n,s]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>d2[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async S=>{const O=await Az(S.worklogId);y(O.data.data)};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:d.jsx(ne,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),d.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(S=>d.jsxs("div",{onClick:()=>{u(s===S.progressCd?"":S.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===S.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),d.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),d.jsxs(jo,{children:[d.jsx(le,{value:f,onChange:c,placeholder:"제목 검색",style:{minWidth:220}}),d.jsx(ne,{variant:"ghost",onClick:()=>{r(0),m()},children:"검색"}),s&&d.jsxs(ne,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",d2[s]??s]})]}),h?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),d.jsx(Eo,{page:n,totalPages:a,onChange:r})]}),b&&d.jsx(Oce,{onClose:()=>v(!1),onSaved:()=>{v(!1),m()}}),g&&d.jsx(jce,{detail:g,onClose:()=>y(null),onChanged:()=>{y(null),m()}})]})}function Oce({onClose:e,onSaved:t}){const[n,r]=j.useState(""),[a,i]=j.useState(localStorage.getItem("esn_user")||"admin"),[o,l]=j.useState(new Date().toISOString().slice(0,10)),[s,u]=j.useState("NORMAL"),[f,c]=j.useState(""),h=async()=>{var p,b;c("");try{await jz({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(v){c(((b=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return d.jsxs(vr,{title:"업무일지 작성",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(ne,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(ne,{onClick:h,children:"저장"})]}),children:[d.jsx(je,{label:"제목",children:d.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(je,{label:"작성자 ID",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"근무일자",children:d.jsx(le,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),d.jsx(je,{label:"근무상태 코드",children:d.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),f&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function jce({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=j.useState(""),[i,o]=j.useState(""),l=async()=>{await Ez(e.worklogId),n()},s=async()=>{var f,c;o("");try{await _z(e.worklogId,r),a(""),n()}catch(h){o(((c=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:c.message)||"댓글 등록 실패")}};return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(ne,{variant:"danger",onClick:l,children:"삭제"}),d.jsx(ne,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),d.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>d.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[d.jsx("b",{children:f.writerNm})," · ",d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),d.jsx("br",{}),f.cmtContent]},f.cmtId)),d.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[d.jsx(le,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),d.jsx(ne,{onClick:s,children:"등록"})]}),i&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Ace=["일","월","화","수","목","금","토"];function Ece(){const[e,t]=j.useState(new Date),[n,r]=j.useState("PERSONAL"),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(null),[f,c]=j.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{l(!0);try{const w=await gz({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{l(!1)}};j.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),g=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(v).fill(null),...Array.from({length:g},(w,S)=>S+1)],m=w=>{const S=`${h}-${String(w).padStart(2,"0")}`;return a.filter(O=>(O.startDt??"").slice(0,10)<=S&&S<=(O.endDt??"").slice(0,10))},x=w=>t(new Date(e.getFullYear(),e.getMonth()+w,1));return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:d.jsx(ne,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),d.jsxs(qh,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[d.jsx(ne,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),d.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),d.jsx(ne,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),d.jsx("div",{style:{flex:1}}),d.jsx(ne,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),d.jsx(ne,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?d.jsx(dr,{}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Ace.map((w,S)=>d.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:S===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:w},w)),y.map((w,S)=>d.jsxs("div",{onClick:()=>w&&u(`${h}-${String(w).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:w?"pointer":"default"},children:[w&&d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&m(w).slice(0,3).map(O=>d.jsx("div",{onClick:A=>{A.stopPropagation(),xz(O.scheduleId).then(_=>c(_.data.data))},style:{fontSize:11,padding:"2px 6px",borderRadius:6,marginBottom:3,background:"var(--uiws-primary-soft)",color:"var(--uiws-primary)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:O.title},O.scheduleId))]},S))]})}),s&&d.jsx(_ce,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&d.jsx(Tce,{detail:f,onClose:()=>c(null),onDeleted:()=>{c(null),p()}})]})}function _ce({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=j.useState(""),[o,l]=j.useState(`${e}T09:00:00`),[s,u]=j.useState(`${e}T18:00:00`),[f,c]=j.useState(""),[h,p]=j.useState(""),b=async()=>{var v,g;p("");try{await bz({scheType:t,title:a,startDt:o,endDt:s,content:f,attachmentIds:[]}),r()}catch(y){p(((g=(v=y==null?void 0:y.response)==null?void 0:v.data)==null?void 0:g.message)||"저장 실패")}};return d.jsxs(vr,{title:"일정 등록",onClose:n,footer:d.jsxs(d.Fragment,{children:[d.jsx(ne,{variant:"ghost",onClick:n,children:"취소"}),d.jsx(ne,{onClick:b,children:"저장"})]}),children:[d.jsx(je,{label:"제목",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:d.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),d.jsx(je,{label:"종료",children:d.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),d.jsx(je,{label:"내용",children:d.jsx(le,{value:f,onChange:c,style:{width:"100%"}})}),h&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Tce({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Sz(e.scheduleId),n()};return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(ne,{variant:"danger",onClick:r,children:"삭제"}),d.jsx(ne,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Cce(){const[e,t]=j.useState("received"),[n,r]=j.useState([]),[a,i]=j.useState(0),[o,l]=j.useState(0),[s,u]=j.useState(""),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(null),g=async()=>{c(!0);try{const O=(await(e==="received"?mz:pz)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(O.content??[]),l(O.totalPages??0)}finally{c(!1)}};j.useEffect(()=>{g()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:w=>d.jsx(_o,{yn:w.readYn})}],m=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:w=>`${w.openCount}/${w.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async w=>{const S=e==="received"?await vz(w.messageId):await yz(w.messageId);v({...S.data.data,_tab:e}),e==="received"&&g()};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:d.jsx(ne,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),d.jsxs(jo,{children:[d.jsx(ne,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),d.jsx(ne,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),d.jsx("div",{style:{flex:1}}),d.jsx(le,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),d.jsx(ne,{variant:"ghost",onClick:()=>{i(0),g()},children:"검색"})]}),f?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:e==="received"?y:m,rows:n,rowKey:w=>w.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),d.jsx(Eo,{page:a,totalPages:o,onChange:i})]}),h&&d.jsx(Nce,{onClose:()=>p(!1),onSent:()=>{p(!1),g()}}),b&&d.jsx(Mce,{detail:b,onClose:()=>v(null)})]})}function Nce({onClose:e,onSent:t}){const[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),f=async()=>{var c,h;u("");try{await hz({title:a,content:o,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(c=p==null?void 0:p.response)==null?void 0:c.data)==null?void 0:h.message)||"전송 실패")}};return d.jsxs(vr,{title:"쪽지 보내기",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(ne,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(ne,{onClick:f,children:"보내기"})]}),children:[d.jsx(je,{label:"받는사람 ID",children:d.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(je,{label:"제목",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"내용",children:d.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),s&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function Mce({detail:e,onClose:t}){return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsx(ne,{variant:"ghost",onClick:t,children:"닫기"}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[d.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),d.jsx(_o,{yn:n.readYn})]},r))]})]})}function Pce(){const[e,t]=j.useState("personal"),[n,r]=j.useState(null),[a,i]=j.useState(!1),o=new Date().toISOString().slice(0,10),l=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[s,u]=j.useState(l),[f,c]=j.useState(o),h=async()=>{i(!0);try{const v=await(e==="personal"?Tz:Cz)({fromDate:s,toDate:f});r(v.data.data)}finally{i(!1)}};j.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),d.jsxs(jo,{children:[d.jsx(ne,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),d.jsx(ne,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),d.jsx("div",{style:{flex:1}}),d.jsx(le,{type:"date",value:s,onChange:u}),d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),d.jsx(le,{type:"date",value:f,onChange:c}),d.jsx(ne,{variant:"ghost",onClick:h,children:"조회"})]}),a?d.jsx(dr,{}):!n||n.rows.length===0?d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(b=>d.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:b.label},b.key))})}),d.jsx("tbody",{children:n.rows.map((b,v)=>d.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(g=>d.jsx("td",{style:{padding:"10px 14px"},children:String(b[g.key]??"")},g.key))},v))})]})})]})}function $s({children:e}){const t=localStorage.getItem("esn_role");return t!=="ADMIN"&&t!=="MANAGER"?d.jsx("div",{className:"uiws-scope",style:{textAlign:"center",padding:"64px 0"},children:d.jsx("p",{style:{color:"var(--uiws-text-muted)",fontSize:14},children:"관리자 전용 메뉴입니다."})}):d.jsx(d.Fragment,{children:e})}const h2={roleId:"",roleNm:"",roleDesc:"",useYn:"Y"},p2=20;function y2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 역할 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Rce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(h2),[m,x]=j.useState("");async function w(E=a,N=o){var D,k,R,z;u(!0);try{const B=await Rz({keyword:N||void 0,page:E,size:p2});t(((k=(D=B.data)==null?void 0:D.data)==null?void 0:k.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{w(0,"")},[]);function S(){y(h2),v(!1),x(""),p(!0)}function O(E){y({...E}),v(!0),x(""),p(!0)}async function A(){if(x(""),!g.roleId.trim()||!g.roleNm.trim()){x("역할 ID와 이름은 필수입니다.");return}try{b?await Dz(g.roleId,g):await $z(g),p(!1),w()}catch(E){x(y2(E))}}async function _(){if(f.size!==0&&confirm(`선택한 ${f.size}개 역할을 삭제할까요?`))try{await kz([...f]),w()}catch(E){alert(y2(E))}}const T=E=>c(N=>{const D=new Set(N);return D.has(E)?D.delete(E):D.add(E),D}),M=Math.max(1,Math.ceil(n/p2)),L=[{key:"sel",header:"",width:36,render:E=>d.jsx("input",{type:"checkbox",checked:f.has(E.roleId),onChange:()=>T(E.roleId),onClick:N=>N.stopPropagation()})},{key:"roleId",header:"역할 ID",render:E=>d.jsx("span",{className:"font-mono",children:E.roleId})},{key:"roleNm",header:"이름"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"역할/권한 관리",subtitle:"시스템 권한(Role) 정의 — RBAC",actions:d.jsxs(d.Fragment,{children:[d.jsxs(ne,{variant:"danger",onClick:_,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(ne,{onClick:S,children:"역할 추가"})]})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"역할명/설명 검색",style:{flex:1,minWidth:220}}),d.jsx(ne,{onClick:()=>{i(0),w(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.roleId,onRowClick:E=>O(E),empty:"등록된 역할이 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),w(E)}})]}),h&&d.jsxs(vr,{title:b?"역할 수정":"역할 추가",onClose:()=>p(!1),children:[d.jsx(je,{label:"역할 ID",children:d.jsx(le,{value:g.roleId,onChange:E=>y({...g,roleId:E}),placeholder:"예: AUDITOR",style:{width:"100%"}})}),d.jsx(je,{label:"이름",children:d.jsx(le,{value:g.roleNm,onChange:E=>y({...g,roleNm:E}),placeholder:"예: 감사자",style:{width:"100%"}})}),d.jsx(je,{label:"설명",children:d.jsx(le,{value:g.roleDesc,onChange:E=>y({...g,roleDesc:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N",style:{width:"100%"}})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ne,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(ne,{onClick:A,children:"저장"})]})]})]})})}function $ce(e){var t,n,r;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"요청을 처리하지 못했습니다."}function Dce(){const[e,t]=j.useState([]),[n,r]=j.useState(""),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState("");async function b(){var m,x;l(!0);try{const S=((x=(m=(await Lz({page:0,size:100})).data)==null?void 0:m.data)==null?void 0:x.content)||[];t(S),S.length&&!n&&v(S[0].roleId)}catch{t([])}finally{l(!1)}}j.useEffect(()=>{b()},[]);async function v(m){var x;r(m),p(""),u(!0);try{const w=await zz(m);i(((x=w.data)==null?void 0:x.data)||[])}catch{i([])}finally{u(!1)}}function g(m,x){i(w=>w.map(S=>{if(S.menuId!==m)return S;const O={...S,[x]:S[x]==="Y"?"N":"Y"};return x==="writeYn"&&O.writeYn==="Y"&&(O.readYn="Y"),x==="readYn"&&O.readYn==="N"&&(O.writeYn="N"),O}))}async function y(){if(n){c(!0),p("");try{await Bz(n,a),p("저장되었습니다.")}catch(m){p($ce(m))}finally{c(!1)}}}return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"메뉴 권한(권한별 메뉴 매핑)",subtitle:"역할별 메뉴 읽기/쓰기 권한 부여",actions:d.jsx(ne,{onClick:y,disabled:!n||f,children:f?"저장 중...":"저장"})}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"240px 1fr",gap:16},children:[d.jsxs(qh,{style:{padding:12},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",padding:"4px 6px 10px"},children:"역할 선택"}),o?d.jsx(dr,{}):e.length===0?d.jsx("div",{style:{padding:16,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}):e.map(m=>d.jsxs("button",{onClick:()=>v(m.roleId),style:{display:"block",width:"100%",textAlign:"left",padding:"9px 10px",borderRadius:8,fontSize:13,marginBottom:2,border:"none",cursor:"pointer",background:n===m.roleId?"var(--uiws-row-hover)":"transparent",color:n===m.roleId?"var(--uiws-primary)":"var(--uiws-text)",fontWeight:n===m.roleId?600:400},children:[m.roleNm," ",d.jsxs("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:["(",m.roleId,")"]})]},m.roleId))]}),d.jsx(qh,{style:{padding:0,overflow:"hidden"},children:s?d.jsx(dr,{}):d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[d.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),d.jsx("th",{style:{textAlign:"center",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)",width:90},children:"읽기"}),d.jsx("th",{style:{textAlign:"center",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)",width:90},children:"쓰기"})]})}),d.jsx("tbody",{children:a.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑할 메뉴가 없습니다."})}):a.map(m=>d.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[d.jsxs("td",{style:{padding:"10px 14px"},children:[m.menuNm," ",d.jsx("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:m.menuId})]}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("input",{type:"checkbox",checked:m.readYn==="Y",onChange:()=>g(m.menuId,"readYn")})}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("input",{type:"checkbox",checked:m.writeYn==="Y",onChange:()=>g(m.menuId,"writeYn")})})]},m.menuId))})]})})]}),h&&d.jsx("p",{style:{marginTop:12,fontSize:13,color:"var(--uiws-text-muted)"},children:h})]})})}const m2=20;function km(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 코드 그룹입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function kce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState({grpCd:"",grpNm:"",useYn:"Y",values:[]}),[g,y]=j.useState("");async function m(E=a,N=o){var D,k,R,z;u(!0);try{const B=await Uz({keyword:N||void 0,page:E,size:m2});t(((k=(D=B.data)==null?void 0:D.data)==null?void 0:k.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{m(0,"")},[]);function x(){v({grpCd:"",grpNm:"",useYn:"Y",values:[]}),p(!1),y(""),c(!0)}async function w(E){var N;y("");try{const k=(N=(await Iz(E.grpCd)).data)==null?void 0:N.data;v({grpCd:k.grpCd,grpNm:k.grpNm,useYn:k.useYn,values:k.values||[]}),p(!0),c(!0)}catch(D){alert(km(D))}}function S(){v(E=>({...E,values:[...E.values,{grpCd:E.grpCd,codeVal:"",codeNm:"",sortOrd:E.values.length+1,useYn:"Y"}]}))}function O(E,N){v(D=>({...D,values:D.values.map((k,R)=>R===E?{...k,...N}:k)}))}function A(E){v(N=>({...N,values:N.values.filter((D,k)=>k!==E)}))}async function _(){if(y(""),!b.grpCd.trim()||!b.grpNm.trim()){y("그룹 코드와 이름은 필수입니다.");return}const E={...b,values:b.values.map(N=>({...N,grpCd:b.grpCd}))};try{h?await qz(b.grpCd,E):await Hz(E),c(!1),m()}catch(N){y(km(N))}}async function T(E){if(confirm(`코드 그룹 '${E}' 을(를) 삭제할까요?`))try{await Fz(E),m()}catch(N){alert(km(N))}}const M=Math.max(1,Math.ceil(n/m2)),L=[{key:"grpCd",header:"그룹 코드",render:E=>d.jsx("span",{className:"font-mono",children:E.grpCd})},{key:"grpNm",header:"그룹명"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:E=>d.jsx("button",{onClick:N=>{N.stopPropagation(),T(E.grpCd)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"공통코드 관리",subtitle:"코드 그룹 및 코드값 정의",actions:d.jsx(ne,{onClick:x,children:"그룹 추가"})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"그룹코드/그룹명 검색",style:{flex:1,minWidth:220}}),d.jsx(ne,{onClick:()=>{i(0),m(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.grpCd,onRowClick:E=>w(E),empty:"등록된 코드 그룹이 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),m(E)}})]}),f&&d.jsxs(vr,{title:h?"코드 그룹 수정":"코드 그룹 추가",onClose:()=>c(!1),children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[d.jsx(je,{label:"그룹 코드",children:d.jsx(le,{value:b.grpCd,onChange:E=>v({...b,grpCd:E}),placeholder:"예: ALARM_TYPE",style:{width:"100%"}})}),d.jsx(je,{label:"그룹명",children:d.jsx(le,{value:b.grpNm,onChange:E=>v({...b,grpNm:E}),style:{width:"100%"}})})]}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:b.useYn,onChange:E=>v({...b,useYn:E}),placeholder:"Y / N"})}),d.jsxs("div",{style:{marginTop:8,marginBottom:6,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[d.jsx("span",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:"코드값"}),d.jsx(ne,{variant:"ghost",onClick:S,children:"+ 값 추가"})]}),d.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[d.jsx("thead",{children:d.jsxs("tr",{style:{background:"var(--uiws-surface-2)",color:"var(--uiws-text-muted)"},children:[d.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드값"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드명"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:60},children:"순서"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:50},children:"사용"}),d.jsx("th",{style:{width:36}})]})}),d.jsx("tbody",{children:b.values.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:5,style:{padding:14,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):b.values.map((E,N)=>d.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.codeVal,onChange:D=>O(N,{codeVal:D}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.codeNm,onChange:D=>O(N,{codeNm:D}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{type:"number",value:String(E.sortOrd??""),onChange:D=>O(N,{sortOrd:D===""?null:Number(D)}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.useYn,onChange:D=>O(N,{useYn:D}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("button",{onClick:()=>A(N),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer"},children:"×"})})]},N))})]})}),g&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)",marginTop:8},children:g}),d.jsxs("div",{className:"flex justify-end gap-2 pt-3",children:[d.jsx(ne,{variant:"ghost",onClick:()=>c(!1),children:"취소"}),d.jsx(ne,{onClick:_,children:"저장"})]})]})]})})}const v2={menuId:"",menuNm:"",parentMenuId:"",programId:"",menuUrl:"",sortOrd:null,useYn:"Y"},g2=100;function b2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 메뉴 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Lce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(v2),[m,x]=j.useState("");async function w(N=a){var D,k,R,z;u(!0);try{const B=await Gz({page:N,size:g2});t(((k=(D=B.data)==null?void 0:D.data)==null?void 0:k.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}async function S(){var N,D;try{const k=await Vz({page:0,size:200});l(((D=(N=k.data)==null?void 0:N.data)==null?void 0:D.content)||[])}catch{l([])}}j.useEffect(()=>{w(0),S()},[]);function O(){y(v2),v(!1),x(""),p(!0)}function A(N){y({...N}),v(!0),x(""),p(!0)}async function _(){if(x(""),!g.menuId.trim()||!g.menuNm.trim()){x("메뉴 ID와 이름은 필수입니다.");return}try{b?await Kz(g.menuId,g):await Yz(g),p(!1),w()}catch(N){x(b2(N))}}async function T(){if(f.size!==0&&confirm(`선택한 ${f.size}개 메뉴를 삭제할까요?`))try{await Xz([...f]),w()}catch(N){alert(b2(N))}}const M=N=>c(D=>{const k=new Set(D);return k.has(N)?k.delete(N):k.add(N),k}),L=Math.max(1,Math.ceil(n/g2)),E=[{key:"sel",header:"",width:36,render:N=>d.jsx("input",{type:"checkbox",checked:f.has(N.menuId),onChange:()=>M(N.menuId),onClick:D=>D.stopPropagation()})},{key:"menuId",header:"메뉴 ID",render:N=>d.jsx("span",{className:"font-mono",children:N.menuId})},{key:"menuNm",header:"메뉴명"},{key:"parentMenuId",header:"상위"},{key:"programId",header:"프로그램"},{key:"menuUrl",header:"URL"},{key:"sortOrd",header:"순서",width:60},{key:"useYn",header:"사용",width:80,render:N=>d.jsx(_o,{yn:N.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"메뉴 관리",subtitle:"시스템 메뉴 트리/프로그램 연결",actions:d.jsxs(d.Fragment,{children:[d.jsxs(ne,{variant:"danger",onClick:T,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(ne,{onClick:O,children:"메뉴 추가"})]})}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:E,rows:e,rowKey:N=>N.menuId,onRowClick:N=>A(N),empty:"등록된 메뉴가 없습니다."}),d.jsx(Eo,{page:a,totalPages:L,onChange:N=>{i(N),w(N)}})]}),h&&d.jsxs(vr,{title:b?"메뉴 수정":"메뉴 추가",onClose:()=>p(!1),children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[d.jsx(je,{label:"메뉴 ID",children:d.jsx(le,{value:g.menuId,onChange:N=>y({...g,menuId:N}),style:{width:"100%"}})}),d.jsx(je,{label:"메뉴명",children:d.jsx(le,{value:g.menuNm,onChange:N=>y({...g,menuNm:N}),style:{width:"100%"}})}),d.jsx(je,{label:"상위 메뉴 ID",children:d.jsx(le,{value:g.parentMenuId,onChange:N=>y({...g,parentMenuId:N}),style:{width:"100%"}})}),d.jsx(je,{label:"프로그램",children:d.jsxs("select",{value:g.programId,onChange:N=>y({...g,programId:N.target.value}),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[d.jsx("option",{value:"",children:"(선택 안 함)"}),o.map(N=>d.jsxs("option",{value:N.programId,children:[N.programNm," (",N.programId,")"]},N.programId))]})}),d.jsx(je,{label:"메뉴 URL",children:d.jsx(le,{value:g.menuUrl,onChange:N=>y({...g,menuUrl:N}),style:{width:"100%"}})}),d.jsx(je,{label:"정렬 순서",children:d.jsx(le,{type:"number",value:String(g.sortOrd??""),onChange:N=>y({...g,sortOrd:N===""?null:Number(N)}),style:{width:"100%"}})})]}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:N=>y({...g,useYn:N}),placeholder:"Y / N"})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ne,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(ne,{onClick:_,children:"저장"})]})]})]})})}const x2={deptId:"",deptNm:"",parentDeptId:"",sortOrd:null,useYn:"Y"},S2=20;function w2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 부서 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function zce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(x2),[g,y]=j.useState("");async function m(T=a,M=o){var L,E,N,D;u(!0);try{const k=await Qz({keyword:M||void 0,page:T,size:S2});t(((E=(L=k.data)==null?void 0:L.data)==null?void 0:E.content)||[]),r(((D=(N=k.data)==null?void 0:N.data)==null?void 0:D.total)||0)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{m(0,"")},[]);function x(){v(x2),p(!1),y(""),c(!0)}function w(T){v({...T}),p(!0),y(""),c(!0)}async function S(){if(y(""),!b.deptNm.trim()){y("부서명은 필수입니다.");return}try{h?await Zz(b.deptId,b):await Wz(b),c(!1),m()}catch(T){y(w2(T))}}async function O(T){if(confirm(`부서 '${T}' 을(를) 삭제할까요?`))try{await Jz(T),m()}catch(M){alert(w2(M))}}const A=Math.max(1,Math.ceil(n/S2)),_=[{key:"deptId",header:"부서 ID",render:T=>d.jsx("span",{className:"font-mono",children:T.deptId})},{key:"deptNm",header:"부서명"},{key:"parentDeptId",header:"상위 부서"},{key:"sortOrd",header:"순서",width:60},{key:"useYn",header:"사용",width:80,render:T=>d.jsx(_o,{yn:T.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:T=>d.jsx("button",{onClick:M=>{M.stopPropagation(),O(T.deptId)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"부서 관리",subtitle:"조직 부서 계층/정렬",actions:d.jsx(ne,{onClick:x,children:"부서 추가"})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"부서명 검색",style:{flex:1,minWidth:220}}),d.jsx(ne,{onClick:()=>{i(0),m(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:_,rows:e,rowKey:T=>T.deptId,onRowClick:T=>w(T),empty:"등록된 부서가 없습니다."}),d.jsx(Eo,{page:a,totalPages:A,onChange:T=>{i(T),m(T)}})]}),f&&d.jsxs(vr,{title:h?"부서 수정":"부서 추가",onClose:()=>c(!1),children:[d.jsx(je,{label:"부서 ID (수정 불가)",children:d.jsx(le,{value:b.deptId,onChange:T=>v({...b,deptId:T}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),d.jsx(je,{label:"부서명",children:d.jsx(le,{value:b.deptNm,onChange:T=>v({...b,deptNm:T}),style:{width:"100%"}})}),d.jsx(je,{label:"상위 부서 ID",children:d.jsx(le,{value:b.parentDeptId,onChange:T=>v({...b,parentDeptId:T}),style:{width:"100%"}})}),d.jsx(je,{label:"정렬 순서",children:d.jsx(le,{type:"number",value:String(b.sortOrd??""),onChange:T=>v({...b,sortOrd:T===""?null:Number(T)}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:b.useYn,onChange:T=>v({...b,useYn:T}),placeholder:"Y / N"})}),g&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:g}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ne,{variant:"ghost",onClick:()=>c(!1),children:"취소"}),d.jsx(ne,{onClick:S,children:"저장"})]})]})]})})}const O2={companyId:"",companyNm:"",bizNo:"",useYn:"Y"},j2=20;function A2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 거래처입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Bce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(O2),[m,x]=j.useState("");async function w(E=a,N=o){var D,k,R,z;u(!0);try{const B=await e8({keyword:N||void 0,page:E,size:j2});t(((k=(D=B.data)==null?void 0:D.data)==null?void 0:k.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{w(0,"")},[]);function S(){y(O2),v(!1),x(""),p(!0)}function O(E){y({...E}),v(!0),x(""),p(!0)}async function A(){if(x(""),!g.companyNm.trim()){x("거래처명은 필수입니다.");return}try{b?await n8(g.companyId,g):await t8(g),p(!1),w()}catch(E){x(A2(E))}}async function _(){if(f.size!==0&&confirm(`선택한 ${f.size}개 거래처를 삭제할까요?`))try{await r8([...f]),w()}catch(E){alert(A2(E))}}const T=E=>c(N=>{const D=new Set(N);return D.has(E)?D.delete(E):D.add(E),D}),M=Math.max(1,Math.ceil(n/j2)),L=[{key:"sel",header:"",width:36,render:E=>d.jsx("input",{type:"checkbox",checked:f.has(E.companyId),onChange:()=>T(E.companyId),onClick:N=>N.stopPropagation()})},{key:"companyId",header:"거래처 ID",render:E=>d.jsx("span",{className:"font-mono",children:E.companyId})},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"거래처 관리",subtitle:"거래처(협력사) 마스터",actions:d.jsxs(d.Fragment,{children:[d.jsxs(ne,{variant:"danger",onClick:_,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(ne,{onClick:S,children:"거래처 추가"})]})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"거래처명/사업자번호 검색",style:{flex:1,minWidth:220}}),d.jsx(ne,{onClick:()=>{i(0),w(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.companyId,onRowClick:E=>O(E),empty:"등록된 거래처가 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),w(E)}})]}),h&&d.jsxs(vr,{title:b?"거래처 수정":"거래처 추가",onClose:()=>p(!1),children:[d.jsx(je,{label:"거래처 ID",children:d.jsx(le,{value:g.companyId,onChange:E=>y({...g,companyId:E}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),d.jsx(je,{label:"거래처명",children:d.jsx(le,{value:g.companyNm,onChange:E=>y({...g,companyNm:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사업자번호",children:d.jsx(le,{value:g.bizNo,onChange:E=>y({...g,bizNo:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N"})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ne,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(ne,{onClick:A,children:"저장"})]})]})]})})}const Uce=new Lk;function Ice(){return d.jsx(zk,{client:Uce,children:d.jsx(rk,{children:d.jsxs(R4,{children:[d.jsx(Ae,{path:"/login",element:d.jsx(a8,{})}),d.jsx(Ae,{path:"/signup",element:d.jsx(i8,{})}),d.jsx(Ae,{path:"/find-id",element:d.jsx(o8,{})}),d.jsx(Ae,{path:"/reset-pw",element:d.jsx(l8,{})}),d.jsxs(Ae,{element:d.jsx(fz,{}),children:[d.jsx(Ae,{path:"/dashboard",element:d.jsx(ece,{})}),d.jsx(Ae,{path:"/stores",element:d.jsx(tce,{})}),d.jsx(Ae,{path:"/templates",element:d.jsx(rce,{})}),d.jsx(Ae,{path:"/pos-cvt",element:d.jsx(ace,{})}),d.jsx(Ae,{path:"/tag-binding",element:d.jsx(bce,{})}),d.jsx(Ae,{path:"/update-queue",element:d.jsx(xce,{})}),d.jsx(Ae,{path:"/alarms",element:d.jsx(oce,{})}),d.jsx(Ae,{path:"/hcore",element:d.jsx(uce,{})}),d.jsx(Ae,{path:"/works",element:d.jsx(fce,{})}),d.jsx(Ae,{path:"/firmware",element:d.jsx(dce,{})}),d.jsx(Ae,{path:"/products",element:d.jsx(pce,{})}),d.jsx(Ae,{path:"/users",element:d.jsx(hce,{})}),d.jsx(Ae,{path:"/tenants",element:d.jsx(yce,{})}),d.jsx(Ae,{path:"/ai",element:d.jsx(mce,{})}),d.jsx(Ae,{path:"/mobile-app",element:d.jsx(Sce,{})}),d.jsx(Ae,{path:"/worklogs",element:d.jsx(wce,{})}),d.jsx(Ae,{path:"/schedules",element:d.jsx(Ece,{})}),d.jsx(Ae,{path:"/messages",element:d.jsx(Cce,{})}),d.jsx(Ae,{path:"/work-stats",element:d.jsx(Pce,{})}),d.jsx(Ae,{path:"/system/roles",element:d.jsx(Rce,{})}),d.jsx(Ae,{path:"/system/role-menus",element:d.jsx(Dce,{})}),d.jsx(Ae,{path:"/system/codes",element:d.jsx(kce,{})}),d.jsx(Ae,{path:"/system/menus",element:d.jsx(Lce,{})}),d.jsx(Ae,{path:"/system/depts",element:d.jsx(zce,{})}),d.jsx(Ae,{path:"/system/companies",element:d.jsx(Bce,{})})]}),d.jsx(Ae,{path:"*",element:d.jsx(tC,{to:"/dashboard",replace:!0})})]})})})}C3.createRoot(document.getElementById("root")).render(d.jsx(j.StrictMode,{children:d.jsx(M3,{children:d.jsx(Ice,{})})}));
