var d1=e=>{throw TypeError(e)};var gy=(e,t,n)=>t.has(e)||d1("Cannot "+n);var N=(e,t,n)=>(gy(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?d1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(gy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(gy(e,t,"access private method"),n);var af=(e,t,n,r)=>({set _(a){X(e,t,a,n)},get _(){return N(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 of=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qA={exports:{}},Vh={};/**
 * @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 HR=Symbol.for("react.transitional.element"),qR=Symbol.for("react.fragment");function FA(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:HR,type:e,key:r,ref:t!==void 0?t:null,props:n}}Vh.Fragment=qR;Vh.jsx=FA;Vh.jsxs=FA;qA.exports=Vh;var c=qA.exports,GA={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 L0=Symbol.for("react.transitional.element"),FR=Symbol.for("react.portal"),GR=Symbol.for("react.fragment"),KR=Symbol.for("react.strict_mode"),YR=Symbol.for("react.profiler"),VR=Symbol.for("react.consumer"),XR=Symbol.for("react.context"),QR=Symbol.for("react.forward_ref"),WR=Symbol.for("react.suspense"),ZR=Symbol.for("react.memo"),KA=Symbol.for("react.lazy"),JR=Symbol.for("react.activity"),h1=Symbol.iterator;function e$(e){return e===null||typeof e!="object"?null:(e=h1&&e[h1]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VA=Object.assign,XA={};function ss(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||YA}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 QA(){}QA.prototype=ss.prototype;function z0(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||YA}var B0=z0.prototype=new QA;B0.constructor=z0;VA(B0,ss.prototype);B0.isPureReactComponent=!0;var p1=Array.isArray;function Fm(){}var Je={H:null,A:null,T:null,S:null},WA=Object.prototype.hasOwnProperty;function I0(e,t,n){var r=n.ref;return{$$typeof:L0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function t$(e,t){return I0(e.type,t,e.props)}function U0(e){return typeof e=="object"&&e!==null&&e.$$typeof===L0}function n$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var y1=/\/+/g;function by(e,t){return typeof e=="object"&&e!==null&&e.key!=null?n$(""+e.key):t.toString(36)}function r$(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Fm,Fm):(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 L0:case FR:o=!0;break;case KA:return o=e._init,$o(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+by(e,0):r,p1(a)?(n="",o!=null&&(n=o.replace(y1,"$&/")+"/"),$o(a,t,n,"",function(u){return u})):a!=null&&(U0(a)&&(a=t$(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(y1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(p1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+by(r,s),o+=$o(r,t,n,i,a);else if(s=e$(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+by(r,s++),o+=$o(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return $o(r$(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 lf(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 a$(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 m1=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)},i$={map:lf,forEach:function(e,t,n){lf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lf(e,function(){t++}),t},toArray:function(e){return lf(e,function(t){return t})||[]},only:function(e){if(!U0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Activity=JR;ce.Children=i$;ce.Component=ss;ce.Fragment=GR;ce.Profiler=YR;ce.PureComponent=z0;ce.StrictMode=KR;ce.Suspense=WR;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=VA({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!WA.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 I0(e.type,a,r)};ce.createContext=function(e){return e={$$typeof:XR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:VR,_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)WA.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 I0(e,i,a)};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:QR,render:e}};ce.isValidElement=U0;ce.lazy=function(e){return{$$typeof:KA,_payload:{_status:-1,_result:e},_init:a$}};ce.memo=function(e,t){return{$$typeof:ZR,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(Fm,m1)}catch(i){m1(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";GA.exports=ce;var j=GA.exports;const k=Ue(j);var ZA={exports:{}},Xh={},JA={exports:{}},eE={};/**
 * @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,G=R[q];if(0<a(G,z))R[q]=z,R[B]=G,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,G=R.length,F=G>>>1;q<F;){var K=2*(q+1)-1,J=R[K],ye=K+1,ke=R[ye];if(0>a(J,B))ye<G&&0>a(ke,J)?(R[q]=ke,R[ye]=B,q=ye):(R[q]=J,R[K]=B,q=K);else if(ye<G&&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=[],d=1,f=null,h=3,p=!1,b=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=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(m=!1,w(R),!b)if(n(s)!==null)b=!0,O||(O=!0,E());else{var z=n(u);z!==null&&P(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,m&&(m=!1,v(A),A=-1),p=!0;var B=h;try{t:{for(w(R),f=n(s);f!==null&&!(f.expirationTime>R&&M());){var q=f.callback;if(typeof q=="function"){f.callback=null,h=f.priorityLevel;var G=q(f.expirationTime<=R);if(R=e.unstable_now(),typeof G=="function"){f.callback=G,w(R),z=!0;break t}f===n(s)&&r(s),w(R)}else r(s);f=n(s)}if(f!==null)z=!0;else{var F=n(u);F!==null&&P(S,F.startTime-R),z=!1}}break e}finally{f=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 C=new MessageChannel,$=C.port2;C.port1.onmessage=L,E=function(){$.postMessage(null)}}else E=function(){y(L,0)};function P(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 G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=B+G,R={id:d++,callback:z,priorityLevel:R,startTime:B,expirationTime:G,sortIndex:-1},B>q?(R.sortIndex=B,t(u,R),n(s)===null&&R===n(u)&&(m?(v(A),A=-1):m=!0,P(S,B-q))):(R.sortIndex=G,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}}}})(eE);JA.exports=eE;var o$=JA.exports,tE={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 l$=j;function nE(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(nE(522))},D:wa,C:wa,L:wa,m:wa,X:wa,S:wa,M:wa},p:0,findDOMNode:null},s$=Symbol.for("react.portal");function u$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s$,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var lu=l$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Qh(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(nE(299));return u$(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=Qh(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=Qh(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=Qh(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=Qh(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 rE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rE)}catch(e){console.error(e)}}rE(),tE.exports=tn;var c$=tE.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=o$,aE=j,f$=c$;function U(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 iE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pc(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 oE(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 lE(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 v1(e){if(Pc(e)!==e)throw Error(U(188))}function d$(e){var t=e.alternate;if(!t){if(t=Pc(e),t===null)throw Error(U(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 v1(a),e;if(i===r)return v1(a),t;i=i.sibling}throw Error(U(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(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function sE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=sE(e),t!==null)return t;e=e.sibling}return null}var et=Object.assign,h$=Symbol.for("react.element"),sf=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),zo=Symbol.for("react.fragment"),uE=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),cE=Symbol.for("react.consumer"),Xr=Symbol.for("react.context"),H0=Symbol.for("react.forward_ref"),Km=Symbol.for("react.suspense"),Ym=Symbol.for("react.suspense_list"),q0=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Vm=Symbol.for("react.activity"),p$=Symbol.for("react.memo_cache_sentinel"),g1=Symbol.iterator;function Ds(e){return e===null||typeof e!="object"?null:(e=g1&&e[g1]||e["@@iterator"],typeof e=="function"?e:null)}var y$=Symbol.for("react.client.reference");function Xm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===y$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zo:return"Fragment";case Gm:return"Profiler";case uE:return"StrictMode";case Km:return"Suspense";case Ym:return"SuspenseList";case Vm:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case Xr:return e.displayName||"Context";case cE:return(e._context.displayName||"Context")+".Consumer";case H0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q0:return t=e.displayName||null,t!==null?t:Xm(e.type)||"Memo";case ja:t=e._payload,e=e._init;try{return Xm(e(t))}catch{}}return null}var tu=Array.isArray,ie=aE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=f$.__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 Ke(e,t){Bo++,Qm[Bo]=e.current,e.current=t}var Ar=Cr(null),_u=Cr(null),Ya=Cr(null),fd=Cr(null);function dd(e,t){switch(Ke(Ya,t),Ke(_u,e),Ke(Ar,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jS(t),e=NT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Mt(Ar),Ke(Ar,e)}function Al(){Mt(Ar),Mt(_u),Mt(Ya)}function Wm(e){e.memoizedState!==null&&Ke(fd,e);var t=Ar.current,n=NT(t,e.type);t!==n&&(Ke(_u,e),Ke(Ar,n))}function hd(e){_u.current===e&&(Mt(Ar),Mt(_u)),fd.current===e&&(Mt(fd),zu._currentValue=Fi)}var xy,b1;function Si(e){if(xy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xy=t&&t[1]||"",b1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+xy+e+b1}var Sy=!1;function wy(e,t){if(!e||Sy)return"";Sy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var h=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){h=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){h=p}(f=e())&&typeof f.catch=="function"&&f.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 d=`
`+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{Sy=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Si(n):""}function m$(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 wy(e.type,!1);case 11:return wy(e.type.render,!1);case 1:return wy(e.type,!0);case 31:return Si("Activity");default:return""}}function x1(e){try{var t="",n=null;do t+=m$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Zm=Object.prototype.hasOwnProperty,F0=Ot.unstable_scheduleCallback,Oy=Ot.unstable_cancelCallback,v$=Ot.unstable_shouldYield,g$=Ot.unstable_requestPaint,En=Ot.unstable_now,b$=Ot.unstable_getCurrentPriorityLevel,fE=Ot.unstable_ImmediatePriority,dE=Ot.unstable_UserBlockingPriority,pd=Ot.unstable_NormalPriority,x$=Ot.unstable_LowPriority,hE=Ot.unstable_IdlePriority,S$=Ot.log,w$=Ot.unstable_setDisableYieldValue,Rc=null,_n=null;function Ua(e){if(typeof S$=="function"&&w$(e),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(Rc,e)}catch{}}var Tn=Math.clz32?Math.clz32:A$,O$=Math.log,j$=Math.LN2;function A$(e){return e>>>=0,e===0?32:31-(O$(e)/j$|0)|0}var uf=256,cf=262144,ff=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 Wh(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 $c(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function E$(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 pE(){var e=ff;return ff<<=1,!(ff&62914560)&&(ff=4194304),e}function jy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _$(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 d=31-Tn(n),f=1<<d;l[d]=0,s[d]=-1;var h=u[d];if(h!==null)for(u[d]=null,d=0;d<h.length;d++){var p=h[d];p!==null&&(p.lane&=-536870913)}n&=~f}r!==0&&yE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function yE(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 mE(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 vE(e,t){var n=t&-t;return n=n&42?1:G0(n),n&(e.suspendedLanes|t)?0:n}function G0(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 K0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gE(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:UT(e.type))}function S1(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var ui=Math.random().toString(36).slice(2),zt="__reactFiber$"+ui,hn="__reactProps$"+ui,us="__reactContainer$"+ui,Jm="__reactEvents$"+ui,T$="__reactListeners$"+ui,C$="__reactHandles$"+ui,w1="__reactResources$"+ui,kc="__reactMarker$"+ui;function Y0(e){delete e[zt],delete e[hn],delete e[Jm],delete e[T$],delete e[C$]}function Io(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[us]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=CS(e);e!==null;){if(n=e[zt])return n;e=CS(e)}return t}e=n,n=e.parentNode}return null}function cs(e){if(e=e[zt]||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(U(33))}function tl(e){var t=e[w1];return t||(t=e[w1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[kc]=!0}var bE=new Set,xE={};function fo(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(xE[e]=t,e=0;e<t.length;e++)bE.add(t[e])}var N$=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]*$"),O1={},j1={};function M$(e){return Zm.call(j1,e)?!0:Zm.call(O1,e)?!1:N$.test(e)?j1[e]=!0:(O1[e]=!0,!1)}function Uf(e,t,n){if(M$(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 df(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 Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P$(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 ev(e){if(!e._valueTracker){var t=SE(e)?"checked":"value";e._valueTracker=P$(e,t,""+e[t])}}function wE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=SE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yd(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 R$=/[\n"\\]/g;function Fn(e){return e.replace(R$,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tv(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=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?nv(e,o,Un(t)):n!=null?nv(e,o,Un(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=""+Un(l):e.removeAttribute("name")}function OE(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)){ev(e);return}n=n!=null?""+Un(n):"",t=t!=null?""+Un(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),ev(e)}function nv(e,t,n){t==="number"&&yd(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=""+Un(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 jE(e,t,n){if(t!=null&&(t=""+Un(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Un(n):""}function AE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(tu(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Un(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),ev(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 $$=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 A1(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||$$.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function EE(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(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&&A1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&A1(e,i,t[i])}function V0(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 D$=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"]]),k$=/^[\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 Hf(e){return k$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qr(){}var rv=null;function X0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uo=null,rl=null;function E1(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(tv(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(U(90));tv(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&&wE(r)}break e;case"textarea":jE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&nl(e,!!n.multiple,t,!1)}}}var Ay=!1;function _E(e,t,n){if(Ay)return e(t,n);Ay=!0;try{var r=e(t);return r}finally{if(Ay=!1,(Uo!==null||rl!==null)&&(up(),Uo&&(t=Uo,e=rl,rl=Uo=null,E1(t),e)))for(t=0;t<e.length;t++)E1(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(U(231,t,typeof n));return n}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),av=!1;if(la)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){av=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{av=!1}var Ha=null,Q0=null,qf=null;function TE(){if(qf)return qf;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 qf=a.slice(e,1<r?1-r:void 0)}function Ff(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 hf(){return!0}function _1(){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)?hf:_1,this.isPropagationStopped=_1,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=hf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hf)},persist:function(){},isPersistent:hf}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zh=pn(ho),Lc=et({},ho,{view:0,detail:0}),L$=pn(Lc),Ey,_y,Ls,Jh=et({},Lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W0,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"?(Ey=e.screenX-Ls.screenX,_y=e.screenY-Ls.screenY):_y=Ey=0,Ls=e),Ey)},movementY:function(e){return"movementY"in e?e.movementY:_y}}),T1=pn(Jh),z$=et({},Jh,{dataTransfer:0}),B$=pn(z$),I$=et({},Lc,{relatedTarget:0}),Ty=pn(I$),U$=et({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),H$=pn(U$),q$=et({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F$=pn(q$),G$=et({},ho,{data:0}),C1=pn(G$),K$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y$={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"},V$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V$[e])?!!t[e]:!1}function W0(){return X$}var Q$=et({},Lc,{key:function(e){if(e.key){var t=K$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ff(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W0,charCode:function(e){return e.type==="keypress"?Ff(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ff(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W$=pn(Q$),Z$=et({},Jh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),N1=pn(Z$),J$=et({},Lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W0}),e3=pn(J$),t3=et({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),n3=pn(t3),r3=et({},Jh,{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}),a3=pn(r3),i3=et({},ho,{newState:0,oldState:0}),o3=pn(i3),l3=[9,13,27,32],Z0=la&&"CompositionEvent"in window,su=null;la&&"documentMode"in document&&(su=document.documentMode);var s3=la&&"TextEvent"in window&&!su,CE=la&&(!Z0||su&&8<su&&11>=su),M1=" ",P1=!1;function NE(e,t){switch(e){case"keyup":return l3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ME(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ho=!1;function u3(e,t){switch(e){case"compositionend":return ME(t);case"keypress":return t.which!==32?null:(P1=!0,M1);case"textInput":return e=t.data,e===M1&&P1?null:e;default:return null}}function c3(e,t){if(Ho)return e==="compositionend"||!Z0&&NE(e,t)?(e=TE(),qf=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 CE&&t.locale!=="ko"?null:t.data;default:return null}}var f3={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 R1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f3[e.type]:t==="textarea"}function PE(e,t,n,r){Uo?rl?rl.push(r):rl=[r]:Uo=r,t=Rd(t,"onChange"),0<t.length&&(n=new Zh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uu=null,Cu=null;function d3(e){_T(e,0)}function ep(e){var t=nu(e);if(wE(t))return e}function $1(e,t){if(e==="change")return t}var RE=!1;if(la){var Cy;if(la){var Ny="oninput"in document;if(!Ny){var D1=document.createElement("div");D1.setAttribute("oninput","return;"),Ny=typeof D1.oninput=="function"}Cy=Ny}else Cy=!1;RE=Cy&&(!document.documentMode||9<document.documentMode)}function k1(){uu&&(uu.detachEvent("onpropertychange",$E),Cu=uu=null)}function $E(e){if(e.propertyName==="value"&&ep(Cu)){var t=[];PE(t,Cu,e,X0(e)),_E(d3,t)}}function h3(e,t,n){e==="focusin"?(k1(),uu=t,Cu=n,uu.attachEvent("onpropertychange",$E)):e==="focusout"&&k1()}function p3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ep(Cu)}function y3(e,t){if(e==="click")return ep(t)}function m3(e,t){if(e==="input"||e==="change")return ep(t)}function v3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:v3;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(!Zm.call(t,a)||!Mn(e[a],t[a]))return!1}return!0}function L1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z1(e,t){var n=L1(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=L1(n)}}function DE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?DE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yd(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=yd(e.document)}return t}function J0(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 g3=la&&"documentMode"in document&&11>=document.documentMode,qo=null,iv=null,cu=null,ov=!1;function B1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ov||qo==null||qo!==yd(r)||(r=qo,"selectionStart"in r&&J0(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=Rd(iv,"onSelect"),0<r.length&&(t=new Zh("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")},My={},LE={};la&&(LE=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(My[e])return My[e];if(!Fo[e])return e;var t=Fo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in LE)return My[e]=t[n];return e}var zE=po("animationend"),BE=po("animationiteration"),IE=po("animationstart"),b3=po("transitionrun"),x3=po("transitionstart"),S3=po("transitioncancel"),UE=po("transitionend"),HE=new Map,lv="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(" ");lv.push("scrollEnd");function hr(e,t){HE.set(e,t),fo(t,[e])}var md=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)},In=[],Go=0,eb=0;function tp(){for(var e=Go,t=eb=Go=0;t<e;){var n=In[t];In[t++]=null;var r=In[t];In[t++]=null;var a=In[t];In[t++]=null;var i=In[t];if(In[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&&qE(n,a,i)}}function np(e,t,n,r){In[Go++]=e,In[Go++]=t,In[Go++]=n,In[Go++]=r,eb|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function tb(e,t,n,r){return np(e,t,n,r),vd(e)}function yo(e,t){return np(e,null,null,t),vd(e)}function qE(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 vd(e){if(50<bu)throw bu=0,Tv=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ko={};function w3(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 w3(e,t,n,r)}function nb(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 FE(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 Gf(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")nb(e)&&(o=1);else if(typeof e=="string")o=_4(e,n,Ar.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Vm:return e=On(31,n,t,a),e.elementType=Vm,e.lanes=i,e;case zo:return Gi(n.children,a,i,t);case uE:o=8,a|=24;break;case Gm:return e=On(12,n,t,a|2),e.elementType=Gm,e.lanes=i,e;case Km:return e=On(13,n,t,a),e.elementType=Km,e.lanes=i,e;case Ym:return e=On(19,n,t,a),e.elementType=Ym,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xr:o=10;break e;case cE:o=9;break e;case H0:o=11;break e;case q0:o=14;break e;case ja:o=16,r=null;break e}o=29,n=Error(U(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 Py(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function GE(e){var t=On(18,null,null,0);return t.stateNode=e,t}function Ry(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 I1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=I1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:x1(t)},I1.set(e,t),t)}return{value:e,source:t,stack:x1(t)}}var Yo=[],Vo=0,gd=null,Mu=0,Hn=[],qn=0,ii=null,Sr=1,wr="";function qr(e,t){Yo[Vo++]=Mu,Yo[Vo++]=gd,gd=e,Mu=t}function KE(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 rb(e){e.return!==null&&(qr(e,1),KE(e,1,0))}function ab(e){for(;e===gd;)gd=Yo[--Vo],Yo[Vo]=null,Mu=Yo[--Vo],Yo[Vo]=null;for(;e===ii;)ii=Hn[--qn],Hn[qn]=null,wr=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null}function YE(e,t){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ii,Sr=t.id,wr=t.overflow,ii=e}var Bt=null,Ze=null,Oe=!1,Va=null,Kn=!1,sv=Error(U(519));function oi(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pu(Gn(t,e)),sv}function U1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zt]=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),OE(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),AE(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||CT(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 H1(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:Bt=Bt.return}}function To(e){if(e!==Bt)return!1;if(!Oe)return H1(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")||Rv(e.type,e.memoizedProps)),n=!n),n&&Ze&&oi(e),H1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ze=TS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ze=TS(e)}else t===27?(t=Ze,ci(e.type)?(e=Lv,Lv=null,Ze=e):Ze=t):Ze=Bt?Qn(e.stateNode.nextSibling):null;return!0}function Zi(){Ze=Bt=null,Oe=!1}function $y(){var e=Va;return e!==null&&(un===null?un=e:un.push.apply(un,e),Va=null),e}function Pu(e){Va===null?Va=[e]:Va.push(e)}var uv=Cr(null),mo=null,Wr=null;function Ta(e,t,n){Ke(uv,t._currentValue),t._currentValue=n}function ta(e){e._currentValue=uv.current,Mt(uv)}function cv(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 fv(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),cv(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(U(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),cv(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(U(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===fd.current){if(o=a.alternate,o===null)throw Error(U(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(zu):e=[zu])}a=a.return}e!==null&&fv(t,e,n,r),t.flags|=262144}function bd(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 VE(mo,e)}function pf(e,t){return mo===null&&Ji(e),VE(e,t)}function VE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wr===null){if(e===null)throw Error(U(308));Wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wr=Wr.next=t;return n}var O3=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()})}},j3=Ot.unstable_scheduleCallback,A3=Ot.unstable_NormalPriority,pt={$$typeof:Xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ib(){return{controller:new O3,data:new Map,refCount:0}}function zc(e){e.refCount--,e.refCount===0&&j3(A3,function(){e.controller.abort()})}var fu=null,dv=0,Tl=0,al=null;function E3(e,t){if(fu===null){var n=fu=[];dv=0,Tl=Nb(),al={status:"pending",value:void 0,then:function(r){n.push(r)}}}return dv++,t.then(q1,q1),t}function q1(){if(--dv===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 _3(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 F1=ie.S;ie.S=function(e,t){sT=En(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&E3(e,t),F1!==null&&F1(e,t)};var Ki=Cr(null);function ob(){var e=Ki.current;return e!==null?e:qe.pooledCache}function Kf(e,t){t===null?Ke(Ki,Ki.current):Ke(Ki,t.pool)}function XE(){var e=ob();return e===null?null:{parent:pt._currentValue,pool:e}}var ds=Error(U(460)),lb=Error(U(474)),rp=Error(U(542)),xd={then:function(){}};function G1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function QE(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,Y1(e),e;default:if(typeof t.status=="string")t.then(Qr,Qr);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(U(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,Y1(e),e}throw Yi=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"?(Yi=n,ds):n}}var Yi=null;function K1(){if(Yi===null)throw Error(U(459));var e=Yi;return Yi=null,e}function Y1(e){if(e===ds||e===rp)throw Error(U(483))}var il=null,Ru=0;function yf(e){var t=Ru;return Ru+=1,il===null&&(il=[]),QE(il,e,t)}function zs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mf(e,t){throw t.$$typeof===h$?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function WE(e){function t(y,v){if(e){var x=y.deletions;x===null?(y.deletions=[v],y.flags|=16):x.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y){for(var v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function a(y,v){return y=ea(y,v),y.index=0,y.sibling=null,y}function i(y,v,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<v?(y.flags|=67108866,v):x):(y.flags|=67108866,v)):(y.flags|=1048576,v)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function l(y,v,x,w){return v===null||v.tag!==6?(v=Py(x,y.mode,w),v.return=y,v):(v=a(v,x),v.return=y,v)}function s(y,v,x,w){var S=x.type;return S===zo?d(y,v,x.props.children,w,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ja&&Oi(S)===v.type)?(v=a(v,x.props),zs(v,x),v.return=y,v):(v=Gf(x.type,x.key,x.props,null,y.mode,w),zs(v,x),v.return=y,v)}function u(y,v,x,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Ry(x,y.mode,w),v.return=y,v):(v=a(v,x.children||[]),v.return=y,v)}function d(y,v,x,w,S){return v===null||v.tag!==7?(v=Gi(x,y.mode,w,S),v.return=y,v):(v=a(v,x),v.return=y,v)}function f(y,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Py(""+v,y.mode,x),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case sf:return x=Gf(v.type,v.key,v.props,null,y.mode,x),zs(x,v),x.return=y,x;case eu:return v=Ry(v,y.mode,x),v.return=y,v;case ja:return v=Oi(v),f(y,v,x)}if(tu(v)||Ds(v))return v=Gi(v,y.mode,x,null),v.return=y,v;if(typeof v.then=="function")return f(y,yf(v),x);if(v.$$typeof===Xr)return f(y,pf(y,v),x);mf(y,v)}return null}function h(y,v,x,w){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:l(y,v,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case sf:return x.key===S?s(y,v,x,w):null;case eu:return x.key===S?u(y,v,x,w):null;case ja:return x=Oi(x),h(y,v,x,w)}if(tu(x)||Ds(x))return S!==null?null:d(y,v,x,w,null);if(typeof x.then=="function")return h(y,v,yf(x),w);if(x.$$typeof===Xr)return h(y,v,pf(y,x),w);mf(y,x)}return null}function p(y,v,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,l(v,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sf:return y=y.get(w.key===null?x:w.key)||null,s(v,y,w,S);case eu:return y=y.get(w.key===null?x:w.key)||null,u(v,y,w,S);case ja:return w=Oi(w),p(y,v,x,w,S)}if(tu(w)||Ds(w))return y=y.get(x)||null,d(v,y,w,S,null);if(typeof w.then=="function")return p(y,v,x,yf(w),S);if(w.$$typeof===Xr)return p(y,v,x,pf(v,w),S);mf(v,w)}return null}function b(y,v,x,w){for(var S=null,O=null,A=v,_=v=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),v=i(M,v,_),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=f(y,x[_],w),A!==null&&(v=i(A,v,_),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),v=i(T,v,_),O===null?S=T:O.sibling=T,O=T);return e&&A.forEach(function(L){return t(y,L)}),Oe&&qr(y,_),S}function m(y,v,x,w){if(x==null)throw Error(U(151));for(var S=null,O=null,A=v,_=v=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),v=i(L,v,_),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=f(y,M.value,w),M!==null&&(v=i(M,v,_),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),v=i(M,v,_),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,v,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 sf:e:{for(var S=x.key;v!==null;){if(v.key===S){if(S=x.type,S===zo){if(v.tag===7){n(y,v.sibling),w=a(v,x.props.children),w.return=y,y=w;break e}}else if(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ja&&Oi(S)===v.type){n(y,v.sibling),w=a(v,x.props),zs(w,x),w.return=y,y=w;break e}n(y,v);break}else t(y,v);v=v.sibling}x.type===zo?(w=Gi(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=Gf(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;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),w=a(v,x.children||[]),w.return=y,y=w;break e}else{n(y,v);break}else t(y,v);v=v.sibling}w=Ry(x,y.mode,w),w.return=y,y=w}return o(y);case ja:return x=Oi(x),g(y,v,x,w)}if(tu(x))return b(y,v,x,w);if(Ds(x)){if(S=Ds(x),typeof S!="function")throw Error(U(150));return x=S.call(x),m(y,v,x,w)}if(typeof x.then=="function")return g(y,v,yf(x),w);if(x.$$typeof===Xr)return g(y,v,pf(y,x),w);mf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),w=a(v,x),w.return=y,y=w):(n(y,v),w=Py(x,y.mode,w),w.return=y,y=w),o(y)):n(y,v)}return function(y,v,x,w){try{Ru=0;var S=g(y,v,x,w);return il=null,S}catch(A){if(A===ds||A===rp)throw A;var O=On(29,A,null,y.mode);return O.lanes=w,O.return=y,O}finally{}}}var eo=WE(!0),ZE=WE(!1),Aa=!1;function sb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hv(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 Xa(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=vd(e),qE(e,null,n),t}return np(e,r,t,n),vd(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,mE(e,n)}}function Dy(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 pv=!1;function hu(){if(pv){var e=al;if(e!==null)throw e}}function pu(e,t,n,r){pv=!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 d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=a.baseState;o=0,d=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&&(pv=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,m=l;h=t;var g=n;switch(m.tag){case 1:if(b=m.payload,typeof b=="function"){f=b.call(g,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=m.payload,h=typeof b=="function"?b.call(g,f,h):b,h==null)break e;f=et({},f,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},d===null?(u=d=p,s=f):d=d.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);d===null&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,i===null&&(a.shared.lanes=0),si|=o,e.lanes=o,e.memoizedState=f}}function JE(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function e_(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)JE(n[e],t)}var Cl=Cr(null),Sd=Cr(0);function V1(e,t){e=fa,Ke(Sd,e),Ke(Cl,t),fa=e|t.baseLanes}function yv(){Ke(Sd,fa),Ke(Cl,Cl.current)}function ub(){fa=Sd.current,Mt(Cl),Mt(Sd)}var Pn=Cr(null),Xn=null;function Ca(e){var t=e.alternate;Ke(st,st.current&1),Ke(Pn,e),Xn===null&&(t===null||Cl.current!==null||t.memoizedState!==null)&&(Xn=e)}function mv(e){Ke(st,st.current),Ke(Pn,e),Xn===null&&(Xn=e)}function t_(e){e.tag===22?(Ke(st,st.current),Ke(Pn,e),Xn===null&&(Xn=e)):Na()}function Na(){Ke(st,st.current),Ke(Pn,Pn.current)}function wn(e){Mt(Pn),Xn===e&&(Xn=null),Mt(st)}var st=Cr(0);function wd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Dv(n)||kv(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,Ie=null,dt=null,Od=!1,ol=!1,to=!1,jd=0,$u=0,ll=null,T3=0;function at(){throw Error(U(321))}function cb(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 fb(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?P_:wb,to=!1,i=n(r,a),to=!1,ol&&(i=r_(t,n,r,a)),n_(e),i}function n_(e){ie.H=Du;var t=Ie!==null&&Ie.next!==null;if(sa=0,dt=Ie=he=null,Od=!1,$u=0,ll=null,t)throw Error(U(300));e===null||yt||(e=e.dependencies,e!==null&&bd(e)&&(yt=!0))}function r_(e,t,n,r){he=e;var a=0;do{if(ol&&(ll=null),$u=0,ol=!1,25<=a)throw Error(U(301));if(a+=1,dt=Ie=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=R_,i=t(n,r)}while(ol);return i}function C3(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?Bc(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(he.flags|=1024),t}function db(){var e=jd!==0;return jd=0,e}function hb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function pb(e){if(Od){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Od=!1}sa=0,dt=Ie=he=null,ol=!1,$u=jd=0,ll=null}function Xt(){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(Ie===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=dt===null?he.memoizedState:dt.next;if(t!==null)dt=t,Ie=e;else{if(e===null)throw he.alternate===null?Error(U(467)):Error(U(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},dt===null?he.memoizedState=dt=e:dt=dt.next=e}return dt}function ap(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bc(e){var t=$u;return $u+=1,ll===null&&(ll=[]),e=QE(ll,e,t),t=he,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?P_:wb),e}function ip(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bc(e);if(e.$$typeof===Xr)return Ut(e)}throw Error(U(438,String(e)))}function yb(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=ap(),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]=p$;return t.index++,n}function ua(e,t){return typeof t=="function"?t(e):t}function Yf(e){var t=ut();return mb(t,Ie,e)}function mb(e,t,n){var r=e.queue;if(r===null)throw Error(U(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,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Se&f)===f:(sa&f)===f){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}),f===Tl&&(d=!0);else if((sa&h)===h){u=u.next,h===Tl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=f,o=i):s=s.next=f,he.lanes|=h,si|=h;f=u.action,to&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else h={lane:f,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|=f,si|=f;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Mn(i,e.memoizedState)&&(yt=!0,d&&(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 ky(e){var t=ut(),n=t.queue;if(n===null)throw Error(U(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 a_(e,t,n){var r=he,a=ut(),i=Oe;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var o=!Mn((Ie||a).memoizedState,n);if(o&&(a.memoizedState=n,yt=!0),a=a.queue,vb(l_.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},o_.bind(null,r,a,n,t),null),qe===null)throw Error(U(349));i||sa&127||i_(r,t,n)}return n}function i_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=ap(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function o_(e,t,n,r){t.value=n,t.getSnapshot=r,s_(t)&&u_(e)}function l_(e,t,n){return n(function(){s_(t)&&u_(e)})}function s_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function u_(e){var t=yo(e,2);t!==null&&fn(t,e,2)}function vv(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),to){Ua(!0);try{n()}finally{Ua(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function c_(e,t,n,r){return e.baseState=n,mb(e,Ie,typeof r=="function"?r:ua)}function N3(e,t,n,r,a){if(lp(e))throw Error(U(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,f_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function f_(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),X1(e,t,l)}catch(u){gv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),ie.T=i}}else try{i=n(a,r),X1(e,t,i)}catch(u){gv(e,t,u)}}function X1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Q1(e,t,r)},function(r){return gv(e,t,r)}):Q1(e,t,n)}function Q1(e,t,n){t.status="fulfilled",t.value=n,d_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,f_(e,n)))}function gv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,d_(t),t=t.next;while(t!==r)}e.action=null}function d_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function h_(e,t){return t}function W1(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=Kn;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=Xt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h_,lastRenderedState:t},n.queue=r,n=C_.bind(null,he,r),r.dispatch=n,r=vv(!1),i=Sb.bind(null,he,!1,r.queue),r=Xt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=N3.bind(null,he,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Z1(e){var t=ut();return p_(t,Ie,e)}function p_(e,t,n){if(t=mb(e,t,h_)[0],e=Yf(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Bc(t)}catch(o){throw o===ds?rp: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},M3.bind(null,a,n),null)),[r,i,e]}function M3(e,t){e.action=t}function J1(e){var t=ut(),n=Ie;if(n!==null)return p_(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=ap(),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 y_(){return ut().memoizedState}function Vf(e,t,n,r){var a=Xt();he.flags|=e,a.memoizedState=Nl(1|t,{destroy:void 0},n,r===void 0?null:r)}function op(e,t,n,r){var a=ut();r=r===void 0?null:r;var i=a.memoizedState.inst;Ie!==null&&r!==null&&cb(r,Ie.memoizedState.deps)?a.memoizedState=Nl(t,i,n,r):(he.flags|=e,a.memoizedState=Nl(1|t,i,n,r))}function eS(e,t){Vf(8390656,8,e,t)}function vb(e,t){op(2048,8,e,t)}function P3(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=ap(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function m_(e){var t=ut().memoizedState;return P3({ref:t,nextImpl:e}),function(){if(_e&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function v_(e,t){return op(4,2,e,t)}function g_(e,t){return op(4,4,e,t)}function b_(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 x_(e,t,n){n=n!=null?n.concat([e]):null,op(4,4,b_.bind(null,t,e),n)}function gb(){}function S_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&cb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function w_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&cb(t,r[1]))return r[0];if(r=e(),to){Ua(!0);try{e()}finally{Ua(!1)}}return n.memoizedState=[r,t],r}function bb(e,t,n){return n===void 0||sa&1073741824&&!(Se&261930)?e.memoizedState=t:(e.memoizedState=n,e=cT(),he.lanes|=e,si|=e,n)}function O_(e,t,n,r){return Mn(n,t)?n:Cl.current!==null?(e=bb(e,n,r),Mn(e,t)||(yt=!0),e):!(sa&42)||sa&1073741824&&!(Se&261930)?(yt=!0,e.memoizedState=n):(e=cT(),he.lanes|=e,si|=e,t)}function j_(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,Sb(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 d=_3(s,r);yu(e,t,d,Cn(e))}else yu(e,t,r,Cn(e))}catch(f){yu(e,t,{then:function(){},status:"rejected",reason:f},Cn())}finally{Te.p=i,o!==null&&l.types!==null&&(o.types=l.types),ie.T=o}}function R3(){}function bv(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=A_(e).queue;j_(e,a,t,Fi,n===null?R3:function(){return E_(e),n(r)})}function A_(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 E_(e){var t=A_(e);t.next===null&&(t=e.alternate.memoizedState),yu(e,t.next.queue,{},Cn())}function xb(){return Ut(zu)}function __(){return ut().memoizedState}function T_(){return ut().memoizedState}function $3(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=Xa(n);var r=Qa(t,e,n);r!==null&&(fn(r,t,n),du(r,t,n)),t={cache:ib()},e.payload=t;return}t=t.return}}function D3(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e)?N_(t,n):(n=tb(e,t,n,r),n!==null&&(fn(n,e,r),M_(n,t,r)))}function C_(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(lp(e))N_(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 np(e,t,a,0),qe===null&&tp(),!1}catch{}finally{}if(n=tb(e,t,a,r),n!==null)return fn(n,e,r),M_(n,t,r),!0}return!1}function Sb(e,t,n,r){if(r={lane:2,revertLane:Nb(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lp(e)){if(t)throw Error(U(479))}else t=tb(e,n,r,2),t!==null&&fn(t,e,2)}function lp(e){var t=e.alternate;return e===he||t!==null&&t===he}function N_(e,t){ol=Od=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mE(e,n)}}var Du={readContext:Ut,use:ip,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 P_={readContext:Ut,use:ip,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:eS,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vf(4194308,4,b_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vf(4194308,4,e,t)},useInsertionEffect:function(e,t){Vf(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var r=e();if(to){Ua(!0);try{e()}finally{Ua(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Xt();if(n!==void 0){var a=n(t);if(to){Ua(!0);try{n(t)}finally{Ua(!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=D3.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=vv(e);var t=e.queue,n=C_.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gb,useDeferredValue:function(e,t){var n=Xt();return bb(n,e,t)},useTransition:function(){var e=vv(!1);return e=j_.bind(null,he,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=he,a=Xt();if(Oe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),qe===null)throw Error(U(349));Se&127||i_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,eS(l_.bind(null,r,i,e),[e]),r.flags|=2048,Nl(9,{destroy:void 0},o_.bind(null,r,i,n,t),null),n},useId:function(){var e=Xt(),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=jd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=T3++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xb,useFormState:W1,useActionState:W1,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sb.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:yb,useCacheRefresh:function(){return Xt().memoizedState=$3.bind(null,he)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if(_e&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},wb={readContext:Ut,use:ip,useCallback:S_,useContext:Ut,useEffect:vb,useImperativeHandle:x_,useInsertionEffect:v_,useLayoutEffect:g_,useMemo:w_,useReducer:Yf,useRef:y_,useState:function(){return Yf(ua)},useDebugValue:gb,useDeferredValue:function(e,t){var n=ut();return O_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Yf(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:a_,useId:__,useHostTransitionStatus:xb,useFormState:Z1,useActionState:Z1,useOptimistic:function(e,t){var n=ut();return c_(n,Ie,e,t)},useMemoCache:yb,useCacheRefresh:T_};wb.useEffectEvent=m_;var R_={readContext:Ut,use:ip,useCallback:S_,useContext:Ut,useEffect:vb,useImperativeHandle:x_,useInsertionEffect:v_,useLayoutEffect:g_,useMemo:w_,useReducer:ky,useRef:y_,useState:function(){return ky(ua)},useDebugValue:gb,useDeferredValue:function(e,t){var n=ut();return Ie===null?bb(n,e,t):O_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=ky(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:a_,useId:__,useHostTransitionStatus:xb,useFormState:J1,useActionState:J1,useOptimistic:function(e,t){var n=ut();return Ie!==null?c_(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yb,useCacheRefresh:T_};R_.useEffectEvent=m_;function Ly(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 xv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Xa(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=Xa(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=Xa(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 tS(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 nS(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&&xv.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 $_(e){md(e)}function D_(e){console.error(e)}function k_(e){md(e)}function Ad(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function rS(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 Sv(e,t,n){return n=Xa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ad(e,t)},n}function L_(e){return e=Xa(e),e.tag=3,e}function z_(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(){rS(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){rS(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 k3(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 Xn===null?Nd():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===xd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Vy(e,r,a)),!1;case 22:return n.flags|=65536,r===xd?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)),Vy(e,r,a)),!1}throw Error(U(435,n.tag))}return Vy(e,r,a),Nd(),!1}if(Oe)return t=Pn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==sv&&(e=Error(U(422),{cause:r}),Pu(Gn(e,n)))):(r!==sv&&(t=Error(U(423),{cause:r}),Pu(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=Sv(e.stateNode,r,a),Dy(e,a),lt!==4&&(lt=2)),!1;var i=Error(U(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=Sv(n.stateNode,r,e),Dy(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=L_(a),z_(a,e,n,r),Dy(n,a),!1}n=n.return}while(n!==null);return!1}var Ob=Error(U(461)),yt=!1;function Lt(e,t,n,r){t.child=e===null?ZE(t,null,n,r):eo(t,e.child,n,r)}function aS(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=fb(e,t,n,o,i,a),l=db(),e!==null&&!yt?(hb(e,t,a),ca(e,t,a)):(Oe&&l&&rb(t),t.flags|=1,Lt(e,t,r,a),t.child)}function iS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!nb(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,B_(e,t,i,r,a)):(e=Gf(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!jb(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 B_(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,jb(e,a))e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,ca(e,t,a)}return wv(e,t,n,r,a)}function I_(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 oS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kf(t,i!==null?i.cachePool:null),i!==null?V1(t,i):yv(),t_(t);else return r=t.lanes=536870912,oS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Kf(t,i.cachePool),V1(t,i),Na(),t.memoizedState=null):(e!==null&&Kf(t,null),yv(),Na());return Lt(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 oS(e,t,n,r,a){var i=ob();return i=i===null?null:{parent:pt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Kf(t,null),yv(),t_(t),e!==null&&fs(e,t,r,!0),t.childLanes=a,null}function Xf(e,t){return t=Ed({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lS(e,t,n){return eo(t,e.child,null,n),e=Xf(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function L3(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=Xf(t,r),t.lanes=536870912,ru(null,e);if(mv(t),(e=Ze)?(e=PT(e,Kn),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=GE(e),n.return=t,t.child=n,Bt=t,Ze=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return Xf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(mv(t),a)if(t.flags&256)t.flags&=-257,t=lS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(yt||fs(e,t,n,!1),a=(n&e.childLanes)!==0,yt||a){if(r=qe,r!==null&&(o=vE(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,yo(e,o),fn(r,e,o),Ob;Nd(),t=lS(e,t,n)}else e=i.treeContext,Ze=Qn(o.nextSibling),Bt=t,Oe=!0,Va=null,Kn=!1,e!==null&&YE(t,e),t=Xf(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 Qf(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(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function wv(e,t,n,r,a){return Ji(t),n=fb(e,t,n,r,void 0,a),r=db(),e!==null&&!yt?(hb(e,t,a),ca(e,t,a)):(Oe&&r&&rb(t),t.flags|=1,Lt(e,t,n,a),t.child)}function sS(e,t,n,r,a,i){return Ji(t),t.updateQueue=null,n=r_(t,r,n,a),n_(e),r=db(),e!==null&&!yt?(hb(e,t,i),ca(e,t,i)):(Oe&&r&&rb(t),t.flags|=1,Lt(e,t,n,i),t.child)}function uS(e,t,n,r,a){if(Ji(t),t.stateNode===null){var i=Ko,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=xv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},sb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):Ko,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Ly(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&&xv.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,d=n.contextType;o=Ko,typeof d=="object"&&d!==null&&(o=Ut(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&nS(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 f=="function"&&(Ly(t,n,f,r),u=t.memoizedState),(s=Aa||tS(t,n,s,r,h,u,o))?(d||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,hv(e,t),o=t.memoizedProps,d=no(n,o),i.props=d,f=t.pendingProps,h=i.context,u=n.contextType,s=Ko,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!==f||h!==s)&&nS(t,i,r,s),Aa=!1,h=t.memoizedState,i.state=h,pu(t,r,i,a),hu();var p=t.memoizedState;o!==f||h!==p||Aa||e!==null&&e.dependencies!==null&&bd(e.dependencies)?(typeof l=="function"&&(Ly(t,n,l,r),p=t.memoizedState),(d=Aa||tS(t,n,d,r,h,p,s)||e!==null&&e.dependencies!==null&&bd(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=d):(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,Qf(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)):Lt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ca(e,t,a),e}function cS(e,t,n,r){return Zi(),t.flags|=256,Lt(e,t,n,r),t.child}var zy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function By(e){return{baseLanes:e,cachePool:XE()}}function Iy(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=An),e}function U_(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=PT(e,Kn),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=GE(e),n.return=t,t.child=n,Bt=t,Ze=null)):e=null,e===null)throw oi(t);return kv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=Ed({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=By(n),r.childLanes=Iy(e,o,n),t.memoizedState=zy,ru(null,r)):(Ca(t),Ov(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=Uy(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=Ed({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=By(n),r.childLanes=Iy(e,o,n),t.memoizedState=zy,t=ru(null,r));else if(Ca(t),kv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(U(419)),r.stack="",r.digest=o,Pu({value:r,source:null,stack:null}),t=Uy(e,t,n)}else if(yt||fs(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(o=qe,o!==null&&(r=vE(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,yo(e,r),fn(o,e,r),Ob;Dv(l)||Nd(),t=Uy(e,t,n)}else Dv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ze=Qn(l.nextSibling),Bt=t,Oe=!0,Va=null,Kn=!1,e!==null&&YE(t,e),t=Ov(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=By(n):(a=l.cachePool,a!==null?(s=pt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=XE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=Iy(e,o,n),t.memoizedState=zy,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 Ov(e,t){return t=Ed({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ed(e,t){return e=On(22,e,null,t),e.lanes=0,e}function Uy(e,t,n){return eo(t,e.child,null,n),e=Ov(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cv(e.return,t,n)}function Hy(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 H_(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,Ke(st,o),Lt(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&&fS(e,n,t);else if(e.tag===19)fS(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&&wd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Hy(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&&wd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Hy(t,!0,n,null,i,r);break;case"together":Hy(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(U(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 jb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&bd(e)))}function z3(e,t,n){switch(t.tag){case 3:dd(t,t.stateNode.containerInfo),Ta(t,pt,e.memoizedState.cache),Zi();break;case 27:case 5:Wm(t);break;case 4:dd(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,mv(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?U_(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 H_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ke(st,st.current),r)break;return null;case 22:return t.lanes=0,I_(e,t,n,t.pendingProps);case 24:Ta(t,pt,e.memoizedState.cache)}return ca(e,t,n)}function q_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!jb(e,n)&&!(t.flags&128))return yt=!1,z3(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Oe&&t.flags&1048576&&KE(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")nb(e)?(r=no(e,r),t.tag=1,t=uS(null,t,e,r,n)):(t.tag=0,t=wv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===H0){t.tag=11,t=aS(null,t,e,r,n);break e}else if(a===q0){t.tag=14,t=iS(null,t,e,r,n);break e}}throw t=Xm(e)||e,Error(U(306,t,""))}}return t;case 0:return wv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),uS(e,t,r,a,n);case 3:e:{if(dd(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,hv(e,t),pu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ta(t,pt,r),r!==i.cache&&fv(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=cS(e,t,r,n);break e}else if(r!==a){a=Gn(Error(U(424)),t),Pu(a),t=cS(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),Bt=t,Oe=!0,Va=null,Kn=!0,n=ZE(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}Lt(e,t,r,n)}t=t.child}return t;case 26:return Qf(e,t),e===null?(n=MS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,r=$d(Ya.current).createElement(n),r[zt]=t,r[hn]=e,Ht(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=MS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wm(t),e===null&&Oe&&(r=t.stateNode=RT(t.type,t.pendingProps,Ya.current),Bt=t,Kn=!0,a=Ze,ci(t.type)?(Lv=a,Ze=Qn(r.firstChild)):Ze=a),Lt(e,t,t.pendingProps.children,n),Qf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((a=r=Ze)&&(r=p4(r,t.type,t.pendingProps,Kn),r!==null?(t.stateNode=r,Bt=t,Ze=Qn(r.firstChild),Kn=!1,a=!0):a=!1),a||oi(t)),Wm(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Rv(a,i)?r=null:o!==null&&Rv(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=fb(e,t,C3,null,null,n),zu._currentValue=a),Qf(e,t),Lt(e,t,r,n),t.child;case 6:return e===null&&Oe&&((e=n=Ze)&&(n=y4(n,t.pendingProps,Kn),n!==null?(t.stateNode=n,Bt=t,Ze=null,e=!0):e=!1),e||oi(t)),null;case 13:return U_(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return aS(e,t,t.type,t.pendingProps,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ta(t,t.type,r.value),Lt(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,Lt(e,t,r,n),t.child;case 14:return iS(e,t,t.type,t.pendingProps,n);case 15:return B_(e,t,t.type,t.pendingProps,n);case 19:return H_(e,t,n);case 31:return L3(e,t,n);case 22:return I_(e,t,n,t.pendingProps);case 24:return Ji(t),r=Ut(pt),e===null?(a=ob(),a===null&&(a=qe,i=ib(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},sb(t),Ta(t,pt,a)):(e.lanes&n&&(hv(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&&fv(t,[pt],n,!0))),Lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function kr(e){e.flags|=4}function qy(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(hT())e.flags|=8192;else throw Yi=xd,lb}else e.flags&=-16777217}function dS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!kT(t))if(hT())e.flags|=8192;else throw Yi=xd,lb}function vf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pE():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 Xe(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 B3(e,t,n){var r=t.pendingProps;switch(ab(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(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,$y())),Xe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(kr(t),i!==null?(Xe(t),dS(t,i)):(Xe(t),qy(t,a,null,r,n))):i?i!==e.memoizedState?(kr(t),Xe(t),dS(t,i)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&kr(t),Xe(t),qy(t,a,e,r,n)),null;case 27:if(hd(t),n=Ya.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Xe(t),null}e=Ar.current,To(t)?U1(t):(e=RT(a,r,n),t.stateNode=e,kr(t))}return Xe(t),null;case 5:if(hd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Xe(t),null}if(i=Ar.current,To(t))U1(t);else{var o=$d(Ya.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[zt]=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(Ht(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 Xe(t),qy(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(U(166));if(e=Ya.current,To(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Bt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[zt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||CT(e.nodeValue,n)),e||oi(t,!0)}else e=$d(e).createTextNode(r),e[zt]=t,t.stateNode=e}return Xe(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(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[zt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=$y(),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(U(558))}return Xe(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(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[zt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),a=!1}else a=$y(),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),vf(t,t.updateQueue),Xe(t),null);case 4:return Al(),e===null&&Mb(t.stateNode.containerInfo),Xe(t),null;case 10:return ta(t.type),Xe(t),null;case 19:if(Mt(st),r=t.memoizedState,r===null)return Xe(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=wd(e),i!==null){for(t.flags|=128,Bs(r,!1),e=i.updateQueue,t.updateQueue=e,vf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)FE(n,e),n=n.sibling;return Ke(st,st.current&1|2),Oe&&qr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&En()>Td&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304)}else{if(!a)if(e=wd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,vf(t,e),Bs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Oe)return Xe(t),null}else 2*En()-r.renderingStartTime>Td&&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,Ke(st,a?n&1|2:n&1),Oe&&qr(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return wn(t),ub(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&vf(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(Ki),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(pt),Xe(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function I3(e,t){switch(ab(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 hd(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(U(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(U(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),ub(),e!==null&&Mt(Ki),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 F_(e,t){switch(ab(t),t.tag){case 3:ta(pt),Al();break;case 26:case 27:case 5:hd(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),ub(),e!==null&&Mt(Ki);break;case 24:ta(pt)}}function Ic(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(d){Re(a,s,d)}}}r=r.next}while(r!==i)}}catch(d){Re(t,t.return,d)}}function G_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{e_(t,n)}catch(r){Re(e,e.return,r)}}}function K_(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 Y_(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 Fy(e,t,n){try{var r=e.stateNode;s4(r,e.type,n,t),r[hn]=t}catch(a){Re(e,e.return,a)}}function V_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ci(e.type)||e.tag===4}function Gy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V_(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 jv(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(jv(e,t,n),e=e.sibling;e!==null;)jv(e,t,n),e=e.sibling}function _d(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(_d(e,t,n),e=e.sibling;e!==null;)_d(e,t,n),e=e.sibling}function X_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ht(t,r,n),t[zt]=e,t[hn]=n}catch(i){Re(e,e.return,i)}}var Vr=!1,ht=!1,Ky=!1,hS=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function U3(e,t){if(e=e.containerInfo,Mv=zd,e=kE(e),J0(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,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++d===r&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pv={focusedElem:e,selectionRange:n},zd=!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(m){Re(n,n.return,m)}}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(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function Q_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zr(e,n),r&4&&Ic(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&&G_(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{e_(e,t)}catch(o){Re(n,n.return,o)}}break;case 27:t===null&&r&4&&X_(n);case 26:case 5:zr(e,n),t===null&&r&4&&Y_(n),r&512&&mu(n,n.return);break;case 12:zr(e,n);break;case 31:zr(e,n),r&4&&J_(e,n);break;case 13:zr(e,n),r&4&&eT(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Q3.bind(null,n),m4(e,n))));break;case 22:if(r=n.memoizedState!==null||Vr,!r){t=t!==null&&t.memoizedState!==null||ht,a=Vr;var i=ht;Vr=r,(ht=t)&&!i?Ir(e,n,(n.subtreeFlags&8772)!==0):zr(e,n),Vr=a,ht=i}break;case 30:break;default:zr(e,n)}}function W_(e){var t=e.alternate;t!==null&&(e.alternate=null,W_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Y0(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;)Z_(e,t,n),n=n.sibling}function Z_(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Rc,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,ES(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Dl(e)):ES(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"&&K_(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 J_(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 eT(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 H3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hS),t;default:throw Error(U(435,e.tag))}}function gf(e,t){var n=H3(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=W3.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(U(160));Z_(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;)tT(t,e),t=t.sibling}var or=null;function tT(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),Ic(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&&Vr&&(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=or;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[kc]||i[zt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Ht(i,r,n),i[zt]=e,Ct(i),r=i;break e;case"link":var o=RS("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),Ht(i,r,n),a.head.appendChild(i);break;case"meta":if(o=RS("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),Ht(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[zt]=e,Ct(i),r=i}e.stateNode=r}else $S(a,e.type,e.stateNode);else e.stateNode=PS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?$S(a,e.type,e.stateNode):PS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Fy(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&&Fy(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,Fy(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Ky=!0);break;case 6:if(rn(t,e),an(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){Re(e,e.return,b)}}break;case 3:if(Jf=null,a=or,or=Dd(t.containerInfo),rn(t,e),or=a,an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(b){Re(e,e.return,b)}Ky&&(Ky=!1,nT(e));break;case 4:r=or,or=Dd(e.stateNode.containerInfo),rn(t,e),an(e),or=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,gf(e,r)));break;case 13:rn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sp=En()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gf(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Vr,d=ht;if(Vr=u||a,ht=d||s,rn(t,e),ht=d,Vr=u,an(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Vr||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 f=s.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.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?_S(p,!0):_S(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,gf(e,n))));break;case 19:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gf(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(V_(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=Gy(e);_d(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(_l(o,""),n.flags&=-33);var l=Gy(e);_d(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Gy(e);jv(e,u,s);break;default:throw Error(U(161))}}catch(d){Re(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nT(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nT(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;)Q_(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"&&K_(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 Ir(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:Ir(a,i,n),Ic(4,i);break;case 1:if(Ir(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++)JE(s[a],l)}catch(u){Re(r,r.return,u)}}n&&o&64&&G_(i),mu(i,i.return);break;case 27:X_(i);case 26:case 5:Ir(a,i,n),n&&r===null&&o&4&&Y_(i),mu(i,i.return);break;case 12:Ir(a,i,n);break;case 31:Ir(a,i,n),n&&o&4&&J_(a,i);break;case 13:Ir(a,i,n),n&&o&4&&eT(a,i);break;case 22:i.memoizedState===null&&Ir(a,i,n),mu(i,i.return);break;case 30:break;default:Ir(a,i,n)}t=t.sibling}}function Ab(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&&zc(n))}function Eb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zc(e))}function rr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rT(e,t,n,r),t=t.sibling}function rT(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:rr(e,t,n,r),a&2048&&Ic(9,t);break;case 1:rr(e,t,n,r);break;case 3:rr(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&&zc(e)));break;case 12:if(a&2048){rr(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 rr(e,t,n,r);break;case 31:rr(e,t,n,r);break;case 13:rr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?rr(e,t,n,r):vu(e,t):i._visibility&2?rr(e,t,n,r):(i._visibility|=2,Do(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Ab(o,t);break;case 24:rr(e,t,n,r),a&2048&&Eb(t.alternate,t);break;default:rr(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),Ic(8,o);break;case 23:break;case 22:var d=o.stateNode;o.memoizedState!==null?d._visibility&2?Do(i,o,l,s,a):vu(i,o):(d._visibility|=2,Do(i,o,l,s,a)),a&&u&2048&&Ab(o.alternate,o);break;case 24:Do(i,o,l,s,a),a&&u&2048&&Eb(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&&Ab(r.alternate,r);break;case 24:vu(n,r),a&2048&&Eb(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;)aT(e,t,n),e=e.sibling}function aT(e,t,n){switch(e.tag){case 26:Co(e,t,n),e.flags&au&&e.memoizedState!==null&&T4(n,or,e.memoizedState,e.memoizedProps);break;case 5:Co(e,t,n);break;case 3:case 4:var r=or;or=Dd(e.stateNode.containerInfo),Co(e,t,n),or=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 iT(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 Is(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,lT(r,e)}iT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oT(e),e=e.sibling}function oT(e){switch(e.tag){case 0:case 11:case 15:Is(e),e.flags&2048&&li(9,e,e.return);break;case 3:Is(e);break;case 12:Is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wf(e)):Is(e);break;default:Is(e)}}function Wf(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,lT(r,e)}iT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:li(8,t,t.return),Wf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wf(t));break;default:Wf(t)}e=e.sibling}}function lT(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:zc(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(W_(r),r===n){Tt=null;break e}if(a!==null){a.return=i,Tt=a;break e}Tt=i}}}var q3={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}},F3=typeof WeakMap=="function"?WeakMap:Map,_e=0,qe=null,xe=null,Se=0,Pe=0,gn=null,qa=!1,hs=!1,_b=!1,fa=0,lt=0,si=0,Vi=0,Tb=0,An=0,Ml=0,gu=null,un=null,Av=!1,sp=0,sT=0,Td=1/0,Cd=null,Wa=null,St=0,Za=null,Pl=null,na=0,Ev=0,_v=null,uT=null,bu=0,Tv=null;function Cn(){return _e&2&&Se!==0?Se&-Se:ie.T!==null?Nb():gE()}function cT(){if(An===0)if(!(Se&536870912)||Oe){var e=cf;cf<<=1,!(cf&3932160)&&(cf=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)),Dc(e,n),(!(_e&2)||e!==qe)&&(e===qe&&(!(_e&2)&&(Vi|=n),lt===4&&Fa(e,Se,An,!1)),Nr(e))}function fT(e,t,n){if(_e&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||$c(e,t),a=r?Y3(e,t):Yy(e,t,!0),i=r;do{if(a===0){hs&&!r&&Fa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!G3(n)){a=Yy(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=Yy(l,o,!1),o!==2){if(_b&&!s){l.errorRecoveryDisabledLanes|=i,Vi|=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(U(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(U(329))}if((t&62914560)===t&&(a=sp+300-En(),10<a)){if(Fa(r,t,An,!qa),Wh(r,0,!0)!==0)break e;na=t,r.timeoutHandle=MT(pS.bind(null,r,n,un,Cd,Av,t,An,Vi,Ml,qa,i,"Throttled",-0,0),a);break e}pS(r,n,un,Cd,Av,t,An,Vi,Ml,qa,i,null,-0,0)}}break}while(!0);Nr(e)}function pS(e,t,n,r,a,i,o,l,s,u,d,f,h,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},aT(t,i,f);var b=(i&62914560)===i?sp-En():(i&4194048)===i?sT-En():0;if(b=C4(f,b),b!==null){na=i,e.cancelPendingCommit=b(mS.bind(null,e,t,i,n,r,a,o,l,s,d,f,null,h,p)),Fa(e,i,o,!u);return}}mS(e,t,i,n,r,a,o,l,s)}function G3(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&=~Tb,t&=~Vi,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&&yE(e,n,t)}function up(){return _e&6?!0:(Uc(0),!1)}function Cb(){if(xe!==null){if(Pe===0)var e=xe.return;else e=xe,Wr=mo=null,pb(e),il=null,Ru=0,e=xe;for(;e!==null;)F_(e.alternate,e),e=e.return;xe=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,f4(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),na=0,Cb(),qe=e,xe=n=ea(e.current,null),Se=t,Pe=0,gn=null,qa=!1,hs=$c(e,t),_b=!1,Ml=An=Tb=Vi=si=lt=0,un=gu=null,Av=!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,tp(),n}function dT(e,t){he=null,ie.H=Du,t===ds||t===rp?(t=K1(),Pe=3):t===lb?(t=K1(),Pe=4):Pe=t===Ob?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,xe===null&&(lt=1,Ad(e,Gn(t,e.current)))}function hT(){var e=Pn.current;return e===null?!0:(Se&4194048)===Se?Xn===null:(Se&62914560)===Se||Se&536870912?e===Xn:!1}function pT(){var e=ie.H;return ie.H=Du,e===null?Du:e}function yT(){var e=ie.A;return ie.A=q3,e}function Nd(){lt=4,qa||(Se&4194048)!==Se&&Pn.current!==null||(hs=!0),!(si&134217727)&&!(Vi&134217727)||qe===null||Fa(qe,Se,An,!1)}function Yy(e,t,n){var r=_e;_e|=2;var a=pT(),i=yT();(qe!==e||Se!==t)&&(Cd=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:Cb(),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,Xo(e,l,s,u),n&&hs){o=0;break e}break;default:u=Pe,Pe=0,gn=null,Xo(e,l,s,u)}}K3(),o=lt;break}catch(d){dT(e,d)}while(!0);return t&&e.shellSuspendCounter++,Wr=mo=null,_e=r,ie.H=a,ie.A=i,xe===null&&(qe=null,Se=0,tp()),o}function K3(){for(;xe!==null;)mT(xe)}function Y3(e,t){var n=_e;_e|=2;var r=pT(),a=yT();qe!==e||Se!==t?(Cd=null,Td=En()+500,Rl(e,t)):hs=$c(e,t);e:do try{if(Pe!==0&&xe!==null){t=xe;var i=gn;t:switch(Pe){case 1:Pe=0,gn=null,Xo(e,t,i,1);break;case 2:case 9:if(G1(i)){Pe=0,gn=null,yS(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:G1(i)?(Pe=0,gn=null,yS(t)):(Pe=0,gn=null,Xo(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?kT(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,cp(u)):xe=null}break t}}Pe=0,gn=null,Xo(e,t,i,5);break;case 6:Pe=0,gn=null,Xo(e,t,i,6);break;case 8:Cb(),lt=6;break e;default:throw Error(U(462))}}V3();break}catch(d){dT(e,d)}while(!0);return Wr=mo=null,ie.H=r,ie.A=a,_e=n,xe!==null?0:(qe=null,Se=0,tp(),lt)}function V3(){for(;xe!==null&&!v$();)mT(xe)}function mT(e){var t=q_(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?cp(e):xe=t}function yS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sS(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=sS(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:pb(t);default:F_(n,t),t=xe=FE(t,fa),t=q_(n,t,fa)}e.memoizedProps=e.pendingProps,t===null?cp(e):xe=t}function Xo(e,t,n,r){Wr=mo=null,pb(t),il=null,Ru=0;var a=t.return;try{if(k3(e,a,t,n,Se)){lt=1,Ad(e,Gn(n,e.current)),xe=null;return}}catch(i){if(a!==null)throw xe=a,i;lt=1,Ad(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))),vT(t,e)):cp(t)}function cp(e){var t=e;do{if(t.flags&32768){vT(t,qa);return}e=t.return;var n=B3(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 vT(e,t){do{var n=I3(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 mS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do fp();while(St!==0);if(_e&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=eb,_$(e,n,i,o,l,s),e===qe&&(xe=qe=null,Se=0),Pl=t,Za=e,na=n,Ev=i,_v=a,uT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Z3(pd,function(){return wT(),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{U3(e,t,n)}finally{_e=o,Te.p=a,ie.T=r}}St=1,gT(),bT(),xT()}}function gT(){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{tT(t,e);var i=Pv,o=kE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&DE(l.ownerDocument.documentElement,l)){if(s!==null&&J0(l)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var f=l.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var p=h.getSelection(),b=l.textContent.length,m=Math.min(s.start,b),g=s.end===void 0?m:Math.min(s.end,b);!p.extend&&m>g&&(o=g,g=m,m=o);var y=z1(l,m),v=z1(l,g);if(y&&v&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var x=f.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(x),p.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),p.addRange(x))}}}}for(f=[],p=l;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<f.length;l++){var w=f[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}zd=!!Mv,Pv=Mv=null}finally{_e=a,Te.p=r,ie.T=n}}e.current=t,St=2}}function bT(){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{Q_(e,t.alternate,t)}finally{_e=a,Te.p=r,ie.T=n}}St=3}}function xT(){if(St===4||St===3){St=0,g$();var e=Za,t=Pl,n=na,r=uT;t.subtreeFlags&10256||t.flags&10256?St=5:(St=0,Pl=Za=null,ST(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Wa=null),K0(n),t=t.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Rc,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&&fp(),Nr(e),a=e.pendingLanes,n&261930&&a&42?e===Tv?bu++:(bu=0,Tv=e):bu=0,Uc(0)}}function ST(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zc(t)))}function fp(){return gT(),bT(),xT(),wT()}function wT(){if(St!==5)return!1;var e=Za,t=Ev;Ev=0;var n=K0(na),r=ie.T,a=Te.p;try{Te.p=32>n?32:n,ie.T=null,n=_v,_v=null;var i=Za,o=na;if(St=0,Pl=Za=null,na=0,_e&6)throw Error(U(331));var l=_e;if(_e|=4,oT(i.current),rT(i,i.current,o,n),_e=l,Uc(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Rc,i)}catch{}return!0}finally{Te.p=a,ie.T=r,ST(e,t)}}function vS(e,t,n){t=Gn(n,t),t=Sv(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(Dc(e,2),Nr(e))}function Re(e,t,n){if(e.tag===3)vS(e,e,n);else for(;t!==null;){if(t.tag===3){vS(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=L_(2),r=Qa(t,n,2),r!==null&&(z_(n,r,t,e),Dc(r,2),Nr(r));break}}t=t.return}}function Vy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new F3;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)||(_b=!0,a.add(n),e=X3.bind(null,e,t,n),t.then(e,e))}function X3(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()-sp?!(_e&2)&&Rl(e,0):Tb|=n,Ml===Se&&(Ml=0)),Nr(e)}function OT(e,t){t===0&&(t=pE()),e=yo(e,t),e!==null&&(Dc(e,t),Nr(e))}function Q3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OT(e,n)}function W3(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(U(314))}r!==null&&r.delete(t),OT(e,n)}function Z3(e,t){return F0(e,t)}var Md=null,ko=null,Cv=!1,Pd=!1,Xy=!1,Ga=0;function Nr(e){e!==ko&&e.next===null&&(ko===null?Md=ko=e:ko=ko.next=e),Pd=!0,Cv||(Cv=!0,e4())}function Uc(e,t){if(!Xy&&Pd){Xy=!0;do for(var n=!1,r=Md;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,gS(r,i))}else i=Se,i=Wh(r,r===qe?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||$c(r,i)||(n=!0,gS(r,i));r=r.next}while(n);Xy=!1}}function J3(){jT()}function jT(){Pd=Cv=!1;var e=0;Ga!==0&&c4()&&(e=Ga);for(var t=En(),n=null,r=Md;r!==null;){var a=r.next,i=AT(r,t);i===0?(r.next=null,n===null?Md=a:n.next=a,a===null&&(ko=n)):(n=r,(e!==0||i&3)&&(Pd=!0)),r=a}St!==0&&St!==5||Uc(e),Ga!==0&&(Ga=0)}function AT(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]=E$(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=qe,n=Se,n=Wh(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&&Oy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||$c(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Oy(r),K0(n)){case 2:case 8:n=dE;break;case 32:n=pd;break;case 268435456:n=hE;break;default:n=pd}return r=ET.bind(null,e),n=F0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Oy(r),e.callbackPriority=2,e.callbackNode=null,2}function ET(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fp()&&e.callbackNode!==n)return null;var r=Se;return r=Wh(e,e===qe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(fT(e,r,t),AT(e,En()),e.callbackNode!=null&&e.callbackNode===n?ET.bind(null,e):null)}function gS(e,t){if(fp())return null;fT(e,t,!0)}function e4(){d4(function(){_e&6?F0(fE,J3):jT()})}function Nb(){if(Ga===0){var e=Tl;e===0&&(e=uf,uf<<=1,!(uf&261888)&&(uf=256)),Ga=e}return Ga}function bS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hf(""+e)}function xS(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 t4(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=bS((a[hn]||null).action),o=r.submitter;o&&(t=(t=o[hn]||null)?bS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Zh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ga!==0){var s=o?xS(a,o):new FormData(a);bv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?xS(a,o):new FormData(a),bv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Qy=0;Qy<lv.length;Qy++){var Wy=lv[Qy],n4=Wy.toLowerCase(),r4=Wy[0].toUpperCase()+Wy.slice(1);hr(n4,"on"+r4)}hr(zE,"onAnimationEnd");hr(BE,"onAnimationIteration");hr(IE,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(b3,"onTransitionRun");hr(x3,"onTransitionStart");hr(S3,"onTransitionCancel");hr(UE,"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(" "),a4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function _T(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(d){md(d)}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(d){md(d)}a.currentTarget=null,i=s}}}}function be(e,t){var n=t[Jm];n===void 0&&(n=t[Jm]=new Set);var r=e+"__bubble";n.has(r)||(TT(t,e,2,!1),n.add(r))}function Zy(e,t,n){var r=0;t&&(r|=4),TT(n,e,r,t)}var bf="_reactListening"+Math.random().toString(36).slice(2);function Mb(e){if(!e[bf]){e[bf]=!0,bE.forEach(function(n){n!=="selectionchange"&&(a4.has(n)||Zy(n,!1,e),Zy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bf]||(t[bf]=!0,Zy("selectionchange",!1,t))}}function TT(e,t,n,r){switch(UT(t)){case 2:var a=P4;break;case 8:a=R4;break;default:a=Db}n=a.bind(null,t,n,e),a=void 0,!av||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 Jy(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=Io(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}_E(function(){var u=i,d=X0(n),f=[];e:{var h=HE.get(e);if(h!==void 0){var p=Zh,b=e;switch(e){case"keypress":if(Ff(n)===0)break e;case"keydown":case"keyup":p=W$;break;case"focusin":b="focus",p=Ty;break;case"focusout":b="blur",p=Ty;break;case"beforeblur":case"afterblur":p=Ty;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=T1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=B$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=e3;break;case zE:case BE:case IE:p=H$;break;case UE:p=n3;break;case"scroll":case"scrollend":p=L$;break;case"wheel":p=a3;break;case"copy":case"cut":case"paste":p=F$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=N1;break;case"toggle":case"beforetoggle":p=o3}var m=(t&4)!==0,g=!m&&(e==="scroll"||e==="scrollend"),y=m?h!==null?h+"Capture":null:h;m=[];for(var v=u,x;v!==null;){var w=v;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=Tu(v,y),w!=null&&m.push(Lu(v,w,x))),g)break;v=v.return}0<m.length&&(h=new p(h,b,null,n,d),f.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==rv&&(b=n.relatedTarget||n.fromElement)&&(Io(b)||b[us]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Io(b):null,b!==null&&(g=Pc(b),m=b.tag,b!==g||m!==5&&m!==27&&m!==6)&&(b=null)):(p=null,b=u),p!==b)){if(m=T1,w="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=N1,w="onPointerLeave",y="onPointerEnter",v="pointer"),g=p==null?h:nu(p),x=b==null?h:nu(b),h=new m(w,v+"leave",p,n,d),h.target=g,h.relatedTarget=x,w=null,Io(d)===u&&(m=new m(y,v+"enter",b,n,d),m.target=x,m.relatedTarget=g,w=m),g=w,p&&b)t:{for(m=i4,y=p,v=b,x=0,w=y;w;w=m(w))x++;w=0;for(var S=v;S;S=m(S))w++;for(;0<x-w;)y=m(y),x--;for(;0<w-x;)v=m(v),w--;for(;x--;){if(y===v||v!==null&&y===v.alternate){m=y;break t}y=m(y),v=m(v)}m=null}else m=null;p!==null&&SS(f,h,p,m,!1),b!==null&&g!==null&&SS(f,g,b,m,!0)}}e:{if(h=u?nu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=$1;else if(R1(h))if(RE)O=m3;else{O=p3;var A=h3}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&V0(u.elementType)&&(O=$1):O=y3;if(O&&(O=O(e,u))){PE(f,O,n,d);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&nv(h,"number",h.value)}switch(A=u?nu(u):window,e){case"focusin":(R1(A)||A.contentEditable==="true")&&(qo=A,iv=u,cu=null);break;case"focusout":cu=iv=qo=null;break;case"mousedown":ov=!0;break;case"contextmenu":case"mouseup":case"dragend":ov=!1,B1(f,n,d);break;case"selectionchange":if(g3)break;case"keydown":case"keyup":B1(f,n,d)}var _;if(Z0)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?NE(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(CE&&n.locale!=="ko"&&(Ho||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ho&&(_=TE()):(Ha=d,Q0="value"in Ha?Ha.value:Ha.textContent,Ho=!0)),A=Rd(u,T),0<A.length&&(T=new C1(T,e,null,n,d),f.push({event:T,listeners:A}),_?T.data=_:(_=ME(n),_!==null&&(T.data=_)))),(_=s3?u3(e,n):c3(e,n))&&(T=Rd(u,"onBeforeInput"),0<T.length&&(A=new C1("onBeforeInput","beforeinput",null,n,d),f.push({event:A,listeners:T}),A.data=_)),t4(f,e,u,n,d)}_T(f,t)})}function Lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rd(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 i4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function SS(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 o4=/\r\n?/g,l4=/\u0000|\uFFFD/g;function wS(e){return(typeof e=="string"?e:""+e).replace(o4,`
`).replace(l4,"")}function CT(e,t){return t=wS(t),wS(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":df(e,"class",r);break;case"tabIndex":df(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":df(e,n,r);break;case"style":EE(e,r,i);break;case"data":if(t!=="object"){df(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=Hf(""+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=Hf(""+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(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(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=Hf(""+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),Uf(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":Uf(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=D$.get(n)||n,Uf(e,n,r))}}function Nv(e,t,n,r,a,i){switch(n){case"style":EE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(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(!xE.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,""):Uf(e,n,r)}}}function Ht(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(U(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 d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":o=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:ze(e,t,r,d,n,null)}}OE(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(U(91));break;default:ze(e,t,o,l,n,null)}AE(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(U(137,t));default:ze(e,t,u,r,n,null)}return;default:if(V0(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nv(e,t,d,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 s4(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,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=f;default:r.hasOwnProperty(p)||ze(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(p!=null||f!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==f&&ze(e,t,h,p,r,f)}}tv(e,o,l,s,u,d,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(U(91));break;default:a!==i&&ze(e,t,o,a,r,i)}jE(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 m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&ze(e,t,m,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(U(137,t));break;default:ze(e,t,u,h,r,p)}return;default:if(V0(t)){for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!==void 0&&!r.hasOwnProperty(g)&&Nv(e,t,g,void 0,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h===void 0&&p===void 0||Nv(e,t,d,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(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h==null&&p==null||ze(e,t,f,h,r,p)}function OS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function u4(){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&&OS(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 d=s.transferSize,f=s.initiatorType;d&&OS(f)&&(s=s.responseEnd,o+=d*(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 Mv=null,Pv=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function jS(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 NT(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 Rv(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 em=null;function c4(){var e=window.event;return e&&e.type==="popstate"?e===em?!1:(em=e,!0):(em=null,!1)}var MT=typeof setTimeout=="function"?setTimeout:void 0,f4=typeof clearTimeout=="function"?clearTimeout:void 0,AS=typeof Promise=="function"?Promise:void 0,d4=typeof queueMicrotask=="function"?queueMicrotask:typeof AS<"u"?function(e){return AS.resolve(null).then(e).catch(h4)}:MT;function h4(e){setTimeout(function(){throw e})}function ci(e){return e==="head"}function ES(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[kc]||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 _S(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),Y0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function p4(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[kc])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 y4(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 PT(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 Dv(e){return e.data==="$?"||e.data==="$~"}function kv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m4(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 Lv=null;function TS(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 CS(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 RT(e,t,n){switch(t=$d(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Y0(e)}var Jn=new Map,NS=new Set;function Dd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Te.d;Te.d={f:v4,r:g4,D:b4,C:x4,L:S4,m:w4,X:j4,S:O4,M:A4};function v4(){var e=va.f(),t=up();return e||t}function g4(e){var t=cs(e);t!==null&&t.tag===5&&t.type==="form"?E_(t):va.r(e)}var ps=typeof document>"u"?null:document;function $T(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+'"]'),NS.has(a)||(NS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ht(t,"link",e),Ct(t),r.head.appendChild(t)))}}function b4(e){va.D(e),$T("dns-prefetch",e,null)}function x4(e,t){va.C(e,t),$T("preconnect",e,t)}function S4(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)}Jn.has(i)||(e=et({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Jn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Hc(i))||t==="script"&&r.querySelector(qc(i))||(t=r.createElement("link"),Ht(t,"link",e),Ct(t),r.head.appendChild(t)))}}function w4(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(!Jn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Jn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(qc(i)))return}r=n.createElement("link"),Ht(r,"link",e),Ct(r),n.head.appendChild(r)}}}function O4(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(Hc(i)))l.loading=5;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Jn.get(i))&&Pb(e,n);var s=o=r.createElement("link");Ct(s),Ht(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Zf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function j4(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(qc(a)),i||(e=et({src:e,async:!0},t),(t=Jn.get(a))&&Rb(e,t),i=n.createElement("script"),Ct(i),Ht(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function A4(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(qc(a)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Jn.get(a))&&Rb(e,t),i=n.createElement("script"),Ct(i),Ht(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function MS(e,t,n,r){var a=(a=Ya.current)?Dd(a):null;if(!a)throw Error(U(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(Hc(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Jn.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},Jn.set(e,n),i||E4(a,e,n,o.state))),t&&r===null)throw Error(U(528,""));return o}if(t&&r!==null)throw Error(U(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(U(444,e))}}function $l(e){return'href="'+Fn(e)+'"'}function Hc(e){return'link[rel="stylesheet"]['+e+"]"}function DT(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function E4(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}),Ht(t,"link",n),Ct(t),e.head.appendChild(t))}function ys(e){return'[src="'+Fn(e)+'"]'}function qc(e){return"script[async]"+e}function PS(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),Ht(r,"style",a),Zf(r,n.precedence,e),t.instance=r;case"stylesheet":a=$l(n.href);var i=e.querySelector(Hc(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=DT(n),(a=Jn.get(a))&&Pb(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}),Ht(i,"link",r),t.state.loading|=4,Zf(i,n.precedence,e),t.instance=i;case"script":return i=ys(n.src),(a=e.querySelector(qc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Jn.get(i))&&(r=et({},n),Rb(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ct(a),Ht(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Zf(r,n.precedence,e));return t.instance}function Zf(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 Pb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Jf=null;function RS(e,t,n){if(Jf===null){var r=new Map,a=Jf=new Map;a.set(n,r)}else a=Jf,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[kc]||i[zt]||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 $S(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function _4(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 kT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function T4(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(Hc(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=kd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=DT(r),(a=Jn.get(a))&&Pb(r,a),i=i.createElement("link"),Ct(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ht(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=kd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var tm=0;function C4(e,t){return e.stylesheets&&e.count===0&&ed(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ed(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&tm===0&&(tm=62500*u4());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ed(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>tm?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function kd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ed(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ld=null;function ed(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ld=new Map,t.forEach(N4,e),Ld=null,kd.call(e))}function N4(e,t){if(!(t.state.loading&4)){var n=Ld.get(e);if(n)var r=n.get(null);else{n=new Map,Ld.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=kd.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:Xr,Provider:null,Consumer:null,_currentValue:Fi,_currentValue2:Fi,_threadCount:0};function M4(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=jy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jy(0),this.hiddenUpdates=jy(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 LT(e,t,n,r,a,i,o,l,s,u,d,f){return e=new M4(e,t,n,o,s,u,d,f,l),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=ib(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},sb(i),e}function zT(e){return e?(e=Ko,e):Ko}function BT(e,t,n,r,a,i){a=zT(a),r.context===null?r.context=a:r.pendingContext=a,r=Xa(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 DS(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){DS(e,t),(e=e.alternate)&&DS(e,t)}function IT(e){if(e.tag===13||e.tag===31){var t=yo(e,67108864);t!==null&&fn(t,e,67108864),$b(e,67108864)}}function kS(e){if(e.tag===13||e.tag===31){var t=Cn();t=G0(t);var n=yo(e,t);n!==null&&fn(n,e,t),$b(e,t)}}var zd=!0;function P4(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=2,Db(e,t,n,r)}finally{Te.p=i,ie.T=a}}function R4(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=8,Db(e,t,n,r)}finally{Te.p=i,ie.T=a}}function Db(e,t,n,r){if(zd){var a=zv(r);if(a===null)Jy(e,t,r,Bd,n),LS(e,r);else if(D4(a,e,t,n,r))r.stopPropagation();else if(LS(e,r),t&4&&-1<$4.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)&&(Td=En()+500,Uc(0))}}break;case 31:case 13:l=yo(i,2),l!==null&&fn(l,i,2),up(),$b(i,2)}if(i=zv(r),i===null&&Jy(e,t,r,Bd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Jy(e,t,r,null,n)}}function zv(e){return e=X0(e),kb(e)}var Bd=null;function kb(e){if(Bd=null,e=Io(e),e!==null){var t=Pc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=oE(t),e!==null)return e;e=null}else if(n===31){if(e=lE(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 Bd=e,null}function UT(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(b$()){case fE:return 2;case dE:return 8;case pd:case x$:return 32;case hE:return 268435456;default:return 32}default:return 32}}var Bv=!1,Ja=null,ei=null,ti=null,Bu=new Map,Iu=new Map,Ma=[],$4="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 LS(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":Iu.delete(t.pointerId)}}function Us(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&&IT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function D4(e,t,n,r,a){switch(t){case"focusin":return Ja=Us(Ja,e,t,n,r,a),!0;case"dragenter":return ei=Us(ei,e,t,n,r,a),!0;case"mouseover":return ti=Us(ti,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Bu.set(i,Us(Bu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Iu.set(i,Us(Iu.get(i)||null,e,t,n,r,a)),!0}return!1}function HT(e){var t=Io(e.target);if(t!==null){var n=Pc(t);if(n!==null){if(t=n.tag,t===13){if(t=oE(n),t!==null){e.blockedOn=t,S1(e.priority,function(){kS(n)});return}}else if(t===31){if(t=lE(n),t!==null){e.blockedOn=t,S1(e.priority,function(){kS(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 td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rv=r,n.target.dispatchEvent(r),rv=null}else return t=cs(n),t!==null&&IT(t),e.blockedOn=n,!1;t.shift()}return!0}function zS(e,t,n){td(e)&&n.delete(t)}function k4(){Bv=!1,Ja!==null&&td(Ja)&&(Ja=null),ei!==null&&td(ei)&&(ei=null),ti!==null&&td(ti)&&(ti=null),Bu.forEach(zS),Iu.forEach(zS)}function xf(e,t){e.blockedOn===t&&(e.blockedOn=null,Bv||(Bv=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,k4)))}var Sf=null;function BS(e){Sf!==e&&(Sf=e,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,function(){Sf===e&&(Sf=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(kb(r||n)===null)continue;break}var i=cs(n);i!==null&&(e.splice(t,3),t-=3,bv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Dl(e){function t(s){return xf(s,e)}Ja!==null&&xf(Ja,e),ei!==null&&xf(ei,e),ti!==null&&xf(ti,e),Bu.forEach(t),Iu.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);)HT(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||BS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[hn]||null)l=o.formAction;else if(kb(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),BS(n)}}}function qT(){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 Lb(e){this._internalRoot=e}dp.prototype.render=Lb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Cn();BT(n,r,e,t,null,null)};dp.prototype.unmount=Lb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;BT(e.current,2,null,e,null,null),up(),t[us]=null}};function dp(e){this._internalRoot=e}dp.prototype.unstable_scheduleHydration=function(e){if(e){var t=gE();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&&HT(e)}};var IS=aE.version;if(IS!=="19.2.7")throw Error(U(527,IS,"19.2.7"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=d$(t),e=e!==null?sE(e):null,e=e===null?null:e.stateNode,e};var L4={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wf.isDisabled&&wf.supportsFiber)try{Rc=wf.inject(L4),_n=wf}catch{}}Xh.createRoot=function(e,t){if(!iE(e))throw Error(U(299));var n=!1,r="",a=$_,i=D_,o=k_;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=LT(e,1,!1,null,null,n,r,null,a,i,o,qT),e[us]=t.current,Mb(e),new Lb(t)};Xh.hydrateRoot=function(e,t,n){if(!iE(e))throw Error(U(299));var r=!1,a="",i=$_,o=D_,l=k_,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=LT(e,1,!0,t,n??null,r,a,s,i,o,l,qT),t.context=zT(null),n=t.current,r=Cn(),r=G0(r),a=Xa(r),a.callback=null,Qa(n,a,r),n=r,t.current.lanes=n,Dc(t,n),Nr(t),e[us]=t.current,Mb(e),new dp(t)};Xh.version="19.2.7";function FT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FT)}catch(e){console.error(e)}}FT(),ZA.exports=Xh;var z4=ZA.exports;const GT=j.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),US="esn_theme";function B4(e){document.documentElement.setAttribute("data-theme",e)}function I4({children:e}){const[t,n]=j.useState(()=>localStorage.getItem(US)==="light"?"light":"dark");j.useEffect(()=>{B4(t),localStorage.setItem(US,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return c.jsx(GT.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function U4(){return j.useContext(GT)}/**
 * 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 HS="popstate";function qS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function H4(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 Iv("",{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:Uu(a)}return F4(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 q4(){return Math.random().toString(36).substring(2,10)}function FS(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 Iv(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||q4(),mask:a}}function Uu({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 F4(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=d();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function d(){return(o.state||{idx:null}).idx}function f(){l="POP";let g=d(),y=g==null?null:g-u;u=g,s&&s({action:l,location:m.location,delta:y})}function h(g,y){l="PUSH";let v=qS(g)?g:Iv(m.location,g,y);u=d()+1;let x=FS(v,u),w=m.createHref(v.mask||v);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:m.location,delta:1})}function p(g,y){l="REPLACE";let v=qS(g)?g:Iv(m.location,g,y);u=d();let x=FS(v,u),w=m.createHref(v.mask||v);o.replaceState(x,"",w),i&&s&&s({action:l,location:m.location,delta:0})}function b(g){return G4(a,g)}let m={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(HS,f),s=g,()=>{a.removeEventListener(HS,f),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 m}function G4(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:Uu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function KT(e,t,n="/"){return K4(e,t,n,!1)}function K4(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=Y4(e),s=null,u=iD(o);for(let d=0;s==null&&d<l.length;++d)s=rD(l[d],u,r);return s}function Y4(e){let t=YT(e);return V4(t),t}function YT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;rt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=cr([r,d.relativePath]),h=n.concat(d);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 "${f}".`),YT(o.children,t,h,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:tD(f,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 VT(o.path))i(o,l,!0,u)}),t}function VT(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=VT(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 V4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X4=/^:[\w-]+$/,Q4=3,W4=2,Z4=1,J4=10,eD=-2,GS=e=>e==="*";function tD(e,t){let n=e.split("/"),r=n.length;return n.some(GS)&&(r+=eD),t&&(r+=W4),n.filter(a=>!GS(a)).reduce((a,i)=>a+(X4.test(i)?Q4:i===""?Z4:J4),r)}function nD(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 rD(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,d=i==="/"?t:t.slice(i.length)||"/",f=Id({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),h=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Id({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),o.push({params:a,pathname:cr([i,f.pathname]),pathnameBase:uD(cr([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=cr([i,f.pathnameBase]))}return o}function Id(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aD(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:d,isOptional:f},h)=>{if(d==="*"){let b=l[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=l[h];return f&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function aD(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,d)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let f=d.charAt(u+o.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 iD(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 oD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function lD(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ms(e):e,i;return n?(n=XT(n),n.startsWith("/")?i=KS(n.substring(1),"/"):i=KS(n,t)):i=t,{pathname:i,search:cD(r),hash:fD(a)}}function KS(e,t){let n=Ud(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function nm(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 sD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zb(e){let t=sD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function hp(e,t,n,r=!1){let a;typeof e=="string"?a=ms(e):(a={...e},rt(!a.pathname||!a.pathname.includes("?"),nm("?","pathname","search",a)),rt(!a.pathname||!a.pathname.includes("#"),nm("#","pathname","hash",a)),rt(!a.search||!a.search.includes("#"),nm("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}l=f>=0?t[f]:"/"}let s=lD(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var XT=e=>e.replace(/\/\/+/g,"/"),cr=e=>XT(e.join("/")),Ud=e=>e.replace(/\/+$/,""),uD=e=>Ud(e).replace(/^\/*/,"/"),cD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dD=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 hD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function pD(e){let t=e.map(n=>n.route.path).filter(Boolean);return cr(t)||"/"}var QT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function WT(e,t){let n=e;if(typeof n!="string"||!oD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(QT)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 ZT=["POST","PUT","PATCH","DELETE"];new Set(ZT);var yD=["GET",...ZT];new Set(yD);var vs=j.createContext(null);vs.displayName="DataRouter";var pp=j.createContext(null);pp.displayName="DataRouterState";var JT=j.createContext(!1);function mD(){return j.useContext(JT)}var eC=j.createContext({isTransitioning:!1});eC.displayName="ViewTransition";var vD=j.createContext(new Map);vD.displayName="Fetchers";var gD=j.createContext(null);gD.displayName="Await";var Rn=j.createContext(null);Rn.displayName="Navigation";var Fc=j.createContext(null);Fc.displayName="Location";var pr=j.createContext({outlet:null,matches:[],isDataRoute:!1});pr.displayName="Route";var Bb=j.createContext(null);Bb.displayName="RouteError";var tC="REACT_ROUTER_ERROR",bD="REDIRECT",xD="ROUTE_ERROR_RESPONSE";function SD(e){if(e.startsWith(`${tC}:${bD}:{`))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 wD(e){if(e.startsWith(`${tC}:${xD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dD(t.status,t.statusText,t.data)}catch{}}function OD(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}=Gc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:cr([n,i])),r.createHref({pathname:l,search:o,hash:a})}function gs(){return j.useContext(Fc)!=null}function Mr(){return rt(gs(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Fc).location}var nC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rC(e){j.useContext(Rn).static||j.useLayoutEffect(e)}function vo(){let{isDataRoute:e}=j.useContext(pr);return e?zD():jD()}function jD(){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(zb(r)),o=j.useRef(!1);return rC(()=>{o.current=!0}),j.useCallback((s,u={})=>{if(fr(o.current,nC),!o.current)return;if(typeof s=="number"){n.go(s);return}let d=hp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cr([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}var AD=j.createContext(null);function ED(e){let t=j.useContext(pr).outlet;return j.useMemo(()=>t&&j.createElement(AD.Provider,{value:e},t),[t,e])}function Gc(e,{relative:t}={}){let{matches:n}=j.useContext(pr),{pathname:r}=Mr(),a=JSON.stringify(zb(n));return j.useMemo(()=>hp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function _D(e,t){return aC(e,t)}function aC(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||"";oC(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 d=Mr(),f;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.`),f=y}else f=d;let h=f.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})):KT(e,{pathname:p});fr(u||b!=null,`No routes matched location "${f.pathname}${f.search}${f.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 "${f.pathname}${f.search}${f.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 m=PD(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:cr([s,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:cr([s,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&m?j.createElement(Fc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},m):m}function TD(){let e=LD(),t=hD(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 CD=j.createElement(TD,null),iC=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=wD(e.digest);n&&(e=n)}let t=e!==void 0?j.createElement(pr.Provider,{value:this.props.routeContext},j.createElement(Bb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(ND,{error:e},t):t}};iC.contextType=JT;var rm=new WeakMap;function ND({children:e,error:t}){let{basename:n}=j.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=SD(t.digest);if(r){let a=rm.get(t);if(a)throw a;let i=WT(r.location,n);if(QT&&!rm.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 rm.set(t,o),o}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function MD({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 PD(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 d=a.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);rt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=d),f.route.id){let{loaderData:h,errors:p}=r,b=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.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?(d,f)=>{var h,p;s(d,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:pD(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,b=!1,m=null,g=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,m=f.route.errorElement||CD,o&&(l<0&&h===0?(oC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,g=null):l===h&&(b=!0,g=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),v=()=>{let x;return p?x=m:b?x=g:f.route.Component?x=j.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,j.createElement(MD,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?j.createElement(iC,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):v()},null)}function Ib(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function RD(e){let t=j.useContext(vs);return rt(t,Ib(e)),t}function $D(e){let t=j.useContext(pp);return rt(t,Ib(e)),t}function DD(e){let t=j.useContext(pr);return rt(t,Ib(e)),t}function Ub(e){let t=DD(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 kD(){return Ub("useRouteId")}function LD(){var r;let e=j.useContext(Bb),t=$D("useRouteError"),n=Ub("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function zD(){let{router:e}=RD("useNavigate"),t=Ub("useNavigate"),n=j.useRef(!1);return rC(()=>{n.current=!0}),j.useCallback(async(a,i={})=>{fr(n.current,nC),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var YS={};function oC(e,t,n){!t&&!YS[e]&&(YS[e]=!0,fr(!1,n))}j.memo(BD);function BD({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return aC(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function lC({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=hp(e,zb(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 ID(e){return ED(e.context)}function je(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 UD({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:d="",hash:f="",state:h=null,key:p="default",mask:b}=n,m=j.useMemo(()=>{let g=da(u,l);return g==null?null:{location:{pathname:g,search:d,hash:f,state:h,key:p,mask:b},navigationType:r}},[l,u,d,f,h,p,r,b]);return fr(m!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:j.createElement(Rn.Provider,{value:s},j.createElement(Fc.Provider,{children:t,value:m}))}function HD({children:e,location:t}){return _D(Uv(e),t)}function Uv(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,Uv(r.props.children,i));return}rt(r.type===je,`[${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=Uv(r.props.children,i)),n.push(o)}),n}var nd="get",rd="application/x-www-form-urlencoded";function yp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function qD(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function FD(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function GD(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function KD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YD(e,t){return e.button===0&&(!t||t==="_self")&&!KD(e)}var Of=null;function VD(){if(Of===null)try{new FormData(document.createElement("form"),0),Of=!1}catch{Of=!0}return Of}var XD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function am(e){return e!=null&&!XD.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${rd}"`),null):e}function QD(e,t){let n,r,a,i,o;if(FD(e)){let l=e.getAttribute("action");r=l?da(l,t):null,n=e.getAttribute("method")||nd,a=am(e.getAttribute("enctype"))||rd,i=new FormData(e)}else if(qD(e)||GD(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")||nd,a=am(e.getAttribute("formenctype"))||am(l.getAttribute("enctype"))||rd,i=new FormData(l,e),!VD()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,f)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=nd,r=null,a=rd,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 Hb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sC(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=`${Ud(t)}/_root.${r}`:a.pathname=`${Ud(a.pathname)}.${r}`,a}async function WD(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 ZD(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 JD(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await WD(i,n);return o.links?o.links():[]}return[]}));return rk(r.flat(1).filter(ZD).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function VS(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.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 f;let d=r.routes[s.route.id];if(!d||!d.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:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ek(e,t,{includeHydrateFallback:n}={}){return tk(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 tk(e){return[...new Set(e)]}function nk(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function rk(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(nk(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function qb(){let e=j.useContext(vs);return Hb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ak(){let e=j.useContext(pp);return Hb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Fb=j.createContext(void 0);Fb.displayName="FrameworkContext";function Gb(){let e=j.useContext(Fb);return Hb(e,"You must render this element inside a <HydratedRouter> element"),e}function ik(e,t){let n=j.useContext(Fb),[r,a]=j.useState(!1),[i,o]=j.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=y=>{y.forEach(v=>{o(v.isIntersecting)})},g=new IntersectionObserver(m,{threshold:.5});return h.current&&g.observe(h.current),()=>{g.disconnect()}}},[e]),j.useEffect(()=>{if(r){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[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(d,b),onTouchStart:Hs(f,p)}]:[!1,h,{}]}function Hs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ok({page:e,...t}){let n=mD(),{router:r}=qb(),a=j.useMemo(()=>KT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?j.createElement(sk,{page:e,matches:a,...t}):j.createElement(uk,{page:e,matches:a,...t}):null}function lk(e){let{manifest:t,routeModules:n}=Gb(),[r,a]=j.useState([]);return j.useEffect(()=>{let i=!1;return JD(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function sk({page:e,matches:t,...n}){let r=Mr(),{future:a}=Gb(),{basename:i}=qb(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=sC(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?s=!0:u.push(d.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 uk({page:e,matches:t,...n}){let r=Mr(),{future:a,manifest:i,routeModules:o}=Gb(),{basename:l}=qb(),{loaderData:s,matches:u}=ak(),d=j.useMemo(()=>VS(e,t,u,i,r,"data"),[e,t,u,i,r]),f=j.useMemo(()=>VS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,g=!1;if(t.forEach(v=>{var w;let x=i.routes[v.route.id];!x||!x.hasLoader||(!d.some(S=>S.route.id===v.route.id)&&v.route.id in s&&((w=o[v.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?g=!0:m.add(v.route.id))}),m.size===0)return[];let y=sC(e,l,a.v8_trailingSlashAwareDataRequests,"data");return g&&m.size>0&&y.searchParams.set("_routes",t.filter(v=>m.has(v.route.id)).map(v=>v.route.id).join(",")),[y.pathname+y.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,d,t,e,o]),p=j.useMemo(()=>ek(f,i),[f,i]),b=lk(f);return j.createElement(j.Fragment,null,h.map(m=>j.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),p.map(m=>j.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),b.map(({key:m,link:g})=>j.createElement("link",{key:m,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function ck(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var fk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fk&&(window.__reactRouterVersion="7.17.0")}catch{}function dk({basename:e,children:t,useTransitions:n,window:r}){let a=j.useRef();a.current==null&&(a.current=H4({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(UD,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var uC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wn=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:p,...b},m){let{basename:g,navigator:y,useTransitions:v}=j.useContext(Rn),x=typeof d=="string"&&uC.test(d),w=WT(d,g);d=w.to;let S=OD(d,{relative:a}),O=Mr(),A=null;if(l){let P=hp(l,[],O.mask?O.mask.pathname:"/",!0);g!=="/"&&(P.pathname=P.pathname==="/"?g:cr([g,P.pathname])),A=y.createHref(P)}let[_,T,M]=ik(r,b),L=yk(d,{replace:o,mask:l,state:s,target:u,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:v});function E(P){t&&t(P),P.defaultPrevented||L(P)}let C=!(w.isExternal||i),$=j.createElement("a",{...b,...M,href:(C?A:void 0)||w.absoluteURL||S,onClick:C?E:t,ref:ck(m,T),target:u,"data-discover":!x&&n==="render"?"true":void 0});return _&&!x?j.createElement(j.Fragment,null,$,j.createElement(ok,{page:S})):$});Wn.displayName="Link";var Hv=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},d){let f=Gc(o,{relative:u.relative}),h=Mr(),p=j.useContext(pp),{navigator:b,basename:m}=j.useContext(Rn),g=p!=null&&xk(f)&&l===!0,y=b.encodeLocation?b.encodeLocation(f).pathname:f.pathname,v=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&m&&(x=da(x,m)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=v===y||!a&&v.startsWith(y)&&v.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(Wn,{...u,"aria-current":_,className:T,ref:d,style:M,to:o,viewTransition:l},typeof s=="function"?s(A):s)});Hv.displayName="NavLink";var hk=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=nd,action:l,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:m}=j.useContext(Rn),g=gk(),y=bk(l,{relative:u}),v=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&uC.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:d,viewTransition:f,defaultShouldRevalidate:h});m&&n!==!1?j.startTransition(()=>_()):_()};return j.createElement("form",{ref:b,method:v,action:y,onSubmit:r?s:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});hk.displayName="Form";function pk(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function cC(e){let t=j.useContext(vs);return rt(t,pk(e)),t}function yk(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let d=vo(),f=Mr(),h=Gc(e,{relative:o});return j.useCallback(p=>{if(YD(p,t)){p.preventDefault();let b=n!==void 0?n:Uu(f)===Uu(h),m=()=>d(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?j.startTransition(()=>m()):m()}},[f,d,h,n,r,a,t,e,i,o,l,s,u])}var mk=0,vk=()=>`__${String(++mk)}__`;function gk(){let{router:e}=cC("useSubmit"),{basename:t}=j.useContext(Rn),n=kD(),r=e.fetch,a=e.navigate;return j.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:d,body:f}=QD(i,t);if(o.navigate===!1){let h=o.fetcherKey||vk();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,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 bk(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={...Gc(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(d=>d==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:cr([n,i.pathname])),Uu(i)}function xk(e,{relative:t}={}){let n=j.useContext(eC);rt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=cC("useViewTransitionState"),a=Gc(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 Id(a.pathname,o)!=null||Id(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,PA,Sk=(PA=class extends bs{constructor(){super();ne(this,Di);ne(this,Pa);ne(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(){N(this,Pa)||this.setEventListener(N(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Pa))==null||t.call(this),X(this,Pa,void 0))}setEventListener(t){var n;X(this,dl,t),(n=N(this,Pa))==null||n.call(this),X(this,Pa,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(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 N(this,Di)=="boolean"?N(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Pa=new WeakMap,dl=new WeakMap,PA),Kb=new Sk,wk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,k0,RA,Ok=(RA=class{constructor(){ne(this,Ra,wk);ne(this,k0,!1)}setTimeoutProvider(e){X(this,Ra,e)}setTimeout(e,t){return N(this,Ra).setTimeout(e,t)}clearTimeout(e){N(this,Ra).clearTimeout(e)}setInterval(e,t){return N(this,Ra).setInterval(e,t)}clearInterval(e){N(this,Ra).clearInterval(e)}},Ra=new WeakMap,k0=new WeakMap,RA),Ci=new Ok;function jk(e){setTimeout(e,0)}var Ak=typeof window>"u"||"Deno"in globalThis;function Qt(){}function Ek(e,t){return typeof e=="function"?e(t):e}function qv(e){return typeof e=="number"&&e>=0&&e!==1/0}function fC(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 XS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Yb(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 QS(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 Yb(e,t){return((t==null?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,(t,n)=>Fv(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 _k=Object.prototype.hasOwnProperty;function dC(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=WS(e)&&WS(t);if(!r&&!(Fv(e)&&Fv(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 d=0;d<l;d++){const f=r?d:o[d],h=e[f],p=t[f];if(h===p){s[f]=h,(r?d<i:_k.call(e,f))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[f]=p;continue}const b=dC(h,p,n+1);s[f]=b,b===h&&u++}return i===l&&u===i?e:s}function Hd(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 WS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fv(e){if(!ZS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ZS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ZS(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tk(e){return new Promise(t=>{Ci.setTimeout(t,e)})}function Gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dC(e,t):t}function Ck(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vb=Symbol();function hC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xb(e,t){return typeof e=="function"?e(...t):!!e}function Mk(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=()=>Ak;return{isServer(){return e()},setIsServer(t){e=t}}})();function Kv(){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 Pk=jk;function Rk(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=Pk;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=Rk(),hl,$a,pl,$A,$k=($A=class extends bs{constructor(){super();ne(this,hl,!0);ne(this,$a);ne(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(){N(this,$a)||this.setEventListener(N(this,pl))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,$a))==null||t.call(this),X(this,$a,void 0))}setEventListener(t){var n;X(this,pl,t),(n=N(this,$a))==null||n.call(this),X(this,$a,t(this.setOnline.bind(this)))}setOnline(t){N(this,hl)!==t&&(X(this,hl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,hl)}},hl=new WeakMap,$a=new WeakMap,pl=new WeakMap,$A),qd=new $k;function Dk(e){return Math.min(1e3*2**e,3e4)}function pC(e){return(e??"online")==="online"?qd.isOnline():!0}var Yv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yC(e){let t=!1,n=0,r;const a=Kv(),i=()=>a.status!=="pending",o=m=>{var g;if(!i()){const y=new Yv(m);h(y),(g=e.onCancel)==null||g.call(e,y)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Kb.isFocused()&&(e.networkMode==="always"||qd.isOnline())&&e.canRun(),d=()=>pC(e.networkMode)&&e.canRun(),f=m=>{i()||(r==null||r(),a.resolve(m))},h=m=>{i()||(r==null||r(),a.reject(m))},p=()=>new Promise(m=>{var g;r=y=>{(i()||u())&&m(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(i())return;let m;const g=n===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(f).catch(y=>{var O;if(i())return;const v=e.retry??(qu.isServer()?0:3),x=e.retryDelay??Dk,w=typeof x=="function"?x(n,y):x,S=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!S){h(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),Tk(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:d,start:()=>(d()?b():p().then(b),a)}}var ki,DA,mC=(DA=class{constructor(){ne(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qv(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(){N(this,ki)!==void 0&&(Ci.clearTimeout(N(this,ki)),X(this,ki,void 0))}},ki=new WeakMap,DA);function kk(e){return{onFetch:(t,n)=>{var d,f,h,p,b;const r=t.options,a=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.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 m=!1;const g=x=>{Mk(x,()=>t.signal,()=>m=!0)},y=hC(t.options,t.fetchOptions),v=async(x,w,S)=>{if(m)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?Nk:Ck;return{pages:M(x.pages,_,T),pageParams:M(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?Lk:JS,S={pages:i,pageParams:o},O=w(r,S);l=await v(S,O,x)}else{const x=e??i.length;do{const w=s===0?o[0]??r.initialPageParam:JS(r,l);if(s>0&&w==null)break;l=await v(l,w),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function JS(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 Lk(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,_c,Bi,xn,vC,Ur,kA,zk=(kA=class extends mC{constructor(t){super();ne(this,xn);ne(this,yl);ne(this,Li);ne(this,ml);ne(this,Bn);ne(this,zi);ne(this,Et);ne(this,_c);ne(this,Bi);X(this,Bi,!1),X(this,_c,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,zi,t.client),X(this,Bn,N(this,zi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Li,tw(this.options)),this.state=t.state??N(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,yl)}get promise(){var t;return(t=N(this,Et))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,_c),...t},t!=null&&t._type&&X(this,yl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=tw(this.options);n.data!==void 0&&(this.setState(ew(n.data,n.dataUpdatedAt)),X(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Bn).remove(this)}setData(t,n){const r=Gv(this.state.data,t,this.options);return pe(this,xn,Ur).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,Ur).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=N(this,Et))==null?void 0:r.promise;return(a=N(this,Et))==null||a.cancel(t),n?n.then(Qt).catch(Qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(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===Vb||!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:!fC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Et))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Et))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(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||(N(this,Et)&&(N(this,Bi)||pe(this,xn,vC).call(this)?N(this,Et).cancel({revert:!0}):N(this,Et).cancelRetry()),this.scheduleGc()),N(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,xn,Ur).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,p,b,m,g,y,v,x;if(this.state.fetchStatus!=="idle"&&((u=N(this,Et))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Et))return N(this,Et).continueRetry(),N(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=hC(this.options,n),O=(()=>{const A={client:N(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:N(this,zi),state:this.state,fetchFn:i};return a(w),w})(),s=N(this,yl)==="infinite"?kk(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),X(this,ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&pe(this,xn,Ur).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),X(this,Et,yC({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof Yv&&w.revert&&this.setState({...N(this,ml),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{pe(this,xn,Ur).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{pe(this,xn,Ur).call(this,{type:"pause"})},onContinue:()=>{pe(this,xn,Ur).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await N(this,Et).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=N(this,Bn).config).onSuccess)==null||p.call(h,w,this),(m=(b=N(this,Bn).config).onSettled)==null||m.call(b,w,this.state.error,this),w}catch(w){if(w instanceof Yv){if(w.silent)return N(this,Et).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw pe(this,xn,Ur).call(this,{type:"error",error:w}),(y=(g=N(this,Bn).config).onError)==null||y.call(g,w,this),(x=(v=N(this,Bn).config).onSettled)==null||x.call(v,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,_c=new WeakMap,Bi=new WeakMap,xn=new WeakSet,vC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ur=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,...gC(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...ew(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()}),N(this,Bn).notify({query:this,type:"updated",action:t})})},kA);function gC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ew(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tw(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,Tc,Vt,Ii,vl,Fr,Da,Cc,gl,bl,Ui,Hi,ka,xl,Ne,iu,Vv,Xv,Qv,Wv,Zv,Jv,eg,bC,LA,Bk=(LA=class extends bs{constructor(t,n){super();ne(this,Ne);ne(this,on);ne(this,we);ne(this,Tc);ne(this,Vt);ne(this,Ii);ne(this,vl);ne(this,Fr);ne(this,Da);ne(this,Cc);ne(this,gl);ne(this,bl);ne(this,Ui);ne(this,Hi);ne(this,ka);ne(this,xl,new Set);this.options=n,X(this,on,t),X(this,Da,null),X(this,Fr,Kv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,we).addObserver(this),nw(N(this,we),this.options)?pe(this,Ne,iu).call(this):this.updateResult(),pe(this,Ne,Wv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tg(N(this,we),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tg(N(this,we),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,Ne,Zv).call(this),pe(this,Ne,Jv).call(this),N(this,we).removeObserver(this)}setOptions(t){const n=this.options,r=N(this,we);if(this.options=N(this,on).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sn(this.options.enabled,N(this,we))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,Ne,eg).call(this),N(this,we).setOptions(this.options),n._defaulted&&!Hd(this.options,n)&&N(this,on).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,we),observer:this});const a=this.hasListeners();a&&rw(N(this,we),r,this.options,n)&&pe(this,Ne,iu).call(this),this.updateResult(),a&&(N(this,we)!==r||Sn(this.options.enabled,N(this,we))!==Sn(n.enabled,N(this,we))||ni(this.options.staleTime,N(this,we))!==ni(n.staleTime,N(this,we)))&&pe(this,Ne,Vv).call(this);const i=pe(this,Ne,Xv).call(this);a&&(N(this,we)!==r||Sn(this.options.enabled,N(this,we))!==Sn(n.enabled,N(this,we))||i!==N(this,ka))&&pe(this,Ne,Qv).call(this,i)}getOptimisticResult(t){const n=N(this,on).getQueryCache().build(N(this,on),t),r=this.createResult(n,t);return Uk(this,r)&&(X(this,Vt,r),X(this,vl,this.options),X(this,Ii,N(this,we).state)),r}getCurrentResult(){return N(this,Vt)}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&&N(this,Fr).status==="pending"&&N(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){N(this,xl).add(t)}getCurrentQuery(){return N(this,we)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=N(this,on).defaultQueryOptions(t),r=N(this,on).getQueryCache().build(N(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(),N(this,Vt)))}createResult(t,n){var T;const r=N(this,we),a=this.options,i=N(this,Vt),o=N(this,Ii),l=N(this,vl),u=t!==r?t.state:N(this,Tc),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const M=this.hasListeners(),L=!M&&nw(t,n),E=M&&rw(t,r,n,a);(L||E)&&(f={...f,...gC(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:m,status:g}=f;p=f.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=N(this,bl))==null?void 0:T.state.data,N(this,bl)):n.placeholderData,M!==void 0&&(g="success",p=Gv(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===N(this,Cc))p=N(this,gl);else try{X(this,Cc,n.select),p=n.select(p),p=Gv(i==null?void 0:i.data,p,n),X(this,gl,p),X(this,Da,null)}catch(M){X(this,Da,M)}N(this,Da)&&(b=N(this,Da),p=N(this,gl),m=Date.now(),g="error");const v=f.fetchStatus==="fetching",x=g==="pending",w=g==="error",S=x&&v,O=p!==void 0,_={status:g,fetchStatus:f.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:w&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:Qb(t,n),refetch:this.refetch,promise:N(this,Fr),isEnabled:Sn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=_.data!==void 0,L=_.status==="error"&&!M,E=P=>{L?P.reject(_.error):M&&P.resolve(_.data)},C=()=>{const P=X(this,Fr,_.promise=Kv());E(P)},$=N(this,Fr);switch($.status){case"pending":t.queryHash===r.queryHash&&E($);break;case"fulfilled":(L||_.data!==$.value)&&C();break;case"rejected":(!L||_.error!==$.reason)&&C();break}}return _}updateResult(){const t=N(this,Vt),n=this.createResult(N(this,we),this.options);if(X(this,Ii,N(this,we).state),X(this,vl,this.options),N(this,Ii).data!==void 0&&X(this,bl,N(this,we)),Hd(n,t))return;X(this,Vt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!N(this,xl).size)return!0;const o=new Set(i??N(this,xl));return this.options.throwOnError&&o.add("error"),Object.keys(N(this,Vt)).some(l=>{const s=l;return N(this,Vt)[s]!==t[s]&&o.has(s)})};pe(this,Ne,bC).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,Ne,Wv).call(this)}},on=new WeakMap,we=new WeakMap,Tc=new WeakMap,Vt=new WeakMap,Ii=new WeakMap,vl=new WeakMap,Fr=new WeakMap,Da=new WeakMap,Cc=new WeakMap,gl=new WeakMap,bl=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,ka=new WeakMap,xl=new WeakMap,Ne=new WeakSet,iu=function(t){pe(this,Ne,eg).call(this);let n=N(this,we).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Qt)),n},Vv=function(){pe(this,Ne,Zv).call(this);const t=ni(this.options.staleTime,N(this,we));if(qu.isServer()||N(this,Vt).isStale||!qv(t))return;const r=fC(N(this,Vt).dataUpdatedAt,t)+1;X(this,Ui,Ci.setTimeout(()=>{N(this,Vt).isStale||this.updateResult()},r))},Xv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,we)):this.options.refetchInterval)??!1},Qv=function(t){pe(this,Ne,Jv).call(this),X(this,ka,t),!(qu.isServer()||Sn(this.options.enabled,N(this,we))===!1||!qv(N(this,ka))||N(this,ka)===0)&&X(this,Hi,Ci.setInterval(()=>{(this.options.refetchIntervalInBackground||Kb.isFocused())&&pe(this,Ne,iu).call(this)},N(this,ka)))},Wv=function(){pe(this,Ne,Vv).call(this),pe(this,Ne,Qv).call(this,pe(this,Ne,Xv).call(this))},Zv=function(){N(this,Ui)!==void 0&&(Ci.clearTimeout(N(this,Ui)),X(this,Ui,void 0))},Jv=function(){N(this,Hi)!==void 0&&(Ci.clearInterval(N(this,Hi)),X(this,Hi,void 0))},eg=function(){const t=N(this,on).getQueryCache().build(N(this,on),this.options);if(t===N(this,we))return;const n=N(this,we);X(this,we,t),X(this,Tc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},bC=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(N(this,Vt))}),N(this,on).getQueryCache().notify({query:N(this,we),type:"observerResultsUpdated"})})},LA);function Ik(e,t){return Sn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Sn(t.retryOnMount,e)===!1)}function nw(e,t){return Ik(e,t)||e.state.data!==void 0&&tg(e,t,t.refetchOnMount)}function tg(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 rw(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 Uk(e,t){return!Hd(e.getCurrentResult(),t)}var Nc,gr,Ft,qi,br,Oa,zA,Hk=(zA=class extends mC{constructor(t){super();ne(this,br);ne(this,Nc);ne(this,gr);ne(this,Ft);ne(this,qi);X(this,Nc,t.client),this.mutationId=t.mutationId,X(this,Ft,t.mutationCache),X(this,gr,[]),this.state=t.state||xC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,gr).includes(t)||(N(this,gr).push(t),this.clearGcTimeout(),N(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,gr,N(this,gr).filter(n=>n!==t)),this.scheduleGc(),N(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,gr).length||(this.state.status==="pending"?this.scheduleGc():N(this,Ft).remove(this))}continue(){var t;return((t=N(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,d,f,h,p,b,m,g,y,v,x,w,S,O,A;const n=()=>{pe(this,br,Oa).call(this,{type:"continue"})},r={client:N(this,Nc),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,qi,yC({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:()=>N(this,Ft).canRun(this)}));const a=this.state.status==="pending",i=!N(this,qi).canStart();try{if(a)n();else{pe(this,br,Oa).call(this,{type:"pending",variables:t,isPaused:i}),N(this,Ft).config.onMutate&&await N(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 N(this,qi).start();return await((u=(s=N(this,Ft).config).onSuccess)==null?void 0:u.call(s,_,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,_,t,this.state.context,r)),await((p=(h=N(this,Ft).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((m=(b=this.options).onSettled)==null?void 0:m.call(b,_,null,t,this.state.context,r)),pe(this,br,Oa).call(this,{type:"success",data:_}),_}catch(_){try{await((y=(g=N(this,Ft).config).onError)==null?void 0:y.call(g,_,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(v=this.options).onError)==null?void 0:x.call(v,_,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=N(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{N(this,Ft).runNext(this)}}},Nc=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(()=>{N(this,gr).forEach(r=>{r.onMutationUpdate(t)}),N(this,Ft).notify({mutation:this,type:"updated",action:t})})},zA);function xC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,ir,Mc,BA,qk=(BA=class extends bs{constructor(t={}){super();ne(this,Gr);ne(this,ir);ne(this,Mc);this.config=t,X(this,Gr,new Set),X(this,ir,new Map),X(this,Mc,0)}build(t,n,r){const a=new Hk({client:t,mutationCache:this,mutationId:++af(this,Mc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){N(this,Gr).add(t);const n=jf(t);if(typeof n=="string"){const r=N(this,ir).get(n);r?r.push(t):N(this,ir).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Gr).delete(t)){const n=jf(t);if(typeof n=="string"){const r=N(this,ir).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&N(this,ir).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=jf(t);if(typeof n=="string"){const r=N(this,ir).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=jf(t);if(typeof n=="string"){const a=(r=N(this,ir).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(()=>{N(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Gr).clear(),N(this,ir).clear()})}getAll(){return Array.from(N(this,Gr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>QS(n,r))}findAll(t={}){return this.getAll().filter(n=>QS(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,ir=new WeakMap,Mc=new WeakMap,BA);function jf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kr,La,ln,Yr,oa,ad,ng,IA,Fk=(IA=class extends bs{constructor(n,r){super();ne(this,oa);ne(this,Kr);ne(this,La);ne(this,ln);ne(this,Yr);X(this,Kr,n),this.setOptions(r),this.bindMethods(),pe(this,oa,ad).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=N(this,Kr).defaultMutationOptions(n),Hd(this.options,r)||N(this,Kr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,ln),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ro(r.mutationKey)!==ro(this.options.mutationKey)?this.reset():((a=N(this,ln))==null?void 0:a.state.status)==="pending"&&N(this,ln).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=N(this,ln))==null||n.removeObserver(this)}onMutationUpdate(n){pe(this,oa,ad).call(this),pe(this,oa,ng).call(this,n)}getCurrentResult(){return N(this,La)}reset(){var n;(n=N(this,ln))==null||n.removeObserver(this),X(this,ln,void 0),pe(this,oa,ad).call(this),pe(this,oa,ng).call(this)}mutate(n,r){var a;return X(this,Yr,r),(a=N(this,ln))==null||a.removeObserver(this),X(this,ln,N(this,Kr).getMutationCache().build(N(this,Kr),this.options)),N(this,ln).addObserver(this),N(this,ln).execute(n)}},Kr=new WeakMap,La=new WeakMap,ln=new WeakMap,Yr=new WeakMap,oa=new WeakSet,ad=function(){var r;const n=((r=N(this,ln))==null?void 0:r.state)??xC();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})},ng=function(n){xt.batch(()=>{var r,a,i,o,l,s,u,d;if(N(this,Yr)&&this.hasListeners()){const f=N(this,La).variables,h=N(this,La).context,p={client:N(this,Kr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=N(this,Yr)).onSuccess)==null||a.call(r,n.data,f,h,p)}catch(b){Promise.reject(b)}try{(o=(i=N(this,Yr)).onSettled)==null||o.call(i,n.data,null,f,h,p)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(s=(l=N(this,Yr)).onError)==null||s.call(l,n.error,f,h,p)}catch(b){Promise.reject(b)}try{(d=(u=N(this,Yr)).onSettled)==null||d.call(u,void 0,n.error,f,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(f=>{f(N(this,La))})})},IA),xr,UA,Gk=(UA=class extends bs{constructor(t={}){super();ne(this,xr);this.config=t,X(this,xr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Yb(a,n);let o=this.get(i);return o||(o=new zk({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){N(this,xr).has(t.queryHash)||(N(this,xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,xr).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,xr).get(t)}getAll(){return[...N(this,xr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>XS(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,UA),it,za,Ba,Sl,wl,Ia,Ol,jl,HA,Kk=(HA=class{constructor(e={}){ne(this,it);ne(this,za);ne(this,Ba);ne(this,Sl);ne(this,wl);ne(this,Ia);ne(this,Ol);ne(this,jl);X(this,it,e.queryCache||new Gk),X(this,za,e.mutationCache||new qk),X(this,Ba,e.defaultOptions||{}),X(this,Sl,new Map),X(this,wl,new Map),X(this,Ia,0)}mount(){af(this,Ia)._++,N(this,Ia)===1&&(X(this,Ol,Kb.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,it).onFocus())})),X(this,jl,qd.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,it).onOnline())})))}unmount(){var e,t;af(this,Ia)._--,N(this,Ia)===0&&((e=N(this,Ol))==null||e.call(this),X(this,Ol,void 0),(t=N(this,jl))==null||t.call(this),X(this,jl,void 0))}isFetching(e){return N(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,za).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(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 N(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=N(this,it).get(r.queryHash),i=a==null?void 0:a.state.data,o=Ek(t,i);if(o!==void 0)return N(this,it).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>N(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=N(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,it);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(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(()=>N(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Qt).catch(Qt)}invalidateQueries(e,t={}){return xt.batch(()=>(N(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(()=>N(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=N(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 qd.isOnline()?N(this,za).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,it)}getMutationCache(){return N(this,za)}getDefaultOptions(){return N(this,Ba)}setDefaultOptions(e){X(this,Ba,e)}setQueryDefaults(e,t){N(this,Sl).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Sl).values()],n={};return t.forEach(r=>{Hu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,wl).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(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={...N(this,Ba).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yb(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===Vb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,Ba).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,it).clear(),N(this,za).clear()}},it=new WeakMap,za=new WeakMap,Ba=new WeakMap,Sl=new WeakMap,wl=new WeakMap,Ia=new WeakMap,Ol=new WeakMap,jl=new WeakMap,HA),SC=j.createContext(void 0),$n=e=>{const t=j.useContext(SC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Yk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(SC.Provider,{value:e,children:t})),wC=j.createContext(!1),Vk=()=>j.useContext(wC);wC.Provider;function Xk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Qk=j.createContext(Xk()),Wk=()=>j.useContext(Qk),Zk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Xb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Jk=e=>{j.useEffect(()=>{e.clearReset()},[e])},e5=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Xb(n,[e.error,r])),t5=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))}},n5=(e,t)=>e.isLoading&&e.isFetching&&!t,r5=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,aw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function a5(e,t,n){var p,b,m,g;const r=Vk(),a=Wk(),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,t5(o),Zk(o,a,l),Jk(a);const u=!i.getQueryCache().get(o.queryHash),[d]=j.useState(()=>new t(i,o)),f=d.getOptimisticResult(o),h=!r&&s;if(j.useSyncExternalStore(j.useCallback(y=>{const v=h?d.subscribe(xt.batchCalls(y)):Qt;return d.updateResult(),v},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),j.useEffect(()=>{d.setOptions(o)},[o,d]),r5(o,f))throw aw(o,d,a);if(e5({result:f,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw f.error;if((g=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,o,f),o.experimental_prefetchInRender&&!qu.isServer()&&n5(f,r)){const y=u?aw(o,d,a):l==null?void 0:l.promise;y==null||y.catch(Qt).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?f:d.trackResult(f)}function Dn(e,t){return a5(e,Bk)}function Pt(e,t){const n=$n(),[r]=j.useState(()=>new Fk(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&&Xb(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 i5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),OC=(...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 o5={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 l5=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,...o5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:OC("lucide",a),...l},[...o.map(([u,d])=>j.createElement(u,d)),...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 te=(e,t)=>{const n=j.forwardRef(({className:r,...a},i)=>j.createElement(l5,{ref:i,iconNode:t,className:OC(`lucide-${i5(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 s5=te("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 jC=te("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 AC=te("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 u5=te("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 c5=te("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
 * @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 EC=te("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 f5=te("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 _C=te("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 d5=te("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 h5=te("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 p5=te("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 Wb=te("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 y5=te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["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 m5=te("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 v5=te("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 g5=te("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 b5=te("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 x5=te("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 Fu=te("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 S5=te("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 w5=te("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 O5=te("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["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 j5=te("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @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=te("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 TC=te("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 E5=te("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 _5=te("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 CC=te("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 T5=te("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 C5=te("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @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=te("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 M5=te("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 P5=te("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 R5=te("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 $5=te("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 D5=te("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 k5=te("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 L5=te("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
 * @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 z5=te("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 B5=te("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @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 Kc=te("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 I5=te("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
 * @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 iw=te("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 Zb=te("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 id=te("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 U5=te("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 H5=te("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 rg=te("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 q5=te("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 F5=te("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 G5=te("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=te("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 mp=te("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 K5=te("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 Y5=te("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 NC=te("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 MC=te("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 V5=te("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 ag=te("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"}]]),X5=[{to:"/dashboard",icon:E5,label:"대시보드"},{to:"/stores",icon:rg,label:"매장 관리"},{to:"/templates",icon:A5,label:"ESL 템플릿"},{to:"/pos-cvt",icon:Kc,label:"POS 가격변환"},{to:"/tag-binding",icon:CC,label:"태그 바인딩"},{to:"/update-queue",icon:T5,label:"업데이트 큐"},{to:"/alarms",icon:AC,label:"알람 관리"},{to:"/hcore",icon:Fu,label:"HCore 장치"},{to:"/works",icon:g5,label:"작업 이력"},{to:"/firmware",icon:ag,label:"펌웨어"},{to:"/products",icon:k5,label:"상품/가격"},{to:"/users",icon:Y5,label:"사용자"},{to:"/tenants",icon:_C,label:"테넌트 관리"},{to:"/ai",icon:EC,label:"AI 분석"},{to:"/worklogs",icon:u5,label:"업무일지"},{to:"/schedules",icon:d5,label:"일정 관리"},{to:"/messages",icon:M5,label:"쪽지"},{to:"/work-stats",icon:s5,label:"업무 통계"},{to:"/mobile-app",icon:id,label:"모바일 앱"}],Q5=[{to:"/system/roles",icon:Zb,label:"역할/권한"},{to:"/system/role-menus",icon:TC,label:"메뉴 권한"},{to:"/system/menus",icon:R5,label:"메뉴 관리"},{to:"/system/codes",icon:G5,label:"공통코드"},{to:"/system/depts",icon:D5,label:"부서 관리"},{to:"/system/companies",icon:f5,label:"거래처 관리"},{to:"/system/ai-config",icon:c5,label:"AI 플랫폼 설정"}],ow=({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 W5(){const e=localStorage.getItem("esn_role"),t=e==="ADMIN"||e==="MANAGER";return c.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[c.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[c.jsx("span",{className:"text-brand font-bold text-sm tracking-wide",children:"ESN"}),c.jsx("span",{className:"ml-2 text-xs text-gray-400",children:"ESL 통합 관리"})]}),c.jsxs("nav",{className:"flex-1 overflow-y-auto py-3",children:[X5.map(({to:n,icon:r,label:a})=>c.jsxs(Hv,{to:n,className:ow,children:[c.jsx(r,{size:16}),a]},n)),t&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"px-4 pt-4 pb-1 text-[11px] font-semibold uppercase tracking-wider text-gray-500",children:"시스템관리 (권한)"}),Q5.map(({to:n,icon:r,label:a})=>c.jsxs(Hv,{to:n,className:ow,children:[c.jsx(r,{size:16}),a]},n))]})]}),c.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function Z5(){const{theme:e,toggle:t}=U4();return c.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"?c.jsx(q5,{size:16}):c.jsx($5,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}function J5(){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 c.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[c.jsx("div",{className:"flex-1"}),c.jsx("div",{className:"w-32",children:c.jsx(Z5,{})}),c.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",c.jsx("span",{className:"text-brand",children:r})]}),c.jsx("span",{className:"text-xs text-gray-400",children:"|"}),c.jsxs(Wn,{to:"/mypage",className:"flex items-center gap-2 text-sm text-gray-300 hover:text-brand transition-colors",title:"마이페이지",children:[c.jsx(K5,{size:14}),c.jsx("span",{children:t}),c.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),c.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[c.jsx(N5,{size:14}),"로그아웃"]})]})}function PC(e,t){return function(){return e.apply(t,arguments)}}const{toString:eL}=Object.prototype,{getPrototypeOf:kl}=Object,{iterator:Yc,toStringTag:RC}=Symbol,Fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Fd(n,t))return!0;n=kl(n)}return!1},tL=(e,t)=>e!=null&&Gu(e,t)?e[t]:void 0,Jb=(e=>t=>{const n=eL.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yr=e=>(e=e.toLowerCase(),t=>Jb(t)===e),vp=e=>t=>typeof t===e,{isArray:ao}=Array,Ll=vp("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 nL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$C(e.buffer),t}const rL=vp("string"),dn=vp("function"),DC=vp("number"),Ss=e=>e!==null&&typeof e=="object",aL=e=>e===!0||e===!1,od=e=>{if(!Ss(e))return!1;const t=kl(e);return(t===null||t===Object.prototype||kl(t)===null)&&!Gu(e,RC)&&!Gu(e,Yc)},iL=e=>{if(!Ss(e)||xs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},oL=yr("Date"),lL=yr("File"),sL=e=>!!(e&&typeof e.uri<"u"),uL=e=>e&&typeof e.getParts<"u",cL=yr("Blob"),fL=yr("FileList"),dL=e=>Ss(e)&&dn(e.pipe);function hL(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const lw=hL(),sw=typeof lw.FormData<"u"?lw.FormData:void 0,pL=e=>{if(!e)return!1;if(sw&&e instanceof sw)return!0;const t=kl(e);if(!t||t===Object.prototype||!dn(e.append))return!1;const n=Jb(e);return n==="formdata"||n==="object"&&dn(e.toString)&&e.toString()==="[object FormData]"},yL=yr("URLSearchParams"),[mL,vL,gL,bL]=["ReadableStream","Request","Response","Headers"].map(yr),xL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vc(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 kC(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,LC=e=>!Ll(e)&&e!==Ni;function ig(...e){const{caseless:t,skipUndefined:n}=LC(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&kC(r,o)||o,s=Fd(r,l)?r[l]:void 0;od(s)&&od(i)?r[l]=ig(s,i):od(i)?r[l]=ig({},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)||(Vc(l,a),typeof l!="object"||ao(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const d=s[u];PL.call(l,d)&&a(l[d],d)}}return r}const SL=(e,t,n,{allOwnKeys:r}={})=>(Vc(t,(a,i)=>{n&&dn(a)?Object.defineProperty(e,i,{__proto__:null,value:PC(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),wL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OL=(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)},jL=(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},AL=(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},EL=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!DC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_L=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kl(Uint8Array)),TL=(e,t)=>{const r=(e&&e[Yc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},CL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},NL=yr("HTMLFormElement"),ML=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:PL}=Object.prototype,RL=yr("RegExp"),zC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},$L=e=>{zC(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+"'")})}})},DL=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ao(e)?r(e):r(String(e).split(t)),n},kL=()=>{},LL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zL(e){return!!(e&&dn(e.append)&&e[RC]==="FormData"&&e[Yc])}const BL=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 Vc(r,(i,o)=>{const l=n(i);!Ll(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},IL=yr("AsyncFunction"),UL=e=>e&&(Ss(e)||dn(e))&&dn(e.then)&&dn(e.catch),BC=((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)),HL=typeof queueMicrotask<"u"?queueMicrotask.bind(Ni):typeof process<"u"&&process.nextTick||BC,IC=e=>e!=null&&dn(e[Yc]),qL=e=>e!=null&&Gu(e,Yc)&&IC(e),D={isArray:ao,isArrayBuffer:$C,isBuffer:xs,isFormData:pL,isArrayBufferView:nL,isString:rL,isNumber:DC,isBoolean:aL,isObject:Ss,isPlainObject:od,isEmptyObject:iL,isReadableStream:mL,isRequest:vL,isResponse:gL,isHeaders:bL,isUndefined:Ll,isDate:oL,isFile:lL,isReactNativeBlob:sL,isReactNative:uL,isBlob:cL,isRegExp:RL,isFunction:dn,isStream:dL,isURLSearchParams:yL,isTypedArray:_L,isFileList:fL,forEach:Vc,merge:ig,extend:SL,trim:xL,stripBOM:wL,inherits:OL,toFlatObject:jL,kindOf:Jb,kindOfTest:yr,endsWith:AL,toArray:EL,forEachEntry:TL,matchAll:CL,isHTMLForm:NL,hasOwnProperty:Fd,hasOwnProp:Fd,hasOwnInPrototypeChain:Gu,getSafeProp:tL,reduceDescriptors:zC,freezeMethods:$L,toObjectSet:DL,toCamelCase:ML,noop:kL,toFiniteNumber:LL,findKey:kC,global:Ni,isContextDefined:LC,isSpecCompliantForm:zL,toJSONObject:BL,isAsyncFn:IL,isThenable:UL,setImmediate:BC,asap:HL,isIterable:IC,isSafeIterable:qL},FL=D.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"]),GL=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]&&FL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function KL(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 YL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),VL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ex(e,t){return D.isArray(e)?e.map(n=>ex(n,t)):KL(String(e).replace(t,""))}const XL=e=>ex(e,YL),QL=e=>ex(e,VL);function UC(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,r)=>{t[r]=QL(n)}),t}const uw=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ld(e){return e===!1||e==null?e:D.isArray(e)?e.map(ld):XL(String(e))}function WL(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 ZL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function im(e,t,n,r,a){if(D.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function JL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function e6(e,t){const n=D.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 Yt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const d=qs(s);if(!d)return;const f=D.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=ld(l))}const o=(l,s)=>D.forEach(l,(u,d)=>i(u,d,s));if(D.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(D.isString(t)&&(t=t.trim())&&!ZL(t))o(GL(t),n);else if(D.isObject(t)&&D.isSafeIterable(t)){let l=Object.create(null),s,u;for(const d of t){if(!D.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],D.hasOwnProp(l,u)?(s=l[u],l[u]=D.isArray(s)?[...s,d[1]]:[s,d[1]]):l[u]=d[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qs(t),t){const r=D.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return WL(a);if(D.isFunction(n))return n.call(this,a,r);if(D.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=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||im(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=D.findKey(r,o);l&&(!n||im(r,r[l],l,n))&&(delete r[l],a=!0)}}return D.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||im(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return D.forEach(this,(a,i)=>{const o=D.findKey(r,i);if(o){n[o]=ld(a),delete n[i];return}const l=t?JL(i):String(i).trim();l!==i&&delete n[i],n[l]=ld(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&D.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[uw]=this[uw]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=qs(o);r[l]||(e6(a,o),r[l]=!0)}return D.isArray(t)?t.forEach(i):i(t),this}};Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Yt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Yt);const t6="[REDACTED ****]";function n6(e){if(D.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(D.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function r6(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||D.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Yt&&(i=i.toJSON()),r.push(i);let o;if(D.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);D.isUndefined(u)||(o[s]=u)});else{if(!D.isPlainObject(i)&&n6(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?t6:a(s);D.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let W=class HC extends Error{static from(t,n,r,a,i,o){const l=new HC(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&&D.hasOwnProp(t,"redact")?t.redact:void 0,r=D.isArray(n)&&n.length>0?r6(t,n):D.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 a6=null,qC=100;function og(e){return D.isPlainObject(e)||D.isArray(e)}function FC(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function om(e,t,n){return e?e.concat(t).map(function(a,i){return a=FC(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function i6(e){return D.isArray(e)&&!e.some(og)}const o6=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function gp(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,x){return!D.isUndefined(x[v])});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?qC:n.maxDepth,u=l&&D.isSpecCompliantForm(t),d=[];if(!D.isFunction(a))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(D.isDate(y))return y.toISOString();if(D.isBoolean(y))return y.toString();if(!u&&D.isBlob(y))throw new W("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(y)||D.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,v){if(s===1/0)return JSON.stringify(y);const x=[];return JSON.stringify(y,function(S,O){if(!D.isObject(O))return O;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(O),h(v+x.length-1),O})}function b(y,v,x){let w=y;if(D.isReactNative(t)&&D.isReactNativeBlob(y))return t.append(om(x,v,i),f(y)),!1;if(y&&!x&&typeof y=="object"){if(D.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=p(y,1);else if(D.isArray(y)&&i6(y)||(D.isFileList(y)||D.endsWith(v,"[]"))&&(w=D.toArray(y)))return v=FC(v),w.forEach(function(O,A){!(D.isUndefined(O)||O===null)&&t.append(o===!0?om([v],A,i):o===null?v:v+"[]",f(O))}),!1}return og(y)?!0:(t.append(om(x,v,i),f(y)),!1)}const m=Object.assign(o6,{defaultVisitor:b,convertValue:f,isVisitable:og});function g(y,v,x=0){if(!D.isUndefined(y)){if(h(x),d.indexOf(y)!==-1)throw new Error("Circular reference detected in "+v.join("."));d.push(y),D.forEach(y,function(S,O){(!(D.isUndefined(S)||S===null)&&a.call(t,S,D.isString(O)?O.trim():O,v,m))===!0&&g(S,v?v.concat(O):[O],x+1)}),d.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function cw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function tx(e,t){this._pairs=[],e&&gp(e,this,t)}const GC=tx.prototype;GC.append=function(t,n){this._pairs.push([t,n])};GC.toString=function(t){const n=t?function(r){return t.call(this,r,cw)}:cw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function l6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function KC(e,t,n){if(!t)return e;const r=D.isFunction(n)?{serialize:n}:n,a=D.getSafeProp(r,"encode")||l6,i=D.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=D.isURLSearchParams(t)?t.toString():new tx(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class fw{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){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},s6=typeof URLSearchParams<"u"?URLSearchParams:tx,u6=typeof FormData<"u"?FormData:null,c6=typeof Blob<"u"?Blob:null,f6={isBrowser:!0,classes:{URLSearchParams:s6,FormData:u6,Blob:c6},protocols:["http","https","file","blob","url","data"]},rx=typeof window<"u"&&typeof document<"u",lg=typeof navigator=="object"&&navigator||void 0,d6=rx&&(!lg||["ReactNative","NativeScript","NS"].indexOf(lg.product)<0),h6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p6=rx&&window.location.href||"http://localhost",y6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rx,hasStandardBrowserEnv:d6,hasStandardBrowserWebWorkerEnv:h6,navigator:lg,origin:p6},Symbol.toStringTag,{value:"Module"})),It={...y6,...f6};function m6(e,t){return gp(e,new It.classes.URLSearchParams,{visitor:function(n,r,a,i){return It.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const dw=qC;function YC(e){if(e>dw)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+dw,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function v6(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)YC(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function g6(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 VC(e){function t(n,r,a,i){YC(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&D.isArray(a)?a.length:o,s?(D.hasOwnProp(a,o)?a[o]=D.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!D.hasOwnProp(a,o)||!D.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&D.isArray(a[o])&&(a[o]=g6(a[o])),!l)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,a)=>{t(v6(r),a,n,0)}),n}return null}const No=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function b6(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xc={transitional:nx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=D.isObject(t);if(i&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return a?JSON.stringify(VC(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.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 m6(t,s).toString();if((l=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=No(this,"env"),d=u&&u.FormData;return gp(l?{"files[]":t}:t,d&&new d,s)}}return i||a?(n.setContentType("application/json",!1),b6(t)):t}],transformResponse:[function(t){const n=No(this,"transitional")||Xc.transitional,r=n&&n.forcedJSONParsing,a=No(this,"responseType"),i=a==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.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:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch","query"],e=>{Xc.headers[e]={}});function lm(e,t){const n=this||Xc,r=t||n,a=Yt.from(r.headers);let i=r.data;return D.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function XC(e){return!!(e&&e.__CANCEL__)}let Qc=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 x6(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function S6(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(),d=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function w6(e,t){let n=0,r=1e3/t,a,i;const o=(u,d=Date.now())=>{n=d,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?o(u,d):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const Gd=(e,t,n=3)=>{let r=0;const a=S6(50,250);return w6(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),d=a(u);r=Math.max(r,s);const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},hw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pw=e=>(...t)=>D.asap(()=>e(...t)),O6=It.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,It.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,j6=It.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),D.isString(r)&&l.push(`path=${r}`),D.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),D.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 A6(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function E6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const _6=/^https?:(?!\/\/)/i,T6=/[\t\n\r]/g;function C6(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function N6(e){return C6(e).replace(T6,"")}function yw(e,t){if(typeof e=="string"&&_6.test(N6(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function WC(e,t,n,r){yw(t,r);let a=!A6(t);return e&&(a||n===!1)?(yw(e,r),E6(e,t)):t}const mw=e=>e instanceof Yt?{...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(d,f,h,p){return D.isPlainObject(d)&&D.isPlainObject(f)?D.merge.call({caseless:p},d,f):D.isPlainObject(f)?D.merge({},f):D.isArray(f)?f.slice():f}function a(d,f,h,p){if(D.isUndefined(f)){if(!D.isUndefined(d))return r(void 0,d,h,p)}else return r(d,f,h,p)}function i(d,f){if(!D.isUndefined(f))return r(void 0,f)}function o(d,f){if(D.isUndefined(f)){if(!D.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d){const f=D.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!D.isUndefined(f))if(D.isPlainObject(f)){if(D.hasOwnProp(f,d))return f[d]}else return;const h=D.hasOwnProp(e,"transitional")?e.transitional:void 0;if(D.isPlainObject(h)&&D.hasOwnProp(h,d))return h[d]}function s(d,f,h){if(D.hasOwnProp(t,h))return r(d,f);if(D.hasOwnProp(e,h))return r(void 0,d)}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:(d,f,h)=>a(mw(d),mw(f),h,!0)};return D.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=D.hasOwnProp(u,f)?u[f]:a,p=D.hasOwnProp(e,f)?e[f]:void 0,b=D.hasOwnProp(t,f)?t[f]:void 0,m=h(p,b,f);D.isUndefined(m)&&h!==s||(n[f]=m)}),D.hasOwnProp(t,"validateStatus")&&D.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(D.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const M6=["content-type","content-length"];function P6(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 R6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function ZC(e){const t=io({},e),n=h=>D.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"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=Yt.from(l),t.url=KC(WC(u,f,d,t),n("params"),n("paramsSerializer")),s){const h=D.getSafeProp(s,"username")||"",p=D.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?R6(p):"")))}if(D.isFormData(r)&&(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv||D.isReactNative(r)?l.setContentType(void 0):D.isFunction(r.getHeaders)&&P6(l,r.getHeaders(),n("formDataHeaderPolicy"))),It.hasStandardBrowserEnv&&(D.isFunction(a)&&(a=a(t)),a===!0||a==null&&O6(t.url))){const p=i&&o&&j6.read(o);p&&l.set(i,p)}return t}const $6=typeof XMLHttpRequest<"u",D6=$6&&function(e){return new Promise(function(n,r){const a=ZC(e);let i=a.data;const o=Yt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,d,f,h,p,b;function m(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const x=Yt.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),m()},function(A){r(A),m()},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)),m(),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),m(),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||nx;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new W(w,S.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),m(),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&D.forEach(UC(o),function(w,S){g.setRequestHeader(S,w)}),D.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),l&&l!=="json"&&(g.responseType=a.responseType),u&&([h,b]=Gd(u,!0),g.addEventListener("progress",h)),s&&g.upload&&([f,p]=Gd(s),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=x=>{g&&(r(!x||x.type?new Qc(null,e,g):x),g.abort(),m(),g=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const v=x6(a.url);if(v&&!It.protocols.includes(v)){r(new W("Unsupported protocol "+v+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},k6=(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 Qc(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=()=>D.asap(o),l},L6=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},z6=async function*(e,t){for await(const n of B6(e))yield*L6(n,t)},B6=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()}},vw=(e,t,n,r)=>{const a=z6(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:d}=await a.next();if(u){l(),s.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}s.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},Kd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,I6=(e,t,n)=>t+2<n&&Kd(e.charCodeAt(t+1))&&Kd(e.charCodeAt(t+2));function U6(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),m=r.charCodeAt(p+2);Kd(b)&&Kd(m)&&(o-=2,p+=2)}let s=0,u=l-1;const d=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--):d(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||d(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&&I6(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 ax="1.18.0",gw=64*1024,{isFunction:Af}=D,H6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),bw=e=>{if(!D.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},xw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},q6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},F6=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?Af(a):typeof fetch=="function",s=Af(i),u=Af(o);if(!l)return!1;const d=l&&Af(n),f=l&&(typeof r=="function"?(y=>v=>y.encode(v))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=s&&d&&xw(()=>{let y=!1;const v=new i(It.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),y&&!x}),p=u&&d&&xw(()=>D.isReadableStream(new o("").body)),b={stream:p&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!b[y]&&(b[y]=(v,x)=>{let w=v&&v[y];if(w)return w.call(v);throw new W(`Response type '${y}' is not supported`,W.ERR_NOT_SUPPORT,x)})});const m=async y=>{if(y==null)return 0;if(D.isBlob(y))return y.size;if(D.isSpecCompliantForm(y))return(await new i(It.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(D.isArrayBufferView(y)||D.isArrayBuffer(y))return y.byteLength;if(D.isURLSearchParams(y)&&(y=y+""),D.isString(y))return(await f(y)).byteLength},g=async(y,v)=>{const x=D.toFiniteNumber(y.getContentLength());return x??m(v)};return async y=>{let{url:v,method:x,data:w,signal:S,cancelToken:O,timeout:A,onDownloadProgress:_,onUploadProgress:T,responseType:M,headers:L,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:$,maxBodyLength:P}=ZC(y);const R=D.isNumber($)&&$>-1,z=D.isNumber(P)&&P>-1,B=fe=>D.hasOwnProp(y,fe)?y[fe]:void 0;let q=a||fetch;M=M?(M+"").toLowerCase():"text";let G=k6([S,O&&O.toAbortSignal()],A),F=null;const K=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let J,ye=null;const ke=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,y,F);try{let fe;const $t=B("auth");if($t){const ee=D.getSafeProp($t,"username")||"",Le=D.getSafeProp($t,"password")||"";fe={username:ee,password:Le}}if(q6(v)){const ee=new URL(v,It.origin);if(!fe&&(ee.username||ee.password)){const Le=bw(ee.username),Dt=bw(ee.password);fe={username:Le,password:Dt}}(ee.username||ee.password)&&(ee.username="",ee.password="",v=ee.href)}if(fe&&(L.delete("authorization"),L.set("Authorization","Basic "+btoa(H6((fe.username||"")+":"+(fe.password||""))))),R&&typeof v=="string"&&v.startsWith("data:")&&U6(v)>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,F);if(z&&x!=="get"&&x!=="head"){const ee=await m(w);if(typeof ee=="number"&&isFinite(ee)&&(J=ee,ee>P))throw ke()}const vt=z&&(D.isReadableStream(w)||D.isStream(w)),Q=(ee,Le,Dt)=>vw(ee,gw,nn=>{if(z&&nn>P)throw ye=ke();Le&&Le(nn)},Dt);if(h&&x!=="get"&&x!=="head"&&(T||vt)){if(J=J??await g(L,w),J!==0||vt){let ee=new i(v,{method:"POST",body:w,duplex:"half"}),Le;if(D.isFormData(w)&&(Le=ee.headers.get("content-type"))&&L.setContentType(Le),ee.body){const[Dt,nn]=T&&hw(J,Gd(pw(T)))||[];w=Q(ee.body,Dt,nn)}}}else if(vt&&!s&&d&&x!=="get"&&x!=="head")w=Q(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,F);D.isString(E)||(E=E?"include":"omit");const se=s&&"credentials"in i.prototype;if(D.isFormData(w)){const ee=L.getContentType();ee&&/^multipart\/form-data/i.test(ee)&&!/boundary=/i.test(ee)&&L.delete("content-type")}L.set("User-Agent","axios/"+ax,!1);const de={...C,signal:G,method:x.toUpperCase(),headers:UC(L.normalize()),body:w,duplex:"half",credentials:se?E:void 0};F=s&&new i(v,de);let H=await(s?q(F,C):q(v,de));const Ve=Yt.from(H.headers);if(R){const ee=D.toFiniteNumber(Ve.getContentLength());if(ee!=null&&ee>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,F)}const ge=p&&(M==="stream"||M==="response");if(p&&H.body&&(_||R||ge&&K)){const ee={};["status","statusText","headers"].forEach(mn=>{ee[mn]=H[mn]});const Le=D.toFiniteNumber(Ve.getContentLength()),[Dt,nn]=_&&hw(Le,Gd(pw(_),!0))||[];let mi=0;const $r=mn=>{if(R&&(mi=mn,mi>$))throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,F);Dt&&Dt(mn)};H=new o(vw(H.body,gw,$r,()=>{nn&&nn(),K&&K()}),ee)}M=M||"text";let Me=await b[D.findKey(b,M)||"text"](H,y);if(R&&!p&&!ge){let ee;if(Me!=null&&(typeof Me.byteLength=="number"?ee=Me.byteLength:typeof Me.size=="number"?ee=Me.size:typeof Me=="string"&&(ee=typeof r=="function"?new r().encode(Me).byteLength:Me.length)),typeof ee=="number"&&ee>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,F)}return!ge&&K&&K(),await new Promise((ee,Le)=>{QC(ee,Le,{data:Me,headers:Yt.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:F})})}catch(fe){if(K&&K(),G&&G.aborted&&G.reason instanceof W){const $t=G.reason;throw $t.config=y,F&&($t.request=F),fe!==$t&&($t.cause=fe),$t}throw ye?(F&&!ye.request&&(ye.request=F),ye):fe instanceof W?(F&&!fe.request&&(fe.request=F),fe):fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,y,F,fe&&fe.response),{cause:fe.cause||fe}):W.from(fe,fe&&fe.code,y,F,fe&&fe.response)}}},G6=new Map,JC=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,d=G6;for(;l--;)s=i[l],u=d.get(s),u===void 0&&d.set(s,u=l?new Map:F6(t)),d=u;return u};JC();const ix={http:a6,xhr:D6,fetch:{get:JC}};D.forEach(ix,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Sw=e=>`- ${e}`,K6=e=>D.isFunction(e)||e===null||e===!1;function Y6(e,t){e=D.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,!K6(r)&&(a=ix[(l=String(r)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${l}'`);if(a&&(D.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(Sw).join(`
`):" "+Sw(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 eN={getAdapter:Y6,adapters:ix};function sm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qc(null,e)}function ww(e){return sm(e),e.headers=Yt.from(e.headers),e.data=lm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eN.getAdapter(e.adapter||Xc.adapter,e)(e).then(function(r){sm(e),e.response=r;try{r.data=lm.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Yt.from(r.headers),r},function(r){if(!XC(r)&&(sm(e),r&&r.response)){e.response=r.response;try{r.response.data=lm.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Yt.from(r.response.headers)}return Promise.reject(r)})}const bp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ow={};bp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+ax+"] 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&&!Ow[o]&&(Ow[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}};bp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function V6(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 sd={assertOptions:V6,validators:bp},qt=sd.validators;let Xi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new fw,response:new fw}}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&&sd.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&&(D.isFunction(a)?n.paramsSerializer={serialize:a}:sd.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),sd.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&D.merge(i.common,i[n.method]);i&&D.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Yt.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;s=s&&m.synchronous;const g=n.transitional||nx;g&&g.legacyInterceptorReqResOrdering?l.unshift(m.fulfilled,m.rejected):l.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!s){const b=[ww.bind(this),void 0];for(b.unshift(...l),b.push(...u),h=b.length,d=Promise.resolve(n);f<h;)d=d.then(b[f++],b[f++]);return d}h=l.length;let p=n;for(;f<h;){const b=l[f++],m=l[f++];try{p=b(p)}catch(g){m.call(this,g);break}}try{d=ww.call(this,p)}catch(b){return Promise.reject(b)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=io(this.defaults,t);const n=WC(t.baseURL,t.url,t.allowAbsoluteUrls,t);return KC(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){Xi.prototype[t]=function(n,r){return this.request(io(r||{},{method:t,url:n,data:r&&D.hasOwnProp(r,"data")?r.data:void 0}))}});D.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}))}}Xi.prototype[t]=n(),t!=="query"&&(Xi.prototype[t+"Form"]=n(!0))});let X6=class tN{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 Qc(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 tN(function(a){t=a}),cancel:t}}};function Q6(e){return function(n){return e.apply(null,n)}}function W6(e){return D.isObject(e)&&e.isAxiosError===!0}const sg={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(sg).forEach(([e,t])=>{sg[t]=e});function nN(e){const t=new Xi(e),n=PC(Xi.prototype.request,t);return D.extend(n,Xi.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return nN(io(e,a))},n}const ct=nN(Xc);ct.Axios=Xi;ct.CanceledError=Qc;ct.CancelToken=X6;ct.isCancel=XC;ct.VERSION=ax;ct.toFormData=gp;ct.AxiosError=W;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=Q6;ct.isAxiosError=W6;ct.mergeConfig=io;ct.AxiosHeaders=Yt;ct.formToJSON=e=>VC(D.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=eN.getAdapter;ct.HttpStatusCode=sg;ct.default=ct;const{Axios:bfe,AxiosError:xfe,CanceledError:Sfe,isCancel:wfe,CancelToken:Ofe,VERSION:jfe,all:Afe,Cancel:Efe,isAxiosError:_fe,spread:Tfe,toFormData:Cfe,AxiosHeaders:Nfe,HttpStatusCode:Mfe,formToJSON:Pfe,getAdapter:Rfe,mergeConfig:$fe,create:Dfe}=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}),Z6=(e,t)=>Y.post("/api/auth/login",{username:e,password:t}),rN=()=>Y.get("/api/auth/me"),J6=e=>jt(Y.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),ez=()=>jt(Y.get("/api/tenants")),tz=e=>Y.delete(`/api/tenants/${e}`),nz=e=>jt(Y.get("/api/stores",{params:e})),rz=e=>jt(Y.post("/api/stores",e)),az=(e,t)=>jt(Y.put(`/api/stores/${e}`,t)),iz=e=>Y.delete(`/api/stores/${e}`),oz=e=>jt(Y.get("/api/templates",{params:e})),lz=e=>Y.delete(`/api/templates/${e}`),sz=e=>jt(Y.get("/api/pos-cvt",{params:e})),uz=e=>jt(Y.put(`/api/pos-cvt/${e}/process`)),cz=e=>jt(Y.put(`/api/pos-cvt/${e}/ignore`)),fz=e=>jt(Y.get("/api/alarms",{params:e})),dz=(e,t)=>jt(Y.put(`/api/alarms/${e}/resolve`,{resolution:t})),hz=e=>Y.delete(`/api/alarms/${e}`),pz=e=>jt(Y.get("/api/hcore",{params:e})),yz=(e,t)=>jt(Y.put(`/api/hcore/${e}/status`,{status:t})),mz=e=>jt(Y.get("/api/works",{params:e})),vz=e=>jt(Y.get("/api/firmware",{params:e})),gz=e=>Y.delete(`/api/firmware/${e}`),bz=e=>jt(Y.get("/api/users",{params:e})),xz=e=>Y.delete(`/api/users/${e}`),Sz=e=>jt(Y.get("/api/products",{params:e})),wz=e=>Y.delete(`/api/products/${e}`),Oz=e=>jt(Y.post("/api/ai/analyze-alarm",e)),jz=e=>jt(Y.post("/api/ai/classify-pos",e));function Az(){const e=localStorage.getItem("esn_token");return j.useEffect(()=>{e&&rN().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?c.jsxs("div",{className:"flex h-screen bg-ink",children:[c.jsx(W5,{}),c.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c.jsx(J5,{}),c.jsx("main",{className:"flex-1 overflow-auto p-6",children:c.jsx(ID,{})})]})]}):c.jsx(lC,{to:"/login",replace:!0})}const Ez=(e,t)=>Y.post("/api/auth/verify",{verifyToken:e,code:t}),_z=(e,t)=>Y.post("/api/auth/verify-otp",{verifyToken:e,code:t}),Tz=()=>Y.post("/api/auth/otp/setup"),Cz=e=>Y.post("/api/auth/otp/confirm",{code:e}),Nz=()=>Y.post("/api/auth/otp/disable"),Mz=(e,t)=>Y.post("/api/auth/change-password",{currentPassword:e,newPassword:t}),Pz=e=>Y.post(`/api/admin/users/${encodeURIComponent(e)}/otp-reset`),Rz=e=>Y.post("/api/messages",e),$z=e=>Y.get("/api/messages/sent",{params:e}),Dz=e=>Y.get(`/api/messages/sent/${e}`),kz=e=>Y.get("/api/messages/received",{params:e}),Lz=e=>Y.get(`/api/messages/received/${e}`),zz=e=>Y.get("/api/schedules",{params:e}),Bz=e=>Y.post("/api/schedules",e),Iz=e=>Y.get(`/api/schedules/${e}`),Uz=e=>Y.delete(`/api/schedules/${e}`),Hz=e=>Y.get("/api/worklogs",{params:e}),qz=e=>Y.get("/api/worklogs/dashboard/progress",{params:e}),Fz=e=>Y.post("/api/worklogs",e),Gz=e=>Y.get(`/api/worklogs/${e}`),Kz=e=>Y.delete(`/api/worklogs/${e}`),Yz=(e,t)=>Y.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Vz=e=>Y.get("/api/stats/personal-work",{params:e}),Xz=e=>Y.get("/api/stats/company-work",{params:e}),Qz=e=>Y.post("/api/auth/signup",e),Wz=e=>Y.post("/api/auth/find-id",e),Zz=e=>Y.post("/api/auth/reset-password",e),Jz=e=>Y.get("/api/system/roles",{params:e}),e8=e=>Y.post("/api/system/roles",e),t8=(e,t)=>Y.put(`/api/system/roles/${e}`,t),n8=e=>Y.delete("/api/system/roles",{data:{ids:e}}),r8=e=>Y.get("/api/system/role-menus",{params:e}),a8=e=>Y.get(`/api/system/roles/${e}/menus`),i8=(e,t)=>Y.put(`/api/system/roles/${e}/menus`,{menus:t}),o8=e=>Y.get("/api/system/codes",{params:e}),l8=e=>Y.get(`/api/system/codes/${e}`),s8=e=>Y.post("/api/system/codes",e),u8=(e,t)=>Y.put(`/api/system/codes/${e}`,t),c8=e=>Y.delete(`/api/system/codes/${e}`),f8=e=>Y.get("/api/system/menus",{params:e}),d8=e=>Y.post("/api/system/menus",e),h8=(e,t)=>Y.put(`/api/system/menus/${e}`,t),p8=e=>Y.delete("/api/system/menus",{data:{ids:e}}),y8=e=>Y.get("/api/system/programs",{params:e}),m8=e=>Y.get("/api/system/depts",{params:e}),v8=e=>Y.post("/api/system/depts",e),g8=(e,t)=>Y.put(`/api/system/depts/${e}`,t),b8=e=>Y.delete(`/api/system/depts/${e}`),x8=e=>Y.get("/api/system/companies",{params:e}),S8=e=>Y.post("/api/system/companies",e),w8=(e,t)=>Y.put(`/api/system/companies/${e}`,t),O8=e=>Y.delete("/api/system/companies",{data:{ids:e}});function j8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,d]=j.useState("login"),[f,h]=j.useState(""),[p,b]=j.useState("EMAIL"),[m,g]=j.useState(""),[y,v]=j.useState(""),[x,w]=j.useState(""),[S,O]=j.useState(""),A=p==="OTP"||p==="OTP_SETUP",_=p==="OTP_SETUP";function T(C){localStorage.setItem("esn_token",C),localStorage.setItem("esn_user",t),e("/dashboard")}async function M(C){var $;C.preventDefault(),s(!0),o("");try{const R=($=(await Z6(t,r)).data)==null?void 0:$.data;if((R==null?void 0:R.twofa)==="true")h(R.verifyToken),b(R.verifyMethod||"EMAIL"),g(R.maskedEmail||""),v(R.qrImage||""),w(R.secret||""),O(""),d("verify");else{if(!(R!=null&&R.token))throw new Error("토큰 없음");T(R.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function L(C){var $,P;C.preventDefault(),s(!0),o("");try{const z=(P=($=(A?await _z(f,S):await Ez(f,S)).data)==null?void 0:$.data)==null?void 0:P.token;if(!z)throw new Error("토큰 없음");T(z)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}function E(){d("login"),O(""),o(""),v(""),w("")}return c.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:c.jsxs("div",{className:"w-full max-w-sm",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-2xl font-bold text-brand",children:"zioinfo-esn"}),c.jsxs("p",{className:"text-sm text-gray-400 mt-1 flex items-center justify-center gap-1.5",children:[u==="verify"&&c.jsx(Zb,{size:15,className:"text-brand"}),u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"]})]}),u==="login"?c.jsxs("form",{onSubmit:M,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),c.jsx("input",{value:t,onChange:C=>n(C.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),c.jsx("input",{type:"password",value:r,onChange:C=>a(C.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&&c.jsx("p",{className:"text-red-400 text-xs",children:i}),c.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?"로그인 중...":"로그인"}),c.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 text-xs text-gray-400",children:[c.jsx(Wn,{to:"/signup",className:"hover:text-brand transition-colors",children:"회원가입"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx(Wn,{to:"/find-id",className:"hover:text-brand transition-colors",children:"아이디 찾기"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx(Wn,{to:"/reset-pw",className:"hover:text-brand transition-colors",children:"비밀번호 초기화"})]})]}):c.jsxs("form",{onSubmit:L,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[A?_?c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-xs text-gray-400",children:"최초 로그인입니다. 아래 QR을 Authenticator 앱(Google·Microsoft)으로 스캔해 등록한 뒤 6자리 코드를 입력하세요."}),y&&c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:y,alt:"OTP QR",width:176,height:176,style:{background:"#fff",padding:8,borderRadius:8}})}),x&&c.jsxs("div",{children:[c.jsx("div",{className:"text-[11px] text-gray-500 mb-1",children:"QR 스캔이 안 되면 수동 입력 키"}),c.jsx("code",{className:"block text-xs text-accent bg-panel border border-edge rounded px-2 py-1.5 break-all select-all",children:x})]})]}):c.jsx("p",{className:"text-xs text-gray-400",children:"Authenticator 앱에 표시된 6자리 코드를 입력하세요."}):c.jsx("p",{className:"text-xs text-gray-400",children:m?`${m} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),c.jsx("input",{inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:S,onChange:C=>O(C.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"000000",autoFocus:!0,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&&c.jsx("p",{className:"text-red-400 text-xs",children:i}),c.jsx("button",{type:"submit",disabled:l||S.length!==6,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"인증 중...":_?"등록하고 로그인":"인증하고 로그인"}),c.jsx("button",{type:"button",onClick:E,className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]})})}function A8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(""),[u,d]=j.useState(""),[f,h]=j.useState(!1),[p,b]=j.useState(!1);async function m(g){var y;g.preventDefault(),b(!0),d("");try{const x=(y=(await Qz({username:t,password:r,displayName:i,email:l})).data)==null?void 0:y.data;h(!!(x!=null&&x.success)),d((x==null?void 0:x.message)||"처리되었습니다.")}catch{h(!1),d("가입 신청 처리 중 오류가 발생했습니다.")}finally{b(!1)}}return c.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:c.jsxs("div",{className:"w-full max-w-sm",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-2xl font-bold text-brand",children:"회원가입"}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"관리자 승인 후 로그인할 수 있습니다."})]}),c.jsxs("form",{onSubmit:m,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호 (4자 이상)"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),c.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&&c.jsx("p",{className:`text-xs ${f?"text-accent":"text-red-400"}`,children:u}),c.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?"처리 중...":"가입 신청"}),c.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:"로그인으로"}),c.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[c.jsx(Wn,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"}),c.jsx("span",{className:"text-edge mx-2",children:"|"}),c.jsx(Wn,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function E8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(null),[l,s]=j.useState(!1),[u,d]=j.useState(!1);async function f(h){var p;h.preventDefault(),d(!0),o(null),s(!1);try{const m=(p=(await Wz({displayName:t,email:r})).data)==null?void 0:p.data;m!=null&&m.found?o(m.maskedUsername):s(!0)}catch{s(!0)}finally{d(!1)}}return c.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:c.jsxs("div",{className:"w-full max-w-sm",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-2xl font-bold text-brand",children:"아이디 찾기"}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"이름과 이메일로 아이디를 확인합니다."})]}),c.jsxs("form",{onSubmit:f,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),c.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&&c.jsxs("p",{className:"text-xs text-accent",children:["회원님의 아이디: ",c.jsx("span",{className:"font-mono font-bold tracking-wider",children:i})]}),l&&c.jsx("p",{className:"text-xs text-red-400",children:"일치하는 계정을 찾을 수 없습니다."}),c.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?"확인 중...":"아이디 찾기"}),c.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:"로그인으로"}),c.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[c.jsx(Wn,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),c.jsx("span",{className:"text-edge mx-2",children:"|"}),c.jsx(Wn,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function _8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,d]=j.useState(!1);async function f(h){var p;h.preventDefault(),d(!0),o("");try{const m=(p=(await Zz({username:t,email:r})).data)==null?void 0:p.data;s(!!(m!=null&&m.success)),o((m==null?void 0:m.message)||"처리되었습니다.")}catch{s(!1),o("비밀번호 초기화 처리 중 오류가 발생했습니다.")}finally{d(!1)}}return c.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:c.jsxs("div",{className:"w-full max-w-sm",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-2xl font-bold text-brand",children:"비밀번호 초기화"}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"임시 비밀번호를 이메일로 발송합니다."})]}),c.jsxs("form",{onSubmit:f,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),c.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&&c.jsx("p",{className:`text-xs ${l?"text-accent":"text-red-400"}`,children:i}),c.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?"처리 중...":"임시 비밀번호 발송"}),c.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:"로그인으로"}),c.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[c.jsx(Wn,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),c.jsx("span",{className:"text-edge mx-2",children:"|"}),c.jsx(Wn,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"})]})]})]})})}function aN(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=aN(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=aN(e))&&(r&&(r+=" "),r+=t);return r}var T8=Array.isArray,yn=T8,C8=typeof of=="object"&&of&&of.Object===Object&&of,iN=C8,N8=iN,M8=typeof self=="object"&&self&&self.Object===Object&&self,P8=N8||M8||Function("return this")(),Pr=P8,R8=Pr,$8=R8.Symbol,Wc=$8,jw=Wc,oN=Object.prototype,D8=oN.hasOwnProperty,k8=oN.toString,Fs=jw?jw.toStringTag:void 0;function L8(e){var t=D8.call(e,Fs),n=e[Fs];try{e[Fs]=void 0;var r=!0}catch{}var a=k8.call(e);return r&&(t?e[Fs]=n:delete e[Fs]),a}var z8=L8,B8=Object.prototype,I8=B8.toString;function U8(e){return I8.call(e)}var H8=U8,Aw=Wc,q8=z8,F8=H8,G8="[object Null]",K8="[object Undefined]",Ew=Aw?Aw.toStringTag:void 0;function Y8(e){return e==null?e===void 0?K8:G8:Ew&&Ew in Object(e)?q8(e):F8(e)}var ga=Y8;function V8(e){return e!=null&&typeof e=="object"}var ba=V8,X8=ga,Q8=ba,W8="[object Symbol]";function Z8(e){return typeof e=="symbol"||Q8(e)&&X8(e)==W8}var ws=Z8,J8=yn,eB=ws,tB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nB=/^\w*$/;function rB(e,t){if(J8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||eB(e)?!0:nB.test(e)||!tB.test(e)||t!=null&&e in Object(t)}var ox=rB;function aB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fi=aB;const Os=Ue(fi);var iB=ga,oB=fi,lB="[object AsyncFunction]",sB="[object Function]",uB="[object GeneratorFunction]",cB="[object Proxy]";function fB(e){if(!oB(e))return!1;var t=iB(e);return t==sB||t==uB||t==lB||t==cB}var lx=fB;const ue=Ue(lx);var dB=Pr,hB=dB["__core-js_shared__"],pB=hB,um=pB,_w=function(){var e=/[^.]+$/.exec(um&&um.keys&&um.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yB(e){return!!_w&&_w in e}var mB=yB,vB=Function.prototype,gB=vB.toString;function bB(e){if(e!=null){try{return gB.call(e)}catch{}try{return e+""}catch{}}return""}var lN=bB,xB=lx,SB=mB,wB=fi,OB=lN,jB=/[\\^$.*+?()[\]{}|]/g,AB=/^\[object .+?Constructor\]$/,EB=Function.prototype,_B=Object.prototype,TB=EB.toString,CB=_B.hasOwnProperty,NB=RegExp("^"+TB.call(CB).replace(jB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MB(e){if(!wB(e)||SB(e))return!1;var t=xB(e)?NB:AB;return t.test(OB(e))}var PB=MB;function RB(e,t){return e==null?void 0:e[t]}var $B=RB,DB=PB,kB=$B;function LB(e,t){var n=kB(e,t);return DB(n)?n:void 0}var bo=LB,zB=bo,BB=zB(Object,"create"),xp=BB,Tw=xp;function IB(){this.__data__=Tw?Tw(null):{},this.size=0}var UB=IB;function HB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qB=HB,FB=xp,GB="__lodash_hash_undefined__",KB=Object.prototype,YB=KB.hasOwnProperty;function VB(e){var t=this.__data__;if(FB){var n=t[e];return n===GB?void 0:n}return YB.call(t,e)?t[e]:void 0}var XB=VB,QB=xp,WB=Object.prototype,ZB=WB.hasOwnProperty;function JB(e){var t=this.__data__;return QB?t[e]!==void 0:ZB.call(t,e)}var eI=JB,tI=xp,nI="__lodash_hash_undefined__";function rI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tI&&t===void 0?nI:t,this}var aI=rI,iI=UB,oI=qB,lI=XB,sI=eI,uI=aI;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=iI;js.prototype.delete=oI;js.prototype.get=lI;js.prototype.has=sI;js.prototype.set=uI;var cI=js;function fI(){this.__data__=[],this.size=0}var dI=fI;function hI(e,t){return e===t||e!==e&&t!==t}var sx=hI,pI=sx;function yI(e,t){for(var n=e.length;n--;)if(pI(e[n][0],t))return n;return-1}var Sp=yI,mI=Sp,vI=Array.prototype,gI=vI.splice;function bI(e){var t=this.__data__,n=mI(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():gI.call(t,n,1),--this.size,!0}var xI=bI,SI=Sp;function wI(e){var t=this.__data__,n=SI(t,e);return n<0?void 0:t[n][1]}var OI=wI,jI=Sp;function AI(e){return jI(this.__data__,e)>-1}var EI=AI,_I=Sp;function TI(e,t){var n=this.__data__,r=_I(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var CI=TI,NI=dI,MI=xI,PI=OI,RI=EI,$I=CI;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=NI;As.prototype.delete=MI;As.prototype.get=PI;As.prototype.has=RI;As.prototype.set=$I;var wp=As,DI=bo,kI=Pr,LI=DI(kI,"Map"),ux=LI,Cw=cI,zI=wp,BI=ux;function II(){this.size=0,this.__data__={hash:new Cw,map:new(BI||zI),string:new Cw}}var UI=II;function HI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qI=HI,FI=qI;function GI(e,t){var n=e.__data__;return FI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Op=GI,KI=Op;function YI(e){var t=KI(this,e).delete(e);return this.size-=t?1:0,t}var VI=YI,XI=Op;function QI(e){return XI(this,e).get(e)}var WI=QI,ZI=Op;function JI(e){return ZI(this,e).has(e)}var eU=JI,tU=Op;function nU(e,t){var n=tU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var rU=nU,aU=UI,iU=VI,oU=WI,lU=eU,sU=rU;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=aU;Es.prototype.delete=iU;Es.prototype.get=oU;Es.prototype.has=lU;Es.prototype.set=sU;var cx=Es,sN=cx,uU="Expected a function";function fx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uU);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(fx.Cache||sN),n}fx.Cache=sN;var uN=fx;const cU=Ue(uN);var fU=uN,dU=500;function hU(e){var t=fU(e,function(r){return n.size===dU&&n.clear(),r}),n=t.cache;return t}var pU=hU,yU=pU,mU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vU=/\\(\\)?/g,gU=yU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mU,function(n,r,a,i){t.push(a?i.replace(vU,"$1"):r||n)}),t}),bU=gU;function xU(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 dx=xU,Nw=Wc,SU=dx,wU=yn,OU=ws,Mw=Nw?Nw.prototype:void 0,Pw=Mw?Mw.toString:void 0;function cN(e){if(typeof e=="string")return e;if(wU(e))return SU(e,cN)+"";if(OU(e))return Pw?Pw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var jU=cN,AU=jU;function EU(e){return e==null?"":AU(e)}var fN=EU,_U=yn,TU=ox,CU=bU,NU=fN;function MU(e,t){return _U(e)?e:TU(e,t)?[e]:CU(NU(e))}var dN=MU,PU=ws;function RU(e){if(typeof e=="string"||PU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var jp=RU,$U=dN,DU=jp;function kU(e,t){t=$U(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[DU(t[n++])];return n&&n==r?e:void 0}var hx=kU,LU=hx;function zU(e,t,n){var r=e==null?void 0:LU(e,t);return r===void 0?n:r}var hN=zU;const Nn=Ue(hN);function BU(e){return e==null}var IU=BU;const ve=Ue(IU);var UU=ga,HU=yn,qU=ba,FU="[object String]";function GU(e){return typeof e=="string"||!HU(e)&&qU(e)&&UU(e)==FU}var KU=GU;const oo=Ue(KU);var pN={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 px=Symbol.for("react.element"),yx=Symbol.for("react.portal"),Ap=Symbol.for("react.fragment"),Ep=Symbol.for("react.strict_mode"),_p=Symbol.for("react.profiler"),Tp=Symbol.for("react.provider"),Cp=Symbol.for("react.context"),YU=Symbol.for("react.server_context"),Np=Symbol.for("react.forward_ref"),Mp=Symbol.for("react.suspense"),Pp=Symbol.for("react.suspense_list"),Rp=Symbol.for("react.memo"),$p=Symbol.for("react.lazy"),VU=Symbol.for("react.offscreen"),yN;yN=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case px:switch(e=e.type,e){case Ap:case _p:case Ep:case Mp:case Pp:return e;default:switch(e=e&&e.$$typeof,e){case YU:case Cp:case Np:case $p:case Rp:case Tp:return e;default:return t}}case yx:return t}}}De.ContextConsumer=Cp;De.ContextProvider=Tp;De.Element=px;De.ForwardRef=Np;De.Fragment=Ap;De.Lazy=$p;De.Memo=Rp;De.Portal=yx;De.Profiler=_p;De.StrictMode=Ep;De.Suspense=Mp;De.SuspenseList=Pp;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return tr(e)===Cp};De.isContextProvider=function(e){return tr(e)===Tp};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===px};De.isForwardRef=function(e){return tr(e)===Np};De.isFragment=function(e){return tr(e)===Ap};De.isLazy=function(e){return tr(e)===$p};De.isMemo=function(e){return tr(e)===Rp};De.isPortal=function(e){return tr(e)===yx};De.isProfiler=function(e){return tr(e)===_p};De.isStrictMode=function(e){return tr(e)===Ep};De.isSuspense=function(e){return tr(e)===Mp};De.isSuspenseList=function(e){return tr(e)===Pp};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ap||e===_p||e===Ep||e===Mp||e===Pp||e===VU||typeof e=="object"&&e!==null&&(e.$$typeof===$p||e.$$typeof===Rp||e.$$typeof===Tp||e.$$typeof===Cp||e.$$typeof===Np||e.$$typeof===yN||e.getModuleId!==void 0)};De.typeOf=tr;pN.exports=De;var XU=pN.exports,QU=ga,WU=ba,ZU="[object Number]";function JU(e){return typeof e=="number"||WU(e)&&QU(e)==ZU}var mN=JU;const e7=Ue(mN);var t7=mN;function n7(e){return t7(e)&&e!=+e}var r7=n7;const Zc=Ue(r7);var Zt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return oo(t)&&t.indexOf("%")===t.length-1},V=function(t){return e7(t)&&!Zc(t)},a7=function(t){return ve(t)},wt=function(t){return V(t)||oo(t)},i7=0,Jc=function(t){var n=++i7;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(!V(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 Zc(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},o7=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 V(t)&&V(n)?function(r){return t+r*(n-t)}:function(){return n}};function ug(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Nn(r,t))===n})}var l7=function(t,n){return V(t)&&V(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 cg(e){"@babel/helpers - typeof";return cg=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},cg(e)}var s7=["viewBox","children"],u7=["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"],Rw=["points","pathLength"],cm={svg:s7,polygon:Rw,polyline:Rw},mx=["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"],Yd=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){mx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},c7=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Os(t)||cg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];mx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=c7(o,n,r))}),a},f7=["children"],d7=["children"];function $w(e,t){if(e==null)return{};var n=h7(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 h7(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 Dw={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":""},kw=null,fm=null,vx=function e(t){if(t===kw&&Array.isArray(fm))return fm;var n=[];return j.Children.forEach(t,function(r){ve(r)||(XU.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fm=n,kw=t,n};function Zn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return ra(a)}):r=[ra(t)],vx(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=Zn(e,t);return n&&n[0]}var Lw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!V(r)||r<=0||!V(a)||a<=0)},p7=["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"],y7=function(t){return t&&t.type&&oo(t.type)&&p7.indexOf(t.type)>=0},m7=function(t,n,r,a){var i,o=(i=cm==null?void 0:cm[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ue(t)&&(a&&o.includes(n)||u7.includes(n))||r&&mx.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;m7((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},fg=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 zw(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(!zw(i,o))return!1}return!0},zw=function(t,n){if(ve(t)&&ve(n))return!0;if(!ve(t)&&!ve(n)){var r=t.props||{},a=r.children,i=$w(r,f7),o=n.props||{},l=o.children,s=$w(o,d7);return a&&l?sl(i,s)&&fg(a,l):!a&&!l?sl(i,s):!1}return!1},Bw=function(t,n){var r=[],a={};return vx(t).forEach(function(i,o){if(y7(i))r.push(i);else if(i){var l=ra(i.type),s=n[l]||{},u=s.handler,d=s.once;if(u&&(!d||!a[l])){var f=u(i,l,o);r.push(f),a[l]=!0}}}),r},v7=function(t){var n=t&&t.type;return n&&Dw[n]?Dw[n]:null},g7=function(t,n){return vx(n).indexOf(t)},b7=["children","width","height","viewBox","className","style","title","desc"];function dg(){return dg=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},dg.apply(this,arguments)}function x7(e,t){if(e==null)return{};var n=S7(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 S7(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 hg(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=x7(e,b7),d=a||{width:n,height:r,x:0,y:0},f=me("recharts-surface",i);return k.createElement("svg",dg({},oe(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),k.createElement("title",null,l),k.createElement("desc",null,s),t)}var w7=["children","className"];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 O7(e,t){if(e==null)return{};var n=j7(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 j7(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=k.forwardRef(function(e,t){var n=e.children,r=e.className,a=O7(e,w7),i=me("recharts-layer",r);return k.createElement("g",pg({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 A7(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 E7=A7,_7=E7;function T7(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:_7(e,t,n)}var C7=T7,N7="\\ud800-\\udfff",M7="\\u0300-\\u036f",P7="\\ufe20-\\ufe2f",R7="\\u20d0-\\u20ff",$7=M7+P7+R7,D7="\\ufe0e\\ufe0f",k7="\\u200d",L7=RegExp("["+k7+N7+$7+D7+"]");function z7(e){return L7.test(e)}var vN=z7;function B7(e){return e.split("")}var I7=B7,gN="\\ud800-\\udfff",U7="\\u0300-\\u036f",H7="\\ufe20-\\ufe2f",q7="\\u20d0-\\u20ff",F7=U7+H7+q7,G7="\\ufe0e\\ufe0f",K7="["+gN+"]",yg="["+F7+"]",mg="\\ud83c[\\udffb-\\udfff]",Y7="(?:"+yg+"|"+mg+")",bN="[^"+gN+"]",xN="(?:\\ud83c[\\udde6-\\uddff]){2}",SN="[\\ud800-\\udbff][\\udc00-\\udfff]",V7="\\u200d",wN=Y7+"?",ON="["+G7+"]?",X7="(?:"+V7+"(?:"+[bN,xN,SN].join("|")+")"+ON+wN+")*",Q7=ON+wN+X7,W7="(?:"+[bN+yg+"?",yg,xN,SN,K7].join("|")+")",Z7=RegExp(mg+"(?="+mg+")|"+W7+Q7,"g");function J7(e){return e.match(Z7)||[]}var e9=J7,t9=I7,n9=vN,r9=e9;function a9(e){return n9(e)?r9(e):t9(e)}var i9=a9,o9=C7,l9=vN,s9=i9,u9=fN;function c9(e){return function(t){t=u9(t);var n=l9(t)?s9(t):void 0,r=n?n[0]:t.charAt(0),a=n?o9(n,1).join(""):t.slice(1);return r[e]()+a}}var f9=c9,d9=f9,h9=d9("toUpperCase"),p9=h9;const Dp=Ue(p9);function Ge(e){return function(){return e}}const jN=Math.cos,Vd=Math.sin,mr=Math.sqrt,Xd=Math.PI,kp=2*Xd,vg=Math.PI,gg=2*vg,Ai=1e-6,y9=gg-Ai;function AN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function m9(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return AN;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 v9{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?AN:m9(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,d=o-t,f=l-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ai)if(!(Math.abs(f*s-u*d)>Ai)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,b=a-l,m=s*s+u*u,g=p*p+b*b,y=Math.sqrt(m),v=Math.sqrt(h),x=i*Math.tan((vg-Math.acos((m+h-g)/(2*y*v)))/2),w=x/v,S=x/y;Math.abs(w-1)>Ai&&this._append`L${t+w*d},${n+w*f}`,this._append`A${i},${i},0,0,${+(f*p>d*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,d=n+s,f=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ai||Math.abs(this._y1-d)>Ai)&&this._append`L${u},${d}`,r&&(h<0&&(h=h%gg+gg),h>y9?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:h>Ai&&this._append`A${r},${r},0,${+(h>=vg)},${f},${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 gx(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 v9(t)}function bx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function EN(e){this._context=e}EN.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 Lp(e){return new EN(e)}function _N(e){return e[0]}function TN(e){return e[1]}function CN(e,t){var n=Ge(!0),r=null,a=Lp,i=null,o=gx(l);e=typeof e=="function"?e:e===void 0?_N:Ge(e),t=typeof t=="function"?t:t===void 0?TN:Ge(t);function l(s){var u,d=(s=bx(s)).length,f,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=d;++u)!(u<d&&n(f=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,u,s),+t(f,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 Ef(e,t,n){var r=null,a=Ge(!0),i=null,o=Lp,l=null,s=gx(u);e=typeof e=="function"?e:e===void 0?_N:Ge(+e),t=typeof t=="function"?t:Ge(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?TN:Ge(+n);function u(f){var h,p,b,m=(f=bx(f)).length,g,y=!1,v,x=new Array(m),w=new Array(m);for(i==null&&(l=o(v=s())),h=0;h<=m;++h){if(!(h<m&&a(g=f[h],h,f))===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,f),w[h]=+t(g,h,f),l.point(r?+r(g,h,f):x[h],n?+n(g,h,f):w[h]))}if(v)return l=null,v+""||null}function d(){return CN().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ge(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ge(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ge(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ge(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ge(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ge(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Ge(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class NN{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 g9(e){return new NN(e,!0)}function b9(e){return new NN(e,!1)}const xx={draw(e,t){const n=mr(t/Xd);e.moveTo(n,0),e.arc(0,0,n,0,kp)}},x9={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()}},MN=mr(1/3),S9=MN*2,w9={draw(e,t){const n=mr(t/S9),r=n*MN;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},O9={draw(e,t){const n=mr(t),r=-n/2;e.rect(r,r,n,n)}},j9=.8908130915292852,PN=Vd(Xd/10)/Vd(7*Xd/10),A9=Vd(kp/10)*PN,E9=-jN(kp/10)*PN,_9={draw(e,t){const n=mr(t*j9),r=A9*n,a=E9*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=kp*i/5,l=jN(o),s=Vd(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},dm=mr(3),T9={draw(e,t){const n=-mr(t/(dm*3));e.moveTo(0,n*2),e.lineTo(-dm*n,-n),e.lineTo(dm*n,-n),e.closePath()}},kn=-.5,Ln=mr(3)/2,bg=1/mr(12),C9=(bg/2+1)*3,N9={draw(e,t){const n=mr(t/C9),r=n/2,a=n*bg,i=r,o=n*bg+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 M9(e,t){let n=null,r=gx(a);e=typeof e=="function"?e:Ge(e||xx),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 Qd(){}function Wd(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 RN(e){this._context=e}RN.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:Wd(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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P9(e){return new RN(e)}function $N(e){this._context=e}$N.prototype={areaStart:Qd,areaEnd:Qd,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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function R9(e){return new $N(e)}function DN(e){this._context=e}DN.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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $9(e){return new DN(e)}function kN(e){this._context=e}kN.prototype={areaStart:Qd,areaEnd:Qd,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 D9(e){return new kN(e)}function Iw(e){return e<0?-1:1}function Uw(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(Iw(i)+Iw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Hw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hm(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 Zd(e){this._context=e}Zd.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:hm(this,this._t0,Hw(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,hm(this,Hw(this,n=Uw(this,e,t)),n);break;default:hm(this,this._t0,n=Uw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function LN(e){this._context=new zN(e)}(LN.prototype=Object.create(Zd.prototype)).point=function(e,t){Zd.prototype.point.call(this,t,e)};function zN(e){this._context=e}zN.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 k9(e){return new Zd(e)}function L9(e){return new LN(e)}function BN(e){this._context=e}BN.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=qw(e),a=qw(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 qw(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 z9(e){return new BN(e)}function zp(e,t){this._context=e,this._t=t}zp.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 zp(e,.5)}function I9(e){return new zp(e,0)}function U9(e){return new zp(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 xg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function H9(e,t){return e[t]}function q9(e){const t=[];return t.key=e,t}function F9(){var e=Ge([]),t=xg,n=zl,r=H9;function a(i){var o=Array.from(e.apply(this,arguments),q9),l,s=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,i)]).data=f;for(l=0,d=bx(t(o));l<s;++l)o[d[l]].index=l;return n(o,d),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?xg:typeof i=="function"?i:Ge(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??zl,a):n},a}function G9(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 K9(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 Y9(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 d=e[t[l]],f=d[r][1]||0,h=d[r-1][1]||0,p=(f-h)/2,b=0;b<l;++b){var m=e[t[b]],g=m[r][1]||0,y=m[r-1][1]||0;p+=g-y}s+=f,u+=p*f}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 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)}var V9=["type","size","sizeType"];function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}function Fw(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 Gw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){X9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X9(e,t,n){return t=Q9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q9(e){var t=W9(e,"string");return Ku(t)=="symbol"?t:t+""}function W9(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 Z9(e,t){if(e==null)return{};var n=J9(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 J9(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 IN={symbolCircle:xx,symbolCross:x9,symbolDiamond:w9,symbolSquare:O9,symbolStar:_9,symbolTriangle:T9,symbolWye:N9},eH=Math.PI/180,tH=function(t){var n="symbol".concat(Dp(t));return IN[n]||xx},nH=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*eH;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}},rH=function(t,n){IN["symbol".concat(Dp(t))]=n},Sx=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=Z9(t,V9),u=Gw(Gw({},s),{},{type:r,size:i,sizeType:l}),d=function(){var g=tH(r),y=M9().type(g).size(nH(i,l,r));return y()},f=u.className,h=u.cx,p=u.cy,b=oe(u,!0);return h===+h&&p===+p&&i===+i?k.createElement("path",Sg({},b,{className:me("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};Sx.registerSymbol=rH;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 wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wg.apply(this,arguments)}function Kw(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 aH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){Yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oH(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,HN(r.key),r)}}function lH(e,t,n){return t&&oH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sH(e,t,n){return t=Jd(t),uH(e,UN()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function uH(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 cH(e)}function cH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UN=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jd(e)}function fH(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&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Og(e,t)}function Yu(e,t,n){return t=HN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HN(e){var t=dH(e,"string");return Bl(t)=="symbol"?t:t+""}function dH(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,wx=function(e){function t(){return iH(this,t),sH(this,t,arguments)}return fH(t,e),lH(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 k.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 k.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 k.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(k.isValidElement(r.legendIcon)){var u=aH({},r);return delete u.legendIcon,k.cloneElement(r.legendIcon,u)}return k.createElement(Sx,{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,d={x:0,y:0,width:zn,height:zn},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,b){var m=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 v=p.inactive?u:p.color;return k.createElement("li",wg({className:g,style:f,key:"legend-item-".concat(b)},lo(r.props,p,b)),k.createElement(hg,{width:o,height:o,viewBox:d,style:h},r.renderIcon(p)),k.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(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 k.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Yu(wx,"displayName","Legend");Yu(wx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hH=wp;function pH(){this.__data__=new hH,this.size=0}var yH=pH;function mH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var vH=mH;function gH(e){return this.__data__.get(e)}var bH=gH;function xH(e){return this.__data__.has(e)}var SH=xH,wH=wp,OH=ux,jH=cx,AH=200;function EH(e,t){var n=this.__data__;if(n instanceof wH){var r=n.__data__;if(!OH||r.length<AH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jH(r)}return n.set(e,t),this.size=n.size,this}var _H=EH,TH=wp,CH=yH,NH=vH,MH=bH,PH=SH,RH=_H;function _s(e){var t=this.__data__=new TH(e);this.size=t.size}_s.prototype.clear=CH;_s.prototype.delete=NH;_s.prototype.get=MH;_s.prototype.has=PH;_s.prototype.set=RH;var qN=_s,$H="__lodash_hash_undefined__";function DH(e){return this.__data__.set(e,$H),this}var kH=DH;function LH(e){return this.__data__.has(e)}var zH=LH,BH=cx,IH=kH,UH=zH;function eh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new BH;++t<n;)this.add(e[t])}eh.prototype.add=eh.prototype.push=IH;eh.prototype.has=UH;var FN=eh;function HH(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 GN=HH;function qH(e,t){return e.has(t)}var KN=qH,FH=FN,GH=GN,KH=KN,YH=1,VH=2;function XH(e,t,n,r,a,i){var o=n&YH,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&VH?new FH:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var b=e[f],m=t[f];if(r)var g=o?r(m,b,f,t,e,i):r(b,m,f,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!GH(t,function(y,v){if(!KH(p,v)&&(b===y||a(b,y,n,r,i)))return p.push(v)})){h=!1;break}}else if(!(b===m||a(b,m,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var YN=XH,QH=Pr,WH=QH.Uint8Array,ZH=WH;function JH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var eq=JH;function tq(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ox=tq,Yw=Wc,Vw=ZH,nq=sx,rq=YN,aq=eq,iq=Ox,oq=1,lq=2,sq="[object Boolean]",uq="[object Date]",cq="[object Error]",fq="[object Map]",dq="[object Number]",hq="[object RegExp]",pq="[object Set]",yq="[object String]",mq="[object Symbol]",vq="[object ArrayBuffer]",gq="[object DataView]",Xw=Yw?Yw.prototype:void 0,pm=Xw?Xw.valueOf:void 0;function bq(e,t,n,r,a,i,o){switch(n){case gq:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vq:return!(e.byteLength!=t.byteLength||!i(new Vw(e),new Vw(t)));case sq:case uq:case dq:return nq(+e,+t);case cq:return e.name==t.name&&e.message==t.message;case hq:case yq:return e==t+"";case fq:var l=aq;case pq:var s=r&oq;if(l||(l=iq),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=lq,o.set(e,t);var d=rq(l(e),l(t),r,a,i,o);return o.delete(e),d;case mq:if(pm)return pm.call(e)==pm.call(t)}return!1}var xq=bq;function Sq(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var VN=Sq,wq=VN,Oq=yn;function jq(e,t,n){var r=t(e);return Oq(e)?r:wq(r,n(e))}var Aq=jq;function Eq(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 _q=Eq;function Tq(){return[]}var Cq=Tq,Nq=_q,Mq=Cq,Pq=Object.prototype,Rq=Pq.propertyIsEnumerable,Qw=Object.getOwnPropertySymbols,$q=Qw?function(e){return e==null?[]:(e=Object(e),Nq(Qw(e),function(t){return Rq.call(e,t)}))}:Mq,Dq=$q;function kq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lq=kq,zq=ga,Bq=ba,Iq="[object Arguments]";function Uq(e){return Bq(e)&&zq(e)==Iq}var Hq=Uq,Ww=Hq,qq=ba,XN=Object.prototype,Fq=XN.hasOwnProperty,Gq=XN.propertyIsEnumerable,Kq=Ww(function(){return arguments}())?Ww:function(e){return qq(e)&&Fq.call(e,"callee")&&!Gq.call(e,"callee")},jx=Kq,th={exports:{}};function Yq(){return!1}var Vq=Yq;th.exports;(function(e,t){var n=Pr,r=Vq,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})(th,th.exports);var QN=th.exports,Xq=9007199254740991,Qq=/^(?:0|[1-9]\d*)$/;function Wq(e,t){var n=typeof e;return t=t??Xq,!!t&&(n=="number"||n!="symbol"&&Qq.test(e))&&e>-1&&e%1==0&&e<t}var Ax=Wq,Zq=9007199254740991;function Jq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zq}var Ex=Jq,eF=ga,tF=Ex,nF=ba,rF="[object Arguments]",aF="[object Array]",iF="[object Boolean]",oF="[object Date]",lF="[object Error]",sF="[object Function]",uF="[object Map]",cF="[object Number]",fF="[object Object]",dF="[object RegExp]",hF="[object Set]",pF="[object String]",yF="[object WeakMap]",mF="[object ArrayBuffer]",vF="[object DataView]",gF="[object Float32Array]",bF="[object Float64Array]",xF="[object Int8Array]",SF="[object Int16Array]",wF="[object Int32Array]",OF="[object Uint8Array]",jF="[object Uint8ClampedArray]",AF="[object Uint16Array]",EF="[object Uint32Array]",Qe={};Qe[gF]=Qe[bF]=Qe[xF]=Qe[SF]=Qe[wF]=Qe[OF]=Qe[jF]=Qe[AF]=Qe[EF]=!0;Qe[rF]=Qe[aF]=Qe[mF]=Qe[iF]=Qe[vF]=Qe[oF]=Qe[lF]=Qe[sF]=Qe[uF]=Qe[cF]=Qe[fF]=Qe[dF]=Qe[hF]=Qe[pF]=Qe[yF]=!1;function _F(e){return nF(e)&&tF(e.length)&&!!Qe[eF(e)]}var TF=_F;function CF(e){return function(t){return e(t)}}var WN=CF,nh={exports:{}};nh.exports;(function(e,t){var n=iN,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})(nh,nh.exports);var NF=nh.exports,MF=TF,PF=WN,Zw=NF,Jw=Zw&&Zw.isTypedArray,RF=Jw?PF(Jw):MF,ZN=RF,$F=Lq,DF=jx,kF=yn,LF=QN,zF=Ax,BF=ZN,IF=Object.prototype,UF=IF.hasOwnProperty;function HF(e,t){var n=kF(e),r=!n&&DF(e),a=!n&&!r&&LF(e),i=!n&&!r&&!a&&BF(e),o=n||r||a||i,l=o?$F(e.length,String):[],s=l.length;for(var u in e)(t||UF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||zF(u,s)))&&l.push(u);return l}var qF=HF,FF=Object.prototype;function GF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||FF;return e===n}var KF=GF;function YF(e,t){return function(n){return e(t(n))}}var JN=YF,VF=JN,XF=VF(Object.keys,Object),QF=XF,WF=KF,ZF=QF,JF=Object.prototype,eG=JF.hasOwnProperty;function tG(e){if(!WF(e))return ZF(e);var t=[];for(var n in Object(e))eG.call(e,n)&&n!="constructor"&&t.push(n);return t}var nG=tG,rG=lx,aG=Ex;function iG(e){return e!=null&&aG(e.length)&&!rG(e)}var Bp=iG,oG=qF,lG=nG,sG=Bp;function uG(e){return sG(e)?oG(e):lG(e)}var _x=uG,cG=Aq,fG=Dq,dG=_x;function hG(e){return cG(e,dG,fG)}var pG=hG,eO=pG,yG=1,mG=Object.prototype,vG=mG.hasOwnProperty;function gG(e,t,n,r,a,i){var o=n&yG,l=eO(e),s=l.length,u=eO(t),d=u.length;if(s!=d&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in t:vG.call(t,h)))return!1}var p=i.get(e),b=i.get(t);if(p&&b)return p==t&&b==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<s;){h=l[f];var y=e[h],v=t[h];if(r)var x=o?r(v,y,h,t,e,i):r(y,v,h,e,t,i);if(!(x===void 0?y===v||a(y,v,n,r,i):x)){m=!1;break}g||(g=h=="constructor")}if(m&&!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)&&(m=!1)}return i.delete(e),i.delete(t),m}var bG=gG,xG=bo,SG=Pr,wG=xG(SG,"DataView"),OG=wG,jG=bo,AG=Pr,EG=jG(AG,"Promise"),_G=EG,TG=bo,CG=Pr,NG=TG(CG,"Set"),eM=NG,MG=bo,PG=Pr,RG=MG(PG,"WeakMap"),$G=RG,jg=OG,Ag=ux,Eg=_G,_g=eM,Tg=$G,tM=ga,Ts=lN,tO="[object Map]",DG="[object Object]",nO="[object Promise]",rO="[object Set]",aO="[object WeakMap]",iO="[object DataView]",kG=Ts(jg),LG=Ts(Ag),zG=Ts(Eg),BG=Ts(_g),IG=Ts(Tg),Ei=tM;(jg&&Ei(new jg(new ArrayBuffer(1)))!=iO||Ag&&Ei(new Ag)!=tO||Eg&&Ei(Eg.resolve())!=nO||_g&&Ei(new _g)!=rO||Tg&&Ei(new Tg)!=aO)&&(Ei=function(e){var t=tM(e),n=t==DG?e.constructor:void 0,r=n?Ts(n):"";if(r)switch(r){case kG:return iO;case LG:return tO;case zG:return nO;case BG:return rO;case IG:return aO}return t});var UG=Ei,ym=qN,HG=YN,qG=xq,FG=bG,oO=UG,lO=yn,sO=QN,GG=ZN,KG=1,uO="[object Arguments]",cO="[object Array]",_f="[object Object]",YG=Object.prototype,fO=YG.hasOwnProperty;function VG(e,t,n,r,a,i){var o=lO(e),l=lO(t),s=o?cO:oO(e),u=l?cO:oO(t);s=s==uO?_f:s,u=u==uO?_f:u;var d=s==_f,f=u==_f,h=s==u;if(h&&sO(e)){if(!sO(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new ym),o||GG(e)?HG(e,t,n,r,a,i):qG(e,t,s,n,r,a,i);if(!(n&KG)){var p=d&&fO.call(e,"__wrapped__"),b=f&&fO.call(t,"__wrapped__");if(p||b){var m=p?e.value():e,g=b?t.value():t;return i||(i=new ym),a(m,g,n,r,i)}}return h?(i||(i=new ym),FG(e,t,n,r,a,i)):!1}var XG=VG,QG=XG,dO=ba;function nM(e,t,n,r,a){return e===t?!0:e==null||t==null||!dO(e)&&!dO(t)?e!==e&&t!==t:QG(e,t,n,r,nM,a)}var Tx=nM,WG=qN,ZG=Tx,JG=1,eK=2;function tK(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],d=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new WG;if(r)var h=r(u,d,s,e,t,f);if(!(h===void 0?ZG(d,u,JG|eK,r,f):h))return!1}}return!0}var nK=tK,rK=fi;function aK(e){return e===e&&!rK(e)}var rM=aK,iK=rM,oK=_x;function lK(e){for(var t=oK(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,iK(a)]}return t}var sK=lK;function uK(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var aM=uK,cK=nK,fK=sK,dK=aM;function hK(e){var t=fK(e);return t.length==1&&t[0][2]?dK(t[0][0],t[0][1]):function(n){return n===e||cK(n,e,t)}}var pK=hK;function yK(e,t){return e!=null&&t in Object(e)}var mK=yK,vK=dN,gK=jx,bK=yn,xK=Ax,SK=Ex,wK=jp;function OK(e,t,n){t=vK(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=wK(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&&SK(a)&&xK(o,a)&&(bK(e)||gK(e)))}var jK=OK,AK=mK,EK=jK;function _K(e,t){return e!=null&&EK(e,t,AK)}var TK=_K,CK=Tx,NK=hN,MK=TK,PK=ox,RK=rM,$K=aM,DK=jp,kK=1,LK=2;function zK(e,t){return PK(e)&&RK(t)?$K(DK(e),t):function(n){var r=NK(n,e);return r===void 0&&r===t?MK(n,e):CK(t,r,kK|LK)}}var BK=zK;function IK(e){return e}var Cs=IK;function UK(e){return function(t){return t==null?void 0:t[e]}}var HK=UK,qK=hx;function FK(e){return function(t){return qK(t,e)}}var GK=FK,KK=HK,YK=GK,VK=ox,XK=jp;function QK(e){return VK(e)?KK(XK(e)):YK(e)}var WK=QK,ZK=pK,JK=BK,eY=Cs,tY=yn,nY=WK;function rY(e){return typeof e=="function"?e:e==null?eY:typeof e=="object"?tY(e)?JK(e[0],e[1]):ZK(e):nY(e)}var di=rY;function aY(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 iY=aY;function oY(e){return e!==e}var lY=oY;function sY(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var uY=sY,cY=iY,fY=lY,dY=uY;function hY(e,t,n){return t===t?dY(e,t,n):cY(e,fY,n)}var pY=hY,yY=pY;function mY(e,t){var n=e==null?0:e.length;return!!n&&yY(e,t,0)>-1}var vY=mY;function gY(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 bY=gY;function xY(){}var SY=xY,mm=eM,wY=SY,OY=Ox,jY=1/0,AY=mm&&1/OY(new mm([,-0]))[1]==jY?function(e){return new mm(e)}:wY,EY=AY,_Y=FN,TY=vY,CY=bY,NY=KN,MY=EY,PY=Ox,RY=200;function $Y(e,t,n){var r=-1,a=TY,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=CY;else if(i>=RY){var u=t?null:MY(e);if(u)return PY(u);o=!1,a=NY,s=new _Y}else s=t?[]:l;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var h=s.length;h--;)if(s[h]===f)continue e;t&&s.push(f),l.push(d)}else a(s,f,n)||(s!==l&&s.push(f),l.push(d))}return l}var DY=$Y,kY=di,LY=DY;function zY(e,t){return e&&e.length?LY(e,kY(t)):[]}var BY=zY;const hO=Ue(BY);function iM(e,t,n){return t===!0?hO(e,n):ue(t)?hO(e,t):e}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)}var IY=["ref"];function pO(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?pO(Object(n),!0).forEach(function(r){Ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yO(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,lM(r.key),r)}}function HY(e,t,n){return t&&yO(e.prototype,t),n&&yO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qY(e,t,n){return t=rh(t),FY(e,oM()?Reflect.construct(t,n||[],rh(e).constructor):t.apply(e,n))}function FY(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 GY(e)}function GY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oM=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rh(e)}function KY(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&&Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cg(e,t)}function Ip(e,t,n){return t=lM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lM(e){var t=YY(e,"string");return Il(t)=="symbol"?t:t+""}function YY(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)}function VY(e,t){if(e==null)return{};var n=XY(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 XY(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 QY(e){return e.value}function WY(e,t){if(k.isValidElement(e))return k.cloneElement(e,t);if(typeof e=="function")return k.createElement(e,t);t.ref;var n=VY(t,IY);return k.createElement(wx,n)}var mO=1,ul=function(e){function t(){var n;UY(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=qY(this,t,[].concat(a)),Ip(n,"lastBoundingBox",{width:-1,height:-1}),n}return KY(t,e),HY(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)>mO||Math.abs(a.height-this.lastBoundingBox.height)>mO)&&(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,d=a.chartHeight,f,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();f={left:((u||0)-p.width)/2}}else f=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:((d||0)-b.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Br(Br({},f),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,d=a.payload,f=Br(Br({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return k.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},WY(i,Br(Br({},this.props),{},{payload:iM(d,u,QY)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Br(Br({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&V(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(j.PureComponent);Ip(ul,"displayName","Legend");Ip(ul,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var vO=Wc,ZY=jx,JY=yn,gO=vO?vO.isConcatSpreadable:void 0;function eV(e){return JY(e)||ZY(e)||!!(gO&&e&&e[gO])}var tV=eV,nV=VN,rV=tV;function sM(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=rV),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?sM(l,t-1,n,r,a):nV(a,l):r||(a[a.length]=l)}return a}var uM=sM;function aV(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 iV=aV,oV=iV,lV=oV(),sV=lV,uV=sV,cV=_x;function fV(e,t){return e&&uV(e,t,cV)}var cM=fV,dV=Bp;function hV(e,t){return function(n,r){if(n==null)return n;if(!dV(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 pV=hV,yV=cM,mV=pV,vV=mV(yV),Cx=vV,gV=Cx,bV=Bp;function xV(e,t){var n=-1,r=bV(e)?Array(e.length):[];return gV(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var fM=xV;function SV(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var wV=SV,bO=ws;function OV(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=bO(e),o=t!==void 0,l=t===null,s=t===t,u=bO(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 jV=OV,AV=jV;function EV(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=AV(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 _V=EV,vm=dx,TV=hx,CV=di,NV=fM,MV=wV,PV=WN,RV=_V,$V=Cs,DV=yn;function kV(e,t,n){t.length?t=vm(t,function(i){return DV(i)?function(o){return TV(o,i.length===1?i[0]:i)}:i}):t=[$V];var r=-1;t=vm(t,PV(CV));var a=NV(e,function(i,o,l){var s=vm(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return MV(a,function(i,o){return RV(i,o,n)})}var LV=kV;function zV(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 BV=zV,IV=BV,xO=Math.max;function UV(e,t,n){return t=xO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=xO(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),IV(e,this,l)}}var HV=UV;function qV(e){return function(){return e}}var FV=qV,GV=bo,KV=function(){try{var e=GV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),dM=KV,YV=FV,SO=dM,VV=Cs,XV=SO?function(e,t){return SO(e,"toString",{configurable:!0,enumerable:!1,value:YV(t),writable:!0})}:VV,QV=XV,WV=800,ZV=16,JV=Date.now;function eX(e){var t=0,n=0;return function(){var r=JV(),a=ZV-(r-n);if(n=r,a>0){if(++t>=WV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var tX=eX,nX=QV,rX=tX,aX=rX(nX),iX=aX,oX=Cs,lX=HV,sX=iX;function uX(e,t){return sX(lX(e,t,oX),e+"")}var cX=uX,fX=sx,dX=Bp,hX=Ax,pX=fi;function yX(e,t,n){if(!pX(n))return!1;var r=typeof t;return(r=="number"?dX(n)&&hX(t,n.length):r=="string"&&t in n)?fX(n[t],e):!1}var Up=yX,mX=uM,vX=LV,gX=cX,wO=Up,bX=gX(function(e,t){if(e==null)return[];var n=t.length;return n>1&&wO(e,t[0],t[1])?t=[]:n>2&&wO(t[0],t[1],t[2])&&(t=[t[0]]),vX(e,mX(t,1),[])}),xX=bX;const Nx=Ue(xX);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 Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(this,arguments)}function SX(e,t){return AX(e)||jX(e,t)||OX(e,t)||wX()}function wX(){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 OX(e,t){if(e){if(typeof e=="string")return OO(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 OO(e,t)}}function OO(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 jX(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function AX(e){if(Array.isArray(e))return e}function jO(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 gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(n),!0).forEach(function(r){EX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EX(e,t,n){return t=_X(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _X(e){var t=TX(e,"string");return Vu(t)=="symbol"?t:t+""}function TX(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 CX(e){return Array.isArray(e)&&wt(e[0])&&wt(e[1])?e.join(" ~ "):e}var NX=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,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,b=t.labelClassName,m=t.label,g=t.labelFormatter,y=t.accessibilityLayer,v=y===void 0?!1:y,x=function(){if(d&&d.length){var E={padding:0,margin:0},C=(h?Nx(d,h):d).map(function($,P){if($.type==="none")return null;var R=gm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},l),z=$.formatter||f||CX,B=$.value,q=$.name,G=B,F=q;if(z&&G!=null&&F!=null){var K=z(B,q,$,P,d);if(Array.isArray(K)){var J=SX(K,2);G=J[0],F=J[1]}else G=K}return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:R},wt(F)?k.createElement("span",{className:"recharts-tooltip-item-name"},F):null,wt(F)?k.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,k.createElement("span",{className:"recharts-tooltip-item-value"},G),k.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},w=gm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=gm({margin:0},u),O=!ve(m),A=O?m:"",_=me("recharts-default-tooltip",p),T=me("recharts-tooltip-label",b);O&&g&&d!==void 0&&d!==null&&(A=g(m,d));var M=v?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",Ng({className:_,style:w},M),k.createElement("p",{className:T,style:S},k.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 Tf(e,t,n){return t=MX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=PX(e,"string");return Xu(t)=="symbol"?t:t+""}function PX(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",RX={visibility:"hidden"};function $X(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return me(Gs,Tf(Tf(Tf(Tf({},"".concat(Gs,"-right"),V(n)&&t&&V(t.x)&&n>=t.x),"".concat(Gs,"-left"),V(n)&&t&&V(t.x)&&n<t.x),"".concat(Gs,"-bottom"),V(r)&&t&&V(t.y)&&r>=t.y),"".concat(Gs,"-top"),V(r)&&t&&V(t.y)&&r<t.y))}function AO(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&&V(i[r]))return i[r];var d=n[r]-l-a,f=n[r]+a;if(t[r])return o[r]?d:f;if(o[r]){var h=d,p=s[r];return h<p?Math.max(f,s[r]):Math.max(d,s[r])}var b=f+l,m=s[r]+u;return b>m?Math.max(d,s[r]):Math.max(f,s[r])}function DX(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 kX(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,d,f;return o.height>0&&o.width>0&&n?(d=AO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=AO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=DX({translateX:d,translateY:f,useTranslate3d:l})):u=RX,{cssProperties:u,cssClasses:$X({translateX:d,translateY:f,coordinate:n})}}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)}function EO(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 _O(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(n),!0).forEach(function(r){Pg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zX(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,pM(r.key),r)}}function BX(e,t,n){return t&&zX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IX(e,t,n){return t=ah(t),UX(e,hM()?Reflect.construct(t,n||[],ah(e).constructor):t.apply(e,n))}function UX(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 HX(e)}function HX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hM=function(){return!!e})()}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ah(e)}function qX(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 Pg(e,t,n){return t=pM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pM(e){var t=FX(e,"string");return Ul(t)=="symbol"?t:t+""}function FX(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)}var TO=1,GX=function(e){function t(){var n;LX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=IX(this,t,[].concat(a)),Pg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Pg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,d;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=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return qX(t,e),BX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>TO||Math.abs(r.height-this.state.lastBoundingBox.height)>TO)&&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,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,p=a.offset,b=a.position,m=a.reverseDirection,g=a.useTranslate3d,y=a.viewBox,v=a.wrapperStyle,x=kX({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:b,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=x.cssClasses,S=x.cssProperties,O=_O(_O({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},v);return k.createElement("div",{tabIndex:-1,className:w,style:O,ref:function(_){r.wrapperNode=_}},u)}}])}(j.PureComponent),KX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ns={isSsr:KX()};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 CO(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 NO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(n),!0).forEach(function(r){Mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VX(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,mM(r.key),r)}}function XX(e,t,n){return t&&VX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QX(e,t,n){return t=ih(t),WX(e,yM()?Reflect.construct(t,n||[],ih(e).constructor):t.apply(e,n))}function WX(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 ZX(e)}function ZX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yM=function(){return!!e})()}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ih(e)}function JX(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&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Rg(e,t)}function Mx(e,t,n){return t=mM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mM(e){var t=eQ(e,"string");return Hl(t)=="symbol"?t:t+""}function eQ(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 tQ(e){return e.dataKey}function nQ(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement(NX,t)}var lr=function(e){function t(){return YX(this,t),QX(this,t,arguments)}return JX(t,e),XX(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,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,p=a.offset,b=a.payload,m=a.payloadUniqBy,g=a.position,y=a.reverseDirection,v=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=b??[];f&&S.length&&(S=iM(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),m,tQ));var O=S.length>0;return k.createElement(GX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:d,hasPayload:O,offset:p,position:g,reverseDirection:y,useTranslate3d:v,viewBox:x,wrapperStyle:w},nQ(u,NO(NO({},this.props),{},{payload:S})))}}])}(j.PureComponent);Mx(lr,"displayName","Tooltip");Mx(lr,"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 rQ=Pr,aQ=function(){return rQ.Date.now()},iQ=aQ,oQ=/\s/;function lQ(e){for(var t=e.length;t--&&oQ.test(e.charAt(t)););return t}var sQ=lQ,uQ=sQ,cQ=/^\s+/;function fQ(e){return e&&e.slice(0,uQ(e)+1).replace(cQ,"")}var dQ=fQ,hQ=dQ,MO=fi,pQ=ws,PO=NaN,yQ=/^[-+]0x[0-9a-f]+$/i,mQ=/^0b[01]+$/i,vQ=/^0o[0-7]+$/i,gQ=parseInt;function bQ(e){if(typeof e=="number")return e;if(pQ(e))return PO;if(MO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=MO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hQ(e);var n=mQ.test(e);return n||vQ.test(e)?gQ(e.slice(2),n?2:8):yQ.test(e)?PO:+e}var vM=bQ,xQ=fi,bm=iQ,RO=vM,SQ="Expected a function",wQ=Math.max,OQ=Math.min;function jQ(e,t,n){var r,a,i,o,l,s,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(SQ);t=RO(t)||0,xQ(n)&&(d=!!n.leading,f="maxWait"in n,i=f?wQ(RO(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),d?p(O):o}function m(O){var A=O-s,_=O-u,T=t-A;return f?OQ(T,i-_):T}function g(O){var A=O-s,_=O-u;return s===void 0||A>=t||A<0||f&&_>=i}function y(){var O=bm();if(g(O))return v(O);l=setTimeout(y,m(O))}function v(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:v(bm())}function S(){var O=bm(),A=g(O);if(r=arguments,a=this,s=O,A){if(l===void 0)return b(s);if(f)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 AQ=jQ,EQ=AQ,_Q=fi,TQ="Expected a function";function CQ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(TQ);return _Q(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),EQ(e,t,{leading:r,maxWait:t,trailing:a})}var NQ=CQ;const gM=Ue(NQ);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 $O(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 Cf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){MQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MQ(e,t,n){return t=PQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PQ(e){var t=RQ(e,"string");return Qu(t)=="symbol"?t:t+""}function RQ(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)}function $Q(e,t){return zQ(e)||LQ(e,t)||kQ(e,t)||DQ()}function DQ(){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 kQ(e,t){if(e){if(typeof e=="string")return DO(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 DO(e,t)}}function DO(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 LQ(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function zQ(e){if(Array.isArray(e))return e}var kO=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,d=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,b=e.debounce,m=b===void 0?0:b,g=e.id,y=e.className,v=e.onResize,x=e.style,w=x===void 0?{}:x,S=j.useRef(null),O=j.useRef();O.current=v,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}),_=$Q(A,2),T=_[0],M=_[1],L=j.useCallback(function(C,$){M(function(P){var R=Math.round(C),z=Math.round($);return P.containerWidth===R&&P.containerHeight===z?P:{containerWidth:R,containerHeight:z}})},[]);j.useEffect(function(){var C=function(q){var G,F=q[0].contentRect,K=F.width,J=F.height;L(K,J),(G=O.current)===null||G===void 0||G.call(O,K,J)};m>0&&(C=gM(C,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(C),P=S.current.getBoundingClientRect(),R=P.width,z=P.height;return L(R,z),$.observe(S.current),function(){$.disconnect()}},[L,m]);var E=j.useMemo(function(){var C=T.containerWidth,$=T.containerHeight;if(C<0||$<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 P=Mi(o)?C:o,R=Mi(s)?$:s;n&&n>0&&(P?R=P/n:R&&(P=R*n),h&&R>h&&(R=h)),aa(P>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.`,P,R,o,s,d,f,n);var z=!Array.isArray(p)&&ra(p.type).endsWith("Chart");return k.Children.map(p,function(B){return k.isValidElement(B)?j.cloneElement(B,Cf({width:P,height:R},z?{style:Cf({height:"100%",width:"100%",maxHeight:R,maxWidth:P},B.props.style)}:{})):B})},[n,p,s,h,f,d,T,o]);return k.createElement("div",{id:g?"".concat(g):void 0,className:me("recharts-responsive-container",y),style:Cf(Cf({},w),{},{width:o,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:S},E)}),Hp=function(t){return null};Hp.displayName="Cell";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 LO(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?LO(Object(n),!0).forEach(function(r){BQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BQ(e,t,n){return t=IQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IQ(e){var t=UQ(e,"string");return Wu(t)=="symbol"?t:t+""}function UQ(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(t==="string"?String:Number)(e)}var Mo={widthCache:{},cacheCount:0},HQ=2e3,qQ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},zO="recharts_measurement_span";function FQ(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=FQ(n),a=JSON.stringify({text:t,copyStyle:r});if(Mo.widthCache[a])return Mo.widthCache[a];try{var i=document.getElementById(zO);i||(i=document.createElement("span"),i.setAttribute("id",zO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=$g($g({},qQ),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>HQ&&(Mo.cacheCount=0,Mo.widthCache={}),s}catch{return{width:0,height:0}}},GQ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function oh(e,t){return XQ(e)||VQ(e,t)||YQ(e,t)||KQ()}function KQ(){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 YQ(e,t){if(e){if(typeof e=="string")return BO(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 BO(e,t)}}function BO(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){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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function XQ(e){if(Array.isArray(e))return e}function QQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IO(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,ZQ(r.key),r)}}function WQ(e,t,n){return t&&IO(e.prototype,t),n&&IO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZQ(e){var t=JQ(e,"string");return Zu(t)=="symbol"?t:t+""}function JQ(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,eW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,tW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nW=Object.keys(bM),Qo="NaN";function rW(e,t){return e*bM[t]}var Nf=function(){function e(t,n){QQ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!eW.test(n)&&(this.num=NaN,this.unit=""),nW.includes(n)&&(this.num=rW(t,n),this.unit="px")}return WQ(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=tW.exec(n))!==null&&r!==void 0?r:[],i=oh(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function xM(e){if(e.includes(Qo))return Qo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=UO.exec(t))!==null&&n!==void 0?n:[],a=oh(r,4),i=a[1],o=a[2],l=a[3],s=Nf.parse(i??""),u=Nf.parse(l??""),d=o==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Qo;t=t.replace(UO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=HO.exec(t))!==null&&f!==void 0?f:[],p=oh(h,4),b=p[1],m=p[2],g=p[3],y=Nf.parse(b??""),v=Nf.parse(g??""),x=m==="+"?y.add(v):y.subtract(v);if(x.isNaN())return Qo;t=t.replace(HO,x.toString())}return t}var qO=/\(([^()]*)\)/;function aW(e){for(var t=e;t.includes("(");){var n=qO.exec(t),r=oh(n,2),a=r[1];t=t.replace(qO,xM(a))}return t}function iW(e){var t=e.replace(/\s+/g,"");return t=aW(t),t=xM(t),t}function oW(e){try{return iW(e)}catch{return Qo}}function xm(e){var t=oW(e.slice(5,-1));return t===Qo?"":t}var lW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],sW=["dx","dy","angle","className","breakAll"];function Dg(){return Dg=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},Dg.apply(this,arguments)}function FO(e,t){if(e==null)return{};var n=uW(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 uW(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 GO(e,t){return hW(e)||dW(e,t)||fW(e,t)||cW()}function cW(){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 fW(e,t){if(e){if(typeof e=="string")return KO(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 KO(e,t)}}function KO(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 dW(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function hW(e){if(Array.isArray(e))return e}var SM=/[ \f\n\r\t\v\u2028\u2029]+/,wM=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(SM));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}},pW=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,d=V(o),f=l,h=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function(R,z){var B=z.word,q=z.width,G=R[R.length-1];if(G&&(a==null||i||G.width+q+r<Number(a)))G.words.push(B),G.width+=q+r;else{var F={words:[B],width:q};R.push(F)}return R},[])},p=h(n),b=function(P){return P.reduce(function(R,z){return R.width>z.width?R:z})};if(!d)return p;for(var m="…",g=function(P){var R=f.slice(0,P),z=wM({breakAll:u,style:s,children:R+m}).wordsWithComputedWidth,B=h(z),q=B.length>o||b(B).width>Number(a);return[q,B]},y=0,v=f.length-1,x=0,w;y<=v&&x<=f.length-1;){var S=Math.floor((y+v)/2),O=S-1,A=g(O),_=GO(A,2),T=_[0],M=_[1],L=g(S),E=GO(L,1),C=E[0];if(!T&&!C&&(y=S+1),T&&C&&(v=S-1),!T&&C){w=M;break}x++}return w||p},YO=function(t){var n=ve(t)?[]:t.toString().split(SM);return[{words:n}]},yW=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,d=wM({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return YO(a);return pW({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return YO(a)},VO="#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,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,b=t.verticalAnchor,m=b===void 0?"end":b,g=t.fill,y=g===void 0?VO:g,v=FO(t,lW),x=j.useMemo(function(){return yW({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),w=v.dx,S=v.dy,O=v.angle,A=v.className,_=v.breakAll,T=FO(v,sW);if(!wt(r)||!wt(i))return null;var M=r+(V(w)?w:0),L=i+(V(S)?S:0),E;switch(m){case"start":E=xm("calc(".concat(u,")"));break;case"middle":E=xm("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:E=xm("calc(".concat(x.length-1," * -").concat(l,")"));break}var C=[];if(f){var $=x[0].width,P=v.width;C.push("scale(".concat((V(P)?P/$:1)/$,")"))}return O&&C.push("rotate(".concat(O,", ").concat(M,", ").concat(L,")")),C.length&&(T.transform=C.join(" ")),k.createElement("text",Dg({},oe(T,!0),{x:M,y:L,className:me("recharts-text",A),textAnchor:p,fill:y.includes("url")?VO:y}),x.map(function(R,z){var B=R.words.join(_?"":" ");return k.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 mW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Px(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===mW?e:vW,n=e,r=e);function a(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<0?u=f+1:d=f}while(u<d)}return u}function i(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,s,u=0,d=l.length){const f=a(l,s,u,d-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function vW(){return 0}function OM(e){return e===null?NaN:+e}function*gW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const bW=Px(ri),ef=bW.right;Px(OM).center;class XO extends Map{constructor(t,n=wW){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(QO(this,t))}has(t){return super.has(QO(this,t))}set(t,n){return super.set(xW(this,t),n)}delete(t){return super.delete(SW(this,t))}}function QO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function xW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function wW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function OW(e=ri){if(e===ri)return jM;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 jM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jW=Math.sqrt(50),AW=Math.sqrt(10),EW=Math.sqrt(2);function lh(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>=jW?10:i>=AW?5:i>=EW?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?lh(e,t,n*2):[l,s,u]}function kg(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?lh(t,e,n):lh(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 Lg(e,t,n){return t=+t,e=+e,n=+n,lh(e,t,n)[2]}function zg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Lg(t,e,n):Lg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function WO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ZO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function AM(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?jM:OW(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,d=Math.log(s),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+h)),b=Math.min(r,Math.floor(t+(s-u)*f/s+h));AM(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Ks(e,n,t),a(e[r],i)>0&&Ks(e,n,r);o<l;){for(Ks(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Ks(e,n,l):(++l,Ks(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ks(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _W(e,t,n){if(e=Float64Array.from(gW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ZO(e);if(t>=1)return WO(e);var r,a=(r-1)*t,i=Math.floor(a),o=WO(AM(e,i).subarray(0,i+1)),l=ZO(e.subarray(i+1));return o+(l-o)*(a-i)}}function TW(e,t,n=OM){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 CW(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 nr(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 Bg=Symbol("implicit");function Rx(){var e=new XO,t=[],n=[],r=Bg;function a(i){let o=e.get(i);if(o===void 0){if(r!==Bg)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 XO;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 Rx(t,n).unknown(r)},nr.apply(a,arguments),a}function Ju(){var e=Rx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,d=.5;delete e.unknown;function f(){var h=t().length,p=a<r,b=p?a:r,m=p?r:a;i=(m-b)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),b+=(m-b-i*(h-s))*d,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var g=CW(h).map(function(y){return b+i*y});return n(p?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,f()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),f()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),f()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return Ju(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(d)},nr.apply(f(),arguments)}function EM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return EM(t())},e}function wu(){return EM(Ju.apply(null,arguments).paddingInner(1))}function $x(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _M(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tf(){}var ec=.7,sh=1/ec,cl="\\s*([+-]?\\d+)\\s*",tc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NW=/^#([0-9a-f]{3,8})$/,MW=new RegExp(`^rgb\\(${cl},${cl},${cl}\\)$`),PW=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),RW=new RegExp(`^rgba\\(${cl},${cl},${cl},${tc}\\)$`),$W=new RegExp(`^rgba\\(${Er},${Er},${Er},${tc}\\)$`),DW=new RegExp(`^hsl\\(${tc},${Er},${Er}\\)$`),kW=new RegExp(`^hsla\\(${tc},${Er},${Er},${tc}\\)$`),JO={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};$x(tf,nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ej,formatHex:ej,formatHex8:LW,formatHsl:zW,formatRgb:tj,toString:tj});function ej(){return this.rgb().formatHex()}function LW(){return this.rgb().formatHex8()}function zW(){return TM(this).formatHsl()}function tj(){return this.rgb().formatRgb()}function nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nj(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Mf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Mf(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=MW.exec(e))?new cn(t[1],t[2],t[3],1):(t=PW.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=RW.exec(e))?Mf(t[1],t[2],t[3],t[4]):(t=$W.exec(e))?Mf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DW.exec(e))?ij(t[1],t[2]/100,t[3]/100,1):(t=kW.exec(e))?ij(t[1],t[2]/100,t[3]/100,t[4]):JO.hasOwnProperty(e)?nj(JO[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function nj(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Mf(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function BW(e){return e instanceof tf||(e=nc(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Ig(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}$x(cn,Ig,_M(tf,{brighter(e){return e=e==null?sh:Math.pow(sh,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,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),uh(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:rj,formatHex:rj,formatHex8:IW,formatRgb:aj,toString:aj}));function rj(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function IW(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function aj(){const e=uh(this.opacity);return`${e===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${e===1?")":`, ${e})`}`}function uh(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 ij(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ur(e,t,n,r)}function TM(e){if(e instanceof ur)return new ur(e.h,e.s,e.l,e.opacity);if(e instanceof tf||(e=nc(e)),!e)return new ur;if(e instanceof ur)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 ur(o,l,s,e.opacity)}function UW(e,t,n,r){return arguments.length===1?TM(e):new ur(e,t,n,r??1)}function ur(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$x(ur,UW,_M(tf,{brighter(e){return e=e==null?sh:Math.pow(sh,e),new ur(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new ur(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(Sm(e>=240?e-240:e+120,a,r),Sm(e,a,r),Sm(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new ur(oj(this.h),Pf(this.s),Pf(this.l),uh(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=uh(this.opacity);return`${e===1?"hsl(":"hsla("}${oj(this.h)}, ${Pf(this.s)*100}%, ${Pf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oj(e){return e=(e||0)%360,e<0?e+360:e}function Pf(e){return Math.max(0,Math.min(1,e||0))}function Sm(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 Dx=e=>()=>e;function HW(e,t){return function(n){return e+n*t}}function qW(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 FW(e){return(e=+e)==1?CM:function(t,n){return n-t?qW(t,n,e):Dx(isNaN(t)?n:t)}}function CM(e,t){var n=t-e;return n?HW(e,n):Dx(isNaN(e)?t:e)}const lj=function e(t){var n=FW(t);function r(a,i){var o=n((a=Ig(a)).r,(i=Ig(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=CM(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=s(d),a.opacity=u(d),a+""}}return r.gamma=e,r}(1);function GW(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 KW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YW(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 VW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ch(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XW(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 Ug=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wm=new RegExp(Ug.source,"g");function QW(e){return function(){return e}}function WW(e){return function(t){return e(t)+""}}function ZW(e,t){var n=Ug.lastIndex=wm.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Ug.exec(e))&&(a=wm.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:ch(r,a)})),n=wm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?WW(s[0].x):QW(t):(t=s.length,function(u){for(var d=0,f;d<t;++d)l[(f=s[d]).i]=f.x(u);return l.join("")})}function Ms(e,t){var n=typeof t,r;return t==null||n==="boolean"?Dx(t):(n==="number"?ch:n==="string"?(r=nc(t))?(t=r,lj):ZW:t instanceof nc?lj:t instanceof Date?VW:KW(t)?GW:Array.isArray(t)?YW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?XW:ch)(e,t)}function kx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function JW(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 eZ(e){return function(){return e}}function fh(e){return+e}var sj=[0,1];function en(e){return e}function Hg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:eZ(isNaN(t)?NaN:.5)}function tZ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function nZ(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Hg(a,r),i=n(o,i)):(r=Hg(r,a),i=n(i,o)),function(l){return i(r(l))}}function rZ(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]=Hg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=ef(e,l,1,r)-1;return i[s](a[s](l))}}function nf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qp(){var e=sj,t=sj,n=Ms,r,a,i,o=en,l,s,u;function d(){var h=Math.min(e.length,t.length);return o!==en&&(o=tZ(e[0],e[h-1])),l=h>2?rZ:nZ,s=u=null,f}function f(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(a((u||(u=l(t,e.map(r),ch)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,fh),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=kx,d()},f.clamp=function(h){return arguments.length?(o=h?!0:en,d()):o!==en},f.interpolate=function(h){return arguments.length?(n=h,d()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,p){return r=h,a=p,d()}}function Lx(){return qp()(en,en)}function aZ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function dh(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=dh(Math.abs(e)),e?e[1]:NaN}function iZ(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 oZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var lZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rc(e){if(!(t=lZ.exec(e)))throw new Error("invalid format: "+e);var t;return new zx({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]})}rc.prototype=zx.prototype;function zx(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+""}zx.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 sZ(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 hh;function uZ(e,t){var n=dh(e,t);if(!n)return hh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(hh=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")+dh(e,Math.max(0,t+i-1))[0]}function uj(e,t){var n=dh(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 cj={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:aZ,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)=>uj(e*100,t),r:uj,s:uZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fj(e){return e}var dj=Array.prototype.map,hj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cZ(e){var t=e.grouping===void 0||e.thousands===void 0?fj:iZ(dj.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?fj:oZ(dj.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(f,h){f=rc(f);var p=f.fill,b=f.align,m=f.sign,g=f.symbol,y=f.zero,v=f.width,x=f.comma,w=f.precision,S=f.trim,O=f.type;O==="n"?(x=!0,O="g"):cj[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=cj[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 C=A,$=_,P,R,z;if(O==="c")$=T(E)+$,E="";else{E=+E;var B=E<0||1/E<0;if(E=isNaN(E)?s:T(Math.abs(E),w),S&&(E=sZ(E)),B&&+E==0&&m!=="+"&&(B=!1),C=(B?m==="("?m:l:m==="-"||m==="("?"":m)+C,$=(O==="s"&&!isNaN(E)&&hh!==void 0?hj[8+hh/3]:"")+$+(B&&m==="("?")":""),M){for(P=-1,R=E.length;++P<R;)if(z=E.charCodeAt(P),48>z||z>57){$=(z===46?a+E.slice(P+1):E.slice(P))+$,E=E.slice(0,P);break}}}x&&!y&&(E=t(E,1/0));var q=C.length+E.length+$.length,G=q<v?new Array(v-q+1).join(p):"";switch(x&&y&&(E=t(G+E,G.length?v-$.length:1/0),G=""),b){case"<":E=C+E+$+G;break;case"=":E=C+G+E+$;break;case"^":E=G.slice(0,q=G.length>>1)+C+E+$+G.slice(q);break;default:E=G+C+E+$;break}return i(E)}return L.toString=function(){return f+""},L}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(ql(h)/3)))*3,b=Math.pow(10,-p),m=u((f=rc(f),f.type="f",f),{suffix:hj[8+p/3]});return function(g){return m(b*g)}}return{format:u,formatPrefix:d}}var Rf,Bx,NM;fZ({thousands:",",grouping:[3],currency:["$",""]});function fZ(e){return Rf=cZ(e),Bx=Rf.format,NM=Rf.formatPrefix,Rf}function dZ(e){return Math.max(0,-ql(Math.abs(e)))}function hZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ql(t)/3)))*3-ql(Math.abs(e)))}function pZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ql(t)-ql(e))+1}function MM(e,t,n,r){var a=zg(e,t,n),i;switch(r=rc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=hZ(a,o))&&(r.precision=i),NM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=pZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=dZ(a))&&(r.precision=i-(r.type==="%")*2);break}}return Bx(r)}function hi(e){var t=e.domain;return e.ticks=function(n){var r=t();return kg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return MM(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,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=Lg(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 ph(){var e=Lx();return e.copy=function(){return nf(e,ph())},nr.apply(e,arguments),hi(e)}function PM(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,fh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return PM(e).unknown(t)},e=arguments.length?Array.from(e,fh):[0,1],hi(n)}function RM(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 pj(e){return Math.log(e)}function yj(e){return Math.exp(e)}function yZ(e){return-Math.log(-e)}function mZ(e){return-Math.exp(-e)}function vZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gZ(e){return e===10?vZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function bZ(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 mj(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(pj,yj),n=t.domain;let r=10,a,i;function o(){return a=bZ(r),i=gZ(r),n()[0]<0?(a=mj(a),i=mj(i),e(yZ,mZ)):e(pj,yj),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],d=s[s.length-1];const f=d<u;f&&([u,d]=[d,u]);let h=a(u),p=a(d),b,m;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(m=h<0?b/i(-h):b*i(h),!(m<u)){if(m>d)break;y.push(m)}}else for(;h<=p;++h)for(b=r-1;b>=1;--b)if(m=h>0?b/i(-h):b*i(h),!(m<u)){if(m>d)break;y.push(m)}y.length*2<g&&(y=kg(u,d,g))}else y=kg(h,p,Math.min(p-h,g)).map(i);return f?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=rc(s)).precision==null&&(s.trim=!0),s=Bx(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*r<r-.5&&(f*=r),f<=u?s(d):""}},t.nice=()=>n(RM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function $M(){const e=Ix(qp()).domain([1,10]);return e.copy=()=>nf(e,$M()).base(e.base()),nr.apply(e,arguments),e}function vj(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gj(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ux(e){var t=1,n=e(vj(t),gj(t));return n.constant=function(r){return arguments.length?e(vj(t=+r),gj(t)):t},hi(n)}function DM(){var e=Ux(qp());return e.copy=function(){return nf(e,DM()).constant(e.constant())},nr.apply(e,arguments)}function bj(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function SZ(e){return e<0?-e*e:e*e}function Hx(e){var t=e(en,en),n=1;function r(){return n===1?e(en,en):n===.5?e(xZ,SZ):e(bj(n),bj(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},hi(t)}function qx(){var e=Hx(qp());return e.copy=function(){return nf(e,qx()).exponent(e.exponent())},nr.apply(e,arguments),e}function wZ(){return qx.apply(null,arguments).exponent(.5)}function xj(e){return Math.sign(e)*e*e}function OZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function kM(){var e=Lx(),t=[0,1],n=!1,r;function a(i){var o=OZ(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(xj(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,fh)).map(xj)),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 kM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(a,arguments),hi(a)}function LM(){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]=TW(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[ef(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 LM().domain(e).range(t).unknown(r)},nr.apply(i,arguments)}function zM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[ef(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 zM().domain([e,t]).range(a).unknown(i)},nr.apply(hi(o),arguments)}function BM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[ef(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 BM().domain(e).range(t).unknown(n)},nr.apply(a,arguments)}const Om=new Date,jm=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)=>(Om.setTime(+i),jm.setTime(+o),e(Om),e(jm),Math.floor(n(Om,jm))),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 yh=At(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yh.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):yh);yh.range;const Zr=1e3,Vn=Zr*60,Jr=Vn*60,ha=Jr*24,Fx=ha*7,Sj=ha*30,Am=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 Gx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());Gx.range;const Kx=At(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());Kx.range;const Yx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getHours());Yx.range;const Vx=At(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCHours());Vx.range;const rf=At(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/ha,e=>e.getDate()-1);rf.range;const Fp=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>e.getUTCDate()-1);Fp.range;const IM=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));IM.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())*Vn)/Fx)}const Gp=xo(0),mh=xo(1),jZ=xo(2),AZ=xo(3),Fl=xo(4),EZ=xo(5),_Z=xo(6);Gp.range;mh.range;jZ.range;AZ.range;Fl.range;EZ.range;_Z.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)/Fx)}const Kp=So(0),vh=So(1),TZ=So(2),CZ=So(3),Gl=So(4),NZ=So(5),MZ=So(6);Kp.range;vh.range;TZ.range;CZ.range;Gl.range;NZ.range;MZ.range;const Xx=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());Xx.range;const Qx=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());Qx.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 UM(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,Vn],[i,5,5*Vn],[i,15,15*Vn],[i,30,30*Vn],[a,1,Jr],[a,3,3*Jr],[a,6,6*Jr],[a,12,12*Jr],[r,1,ha],[r,2,2*ha],[n,1,Fx],[t,1,Sj],[t,3,3*Sj],[e,1,Am]];function l(u,d,f){const h=d<u;h&&([u,d]=[d,u]);const p=f&&typeof f.range=="function"?f:s(u,d,f),b=p?p.range(u,+d+1):[];return h?b.reverse():b}function s(u,d,f){const h=Math.abs(d-u)/f,p=Px(([,,g])=>g).right(o,h);if(p===o.length)return e.every(zg(u/Am,d/Am,f));if(p===0)return yh.every(Math.max(zg(u,d,f),1));const[b,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return b.every(m)}return[l,s]}const[PZ,RZ]=UM(ya,Qx,Kp,IM,Vx,Kx),[$Z,DZ]=UM(pa,Xx,Gp,rf,Yx,Gx);function Em(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 _m(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 Ys(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function kZ(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=Vs(a),d=Xs(a),f=Vs(i),h=Xs(i),p=Vs(o),b=Xs(o),m=Vs(l),g=Xs(l),y=Vs(s),v=Xs(s),x={a:z,A:B,b:q,B:G,c:null,d:_j,e:_j,f:iJ,g:yJ,G:vJ,H:nJ,I:rJ,j:aJ,L:HM,m:oJ,M:lJ,p:F,q:K,Q:Nj,s:Mj,S:sJ,u:uJ,U:cJ,V:fJ,w:dJ,W:hJ,x:null,X:null,y:pJ,Y:mJ,Z:gJ,"%":Cj},w={a:J,A:ye,b:ke,B:fe,c:null,d:Tj,e:Tj,f:wJ,g:PJ,G:$J,H:bJ,I:xJ,j:SJ,L:FM,m:OJ,M:jJ,p:$t,q:vt,Q:Nj,s:Mj,S:AJ,u:EJ,U:_J,V:TJ,w:CJ,W:NJ,x:null,X:null,y:MJ,Y:RJ,Z:DJ,"%":Cj},S={a:M,A:L,b:E,B:C,c:$,d:Aj,e:Aj,f:ZZ,g:jj,G:Oj,H:Ej,I:Ej,j:VZ,L:WZ,m:YZ,M:XZ,p:T,q:KZ,Q:eJ,s:tJ,S:QZ,u:UZ,U:HZ,V:qZ,w:IZ,W:FZ,x:P,X:R,y:jj,Y:Oj,Z:GZ,"%":JZ};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(Q,se){return function(de){var H=[],Ve=-1,ge=0,Me=Q.length,ee,Le,Dt;for(de instanceof Date||(de=new Date(+de));++Ve<Me;)Q.charCodeAt(Ve)===37&&(H.push(Q.slice(ge,Ve)),(Le=wj[ee=Q.charAt(++Ve)])!=null?ee=Q.charAt(++Ve):Le=ee==="e"?" ":"0",(Dt=se[ee])&&(ee=Dt(de,Le)),H.push(ee),ge=Ve+1);return H.push(Q.slice(ge,Ve)),H.join("")}}function A(Q,se){return function(de){var H=Ys(1900,void 0,1),Ve=_(H,Q,de+="",0),ge,Me;if(Ve!=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=_m(Ys(H.y,0,1)),Me=ge.getUTCDay(),ge=Me>4||Me===0?vh.ceil(ge):vh(ge),ge=Fp.offset(ge,(H.V-1)*7),H.y=ge.getUTCFullYear(),H.m=ge.getUTCMonth(),H.d=ge.getUTCDate()+(H.w+6)%7):(ge=Em(Ys(H.y,0,1)),Me=ge.getDay(),ge=Me>4||Me===0?mh.ceil(ge):mh(ge),ge=rf.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?_m(Ys(H.y,0,1)).getUTCDay():Em(Ys(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,_m(H)):Em(H)}}function _(Q,se,de,H){for(var Ve=0,ge=se.length,Me=de.length,ee,Le;Ve<ge;){if(H>=Me)return-1;if(ee=se.charCodeAt(Ve++),ee===37){if(ee=se.charAt(Ve++),Le=S[ee in wj?se.charAt(Ve++):ee],!Le||(H=Le(Q,de,H))<0)return-1}else if(ee!=de.charCodeAt(H++))return-1}return H}function T(Q,se,de){var H=u.exec(se.slice(de));return H?(Q.p=d.get(H[0].toLowerCase()),de+H[0].length):-1}function M(Q,se,de){var H=p.exec(se.slice(de));return H?(Q.w=b.get(H[0].toLowerCase()),de+H[0].length):-1}function L(Q,se,de){var H=f.exec(se.slice(de));return H?(Q.w=h.get(H[0].toLowerCase()),de+H[0].length):-1}function E(Q,se,de){var H=y.exec(se.slice(de));return H?(Q.m=v.get(H[0].toLowerCase()),de+H[0].length):-1}function C(Q,se,de){var H=m.exec(se.slice(de));return H?(Q.m=g.get(H[0].toLowerCase()),de+H[0].length):-1}function $(Q,se,de){return _(Q,t,se,de)}function P(Q,se,de){return _(Q,n,se,de)}function R(Q,se,de){return _(Q,r,se,de)}function z(Q){return o[Q.getDay()]}function B(Q){return i[Q.getDay()]}function q(Q){return s[Q.getMonth()]}function G(Q){return l[Q.getMonth()]}function F(Q){return a[+(Q.getHours()>=12)]}function K(Q){return 1+~~(Q.getMonth()/3)}function J(Q){return o[Q.getUTCDay()]}function ye(Q){return i[Q.getUTCDay()]}function ke(Q){return s[Q.getUTCMonth()]}function fe(Q){return l[Q.getUTCMonth()]}function $t(Q){return a[+(Q.getUTCHours()>=12)]}function vt(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var se=O(Q+="",x);return se.toString=function(){return Q},se},parse:function(Q){var se=A(Q+="",!1);return se.toString=function(){return Q},se},utcFormat:function(Q){var se=O(Q+="",w);return se.toString=function(){return Q},se},utcParse:function(Q){var se=A(Q+="",!0);return se.toString=function(){return Q},se}}}var wj={"-":"",_:" ",0:"0"},Rt=/^\s*\d+/,LZ=/^%/,zZ=/[\\^$*+?|[\]().{}]/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(zZ,"\\$&")}function Vs(e){return new RegExp("^(?:"+e.map(BZ).join("|")+")","i")}function Xs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function IZ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function UZ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function HZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function qZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Oj(e,t,n){var r=Rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jj(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function GZ(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 KZ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function YZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Aj(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function VZ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ej(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function XZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function QZ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WZ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ZZ(e,t,n){var r=Rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function JZ(e,t,n){var r=LZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eJ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tJ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _j(e,t){return Ee(e.getDate(),t,2)}function nJ(e,t){return Ee(e.getHours(),t,2)}function rJ(e,t){return Ee(e.getHours()%12||12,t,2)}function aJ(e,t){return Ee(1+rf.count(pa(e),e),t,3)}function HM(e,t){return Ee(e.getMilliseconds(),t,3)}function iJ(e,t){return HM(e,t)+"000"}function oJ(e,t){return Ee(e.getMonth()+1,t,2)}function lJ(e,t){return Ee(e.getMinutes(),t,2)}function sJ(e,t){return Ee(e.getSeconds(),t,2)}function uJ(e){var t=e.getDay();return t===0?7:t}function cJ(e,t){return Ee(Gp.count(pa(e)-1,e),t,2)}function qM(e){var t=e.getDay();return t>=4||t===0?Fl(e):Fl.ceil(e)}function fJ(e,t){return e=qM(e),Ee(Fl.count(pa(e),e)+(pa(e).getDay()===4),t,2)}function dJ(e){return e.getDay()}function hJ(e,t){return Ee(mh.count(pa(e)-1,e),t,2)}function pJ(e,t){return Ee(e.getFullYear()%100,t,2)}function yJ(e,t){return e=qM(e),Ee(e.getFullYear()%100,t,2)}function mJ(e,t){return Ee(e.getFullYear()%1e4,t,4)}function vJ(e,t){var n=e.getDay();return e=n>=4||n===0?Fl(e):Fl.ceil(e),Ee(e.getFullYear()%1e4,t,4)}function gJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ee(t/60|0,"0",2)+Ee(t%60,"0",2)}function Tj(e,t){return Ee(e.getUTCDate(),t,2)}function bJ(e,t){return Ee(e.getUTCHours(),t,2)}function xJ(e,t){return Ee(e.getUTCHours()%12||12,t,2)}function SJ(e,t){return Ee(1+Fp.count(ya(e),e),t,3)}function FM(e,t){return Ee(e.getUTCMilliseconds(),t,3)}function wJ(e,t){return FM(e,t)+"000"}function OJ(e,t){return Ee(e.getUTCMonth()+1,t,2)}function jJ(e,t){return Ee(e.getUTCMinutes(),t,2)}function AJ(e,t){return Ee(e.getUTCSeconds(),t,2)}function EJ(e){var t=e.getUTCDay();return t===0?7:t}function _J(e,t){return Ee(Kp.count(ya(e)-1,e),t,2)}function GM(e){var t=e.getUTCDay();return t>=4||t===0?Gl(e):Gl.ceil(e)}function TJ(e,t){return e=GM(e),Ee(Gl.count(ya(e),e)+(ya(e).getUTCDay()===4),t,2)}function CJ(e){return e.getUTCDay()}function NJ(e,t){return Ee(vh.count(ya(e)-1,e),t,2)}function MJ(e,t){return Ee(e.getUTCFullYear()%100,t,2)}function PJ(e,t){return e=GM(e),Ee(e.getUTCFullYear()%100,t,2)}function RJ(e,t){return Ee(e.getUTCFullYear()%1e4,t,4)}function $J(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Gl(e):Gl.ceil(e),Ee(e.getUTCFullYear()%1e4,t,4)}function DJ(){return"+0000"}function Cj(){return"%"}function Nj(e){return+e}function Mj(e){return Math.floor(+e/1e3)}var Po,KM,YM;kJ({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 kJ(e){return Po=kZ(e),KM=Po.format,Po.parse,YM=Po.utcFormat,Po.utcParse,Po}function LJ(e){return new Date(e)}function zJ(e){return e instanceof Date?+e:+new Date(+e)}function Wx(e,t,n,r,a,i,o,l,s,u){var d=Lx(),f=d.invert,h=d.domain,p=u(".%L"),b=u(":%S"),m=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),v=u("%b %d"),x=u("%B"),w=u("%Y");function S(O){return(s(O)<O?p:l(O)<O?b:o(O)<O?m:i(O)<O?g:r(O)<O?a(O)<O?y:v:n(O)<O?x:w)(O)}return d.invert=function(O){return new Date(f(O))},d.domain=function(O){return arguments.length?h(Array.from(O,zJ)):h().map(LJ)},d.ticks=function(O){var A=h();return e(A[0],A[A.length-1],O??10)},d.tickFormat=function(O,A){return A==null?S:u(A)},d.nice=function(O){var A=h();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?h(RM(A,O)):d},d.copy=function(){return nf(d,Wx(e,t,n,r,a,i,o,l,s,u))},d}function BJ(){return nr.apply(Wx($Z,DZ,pa,Xx,Gp,rf,Yx,Gx,Ri,KM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function IJ(){return nr.apply(Wx(PZ,RZ,ya,Qx,Kp,Fp,Vx,Kx,Ri,YM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Yp(){var e=0,t=1,n,r,a,i,o=en,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(a===0?.5:(f=(i(f)-n)*a,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(h){var p,b;return arguments.length?([p,b]=h,o=f(p,b),u):[o(0),o(1)]}}return u.range=d(Ms),u.rangeRound=d(kx),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return i=f,n=f(e),r=f(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 VM(){var e=hi(Yp()(en));return e.copy=function(){return pi(e,VM())},xa.apply(e,arguments)}function XM(){var e=Ix(Yp()).domain([1,10]);return e.copy=function(){return pi(e,XM()).base(e.base())},xa.apply(e,arguments)}function QM(){var e=Ux(Yp());return e.copy=function(){return pi(e,QM()).constant(e.constant())},xa.apply(e,arguments)}function Zx(){var e=Hx(Yp());return e.copy=function(){return pi(e,Zx()).exponent(e.exponent())},xa.apply(e,arguments)}function UJ(){return Zx.apply(null,arguments).exponent(.5)}function WM(){var e=[],t=en;function n(r){if(r!=null&&!isNaN(r=+r))return t((ef(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)=>_W(e,i/r))},n.copy=function(){return WM(t).domain(e)},xa.apply(n,arguments)}function Vp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=en,d,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+d(m))-i)*(r*m<r*i?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,a=d(e=+e),i=d(t=+t),o=d(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(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function b(m){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,u=JW(m,[y,v,x]),p):[u(0),u(.5),u(1)]}}return p.range=b(Ms),p.rangeRound=b(kx),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return d=m,a=m(e),i=m(t),o=m(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function ZM(){var e=hi(Vp()(en));return e.copy=function(){return pi(e,ZM())},xa.apply(e,arguments)}function JM(){var e=Ix(Vp()).domain([.1,1,10]);return e.copy=function(){return pi(e,JM()).base(e.base())},xa.apply(e,arguments)}function eP(){var e=Ux(Vp());return e.copy=function(){return pi(e,eP()).constant(e.constant())},xa.apply(e,arguments)}function Jx(){var e=Hx(Vp());return e.copy=function(){return pi(e,Jx()).exponent(e.exponent())},xa.apply(e,arguments)}function HJ(){return Jx.apply(null,arguments).exponent(.5)}const Pj=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ju,scaleDiverging:ZM,scaleDivergingLog:JM,scaleDivergingPow:Jx,scaleDivergingSqrt:HJ,scaleDivergingSymlog:eP,scaleIdentity:PM,scaleImplicit:Bg,scaleLinear:ph,scaleLog:$M,scaleOrdinal:Rx,scalePoint:wu,scalePow:qx,scaleQuantile:LM,scaleQuantize:zM,scaleRadial:kM,scaleSequential:VM,scaleSequentialLog:XM,scaleSequentialPow:Zx,scaleSequentialQuantile:WM,scaleSequentialSqrt:UJ,scaleSequentialSymlog:QM,scaleSqrt:wZ,scaleSymlog:DM,scaleThreshold:BM,scaleTime:BJ,scaleUtc:IJ,tickFormat:MM},Symbol.toStringTag,{value:"Module"}));var qJ=ws;function FJ(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&&!qJ(o):n(o,l)))var l=o,s=i}return s}var Xp=FJ;function GJ(e,t){return e>t}var tP=GJ,KJ=Xp,YJ=tP,VJ=Cs;function XJ(e){return e&&e.length?KJ(e,VJ,YJ):void 0}var QJ=XJ;const Qp=Ue(QJ);function WJ(e,t){return e<t}var nP=WJ,ZJ=Xp,JJ=nP,eee=Cs;function tee(e){return e&&e.length?ZJ(e,eee,JJ):void 0}var nee=tee;const Wp=Ue(nee);var ree=dx,aee=di,iee=fM,oee=yn;function lee(e,t){var n=oee(e)?ree:iee;return n(e,aee(t))}var see=lee,uee=uM,cee=see;function fee(e,t){return uee(cee(e,t),1)}var dee=fee;const hee=Ue(dee);var pee=Tx;function yee(e,t){return pee(e,t)}var mee=yee;const Zp=Ue(mee);var Ps=1e9,vee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},t1,nt=!0,er="[DecimalError] ",Wi=er+"Invalid argument: ",e1=er+"Exponent out of range: ",Rs=Math.floor,_i=Math.pow,gee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jn,_t=1e7,We=7,rP=9007199254740991,gh=Rs(rP/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(er+"NaN");if(n.s<1)throw Error(er+(n.s?"NaN":"-Infinity"));return n.eq(jn)?new r(0):(nt=!1,t=ia(ac(n,i),ac(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?oP(t,e):aP(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(er+"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 iP(this)};Z.naturalLogarithm=Z.ln=function(){return ac(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?aP(t,e):oP(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(er+"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,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.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,f.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,d=+(e=new s(e));if(!e.s)return new s(jn);if(l=new s(l),!l.s){if(e.s<1)throw Error(er+"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=d<0?-d:d)<=rP){for(a=new s(jn),t=Math.ceil(r/We+4),nt=!1;n%2&&(a=a.times(l),$j(a.d,t)),n=Rs(n/2),n!==0;)l=l.times(l),$j(l.d,t);return nt=!0,e.s<0?new s(jn).div(a):He(a,r)}}else if(i<0)throw Error(er+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,nt=!1,a=e.times(ac(l,r+u)),nt=!0,a=iP(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 aP(e,t){var n,r,a,i,o,l,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),nt?He(t,f):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(f/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,f):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,d,f,h,p,b,m,g,y,v,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(er+"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?v=i=T.precision:o?v=i+(mt(r)-mt(a))+1:v=i,v<0)return new T(0);if(v=v/We+2|0,u=0,A==1)for(d=0,E=E[0],v++;(u<S||d)&&v--;u++)x=d*_t+(L[u]||0),b[u]=x/E|0,d=x%E|0;else{for(d=_t/(E[0]+1)|0,d>1&&(E=e(E,d),L=e(L,d),A=E.length,S=L.length),w=A,m=L.slice(0,A),g=m.length;g<A;)m[g++]=0;_=E.slice(),_.unshift(0),O=E[0],E[1]>=_t/2&&++O;do d=0,l=t(E,m,A,g),l<0?(y=m[0],A!=g&&(y=y*_t+(m[1]||0)),d=y/O|0,d>1?(d>=_t&&(d=_t-1),f=e(E,d),h=f.length,g=m.length,l=t(f,m,h,g),l==1&&(d--,n(f,A<h?_:E,h))):(d==0&&(l=d=1),f=E.slice()),h=f.length,h<g&&f.unshift(0),n(m,f,g),l==-1&&(g=m.length,l=t(E,m,A,g),l<1&&(d++,n(m,A<g?_:E,g))),g=m.length):l===0&&(d++,m=[0]),b[u++]=d,l&&m[0]?m[g++]=L[w]||0:(m=[L[w]],g=1);while((w++<S||m[0]!==void 0)&&v--)}return b[0]||b.shift(),p.e=s,He(p,o?i+mt(p)+1:i)}}();function iP(e,t){var n,r,a,i,o,l,s=0,u=0,d=e.constructor,f=d.precision;if(mt(e)>16)throw Error(e1+mt(e));if(!e.s)return new d(jn);for(nt=!1,l=f,o=new d(.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 d(jn),d.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 d.precision=f,t==null?(nt=!0,He(i,f)):i}i=o}}function mt(e){for(var t=e.e*We,n=e.d[0];n>=10;n/=10)t++;return t}function Tm(e,t,n){if(t>e.LN10.sd())throw nt=!0,n&&(e.precision=n),Error(er+"LN10 precision limit exceeded");return He(new e(e.LN10),t)}function _a(e){for(var t="";e--;)t+="0";return t}function ac(e,t){var n,r,a,i,o,l,s,u,d,f=1,h=10,p=e,b=p.d,m=p.constructor,g=m.precision;if(p.s<1)throw Error(er+(p.s?"NaN":"-Infinity"));if(p.eq(jn))return new m(0);if(t==null?(nt=!1,u=g):u=t,p.eq(10))return t==null&&(nt=!0),Tm(m,u);if(u+=h,m.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),f++;i=mt(p),r>1?(p=new m("0."+n),i++):p=new m(r+"."+n.slice(1))}else return s=Tm(m,u+2,g).times(i+""),p=ac(new m(r+"."+n.slice(1)),u-h).plus(s),m.precision=g,t==null?(nt=!0,He(p,g)):p;for(l=o=p=ia(p.minus(jn),p.plus(jn),u),d=He(p.times(p),u),a=3;;){if(o=He(o.times(d),u),s=l.plus(ia(o,new m(a),u)),jr(s.d).slice(0,u)===jr(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(Tm(m,u+2,g).times(i+""))),l=ia(l,new m(f),u),m.precision=g,t==null?(nt=!0,He(l,g)):l;l=s,a+=2}}function Rj(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>gh||e.e<-gh))throw Error(e1+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,d,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=We,a=t,u=f[d=0];else{if(d=Math.ceil((r+1)/We),i=f.length,d>=i)return e;for(u=i=f[d],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||f[d+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:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(i=mt(e),f.length=1,t=t-i-1,f[0]=_i(10,(We-t%We)%We),e.e=Rs(-t/We)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,i=1,d--):(f.length=d+1,i=_i(10,We-r),f[d]=a>0?(u/_i(10,o-a)%_i(10,a)|0)*i:0),s)for(;;)if(d==0){(f[0]+=i)==_t&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=_t)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(nt&&(e.e>gh||e.e<-gh))throw Error(e1+mt(e));return e}function oP(e,t){var n,r,a,i,o,l,s,u,d,f,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,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(d=o<0,d?(n=s,o=-o,l=f.length):(n=f,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=f.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(s[a]!=f[a]){d=s[a]<f[a];break}o=0}for(d&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,a=f.length-l;a>0;--a)s[l++]=0;for(a=f.length;a>o;){if(s[--a]<f[a]){for(i=a;i&&s[--i]===0;)s[i]=_t-1;--s[i],s[a]+=_t}s[a]-=f[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 $j(e,t){if(e.length>t)return e.length=t,!0}function lP(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 Rj(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,gee.test(i))Rj(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=lP,a.config=a.set=bee,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 bee(e){if(!e||typeof e!="object")throw Error(er+"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 t1=lP(vee);jn=new t1(1);const Be=t1;function xee(e){return jee(e)||Oee(e)||wee(e)||See()}function See(){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 wee(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 Oee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function jee(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 Aee=function(t){return t},sP={},uP=function(t){return t===sP},Dj=function(t){return function n(){return arguments.length===0||arguments.length===1&&uP(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Eee=function e(t,n){return t===1?n:Dj(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!==sP}).length;return o>=t?n.apply(void 0,a):e(t-o,Dj(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var d=a.map(function(f){return uP(f)?s.shift():f});return n.apply(void 0,xee(d).concat(s))}))})},Jp=function(t){return Eee(t.length,t)},Fg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},_ee=Jp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Tee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Aee;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))}},Gg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cP=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 Cee(e){var t;return e===0?t=1:t=Math.floor(new Be(e).abs().log(10).toNumber())+1,t}function Nee(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 Mee=Jp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),Pee=Jp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Ree=Jp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const ey={rangeStep:Nee,getDigitCount:Cee,interpolateNumber:Mee,uninterpolateNumber:Pee,uninterpolateTruncation:Ree};function Kg(e){return kee(e)||Dee(e)||fP(e)||$ee()}function $ee(){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 Dee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kee(e){if(Array.isArray(e))return Yg(e)}function ic(e,t){return Bee(e)||zee(e,t)||fP(e,t)||Lee()}function Lee(){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 fP(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function Yg(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 zee(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 dP(e){var t=ic(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function hP(e,t,n){if(e.lte(0))return new Be(0);var r=ey.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 Iee(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(ey.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=Tee(_ee(function(s){return a.add(new Be(s-o).mul(r)).toNumber()}),Fg);return l(0,t)}function pP(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=hP(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?pP(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 Uee(e){var t=ic(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=dP([n,r]),s=ic(l,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Kg(Fg(0,a-1).map(function(){return 1/0}))):[].concat(Kg(Fg(0,a-1).map(function(){return-1/0})),[d]);return n>r?Gg(f):f}if(u===d)return Iee(u,a,i);var h=pP(u,d,o,i),p=h.step,b=h.tickMin,m=h.tickMax,g=ey.rangeStep(b,m.add(new Be(.1).mul(p)),p);return n>r?Gg(g):g}function Hee(e,t){var n=ic(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=dP([r,a]),l=ic(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var d=Math.max(t,2),f=hP(new Be(u).sub(s).div(d-1),i,0),h=[].concat(Kg(ey.rangeStep(new Be(s),new Be(u).sub(new Be(.99).mul(f)),f)),[u]);return r>a?Gg(h):h}var qee=cP(Uee),Fee=cP(Hee),Gee="Invariant failed";function co(e,t){throw new Error(Gee)}var Kee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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)}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 Yee(e,t){return Wee(e)||Qee(e,t)||Xee(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 Xee(e,t){if(e){if(typeof e=="string")return kj(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 kj(e,t)}}function kj(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 Qee(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Wee(e){if(Array.isArray(e))return e}function Zee(e,t){if(e==null)return{};var n=Jee(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 Jee(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 ete(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tte(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 nte(e,t,n){return t&&tte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rte(e,t,n){return t=xh(t),ate(e,yP()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}function ate(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 ite(e)}function ite(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yP=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xh(e)}function ote(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&&Vg(e,t)}function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Vg(e,t)}function mP(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=lte(e,"string");return Kl(t)=="symbol"?t:t+""}function lte(e,t){if(Kl(e)!="object"||!e)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 String(e)}var ty=function(e){function t(){return ete(this,t),rte(this,t,arguments)}return ote(t,e),nte(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,d=r.xAxis,f=r.yAxis,h=Zee(r,Kee),p=oe(h,!1);this.props.direction==="x"&&d.type!=="number"&&co();var b=s.map(function(m){var g=u(m,l),y=g.x,v=g.y,x=g.value,w=g.errorVal;if(!w)return null;var S=[],O,A;if(Array.isArray(w)){var _=Yee(w,2);O=_[0],A=_[1]}else O=A=w;if(i==="vertical"){var T=d.scale,M=v+a,L=M+o,E=M-o,C=T(x-O),$=T(x+A);S.push({x1:$,y1:L,x2:$,y2:E}),S.push({x1:C,y1:M,x2:$,y2:M}),S.push({x1:C,y1:L,x2:C,y2:E})}else if(i==="horizontal"){var P=f.scale,R=y+a,z=R-o,B=R+o,q=P(x-O),G=P(x+A);S.push({x1:z,y1:G,x2:B,y2:G}),S.push({x1:R,y1:q,x2:R,y2:G}),S.push({x1:z,y1:q,x2:B,y2:q})}return k.createElement($e,bh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(F){return"".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))},p),S.map(function(F){return k.createElement("line",bh({},F,{key:"line-".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))}))});return k.createElement($e,{className:"recharts-errorBars"},b)}}])}(k.Component);mP(ty,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});mP(ty,"displayName","ErrorBar");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 Lj(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?Lj(Object(n),!0).forEach(function(r){ste(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ste(e,t,n){return t=ute(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ute(e){var t=cte(e,"string");return oc(t)=="symbol"?t:t+""}function cte(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)}var gP=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(d,f){var h=f.item,p=f.props,b=p.sectors||p.data||[];return d.concat(b.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?gi(gi({},h),f.props):{},b=p.dataKey,m=p.name,g=p.legendType,y=p.hide;return{inactive:y,dataKey:b,type:s.iconType||g||"square",color:n1(f),value:m||b,payload:p}}),gi(gi(gi({},s),ul.getWithHeight(o,a)),{},{payload:u,item:o})};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 zj(e){return pte(e)||hte(e)||dte(e)||fte()}function fte(){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 dte(e,t){if(e){if(typeof e=="string")return Xg(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 Xg(e,t)}}function hte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pte(e){if(Array.isArray(e))return Xg(e)}function Xg(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 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 ot(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){fl(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 fl(e,t,n){return t=yte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yte(e){var t=mte(e,"string");return lc(t)=="symbol"?t:t+""}function mte(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 Kt(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=hee(e,function(l){return Kt(l,t)});if(n==="number"){var i=a.filter(function(l){return V(l)||parseFloat(l)});return i.length?[Wp(i),Qp(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 vte=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 d=u>0?a[u-1].coordinate:a[l-1].coordinate,f=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Zt(f-d)!==Zt(h-f)){var b=[];if(Zt(h-f)===Zt(s[1]-s[0])){p=h;var m=f+s[1]-s[0];b[0]=Math.min(m,(m+d)/2),b[1]=Math.max(m,(m+d)/2)}else{p=d;var g=h+s[1]-s[0];b[0]=Math.min(f,(g+f)/2),b[1]=Math.max(f,(g+f)/2)}var y=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){o=a[u].index;break}}else{var v=Math.min(d,h),x=Math.max(d,h);if(t>(v+f)/2&&t<=(x+f)/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},n1=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},gte=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 d=i[l[s]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var b=d[f[h]],m=b.items,g=b.cateAxisId,y=m.filter(function(A){return ra(A.type).indexOf("Bar")>=0});if(y&&y.length){var v=y[0].type.defaultProps,x=v!==void 0?ot(ot({},v),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},bte=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),d,f=[];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 m=(a-b)/2>>0,g={offset:m-u,size:0};d=o.reduce(function(w,S){var O={item:S.item,position:{offset:g.offset+g.size+u,size:h?p:S.barSize}},A=[].concat(zj(w),[O]);return g=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:g})}),A},f)}else{var y=Jt(r,a,0,!0);a-2*y-(s-1)*u<=0&&(u=0);var v=(a-2*y-(s-1)*u)/s;v>1&&(v>>=0);var x=l===+l?Math.min(v,l):v;d=o.reduce(function(w,S,O){var A=[].concat(zj(w),[{item:S.item,position:{offset:y+(v+u)*O+(v-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},f)}return d},xte=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=gP({children:i,legendWidth:s});if(u){var d=a||{},f=d.width,h=d.height,p=u.align,b=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&b==="middle")&&p!=="center"&&V(t[p]))return ot(ot({},t),{},fl({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&b!=="middle"&&V(t[b]))return ot(ot({},t),{},fl({},b,t[b]+(h||0)))}return t},Ste=function(t,n,r){return ve(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},bP=function(t,n,r,a,i){var o=n.props.children,l=Zn(o,ty).filter(function(u){return Ste(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=Kt(d,r);if(ve(f))return u;var h=Array.isArray(f)?[Wp(f),Qp(f)]:[f,f],p=s.reduce(function(b,m){var g=Kt(d,m,0),y=h[0]-Math.abs(Array.isArray(g)?g[0]:g),v=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,b[0]),Math.max(v,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},wte=function(t,n,r,a,i){var o=n.map(function(l){return bP(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},xP=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&bP(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 d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,s.push(u[d]));return s},[])},SP=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 d=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:a(h)+u,value:f,offset:u}});return d.filter(function(f){return!Zc(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:a(f)+u,value:f,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,h){return{coordinate:a(f)+u,value:i?i[f]:f,index:h,offset:u}})},Cm=new WeakMap,$f=function(t,n){if(typeof n!="function")return t;Cm.has(t)||Cm.set(t,new WeakMap);var r=Cm.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},wP=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:Ju(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ph(),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:Ju(),realScaleType:"band"}:{scale:ph(),realScaleType:"linear"};if(oo(a)){var s="scale".concat(Dp(a));return{scale:(Pj[s]||wu)(),realScaleType:Pj[s]?s:"point"}}return ue(a)?{scale:a}:{scale:wu(),realScaleType:"point"}},Ij=1e-4,OP=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])-Ij,o=Math.max(a[0],a[1])+Ij,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},Ote=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},jte=function(t,n){if(!n||n.length!==2||!V(n[0])||!V(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(!V(t[0])||t[0]<r)&&(i[0]=r),(!V(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Ate=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=Zc(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])}},Ete=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=Zc(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)}},_te={sign:Ate,expand:G9,none:zl,silhouette:K9,wiggle:Y9,positive:Ete},Tte=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=_te[r],o=F9().keys(a).value(function(l,s){return+Kt(l,s,0)}).order(xg).offset(i);return o(t)},Cte=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,h){var p,b=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ot(ot({},h.type.defaultProps),h.props):h.props,m=b.stackId,g=b.hide;if(g)return f;var y=b[r],v=f[y]||{hasStack:!1,stackGroups:{}};if(wt(m)){var x=v.stackGroups[m]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),v.hasStack=!0,v.stackGroups[m]=x}else v.stackGroups[Jc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ot(ot({},f),{},fl({},y,v))},s),d={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var b={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,g){var y=p.stackGroups[g];return ot(ot({},m),{},fl({},g,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:Tte(t,y.items,i)}))},b)}return ot(ot({},f),{},fl({},h,p))},d)},jP=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 d=qee(u,i,l);return t.domain([Wp(d),Qp(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=Fee(f,i,l);return{niceTicks:h}}return null},Uj=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=Kt(o,n.dataKey,n.domain[l]);return ve(s)?null:n.scale(s)-i/2+a},Nte=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]},Mte=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},Pte=function(t){return t.reduce(function(n,r){return[Wp(r.concat([n[0]]).filter(V)),Qp(r.concat([n[1]]).filter(V))]},[1/0,-1/0])},AP=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,d){var f=Pte(d.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[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})},Hj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qj=/^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(V(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Hj.test(t[0])){var i=+Hj.exec(t[0])[1];a[0]=n[0]-i}else ue(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(V(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(qj.test(t[1])){var o=+qj.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},Sh=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=Nx(n,function(f){return f.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Fj=function(t,n,r){return!t||!t.length||Zp(t,Nn(r,"type.defaultProps.domain"))?n:t},EP=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,d=r.hide;return ot(ot({},oe(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:n1(t),value:Kt(n,a),type:s,payload:n,chartType:u,hide:d})};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 Gj(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?Gj(Object(n),!0).forEach(function(r){_P(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _P(e,t,n){return t=Rte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rte(e){var t=$te(e,"string");return sc(t)=="symbol"?t:t+""}function $te(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 Dte(e,t){return Bte(e)||zte(e,t)||Lte(e,t)||kte()}function kte(){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 Lte(e,t){if(e){if(typeof e=="string")return Kj(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 Kj(e,t)}}function Kj(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 zte(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(d){u=!0,a=d}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 wh=Math.PI/180,Ite=function(t){return t*180/Math.PI},Ye=function(t,n,r,a){return{x:t+Math.cos(-wh*a)*r,y:n+Math.sin(-wh*a)*r}},TP=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},Ute=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,d=Jt(t.cx,o,o/2),f=Jt(t.cy,l,l/2),h=TP(o,l,r),p=Jt(t.innerRadius,h,0),b=Jt(t.outerRadius,h,h*.8),m=Object.keys(n);return m.reduce(function(g,y){var v=n[y],x=v.domain,w=v.reversed,S;if(ve(v.range))a==="angleAxis"?S=[s,u]:a==="radiusAxis"&&(S=[p,b]),w&&(S=[S[1],S[0]]);else{S=v.range;var O=S,A=Dte(O,2);s=A[0],u=A[1]}var _=wP(v,i),T=_.realScaleType,M=_.scale;M.domain(x).range(S),OP(M);var L=jP(M,Hr(Hr({},v),{},{realScaleType:T})),E=Hr(Hr(Hr({},v),L),{},{range:S,radius:b,realScaleType:T,scale:M,cx:d,cy:f,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return Hr(Hr({},g),{},_P({},y,E))},{})},Hte=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))},qte=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=Hte({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:Ite(u),angleInRadian:u}},Fte=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}},Gte=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},Yj=function(t,n){var r=t.x,a=t.y,i=qte({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 d=Fte(n),f=d.startAngle,h=d.endAngle,p=l,b;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;b=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;b=p>=h&&p<=f}return b?Hr(Hr({},n),{},{radius:o,angle:Gte(p,n)}):null},CP=function(t){return!j.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}var Kte=["offset"];function Yte(e){return Wte(e)||Qte(e)||Xte(e)||Vte()}function Vte(){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 Xte(e,t){if(e){if(typeof e=="string")return Wg(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 Wg(e,t)}}function Qte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wte(e){if(Array.isArray(e))return Wg(e)}function Wg(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 Zte(e,t){if(e==null)return{};var n=Jte(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 Jte(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 Vj(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?Vj(Object(n),!0).forEach(function(r){ene(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ene(e,t,n){return t=tne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tne(e){var t=nne(e,"string");return uc(t)=="symbol"?t:t+""}function nne(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cc(){return cc=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},cc.apply(this,arguments)}var rne=function(t){var n=t.value,r=t.formatter,a=ve(t.children)?n:t.children;return ue(r)?r(a):a},ane=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},ine=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,d=s.cy,f=s.innerRadius,h=s.outerRadius,p=s.startAngle,b=s.endAngle,m=s.clockWise,g=(f+h)/2,y=ane(p,b),v=y>=0?1:-1,x,w;a==="insideStart"?(x=p+v*o,w=m):a==="insideEnd"?(x=b-v*o,w=!m):a==="end"&&(x=b+v*o,w=m),w=y<=0?w:!w;var S=Ye(u,d,g,x),O=Ye(u,d,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)?Jc("recharts-radial-line-"):t.id;return k.createElement("text",cc({},r,{dominantBaseline:"central",className:me("recharts-radial-bar-label",l)}),k.createElement("defs",null,k.createElement("path",{id:_,d:A})),k.createElement("textPath",{xlinkHref:"#".concat(_)},n))},one=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,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var p=Ye(o,l,u+r,h),b=p.x,m=p.y;return{x:b,y:m,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=Ye(o,l,g,h),v=y.x,x=y.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},lne=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,d=o.height,f=d>=0?1:-1,h=f*a,p=f>0?"end":"start",b=f>0?"start":"end",m=u>=0?1:-1,g=m*a,y=m>0?"end":"start",v=m>0?"start":"end";if(i==="top"){var x={x:l+u/2,y:s-f*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+d+h,textAnchor:"middle",verticalAnchor:b};return bt(bt({},w),r?{height:Math.max(r.y+r.height-(s+d),0),width:u}:{})}if(i==="left"){var S={x:l-g,y:s+d/2,textAnchor:y,verticalAnchor:"middle"};return bt(bt({},S),r?{width:Math.max(S.x-r.x,0),height:d}:{})}if(i==="right"){var O={x:l+u+g,y:s+d/2,textAnchor:v,verticalAnchor:"middle"};return bt(bt({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:d}:{})}var A=r?{width:u,height:d}:{};return i==="insideLeft"?bt({x:l+g,y:s+d/2,textAnchor:v,verticalAnchor:"middle"},A):i==="insideRight"?bt({x:l+u-g,y:s+d/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+d-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?bt({x:l+g,y:s+h,textAnchor:v,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+d-h,textAnchor:v,verticalAnchor:p},A):i==="insideBottomRight"?bt({x:l+u-g,y:s+d-h,textAnchor:y,verticalAnchor:p},A):Os(i)&&(V(i.x)||Mi(i.x))&&(V(i.y)||Mi(i.y))?bt({x:l+Jt(i.x,u),y:s+Jt(i.y,d),textAnchor:"end",verticalAnchor:"end"},A):bt({x:l+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},A)},sne=function(t){return"cx"in t&&V(t.cx)};function Nt(e){var t=e.offset,n=t===void 0?5:t,r=Zte(e,Kte),a=bt({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,d=a.className,f=d===void 0?"":d,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=rne(a);var b=sne(i),m=oe(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return ine(a,p,m);var g=b?one(a):lne(a);return k.createElement(so,cc({className:me("recharts-label",f)},m,g,{breakAll:h}),p)}Nt.displayName="Label";var NP=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,d=t.outerRadius,f=t.x,h=t.y,p=t.top,b=t.left,m=t.width,g=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(V(m)&&V(g)){if(V(f)&&V(h))return{x:f,y:h,width:m,height:g};if(V(p)&&V(b))return{x:p,y:b,width:m,height:g}}return V(f)&&V(h)?{x:f,y:h,width:0,height:0}:V(n)&&V(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||s||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},une=function(t,n){return t?t===!0?k.createElement(Nt,{key:"label-implicit",viewBox:n}):wt(t)?k.createElement(Nt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Nt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):k.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):ue(t)?k.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):Os(t)?k.createElement(Nt,cc({viewBox:n},t,{key:"label-implicit"})):null:null},cne=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=NP(t),o=Zn(a,Nt).map(function(s,u){return j.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=une(t.label,n||i);return[l].concat(Yte(o))};Nt.parseViewBox=NP;Nt.renderCallByParent=cne;function fne(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var dne=fne;const hne=Ue(dne);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)}var pne=["valueAccessor"],yne=["data","dataKey","clockWise","id","textBreakAll"];function mne(e){return xne(e)||bne(e)||gne(e)||vne()}function vne(){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 gne(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 bne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xne(e){if(Array.isArray(e))return Zg(e)}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 Oh(){return Oh=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},Oh.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 Qj(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){Sne(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 Sne(e,t,n){return t=wne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wne(e){var t=One(e,"string");return fc(t)=="symbol"?t:t+""}function One(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)}function Wj(e,t){if(e==null)return{};var n=jne(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 jne(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 Ane=function(t){return Array.isArray(t.value)?hne(t.value):t.value};function ai(e){var t=e.valueAccessor,n=t===void 0?Ane:t,r=Wj(e,pne),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Wj(r,yne);return!a||!a.length?null:k.createElement($e,{className:"recharts-label-list"},a.map(function(d,f){var h=ve(i)?n(d,f):Kt(d&&d.payload,i),p=ve(l)?{}:{id:"".concat(l,"-").concat(f)};return k.createElement(Nt,Oh({},oe(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:Nt.parseViewBox(ve(o)?d:Qj(Qj({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ai.displayName="LabelList";function Ene(e,t){return e?e===!0?k.createElement(ai,{key:"labelList-implicit",data:t}):k.isValidElement(e)||ue(e)?k.createElement(ai,{key:"labelList-implicit",data:t,content:e}):Os(e)?k.createElement(ai,Oh({data:t},e,{key:"labelList-implicit"})):null:null}function _ne(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=Zn(r,ai).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=Ene(e.label,t);return[i].concat(mne(a))}ai.renderCallByParent=_ne;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 Jg(){return Jg=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},Jg.apply(this,arguments)}function Zj(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 Jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zj(Object(n),!0).forEach(function(r){Tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tne(e,t,n){return t=Cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cne(e){var t=Nne(e,"string");return dc(t)=="symbol"?t:t+""}function Nne(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 Mne=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Df=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,d=s*(l?1:-1)+a,f=Math.asin(s/d)/wh,h=u?i:i+o*f,p=Ye(n,r,d,h),b=Ye(n,r,a,h),m=u?i-o*f:i,g=Ye(n,r,d*Math.cos(f*wh),m);return{center:p,circleTangency:b,lineTangency:g,theta:f}},MP=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=Mne(o,l),u=o+s,d=Ye(n,r,i,o),f=Ye(n,r,i,u),h="M ".concat(d.x,",").concat(d.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(a>0){var p=Ye(n,r,a,o),b=Ye(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},Pne=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,d=t.endAngle,f=Zt(d-u),h=Df({cx:n,cy:r,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,m=h.theta,g=Df({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,x=g.theta,w=s?Math.abs(u-d):Math.abs(u-d)-m-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
      `):MP({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var S="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
  `);if(a>0){var O=Df({cx:n,cy:r,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=O.circleTangency,_=O.lineTangency,T=O.theta,M=Df({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),L=M.circleTangency,E=M.lineTangency,C=M.theta,$=s?Math.abs(u-d):Math.abs(u-d)-T-C;if($<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(+(f<0),",").concat(L.x,",").concat(L.y,`
      A`).concat(a,",").concat(a,",0,").concat(+($>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},Rne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},PP=function(t){var n=Jj(Jj({},Rne),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,h=n.className;if(o<i||d===f)return null;var p=me("recharts-sector",h),b=o-i,m=Jt(l,b,0,!0),g;return m>0&&Math.abs(d-f)<360?g=Pne({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):g=MP({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),k.createElement("path",Jg({},oe(n,!0),{className:p,d:g,role:"img"}))};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 e0(){return e0=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},e0.apply(this,arguments)}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 t2(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){$ne(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 $ne(e,t,n){return t=Dne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dne(e){var t=kne(e,"string");return hc(t)=="symbol"?t:t+""}function kne(e,t){if(hc(e)!="object"||!e)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 n2={curveBasisClosed:R9,curveBasisOpen:$9,curveBasis:P9,curveBumpX:g9,curveBumpY:b9,curveLinearClosed:D9,curveLinear:Lp,curveMonotoneX:k9,curveMonotoneY:L9,curveNatural:z9,curveStep:B9,curveStepAfter:U9,curveStepBefore:I9},kf=function(t){return t.x===+t.x&&t.y===+t.y},Qs=function(t){return t.x},Ws=function(t){return t.y},Lne=function(t,n){if(ue(t))return t;var r="curve".concat(Dp(t));return(r==="curveMonotone"||r==="curveBump")&&n?n2["".concat(r).concat(n==="vertical"?"Y":"X")]:n2[r]||Lp},zne=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,d=Lne(r,l),f=u?i.filter(function(m){return kf(m)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return kf(m)}):o,b=f.map(function(m,g){return t2(t2({},m),{},{base:p[g]})});return l==="vertical"?h=Ef().y(Ws).x1(Qs).x0(function(m){return m.base.x}):h=Ef().x(Qs).y1(Ws).y0(function(m){return m.base.y}),h.defined(kf).curve(d),h(b)}return l==="vertical"&&V(o)?h=Ef().y(Ws).x1(Qs).x0(o):V(o)?h=Ef().x(Qs).y1(Ws).y0(o):h=CN().x(Qs).y(Ws),h.defined(kf).curve(d),h(f)},t0=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?zne(t):a;return j.createElement("path",e0({},oe(t,!1),Yd(t),{className:me("recharts-curve",n),d:o,ref:i}))},RP={exports:{}},Bne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ine=Bne,Une=Ine;function $P(){}function DP(){}DP.resetWarningCache=$P;var Hne=function(){function e(r,a,i,o,l,s){if(s!==Une){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:DP,resetWarningCache:$P};return n.PropTypes=n,n};RP.exports=Hne();var qne=RP.exports;const Ce=Ue(qne),{getOwnPropertyNames:Fne,getOwnPropertySymbols:Gne}=Object,{hasOwnProperty:Kne}=Object.prototype;function Nm(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Lf(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 Yne(e){return e!=null?e[Symbol.toStringTag]:void 0}function r2(e){return Fne(e).concat(Gne(e))}const Vne=Object.hasOwn||((e,t)=>Kne.call(e,t));function wo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Xne="__v",Qne="__o",Wne="_owner",{getOwnPropertyDescriptor:a2,keys:i2}=Object;function Zne(e,t){return e.byteLength===t.byteLength&&jh(new Uint8Array(e),new Uint8Array(t))}function Jne(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 ere(e,t){return e.byteLength===t.byteLength&&jh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function tre(e,t){return wo(e.getTime(),t.getTime())}function nre(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rre(e,t){return e===t}function o2(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 d=!1,f=0;for(;(l=u.next())&&!l.done;){if(a[f]){f++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,f,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){d=a[f]=!0;break}f++}if(!d)return!1;s++}return!0}const are=wo;function ire(e,t,n){const r=i2(e);let a=r.length;if(i2(t).length!==a)return!1;for(;a-- >0;)if(!kP(e,t,n,r[a]))return!1;return!0}function Zs(e,t,n){const r=r2(e);let a=r.length;if(r2(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!kP(e,t,n,i)||(o=a2(e,i),l=a2(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function ore(e,t){return wo(e.valueOf(),t.valueOf())}function lre(e,t){return e.source===t.source&&e.flags===t.flags}function l2(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,d=0;for(;(l=s.next())&&!l.done;){if(!a[d]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function jh(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 sre(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 kP(e,t,n,r){return(r===Wne||r===Qne||r===Xne)&&(e.$$typeof||t.$$typeof)?!0:Vne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const ure="[object ArrayBuffer]",cre="[object Arguments]",fre="[object Boolean]",dre="[object DataView]",hre="[object Date]",pre="[object Error]",yre="[object Map]",mre="[object Number]",vre="[object Object]",gre="[object RegExp]",bre="[object Set]",xre="[object String]",Sre={"[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},wre="[object URL]",Ore=Object.prototype.toString;function jre({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:b}){return function(g,y,v){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,v):x==="function"?i(g,y,v):!1;const w=g.constructor;if(w!==y.constructor)return!1;if(w===Object)return s(g,y,v);if(Array.isArray(g))return t(g,y,v);if(w===Date)return r(g,y,v);if(w===RegExp)return d(g,y,v);if(w===Map)return o(g,y,v);if(w===Set)return f(g,y,v);const S=Ore.call(g);if(S===hre)return r(g,y,v);if(S===gre)return d(g,y,v);if(S===yre)return o(g,y,v);if(S===bre)return f(g,y,v);if(S===vre)return typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,v);if(S===wre)return p(g,y,v);if(S===pre)return a(g,y,v);if(S===cre)return s(g,y,v);if(Sre[S])return h(g,y,v);if(S===ure)return e(g,y,v);if(S===dre)return n(g,y,v);if(S===fre||S===mre||S===xre)return u(g,y,v);if(b){let O=b[S];if(!O){const A=Yne(g);A&&(O=b[A])}if(O)return O(g,y,v)}return!1}}function Are({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Zne,areArraysEqual:n?Zs:Jne,areDataViewsEqual:ere,areDatesEqual:tre,areErrorsEqual:nre,areFunctionsEqual:rre,areMapsEqual:n?Nm(o2,Zs):o2,areNumbersEqual:are,areObjectsEqual:n?Zs:ire,arePrimitiveWrappersEqual:ore,areRegExpsEqual:lre,areSetsEqual:n?Nm(l2,Zs):l2,areTypedArraysEqual:n?Nm(jh,Zs):jh,areUrlsEqual:sre,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Lf(r.areArraysEqual),i=Lf(r.areMapsEqual),o=Lf(r.areObjectsEqual),l=Lf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function Ere(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function _re({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:d}=n();return t(l,s,{cache:u,equals:r,meta:d,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 Tre=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=Are(e),o=jre(i),l=n?n(o):Ere(o);return _re({circular:t,comparator:o,createState:r,equals:l,strict:a})}function Cre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function s2(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):Cre(a)};requestAnimationFrame(r)}function n0(e){"@babel/helpers - typeof";return n0=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},n0(e)}function Nre(e){return $re(e)||Rre(e)||Pre(e)||Mre()}function Mre(){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 Pre(e,t){if(e){if(typeof e=="string")return u2(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 u2(e,t)}}function u2(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 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 e}function Dre(){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=Nre(o),s=l[0],u=l.slice(1);if(typeof s=="number"){s2(a.bind(null,u),s);return}a(s),s2(a.bind(null,u));return}n0(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 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 c2(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 f2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(n),!0).forEach(function(r){LP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LP(e,t,n){return t=kre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kre(e){var t=Lre(e,"string");return pc(t)==="symbol"?t:String(t)}function Lre(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)}var zre=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},Ire=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 f2(f2({},r),{},LP({},a,t(a,n[a])))},{})},d2=function(t,n,r){return t.map(function(a){return"".concat(Ire(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Ure(e,t){return Fre(e)||qre(e,t)||zP(e,t)||Hre()}function Hre(){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 qre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Fre(e){if(Array.isArray(e))return e}function Gre(e){return Vre(e)||Yre(e)||zP(e)||Kre()}function Kre(){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 zP(e,t){if(e){if(typeof e=="string")return r0(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 r0(e,t)}}function Yre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vre(e){if(Array.isArray(e))return r0(e)}function r0(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 Ah=1e-4,BP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},IP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},h2=function(t,n){return function(r){var a=BP(t,n);return IP(a,r)}},Xre=function(t,n){return function(r){var a=BP(t,n),i=[].concat(Gre(a.map(function(o,l){return o*l}).slice(1)),[0]);return IP(i,r)}},p2=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)}),d=Ure(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=h2(a,o),h=h2(i,l),p=Xre(a,o),b=function(y){return y>1?1:y<0?0:y},m=function(y){for(var v=y>1?1:y,x=v,w=0;w<8;++w){var S=f(x)-v,O=p(x);if(Math.abs(S-v)<Ah||O<Ah)return h(x);x=b(x-S/O)}return h(x)};return m.isStepper=!1,m},Qre=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(d,f,h){var p=-(d-f)*r,b=h*i,m=h+(p-b)*l/1e3,g=h*l/1e3+d;return Math.abs(g-f)<Ah&&Math.abs(m)<Ah?[f,0]:[g,m]};return s.isStepper=!0,s.dt=l,s},Wre=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 p2(a);case"spring":return Qre();default:if(a.split("(")[0]==="cubic-bezier")return p2(a)}return typeof a=="function"?a:null};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 y2(e){return eae(e)||Jre(e)||UP(e)||Zre()}function Zre(){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 Jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eae(e){if(Array.isArray(e))return i0(e)}function m2(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 kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(n),!0).forEach(function(r){a0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a0(e,t,n){return t=tae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tae(e){var t=nae(e,"string");return yc(t)==="symbol"?t:String(t)}function nae(e,t){if(yc(e)!=="object"||e===null)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)}function rae(e,t){return oae(e)||iae(e,t)||UP(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 UP(e,t){if(e){if(typeof e=="string")return i0(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 i0(e,t)}}function i0(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 iae(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function oae(e){if(Array.isArray(e))return e}var Eh=function(t,n,r){return t+(n-t)*r},o0=function(t){var n=t.from,r=t.to;return n!==r},lae=function e(t,n,r){var a=ju(function(i,o){if(o0(o)){var l=t(o.from,o.to,o.velocity),s=rae(l,2),u=s[0],d=s[1];return kt(kt({},o),{},{from:u,velocity:d})}return o},n);return r<1?ju(function(i,o){return o0(o)?kt(kt({},o),{},{velocity:Eh(o.velocity,a[i].velocity,r),from:Eh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const sae=function(e,t,n,r,a){var i=zre(e,t),o=i.reduce(function(g,y){return kt(kt({},g),{},a0({},y,[e[y],t[y]]))},{}),l=i.reduce(function(g,y){return kt(kt({},g),{},a0({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,d,f=function(){return null},h=function(){return ju(function(y,v){return v.from},l)},p=function(){return!Object.values(l).filter(o0).length},b=function(y){u||(u=y);var v=y-u,x=v/n.dt;l=lae(n,l,x),a(kt(kt(kt({},e),t),h())),u=y,p()||(s=requestAnimationFrame(f))},m=function(y){d||(d=y);var v=(y-d)/r,x=ju(function(S,O){return Eh.apply(void 0,y2(O).concat([n(v)]))},o);if(a(kt(kt(kt({},e),t),x)),v<1)s=requestAnimationFrame(f);else{var w=ju(function(S,O){return Eh.apply(void 0,y2(O).concat([n(1)]))},o);a(kt(kt(kt({},e),t),w))}};return f=n.isStepper?b:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};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)}var uae=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function cae(e,t){if(e==null)return{};var n=fae(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 fae(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 Mm(e){return yae(e)||pae(e)||hae(e)||dae()}function dae(){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 hae(e,t){if(e){if(typeof e=="string")return l0(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 l0(e,t)}}function pae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yae(e){if(Array.isArray(e))return l0(e)}function l0(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 v2(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 ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v2(Object(n),!0).forEach(function(r){ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ou(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 mae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vae(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 gae(e,t,n){return t&&vae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HP(e){var t=bae(e,"string");return Yl(t)==="symbol"?t:String(t)}function bae(e,t){if(Yl(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function xae(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 Sae(e){var t=wae();return function(){var r=_h(e),a;if(t){var i=_h(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return u0(this,a)}}function u0(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 c0(e)}function c0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wae(){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 _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}var ma=function(e){xae(n,e);var t=Sae(n);function n(r,a){var i;mae(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,d=o.to,f=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(c0(i)),i.changeStyle=i.changeStyle.bind(c0(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),u0(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},u0(i);i.state={style:s?ou({},s,u):u}}else i.state={style:{}};return i}return gae(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,d=i.to,f=i.from,h=this.state.style;if(l){if(!o){var p={style:s?ou({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(Tre(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=b||u?f:a.to;if(this.state&&h){var g={style:s?ou({},s,m):m};(s&&h[s]!==m||!s&&h!==m)&&this.setState(g)}this.runAnimation(ar(ar({},this.props),{},{from:m,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,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=sae(o,l,Wre(u),s,this.changeStyle),b=function(){i.stopJSAnimation=p()};this.manager.start([h,d,b,s,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],d=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,g,y){if(y===0)return m;var v=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(Mm(m),[i.runJSAnimation.bind(i,{from:_.style,to:S,duration:v,easing:w}),v]);var M=d2(T,v,w),L=ar(ar(ar({},_.style),S),{},{transition:M});return[].concat(Mm(m),[L,v,A]).filter(Bre)};return this.manager.start([s].concat(Mm(o.reduce(p,[d,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Dre());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,d=a.onAnimationStart,f=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 m=l?ou({},l,s):s,g=d2(Object.keys(m),o,u);b.start([d,i,ar(ar({},m),{},{transition:g}),o,f])}},{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=cae(a,uae),u=j.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var f=function(p){var b=p.props,m=b.style,g=m===void 0?{}:m,y=b.className,v=j.cloneElement(p,ar(ar({},s),{},{style:ar(ar({},g),d),className:y}));return v};return u===1?f(j.Children.only(i)):k.createElement("div",null,j.Children.map(i,function(h){return f(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 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)}function Th(){return Th=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},Th.apply(this,arguments)}function Oae(e,t){return _ae(e)||Eae(e,t)||Aae(e,t)||jae()}function jae(){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 Aae(e,t){if(e){if(typeof e=="string")return g2(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 g2(e,t)}}function g2(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 Eae(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _ae(e){if(Array.isArray(e))return e}function b2(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 x2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(n),!0).forEach(function(r){Tae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tae(e,t,n){return t=Cae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cae(e){var t=Nae(e,"string");return mc(t)=="symbol"?t:t+""}function Nae(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)}var S2=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,d;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>o?o:i[h];d="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),d+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*f[1])),d+="L ".concat(t+r,",").concat(n+a-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
        `).concat(t+r-s*f[2],",").concat(n+a)),d+="L ".concat(t+s*f[3],",").concat(n+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*f[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);d="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 d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},Mae=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),d=Math.max(i,i+l),f=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=d&&a>=f&&a<=h}return!1},Pae={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r1=function(t){var n=x2(x2({},Pae),t),r=j.useRef(),a=j.useState(-1),i=Oae(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,d=n.width,f=n.height,h=n.radius,p=n.className,b=n.animationEasing,m=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,v=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var x=me("recharts-rectangle",p);return v?k.createElement(ma,{canBegin:o>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:m,animationEasing:b,isActive:v},function(w){var S=w.width,O=w.height,A=w.x,_=w.y;return k.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:y,easing:b},k.createElement("path",Th({},oe(n,!0),{className:x,d:S2(A,_,S,O,h),ref:r})))}):k.createElement("path",Th({},oe(n,!0),{className:x,d:S2(s,u,d,f,h)}))},Rae=["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 $ae(e,t){if(e==null)return{};var n=Dae(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 Dae(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 w2(e){return Bae(e)||zae(e)||Lae(e)||kae()}function kae(){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 Lae(e,t){if(e){if(typeof e=="string")return f0(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 f0(e,t)}}function zae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bae(e){if(Array.isArray(e))return f0(e)}function f0(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 O2=function(t){return t&&t.x===+t.x&&t.y===+t.y},Iae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){O2(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),O2(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=Iae(t);n&&(r=[r.reduce(function(i,o){return[].concat(w2(i),w2(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},Uae=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))},Hae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=$ae(t,Rae);if(!n||!n.length)return null;var l=me("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=Uae(n,a,i);return k.createElement("g",{className:l},k.createElement("path",Wo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?k.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(n,i)})):null,s?k.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(a,i)})):null)}var d=Au(n,i);return k.createElement("path",Wo({},oe(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function d0(){return d0=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},d0.apply(this,arguments)}var a1=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",d0({},oe(t,!1),Yd(t),{className:o,cx:n,cy:r,r:a})):null};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)}var qae=["x","y","top","left","width","height","className"];function h0(){return h0=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},h0.apply(this,arguments)}function j2(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 Fae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(n),!0).forEach(function(r){Gae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gae(e,t,n){return t=Kae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kae(e){var t=Yae(e,"string");return vc(t)=="symbol"?t:t+""}function Yae(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)}function Vae(e,t){if(e==null)return{};var n=Xae(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 Xae(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 Qae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Wae=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,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,b=t.className,m=Vae(t,qae),g=Fae({x:r,y:i,top:l,left:u,width:f,height:p},m);return!V(r)||!V(i)||!V(f)||!V(p)||!V(l)||!V(u)?null:k.createElement("path",h0({},oe(g,!0),{className:me("recharts-cross",b),d:Qae(r,i,f,p,l,u)}))},Zae=Xp,Jae=tP,eie=di;function tie(e,t){return e&&e.length?Zae(e,eie(t),Jae):void 0}var nie=tie;const rie=Ue(nie);var aie=Xp,iie=di,oie=nP;function lie(e,t){return e&&e.length?aie(e,iie(t),oie):void 0}var sie=lie;const uie=Ue(sie);var cie=["cx","cy","angle","ticks","axisLine"],fie=["ticks","tick","angle","tickFormatter","stroke"];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 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 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 bi(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){ny(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 E2(e,t){if(e==null)return{};var n=die(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 die(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 hie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _2(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,FP(r.key),r)}}function pie(e,t,n){return t&&_2(e.prototype,t),n&&_2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yie(e,t,n){return t=Ch(t),mie(e,qP()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function mie(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 vie(e)}function vie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qP=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function gie(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&&p0(e,t)}function p0(e,t){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},p0(e,t)}function ny(e,t,n){return t=FP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){var t=bie(e,"string");return Vl(t)=="symbol"?t:t+""}function bie(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 ry=function(e){function t(){return hie(this,t),yie(this,t,arguments)}return gie(t,e),pie(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ye(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=rie(l,function(d){return d.coordinate||0}),u=uie(l,function(d){return d.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=E2(r,cie),d=l.reduce(function(b,m){return[Math.min(b[0],m.coordinate),Math.max(b[1],m.coordinate)]},[1/0,-1/0]),f=Ye(a,i,d[0],o),h=Ye(a,i,d[1],o),p=bi(bi(bi({},oe(u,!1)),{},{fill:"none"},oe(s,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return k.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,d=E2(a,fie),f=this.getTickTextAnchor(),h=oe(d,!1),p=oe(o,!1),b=i.map(function(m,g){var y=r.getTickValueCoord(m),v=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:g},y),{},{payload:m});return k.createElement($e,Eu({className:me("recharts-polar-radius-axis-tick",CP(o)),key:"tick-".concat(m.coordinate)},lo(r.props,m,g)),t.renderTickItem(o,v,s?s(m.value,g):m.value))});return k.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:k.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 k.isValidElement(r)?o=k.cloneElement(r,a):ue(r)?o=r(a):o=k.createElement(so,Eu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(j.PureComponent);ny(ry,"displayName","PolarRadiusAxis");ny(ry,"axisType","radiusAxis");ny(ry,"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 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 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 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 xi(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){ay(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 xie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C2(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 Sie(e,t,n){return t&&C2(e.prototype,t),n&&C2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wie(e,t,n){return t=Nh(t),Oie(e,GP()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function Oie(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 jie(e)}function jie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GP=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function Aie(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&&y0(e,t)}function y0(e,t){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},y0(e,t)}function ay(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=Eie(e,"string");return Xl(t)=="symbol"?t:t+""}function Eie(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 _ie=Math.PI/180,N2=1e-5,iy=function(e){function t(){return xie(this,t),wie(this,t,arguments)}return Aie(t,e),Sie(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,d=u||8,f=Ye(i,o,l,r.coordinate),h=Ye(i,o,l+(s==="inner"?-1:1)*d,r.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*_ie),o;return i>N2?o=a==="outer"?"start":"end":i<-N2?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 k.createElement(a1,Ti({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var d=this.props.ticks,f=d.map(function(h){return Ye(a,i,o,h.coordinate)});return k.createElement(Hae,Ti({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{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,d=oe(this.props,!1),f=oe(o,!1),h=xi(xi({},d),{},{fill:"none"},oe(l,!1)),p=i.map(function(b,m){var g=r.getTickLineCoord(b),y=r.getTickTextAnchor(b),v=xi(xi(xi({textAnchor:y},d),{},{stroke:"none",fill:u},f),{},{index:m,payload:b,x:g.x2,y:g.y2});return k.createElement($e,Ti({className:me("recharts-polar-angle-axis-tick",CP(o)),key:"tick-".concat(b.coordinate)},lo(r.props,b,m)),l&&k.createElement("line",Ti({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,v,s?s(b.value,m):b.value))});return k.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:k.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 k.isValidElement(r)?o=k.cloneElement(r,a):ue(r)?o=r(a):o=k.createElement(so,Ti({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(j.PureComponent);ay(iy,"displayName","PolarAngleAxis");ay(iy,"axisType","angleAxis");ay(iy,"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 Tie=JN,Cie=Tie(Object.getPrototypeOf,Object),Nie=Cie,Mie=ga,Pie=Nie,Rie=ba,$ie="[object Object]",Die=Function.prototype,kie=Object.prototype,YP=Die.toString,Lie=kie.hasOwnProperty,zie=YP.call(Object);function Bie(e){if(!Rie(e)||Mie(e)!=$ie)return!1;var t=Pie(e);if(t===null)return!0;var n=Lie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&YP.call(n)==zie}var Iie=Bie;const Uie=Ue(Iie);var Hie=ga,qie=ba,Fie="[object Boolean]";function Gie(e){return e===!0||e===!1||qie(e)&&Hie(e)==Fie}var Kie=Gie;const Yie=Ue(Kie);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 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 Vie(e,t){return Zie(e)||Wie(e,t)||Qie(e,t)||Xie()}function Xie(){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 Qie(e,t){if(e){if(typeof e=="string")return M2(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 M2(e,t)}}function M2(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 Wie(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Zie(e){if(Array.isArray(e))return e}function P2(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 R2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P2(Object(n),!0).forEach(function(r){Jie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jie(e,t,n){return t=eoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eoe(e){var t=toe(e,"string");return gc(t)=="symbol"?t:t+""}function toe(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)}var $2=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},noe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},roe=function(t){var n=R2(R2({},noe),t),r=j.useRef(),a=j.useState(-1),i=Vie(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,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,m=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var v=me("recharts-trapezoid",p);return y?k.createElement(ma,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:s,y:u},duration:m,animationEasing:b,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,O=x.height,A=x.x,_=x.y;return k.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:b},k.createElement("path",Mh({},oe(n,!0),{className:v,d:$2(A,_,w,S,O),ref:r})))}):k.createElement("g",null,k.createElement("path",Mh({},oe(n,!0),{className:v,d:$2(s,u,d,f,h)})))},aoe=["option","shapeType","propTransformer","activeClassName","isActive"];function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function ioe(e,t){if(e==null)return{};var n=ooe(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 ooe(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 D2(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 Ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t,n){return t=soe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function soe(e){var t=uoe(e,"string");return bc(t)=="symbol"?t:t+""}function uoe(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function coe(e,t){return Ph(Ph({},t),e)}function foe(e,t){return e==="symbols"}function k2(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return k.createElement(r1,n);case"trapezoid":return k.createElement(roe,n);case"sector":return k.createElement(PP,n);case"symbols":if(foe(t))return k.createElement(Sx,n);break;default:return null}}function doe(e){return j.isValidElement(e)?e.props:e}function VP(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?coe:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=ioe(e,aoe),u;if(j.isValidElement(t))u=j.cloneElement(t,Ph(Ph({},s),doe(t)));else if(ue(t))u=t(s);else if(Uie(t)&&!Yie(t)){var d=a(t,s);u=k.createElement(k2,{shapeType:n,elementProps:d})}else{var f=s;u=k.createElement(k2,{shapeType:n,elementProps:f})}return l?k.createElement($e,{className:o},u):u}function oy(e,t){return t!=null&&"trapezoids"in e.props}function ly(e,t){return t!=null&&"sectors"in e.props}function xc(e,t){return t!=null&&"points"in e.props}function hoe(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 poe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function yoe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function moe(e,t){var n;return oy(e,t)?n=hoe:ly(e,t)?n=poe:xc(e,t)&&(n=yoe),n}function voe(e,t){var n;return oy(e,t)?n="trapezoids":ly(e,t)?n="sectors":xc(e,t)&&(n="points"),n}function goe(e,t){if(oy(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(ly(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 xc(e,t)?t.payload:{}}function boe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=voe(n,t),i=goe(n,t),o=r.filter(function(s,u){var d=Zp(i,s),f=n.props[a].filter(function(b){var m=moe(n,t);return m(b,t)}),h=n.props[a].indexOf(f[f.length-1]),p=u===h;return d&&p}),l=r.indexOf(o[o.length-1]);return l}var ud;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 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 Fe(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){Yn(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 xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z2(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,QP(r.key),r)}}function Soe(e,t,n){return t&&z2(e.prototype,t),n&&z2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function woe(e,t,n){return t=Rh(t),Ooe(e,XP()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function Ooe(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 joe(e)}function joe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XP=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function Aoe(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 Yn(e,t,n){return t=QP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e){var t=Eoe(e,"string");return Ql(t)=="symbol"?t:t+""}function Eoe(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 xoe(this,t),r=woe(this,t,[n]),Yn(r,"pieRef",null),Yn(r,"sectorRefs",[]),Yn(r,"id",Jc("recharts-pie-")),Yn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ue(a)&&a()}),Yn(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 Aoe(t,e),Soe(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,d=oe(this.props,!1),f=oe(o,!1),h=oe(l,!1),p=o&&o.offsetRadius||20,b=r.map(function(m,g){var y=(m.startAngle+m.endAngle)/2,v=Ye(m.cx,m.cy,m.outerRadius+p,y),x=Fe(Fe(Fe(Fe({},d),m),{},{stroke:"none"},f),{},{index:g,textAnchor:t.getTextAnchor(v.x,m.cx)},v),w=Fe(Fe(Fe(Fe({},d),m),{},{fill:"none",stroke:m.fill},h),{},{index:g,points:[Ye(m.cx,m.cy,m.outerRadius,y),v]}),S=s;return ve(s)&&ve(u)?S="value":ve(s)&&(S=u),k.createElement($e,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(g)},l&&t.renderLabelLineItem(l,w,"line"),t.renderLabelItem(o,x,Kt(m,S)))});return k.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,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=a.isActiveIndex(d),h=s&&a.hasActiveIndex()?s:null,p=f?o:h,b=Fe(Fe({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return k.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,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),k.createElement(VP,Zo({option:p,isActive:f,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,d=a.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return k.createElement(ma,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var m=b.t,g=[],y=i&&i[0],v=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:v+O,endAngle:v+A(m)+O});g.push(_),v=_.endAngle}else{var T=x.endAngle,M=x.startAngle,L=Ea(0,T-M),E=L(m),C=Fe(Fe({},x),{},{startAngle:v+O,endAngle:v+E+O});g.push(C),v=C.endAngle}}),k.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||!Zp(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,d=a.cy,f=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!V(u)||!V(d)||!V(f)||!V(h))return null;var m=me("recharts-pie",l);return k.createElement($e,{tabIndex:this.props.rootTabIndex,className:m,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(k.isValidElement(r))return k.cloneElement(r,a);if(ue(r))return r(a);var o=me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return k.createElement(t0,Zo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(k.isValidElement(r))return k.cloneElement(r,a);var o=i;if(ue(r)&&(o=r(a),k.isValidElement(o)))return o;var l=me("recharts-pie-label-text",typeof r!="boolean"&&!ue(r)?r.className:"");return k.createElement(so,Zo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);ud=Sa;Yn(Sa,"displayName","Pie");Yn(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});Yn(Sa,"parseDeltaAngle",function(e,t){var n=Zt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Yn(Sa,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Zn(n,Hp);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)}):[]});Yn(Sa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=TP(a,i),l=r+Jt(e.cx,a,a/2),s=n+Jt(e.cy,i,i/2),u=Jt(e.innerRadius,o,0),d=Jt(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:d,maxRadius:f}});Yn(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=ud.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,d=r.nameKey,f=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),b=ud.parseCoordinateOfPie(r,n),m=ud.parseDeltaAngle(o,l),g=Math.abs(m),y=u;ve(u)&&ve(f)?(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=f);var v=a.filter(function(_){return Kt(_,y,0)!==0}).length,x=(g>=360?v:v-1)*s,w=g-v*p-x,S=a.reduce(function(_,T){var M=Kt(T,y,0);return _+(V(M)?M:0)},0),O;if(S>0){var A;O=a.map(function(_,T){var M=Kt(_,y,0),L=Kt(_,d,T),E=(V(M)?M:0)/S,C;T?C=A.endAngle+Zt(m)*s*(M!==0?1:0):C=o;var $=C+Zt(m)*((M!==0?p:0)+E*w),P=(C+$)/2,R=(b.innerRadius+b.outerRadius)/2,z=[{name:L,value:M,payload:_,dataKey:y,type:h}],B=Ye(b.cx,b.cy,R,P);return A=Fe(Fe(Fe({percent:E,cornerRadius:i,name:L,tooltipPayload:z,midAngle:P,middleRadius:R,tooltipPosition:B},_),b),{},{value:Kt(_,y),startAngle:C,endAngle:$,payload:_,paddingAngle:Zt(m)*s}),A})}return Fe(Fe({},b),{},{sectors:O,data:a})});var _oe=Math.ceil,Toe=Math.max;function Coe(e,t,n,r){for(var a=-1,i=Toe(_oe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var Noe=Coe,Moe=vM,B2=1/0,Poe=17976931348623157e292;function Roe(e){if(!e)return e===0?e:0;if(e=Moe(e),e===B2||e===-B2){var t=e<0?-1:1;return t*Poe}return e===e?e:0}var $oe=Roe,Doe=Noe,koe=Up,Pm=$oe;function Loe(e){return function(t,n,r){return r&&typeof r!="number"&&koe(t,n,r)&&(n=r=void 0),t=Pm(t),n===void 0?(n=t,t=0):n=Pm(n),r=r===void 0?t<n?1:-1:Pm(r),Doe(t,n,r,e)}}var zoe=Loe,Boe=zoe,Ioe=Boe(),Uoe=Ioe;const $h=Ue(Uoe);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 I2(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 U2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(n),!0).forEach(function(r){WP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WP(e,t,n){return t=Hoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hoe(e){var t=qoe(e,"string");return Sc(t)=="symbol"?t:t+""}function qoe(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)}var Foe=["Webkit","Moz","O","ms"],Goe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Foe.reduce(function(i,o){return U2(U2({},i),{},WP({},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 Dh(){return Dh=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},Dh.apply(this,arguments)}function H2(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 Rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(n),!0).forEach(function(r){vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(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,JP(r.key),r)}}function Yoe(e,t,n){return t&&q2(e.prototype,t),n&&q2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Voe(e,t,n){return t=kh(t),Xoe(e,ZP()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Xoe(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 Qoe(e)}function Qoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZP=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Woe(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&&v0(e,t)}function v0(e,t){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},v0(e,t)}function vn(e,t,n){return t=JP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JP(e){var t=Zoe(e,"string");return Wl(t)=="symbol"?t:t+""}function Zoe(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 Joe=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($h(0,s)).range([i,i+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:d}},F2=function(t){return t.changedTouches&&!!t.changedTouches.length},Zl=function(e){function t(n){var r;return Koe(this,t),r=Voe(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=F2(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 Woe(t,e),Yoe(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,d=u.length-1,f=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,f),b=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:b===d?d:b-b%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=Kt(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,d=s.width,f=s.travellerWidth,h=s.startIndex,p=s.endIndex,b=s.onChange,m=r.pageX-i;m>0?m=Math.min(m,u+d-f-l,u+d-f-o):m<0&&(m=Math.max(m,u-o,u-l));var g=this.getIndex({startX:o+m,endX:l+m});(g.startIndex!==h||g.endIndex!==p)&&b&&b(g),this.setState({startX:o+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=F2(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],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,b=d.onChange,m=d.gap,g=d.data,y={startX:this.state.startX,endX:this.state.endX},v=r.pageX-i;v>0?v=Math.min(v,f+h-p-u):v<0&&(v=Math.max(v,f-u)),y[o]=u+v;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,O=function(){var _=g.length-1;return o==="startX"&&(l>s?w%m===0:S%m===0)||l<s&&S===_||o==="endX"&&(l>s?S%m===0:w%m===0)||l>s&&S===_};this.setState(vn(vn({},o,u+v),"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,d=this.state[a],f=l.indexOf(d);if(f!==-1){var h=f+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 k.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,d=r.padding,f=j.Children.only(u);return f?k.cloneElement(f,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,d=s.travellerWidth,f=s.height,h=s.traveller,p=s.ariaLabel,b=s.data,m=s.startIndex,g=s.endIndex,y=Math.max(r,this.props.x),v=Rm(Rm({},oe(this.props,!1)),{},{x:y,y:u,width:d,height:f}),x=p||"Min value: ".concat((i=b[m])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[g])===null||o===void 0?void 0:o.name);return k.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,v))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,f=Math.max(Math.abs(a-r)-u,0);return k.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:d,y:o,width:f,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,d=this.state,f=d.startX,h=d.endX,p=5,b={pointerEvents:"none",fill:u};return k.createElement($e,{className:"recharts-brush-texts"},k.createElement(so,Dh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+l/2},b),this.getTextOfTick(a)),k.createElement(so,Dh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,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,d=r.height,f=r.alwaysShowText,h=this.state,p=h.startX,b=h.endX,m=h.isTextActive,g=h.isSlideMoving,y=h.isTravellerMoving,v=h.isTravellerFocused;if(!a||!a.length||!V(l)||!V(s)||!V(u)||!V(d)||u<=0||d<=0)return null;var x=me("recharts-brush",i),w=k.Children.count(o)===1,S=Goe("userSelect","none");return k.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"),(m||g||y||v||f)&&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 k.createElement(k.Fragment,null,k.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),k.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),k.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 k.isValidElement(r)?i=k.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,d=r.startIndex,f=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Rm({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Joe({data:i,width:o,x:l,travellerWidth:s,startIndex:d,endIndex:f}):{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 ele=Cx;function tle(e,t){var n;return ele(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var nle=tle,rle=GN,ale=di,ile=nle,ole=yn,lle=Up;function sle(e,t,n){var r=ole(e)?rle:ile;return n&&lle(e,t,n)&&(t=void 0),r(e,ale(t))}var ule=sle;const cle=Ue(ule);var _r=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},G2=dM;function fle(e,t,n){t=="__proto__"&&G2?G2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var dle=fle,hle=dle,ple=cM,yle=di;function mle(e,t){var n={};return t=yle(t),ple(e,function(r,a,i){hle(n,a,t(r,a,i))}),n}var vle=mle;const gle=Ue(vle);function ble(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 xle=ble,Sle=Cx;function wle(e,t){var n=!0;return Sle(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var Ole=wle,jle=xle,Ale=Ole,Ele=di,_le=yn,Tle=Up;function Cle(e,t,n){var r=_le(e)?jle:Ale;return n&&Tle(e,t,n)&&(t=void 0),r(e,Ele(t))}var Nle=Cle;const Mle=Ue(Nle);var Ple=["x","y"];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 g0(){return g0=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},g0.apply(this,arguments)}function K2(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?K2(Object(n),!0).forEach(function(r){Rle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rle(e,t,n){return t=$le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $le(e){var t=Dle(e,"string");return wc(t)=="symbol"?t:t+""}function Dle(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)}function kle(e,t){if(e==null)return{};var n=Lle(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 Lle(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 zle(e,t){var n=e.x,r=e.y,a=kle(e,Ple),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Js(Js(Js(Js(Js({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function Y2(e){return k.createElement(VP,g0({shapeType:"rectangle",propTransformer:zle,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=V(r)||a7(r);return i?t(r,a):(i||co(),n)}},Ile=["value","background"],eR;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 Ule(e,t){if(e==null)return{};var n=Hle(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 Hle(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 Lh(){return Lh=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},Lh.apply(this,arguments)}function V2(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?V2(Object(n),!0).forEach(function(r){Ka(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X2(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,nR(r.key),r)}}function Fle(e,t,n){return t&&X2(e.prototype,t),n&&X2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gle(e,t,n){return t=zh(t),Kle(e,tR()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function Kle(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 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 tR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tR=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(e)}function Vle(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 Ka(e,t,n){return t=nR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nR(e){var t=Xle(e,"string");return Jl(t)=="symbol"?t:t+""}function Xle(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;qle(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gle(this,t,[].concat(a)),Ka(n,"state",{isAnimationFinished:!1}),Ka(n,"id",Jc("recharts-bar-")),Ka(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ka(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return Vle(t,e),Fle(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,d=oe(this.props,!1);return r&&r.map(function(f,h){var p=h===s,b=p?u:o,m=ft(ft(ft({},d),f),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return k.createElement($e,Lh({className:"recharts-bar-rectangle"},lo(a.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),k.createElement(Y2,m))})}},{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,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return k.createElement(ma,{begin:s,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var b=p.t,m=i.map(function(g,y){var v=h&&h[y];if(v){var x=Ea(v.x,g.x),w=Ea(v.y,g.y),S=Ea(v.width,g.width),O=Ea(v.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 k.createElement($e,null,r.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Zp(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,d){u.value;var f=u.background,h=Ule(u,Ile);if(!f)return null;var p=ft(ft(ft(ft(ft({},h),{},{fill:"#eee"},f),s),lo(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return k.createElement(Y2,Lh({key:"background-bar-".concat(d),option:r.props.background,isActive:d===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,d=i.children,f=Zn(d,ty);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(g,y){var v=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:v,errorVal:Kt(g,y)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return k.createElement($e,b,f.map(function(m){return k.cloneElement(m,{key:"error-bar-".concat(a,"-").concat(m.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,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,b=r.background,m=r.id;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,y=me("recharts-bar",o),v=l&&l.allowDataOverflow,x=s&&s.allowDataOverflow,w=v||x,S=ve(m)?this.id:m;return k.createElement($e,{className:y},v||x?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(S)},k.createElement("rect",{x:v?u:u-f/2,y:x?d:d-h/2,width:v?f:f*2,height:x?h:h*2}))):null,k.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);eR=Oo;Ka(Oo,"displayName","Bar");Ka(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"});Ka(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,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=Ote(r,n);if(!p)return null;var b=t.layout,m=n.type.defaultProps,g=m!==void 0?ft(ft({},m),n.props):n.props,y=g.dataKey,v=g.children,x=g.minPointSize,w=b==="horizontal"?o:i,S=u?w.scale.domain():null,O=Nte({numericAxis:w}),A=Zn(v,Hp),_=f.map(function(T,M){var L,E,C,$,P,R;u?L=jte(u[d+M],S):(L=Kt(T,y),Array.isArray(L)||(L=[O,L]));var z=Ble(x,eR.defaultProps.minPointSize)(L[1],M);if(b==="horizontal"){var B,q=[o.scale(L[0]),o.scale(L[1])],G=q[0],F=q[1];E=Uj({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:T,index:M}),C=(B=F??G)!==null&&B!==void 0?B:void 0,$=p.size;var K=G-F;if(P=Number.isNaN(K)?0:K,R={x:E,y:o.y,width:$,height:o.height},Math.abs(z)>0&&Math.abs(P)<Math.abs(z)){var J=Zt(P||z)*(Math.abs(z)-Math.abs(P));C-=J,P+=J}}else{var ye=[i.scale(L[0]),i.scale(L[1])],ke=ye[0],fe=ye[1];if(E=ke,C=Uj({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:T,index:M}),$=fe-ke,P=p.size,R={x:i.x,y:C,width:i.width,height:P},Math.abs(z)>0&&Math.abs($)<Math.abs(z)){var $t=Zt($||z)*(Math.abs(z)-Math.abs($));$+=$t}}return ft(ft(ft({},T),{},{x:E,y:C,width:$,height:P,value:u?L:L[1],payload:T,background:R},A&&A[M]&&A[M].props),{},{tooltipPayload:[EP(n,T)],tooltipPosition:{x:E+$/2,y:C+P/2}})});return ft({data:_,layout:b},h)});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 Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q2(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,rR(r.key),r)}}function Wle(e,t,n){return t&&Q2(e.prototype,t),n&&Q2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function W2(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 sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){sy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sy(e,t,n){return t=rR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rR(e){var t=Zle(e,"string");return Oc(t)=="symbol"?t:t+""}function Zle(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)}var Jle=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,d=Object.keys(n),f={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 d.reduce(function(p,b){var m=n[b],g=m.orientation,y=m.domain,v=m.padding,x=v===void 0?{}:v,w=m.mirror,S=m.reversed,O="".concat(g).concat(w?"Mirror":""),A,_,T,M,L;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=y[1]-y[0],C=1/0,$=m.categoricalDomain.sort(l7);if($.forEach(function(ye,ke){ke>0&&(C=Math.min((ye||0)-($[ke-1]||0),C))}),Number.isFinite(C)){var P=C/E,R=m.layout==="vertical"?r.height:r.width;if(m.padding==="gap"&&(A=P*R/2),m.padding==="no-gap"){var z=Jt(t.barCategoryGap,P*R),B=P*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)]:_=m.range,S&&(_=[_[1],_[0]]);var q=wP(m,i,h),G=q.scale,F=q.realScaleType;G.domain(y).range(_),OP(G);var K=jP(G,sr(sr({},m),{},{realScaleType:F}));a==="xAxis"?(L=g==="top"&&!w||g==="bottom"&&w,T=r.left,M=f[O]-L*m.height):a==="yAxis"&&(L=g==="left"&&!w||g==="right"&&w,T=f[O]-L*m.width,M=r.top);var J=sr(sr(sr({},m),K),{},{realScaleType:F,x:T,y:M,scale:G,width:a==="xAxis"?r.width:m.width,height:a==="yAxis"?r.height:m.height});return J.bandSize=Sh(J,K),!m.hide&&a==="xAxis"?f[O]+=(L?-1:1)*J.height:m.hide||(f[O]+=(L?-1:1)*J.width),sr(sr({},p),{},sy({},b,J))},{})},aR=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)}},ese=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return aR({x:n,y:r},{x:a,y:i})},iR=function(){function e(t){Qle(this,e),this.scale=t}return Wle(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)}}])}();sy(iR,"EPS",1e-4);var i1=function(t){var n=Object.keys(t).reduce(function(r,a){return sr(sr({},r),{},sy({},a,iR.create(t[a])))},{});return sr(sr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return gle(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return Mle(a,function(i,o){return n[o].isInRange(i)})}})};function tse(e){return(e%180+180)%180}var nse=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=tse(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)},rse=cU(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("")}),oR=j.createContext(void 0),lR=j.createContext(void 0),sR=j.createContext(void 0),ase=j.createContext({}),uR=j.createContext(void 0),cR=j.createContext(0),fR=j.createContext(0),Z2=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,d=rse(i);return k.createElement(oR.Provider,{value:r},k.createElement(lR.Provider,{value:a},k.createElement(ase.Provider,{value:i},k.createElement(sR.Provider,{value:d},k.createElement(uR.Provider,{value:o},k.createElement(cR.Provider,{value:u},k.createElement(fR.Provider,{value:s},l)))))))},ise=function(){return j.useContext(uR)},dR=function(t){var n=j.useContext(oR);n==null&&co();var r=n[t];return r==null&&co(),r},hR=function(t){var n=j.useContext(lR);n==null&&co();var r=n[t];return r==null&&co(),r},ose=function(){var t=j.useContext(sR);return t},pR=function(){return j.useContext(fR)},yR=function(){return j.useContext(cR)};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 lse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sse(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,vR(r.key),r)}}function use(e,t,n){return t&&sse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cse(e,t,n){return t=Bh(t),fse(e,mR()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function fse(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 dse(e)}function dse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mR=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function hse(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 J2(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 eA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J2(Object(n),!0).forEach(function(r){o1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o1(e,t,n){return t=vR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vR(e){var t=pse(e,"string");return es(t)=="symbol"?t:t+""}function pse(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 yse(e,t){return bse(e)||gse(e,t)||vse(e,t)||mse()}function mse(){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 vse(e,t){if(e){if(typeof e=="string")return tA(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 tA(e,t)}}function tA(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 gse(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function bse(e){if(Array.isArray(e))return 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)}var xse=function(t,n){var r;return k.isValidElement(t)?r=k.cloneElement(t,n):ue(t)?r=t(n):r=k.createElement("line",S0({},n,{className:"recharts-reference-line-line"})),r},Sse=function(t,n,r,a,i,o,l,s,u){var d=i.x,f=i.y,h=i.width,p=i.height;if(r){var b=u.y,m=t.y.apply(b,{position:o});if(_r(u,"discard")&&!t.y.isInRange(m))return null;var g=[{x:d+h,y:m},{x:d,y:m}];return s==="left"?g.reverse():g}if(n){var y=u.x,v=t.x.apply(y,{position:o});if(_r(u,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:f+p},{x:v,y:f}];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")&&cle(S,function(O){return!t.isInRange(O)})?null:S}return null};function wse(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=ise(),d=dR(a),f=hR(i),h=ose();if(!u||!h)return null;aa(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=i1({x:d.scale,y:f.scale}),b=wt(t),m=wt(n),g=r&&r.length===2,y=Sse(p,b,m,g,h,e.position,d.orientation,f.orientation,e);if(!y)return null;var v=yse(y,2),x=v[0],w=x.x,S=x.y,O=v[1],A=O.x,_=O.y,T=_r(e,"hidden")?"url(#".concat(u,")"):void 0,M=eA(eA({clipPath:T},oe(e,!0)),{},{x1:w,y1:S,x2:A,y2:_});return k.createElement($e,{className:me("recharts-reference-line",l)},xse(o,M),Nt.renderCallByParent(e,ese({x1:w,y1:S,x2:A,y2:_})))}var l1=function(e){function t(){return lse(this,t),cse(this,t,arguments)}return hse(t,e),use(t,[{key:"render",value:function(){return k.createElement(wse,this.props)}}])}(k.Component);o1(l1,"displayName","ReferenceLine");o1(l1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function w0(){return w0=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},w0.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 nA(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 rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){uy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ose(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jse(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 Ase(e,t,n){return t&&jse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ese(e,t,n){return t=Ih(t),_se(e,gR()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function _se(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 Tse(e)}function Tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gR=function(){return!!e})()}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function Cse(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&&O0(e,t)}function O0(e,t){return O0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},O0(e,t)}function uy(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=Nse(e,"string");return ts(t)=="symbol"?t:t+""}function Nse(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 Mse=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=i1({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return _r(t,"discard")&&!o.isInRange(l)?null:l},cy=function(e){function t(){return Ose(this,t),Ese(this,t,arguments)}return Cse(t,e),Ase(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),d=wt(i);if(aa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=Mse(this.props);if(!f)return null;var h=f.x,p=f.y,b=this.props,m=b.shape,g=b.className,y=_r(this.props,"hidden")?"url(#".concat(s,")"):void 0,v=rA(rA({clipPath:y},oe(this.props,!0)),{},{cx:h,cy:p});return k.createElement($e,{className:me("recharts-reference-dot",g)},t.renderDot(m,v),Nt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(k.Component);uy(cy,"displayName","ReferenceDot");uy(cy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});uy(cy,"renderDot",function(e,t){var n;return k.isValidElement(e)?n=k.cloneElement(e,t):ue(e)?n=e(t):n=k.createElement(a1,w0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function j0(){return j0=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},j0.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 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){fy(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 Pse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rse(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,SR(r.key),r)}}function $se(e,t,n){return t&&Rse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=Uh(t),kse(e,xR()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function kse(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 Lse(e)}function Lse(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 Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function zse(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&&A0(e,t)}function A0(e,t){return A0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},A0(e,t)}function fy(e,t,n){return t=SR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SR(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 Ise=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=i1({x:d.scale,y:f.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:aR(p,b)},dy=function(e){function t(){return Pse(this,t),Dse(this,t,arguments)}return zse(t,e),$se(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,d=r.clipPathId;aa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=wt(a),h=wt(i),p=wt(o),b=wt(l),m=this.props.shape;if(!f&&!h&&!p&&!b&&!m)return null;var g=Ise(f,h,p,b,this.props);if(!g&&!m)return null;var y=_r(this.props,"hidden")?"url(#".concat(d,")"):void 0;return k.createElement($e,{className:me("recharts-reference-area",s)},t.renderRect(m,iA(iA({clipPath:y},oe(this.props,!0)),g)),Nt.renderCallByParent(this.props,g))}}])}(k.Component);fy(dy,"displayName","ReferenceArea");fy(dy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fy(dy,"renderRect",function(e,t){var n;return k.isValidElement(e)?n=k.cloneElement(e,t):ue(e)?n=e(t):n=k.createElement(r1,j0({},t,{className:"recharts-reference-area-rect"})),n});function wR(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 Use(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return nse(r,n)}function Hse(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 Hh(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 qse(e,t){return wR(e,t+1)}function Fse(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,d=o,f=function(){var b=r==null?void 0:r[s];if(b===void 0)return{v:wR(r,u)};var m=s,g,y=function(){return g===void 0&&(g=n(b,m)),g},v=b.coordinate,x=s===0||Hh(e,v,y,d,l);x||(s=0,d=o,u+=1),x&&(d=v+e*(y()/2+a),s+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}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 oA(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?oA(Object(n),!0).forEach(function(r){Gse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gse(e,t,n){return t=Kse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kse(e){var t=Yse(e,"string");return jc(t)=="symbol"?t:t+""}function Yse(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(t==="string"?String:Number)(e)}function Vse(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,m=function(){return b===void 0&&(b=n(p,h)),b};if(h===o-1){var g=e*(p.coordinate+e*m()/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=Hh(e,p.tickCoord,m,l,s);y&&(s=p.tickCoord-e*(m()/2+a),i[h]=Gt(Gt({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function Xse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var d=r[l-1],f=n(d,l-1),h=e*(d.coordinate+e*f/2-u);o[l-1]=d=Gt(Gt({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=Hh(e,d.tickCoord,function(){return f},s,u);p&&(u=d.tickCoord-e*(f/2+a),o[l-1]=Gt(Gt({},d),{},{isShow:!0}))}for(var b=i?l-1:l,m=function(v){var x=o[v],w,S=function(){return w===void 0&&(w=n(x,v)),w};if(v===0){var O=e*(x.coordinate-e*S()/2-s);o[v]=x=Gt(Gt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[v]=x=Gt(Gt({},x),{},{tickCoord:x.coordinate});var A=Hh(e,x.tickCoord,S,s,u);A&&(s=x.tickCoord+e*(S()/2+a),o[v]=Gt(Gt({},x),{},{isShow:!0}))},g=0;g<b;g++)m(g);return o}function Qse(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,d=e.unit,f=e.angle;if(!a||!a.length||!r)return[];if(V(s)||Ns.isSsr)return qse(a,typeof s=="number"&&V(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=d&&p==="width"?Su(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(x,w){var S=ue(u)?u(x.value,w):x.value;return p==="width"?Use(Su(S,{fontSize:t,letterSpacing:n}),b,f):Su(S,{fontSize:t,letterSpacing:n})[p]},g=a.length>=2?Zt(a[1].coordinate-a[0].coordinate):1,y=Hse(i,g,p);return s==="equidistantPreserveStart"?Fse(g,y,m,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=Xse(g,y,m,a,o,s==="preserveStartEnd"):h=Vse(g,y,m,a,o),h.filter(function(v){return v.isShow}))}var Wse=["viewBox"],Zse=["viewBox"],Jse=["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 lA(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?lA(Object(n),!0).forEach(function(r){s1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $m(e,t){if(e==null)return{};var n=eue(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 eue(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 tue(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,jR(r.key),r)}}function nue(e,t,n){return t&&sA(e.prototype,t),n&&sA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rue(e,t,n){return t=qh(t),aue(e,OR()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function aue(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 iue(e)}function iue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OR=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function oue(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 s1(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=lue(e,"string");return rs(t)=="symbol"?t:t+""}function lue(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 hy=function(e){function t(n){var r;return tue(this,t),r=rue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return oue(t,e),nue(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=$m(r,Wse),l=this.props,s=l.viewBox,u=$m(l,Zse);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,d=a.tickSize,f=a.mirror,h=a.tickMargin,p,b,m,g,y,v,x=f?-1:1,w=r.tickSize||d,S=V(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,g=o+ +!f*s,m=g-x*w,v=m-x*h,y=S;break;case"left":m=g=r.coordinate,b=i+ +!f*l,p=b-x*w,y=p-x*h,v=S;break;case"right":m=g=r.coordinate,b=i+ +f*l,p=b+x*w,y=p+x*h,v=S;break;default:p=b=r.coordinate,g=o+ +f*s,m=g+x*w,v=m+x*h,y=S;break}return{line:{x1:p,y1:m,x2:b,y2:g},tick:{x:y,y:v}}}},{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,d=r.axisLine,f=gt(gt(gt({},oe(this.props,!1)),oe(d,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);f=gt(gt({},f),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);f=gt(gt({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return k.createElement("line",Jo({},f,{className:me("recharts-cartesian-axis-line",Nn(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,h=l.unit,p=Qse(gt(gt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),g=oe(this.props,!1),y=oe(d,!1),v=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:m},g),{},{stroke:"none",fill:u},y),_),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:f});return k.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&&k.createElement("line",Jo({},v,A,{className:me("recharts-cartesian-axis-tick-line",Nn(s,"className"))})),d&&t.renderTickItem(d,T,"".concat(ue(f)?f(w.value,S):w.value).concat(h||"")))});return k.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,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,p=$m(f,Jse),b=h;return ue(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:k.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 k.isValidElement(r)?o=k.cloneElement(r,gt(gt({},a),{},{className:l})):ue(r)?o=r(gt(gt({},a),{},{className:l})):o=k.createElement(so,Jo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(j.Component);s1(hy,"displayName","CartesianAxis");s1(hy,"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 sue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uue(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,_R(r.key),r)}}function cue(e,t,n){return t&&uue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fue(e,t,n){return t=Fh(t),due(e,AR()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function due(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 hue(e)}function hue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AR=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function pue(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&&_0(e,t)}function _0(e,t){return _0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_0(e,t)}function ER(e,t,n){return t=_R(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _R(e){var t=yue(e,"string");return as(t)=="symbol"?t:t+""}function yue(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 T0(){return T0=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},T0.apply(this,arguments)}function mue(e){var t=e.xAxisId,n=pR(),r=yR(),a=dR(t);return a==null?null:j.createElement(hy,T0({},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 py=function(e){function t(){return sue(this,t),fue(this,t,arguments)}return pue(t,e),cue(t,[{key:"render",value:function(){return j.createElement(mue,this.props)}}])}(j.Component);ER(py,"displayName","XAxis");ER(py,"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 vue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gue(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,NR(r.key),r)}}function bue(e,t,n){return t&&gue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xue(e,t,n){return t=Gh(t),Sue(e,TR()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function Sue(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 wue(e)}function wue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TR=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function Oue(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 CR(e,t,n){return t=NR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NR(e){var t=jue(e,"string");return is(t)=="symbol"?t:t+""}function jue(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 N0(){return N0=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},N0.apply(this,arguments)}var Aue=function(t){var n=t.yAxisId,r=pR(),a=yR(),i=hR(n);return i==null?null:j.createElement(hy,N0({},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)}}))},yy=function(e){function t(){return vue(this,t),xue(this,t,arguments)}return Oue(t,e),bue(t,[{key:"render",value:function(){return j.createElement(Aue,this.props)}}])}(j.Component);CR(yy,"displayName","YAxis");CR(yy,"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 uA(e){return Cue(e)||Tue(e)||_ue(e)||Eue()}function Eue(){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 _ue(e,t){if(e){if(typeof e=="string")return M0(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 M0(e,t)}}function Tue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cue(e){if(Array.isArray(e))return M0(e)}function M0(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 P0=function(t,n,r,a,i){var o=Zn(t,l1),l=Zn(t,cy),s=[].concat(uA(o),uA(l)),u=Zn(t,dy),d="".concat(a,"Id"),f=a[0],h=n;if(s.length&&(h=s.reduce(function(m,g){if(g.props[d]===r&&_r(g.props,"extendDomain")&&V(g.props[f])){var y=g.props[f];return[Math.min(m[0],y),Math.max(m[1],y)]}return m},h)),u.length){var p="".concat(f,"1"),b="".concat(f,"2");h=u.reduce(function(m,g){if(g.props[d]===r&&_r(g.props,"extendDomain")&&V(g.props[p])&&V(g.props[b])){var y=g.props[p],v=g.props[b];return[Math.min(m[0],y,v),Math.max(m[1],y,v)]}return m},h)}return i&&i.length&&(h=i.reduce(function(m,g){return V(g)?[Math.min(m[0],g),Math.max(m[1],g)]:m},h)),h},MR={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,d){this.fn=s,this.context=u,this.once=d||!1}function i(s,u,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,f||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=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,b=new Array(p);h<p;h++)b[h]=f[h].fn;return b},l.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,h,p,b){var m=n?n+u:u;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,v,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,d),!0;case 3:return g.fn.call(g.context,d,f),!0;case 4:return g.fn.call(g.context,d,f,h),!0;case 5:return g.fn.call(g.context,d,f,h,p),!0;case 6:return g.fn.call(g.context,d,f,h,p,b),!0}for(x=1,v=new Array(y-1);x<y;x++)v[x-1]=arguments[x];g.fn.apply(g.context,v)}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,d);break;case 3:g[x].fn.call(g[x].context,d,f);break;case 4:g[x].fn.call(g[x].context,d,f,h);break;default:if(!v)for(S=1,v=new Array(y-1);S<y;S++)v[S-1]=arguments[S];g[x].fn.apply(g[x].context,v)}}return!0},l.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,h){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===d&&(!h||b.once)&&(!f||b.context===f)&&o(this,p);else{for(var m=0,g=[],y=b.length;m<y;m++)(b[m].fn!==d||h&&!b[m].once||f&&b[m].context!==f)&&g.push(b[m]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(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})(MR);var Nue=MR.exports;const Mue=Ue(Nue);var Dm=new Mue,km="recharts.syncMouseEvents";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 Pue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rue(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,PR(r.key),r)}}function $ue(e,t,n){return t&&Rue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lm(e,t,n){return t=PR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PR(e){var t=Due(e,"string");return Ac(t)=="symbol"?t:t+""}function Due(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 String(e)}var kue=function(){function e(){Pue(this,e),Lm(this,"activeIndex",0),Lm(this,"coordinateList",[]),Lm(this,"layout","horizontal")}return $ue(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,d=n.offset,f=d===void 0?null:d,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=f??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,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=i+s+u,h=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function Lue(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&&V(r)&&V(a))return!0}return!1}function zue(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 RR(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ye(t,n,r,a),l=Ye(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,d=t.outerRadius,f=t.angle,h=Ye(l,s,u,f),p=Ye(l,s,d,f);r=h.x,a=h.y,i=p.x,o=p.y}else return RR(t);return[{x:r,y:a},{x:i,y:o}]}function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(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 zf(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){Iue(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 Iue(e,t,n){return t=Uue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uue(e){var t=Hue(e,"string");return Ec(t)=="symbol"?t:t+""}function Hue(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function que(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,d=e.tooltipAxisBandSize,f=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,m=t0;if(h==="ScatterChart")b=o,m=Wae;else if(h==="BarChart")b=zue(f,o,s,d),m=r1;else if(f==="radial"){var g=RR(o),y=g.cx,v=g.cy,x=g.radius,w=g.startAngle,S=g.endAngle;b={cx:y,cy:v,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},m=PP}else b={points:Bue(f,o,s)},m=t0;var O=zf(zf(zf(zf({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(m,O)}var Fue=["item"],Gue=["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 fA(e,t){return Vue(e)||Yue(e,t)||DR(e,t)||Kue()}function Kue(){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 Yue(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Vue(e){if(Array.isArray(e))return e}function dA(e,t){if(e==null)return{};var n=Xue(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 Xue(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 Que(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wue(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,kR(r.key),r)}}function Zue(e,t,n){return t&&Wue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jue(e,t,n){return t=Kh(t),ece(e,$R()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function ece(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 tce(e)}function tce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($R=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function nce(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&&R0(e,t)}function R0(e,t){return R0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},R0(e,t)}function ls(e){return ice(e)||ace(e)||DR(e)||rce()}function rce(){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 DR(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 ace(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ice(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 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 I(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){ae(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 ae(e,t,n){return t=kR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kR(e){var t=oce(e,"string");return os(t)=="symbol"?t:t+""}function oce(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 lce={xAxis:["bottom","top"],yAxis:["left","right"]},sce={width:"100%",height:"100%"},LR={x:0,y:0};function Bf(e){return e}var uce=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},cce=function(t,n,r,a){var i=n.find(function(d){return d&&d.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 I(I(I({},a),Ye(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return I(I(I({},a),Ye(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return LR},my=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&&V(a)&&V(i)?t.slice(a,i+1):[]};function zR(e){return e==="number"?[0,"auto"]:void 0}var D0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=my(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;h=ug(p,o.dataKey,a)}else h=f&&f[r]||l[r];return h?[].concat(ls(s),[EP(u,h)]):s},[])},pA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=uce(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=vte(o,l,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=D0(t,n,d,f),p=cce(r,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},fce=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,d=t.layout,f=t.children,h=t.stackOffset,p=SP(d,i);return r.reduce(function(b,m){var g,y=m.type.defaultProps!==void 0?I(I({},m.type.defaultProps),m.props):m.props,v=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=my(t.data,{graphicalItems:a.filter(function(K){var J,ye=o in K.props?K.props[o]:(J=K.type.defaultProps)===null||J===void 0?void 0:J[o];return ye===T}),dataStartIndex:s,dataEndIndex:u}),L=M.length,E,C,$;Lue(y.domain,w,v)&&(E=Qg(y.domain,null,w),p&&(v==="number"||O!=="auto")&&($=Ou(M,x,"category")));var P=zR(v);if(!E||E.length===0){var R,z=(R=y.domain)!==null&&R!==void 0?R:P;if(x){if(E=Ou(M,x,v),v==="category"&&p){var B=o7(E);S&&B?(C=E,E=$h(0,L)):S||(E=Fj(z,E,m).reduce(function(K,J){return K.indexOf(J)>=0?K:[].concat(ls(K),[J])},[]))}else if(v==="category")S?E=E.filter(function(K){return K!==""&&!ve(K)}):E=Fj(z,E,m).reduce(function(K,J){return K.indexOf(J)>=0||J===""||ve(J)?K:[].concat(ls(K),[J])},[]);else if(v==="number"){var q=wte(M,a.filter(function(K){var J,ye,ke=o in K.props?K.props[o]:(J=K.type.defaultProps)===null||J===void 0?void 0:J[o],fe="hide"in K.props?K.props.hide:(ye=K.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return ke===T&&(_||!fe)}),x,i,d);q&&(E=q)}p&&(v==="number"||O!=="auto")&&($=Ou(M,x,"category"))}else p?E=$h(0,L):l&&l[T]&&l[T].hasStack&&v==="number"?E=h==="expand"?[0,1]:AP(l[T].stackGroups,s,u):E=xP(M,a.filter(function(K){var J=o in K.props?K.props[o]:K.type.defaultProps[o],ye="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return J===T&&(_||!ye)}),v,d,!0);if(v==="number")E=P0(f,E,T,i,A),z&&(E=Qg(z,E,w));else if(v==="category"&&z){var G=z,F=E.every(function(K){return G.indexOf(K)>=0});F&&(E=G)}}return I(I({},b),{},ae({},T,I(I({},y),{},{axisType:i,domain:E,categoricalDomain:$,duplicateDomain:C,originalDomain:(g=y.domain)!==null&&g!==void 0?g:P,isCategorical:p,layout:d})))},{})},dce=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,d=t.layout,f=t.children,h=my(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=SP(d,i),m=-1;return r.reduce(function(g,y){var v=y.type.defaultProps!==void 0?I(I({},y.type.defaultProps),y.props):y.props,x=v[o],w=zR("number");if(!g[x]){m++;var S;return b?S=$h(0,p):l&&l[x]&&l[x].hasStack?(S=AP(l[x].stackGroups,s,u),S=P0(f,S,x,i)):(S=Qg(w,xP(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",d),a.defaultProps.allowDataOverflow),S=P0(f,S,x,i)),I(I({},g),{},ae({},x,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:Nn(lce,"".concat(i,".").concat(m%2),null),domain:S,originalDomain:w,isCategorical:b,layout:d})))}return g},{})},hce=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,d=t.children,f="".concat(a,"Id"),h=Zn(d,i),p={};return h&&h.length?p=fce(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=dce(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},pce=function(t){var n=Lo(t),r=$i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Nx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Sh(n,r)}},yA=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}},yce=function(t){return!t||!t.length?!1:t.some(function(n){var r=ra(n&&n.type);return r&&r.indexOf("Bar")>=0})},mA=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"}},mce=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,d=r.height,f=r.children,h=r.margin||{},p=bn(f,Zl),b=bn(f,ul),m=Object.keys(s).reduce(function(S,O){var A=s[O],_=A.orientation;return!A.mirror&&!A.hide?I(I({},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?I(I({},S),{},ae({},_,Nn(S,"".concat(_))+A.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=I(I({},g),m),v=y.bottom;p&&(y.bottom+=p.props.height||Zl.defaultProps.height),b&&n&&(y=xte(y,a,r,n));var x=u-y.left-y.right,w=d-y.top-y.bottom;return I(I({brushBottom:v},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},vce=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},BR=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,d=t.formatAxisMap,f=t.defaultProps,h=function(y,v){var x=v.graphicalItems,w=v.stackGroups,S=v.offset,O=v.updateId,A=v.dataStartIndex,_=v.dataEndIndex,T=y.barSize,M=y.layout,L=y.barGap,E=y.barCategoryGap,C=y.maxBarSize,$=mA(M),P=$.numericAxisName,R=$.cateAxisName,z=yce(x),B=[];return x.forEach(function(q,G){var F=my(y.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:_}),K=q.type.defaultProps!==void 0?I(I({},q.type.defaultProps),q.props):q.props,J=K.dataKey,ye=K.maxBarSize,ke=K["".concat(P,"Id")],fe=K["".concat(R,"Id")],$t={},vt=s.reduce(function($r,mn){var vy=v["".concat(mn.axisType,"Map")],c1=K["".concat(mn.axisType,"Id")];vy&&vy[c1]||mn.axisType==="zAxis"||co();var f1=vy[c1];return I(I({},$r),{},ae(ae({},mn.axisType,f1),"".concat(mn.axisType,"Ticks"),$i(f1)))},$t),Q=vt[R],se=vt["".concat(R,"Ticks")],de=w&&w[ke]&&w[ke].hasStack&&Mte(q,w[ke].stackGroups),H=ra(q.type).indexOf("Bar")>=0,Ve=Sh(Q,se),ge=[],Me=z&&gte({barSize:T,stackGroups:w,totalSize:vce(vt,R)});if(H){var ee,Le,Dt=ve(ye)?C:ye,nn=(ee=(Le=Sh(Q,se,!0))!==null&&Le!==void 0?Le:Dt)!==null&&ee!==void 0?ee:0;ge=bte({barGap:L,barCategoryGap:E,bandSize:nn!==Ve?nn:Ve,sizeList:Me[fe],maxBarSize:Dt}),nn!==Ve&&(ge=ge.map(function($r){return I(I({},$r),{},{position:I(I({},$r.position),{},{offset:$r.position.offset-nn/2})})}))}var mi=q&&q.type&&q.type.getComposedData;mi&&B.push({props:I(I({},mi(I(I({},vt),{},{displayedData:F,props:y,dataKey:J,item:q,bandSize:Ve,barPosition:ge,offset:S,stackedData:de,layout:M,dataStartIndex:A,dataEndIndex:_}))),{},ae(ae(ae({key:q.key||"item-".concat(G)},P,vt[P]),R,vt[R]),"animationId",O)),childIndex:g7(q,y.children),item:q})}),B},p=function(y,v){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,O=y.updateId;if(!Lw({props:x}))return null;var A=x.children,_=x.layout,T=x.stackOffset,M=x.data,L=x.reverseStackOrder,E=mA(_),C=E.numericAxisName,$=E.cateAxisName,P=Zn(A,r),R=Cte(M,P,"".concat(C,"Id"),"".concat($,"Id"),T,L),z=s.reduce(function(K,J){var ye="".concat(J.axisType,"Map");return I(I({},K),{},ae({},ye,hce(x,I(I({},J),{},{graphicalItems:P,stackGroups:J.axisType===C&&R,dataStartIndex:w,dataEndIndex:S}))))},{}),B=mce(I(I({},z),{},{props:x,graphicalItems:P}),v==null?void 0:v.legendBBox);Object.keys(z).forEach(function(K){z[K]=d(x,z[K],B,K.replace("Map",""),n)});var q=z["".concat($,"Map")],G=pce(q),F=h(x,I(I({},z),{},{dataStartIndex:w,dataEndIndex:S,updateId:O,graphicalItems:P,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:F,graphicalItems:P,offset:B,stackGroups:R},G),z)},b=function(g){function y(v){var x,w,S;return Que(this,y),S=Jue(this,y,[v]),ae(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(S,"accessibilityManager",new kue),ae(S,"handleLegendBBoxUpdate",function(O){if(O){var A=S.state,_=A.dataStartIndex,T=A.dataEndIndex,M=A.updateId;S.setState(I({legendBBox:O},p({props:S.props,dataStartIndex:_,dataEndIndex:T,updateId:M},I(I({},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 I({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 _=I(I({},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?I(I({},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=v7(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 _=I(I({},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&&Dm.emit(km,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(I({dataStartIndex:L,dataEndIndex:E},p({props:S.props,dataStartIndex:L,dataEndIndex:E,updateId:M},S.state)));else if(O.activeTooltipIndex!==void 0){var C=O.chartX,$=O.chartY,P=O.activeTooltipIndex,R=S.state,z=R.offset,B=R.tooltipTicks;if(!z)return;if(typeof T=="function")P=T(B,O);else if(T==="value"){P=-1;for(var q=0;q<B.length;q++)if(B[q].value===O.activeLabel){P=q;break}}var G=I(I({},z),{},{x:z.left,y:z.top}),F=Math.min(C,G.x+G.width),K=Math.min($,G.y+G.height),J=B[P]&&B[P].value,ye=D0(S.state,S.props.data,P),ke=B[P]?{x:_==="horizontal"?B[P].coordinate:F,y:_==="horizontal"?K:B[P].coordinate}:LR;S.setState(I(I({},O),{},{activeLabel:J,activeCoordinate:ke,activePayload:ye,activeTooltipIndex:P}))}else S.setState(O)}),ae(S,"renderCursor",function(O){var A,_=S.state,T=_.isTooltipActive,M=_.activeCoordinate,L=_.activePayload,E=_.offset,C=_.activeTooltipIndex,$=_.tooltipAxisBandSize,P=S.getTooltipEventType(),R=(A=O.props.active)!==null&&A!==void 0?A:T,z=S.props.layout,B=O.key||"_recharts-cursor";return k.createElement(que,{key:B,activeCoordinate:M,activePayload:L,activeTooltipIndex:C,chartName:n,element:O,isActive:R,layout:z,offset:E,tooltipAxisBandSize:$,tooltipEventType:P})}),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?I(I({},L),O.props):O.props,C=M&&M[E["".concat(T,"Id")]];return j.cloneElement(O,I(I({},C),{},{className:me(T,C.className),key:O.key||"".concat(A,"-").concat(_),ticks:$i(C,!0)}))}),ae(S,"renderPolarGrid",function(O){var A=O.props,_=A.radialLines,T=A.polarAngles,M=A.polarRadius,L=S.state,E=L.radiusAxisMap,C=L.angleAxisMap,$=Lo(E),P=Lo(C),R=P.cx,z=P.cy,B=P.innerRadius,q=P.outerRadius;return j.cloneElement(O,{polarAngles:Array.isArray(T)?T:$i(P,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(M)?M:$i($,!0).map(function(G){return G.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),C=gP({children:_,formattedGraphicalItems:O,legendWidth:E,legendContent:u});if(!C)return null;var $=C.item,P=dA(C,Fue);return j.cloneElement($,I(I({},P),{},{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(_,lr);if(!M)return null;var L=S.state,E=L.isTooltipActive,C=L.activeCoordinate,$=L.activePayload,P=L.activeLabel,R=L.offset,z=(O=M.props.active)!==null&&O!==void 0?O:E;return j.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:z,label:P,payload:z?$:[],coordinate:C,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,C=M.dataEndIndex,$=M.updateId;return j.cloneElement(O,{key:O.key||"_recharts-brush",onChange:$f(S.handleBrushChange,O.props.onChange),data:T,x:V(O.props.x)?O.props.x:L.left,y:V(O.props.y)?O.props.y:L.top+L.height+L.brushBottom-(_.bottom||0),width:V(O.props.width)?O.props.width:L.width,startIndex:E,endIndex:C,updateId:"brush-".concat($)})}),ae(S,"renderReferenceElement",function(O,A,_){if(!O)return null;var T=S,M=T.clipPathId,L=S.state,E=L.xAxisMap,C=L.yAxisMap,$=L.offset,P=O.type.defaultProps||{},R=O.props,z=R.xAxisId,B=z===void 0?P.xAxisId:z,q=R.yAxisId,G=q===void 0?P.yAxisId:q;return j.cloneElement(O,{key:O.key||"".concat(A,"-").concat(_),xAxis:E[B],yAxis:C[G],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),ae(S,"renderActivePoints",function(O){var A=O.item,_=O.activePoint,T=O.basePoint,M=O.childIndex,L=O.isRange,E=[],C=A.props.key,$=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,P=$.activeDot,R=$.dataKey,z=I(I({index:M,dataKey:R,cx:_.x,cy:_.y,r:4,fill:n1(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},oe(P,!1)),Yd(P));return E.push(y.renderActiveDot(P,z,"".concat(C,"-activePoint-").concat(M))),T?E.push(y.renderActiveDot(P,I(I({},z),{},{cx:T.x,cy:T.y}),"".concat(C,"-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,C=L.tooltipAxis,$=L.activeTooltipIndex,P=L.activeLabel,R=S.props.children,z=bn(R,lr),B=T.props,q=B.points,G=B.isRange,F=B.baseLine,K=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,J=K.activeDot,ye=K.hide,ke=K.activeBar,fe=K.activeShape,$t=!!(!ye&&E&&z&&(J||ke||fe)),vt={};M!=="axis"&&z&&z.props.trigger==="click"?vt={onClick:$f(S.handleItemMouseEnter,O.props.onClick)}:M!=="axis"&&(vt={onMouseLeave:$f(S.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:$f(S.handleItemMouseEnter,O.props.onMouseEnter)});var Q=j.cloneElement(O,I(I({},T.props),vt));function se(mn){return typeof C.dataKey=="function"?C.dataKey(mn.payload):null}if($t)if($>=0){var de,H;if(C.dataKey&&!C.allowDuplicatedCategory){var Ve=typeof C.dataKey=="function"?se:"payload.".concat(C.dataKey.toString());de=ug(q,Ve,P),H=G&&F&&ug(F,Ve,P)}else de=q==null?void 0:q[$],H=G&&F&&F[$];if(fe||ke){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:$;return[j.cloneElement(O,I(I(I({},T.props),vt),{},{activeIndex:ge})),null,null]}if(!ve(de))return[Q].concat(ls(S.renderActivePoints({item:T,activePoint:de,basePoint:H,childIndex:$,isRange:G})))}else{var Me,ee=(Me=S.getItemByXY(S.state.activeCoordinate))!==null&&Me!==void 0?Me:{graphicalItem:Q},Le=ee.graphicalItem,Dt=Le.item,nn=Dt===void 0?O:Dt,mi=Le.childIndex,$r=I(I(I({},T.props),vt),{},{activeIndex:mi});return[j.cloneElement(nn,$r),null,null]}return G?[Q,null,null]:[Q,null]}),ae(S,"renderCustomized",function(O,A,_){return j.cloneElement(O,I(I({key:"recharts-customized-".concat(_)},S.props),S.state))}),ae(S,"renderMap",{CartesianGrid:{handler:Bf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Bf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Bf},YAxis:{handler:Bf},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=v.id)!==null&&x!==void 0?x:Jc("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=gM(S.triggeredAfterMouseMove,(w=v.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return nce(y,g),Zue(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,lr);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=D0(this.state,S,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+O)/2,$=A==="horizontal",P=$?{x:E,y:C}:{y:E,x:C},R=this.state.formattedGraphicalItems.find(function(B){var q=B.item;return q.type.name==="Scatter"});R&&(P=I(I({},P),R.props.points[T].tooltipPosition),L=R.props.points[T].tooltipPayload);var z={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:L,activeCoordinate:P};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){fg([bn(x.children,lr)],[bn(this.props.children,lr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=bn(this.props.children,lr);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=GQ(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,C=this.getTooltipEventType(),$=pA(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&L&&E){var P=Lo(L).scale,R=Lo(E).scale,z=P&&P.invert?P.invert(A.chartX):null,B=R&&R.invert?R.invert(A.chartY):null;return I(I({},A),{},{xValue:z,yValue:B},$)}return $?I(I({},A),$):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,C=L.radiusAxisMap;if(E&&C){var $=Lo(E);return Yj({x:A,y:_},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=bn(x,lr),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=Yd(this.props,this.handleOuterEvent);return I(I({},A),O)}},{key:"addListener",value:function(){Dm.on(km,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dm.removeListener(km,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 k.createElement("defs",null,k.createElement("clipPath",{id:x},k.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=fA(S,2),A=O[0],_=O[1];return I(I({},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=fA(S,2),A=O[0],_=O[1];return I(I({},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?I(I({},L.type.defaultProps),L.props):L.props,C=ra(L.type);if(C==="Bar"){var $=(M.data||[]).find(function(B){return Mae(x,B)});if($)return{graphicalItem:T,payload:$}}else if(C==="RadialBar"){var P=(M.data||[]).find(function(B){return Yj(x,B)});if(P)return{graphicalItem:T,payload:P}}else if(oy(T,O)||ly(T,O)||xc(T,O)){var R=boe({graphicalItem:T,activeTooltipItem:O,itemData:E.data}),z=E.activeIndex===void 0?R:E.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:z}),payload:xc(T,O)?E.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!Lw(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,C=dA(w,Gue),$=oe(C,!1);if(M)return k.createElement(Z2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement(hg,el({},$,{width:A,height:_,title:L,desc:E}),this.renderClipPath(),Bw(S,this.renderMap)));if(this.props.accessibilityLayer){var P,R;$.tabIndex=(P=this.props.tabIndex)!==null&&P!==void 0?P:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return k.createElement(Z2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement("div",el({className:me("recharts-wrapper",O),style:I({position:"relative",cursor:"default",width:A,height:_},T)},z,{ref:function(q){x.container=q}}),k.createElement(hg,el({},$,{width:A,height:_,title:L,desc:E,style:sce}),this.renderClipPath(),Bw(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ae(b,"displayName",n),ae(b,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ae(b,"getDerivedStateFromProps",function(g,y){var v=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=yA(g);return I(I(I({},E),{},{updateId:0},p(I(I({props:g},E),{},{updateId:0}),y)),{},{prevDataKey:v,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:w})}if(v!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||_!==y.prevStackOffset||!sl(T,y.prevMargin)){var C=yA(g),$={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},P=I(I({},pA(y,x,A)),{},{updateId:y.updateId+1}),R=I(I(I({},C),$),P);return I(I(I({},R),p(I({props:g},R),y)),{},{prevDataKey:v,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:w})}if(!fg(w,y.prevChildren)){var z,B,q,G,F=bn(w,Zl),K=F&&(z=(B=F.props)===null||B===void 0?void 0:B.startIndex)!==null&&z!==void 0?z:M,J=F&&(q=(G=F.props)===null||G===void 0?void 0:G.endIndex)!==null&&q!==void 0?q:L,ye=K!==M||J!==L,ke=!ve(x),fe=ke&&!ye?y.updateId:y.updateId+1;return I(I({updateId:fe},p(I(I({props:g},y),{},{updateId:fe,dataStartIndex:K,dataEndIndex:J}),y)),{},{prevChildren:w,dataStartIndex:K,dataEndIndex:J})}return null}),ae(b,"renderActiveDot",function(g,y,v){var x;return j.isValidElement(g)?x=j.cloneElement(g,y):ue(g)?x=g(y):x=k.createElement(a1,y),k.createElement($e,{className:"recharts-active-dot",key:v},x)});var m=j.forwardRef(function(y,v){return k.createElement(b,el({},y,{ref:v}))});return m.displayName=b.displayName,m},gce=BR({chartName:"BarChart",GraphicalChild:Oo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:py},{axisType:"yAxis",AxisComp:yy}],formatAxisMap:Jle}),bce=BR({chartName:"PieChart",GraphicalChild:Sa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:iy},{axisType:"radiusAxis",AxisComp:ry}],formatAxisMap:Ute,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 c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[c.jsx("div",{className:`p-3 rounded-lg ${o}`,children:c.jsx(n,{size:20})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-gray-400",children:e}),c.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&c.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}const vA=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function xce(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=Dn({queryKey:["dashboard",e],queryFn:()=>J6(e),refetchInterval:3e4});if(n)return c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});if(!t)return c.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 c.jsxs("div",{className:"space-y-6",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[c.jsx(Ro,{title:"전체 매장",value:t.totalStores||0,icon:rg,color:"brand"}),c.jsx(Ro,{title:"운영 매장",value:t.activeStores||0,icon:rg,color:"green"}),c.jsx(Ro,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:AC,color:"red"}),c.jsx(Ro,{title:"긴급 알람",value:t.criticalAlarms||0,icon:mp,color:"red"}),c.jsx(Ro,{title:"온라인 장치",value:t.onlineDevices||0,icon:Fu,color:"green"}),c.jsx(Ro,{title:"POS 대기",value:t.pendingPosCvt||0,icon:Kc,color:"yellow"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"장치 상태 현황"}),c.jsx(kO,{width:"100%",height:200,children:c.jsxs(bce,{children:[c.jsx(Sa,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>c.jsx(Hp,{fill:vA[o%vA.length]},o))}),c.jsx(lr,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}})]})})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"오늘의 작업/POS 현황"}),c.jsx(kO,{width:"100%",height:200,children:c.jsxs(gce,{data:a,children:[c.jsx(py,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(yy,{tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(lr,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),c.jsx(Oo,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"오늘 작업"}),c.jsx("p",{className:"text-2xl font-bold text-brand",children:t.totalWorkToday||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["완료: ",t.completedWorkToday||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"전체 알람"}),c.jsx("p",{className:"text-2xl font-bold text-yellow-400",children:t.totalAlarms||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["미해결: ",t.unresolvedAlarms||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"전체 장치"}),c.jsx("p",{className:"text-2xl font-bold text-accent",children:t.totalDevices||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["오프라인: ",t.offlineDevices||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"POS 처리(오늘)"}),c.jsx("p",{className:"text-2xl font-bold text-green-400",children:t.processedPosCvtToday||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["대기: ",t.pendingPosCvt||0]})]})]})]})}function Sce(){const e=$n(),[t,n]=j.useState(null),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["stores",r],queryFn:()=>nz({keyword:r||void 0})}),l=Pt({mutationFn:u=>u.id?az(u.id,u):rz(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=Pt({mutationFn:iz,onSuccess:()=>e.invalidateQueries({queryKey:["stores"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"매장 관리"}),c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.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:[c.jsx(z5,{size:14})," 매장 추가"]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","코드","매장명","주소","담당자","상태","액션"].map(u=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:u.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300 font-mono text-xs",children:u.storeCode}),c.jsx("td",{className:"px-4 py-3 text-white",children:u.storeName}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs truncate max-w-xs",children:u.address}),c.jsx("td",{className:"px-4 py-3 text-gray-400",children:u.managerName}),c.jsx("td",{className:"px-4 py-3",children:c.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?"운영":"중지"})}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:c.jsx(U5,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"매장이 없습니다"})})]})]})}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:t.id?"매장 수정":"매장 추가"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(V5,{size:16})})]}),c.jsx(wce,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function wce({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 c.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})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),l==="select"?c.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=>c.jsx("option",{value:u,children:u},u))}):c.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)),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function Oce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["templates"],queryFn:()=>oz()}),r=Pt({mutationFn:lz,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});return n?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"flex items-center justify-between",children:c.jsx("h1",{className:"text-xl font-semibold text-white",children:"ESL 템플릿"})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[t.map(a=>c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsxs("div",{className:"flex justify-between items-start mb-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-white",children:a.templateName}),c.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[a.tenantCode," · ",a.templateType]})]}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})]}),c.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:c.jsxs("div",{className:"text-center",children:[c.jsxs("p",{className:"text-xs text-gray-400",children:[a.width,"×",a.height,"px"]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:a.description})]})}),c.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",a.templateCode]})]},a.id)),t.length===0&&c.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",children:"템플릿이 없습니다"})]})]})}function jce(){const e=$n(),[t,n]=j.useState("PENDING"),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["pos-cvt",t,r],queryFn:()=>sz({status:t||void 0,keyword:r||void 0})}),l=Pt({mutationFn:uz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=Pt({mutationFn:cz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"POS 가격 변환"}),c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.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=>c.jsx("option",{value:u,children:u||"전체"},u))})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","상품코드","상품명","정가","판매가","상태","수신일시","액션"].map(u=>c.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>{var d,f;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:u.storeName||"-"}),c.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),c.jsx("td",{className:"px-3 py-3 text-white text-xs",children:u.productName}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(d=u.price)==null?void 0:d.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-accent text-xs",children:(f=u.salePrice)==null?void 0:f.toLocaleString()}),c.jsx("td",{className:"px-3 py-3",children:c.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})}),c.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-3 py-3",children:u.status==="PENDING"&&c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>l.mutate(u.id),title:"처리",className:"text-green-400 hover:text-green-300",children:c.jsx(Wb,{size:14})}),c.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:c.jsx(m5,{size:14})})]})})]},u.id)}),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"데이터가 없습니다"})})]})]})})]})}function Ace({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 c.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${n}`,children:e})}function Ece(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState("OPEN"),{data:i=[],isLoading:o}=Dn({queryKey:["alarms",t,r],queryFn:()=>fz({severity:t||void 0,status:r||void 0})}),l=Pt({mutationFn:({id:u,resolution:d})=>dz(u,d),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=Pt({mutationFn:hz,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"알람 관리"}),c.jsxs("div",{className:"flex gap-2",children:[c.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:[c.jsx("option",{value:"",children:"전체 심각도"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(u=>c.jsx("option",{value:u,children:u},u))]}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),["OPEN","ACKNOWLEDGED","RESOLVED"].map(u=>c.jsx("option",{value:u,children:u},u))]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["매장","유형","심각도","메시지","상태","발생일시","액션"].map(u=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30 transition-colors",children:[c.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.storeName||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.alarmType}),c.jsx("td",{className:"px-4 py-3",children:c.jsx(Ace,{severity:u.severity})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 max-w-xs truncate",children:u.message}),c.jsx("td",{className:"px-4 py-3",children:c.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})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[u.status!=="RESOLVED"&&c.jsx("button",{onClick:()=>l.mutate({id:u.id,resolution:"운영자 확인 후 해결"}),className:"text-green-400 hover:text-green-300",title:"해결 처리",children:c.jsx(Wb,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"알람이 없습니다"})})]})]})})]})}const _ce={ONLINE:c.jsx(MC,{size:14,className:"text-green-400"}),OFFLINE:c.jsx(NC,{size:14,className:"text-red-400"}),ERROR:c.jsx(mp,{size:14,className:"text-orange-400"}),UPDATING:c.jsx(Fu,{size:14,className:"text-yellow-400"})},Tce={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 Cce(){const e=$n(),[t,n]=k.useState(""),[r,a]=k.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["hcore",t,r],queryFn:()=>pz({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=Pt({mutationFn:({id:s,status:u})=>yz(s,u),onSuccess:()=>e.invalidateQueries({queryKey:["hcore"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"HCore 장치 현황"}),c.jsxs("div",{className:"flex gap-2",children:[c.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:[c.jsx("option",{value:"",children:"전체 유형"}),["GATEWAY","HUB","ESL_DEVICE"].map(s=>c.jsx("option",{value:s,children:s},s))]}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),["ONLINE","OFFLINE","ERROR","UPDATING"].map(s=>c.jsx("option",{value:s,children:s},s))]})]})]}),c.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=>c.jsxs("div",{className:`border rounded-lg p-4 ${Tce[s.status]||"border-edge bg-card"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[_ce[s.status],c.jsx("span",{className:"text-xs font-mono text-gray-300",children:s.deviceId})]}),c.jsx("span",{className:"text-xs text-brand",children:s.deviceType})]}),c.jsx("p",{className:"text-xs text-gray-400",children:s.storeName||"미배정"}),c.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["FW: ",s.firmwareVersion||"-"]}),s.ipAddress&&c.jsx("p",{className:"text-xs text-gray-600 font-mono",children:s.ipAddress}),s.batteryLevel!=null&&c.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[c.jsx(jC,{size:12,className:s.batteryLevel<20?"text-red-400":"text-gray-400"}),c.jsxs("span",{className:`text-xs ${s.batteryLevel<20?"text-red-400":"text-gray-400"}`,children:[s.batteryLevel,"%"]})]}),s.status==="OFFLINE"&&c.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&&c.jsx("div",{className:"col-span-4 text-center text-gray-500 py-8",children:"장치가 없습니다"})]})]})}const Nce={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 Mce(){const{data:e=[],isLoading:t}=Dn({queryKey:["works"],queryFn:()=>mz()});return t?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"작업 이력"}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","작업유형","작업내용","담당자","상태","시작일시","완료일시"].map(n=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:n},n))})}),c.jsxs("tbody",{children:[e.map(n=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:n.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.storeName||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:n.workType}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",children:n.workContent}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.workerName}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${Nce[n.status]||"bg-gray-500/20 text-gray-400"}`,children:n.status})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.startedAt?new Date(n.startedAt).toLocaleString("ko-KR"):"-"}),c.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&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"작업 이력이 없습니다"})})]})]})})]})}function Pce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["firmware"],queryFn:()=>vz()}),r=Pt({mutationFn:gz,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});return n?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"펌웨어 관리"}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["버전","테넌트","장치유형","파일명","크기","체크섬","최신","등록일","액션"].map(a=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:a},a))})}),c.jsxs("tbody",{children:[t.map(a=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand font-mono text-xs",children:a.firmwareVersion}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.deviceType}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.fileName}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.fileSize?`${(a.fileSize/1024).toFixed(1)}KB`:"-"}),c.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)+"...":"-"}),c.jsx("td",{className:"px-4 py-3",children:a.latest&&c.jsx(H5,{size:14,className:"text-yellow-400",fill:"currentColor"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:a.createdAt?new Date(a.createdAt).toLocaleDateString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})})]},a.id)),t.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"펌웨어가 없습니다"})})]})]})})]})}function Rce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["users"],queryFn:()=>bz()}),r=Pt({mutationFn:xz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})}),a=Pt({mutationFn:o=>Pz(o),onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});function i(o){confirm(`'${o.username}' 사용자의 OTP를 초기화하시겠습니까?
초기화하면 다음 로그인 시 재등록해야 합니다.`)&&a.mutate(o.username)}return n?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"사용자 관리"}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["아이디","테넌트","역할","이메일","전화","상태","마지막 로그인","액션"].map(o=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),c.jsx("tbody",{children:t.map(o=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-white font-medium",children:o.username}),c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:o.tenantCode||"SUPER"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${o.role==="ADMIN"?"bg-red-500/20 text-red-400":o.role==="MANAGER"?"bg-brand/20 text-brand":"bg-gray-500/20 text-gray-400"}`,children:o.role})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:o.email||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:o.phone||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.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?"활성":"비활성"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:o.lastLoginAt?new Date(o.lastLoginAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:()=>i(o),title:"OTP 초기화",className:"text-gray-400 hover:text-brand",children:c.jsx(Kc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(o.id)},title:"삭제",className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})]})})]},o.id))})]})})]})}function $ce(){const e=$n(),[t,n]=j.useState(""),{data:r=[],isLoading:a}=Dn({queryKey:["products",t],queryFn:()=>Sz({keyword:t||void 0})}),i=Pt({mutationFn:wz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"상품/가격 관리"}),c.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"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","상품코드","상품명","카테고리","정가","판매가","화폐","상태","액션"].map(o=>c.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),c.jsxs("tbody",{children:[r.map(o=>{var l,s;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:o.tenantCode}),c.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.storeName||"-"}),c.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:o.productCode}),c.jsx("td",{className:"px-3 py-3 text-white",children:o.productName}),c.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.category}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(l=o.price)==null?void 0:l.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-accent text-xs font-medium",children:(s=o.salePrice)==null?void 0:s.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:o.currency}),c.jsx("td",{className:"px-3 py-3",children:c.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?"활성":"비활성"})}),c.jsx("td",{className:"px-3 py-3",children:c.jsx("button",{onClick:()=>{confirm("삭제?")&&i.mutate(o.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})})]},o.id)}),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})})]})}function Dce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["tenants"],queryFn:()=>ez()}),r=Pt({mutationFn:tz,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return n?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):localStorage.getItem("esn_role")!=="ADMIN"?c.jsx("div",{className:"text-center py-16",children:c.jsx("p",{className:"text-gray-400",children:"관리자 전용 메뉴입니다."})}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:t.map(i=>c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(_C,{size:18,className:"text-brand"}),c.jsx("span",{className:"font-bold text-brand",children:i.tenantCode})]}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(i.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(go,{size:14})})]}),c.jsx("p",{className:"text-sm text-white",children:i.tenantName}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:i.description}),c.jsx("div",{className:"mt-3",children:c.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 kce(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),s=Pt({mutationFn:Oz,onSuccess:d=>r(d.analysis||JSON.stringify(d)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=Pt({mutationFn:jz,onSuccess:d=>l(d.category||JSON.stringify(d)),onError:()=>l("Ollama 응답 실패 — 서비스를 확인해주세요.")});return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[c.jsx(EC,{size:20,className:"text-brand"})," AI 분석"]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[c.jsx(mp,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),c.jsx("textarea",{value:e,onChange:d=>t(d.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"}),c.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:[c.jsx(ag,{size:14}),s.isPending?"분석 중...":"Ollama 분석"]}),n&&c.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:n})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[c.jsx(F5,{size:16,className:"text-accent"})," POS 데이터 자동 분류"]}),c.jsx("textarea",{value:a,onChange:d=>i(d.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"}),c.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:[c.jsx(ag,{size:14}),u.isPending?"분류 중...":"Ollama 분류"]}),o&&c.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:o})]})]})}const Lce={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"},zce=e=>e==="ONLINE"?c.jsx(MC,{size:13,className:"text-green-400"}):c.jsx(NC,{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,d]=j.useState({tenantCode:"",storeId:"",deviceId:"",productCode:"",locationCode:"",templateCode:"EM-PRICE-STD"}),{data:f=[],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(m=>m.data.data),refetchInterval:2e4}),p=Pt({mutationFn:m=>Y.post("/tag-binding",{...m,storeId:Number(m.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=Pt({mutationFn:m=>Y.put(`/tag-binding/${m}/unbind`),onSuccess:()=>e.invalidateQueries({queryKey:["tag-binding"]})});return h?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"태그 바인딩 관리"}),c.jsxs("button",{onClick:()=>s(m=>!m),className:"flex items-center gap-2 px-3 py-1.5 bg-brand text-white rounded text-sm",children:[c.jsx(CC,{size:14})," 바인딩 추가"]})]}),l&&c.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-4 space-y-3",children:[c.jsx("h2",{className:"text-sm font-medium text-white",children:"e-paper 태그 → 상품 바인딩"}),c.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:m,label:g,ph:y})=>c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:g}),c.jsx("input",{value:u[m],onChange:v=>d(x=>({...x,[m]:v.target.value})),placeholder:y,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},m))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>p.mutate(u),className:"px-3 py-1.5 bg-brand text-white rounded text-sm",children:"바인딩 저장"}),c.jsx("button",{onClick:()=>s(!1),className:"px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:"취소"})]})]}),c.jsx("div",{className:"flex gap-3",children:[{val:t,set:n,ph:"테넌트 필터"},{val:i,set:o,ph:"태그ID / 상품코드 / 위치 검색"}].map(({val:m,set:g,ph:y},v)=>c.jsx("input",{value:m,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"},v))}),c.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[f.map(m=>c.jsxs("div",{className:`bg-panel border rounded-lg p-4 flex items-center justify-between
              ${m.deviceStatus==="ONLINE"?"border-green-500/20":"border-red-500/20"}`,children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[zce(m.deviceStatus),m.batteryLevel!==null&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[c.jsx(jC,{size:11}),c.jsxs("span",{className:m.batteryLevel<20?"text-red-400":"",children:[m.batteryLevel,"%"]})]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-mono text-brand",children:m.deviceId}),c.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[c.jsx(P5,{size:11,className:"text-gray-500"}),c.jsx("span",{className:"text-xs text-gray-400",children:m.locationCode||"위치 미지정"}),c.jsx("span",{className:"text-xs text-gray-600",children:"|"}),c.jsx("span",{className:"text-xs text-gray-300",children:m.storeName})]})]}),c.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[c.jsx("div",{className:"text-sm text-white",children:m.productName||m.productCode}),c.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",c.jsx("span",{className:"text-brand font-mono",children:m.lastPrice?m.lastPrice.toLocaleString()+"원":"미전송"}),m.lastUpdatedAt&&c.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(m.lastUpdatedAt).toLocaleString()]})]}),c.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",m.templateCode]})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${Lce[m.bindStatus]||""}`,children:m.bindStatus}),c.jsx("button",{onClick:()=>{confirm(`태그 ${m.deviceId} 언바인딩하겠습니까?`)&&b.mutate(m.id)},className:"p-1.5 rounded bg-edge text-gray-400 hover:text-red-400",title:"언바인딩",children:c.jsx(_5,{size:14})})]})]},m.id)),f.length===0&&c.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const zm={PENDING:{icon:c.jsx(b5,{size:13}),color:"text-yellow-400 bg-yellow-500/10 border-yellow-500/30",label:"대기"},SENDING:{icon:c.jsx(iw,{size:13}),color:"text-blue-400 bg-blue-500/10 border-blue-500/30",label:"전송중"},SENT:{icon:c.jsx(iw,{size:13}),color:"text-cyan-400 bg-cyan-500/10 border-cyan-500/30",label:"전송됨"},CONFIRMED:{icon:c.jsx(Wb,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:c.jsx(v5,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:c.jsx(p5,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function Ice(){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=Pt({mutationFn:h=>Y.put(`/update-queue/${h}/cancel`),onSuccess:()=>e.invalidateQueries({queryKey:["update-queue"]})}),u=i.filter(h=>h.status==="PENDING").length,d=i.filter(h=>h.status==="FAILED").length,f=i.filter(h=>h.status==="CONFIRMED").length;return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"e-paper 가격 업데이트 큐"}),c.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:[c.jsx(Kc,{size:13})," 새로고침"]})]}),c.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:d,color:"text-red-400",bg:"bg-red-500/5 border-red-500/20"},{label:"완료",count:f,color:"text-green-400",bg:"bg-green-500/5 border-green-500/20"}].map(({label:h,count:p,color:b,bg:m})=>c.jsxs("div",{className:`border rounded-lg p-3 ${m}`,children:[c.jsx("div",{className:`text-2xl font-bold font-mono ${b}`,children:p}),c.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:h})]},h))}),c.jsxs("div",{className:"flex gap-3",children:[c.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"}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),Object.entries(zm).map(([h,p])=>c.jsx("option",{value:h,children:p.label},h))]})]}),c.jsxs("div",{className:"overflow-x-auto",children:[c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-edge text-xs text-gray-500",children:[c.jsx("th",{className:"text-left py-2 px-3",children:"#"}),c.jsx("th",{className:"text-left py-2 px-3",children:"태그 ID"}),c.jsx("th",{className:"text-left py-2 px-3",children:"위치"}),c.jsx("th",{className:"text-left py-2 px-3",children:"상품"}),c.jsx("th",{className:"text-right py-2 px-3",children:"가격"}),c.jsx("th",{className:"text-center py-2 px-3",children:"우선순위"}),c.jsx("th",{className:"text-center py-2 px-3",children:"상태"}),c.jsx("th",{className:"text-center py-2 px-3",children:"재시도"}),c.jsx("th",{className:"text-left py-2 px-3",children:"등록 시각"}),c.jsx("th",{className:"text-center py-2 px-3",children:"액션"})]})}),c.jsx("tbody",{children:i.map(h=>{var b;const p=zm[h.status]||zm.PENDING;return c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-edge/30",children:[c.jsx("td",{className:"py-2 px-3 text-gray-500 font-mono text-xs",children:h.id}),c.jsx("td",{className:"py-2 px-3 text-brand font-mono text-xs",children:h.deviceId}),c.jsx("td",{className:"py-2 px-3 text-gray-300 text-xs",children:h.locationCode||"-"}),c.jsx("td",{className:"py-2 px-3 text-white text-xs",children:h.productName||h.productCode}),c.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&&c.jsxs("span",{className:"ml-1 text-red-400",children:["→ ",h.newSalePrice.toLocaleString(),"원"]})]}),c.jsx("td",{className:"py-2 px-3 text-center",children:c.jsxs("span",{className:`text-xs font-mono ${h.priority<=2?"text-red-400":"text-gray-400"}`,children:["P",h.priority]})}),c.jsx("td",{className:"py-2 px-3 text-center",children:c.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]})}),c.jsxs("td",{className:"py-2 px-3 text-center text-xs text-gray-400",children:[h.retryCount,"/",h.maxRetry]}),c.jsx("td",{className:"py-2 px-3 text-xs text-gray-500",children:new Date(h.createdAt).toLocaleString()}),c.jsx("td",{className:"py-2 px-3 text-center",children:["PENDING","FAILED"].includes(h.status)&&c.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&&c.jsx("div",{className:"text-center text-gray-500 py-12",children:"업데이트 큐가 비어있습니다."})]})]})}const IR="https://itsm.zioinfo.co.kr",Bm=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,IR);function Uce(){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(`${IR}/api/app/public-latest`).then(d=>d.json()).then(d=>t({...d,qr_url:Bm(d.qr_url),landing_url:Bm(d.landing_url),download_url:Bm(d.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 c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(id,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-semibold text-white",children:"GUARDiA 통합 메신저 앱 설치"})]}),c.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:[c.jsx(Kc,{size:15})," 새로고침"]})]}),c.jsxs("p",{className:"text-sm text-gray-400 mb-6",children:["QR 코드를 스캔하면 ",c.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 없이 바로 설치할 수 있으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&c.jsx("div",{className:"text-gray-400 text-sm",children:"불러오는 중…"}),a&&c.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&&c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-8 text-center text-gray-400",children:[c.jsx(id,{size:36,className:"mx-auto mb-3 text-gray-600"}),"아직 등록된 앱 버전이 없습니다.",c.jsx("br",{}),c.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[c.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?c.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"}):c.jsx(id,{size:64,className:"text-gray-400"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold text-white",children:e.app_name||"GUARDiA Messenger"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand text-white text-xs font-semibold",children:["v",e.version]})]}),c.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&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"릴리즈 노트"}),c.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})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&c.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:[c.jsx(w5,{size:15})," 설치 페이지 열기"]}),e.download_url&&c.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:[c.jsx(S5,{size:15})," APK 직접 다운로드"]}),c.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?c.jsx(h5,{size:15,className:"text-green-400"}):c.jsx(x5,{size:15}),o?"복사됨":"다운로드 링크 복사"]})]})]})]})]})}const Im=8;function If(e,t){var n,r,a;return((n=e==null?void 0:e.response)==null?void 0:n.status)===403?"권한이 없습니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||t}function Hce(){const[e,t]=j.useState(""),[n,r]=j.useState(null),[a,i]=j.useState("idle"),[o,l]=j.useState(""),[s,u]=j.useState(""),[d,f]=j.useState(""),[h,p]=j.useState(!1),[b,m]=j.useState(null),[g,y]=j.useState(""),[v,x]=j.useState(""),[w,S]=j.useState(""),[O,A]=j.useState(!1),[_,T]=j.useState(!1),[M,L]=j.useState(null),E=()=>rN().then(F=>{var J;const K=((J=F.data)==null?void 0:J.data)||{};t(K.username||localStorage.getItem("esn_user")||""),typeof K.otpEnabled=="boolean"?r(K.otpEnabled):typeof K.verifyMethod=="string"&&r(K.verifyMethod==="OTP")}).catch(()=>{t(localStorage.getItem("esn_user")||"")});j.useEffect(()=>{E()},[]);const C=async()=>{var F;m(null),p(!0);try{const J=((F=(await Tz()).data)==null?void 0:F.data)||{};l(J.qrImage||""),u(J.secret||""),f(""),i("setup")}catch(K){m({ok:!1,text:If(K,"OTP 등록을 시작하지 못했습니다.")})}finally{p(!1)}},$=async()=>{m(null),p(!0);try{await Cz(d),u(""),l(""),f(""),i("done"),r(!0),m({ok:!0,text:"2차 인증이 활성화되었습니다."})}catch(F){m({ok:!1,text:If(F,"코드가 일치하지 않거나 만료되었습니다.")})}finally{p(!1)}},P=()=>{i("idle"),u(""),l(""),f(""),m(null)},R=async()=>{if(window.confirm("Authenticator 2차 인증을 해제하시겠습니까?")){m(null),p(!0);try{await Nz(),i("idle"),u(""),l(""),r(!1),m({ok:!0,text:"2차 인증이 해제되었습니다."})}catch(F){m({ok:!1,text:If(F,"OTP 해제에 실패했습니다.")})}finally{p(!1)}}},z=async()=>{if(L(null),!g){L({ok:!1,text:"현재 비밀번호를 입력하세요."});return}if(v.length<Im){L({ok:!1,text:`새 비밀번호는 최소 ${Im}자 이상이어야 합니다.`});return}if(v!==w){L({ok:!1,text:"새 비밀번호가 일치하지 않습니다."});return}if(v===g){L({ok:!1,text:"새 비밀번호는 현재 비밀번호와 달라야 합니다."});return}T(!0);try{await Mz(g,v),y(""),x(""),S(""),L({ok:!0,text:"비밀번호가 변경되었습니다."})}catch(F){L({ok:!1,text:If(F,"비밀번호 변경에 실패했습니다.")})}finally{T(!1)}},B="w-full px-3 py-2 rounded bg-panel border border-edge text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none",q=B+" tracking-[0.4em] text-center text-lg",G=({m:F})=>F?c.jsxs("div",{className:`flex items-center gap-2 text-sm rounded px-3 py-2 mb-3 border ${F.ok?"bg-accent/10 border-accent/40 text-accent":"bg-red-500/10 border-red-500/40 text-red-300"}`,children:[F.ok?c.jsx(y5,{size:16}):c.jsx(mp,{size:16}),F.text]}):null;return c.jsxs("div",{className:"max-w-2xl space-y-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-semibold text-white mb-1",children:"마이페이지"}),c.jsx("p",{className:"text-sm text-gray-400",children:e&&c.jsxs(c.Fragment,{children:["계정: ",c.jsx("span",{className:"text-gray-200",children:e})]})})]}),c.jsxs("section",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(Zb,{size:18,className:"text-brand"}),c.jsx("h2",{className:"font-semibold text-white",children:"2차 인증 — Authenticator(OTP)"})]}),c.jsxs("p",{className:"text-xs text-gray-400 mb-4",children:["Google·Microsoft Authenticator 앱으로 6자리 코드를 사용하는 2차 인증을 설정합니다.",n!==null&&c.jsxs("span",{className:"ml-2",children:["현재 상태:"," ",c.jsx("span",{className:n?"text-accent":"text-gray-300",children:n?"OTP 사용 중":"미설정"})]})]}),c.jsx(G,{m:b}),a==="idle"&&c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("button",{onClick:C,disabled:h,className:"flex items-center gap-1.5 px-3 py-2 rounded bg-brand hover:bg-brand2 text-white text-sm font-medium transition-colors disabled:opacity-50",children:[c.jsx(B5,{size:16})," ",h?"발급 중…":n?"OTP 재설정 시작":"OTP 등록 시작"]}),n&&c.jsx("button",{onClick:R,disabled:h,className:"px-3 py-2 rounded border border-red-500/50 text-red-300 text-sm hover:bg-red-500/10 transition-colors disabled:opacity-50",children:"Authenticator 해제"})]}),a==="setup"&&c.jsxs("div",{children:[c.jsxs("ol",{className:"list-decimal list-inside text-sm text-gray-300 leading-7 mb-3",children:[c.jsx("li",{children:"Authenticator 앱에서 아래 QR을 스캔하세요."}),c.jsx("li",{children:"스캔이 안 되면 수동 키를 직접 입력하세요."}),c.jsx("li",{children:"앱에 표시된 6자리 코드를 입력해 확인하세요."})]}),o&&c.jsx("div",{className:"flex justify-center mb-3",children:c.jsx("img",{src:o,alt:"OTP QR",width:200,height:200,style:{background:"#fff",padding:8,borderRadius:8}})}),s&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] text-gray-500 mb-1",children:"수동 입력 키"}),c.jsx("code",{className:"block text-xs text-accent bg-panel border border-edge rounded px-2 py-1.5 break-all select-all",children:s})]}),c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"앱에 표시된 6자리 코드"}),c.jsx("input",{value:d,onChange:F=>f(F.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,placeholder:"000000",className:q+" mb-3"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:$,disabled:h||d.length!==6,className:"px-4 py-2 rounded bg-brand hover:bg-brand2 text-white text-sm font-medium transition-colors disabled:opacity-50",children:h?"확인 중…":"코드 확인 · 활성화"}),c.jsx("button",{onClick:P,disabled:h,className:"px-4 py-2 rounded border border-edge text-gray-400 hover:text-white text-sm transition-colors",children:"취소"})]})]}),a==="done"&&c.jsx("div",{className:"flex flex-wrap gap-2",children:c.jsx("button",{onClick:R,disabled:h,className:"px-3 py-2 rounded border border-red-500/50 text-red-300 text-sm hover:bg-red-500/10 transition-colors disabled:opacity-50",children:"Authenticator 해제"})})]}),c.jsxs("section",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx(C5,{size:18,className:"text-brand"}),c.jsx("h2",{className:"font-semibold text-white",children:"비밀번호 변경"})]}),c.jsx(G,{m:M}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"현재 비밀번호"}),c.jsx("input",{type:O?"text":"password",value:g,autoComplete:"current-password",onChange:F=>y(F.target.value),className:B})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs text-gray-400 mb-1",children:["새 비밀번호 (최소 ",Im,"자)"]}),c.jsx("input",{type:O?"text":"password",value:v,autoComplete:"new-password",onChange:F=>x(F.target.value),className:B})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"새 비밀번호 확인"}),c.jsx("input",{type:O?"text":"password",value:w,autoComplete:"new-password",onChange:F=>S(F.target.value),className:B})]}),c.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-gray-400 cursor-pointer select-none",children:[c.jsx("button",{type:"button",onClick:()=>A(!O),className:"text-gray-400 hover:text-brand",children:O?c.jsx(O5,{size:15}):c.jsx(j5,{size:15})}),"비밀번호 표시"]}),c.jsx("button",{onClick:z,disabled:_,className:"px-4 py-2 rounded bg-brand hover:bg-brand2 text-white text-sm font-medium transition-colors disabled:opacity-50",children:_?"변경 중…":"비밀번호 변경"})]})]})]})}const u1={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 c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[c.jsxs("div",{children:[c.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&c.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),c.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function Yh({children:e,style:t}){return c.jsx("div",{style:{...u1,padding:18,...t},children:e})}function re({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 c.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 c.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 Ae({label:e,children:t}){return c.jsxs("label",{style:{display:"block",marginBottom:12},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function jo({children:e}){return c.jsx(Yh,{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 c.jsx("div",{style:{...u1,overflow:"hidden"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>c.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))})}),c.jsx("tbody",{children:t.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>c.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=>c.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:c.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[c.jsx(re,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),c.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),c.jsx(re,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function _o({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return c.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 c.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:c.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...u1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[c.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),c.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),c.jsx("div",{children:n}),r&&c.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function dr({label:e="불러오는 중..."}){return c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const gA={ONGOING:"진행중",DONE:"종료"};function qce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(""),[d,f]=j.useState(""),[h,p]=j.useState(!1),[b,m]=j.useState(!1),[g,y]=j.useState(null),v=async()=>{p(!0);try{const O=(await Hz({page:n,size:20,progressCd:s||void 0})).data.data;t(O.content??[]),i(O.totalPages??0);const A=await qz({});l(A.data.data??[])}finally{p(!1)}};j.useEffect(()=>{v()},[n,s]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>gA[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async S=>{const O=await Gz(S.worklogId);y(O.data.data)};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:c.jsx(re,{onClick:()=>m(!0),children:"+ 업무일지 작성"})}),c.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(S=>c.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:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),c.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),c.jsxs(jo,{children:[c.jsx(le,{value:d,onChange:f,placeholder:"제목 검색",style:{minWidth:220}}),c.jsx(re,{variant:"ghost",onClick:()=>{r(0),v()},children:"검색"}),s&&c.jsxs(re,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",gA[s]??s]})]}),h?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),c.jsx(Eo,{page:n,totalPages:a,onChange:r})]}),b&&c.jsx(Fce,{onClose:()=>m(!1),onSaved:()=>{m(!1),v()}}),g&&c.jsx(Gce,{detail:g,onClose:()=>y(null),onChanged:()=>{y(null),v()}})]})}function Fce({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"),[d,f]=j.useState(""),h=async()=>{var p,b;f("");try{await Fz({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(m){f(((b=(p=m==null?void 0:m.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return c.jsxs(vr,{title:"업무일지 작성",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(re,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(re,{onClick:h,children:"저장"})]}),children:[c.jsx(Ae,{label:"제목",children:c.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(Ae,{label:"작성자 ID",children:c.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(Ae,{label:"근무일자",children:c.jsx(le,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),c.jsx(Ae,{label:"근무상태 코드",children:c.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function Gce({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=j.useState(""),[i,o]=j.useState(""),l=async()=>{await Kz(e.worklogId),n()},s=async()=>{var d,f;o("");try{await Yz(e.worklogId,r),a(""),n()}catch(h){o(((f=(d=h==null?void 0:h.response)==null?void 0:d.data)==null?void 0:f.message)||"댓글 등록 실패")}};return c.jsxs(vr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(re,{variant:"danger",onClick:l,children:"삭제"}),c.jsx(re,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),c.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(d=>c.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[c.jsx("b",{children:d.writerNm})," · ",c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:d.createdAt}),c.jsx("br",{}),d.cmtContent]},d.cmtId)),c.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[c.jsx(le,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),c.jsx(re,{onClick:s,children:"등록"})]}),i&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Kce=["일","월","화","수","목","금","토"];function Yce(){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),[d,f]=j.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{l(!0);try{const w=await zz({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{l(!1)}};j.useEffect(()=>{p()},[h,n]);const m=new Date(e.getFullYear(),e.getMonth(),1).getDay(),g=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(m).fill(null),...Array.from({length:g},(w,S)=>S+1)],v=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 c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:c.jsx(re,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),c.jsxs(Yh,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[c.jsx(re,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),c.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),c.jsx(re,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),c.jsx("div",{style:{flex:1}}),c.jsx(re,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),c.jsx(re,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?c.jsx(dr,{}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Kce.map((w,S)=>c.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)=>c.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&&c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&v(w).slice(0,3).map(O=>c.jsx("div",{onClick:A=>{A.stopPropagation(),Iz(O.scheduleId).then(_=>f(_.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&&c.jsx(Vce,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),d&&c.jsx(Xce,{detail:d,onClose:()=>f(null),onDeleted:()=>{f(null),p()}})]})}function Vce({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`),[d,f]=j.useState(""),[h,p]=j.useState(""),b=async()=>{var m,g;p("");try{await Bz({scheType:t,title:a,startDt:o,endDt:s,content:d,attachmentIds:[]}),r()}catch(y){p(((g=(m=y==null?void 0:y.response)==null?void 0:m.data)==null?void 0:g.message)||"저장 실패")}};return c.jsxs(vr,{title:"일정 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(re,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(re,{onClick:b,children:"저장"})]}),children:[c.jsx(Ae,{label:"제목",children:c.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(Ae,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:c.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(Ae,{label:"종료",children:c.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(Ae,{label:"내용",children:c.jsx(le,{value:d,onChange:f,style:{width:"100%"}})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Xce({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Uz(e.scheduleId),n()};return c.jsxs(vr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(re,{variant:"danger",onClick:r,children:"삭제"}),c.jsx(re,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Qce(){const[e,t]=j.useState("received"),[n,r]=j.useState([]),[a,i]=j.useState(0),[o,l]=j.useState(0),[s,u]=j.useState(""),[d,f]=j.useState(!1),[h,p]=j.useState(!1),[b,m]=j.useState(null),g=async()=>{f(!0);try{const O=(await(e==="received"?kz:$z)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(O.content??[]),l(O.totalPages??0)}finally{f(!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=>c.jsx(_o,{yn:w.readYn})}],v=[{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 Lz(w.messageId):await Dz(w.messageId);m({...S.data.data,_tab:e}),e==="received"&&g()};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:c.jsx(re,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),c.jsxs(jo,{children:[c.jsx(re,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),c.jsx(re,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),c.jsx("div",{style:{flex:1}}),c.jsx(le,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),c.jsx(re,{variant:"ghost",onClick:()=>{i(0),g()},children:"검색"})]}),d?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:e==="received"?y:v,rows:n,rowKey:w=>w.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),c.jsx(Eo,{page:a,totalPages:o,onChange:i})]}),h&&c.jsx(Wce,{onClose:()=>p(!1),onSent:()=>{p(!1),g()}}),b&&c.jsx(Zce,{detail:b,onClose:()=>m(null)})]})}function Wce({onClose:e,onSent:t}){const[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),d=async()=>{var f,h;u("");try{await Rz({title:a,content:o,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(f=p==null?void 0:p.response)==null?void 0:f.data)==null?void 0:h.message)||"전송 실패")}};return c.jsxs(vr,{title:"쪽지 보내기",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(re,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(re,{onClick:d,children:"보내기"})]}),children:[c.jsx(Ae,{label:"받는사람 ID",children:c.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(Ae,{label:"제목",children:c.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(Ae,{label:"내용",children:c.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),s&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function Zce({detail:e,onClose:t}){return c.jsxs(vr,{title:e.title,onClose:t,footer:c.jsx(re,{variant:"ghost",onClick:t,children:"닫기"}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[c.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),c.jsx(_o,{yn:n.readYn})]},r))]})]})}function Jce(){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),[d,f]=j.useState(o),h=async()=>{i(!0);try{const m=await(e==="personal"?Vz:Xz)({fromDate:s,toDate:d});r(m.data.data)}finally{i(!1)}};j.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),c.jsxs(jo,{children:[c.jsx(re,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),c.jsx(re,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),c.jsx("div",{style:{flex:1}}),c.jsx(le,{type:"date",value:s,onChange:u}),c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),c.jsx(le,{type:"date",value:d,onChange:f}),c.jsx(re,{variant:"ghost",onClick:h,children:"조회"})]}),a?c.jsx(dr,{}):!n||n.rows.length===0?c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(b=>c.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))})}),c.jsx("tbody",{children:n.rows.map((b,m)=>c.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(g=>c.jsx("td",{style:{padding:"10px 14px"},children:String(b[g.key]??"")},g.key))},m))})]})})]})}function $s({children:e}){const t=localStorage.getItem("esn_role");return t!=="ADMIN"&&t!=="MANAGER"?c.jsx("div",{className:"uiws-scope",style:{textAlign:"center",padding:"64px 0"},children:c.jsx("p",{style:{color:"var(--uiws-text-muted)",fontSize:14},children:"관리자 전용 메뉴입니다."})}):c.jsx(c.Fragment,{children:e})}const bA={roleId:"",roleNm:"",roleDesc:"",useYn:"Y"},xA=20;function SA(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 efe(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[d,f]=j.useState(new Set),[h,p]=j.useState(!1),[b,m]=j.useState(!1),[g,y]=j.useState(bA),[v,x]=j.useState("");async function w(E=a,C=o){var $,P,R,z;u(!0);try{const B=await Jz({keyword:C||void 0,page:E,size:xA});t(((P=($=B.data)==null?void 0:$.data)==null?void 0:P.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),f(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{w(0,"")},[]);function S(){y(bA),m(!1),x(""),p(!0)}function O(E){y({...E}),m(!0),x(""),p(!0)}async function A(){if(x(""),!g.roleId.trim()||!g.roleNm.trim()){x("역할 ID와 이름은 필수입니다.");return}try{b?await t8(g.roleId,g):await e8(g),p(!1),w()}catch(E){x(SA(E))}}async function _(){if(d.size!==0&&confirm(`선택한 ${d.size}개 역할을 삭제할까요?`))try{await n8([...d]),w()}catch(E){alert(SA(E))}}const T=E=>f(C=>{const $=new Set(C);return $.has(E)?$.delete(E):$.add(E),$}),M=Math.max(1,Math.ceil(n/xA)),L=[{key:"sel",header:"",width:36,render:E=>c.jsx("input",{type:"checkbox",checked:d.has(E.roleId),onChange:()=>T(E.roleId),onClick:C=>C.stopPropagation()})},{key:"roleId",header:"역할 ID",render:E=>c.jsx("span",{className:"font-mono",children:E.roleId})},{key:"roleNm",header:"이름"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,render:E=>c.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"역할/권한 관리",subtitle:"시스템 권한(Role) 정의 — RBAC",actions:c.jsxs(c.Fragment,{children:[c.jsxs(re,{variant:"danger",onClick:_,disabled:d.size===0,children:["삭제 (",d.size,")"]}),c.jsx(re,{onClick:S,children:"역할 추가"})]})}),c.jsxs(jo,{children:[c.jsx(le,{value:o,onChange:l,placeholder:"역할명/설명 검색",style:{flex:1,minWidth:220}}),c.jsx(re,{onClick:()=>{i(0),w(0,o)},children:"검색"})]}),s?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.roleId,onRowClick:E=>O(E),empty:"등록된 역할이 없습니다."}),c.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),w(E)}})]}),h&&c.jsxs(vr,{title:b?"역할 수정":"역할 추가",onClose:()=>p(!1),children:[c.jsx(Ae,{label:"역할 ID",children:c.jsx(le,{value:g.roleId,onChange:E=>y({...g,roleId:E}),placeholder:"예: AUDITOR",style:{width:"100%"}})}),c.jsx(Ae,{label:"이름",children:c.jsx(le,{value:g.roleNm,onChange:E=>y({...g,roleNm:E}),placeholder:"예: 감사자",style:{width:"100%"}})}),c.jsx(Ae,{label:"설명",children:c.jsx(le,{value:g.roleDesc,onChange:E=>y({...g,roleDesc:E}),style:{width:"100%"}})}),c.jsx(Ae,{label:"사용 여부",children:c.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N",style:{width:"100%"}})}),v&&c.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:v}),c.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[c.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),c.jsx(re,{onClick:A,children:"저장"})]})]})]})})}function tfe(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 nfe(){const[e,t]=j.useState([]),[n,r]=j.useState(""),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(!1),[d,f]=j.useState(!1),[h,p]=j.useState("");async function b(){var v,x;l(!0);try{const S=((x=(v=(await r8({page:0,size:100})).data)==null?void 0:v.data)==null?void 0:x.content)||[];t(S),S.length&&!n&&m(S[0].roleId)}catch{t([])}finally{l(!1)}}j.useEffect(()=>{b()},[]);async function m(v){var x;r(v),p(""),u(!0);try{const w=await a8(v);i(((x=w.data)==null?void 0:x.data)||[])}catch{i([])}finally{u(!1)}}function g(v,x){i(w=>w.map(S=>{if(S.menuId!==v)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){f(!0),p("");try{await i8(n,a),p("저장되었습니다.")}catch(v){p(tfe(v))}finally{f(!1)}}}return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"메뉴 권한(권한별 메뉴 매핑)",subtitle:"역할별 메뉴 읽기/쓰기 권한 부여",actions:c.jsx(re,{onClick:y,disabled:!n||d,children:d?"저장 중...":"저장"})}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"240px 1fr",gap:16},children:[c.jsxs(Yh,{style:{padding:12},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",padding:"4px 6px 10px"},children:"역할 선택"}),o?c.jsx(dr,{}):e.length===0?c.jsx("div",{style:{padding:16,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}):e.map(v=>c.jsxs("button",{onClick:()=>m(v.roleId),style:{display:"block",width:"100%",textAlign:"left",padding:"9px 10px",borderRadius:8,fontSize:13,marginBottom:2,border:"none",cursor:"pointer",background:n===v.roleId?"var(--uiws-row-hover)":"transparent",color:n===v.roleId?"var(--uiws-primary)":"var(--uiws-text)",fontWeight:n===v.roleId?600:400},children:[v.roleNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:["(",v.roleId,")"]})]},v.roleId))]}),c.jsx(Yh,{style:{padding:0,overflow:"hidden"},children:s?c.jsx(dr,{}):c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[c.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),c.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:"읽기"}),c.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:"쓰기"})]})}),c.jsx("tbody",{children:a.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑할 메뉴가 없습니다."})}):a.map(v=>c.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[c.jsxs("td",{style:{padding:"10px 14px"},children:[v.menuNm," ",c.jsx("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:v.menuId})]}),c.jsx("td",{style:{textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:v.readYn==="Y",onChange:()=>g(v.menuId,"readYn")})}),c.jsx("td",{style:{textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:v.writeYn==="Y",onChange:()=>g(v.menuId,"writeYn")})})]},v.menuId))})]})})]}),h&&c.jsx("p",{style:{marginTop:12,fontSize:13,color:"var(--uiws-text-muted)"},children:h})]})})}const wA=20;function Um(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 rfe(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[d,f]=j.useState(!1),[h,p]=j.useState(!1),[b,m]=j.useState({grpCd:"",grpNm:"",useYn:"Y",values:[]}),[g,y]=j.useState("");async function v(E=a,C=o){var $,P,R,z;u(!0);try{const B=await o8({keyword:C||void 0,page:E,size:wA});t(((P=($=B.data)==null?void 0:$.data)==null?void 0:P.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(()=>{v(0,"")},[]);function x(){m({grpCd:"",grpNm:"",useYn:"Y",values:[]}),p(!1),y(""),f(!0)}async function w(E){var C;y("");try{const P=(C=(await l8(E.grpCd)).data)==null?void 0:C.data;m({grpCd:P.grpCd,grpNm:P.grpNm,useYn:P.useYn,values:P.values||[]}),p(!0),f(!0)}catch($){alert(Um($))}}function S(){m(E=>({...E,values:[...E.values,{grpCd:E.grpCd,codeVal:"",codeNm:"",sortOrd:E.values.length+1,useYn:"Y"}]}))}function O(E,C){m($=>({...$,values:$.values.map((P,R)=>R===E?{...P,...C}:P)}))}function A(E){m(C=>({...C,values:C.values.filter(($,P)=>P!==E)}))}async function _(){if(y(""),!b.grpCd.trim()||!b.grpNm.trim()){y("그룹 코드와 이름은 필수입니다.");return}const E={...b,values:b.values.map(C=>({...C,grpCd:b.grpCd}))};try{h?await u8(b.grpCd,E):await s8(E),f(!1),v()}catch(C){y(Um(C))}}async function T(E){if(confirm(`코드 그룹 '${E}' 을(를) 삭제할까요?`))try{await c8(E),v()}catch(C){alert(Um(C))}}const M=Math.max(1,Math.ceil(n/wA)),L=[{key:"grpCd",header:"그룹 코드",render:E=>c.jsx("span",{className:"font-mono",children:E.grpCd})},{key:"grpNm",header:"그룹명"},{key:"useYn",header:"사용",width:80,render:E=>c.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:E=>c.jsx("button",{onClick:C=>{C.stopPropagation(),T(E.grpCd)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"공통코드 관리",subtitle:"코드 그룹 및 코드값 정의",actions:c.jsx(re,{onClick:x,children:"그룹 추가"})}),c.jsxs(jo,{children:[c.jsx(le,{value:o,onChange:l,placeholder:"그룹코드/그룹명 검색",style:{flex:1,minWidth:220}}),c.jsx(re,{onClick:()=>{i(0),v(0,o)},children:"검색"})]}),s?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.grpCd,onRowClick:E=>w(E),empty:"등록된 코드 그룹이 없습니다."}),c.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),v(E)}})]}),d&&c.jsxs(vr,{title:h?"코드 그룹 수정":"코드 그룹 추가",onClose:()=>f(!1),children:[c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[c.jsx(Ae,{label:"그룹 코드",children:c.jsx(le,{value:b.grpCd,onChange:E=>m({...b,grpCd:E}),placeholder:"예: ALARM_TYPE",style:{width:"100%"}})}),c.jsx(Ae,{label:"그룹명",children:c.jsx(le,{value:b.grpNm,onChange:E=>m({...b,grpNm:E}),style:{width:"100%"}})})]}),c.jsx(Ae,{label:"사용 여부",children:c.jsx(le,{value:b.useYn,onChange:E=>m({...b,useYn:E}),placeholder:"Y / N"})}),c.jsxs("div",{style:{marginTop:8,marginBottom:6,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c.jsx("span",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:"코드값"}),c.jsx(re,{variant:"ghost",onClick:S,children:"+ 값 추가"})]}),c.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{background:"var(--uiws-surface-2)",color:"var(--uiws-text-muted)"},children:[c.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드값"}),c.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드명"}),c.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:60},children:"순서"}),c.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:50},children:"사용"}),c.jsx("th",{style:{width:36}})]})}),c.jsx("tbody",{children:b.values.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:5,style:{padding:14,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):b.values.map((E,C)=>c.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[c.jsx("td",{style:{padding:4},children:c.jsx(le,{value:E.codeVal,onChange:$=>O(C,{codeVal:$}),style:{width:"100%",padding:"6px 8px"}})}),c.jsx("td",{style:{padding:4},children:c.jsx(le,{value:E.codeNm,onChange:$=>O(C,{codeNm:$}),style:{width:"100%",padding:"6px 8px"}})}),c.jsx("td",{style:{padding:4},children:c.jsx(le,{type:"number",value:String(E.sortOrd??""),onChange:$=>O(C,{sortOrd:$===""?null:Number($)}),style:{width:"100%",padding:"6px 8px"}})}),c.jsx("td",{style:{padding:4},children:c.jsx(le,{value:E.useYn,onChange:$=>O(C,{useYn:$}),style:{width:"100%",padding:"6px 8px"}})}),c.jsx("td",{style:{textAlign:"center"},children:c.jsx("button",{onClick:()=>A(C),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer"},children:"×"})})]},C))})]})}),g&&c.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)",marginTop:8},children:g}),c.jsxs("div",{className:"flex justify-end gap-2 pt-3",children:[c.jsx(re,{variant:"ghost",onClick:()=>f(!1),children:"취소"}),c.jsx(re,{onClick:_,children:"저장"})]})]})]})})}const OA={menuId:"",menuNm:"",parentMenuId:"",programId:"",menuUrl:"",sortOrd:null,useYn:"Y"},jA=100;function AA(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 afe(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(!1),[d,f]=j.useState(new Set),[h,p]=j.useState(!1),[b,m]=j.useState(!1),[g,y]=j.useState(OA),[v,x]=j.useState("");async function w(C=a){var $,P,R,z;u(!0);try{const B=await f8({page:C,size:jA});t(((P=($=B.data)==null?void 0:$.data)==null?void 0:P.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),f(new Set)}catch{t([]),r(0)}finally{u(!1)}}async function S(){var C,$;try{const P=await y8({page:0,size:200});l((($=(C=P.data)==null?void 0:C.data)==null?void 0:$.content)||[])}catch{l([])}}j.useEffect(()=>{w(0),S()},[]);function O(){y(OA),m(!1),x(""),p(!0)}function A(C){y({...C}),m(!0),x(""),p(!0)}async function _(){if(x(""),!g.menuId.trim()||!g.menuNm.trim()){x("메뉴 ID와 이름은 필수입니다.");return}try{b?await h8(g.menuId,g):await d8(g),p(!1),w()}catch(C){x(AA(C))}}async function T(){if(d.size!==0&&confirm(`선택한 ${d.size}개 메뉴를 삭제할까요?`))try{await p8([...d]),w()}catch(C){alert(AA(C))}}const M=C=>f($=>{const P=new Set($);return P.has(C)?P.delete(C):P.add(C),P}),L=Math.max(1,Math.ceil(n/jA)),E=[{key:"sel",header:"",width:36,render:C=>c.jsx("input",{type:"checkbox",checked:d.has(C.menuId),onChange:()=>M(C.menuId),onClick:$=>$.stopPropagation()})},{key:"menuId",header:"메뉴 ID",render:C=>c.jsx("span",{className:"font-mono",children:C.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:C=>c.jsx(_o,{yn:C.useYn,yes:"사용",no:"미사용"})}];return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"메뉴 관리",subtitle:"시스템 메뉴 트리/프로그램 연결",actions:c.jsxs(c.Fragment,{children:[c.jsxs(re,{variant:"danger",onClick:T,disabled:d.size===0,children:["삭제 (",d.size,")"]}),c.jsx(re,{onClick:O,children:"메뉴 추가"})]})}),s?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:E,rows:e,rowKey:C=>C.menuId,onRowClick:C=>A(C),empty:"등록된 메뉴가 없습니다."}),c.jsx(Eo,{page:a,totalPages:L,onChange:C=>{i(C),w(C)}})]}),h&&c.jsxs(vr,{title:b?"메뉴 수정":"메뉴 추가",onClose:()=>p(!1),children:[c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[c.jsx(Ae,{label:"메뉴 ID",children:c.jsx(le,{value:g.menuId,onChange:C=>y({...g,menuId:C}),style:{width:"100%"}})}),c.jsx(Ae,{label:"메뉴명",children:c.jsx(le,{value:g.menuNm,onChange:C=>y({...g,menuNm:C}),style:{width:"100%"}})}),c.jsx(Ae,{label:"상위 메뉴 ID",children:c.jsx(le,{value:g.parentMenuId,onChange:C=>y({...g,parentMenuId:C}),style:{width:"100%"}})}),c.jsx(Ae,{label:"프로그램",children:c.jsxs("select",{value:g.programId,onChange:C=>y({...g,programId:C.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:[c.jsx("option",{value:"",children:"(선택 안 함)"}),o.map(C=>c.jsxs("option",{value:C.programId,children:[C.programNm," (",C.programId,")"]},C.programId))]})}),c.jsx(Ae,{label:"메뉴 URL",children:c.jsx(le,{value:g.menuUrl,onChange:C=>y({...g,menuUrl:C}),style:{width:"100%"}})}),c.jsx(Ae,{label:"정렬 순서",children:c.jsx(le,{type:"number",value:String(g.sortOrd??""),onChange:C=>y({...g,sortOrd:C===""?null:Number(C)}),style:{width:"100%"}})})]}),c.jsx(Ae,{label:"사용 여부",children:c.jsx(le,{value:g.useYn,onChange:C=>y({...g,useYn:C}),placeholder:"Y / N"})}),v&&c.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:v}),c.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[c.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),c.jsx(re,{onClick:_,children:"저장"})]})]})]})})}const EA={deptId:"",deptNm:"",parentDeptId:"",sortOrd:null,useYn:"Y"},_A=20;function TA(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 ife(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[d,f]=j.useState(!1),[h,p]=j.useState(!1),[b,m]=j.useState(EA),[g,y]=j.useState("");async function v(T=a,M=o){var L,E,C,$;u(!0);try{const P=await m8({keyword:M||void 0,page:T,size:_A});t(((E=(L=P.data)==null?void 0:L.data)==null?void 0:E.content)||[]),r((($=(C=P.data)==null?void 0:C.data)==null?void 0:$.total)||0)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{v(0,"")},[]);function x(){m(EA),p(!1),y(""),f(!0)}function w(T){m({...T}),p(!0),y(""),f(!0)}async function S(){if(y(""),!b.deptNm.trim()){y("부서명은 필수입니다.");return}try{h?await g8(b.deptId,b):await v8(b),f(!1),v()}catch(T){y(TA(T))}}async function O(T){if(confirm(`부서 '${T}' 을(를) 삭제할까요?`))try{await b8(T),v()}catch(M){alert(TA(M))}}const A=Math.max(1,Math.ceil(n/_A)),_=[{key:"deptId",header:"부서 ID",render:T=>c.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=>c.jsx(_o,{yn:T.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:T=>c.jsx("button",{onClick:M=>{M.stopPropagation(),O(T.deptId)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"부서 관리",subtitle:"조직 부서 계층/정렬",actions:c.jsx(re,{onClick:x,children:"부서 추가"})}),c.jsxs(jo,{children:[c.jsx(le,{value:o,onChange:l,placeholder:"부서명 검색",style:{flex:1,minWidth:220}}),c.jsx(re,{onClick:()=>{i(0),v(0,o)},children:"검색"})]}),s?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:_,rows:e,rowKey:T=>T.deptId,onRowClick:T=>w(T),empty:"등록된 부서가 없습니다."}),c.jsx(Eo,{page:a,totalPages:A,onChange:T=>{i(T),v(T)}})]}),d&&c.jsxs(vr,{title:h?"부서 수정":"부서 추가",onClose:()=>f(!1),children:[c.jsx(Ae,{label:"부서 ID (수정 불가)",children:c.jsx(le,{value:b.deptId,onChange:T=>m({...b,deptId:T}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),c.jsx(Ae,{label:"부서명",children:c.jsx(le,{value:b.deptNm,onChange:T=>m({...b,deptNm:T}),style:{width:"100%"}})}),c.jsx(Ae,{label:"상위 부서 ID",children:c.jsx(le,{value:b.parentDeptId,onChange:T=>m({...b,parentDeptId:T}),style:{width:"100%"}})}),c.jsx(Ae,{label:"정렬 순서",children:c.jsx(le,{type:"number",value:String(b.sortOrd??""),onChange:T=>m({...b,sortOrd:T===""?null:Number(T)}),style:{width:"100%"}})}),c.jsx(Ae,{label:"사용 여부",children:c.jsx(le,{value:b.useYn,onChange:T=>m({...b,useYn:T}),placeholder:"Y / N"})}),g&&c.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:g}),c.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[c.jsx(re,{variant:"ghost",onClick:()=>f(!1),children:"취소"}),c.jsx(re,{onClick:S,children:"저장"})]})]})]})})}const CA={companyId:"",companyNm:"",bizNo:"",useYn:"Y"},NA=20;function MA(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 ofe(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[d,f]=j.useState(new Set),[h,p]=j.useState(!1),[b,m]=j.useState(!1),[g,y]=j.useState(CA),[v,x]=j.useState("");async function w(E=a,C=o){var $,P,R,z;u(!0);try{const B=await x8({keyword:C||void 0,page:E,size:NA});t(((P=($=B.data)==null?void 0:$.data)==null?void 0:P.content)||[]),r(((z=(R=B.data)==null?void 0:R.data)==null?void 0:z.total)||0),f(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{w(0,"")},[]);function S(){y(CA),m(!1),x(""),p(!0)}function O(E){y({...E}),m(!0),x(""),p(!0)}async function A(){if(x(""),!g.companyNm.trim()){x("거래처명은 필수입니다.");return}try{b?await w8(g.companyId,g):await S8(g),p(!1),w()}catch(E){x(MA(E))}}async function _(){if(d.size!==0&&confirm(`선택한 ${d.size}개 거래처를 삭제할까요?`))try{await O8([...d]),w()}catch(E){alert(MA(E))}}const T=E=>f(C=>{const $=new Set(C);return $.has(E)?$.delete(E):$.add(E),$}),M=Math.max(1,Math.ceil(n/NA)),L=[{key:"sel",header:"",width:36,render:E=>c.jsx("input",{type:"checkbox",checked:d.has(E.companyId),onChange:()=>T(E.companyId),onClick:C=>C.stopPropagation()})},{key:"companyId",header:"거래처 ID",render:E=>c.jsx("span",{className:"font-mono",children:E.companyId})},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호"},{key:"useYn",header:"사용",width:80,render:E=>c.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return c.jsx($s,{children:c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"거래처 관리",subtitle:"거래처(협력사) 마스터",actions:c.jsxs(c.Fragment,{children:[c.jsxs(re,{variant:"danger",onClick:_,disabled:d.size===0,children:["삭제 (",d.size,")"]}),c.jsx(re,{onClick:S,children:"거래처 추가"})]})}),c.jsxs(jo,{children:[c.jsx(le,{value:o,onChange:l,placeholder:"거래처명/사업자번호 검색",style:{flex:1,minWidth:220}}),c.jsx(re,{onClick:()=>{i(0),w(0,o)},children:"검색"})]}),s?c.jsx(dr,{}):c.jsxs(c.Fragment,{children:[c.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.companyId,onRowClick:E=>O(E),empty:"등록된 거래처가 없습니다."}),c.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),w(E)}})]}),h&&c.jsxs(vr,{title:b?"거래처 수정":"거래처 추가",onClose:()=>p(!1),children:[c.jsx(Ae,{label:"거래처 ID",children:c.jsx(le,{value:g.companyId,onChange:E=>y({...g,companyId:E}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),c.jsx(Ae,{label:"거래처명",children:c.jsx(le,{value:g.companyNm,onChange:E=>y({...g,companyNm:E}),style:{width:"100%"}})}),c.jsx(Ae,{label:"사업자번호",children:c.jsx(le,{value:g.bizNo,onChange:E=>y({...g,bizNo:E}),style:{width:"100%"}})}),c.jsx(Ae,{label:"사용 여부",children:c.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N"})}),v&&c.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:v}),c.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[c.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),c.jsx(re,{onClick:A,children:"저장"})]})]})]})})}const lfe=()=>Y.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),sfe=e=>Y.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),ufe=()=>Y.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),cfe=[{id:"ollama",label:"Ollama (기본)",hint:"온프레미스 · llama3.2:1b"},{id:"qwen3",label:"Qwen3",hint:"온프레미스 · qwen3:1.7b"},{id:"deepseek",label:"DeepSeek",hint:"온프레미스 · deepseek-r1:1.5b"},{id:"glm",label:"GLM",hint:"온프레미스 · glm4:9b",ram:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],UR=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],cd="claude-sonnet-4-6",Hm=e=>UR.includes(e)?e:cd;function qm(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (AI 설정은 ADMIN 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function ffe(){const[e,t]=j.useState("ollama"),[n,r]=j.useState(cd),[a,i]=j.useState(!1),[o,l]=j.useState(""),[s,u]=j.useState(!0),[d,f]=j.useState(!1),[h,p]=j.useState(!1),[b,m]=j.useState(!1),[g,y]=j.useState(""),[v,x]=j.useState(!1),[w,S]=j.useState(null),O=()=>{f(!0),lfe().then(P=>{t(P.provider),r(Hm(P.claudeModel??cd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),u(!!P.aiEnabled),y("")}).catch(P=>y(qm(P))).finally(()=>f(!1))};j.useEffect(()=>{O()},[]);const A=()=>{m(!1),S(null)},_=async()=>{p(!0),m(!1);try{const P=await sfe({provider:e,claudeModel:n});t(P.provider),r(Hm(P.claudeModel??cd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),u(!!P.aiEnabled),m(!0),y("")}catch(P){y(qm(P))}finally{p(!1)}},T=async()=>{x(!0),S(null);try{S(await ufe())}catch(P){S({ok:!1,degraded:!1,message:qm(P)})}finally{x(!1)}},M=e==="claude",L=e==="glm",E=M&&!a,C=!M&&!s,$=w?w.degraded?"text-amber-300":w.ok?"text-emerald-300":"text-rose-300":"";return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[c.jsx(Fu,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"알람 분석·POS 분류·채팅 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),c.jsx("button",{onClick:O,disabled:d,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),g&&c.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:g}),(E||C)&&c.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:E?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),L&&c.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"GLM(glm4:9b)은 약 5.5GB 로드가 필요해 현재 서버 RAM 여유(~2.1GB)로는 콜드로드가 실패할 수 있습니다. 선택은 가능하나 실패 시 Ollama 소형 모델로 자동 폴백합니다. RAM 증설 후 사용을 권장합니다."}),c.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[c.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2",children:[c.jsx(Fu,{size:16,className:"text-brand"})," 제공자 & 모델"]}),c.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:cfe.map(P=>c.jsxs("button",{onClick:()=>{t(P.id),A()},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${e===P.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-gray-300 hover:border-brand/50"}`,children:[c.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[P.label,P.ram&&c.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/40",children:"RAM"})]}),c.jsx("div",{className:"text-[11px] text-gray-500 mt-0.5",children:P.hint})]},P.id))}),!M&&c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Ollama 텍스트 모델"}),c.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono",children:o||"llama3.2:1b"}),c.jsx("p",{className:"text-[11px] text-gray-500 mt-1",children:"온프레미스 모델 — provider 별로 고정. 외부 호출 없음."})]}),M&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Claude 모델"}),c.jsx("select",{value:n,onChange:P=>{r(Hm(P.target.value)),A()},className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm focus:border-brand outline-none",children:UR.map(P=>c.jsx("option",{value:P,children:P},P))})]}),c.jsxs("div",{className:"mb-4",children:[c.jsxs("label",{className:"block text-xs text-gray-500 mb-1 flex items-center gap-1",children:[c.jsx(TC,{size:13})," API 키"]}),c.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${a?"bg-emerald-500/15 text-emerald-300 border border-emerald-500/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:a?"설정됨":"미설정"}),c.jsx("p",{className:"text-[11px] text-gray-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("button",{onClick:_,disabled:h||d,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-40",children:[c.jsx(I5,{size:15})," ",h?"저장 중…":"저장"]}),b&&c.jsx("span",{className:"text-emerald-300 text-xs",children:"저장됨"})]})]}),c.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[c.jsx(L5,{size:16,className:"text-brand"})," 연결 테스트"]}),c.jsx("p",{className:"text-sm text-gray-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:T,disabled:v,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:v?"테스트 중…":"테스트 실행"}),w&&c.jsx("span",{className:`text-sm ${$}`,role:"status","aria-live":"polite",children:w.message})]}),c.jsx("p",{className:"text-[11px] text-gray-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."})]})]})]})}const dfe=new Kk;function hfe(){return c.jsx(Yk,{client:dfe,children:c.jsx(dk,{children:c.jsxs(HD,{children:[c.jsx(je,{path:"/login",element:c.jsx(j8,{})}),c.jsx(je,{path:"/signup",element:c.jsx(A8,{})}),c.jsx(je,{path:"/find-id",element:c.jsx(E8,{})}),c.jsx(je,{path:"/reset-pw",element:c.jsx(_8,{})}),c.jsxs(je,{element:c.jsx(Az,{}),children:[c.jsx(je,{path:"/dashboard",element:c.jsx(xce,{})}),c.jsx(je,{path:"/mypage",element:c.jsx(Hce,{})}),c.jsx(je,{path:"/stores",element:c.jsx(Sce,{})}),c.jsx(je,{path:"/templates",element:c.jsx(Oce,{})}),c.jsx(je,{path:"/pos-cvt",element:c.jsx(jce,{})}),c.jsx(je,{path:"/tag-binding",element:c.jsx(Bce,{})}),c.jsx(je,{path:"/update-queue",element:c.jsx(Ice,{})}),c.jsx(je,{path:"/alarms",element:c.jsx(Ece,{})}),c.jsx(je,{path:"/hcore",element:c.jsx(Cce,{})}),c.jsx(je,{path:"/works",element:c.jsx(Mce,{})}),c.jsx(je,{path:"/firmware",element:c.jsx(Pce,{})}),c.jsx(je,{path:"/products",element:c.jsx($ce,{})}),c.jsx(je,{path:"/users",element:c.jsx(Rce,{})}),c.jsx(je,{path:"/tenants",element:c.jsx(Dce,{})}),c.jsx(je,{path:"/ai",element:c.jsx(kce,{})}),c.jsx(je,{path:"/mobile-app",element:c.jsx(Uce,{})}),c.jsx(je,{path:"/worklogs",element:c.jsx(qce,{})}),c.jsx(je,{path:"/schedules",element:c.jsx(Yce,{})}),c.jsx(je,{path:"/messages",element:c.jsx(Qce,{})}),c.jsx(je,{path:"/work-stats",element:c.jsx(Jce,{})}),c.jsx(je,{path:"/system/roles",element:c.jsx(efe,{})}),c.jsx(je,{path:"/system/role-menus",element:c.jsx(nfe,{})}),c.jsx(je,{path:"/system/codes",element:c.jsx(rfe,{})}),c.jsx(je,{path:"/system/menus",element:c.jsx(afe,{})}),c.jsx(je,{path:"/system/depts",element:c.jsx(ife,{})}),c.jsx(je,{path:"/system/companies",element:c.jsx(ofe,{})}),c.jsx(je,{path:"/system/ai-config",element:c.jsx(ffe,{})})]}),c.jsx(je,{path:"*",element:c.jsx(lC,{to:"/dashboard",replace:!0})})]})})})}z4.createRoot(document.getElementById("root")).render(c.jsx(j.StrictMode,{children:c.jsx(I4,{children:c.jsx(hfe,{})})}));
